@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.
Files changed (180) hide show
  1. package/AutoBox/index.js +3 -4
  2. package/AutoTips/index.js +3 -4
  3. package/Breadcrumbs/index.js +3 -4
  4. package/Button/index.d.ts +4 -2
  5. package/Button/index.js +3 -5
  6. package/ButtonGroup/index.js +3 -5
  7. package/Cascader/index.js +3 -4
  8. package/Checkbox/index.js +3 -4
  9. package/CheckboxGroup/index.js +3 -4
  10. package/ColorPicker/index.js +1 -1
  11. package/ComboSelect/index.js +3 -5
  12. package/Container/index.js +3 -4
  13. package/DatePicker/index.js +3 -3
  14. package/Desktop/index.js +3 -5
  15. package/Drawer/index.js +3 -4
  16. package/Form/index.js +3 -5
  17. package/FormItem/index.js +3 -5
  18. package/FunctionModal/index.js +3 -5
  19. package/GlobalContext/index.d.ts +6 -0
  20. package/GlobalContext/index.js +1 -0
  21. package/Help/index.js +3 -4
  22. package/IconList/index.js +3 -4
  23. package/InputLang/index.js +3 -5
  24. package/InputNumber/index.js +3 -5
  25. package/Loading/index.js +3 -4
  26. package/Menu/index.js +3 -5
  27. package/Message/index.d.ts +13 -0
  28. package/Message/index.js +3 -4
  29. package/Modal/index.js +3 -5
  30. package/MultiBox/index.js +3 -5
  31. package/Notification/index.d.ts +52 -0
  32. package/Notification/index.js +15 -0
  33. package/PageHeader/index.js +3 -5
  34. package/Pagination/index.js +3 -5
  35. package/ParauiProvider/index.d.ts +1 -0
  36. package/ParauiProvider/index.js +3 -4
  37. package/PopConfirm/index.js +3 -5
  38. package/Popover/index.js +2 -2
  39. package/Popper/index.js +2 -2
  40. package/Radio/index.js +3 -4
  41. package/RadioGroup/index.js +3 -4
  42. package/Search/index.js +3 -5
  43. package/Select/index.d.ts +12 -4
  44. package/Select/index.js +3 -5
  45. package/SingleBox/index.js +3 -5
  46. package/Slider/index.js +3 -4
  47. package/Split/index.js +3 -4
  48. package/Stepper/index.js +3 -4
  49. package/Switch/index.js +3 -4
  50. package/Table/index.js +3 -5
  51. package/Tabs/index.js +3 -4
  52. package/Tag/TagGroup.d.ts +57 -0
  53. package/Tag/index.d.ts +34 -0
  54. package/Tag/index.js +14 -0
  55. package/TextField/index.js +3 -5
  56. package/TimePicker/index.js +3 -3
  57. package/Timeline/index.js +3 -4
  58. package/ToggleButton/index.js +3 -5
  59. package/Tooltip/index.js +3 -4
  60. package/Transfer/index.js +3 -5
  61. package/Tree/index.js +3 -5
  62. package/Upload/index.js +3 -5
  63. package/cdn/Accordion/index.js +25 -0
  64. package/cdn/AutoBox/index.js +16 -0
  65. package/cdn/AutoTips/index.js +40 -0
  66. package/cdn/Breadcrumbs/index.js +16 -0
  67. package/cdn/Button/index.js +40 -0
  68. package/cdn/ButtonGroup/index.js +40 -0
  69. package/cdn/Cascader/index.js +14 -0
  70. package/cdn/Checkbox/index.js +1 -0
  71. package/cdn/CheckboxGroup/index.js +1 -0
  72. package/cdn/ColorPicker/index.js +1 -0
  73. package/cdn/ComboSelect/index.js +61 -0
  74. package/cdn/Container/index.js +1 -0
  75. package/cdn/DatePicker/index.js +53 -0
  76. package/cdn/Desktop/index.js +24 -0
  77. package/cdn/Drawer/index.js +6 -0
  78. package/cdn/Form/index.js +45 -0
  79. package/cdn/FormItem/index.js +45 -0
  80. package/cdn/FunctionModal/index.js +40 -0
  81. package/cdn/GlobalContext/index.js +1 -0
  82. package/cdn/Help/index.js +40 -0
  83. package/cdn/IconList/index.js +16 -0
  84. package/cdn/InputLang/index.js +40 -0
  85. package/cdn/InputNumber/index.js +40 -0
  86. package/cdn/Loading/index.js +1 -0
  87. package/cdn/Menu/index.js +16 -0
  88. package/cdn/Message/index.js +1 -0
  89. package/cdn/Modal/index.js +40 -0
  90. package/cdn/MultiBox/index.js +40 -0
  91. package/cdn/Notification/index.js +14 -0
  92. package/cdn/PageHeader/index.js +40 -0
  93. package/cdn/Pagination/index.js +45 -0
  94. package/cdn/ParauiProvider/index.js +9 -0
  95. package/cdn/PopConfirm/index.js +40 -0
  96. package/cdn/Popover/index.js +17 -0
  97. package/cdn/Popper/index.js +26 -0
  98. package/cdn/Radio/index.js +1 -0
  99. package/cdn/RadioGroup/index.js +1 -0
  100. package/cdn/Search/index.js +40 -0
  101. package/cdn/Select/index.js +40 -0
  102. package/cdn/SingleBox/index.js +40 -0
  103. package/cdn/Slider/index.js +14 -0
  104. package/cdn/Split/index.js +1 -0
  105. package/cdn/Stepper/index.js +24 -0
  106. package/cdn/Styles/fonts/SourceHanSansCN-Light.css +8 -0
  107. package/cdn/Styles/fonts/SourceHanSansCN-Light.otf +0 -0
  108. package/cdn/Styles/fonts/SourceHanSansCN-Medium.css +8 -0
  109. package/cdn/Styles/fonts/SourceHanSansCN-Medium.otf +0 -0
  110. package/cdn/Styles/fonts/SourceHanSansCN-Regular.css +8 -0
  111. package/cdn/Styles/fonts/SourceHanSansCN-Regular.otf +0 -0
  112. package/cdn/Styles/index.scss +63 -0
  113. package/cdn/Styles/index.ts +1 -0
  114. package/cdn/Styles/normalize.scss +348 -0
  115. package/cdn/Styles/theme.scss +57 -0
  116. package/cdn/Switch/index.js +6 -0
  117. package/cdn/Table/index.js +45 -0
  118. package/cdn/Tabs/index.js +48 -0
  119. package/cdn/Tag/index.js +1 -0
  120. package/cdn/TextField/index.js +40 -0
  121. package/cdn/TimePicker/index.js +53 -0
  122. package/cdn/Timeline/index.js +16 -0
  123. package/cdn/ToggleButton/index.js +40 -0
  124. package/cdn/Tooltip/index.js +40 -0
  125. package/cdn/Transfer/index.js +40 -0
  126. package/cdn/Tree/index.js +53 -0
  127. package/cdn/Upload/index.js +45 -0
  128. package/index.d.ts +3 -0
  129. package/index.js +3 -3
  130. package/package.json +7 -3
  131. package/style.css +8 -4
  132. package/AutoBox/index.css +0 -2
  133. package/AutoTips/index.css +0 -4
  134. package/Breadcrumbs/index.css +0 -2
  135. package/Button/index.css +0 -4
  136. package/ButtonGroup/index.css +0 -6
  137. package/Cascader/index.css +0 -2
  138. package/Checkbox/index.css +0 -2
  139. package/CheckboxGroup/index.css +0 -4
  140. package/ColorPicker/index.css +0 -2
  141. package/ComboSelect/index.css +0 -28
  142. package/Container/index.css +0 -2
  143. package/DatePicker/index.css +0 -6
  144. package/Desktop/index.css +0 -2
  145. package/Drawer/index.css +0 -2
  146. package/Form/index.css +0 -26
  147. package/FormItem/index.css +0 -26
  148. package/FunctionModal/index.css +0 -12
  149. package/Help/index.css +0 -4
  150. package/IconList/index.css +0 -2
  151. package/InputLang/index.css +0 -12
  152. package/InputNumber/index.css +0 -10
  153. package/Loading/index.css +0 -2
  154. package/Menu/index.css +0 -2
  155. package/Message/index.css +0 -2
  156. package/Modal/index.css +0 -10
  157. package/MultiBox/index.css +0 -10
  158. package/PageHeader/index.css +0 -6
  159. package/Pagination/index.css +0 -12
  160. package/ParauiProvider/index.css +0 -2
  161. package/PopConfirm/index.css +0 -6
  162. package/Radio/index.css +0 -2
  163. package/RadioGroup/index.css +0 -4
  164. package/Search/index.css +0 -12
  165. package/Select/index.css +0 -6
  166. package/SingleBox/index.css +0 -10
  167. package/Slider/index.css +0 -2
  168. package/Split/index.css +0 -2
  169. package/Stepper/index.css +0 -2
  170. package/Switch/index.css +0 -2
  171. package/Table/index.css +0 -20
  172. package/Tabs/index.css +0 -4
  173. package/TextField/index.css +0 -8
  174. package/TimePicker/index.css +0 -6
  175. package/Timeline/index.css +0 -2
  176. package/ToggleButton/index.css +0 -6
  177. package/Tooltip/index.css +0 -2
  178. package/Transfer/index.css +0 -16
  179. package/Tree/index.css +0 -8
  180. package/Upload/index.css +0 -12
