@para-ui/core 2.0.17 → 2.0.21
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 +3 -4
- package/AutoTips/index.js +3 -4
- package/Breadcrumbs/index.js +3 -4
- package/Button/index.d.ts +4 -2
- package/Button/index.js +3 -5
- package/ButtonGroup/index.js +3 -5
- package/Cascader/index.js +3 -4
- package/Checkbox/index.js +3 -4
- package/CheckboxGroup/index.js +3 -4
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.js +3 -5
- package/Container/index.js +3 -4
- package/DatePicker/index.js +3 -3
- package/Desktop/index.js +3 -5
- package/Drawer/index.js +3 -4
- package/Form/index.js +3 -5
- package/FormItem/index.js +3 -5
- package/FunctionModal/index.js +3 -5
- package/GlobalContext/index.d.ts +6 -0
- package/GlobalContext/index.js +1 -0
- package/Help/index.js +3 -4
- package/IconList/index.js +3 -4
- package/InputLang/index.js +3 -5
- package/InputNumber/index.js +3 -5
- package/Loading/index.js +3 -4
- package/Menu/index.js +3 -5
- package/Message/index.d.ts +13 -0
- package/Message/index.js +3 -4
- package/Modal/index.js +3 -5
- package/MultiBox/index.js +3 -5
- package/Notification/index.d.ts +52 -0
- package/Notification/index.js +15 -0
- package/PageHeader/index.js +3 -5
- package/Pagination/index.js +3 -5
- package/ParauiProvider/index.d.ts +1 -0
- package/ParauiProvider/index.js +3 -4
- package/PopConfirm/index.js +3 -5
- package/Popover/index.js +2 -2
- package/Popper/index.js +2 -2
- package/Radio/index.js +3 -4
- package/RadioGroup/index.js +3 -4
- package/Search/index.js +3 -5
- package/Select/index.d.ts +12 -4
- package/Select/index.js +3 -5
- package/SingleBox/index.js +3 -5
- package/Slider/index.js +3 -4
- package/Split/index.js +3 -4
- package/Stepper/index.js +3 -4
- package/Switch/index.js +3 -4
- package/Table/index.js +3 -5
- package/Tabs/index.js +3 -4
- package/Tag/TagGroup.d.ts +57 -0
- package/Tag/index.d.ts +34 -0
- package/Tag/index.js +14 -0
- package/TextField/index.js +3 -5
- package/TimePicker/index.js +3 -3
- package/Timeline/index.js +3 -4
- package/ToggleButton/index.js +3 -5
- package/Tooltip/index.js +3 -4
- package/Transfer/index.js +3 -5
- package/Tree/index.js +3 -5
- package/Upload/index.js +3 -5
- package/cdn/Accordion/index.js +25 -0
- package/cdn/AutoBox/index.js +16 -0
- package/cdn/AutoTips/index.js +40 -0
- package/cdn/Breadcrumbs/index.js +16 -0
- package/cdn/Button/index.js +40 -0
- package/cdn/ButtonGroup/index.js +40 -0
- package/cdn/Cascader/index.js +14 -0
- package/cdn/Checkbox/index.js +1 -0
- package/cdn/CheckboxGroup/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +61 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +53 -0
- package/cdn/Desktop/index.js +24 -0
- package/cdn/Drawer/index.js +6 -0
- package/cdn/Form/index.js +45 -0
- package/cdn/FormItem/index.js +45 -0
- package/cdn/FunctionModal/index.js +40 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +40 -0
- package/cdn/IconList/index.js +16 -0
- package/cdn/InputLang/index.js +40 -0
- package/cdn/InputNumber/index.js +40 -0
- package/cdn/Loading/index.js +1 -0
- package/cdn/Menu/index.js +16 -0
- package/cdn/Message/index.js +1 -0
- package/cdn/Modal/index.js +40 -0
- package/cdn/MultiBox/index.js +40 -0
- package/cdn/Notification/index.js +14 -0
- package/cdn/PageHeader/index.js +40 -0
- package/cdn/Pagination/index.js +45 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +40 -0
- package/cdn/Popover/index.js +17 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Radio/index.js +1 -0
- package/cdn/RadioGroup/index.js +1 -0
- package/cdn/Search/index.js +40 -0
- package/cdn/Select/index.js +40 -0
- package/cdn/SingleBox/index.js +40 -0
- package/cdn/Slider/index.js +14 -0
- package/cdn/Split/index.js +1 -0
- package/cdn/Stepper/index.js +24 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Light.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Light.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.css +8 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.otf +0 -0
- package/cdn/Styles/index.scss +63 -0
- package/cdn/Styles/index.ts +1 -0
- package/cdn/Styles/normalize.scss +348 -0
- package/cdn/Styles/theme.scss +57 -0
- package/cdn/Switch/index.js +6 -0
- package/cdn/Table/index.js +45 -0
- package/cdn/Tabs/index.js +48 -0
- package/cdn/Tag/index.js +1 -0
- package/cdn/TextField/index.js +40 -0
- package/cdn/TimePicker/index.js +53 -0
- package/cdn/Timeline/index.js +16 -0
- package/cdn/ToggleButton/index.js +40 -0
- package/cdn/Tooltip/index.js +40 -0
- package/cdn/Transfer/index.js +40 -0
- package/cdn/Tree/index.js +53 -0
- package/cdn/Upload/index.js +45 -0
- package/index.d.ts +3 -0
- package/index.js +3 -3
- package/package.json +7 -3
- package/style.css +8 -4
- package/AutoBox/index.css +0 -2
- package/AutoTips/index.css +0 -4
- package/Breadcrumbs/index.css +0 -2
- package/Button/index.css +0 -4
- package/ButtonGroup/index.css +0 -6
- package/Cascader/index.css +0 -2
- package/Checkbox/index.css +0 -2
- package/CheckboxGroup/index.css +0 -4
- package/ColorPicker/index.css +0 -2
- package/ComboSelect/index.css +0 -28
- package/Container/index.css +0 -2
- package/DatePicker/index.css +0 -6
- package/Desktop/index.css +0 -2
- package/Drawer/index.css +0 -2
- package/Form/index.css +0 -26
- package/FormItem/index.css +0 -26
- package/FunctionModal/index.css +0 -12
- package/Help/index.css +0 -4
- package/IconList/index.css +0 -2
- package/InputLang/index.css +0 -12
- package/InputNumber/index.css +0 -10
- package/Loading/index.css +0 -2
- package/Menu/index.css +0 -2
- package/Message/index.css +0 -2
- package/Modal/index.css +0 -10
- package/MultiBox/index.css +0 -10
- package/PageHeader/index.css +0 -6
- package/Pagination/index.css +0 -12
- package/ParauiProvider/index.css +0 -2
- package/PopConfirm/index.css +0 -6
- package/Radio/index.css +0 -2
- package/RadioGroup/index.css +0 -4
- package/Search/index.css +0 -12
- package/Select/index.css +0 -6
- package/SingleBox/index.css +0 -10
- package/Slider/index.css +0 -2
- package/Split/index.css +0 -2
- package/Stepper/index.css +0 -2
- package/Switch/index.css +0 -2
- package/Table/index.css +0 -20
- package/Tabs/index.css +0 -4
- package/TextField/index.css +0 -8
- package/TimePicker/index.css +0 -6
- package/Timeline/index.css +0 -2
- package/ToggleButton/index.css +0 -6
- package/Tooltip/index.css +0 -2
- package/Transfer/index.css +0 -16
- package/Tree/index.css +0 -8
- package/Upload/index.css +0 -12
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("para-lib")):"function"==typeof define&&define.amd?define(["react","para-lib"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("para-lib")):e.ParaUI=o(e.react,e["para-lib"])}(self,(function(e,o){return function(){var r={1204:function(e,o,r){(o=r(3645)(!1)).push([e.id,'.paraui-check-box{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.121569);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}\n',""]),e.exports=o},9974:function(e,o,r){(o=r(3645)(!1)).push([e.id,".paraui-check-box-group{font-family:Source Han Sans CN,Source Han Sans CN-Regular;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-check-box-group>.check-box-group-label{color:rgba(46,55,67,0.701961);margin-bottom:8px;display:inline-block}.paraui-check-box-group>.check-box-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group>.check-box-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.paraui-check-box-group.check-box-group-error>.check-box-group-error-text{color:#eb6054}\n",""]),e.exports=o},3645:function(e){"use strict";e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var r=function(e,o){var r=e[1]||"",c=e[3];if(!c)return r;if(o&&"function"==typeof btoa){var a=(n=c,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(u," */")),t=c.sources.map((function(e){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(e," */")}));return[r].concat(t).concat([a]).join("\n")}var n,i,u;return[r].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(r,"}"):r})).join("")},o.i=function(e,r,c){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(c)for(var t=0;t<this.length;t++){var n=this[t][0];null!=n&&(a[n]=!0)}for(var i=0;i<e.length;i++){var u=[].concat(e[i]);c&&a[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),o.push(u))}},o}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var c,i,u=n(e),l=1;l<arguments.length;l++){for(var s in c=Object(arguments[l]))o.call(c,s)&&(u[s]=c[s]);if(r){i=r(c);for(var f=0;f<i.length;f++)t.call(c,i[f])&&(u[i[f]]=c[i[f]])}}return u}},5251:function(e,r,o){
|
|
6
|
+
*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var o={},r=0;r<10;r++)o["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach((function(e){c[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},c)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,u=a(e),b=1;b<arguments.length;b++){for(var p in n=Object(arguments[b]))r.call(n,p)&&(u[p]=n[p]);if(o){i=o(n);for(var l=0;l<i.length;l++)c.call(n,i[l])&&(u[i[l]]=n[i[l]])}}return u}},5251:function(e,o,r){"use strict";
|
|
8
7
|
/** @license React v17.0.2
|
|
9
8
|
* react-jsx-runtime.production.min.js
|
|
10
9
|
*
|
|
@@ -13,4 +12,4 @@ var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.pr
|
|
|
13
12
|
* This source code is licensed under the MIT license found in the
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
r(7418);var c=r(9297),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var t=Symbol.for;a=t("react.element"),t("react.fragment")}var n=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function b(e,o,r){var c,t={},b=null,p=null;for(c in void 0!==r&&(b=""+r),void 0!==o.key&&(b=""+o.key),void 0!==o.ref&&(p=o.ref),o)i.call(o,c)&&!u.hasOwnProperty(c)&&(t[c]=o[c]);if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===t[c]&&(t[c]=o[c]);return{$$typeof:a,type:e,key:b,ref:p,props:t,_owner:n.current}}o.jsx=b,o.jsxs=b},5893:function(e,o,r){"use strict";e.exports=r(5251)},9036:function(e,o,r){var c=r(3379),a=r(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},7708:function(e,o,r){var c=r(3379),a=r(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},3379:function(e,o,r){"use strict";var c,a=function(){return void 0===c&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},t=function(){var e={};return function(o){if(void 0===e[o]){var r=document.querySelector(o);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[o]=r}return e[o]}}(),n=[];function i(e){for(var o=-1,r=0;r<n.length;r++)if(n[r].identifier===e){o=r;break}return o}function u(e,o){for(var r={},c=[],a=0;a<e.length;a++){var t=e[a],u=o.base?t[0]+o.base:t[0],b=r[u]||0,p="".concat(u," ").concat(b);r[u]=b+1;var l=i(p),h={css:t[1],media:t[2],sourceMap:t[3]};-1!==l?(n[l].references++,n[l].updater(h)):n.push({identifier:p,updater:f(h,o),references:1}),c.push(p)}return c}function b(e){var o=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var a=r.nc;a&&(c.nonce=a)}if(Object.keys(c).forEach((function(e){o.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(o);else{var n=t(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}return o}var p,l=(p=[],function(e,o){return p[e]=o,p.filter(Boolean).join("\n")});function h(e,o,r,c){var a=r?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(o,a);else{var t=document.createTextNode(a),n=e.childNodes;n[o]&&e.removeChild(n[o]),n.length?e.insertBefore(t,n[o]):e.appendChild(t)}}function s(e,o,r){var c=r.css,a=r.media,t=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),t&&"undefined"!=typeof btoa&&(c+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */")),e.styleSheet)e.styleSheet.cssText=c;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(c))}}var d=null,x=0;function f(e,o){var r,c,a;if(o.singleton){var t=x++;r=d||(d=b(o)),c=h.bind(null,r,t,!1),a=h.bind(null,r,t,!0)}else r=b(o),c=s.bind(null,r,o),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return c(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;c(e=o)}else a()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=a());var r=u(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var c=0;c<r.length;c++){var a=i(r[c]);n[a].references--}for(var t=u(e,o),b=0;b<r.length;b++){var p=i(r[b]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}r=t}}}},9690:function(e,o,r){"use strict";var c=r(5893),a=r(9297),t=(r(9036),function(){return t=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},t.apply(this,arguments)});o.default=function(e){var o=e.className,r=void 0===o?"":o,n=e.label,i=void 0===n?"":n,u=e.size,b=void 0===u?"large":u,p=e.disabled,l=void 0!==p&&p,h=e.indeterminate,s=void 0!==h&&h,d=e.onChange,x=(0,a.useState)(!1),f=x[0],k=x[1];(0,a.useEffect)((function(){void 0!==e.defaultChecked&&k(e.defaultChecked)}),[]),(0,a.useEffect)((function(){void 0!==e.checked&&k(e.checked)}),[e.checked]);var v;return(0,c.jsxs)("label",t({className:(v="paraui-check-box",r&&(v+=" "+r),b&&(v+=" check-box-"+b),l&&(v+=" check-box-disabled"),s?v+=" check-box-indeterminate":f&&(v+=" check-box-checked"),v),onClick:function(o){if(o.preventDefault(),!l){if(s)return void 0===e.checked&&k(!0),void(d&&d(o,!0));void 0===e.checked&&k(!f),o.target.checked=!f,o.target.value=!f,d&&d(o,!f)}}},{children:[(0,c.jsxs)("span",t({className:"paraui-checkbox-box"},{children:[(0,c.jsx)("input",t({type:"checkbox",value:f},e.inputProps),void 0),(0,c.jsx)("span",{className:"paraui-checkbox-box-inner"},void 0)]}),void 0),i&&(0,c.jsx)("span",t({className:"paraui-check-box-label"},{children:i}),void 0)]}),void 0)}},3475:function(e){"use strict";e.exports=o},9297:function(o){"use strict";o.exports=e}},c={};function a(e){var o=c[e];if(void 0!==o)return o.exports;var t=c[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(o,{a:o}),o},a.d=function(e,o){for(var r in o)a.o(o,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},a.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return function(){"use strict";a.r(t),a.d(t,{CheckboxGroup:function(){return i}});var e=a(9297),o=a(5893),r=a(9690),c=a(3475),n=(a(7708),function(){return n=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},n.apply(this,arguments)}),i=function(a){var t=a.label,i=void 0===t?"":t,u=a.size,b=void 0===u?"large":u,p=a.row,l=void 0===p||p,h=a.disabled,s=void 0!==h&&h,d=a.required,x=void 0!==d&&d,f=a.error,k=void 0!==f&&f,v=a.helperText,g=void 0===v?"":v,m=a.id,y=void 0===m?"name":m,j=a.list,w=a.className,O=void 0===w?"":w,S=a.onChange,C=(0,e.useState)([]),N=C[0],_=C[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&_(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&_(a.value)}),[a.value]);var E,P=function(e){return function(o,r){var t=e[y],n=(0,c.DeepClone)(N);if(r)n.push(t);else{var i=n.indexOf(t);n.splice(i,1)}void 0===a.value&&_(n),S&&S(n)}};return(0,o.jsxs)("div",n({className:(E="paraui-check-box-group",O&&(E+=" "+O),b&&(E+=" check-box-group-"+b),k&&(E+=" check-box-group-error"),s&&(E+=" check-box-group-disabled"),l&&(E+=" check-box-group-row"),E)},{children:[(0,o.jsxs)("label",n({className:"check-box-group-label"},{children:[i,x&&(0,o.jsx)("span",n({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,o.jsx)("div",n({className:"check-box-group-content"},{children:j.map((function(o,c){return(0,e.createElement)(r.default,n({},o,{checked:-1!==N.indexOf(o[y]),size:b,disabled:Boolean(s||o.disabled),key:c,onChange:P(o)}))}))}),void 0),g&&(0,o.jsx)("p",n({className:"check-box-group-error-text"},{children:g}),void 0)]}),void 0)};t.default=i}(),t}()}));
|
package/ColorPicker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-color")):"function"==typeof define&&define.amd?define(["react-color"],t):"object"==typeof exports?exports.ParaUI=t(require("react-color")):e.ParaUI=t(e["react-color"])}(self,(function(e){return function(){var t={6853:function(e,t,n){(t=n(3645)(!1)).push([e.id,".sketch-picker,.chrome-picker,.swatches-picker,.compact-picker{box-sizing:content-box !important}.sketch-picker *,.chrome-picker *,.swatches-picker *,.compact-picker *{box-sizing:content-box !important}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(c=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var c,a,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},694:function(e,t,n){var r=n(3379),o=n(6853);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),c=[];function a(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=a(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(c[l].references++,c[l].updater(d)):c.push({identifier:f,updater:m(d,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(i,c[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=v||(v=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);c[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=a(n[s]);0===c[f].references&&(c[f].updater(),c.splice(f,1))}n=i}}}},6519:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{ChromePicker:function(){return e.ChromePicker},CompactPicker:function(){return e.CompactPicker},SwatchesPicker:function(){return e.SwatchesPicker}});var e=r(6519);r(694);o.default=e.SketchPicker}(),o}()}));
|