@para-ui/core 1.1.26 → 2.0.0

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 (129) hide show
  1. package/AutoBox/index.d.ts +1 -0
  2. package/AutoBox/index.js +3 -4
  3. package/AutoTips/index.d.ts +1 -0
  4. package/AutoTips/index.js +3 -4
  5. package/Breadcrumbs/index.d.ts +1 -0
  6. package/Breadcrumbs/index.js +3 -4
  7. package/Button/SplitButton.d.ts +42 -0
  8. package/Button/index.d.ts +28 -7
  9. package/Button/index.js +3 -5
  10. package/ButtonGroup/index.d.ts +13 -18
  11. package/ButtonGroup/index.js +3 -5
  12. package/Cascader/index.d.ts +52 -0
  13. package/Cascader/index.js +28 -0
  14. package/Checkbox/index.d.ts +23 -7
  15. package/Checkbox/index.js +3 -4
  16. package/CheckboxGroup/index.d.ts +5 -2
  17. package/CheckboxGroup/index.js +3 -4
  18. package/ComboSelect/WithTabsCombo/index.d.ts +3 -2
  19. package/ComboSelect/WithTabsCombo/interface.d.ts +6 -1
  20. package/ComboSelect/index.d.ts +8 -7
  21. package/ComboSelect/index.js +8 -3
  22. package/ComboSelect/interface.d.ts +3 -0
  23. package/ComboSelect/utils.d.ts +4 -0
  24. package/Container/index.js +1 -1
  25. package/DatePicker/index.js +3 -3
  26. package/Desktop/index.js +1 -1
  27. package/Drawer/index.d.ts +10 -4
  28. package/Drawer/index.js +20 -1
  29. package/Drawer/interface.d.ts +63 -0
  30. package/Form/index.js +3 -5
  31. package/FormItem/compoments/formFile/index.d.ts +1 -0
  32. package/FormItem/index.d.ts +46 -45
  33. package/FormItem/index.js +3 -5
  34. package/FunctionModal/index.js +3 -3
  35. package/IconList/index.js +3 -3
  36. package/InputLang/index.d.ts +3 -0
  37. package/InputLang/index.js +3 -5
  38. package/InputNumber/index.d.ts +13 -31
  39. package/InputNumber/index.js +3 -5
  40. package/Menu/footerExpansion.d.ts +4 -4
  41. package/Menu/index.d.ts +5 -4
  42. package/Menu/index.js +3 -5
  43. package/Menu/interface.d.ts +12 -125
  44. package/Menu/logo.d.ts +4 -4
  45. package/Menu/verticalMenuList.d.ts +4 -4
  46. package/Message/index.d.ts +8 -0
  47. package/Message/index.js +3 -3
  48. package/Modal/Confirm/index.d.ts +3 -4
  49. package/Modal/index.d.ts +9 -11
  50. package/Modal/index.js +3 -5
  51. package/MultiBox/index.d.ts +3 -0
  52. package/MultiBox/index.js +3 -5
  53. package/{Menu/horizontalMeunList.d.ts → PageHeader/horizontalMeun.d.ts} +2 -2
  54. package/{Menu → PageHeader}/horizontalMeunRight.d.ts +4 -4
  55. package/PageHeader/index.d.ts +10 -0
  56. package/PageHeader/index.js +14 -0
  57. package/PageHeader/interface.d.ts +163 -0
  58. package/Pagination/index.d.ts +6 -0
  59. package/Pagination/index.js +8 -5
  60. package/ParauiProvider/index.js +3 -3
  61. package/PopConfirm/index.d.ts +6 -5
  62. package/PopConfirm/index.js +3 -5
  63. package/Popover/index.js +3 -3
  64. package/Radio/index.d.ts +24 -10
  65. package/Radio/index.js +3 -4
  66. package/RadioGroup/index.d.ts +8 -4
  67. package/RadioGroup/index.js +3 -4
  68. package/Search/index.d.ts +3 -0
  69. package/Search/index.js +3 -5
  70. package/Select/index.d.ts +5 -4
  71. package/Select/index.js +3 -5
  72. package/SingleBox/index.d.ts +6 -1
  73. package/SingleBox/index.js +3 -5
  74. package/Slider/index.d.ts +13 -2
  75. package/Slider/index.js +15 -1
  76. package/Slider/interface.d.ts +100 -0
  77. package/Stepper/index.d.ts +1 -0
  78. package/Stepper/index.js +3 -4
  79. package/Styles/index.scss +3 -8
  80. package/Styles/normalize.scss +348 -0
  81. package/Styles/theme.scss +48 -0
  82. package/Switch/index.d.ts +52 -10
  83. package/Switch/index.js +3 -4
  84. package/Table/index.d.ts +1 -0
  85. package/Table/index.js +8 -5
  86. package/Table/tableBodyInterface.d.ts +1 -1
  87. package/Tabs/index.d.ts +9 -9
  88. package/Tabs/index.js +3 -4
  89. package/TextField/index.d.ts +4 -5
  90. package/TextField/index.js +3 -5
  91. package/TimePicker/index.js +3 -3
  92. package/Timeline/index.d.ts +8 -7
  93. package/Timeline/index.js +3 -4
  94. package/ToggleButton/ToggleButtonGroup.d.ts +44 -0
  95. package/ToggleButton/index.d.ts +44 -0
  96. package/ToggleButton/index.js +14 -0
  97. package/{ToolTip → Tooltip}/index.d.ts +4 -3
  98. package/Tooltip/index.js +15 -0
  99. package/Transfer/index.d.ts +17 -0
  100. package/Transfer/index.js +14 -0
  101. package/Tree/OperateBar/index.d.ts +11 -2
  102. package/Tree/index.d.ts +1 -0
  103. package/Tree/index.js +3 -3
  104. package/Tree/interface.d.ts +12 -10
  105. package/Tree/utils/closestPolyfill.d.ts +0 -0
  106. package/Upload/Dragger/index.d.ts +10 -0
  107. package/Upload/ErroTip/index.d.ts +13 -0
  108. package/Upload/ImageUpload/index.d.ts +3 -5
  109. package/Upload/UploadList/index.d.ts +1 -0
  110. package/Upload/index.d.ts +11 -9
  111. package/Upload/index.js +3 -5
  112. package/Upload/interface.d.ts +22 -14
  113. package/index.d.ts +5 -1
  114. package/index.js +16 -3
  115. package/package.json +8 -2
  116. package/Breadcrumbs/theme.d.ts +0 -42
  117. package/Button/theme.d.ts +0 -216
  118. package/ButtonGroup/SplitButton.d.ts +0 -17
  119. package/Checkbox/iconMapping.d.ts +0 -2
  120. package/ComboSelect/styles.d.ts +0 -6
  121. package/Menu/horizontalMenu.d.ts +0 -9
  122. package/Menu/verticalFooter.d.ts +0 -9
  123. package/Menu/verticalMenu.d.ts +0 -9
  124. package/ParauiProvider/theme/paraTheme.d.ts +0 -3
  125. package/ParauiProvider/theme/styleConfig.d.ts +0 -74
  126. package/Radio/iconMapping.d.ts +0 -2
  127. package/Stepper/theme.d.ts +0 -56
  128. package/Tabs/theme.d.ts +0 -53
  129. package/ToolTip/index.js +0 -16