@@ -1,10 +1,9 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("para-lib"),require("react")):"function"==typeof define&&define.amd?define(["para-lib","react"],r):"object"==typeof exports?exports.ParaUI=r(require("para-lib"),require("react")):e.ParaUI=r(e["para-lib"],e.react)}(self,(function(e,r){return function(){"use strict";var o={7418: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
- o(7418);var t=o(9297),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),a("react.fragment")}var c=t.__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 l(e,r,o){var t,a={},l=null,s=null;for(t in void 0!==o&&(l=""+o),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)i.call(r,t)&&!u.hasOwnProperty(t)&&(a[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===a[t]&&(a[t]=r[t]);return{$$typeof:n,type:e,key:l,ref:s,props:a,_owner:c.current}}r.jsx=l,r.jsxs=l},5893:function(e,r,o){e.exports=o(5251)},9690:function(e,r,o){var t=o(5893),n=o(9297),a=function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a.apply(this,arguments)};r.default=function(e){var r=e.className,o=void 0===r?"":r,c=e.label,i=void 0===c?"":c,u=e.size,l=void 0===u?"large":u,s=e.disabled,f=void 0!==s&&s,d=e.indeterminate,p=void 0!==d&&d,v=e.onChange,b=(0,n.useState)(!1),h=b[0],x=b[1];(0,n.useEffect)((function(){void 0!==e.defaultChecked&&x(e.defaultChecked)}),[]),(0,n.useEffect)((function(){void 0!==e.checked&&x(e.checked)}),[e.checked]);var y;return(0,t.jsxs)("label",a({className:(y="paraui-check-box",o&&(y+=" "+o),l&&(y+=" check-box-"+l),f&&(y+=" check-box-disabled"),p?y+=" check-box-indeterminate":h&&(y+=" check-box-checked"),y),onClick:function(r){if(r.preventDefault(),!f){if(p)return void 0===e.checked&&x(!0),void(v&&v(r,!0));void 0===e.checked&&x(!h),r.target.checked=!h,r.target.value=!h,v&&v(r,!h)}}},{children:[(0,t.jsxs)("span",a({className:"paraui-checkbox-box"},{children:[(0,t.jsx)("input",a({type:"checkbox",value:h},e.inputProps),void 0),(0,t.jsx)("span",{className:"paraui-checkbox-box-inner"},void 0)]}),void 0),i&&(0,t.jsx)("span",a({className:"paraui-check-box-label"},{children:i}),void 0)]}),void 0)}},3475:function(r){r.exports=e},9297:function(e){e.exports=r}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},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,{CheckboxGroup:function(){return i}});var e=n(9297),r=n(5893),o=n(9690),t=n(3475),c=function(){return c=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},c.apply(this,arguments)},i=function(n){var a=n.label,i=void 0===a?"":a,u=n.size,l=void 0===u?"large":u,s=n.row,f=void 0===s||s,d=n.disabled,p=void 0!==d&&d,v=n.required,b=void 0!==v&&v,h=n.error,x=void 0!==h&&h,y=n.helperText,j=void 0===y?"":y,g=n.id,k=void 0===g?"name":g,O=n.list,m=n.className,_=void 0===m?"":m,w=n.onChange,P=(0,e.useState)([]),N=P[0],S=P[1];(0,e.useEffect)((function(){void 0!==n.defaultValue&&S(n.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==n.value&&S(n.value)}),[n.value]);var E,C=function(e){return function(r,o){var a=e[k],c=(0,t.DeepClone)(N);if(o)c.push(a);else{var i=c.indexOf(a);c.splice(i,1)}void 0===n.value&&S(c),w&&w(c)}};return(0,r.jsxs)("div",c({className:(E="paraui-check-box-group",_&&(E+=" "+_),l&&(E+=" check-box-group-"+l),x&&(E+=" check-box-group-error"),p&&(E+=" check-box-group-disabled"),f&&(E+=" check-box-group-row"),E)},{children:[(0,r.jsxs)("label",c({className:"check-box-group-label"},{children:[i,b&&(0,r.jsx)("span",c({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,r.jsx)("div",c({className:"check-box-group-content"},{children:O.map((function(r,t){return(0,e.createElement)(o.default,c({},r,{checked:-1!==N.indexOf(r[k]),size:l,disabled:Boolean(p||r.disabled),key:t,onChange:C(r)}))}))}),void 0),j&&(0,r.jsx)("p",c({className:"check-box-group-error-text"},{children:j}),void 0)]}),void 0)};a.default=i}(),a}()}));
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}()}));
@@ -1 +1 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react-color")):"function"==typeof define&&define.amd?define(["react-color"],r):"object"==typeof exports?exports.ParaUI=r(require("react-color")):e.ParaUI=r(e["react-color"])}(self,(function(e){return function(){"use strict";var r={6519:function(r){r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var c=t[e]={exports:{}};return r[e](c,c.exports,o),c.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){o.r(n),o.d(n,{ChromePicker:function(){return e.ChromePicker},CompactPicker:function(){return e.CompactPicker},SwatchesPicker:function(){return e.SwatchesPicker}});var e=o(6519);n.default=e.SketchPicker}(),n}()}));
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}()}));