package/Stepper/index.js CHANGED
@@ -1,10 +1,9 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@material-ui/core/styles"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@material-ui/core/styles","@para-ui/icons/One","@para-ui/icons/Two","@para-ui/icons/Three","@para-ui/icons/Four","@para-ui/icons/Five","@para-ui/icons/Six","@para-ui/icons/Seven","@para-ui/icons/Eight","@para-ui/icons/Nine","@para-ui/icons/Check"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@material-ui/core/styles"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@material-ui/core/styles"],e["@para-ui/icons/One"],e["@para-ui/icons/Two"],e["@para-ui/icons/Three"],e["@para-ui/icons/Four"],e["@para-ui/icons/Five"],e["@para-ui/icons/Six"],e["@para-ui/icons/Seven"],e["@para-ui/icons/Eight"],e["@para-ui/icons/Nine"],e["@para-ui/icons/Check"])}(self,(function(e,r,i,t,n,o,a,u,c,s,p,l,f){return function(){"use strict";var d={4927:function(e,r,i){function t(e){var r,i,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(i=t(e[r]))&&(n&&(n+=" "),n+=i);else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function n(){for(var e,r,i=0,n="";i<arguments.length;)(e=arguments[i++])&&(r=t(e))&&(n&&(n+=" "),n+=r);return n}i.d(r,{Z:function(){return n}})},4126:function(e){
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/One","@para-ui/icons/Two","@para-ui/icons/Three","@para-ui/icons/Four","@para-ui/icons/Five","@para-ui/icons/Six","@para-ui/icons/Seven","@para-ui/icons/Eight","@para-ui/icons/Nine","@para-ui/icons/Check"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/One"),require("@para-ui/icons/Two"),require("@para-ui/icons/Three"),require("@para-ui/icons/Four"),require("@para-ui/icons/Five"),require("@para-ui/icons/Six"),require("@para-ui/icons/Seven"),require("@para-ui/icons/Eight"),require("@para-ui/icons/Nine"),require("@para-ui/icons/Check")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@para-ui/icons/One"],e["@para-ui/icons/Two"],e["@para-ui/icons/Three"],e["@para-ui/icons/Four"],e["@para-ui/icons/Five"],e["@para-ui/icons/Six"],e["@para-ui/icons/Seven"],e["@para-ui/icons/Eight"],e["@para-ui/icons/Nine"],e["@para-ui/icons/Check"])}(self,(function(e,r,t,n,i,o,a,c,p,s,u,l){return function(){var f={4927:function(e,r,t){"use strict";function n(e){var r,t,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(i&&(i+=" "),i+=t);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function i(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(i&&(i+=" "),i+=r);return i}t.d(r,{Z:function(){return i}})},2984:function(e,r,t){(r=t(9937)(!1)).push([e.id,".paraui-stepper-step+div .paraui-stepper-connector>span{border:0;height:1px;background:linear-gradient(90deg, #3d66f8, #7793f9 74%, #d8dffa)}.paraui-stepper .paraui-stepper-step-label{margin-top:8px;color:rgba(46,55,67,0.701961);font-size:14px}.paraui-stepper .paraui-stepper-step-label--active{color:#3666d6}.paraui-stepper .paraui-stepper-step-label--completed{color:#2e3743}.paraui-stepper-step-icon{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;background-color:rgba(171,176,185,0.121569);border-radius:50%}.paraui-stepper-step-icon>svg{color:rgba(46,55,67,0.701961)}.paraui-stepper-step-icon--active{background-color:#3666d6}.paraui-stepper-step-icon--active>svg{color:#fff}.paraui-stepper-step-icon--completed{background-color:rgba(54,102,214,0.8)}.paraui-stepper-step-icon--completed>svg{color:#fff}.paraui-stepper-step-icon--one>svg{margin-left:-2px}.paraui-stepper .paraui-stepper-connector{top:15px;left:calc(-50% + 25px);right:calc(50% + 25px)}.paraui-stepper .paraui-stepper-connector>span{border-top:1px dashed rgba(171,176,185,0.4)}.paraui-stepper .paraui-stepper-connector--active>span,.paraui-stepper .paraui-stepper-connector--completed>span{border-top:1px solid rgba(171,176,185,0.4)}\n",""]),e.exports=r},9937:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var i=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),p="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(p," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([i]).join("\n")}var a,c,p;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);n&&i[p[0]]||(t&&(p[2]?p[2]="".concat(t," and ").concat(p[2]):p[2]=t),r.push(p))}},r}},4126: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,i=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={},i=0;i<10;i++)r["_"+String.fromCharCode(i)]=i;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,o){for(var a,u,c=n(e),s=1;s<arguments.length;s++){for(var p in a=Object(arguments[s]))i.call(a,p)&&(c[p]=a[p]);if(r){u=r(a);for(var l=0;l<u.length;l++)t.call(a,u[l])&&(c[u[l]]=a[u[l]])}}return c}},9524:function(e,r,i){
6
+ */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(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={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,c,p=i(e),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))t.call(a,u)&&(p[u]=a[u]);if(r){c=r(a);for(var l=0;l<c.length;l++)n.call(a,c[l])&&(p[c[l]]=a[c[l]])}}return p}},9524:function(e,r,t){"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,i=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
- i(4126);var t=i(9297),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;n=o("react.element"),o("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,i){var t,o={},s=null,p=null;for(t in void 0!==i&&(s=""+i),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(p=r.ref),r)u.call(r,t)&&!c.hasOwnProperty(t)&&(o[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===o[t]&&(o[t]=r[t]);return{$$typeof:n,type:e,key:s,ref:p,props:o,_owner:a.current}}r.jsx=s},7712:function(e,r,i){e.exports=i(9524)},853:function(e,r){var i={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 i}},1731:function(e){e.exports=r},8604:function(e){e.exports=i},6110:function(e){e.exports=f},1861:function(e){e.exports=p},2873:function(e){e.exports=u},8764:function(e){e.exports=a},1709:function(e){e.exports=l},5283:function(e){e.exports=t},1341:function(e){e.exports=s},763:function(e){e.exports=c},7214:function(e){e.exports=o},7139:function(e){e.exports=n},9297:function(r){r.exports=e}},g={};function v(e){var r=g[e];if(void 0!==r)return r.exports;var i=g[e]={exports:{}};return d[e](i,i.exports,v),i.exports}v.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(r,{a:r}),r},v.d=function(e,r){for(var i in r)v.o(r,i)&&!v.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},v.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var h={};return function(){v.r(h),v.d(h,{Stepper:function(){return I},default:function(){return B}});var e=v(7712),r=v(9297),i=v.n(r),t=v(1731),n=v(8604),o=v(4927),a=v(5283),u=v.n(a),c=v(7139),s=v.n(c),p=v(7214),l=v.n(p),f=v(8764),d=v.n(f),g=v(2873),b=v.n(g),m=v(763),y=v.n(m),x=v(1341),F=v.n(x),j=v(1861),S=v.n(j),O=v(1709),C=v.n(O),w=v(6110),q=v.n(w),E={1:(0,e.jsx)(u(),{},void 0),2:(0,e.jsx)(s(),{},void 0),3:(0,e.jsx)(l(),{},void 0),4:(0,e.jsx)(d(),{},void 0),5:(0,e.jsx)(b(),{},void 0),6:(0,e.jsx)(y(),{},void 0),7:(0,e.jsx)(F(),{},void 0),8:(0,e.jsx)(S(),{},void 0),9:(0,e.jsx)(C(),{},void 0),done:(0,e.jsx)(q(),{},void 0)},_=v(853),k=function(){return k=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++)for(var n in r=arguments[i])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},k.apply(this,arguments)},D=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(i[t[n]]=e[t[n]])}return i},P=(0,_.Z)(),L=(0,n.makeStyles)((function(e){return(0,n.createStyles)({gradientLine:{"& + div":{"& > div:first-child > span":{border:0,height:1,backgroundImage:"linear-gradient(to right,"+P.thmemColor.primary+" 70%,"+P.thmemColor.thirdary+")"}}},gradientLineVertical:{"& + div":{"& > span":{border:0,height:1,backgroundImage:"linear-gradient(to right,"+P.thmemColor.primary+" 70%,"+P.thmemColor.thirdary+")"}}},gradientLineAlternative:{"& + div":{color:"red","& > span":{border:0,height:1,backgroundImage:"linear-gradient(to right,"+P.thmemColor.primary+" 70%,"+P.thmemColor.thirdary+")"}}}})})),N=(0,n.makeStyles)({root:{width:30,height:30,display:"flex",backgroundColor:P.bgBorderColor.universal,zIndex:1,borderRadius:"50%",justifyContent:"center",alignItems:"center",boxShadow:P.boxShadow,"& svg":{width:16,height:16,fill:P.textColor.secondary}},active:{backgroundColor:P.thmemColor.primary,"& svg":{width:16,height:16,fill:P.textColor.white}},completed:{backgroundColor:P.bgBorderColor.bg4,"& svg":{width:16,height:16,fill:P.textColor.white}}});function T(r){var i,t=N(),n=r.active,a=r.completed,u=r.mode,c=r.icon,s=r.iconComp;return(0,e.jsx)("div",k({className:(0,o.Z)(t.root,(i={},i[t.active]=n,i[t.completed]=a,i))},{children:a?E.done:"number"===u?E[String(c)]:"icon"===u?s||E.done:void 0}),void 0)}var I=function(r){var n=L(),a=r.activeStep,u=void 0===a?0:a,c=r.mode,s=void 0===c?"number":c,p=r.steps,l=void 0===p?[]:p,f=r.alternativeLabel,d=void 0===f||f,g=r.orientation,v=void 0===g?"horizontal":g,h=r.className,b=D(r,["activeStep","mode","steps","alternativeLabel","orientation","className"]),m=function(e){var r;return(0,o.Z)(((r={})[n.gradientLine]=u===e,r))},y=function(r){return i().forwardRef((function(i,t){return(0,e.jsx)(T,k({mode:s,iconComp:r.icon},i,{ref:t}),void 0)}))};return(0,e.jsx)(t.Stepper,k({className:(0,o.Z)("paraui-stepper",h),activeStep:u,alternativeLabel:d,orientation:v},b,{connector:(0,e.jsx)(t.StepConnector,{},void 0)},{children:(null==l?void 0:l.length)?l.map((function(r,i){var n="",o={};return"number"===s?(n=r,o.label=n):"object"==typeof r&&(n=r.label||"",o=k({},r)),(0,e.jsx)(t.Step,k({className:m(i)},{children:(0,e.jsx)(t.StepLabel,k({StepIconComponent:y(o)},{children:n}),void 0)}),i)})):null}),void 0)},B=I}(),h}()}));
15
+ t(4126);var n=t(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!p.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:i,type:e,key:s,ref:u,props:o,_owner:a.current}}r.jsx=s},7712:function(e,r,t){"use strict";e.exports=t(9524)},676:function(e,r,t){var n=t(2387),i=t(2984);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};n(i,o);e.exports=i.locals||{}},2387:function(e,r,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function p(e,r){for(var t={},n=[],i=0;i<e.length;i++){var o=e[i],p=r.base?o[0]+r.base:o[0],s=t[p]||0,u="".concat(p," ").concat(s);t[p]=s+1;var l=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==l?(a[l].references++,a[l].updater(f)):a.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var u,l=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(r,i);else{var o=document.createTextNode(i),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(o,a[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,i;if(r.singleton){var o=b++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),i=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else i()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=i());var t=p(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var i=c(t[n]);a[i].references--}for(var o=p(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=o}}}},1731:function(e){"use strict";e.exports=r},6110:function(e){"use strict";e.exports=l},1861:function(e){"use strict";e.exports=s},2873:function(e){"use strict";e.exports=a},8764:function(e){"use strict";e.exports=o},1709:function(e){"use strict";e.exports=u},5283:function(e){"use strict";e.exports=t},1341:function(e){"use strict";e.exports=p},763:function(e){"use strict";e.exports=c},7214:function(e){"use strict";e.exports=i},7139:function(e){"use strict";e.exports=n},9297:function(r){"use strict";r.exports=e}},d={};function v(e){var r=d[e];if(void 0!==r)return r.exports;var t=d[e]={id:e,exports:{}};return f[e](t,t.exports,v),t.exports}v.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(r,{a:r}),r},v.d=function(e,r){for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var b={};return function(){"use strict";v.r(b),v.d(b,{Stepper:function(){return P},default:function(){return k}});var e=v(7712),r=v(9297),t=v.n(r),n=v(1731),i=v(4927),o=v(5283),a=v.n(o),c=v(7139),p=v.n(c),s=v(7214),u=v.n(s),l=v(8764),f=v.n(l),d=v(2873),m=v.n(d),h=v(763),y=v.n(h),g=v(1341),x=v.n(g),j=v(1861),O=v.n(j),S=v(1709),w=v.n(S),q=v(6110),C=v.n(q),_={1:(0,e.jsx)(a(),{},void 0),2:(0,e.jsx)(p(),{},void 0),3:(0,e.jsx)(u(),{},void 0),4:(0,e.jsx)(f(),{},void 0),5:(0,e.jsx)(m(),{},void 0),6:(0,e.jsx)(y(),{},void 0),7:(0,e.jsx)(x(),{},void 0),8:(0,e.jsx)(O(),{},void 0),9:(0,e.jsx)(w(),{},void 0),done:(0,e.jsx)(C(),{},void 0)},N=(v(676),function(){return N=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},N.apply(this,arguments)}),T=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t};function E(r){var t=r.active,n=r.completed,o=r.mode,a=r.icon,c=r.iconComp,p=r.index;return(0,e.jsx)("div",N({className:(0,i.Z)("paraui-stepper-step-icon",{"paraui-stepper-step-icon--active":t,"paraui-stepper-step-icon--completed":n,"paraui-stepper-step-icon--one":"number"===o&&0===p&&t})},{children:n?_.done:"number"===o?_[String(a)]:"icon"===o?c||_.done:void 0}),void 0)}var P=function(r){var o=r.activeStep,a=void 0===o?0:o,c=r.mode,p=void 0===c?"number":c,s=r.steps,u=void 0===s?[]:s,l=r.alternativeLabel,f=void 0===l||l,d=r.orientation,v=void 0===d?"horizontal":d,b=r.className,m=T(r,["activeStep","mode","steps","alternativeLabel","orientation","className"]),h=function(r,n){return t().forwardRef((function(t,i){return(0,e.jsx)(E,N({mode:p,iconComp:r.icon,index:n},t,{ref:i}),void 0)}))};return(0,e.jsx)(n.Stepper,N({className:(0,i.Z)("paraui-stepper",b),activeStep:a,alternativeLabel:f,orientation:v},m,{connector:(0,e.jsx)(n.StepConnector,{classes:{root:"paraui-stepper-connector",active:"paraui-stepper-connector--active",completed:"paraui-stepper-connector--completed"}},void 0)},{children:(null==u?void 0:u.length)?u.map((function(r,t){var o="",c={};return"number"===p?(o=r,c.label=o):"object"==typeof r&&(o=r.label||"",c=N({},r)),(0,e.jsx)(n.Step,N({className:(0,i.Z)(a===t&&"paraui-stepper-step")},{children:(0,e.jsx)(n.StepLabel,N({StepIconComponent:h(c,t),classes:{label:"paraui-stepper-step-label",active:"paraui-stepper-step-label--active",completed:"paraui-stepper-step-label--completed"}},{children:o}),void 0)}),t)})):null}),void 0)},k=P}(),b}()}));
package/Styles/index.scss CHANGED
@@ -1,18 +1,13 @@
1
- //@import "fonts/SourceHanSansCN-Normal.css";
1
+ @import "normalize";
2
+ @import "theme";
2
3
 
3
4
  * {
4
- font-family: "Microsoft Yahei, Helvetica, sans-serif;";
5
+ font-family: $font-family;
5
6
  margin: 0;
6
7
  padding: 0;
7
8
  box-sizing: border-box;
8
9
  }
9
10
 
10
- body {
11
- -webkit-font-smoothing: antialiased;
12
- -moz-osx-font-smoothing: grayscale;
13
- background-color: transparent;
14
- }
15
-
16
11
  ol, ul {
17
12
  list-style: none;
18
13
  }
@@ -0,0 +1,348 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ -webkit-text-size-adjust: 100%; /* 2 */
13
+ }
14
+
15
+ /* Sections
16
+ ========================================================================== */
17
+
18
+ /**
19
+ * Remove the margin in all browsers.
20
+ */
21
+
22
+ body {
23
+ margin: 0;
24
+ }
25
+
26
+ /**
27
+ * Render the `main` element consistently in IE.
28
+ */
29
+
30
+ main {
31
+ display: block;
32
+ }
33
+
34
+ /**
35
+ * Correct the font size and margin on `h1` elements within `section` and
36
+ * `article` contexts in Chrome, Firefox, and Safari.
37
+ */
38
+
39
+ h1 {
40
+ font-size: 2em;
41
+ margin: 0.67em 0;
42
+ }
43
+
44
+ /* Grouping content
45
+ ========================================================================== */
46
+
47
+ /**
48
+ * 1. Add the correct box sizing in Firefox.
49
+ * 2. Show the overflow in Edge and IE.
50
+ */
51
+
52
+ hr {
53
+ box-sizing: content-box; /* 1 */
54
+ height: 0; /* 1 */
55
+ overflow: visible; /* 2 */
56
+ }
57
+
58
+ /**
59
+ * 1. Correct the inheritance and scaling of font size in all browsers.
60
+ * 2. Correct the odd `em` font sizing in all browsers.
61
+ */
62
+
63
+ pre {
64
+ font-family: monospace, monospace; /* 1 */
65
+ font-size: 1em; /* 2 */
66
+ }
67
+
68
+ /* Text-level semantics
69
+ ========================================================================== */
70
+
71
+ /**
72
+ * Remove the gray background on active links in IE 10.
73
+ */
74
+
75
+ a {
76
+ background-color: transparent;
77
+ }
78
+
79
+ /**
80
+ * 1. Remove the bottom border in Chrome 57-
81
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
82
+ */
83
+
84
+ abbr[title] {
85
+ border-bottom: none; /* 1 */
86
+ text-decoration: underline; /* 2 */
87
+ text-decoration: underline dotted; /* 2 */
88
+ }
89
+
90
+ /**
91
+ * Add the correct font weight in Chrome, Edge, and Safari.
92
+ */
93
+
94
+ b,
95
+ strong {
96
+ font-weight: bolder;
97
+ }
98
+
99
+ /**
100
+ * 1. Correct the inheritance and scaling of font size in all browsers.
101
+ * 2. Correct the odd `em` font sizing in all browsers.
102
+ */
103
+
104
+ code,
105
+ kbd,
106
+ samp {
107
+ font-family: monospace, monospace; /* 1 */
108
+ font-size: 1em; /* 2 */
109
+ }
110
+
111
+ /**
112
+ * Add the correct font size in all browsers.
113
+ */
114
+
115
+ small {
116
+ font-size: 80%;
117
+ }
118
+
119
+ /**
120
+ * Prevent `sub` and `sup` elements from affecting the line height in
121
+ * all browsers.
122
+ */
123
+
124
+ sub,
125
+ sup {
126
+ font-size: 75%;
127
+ line-height: 0;
128
+ position: relative;
129
+ vertical-align: baseline;
130
+ }
131
+
132
+ sub {
133
+ bottom: -0.25em;
134
+ }
135
+
136
+ sup {
137
+ top: -0.5em;
138
+ }
139
+
140
+ /* Embedded content
141
+ ========================================================================== */
142
+
143
+ /**
144
+ * Remove the border on images inside links in IE 10.
145
+ */
146
+
147
+ img {
148
+ border-style: none;
149
+ }
150
+
151
+ /* Forms
152
+ ========================================================================== */
153
+
154
+ /**
155
+ * 1. Change the font styles in all browsers.
156
+ * 2. Remove the margin in Firefox and Safari.
157
+ */
158
+
159
+ button,
160
+ input,
161
+ optgroup,
162
+ select,
163
+ textarea {
164
+ font-family: inherit; /* 1 */
165
+ font-size: 100%; /* 1 */
166
+ line-height: 1.15; /* 1 */
167
+ margin: 0; /* 2 */
168
+ }
169
+
170
+ /**
171
+ * Show the overflow in IE.
172
+ * 1. Show the overflow in Edge.
173
+ */
174
+
175
+ button,
176
+ input { /* 1 */
177
+ overflow: visible;
178
+ }
179
+
180
+ /**
181
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
182
+ * 1. Remove the inheritance of text transform in Firefox.
183
+ */
184
+
185
+ button,
186
+ select { /* 1 */
187
+ text-transform: none;
188
+ }
189
+
190
+ /**
191
+ * Correct the inability to style clickable types in iOS and Safari.
192
+ */
193
+
194
+ button,
195
+ [type="button"],
196
+ [type="reset"],
197
+ [type="submit"] {
198
+ -webkit-appearance: button;
199
+ }
200
+
201
+ /**
202
+ * Remove the inner border and padding in Firefox.
203
+ */
204
+
205
+ button::-moz-focus-inner,
206
+ [type="button"]::-moz-focus-inner,
207
+ [type="reset"]::-moz-focus-inner,
208
+ [type="submit"]::-moz-focus-inner {
209
+ border-style: none;
210
+ padding: 0;
211
+ }
212
+
213
+ /**
214
+ * Restore the focus styles unset by the previous rule.
215
+ */
216
+
217
+ button:-moz-focusring,
218
+ [type="button"]:-moz-focusring,
219
+ [type="reset"]:-moz-focusring,
220
+ [type="submit"]:-moz-focusring {
221
+ outline: 1px dotted ButtonText;
222
+ }
223
+
224
+ /**
225
+ * Correct the padding in Firefox.
226
+ */
227
+
228
+ fieldset {
229
+ padding: 0.35em 0.75em 0.625em;
230
+ }
231
+
232
+ /**
233
+ * 1. Correct the text wrapping in Edge and IE.
234
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
235
+ * 3. Remove the padding so developers are not caught out when they zero out
236
+ * `fieldset` elements in all browsers.
237
+ */
238
+
239
+ legend {
240
+ box-sizing: border-box; /* 1 */
241
+ color: inherit; /* 2 */
242
+ display: table; /* 1 */
243
+ max-width: 100%; /* 1 */
244
+ padding: 0; /* 3 */
245
+ white-space: normal; /* 1 */
246
+ }
247
+
248
+ /**
249
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
250
+ */
251
+
252
+ progress {
253
+ vertical-align: baseline;
254
+ }
255
+
256
+ /**
257
+ * Remove the default vertical scrollbar in IE 10+.
258
+ */
259
+
260
+ textarea {
261
+ overflow: auto;
262
+ }
263
+
264
+ /**
265
+ * 1. Add the correct box sizing in IE 10.
266
+ * 2. Remove the padding in IE 10.
267
+ */
268
+
269
+ [type="checkbox"],
270
+ [type="radio"] {
271
+ box-sizing: border-box; /* 1 */
272
+ padding: 0; /* 2 */
273
+ }
274
+
275
+ /**
276
+ * Correct the cursor style of increment and decrement buttons in Chrome.
277
+ */
278
+
279
+ [type="number"]::-webkit-inner-spin-button,
280
+ [type="number"]::-webkit-outer-spin-button {
281
+ height: auto;
282
+ }
283
+
284
+ /**
285
+ * 1. Correct the odd appearance in Chrome and Safari.
286
+ * 2. Correct the outline style in Safari.
287
+ */
288
+
289
+ [type="search"] {
290
+ -webkit-appearance: textfield; /* 1 */
291
+ outline-offset: -2px; /* 2 */
292
+ }
293
+
294
+ /**
295
+ * Remove the inner padding in Chrome and Safari on macOS.
296
+ */
297
+
298
+ [type="search"]::-webkit-search-decoration {
299
+ -webkit-appearance: none;
300
+ }
301
+
302
+ /**
303
+ * 1. Correct the inability to style clickable types in iOS and Safari.
304
+ * 2. Change font properties to `inherit` in Safari.
305
+ */
306
+
307
+ ::-webkit-file-upload-button {
308
+ -webkit-appearance: button; /* 1 */
309
+ font: inherit; /* 2 */
310
+ }
311
+
312
+ /* Interactive
313
+ ========================================================================== */
314
+
315
+ /*
316
+ * Add the correct display in Edge, IE 10+, and Firefox.
317
+ */
318
+
319
+ details {
320
+ display: block;
321
+ }
322
+
323
+ /*
324
+ * Add the correct display in all browsers.
325
+ */
326
+
327
+ summary {
328
+ display: list-item;
329
+ }
330
+
331
+ /* Misc
332
+ ========================================================================== */
333
+
334
+ /**
335
+ * Add the correct display in IE 10+.
336
+ */
337
+
338
+ template {
339
+ display: none;
340
+ }
341
+
342
+ /**
343
+ * Add the correct display in IE 10.
344
+ */
345
+
346
+ [hidden] {
347
+ display: none;
348
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/10/20 下午2:08
4
+ * @description color
5
+ */
6
+
7
+ //导航&主题色
8
+ $A1: #1C293CFF;
9
+ $A2: #223E67FF;
10
+ $A3: linear-gradient(180deg, #F1F1F4FF, #F3F3F3FF);
11
+ $A4: #FFFFFF99;
12
+ $A5: #3666D6FF;
13
+ //辅助色
14
+ $B1: linear-gradient(90deg, #3D66F8FF, #7793F9FF 74%, #D8DFFAFF);
15
+ $B2: #3666D6CC;
16
+ $B3: #3666D666;
17
+ $B4: #3666D633;
18
+ $B5: #3666D60D;
19
+ $B6: #ABB0B966;
20
+ $B7: #ABB0B933;
21
+ $B8: #ABB0B91F;
22
+ $B9: #F8F9FBCC;
23
+ $B10: #FFFFFFFF;
24
+ //状态色
25
+ $C1: #EB6054FF;
26
+ $C2: #EB60540D;
27
+ $C3: #53C31BFF;
28
+ $C4: #53C31B0D;
29
+ $C5: #FFA150FF;
30
+ $C6: #FFA1500D;
31
+ $C7: #EB6054CC;
32
+ //文字色
33
+ $D1: #2E3743FF;
34
+ $D2: #2E3743B3;
35
+ $D3: #2E374366;
36
+ //字体
37
+ $font-family: Source Han Sans CN, Source Han Sans CN-Regular;
38
+ $large: 18px;
39
+ $medium: 16px;
40
+ $small: 14px;
41
+ $smallest: 12px;
42
+ $normal: 400;
43
+ $bold: 700;
44
+ $light: 300;
45
+ //阴影
46
+ $boxShadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.40);
47
+ $radius: 8px;
48
+
package/Switch/index.d.ts CHANGED
@@ -1,19 +1,61 @@
1
1
  /**
2
2
  * @author Hanz
3
- * @date 2021/8/5 下午7:23
3
+ * @date 2021/8/5
4
4
  * @description switch 开关
5
5
  */
6
- import { FunctionComponent } from 'react';
7
- import { SwitchProps as MuiSwitchProps } from "@material-ui/core";
8
- export declare type SwitchProps = Omit<MuiSwitchProps, 'size'> & {
6
+ import React, { FunctionComponent } from 'react';
7
+ import "./index.scss";
8
+ declare type SwitchChangeEventHandler = (checked: boolean, event: React.MouseEvent | React.KeyboardEvent) => void;
9
+ declare type SwitchClickEventHandler = SwitchChangeEventHandler;
10
+ export interface SwitchProps {
9
11
  /**
10
- * 类型
12
+ * 开关大小
11
13
  */
12
- type?: 'compact' | 'normal';
14
+ size?: 'small' | 'default';
13
15
  /**
14
- * 大小
16
+ * 类名
15
17
  */
16
- size?: 'small' | 'medium' | 'large';
17
- };
18
- declare const Switch: FunctionComponent<SwitchProps>;
18
+ className?: string;
19
+ /**
20
+ * 是否选中
21
+ */
22
+ checked?: boolean;
23
+ /**
24
+ * 默认是否选中
25
+ */
26
+ defaultChecked?: boolean;
27
+ /**
28
+ * 变化时回调函数
29
+ */
30
+ onChange?: SwitchChangeEventHandler;
31
+ /**
32
+ * 点击时回调函数
33
+ */
34
+ onClick?: SwitchClickEventHandler;
35
+ /**
36
+ * 选中的是内容
37
+ */
38
+ checkedChildren?: React.ReactNode;
39
+ /**
40
+ * 非选中时内容
41
+ */
42
+ unCheckedChildren?: React.ReactNode;
43
+ /**
44
+ * 是否禁用
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * 是否显示loading
49
+ */
50
+ loading?: boolean;
51
+ /**
52
+ * 自动获得焦点
53
+ */
54
+ autoFocus?: boolean;
55
+ /**
56
+ * 紧凑型开关
57
+ */
58
+ compact?: boolean;
59
+ }
60
+ export declare const Switch: FunctionComponent<SwitchProps>;
19
61
  export default Switch;
package/Switch/index.js CHANGED
@@ -1,10 +1,9 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core"),require("@material-ui/core/styles")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@material-ui/core/styles"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core"),require("@material-ui/core/styles")):t.ParaUI=e(t.react,t["@material-ui/core"],t["@material-ui/core/styles"])}(self,(function(t,e,r){return function(){"use strict";var o={4927:function(t,e,r){function o(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=o(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function n(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=o(t))&&(n&&(n+=" "),n+=e);return n}r.d(e,{Z:function(){return n}})},4126:function(t){
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("rc-switch"),require("@para-ui/icons/LoadingF")):"function"==typeof define&&define.amd?define(["react","rc-switch","@para-ui/icons/LoadingF"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("rc-switch"),require("@para-ui/icons/LoadingF")):e.ParaUI=t(e.react,e["rc-switch"],e["@para-ui/icons/LoadingF"])}(self,(function(e,t,r){return function(){var n={4927:function(e,t,r){"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}r.d(t,{Z:function(){return i}})},8540:function(e,t,r){(t=r(9937)(!1)).push([e.id,'.paraui-switch{position:relative;display:inline-block;min-width:32px;height:14px;line-height:14px;vertical-align:middle;background-color:rgba(171,176,185,0.4);border:0;border-radius:100px;cursor:pointer;transition:all .2s;user-select:none}.paraui-switch:focus{outline:0;box-shadow:none}.paraui-switch-checked:focus{box-shadow:none}.paraui-switch:focus:hover{box-shadow:none}.paraui-switch-checked{background-color:rgba(54,102,214,0.2)}.paraui-switch-loading,.paraui-switch-disabled{cursor:not-allowed;opacity:.4}.paraui-switch-loading *,.paraui-switch-disabled *{box-shadow:none;cursor:not-allowed}.paraui-switch-inner{display:block;margin:0 7px 0 25px;color:#fff;font-size:14px;transition:margin .2s}.paraui-switch-checked .paraui-switch-inner{margin:0 25px 0 7px}.paraui-switch-handle{position:absolute;top:-2px;left:-2px;width:18px;height:18px;transition:all .2s ease-in-out}.paraui-switch-handle::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#8996AA;border-radius:9px;box-shadow:none;transition:all .2s ease-in-out;content:""}.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 18px + 2px)}.paraui-switch-checked .paraui-switch-handle::before{background-color:#3666d6}.paraui-switch:not(.paraui-switch-disabled):active .paraui-switch-handle::before{right:-30%;left:0}.paraui-switch:not(.paraui-switch-disabled):active.paraui-switch-checked .paraui-switch-handle::before{right:0;left:-30%}.paraui-switch-loading-icon{position:relative;top:2px;color:#3666d6;vertical-align:top;animation:loadingCircle 1s infinite linear}.paraui-switch-checked .paraui-switch-loading-icon{color:#fff}.paraui-switch-small{min-width:28px;height:14px;line-height:14px}.paraui-switch-small .paraui-switch-inner{margin:0 5px 0 18px;font-size:14px}.paraui-switch-small .paraui-switch-handle{width:12px;height:12px}.paraui-switch-small .paraui-switch-loading-icon{top:1.5px;font-size:9px}.paraui-switch-small.paraui-switch-checked .paraui-switch-inner{margin:0 18px 0 5px}.paraui-switch-small.paraui-switch-checked .paraui-switch-handle{left:calc(100% - 12px - 2px)}@keyframes loadingCircle{100%{transform:rotate(360deg)}}\n',""]),e.exports=t},9937:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var i=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}var a,c,s;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&i[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},4126:function(e){"use strict";
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */
7
- var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=n(t),l=1;l<arguments.length;l++){for(var f in a=Object(arguments[l]))r.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var s=0;s<c.length;s++)o.call(a,c[s])&&(u[c[s]]=a[c[s]])}}return u}},9524:function(t,e,r){
6
+ */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(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 t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,c,s=i(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))r.call(a,l)&&(s[l]=a[l]);if(t){c=t(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(s[c[p]]=a[c[p]])}}return s}},9524:function(e,t,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 e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=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
- r(4126);var o=r(9297),n=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),e.Fragment=i("react.fragment")}var a=o.__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 l(t,e,r){var o,i={},l=null,f=null;for(o in void 0!==r&&(l=""+r),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(f=e.ref),e)c.call(e,o)&&!u.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===i[o]&&(i[o]=e[o]);return{$$typeof:n,type:t,key:l,ref:f,props:i,_owner:a.current}}e.jsx=l},7712:function(t,e,r){t.exports=r(9524)},853:function(t,e){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"}}};e.Z=function(){return r}},1731:function(t){t.exports=e},8604:function(t){t.exports=r},9297:function(e){e.exports=t}},n={};function i(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return o[t](r,r.exports,i),r.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){i.r(a);var t=i(7712),e=i(1731),r=i(8604),o=i(853),n=i(4927),c=function(){return c=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},c.apply(this,arguments)},u=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r},l=(0,o.Z)(),f=(0,r.withStyles)((function(t){return(0,r.createStyles)({root:{width:"auto",height:"auto",padding:0,overflow:"visible"},switchBase:{padding:0,top:-2,color:l.bgBorderColor.bg4,"&$checked":{color:l.thmemColor.primary},"&$checked + $track":{backgroundColor:l.thmemColor.thirdary,opacity:1}},checked:{},thumb:{width:18,height:18},track:{width:32,height:14,borderRadius:7,backgroundColor:l.bgBorderColor.bg1,opacity:1},input:{left:"auto",width:"auto"}})}),{name:"SwitchCompact"})(e.Switch),s=(0,r.withStyles)((function(t){return(0,r.createStyles)({root:{width:"auto",height:"auto",padding:0},switchBase:{padding:2,color:l.textColor.white,"&$checked":{transform:"translateX(14px)",color:l.textColor.white,"& + $track":{backgroundColor:l.thmemColor.primary,opacity:1}}},thumb:{width:14,height:14},track:{width:32,height:18,borderRadius:9,backgroundColor:l.bgBorderColor.bg4,opacity:1},input:{left:"auto",width:"auto"},checked:{}})}),{name:"SwitchNormal"})(e.Switch),d=(0,r.makeStyles)((function(){return(0,r.createStyles)({smallThumb:function(t){return"compact"===t.type?{width:16,height:16,borderRadius:8}:{width:12,height:12,borderRadius:6}},smallTrack:function(t){return"compact"===t.type?{width:30,height:12,borderRadius:6}:{width:30,height:16,borderRadius:8}},largeThumb:function(t){return"compact"===t.type?{width:20,height:20,borderRadius:10}:{width:16,height:16,borderRadius:8}},largeTrack:function(t){return"compact"===t.type?{width:34,height:16,borderRadius:8}:{width:34,height:20,borderRadius:10}}})}));a.default=function(e){var r=e.type,o=void 0===r?"normal":r,i=e.size,a=void 0===i?"medium":i,l=e.className,p=u(e,["type","size","className"]),h=d({type:o});return(0,t.jsx)(t.Fragment,{children:function(){if("compact"===o){var e="medium"===a?{}:{thumb:h[a+"Thumb"],track:h[a+"Track"]};return(0,t.jsx)(f,c({},p,{classes:e,className:(0,n.Z)("paraui-switch",l)}),void 0)}var r="medium"===a?{}:{thumb:h[a+"Thumb"],track:h[a+"Track"]};return(0,t.jsx)(s,c({},p,{classes:r,className:(0,n.Z)("paraui-switch",l)}),void 0)}()},void 0)}}(),a}()}));
15
+ r(4126);var n=r(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!s.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:l,props:o,_owner:a.current}}t.jsx=u},7712:function(e,t,r){"use strict";e.exports=r(9524)},3341:function(e,t,r){var n=r(2387),i=r(8540);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};n(i,o);e.exports=i.locals||{}},2387:function(e,t,r){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],i=0;i<e.length;i++){var o=e[i],s=t.base?o[0]+t.base:o[0],u=r[s]||0,l="".concat(s," ").concat(u);r[s]=u+1;var p=c(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:w(f,t),references:1}),n.push(l)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=r.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,r,n){var i=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t,r){var n=r.css,i=r.media,o=r.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,b=0;function w(e,t){var r,n,i;if(t.singleton){var o=b++;r=h||(h=u(t)),n=f.bind(null,r,o,!1),i=f.bind(null,r,o,!0)}else r=u(t),n=d.bind(null,r,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var i=c(r[n]);a[i].references--}for(var o=s(e,t),u=0;u<r.length;u++){var l=c(r[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=o}}}},1102:function(e){"use strict";e.exports=r},4555:function(e){"use strict";e.exports=t},9297:function(t){"use strict";t.exports=e}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.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(){"use strict";o.r(a),o.d(a,{Switch:function(){return l}});var e=o(7712),t=o(4555),r=o.n(t),n=o(4927),i=o(1102),c=o.n(i),s=(o(3341),function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)}),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=function(t){t.compact,t.size;var i=t.loading,o=t.disabled,a=t.className,l=u(t,["compact","size","loading","disabled","className"]),p=(0,n.Z)("paraui-switch",{"paraui-switch-loading":i},a),f=(0,e.jsx)("div",s({className:"paraui-switch-handle"},{children:i&&(0,e.jsx)(c(),{className:"paraui-switch-loading-icon"},void 0)}),void 0);return(0,e.jsx)(r(),s({},l,{prefixCls:"paraui-switch",className:p,disabled:o||i,loadingIcon:f}),void 0)};a.default=l}(),a}()}));
package/Table/index.d.ts CHANGED
@@ -5,5 +5,6 @@
5
5
  */
6
6
  import { FunctionComponent } from 'react';
7
7
  import { TableProps } from './interface';
8
+ import './index.scss';
8
9
  export declare const Table: FunctionComponent<TableProps>;
9
10
  export default Table;