assui 3.2.43 → 3.2.44

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 (525) hide show
  1. package/es/a-select/index.d.ts +5 -5
  2. package/es/a-select/index.js +59 -88
  3. package/es/a-select/style/index.css +47 -52
  4. package/es/a-select/style/index.js +2 -2
  5. package/es/a-select/style/index.less +1 -2
  6. package/es/area-text/index.d.ts +2 -2
  7. package/es/area-text/index.js +5 -9
  8. package/es/area-text/style/index.js +1 -1
  9. package/es/beautiful-dnd/index.js +1 -1
  10. package/es/button-drawer/index.d.ts +8 -10
  11. package/es/button-drawer/index.js +61 -94
  12. package/es/button-drawer/style/index.js +1 -1
  13. package/es/button-modal/index.d.ts +8 -10
  14. package/es/button-modal/index.js +60 -93
  15. package/es/button-modal/style/index.js +1 -1
  16. package/es/client-only/index.d.ts +2 -2
  17. package/es/client-only/index.js +1 -1
  18. package/es/client-only/useClientOnly.js +22 -24
  19. package/es/color-select/index.d.ts +18 -18
  20. package/es/color-select/index.js +68 -113
  21. package/es/color-select/style/index.css +47 -52
  22. package/es/color-select/style/index.js +1 -1
  23. package/es/complex-val-select/index.d.ts +13 -25
  24. package/es/complex-val-select/index.js +54 -71
  25. package/es/complex-val-select/style/index.js +1 -1
  26. package/es/condition-input/index.d.ts +13 -21
  27. package/es/condition-input/index.js +51 -67
  28. package/es/condition-input/parse2RegexOption.d.ts +7 -10
  29. package/es/condition-input/parse2RegexOption.js +21 -31
  30. package/es/condition-input/style/index.js +1 -1
  31. package/es/condition-select/index.d.ts +1 -7
  32. package/es/condition-select/index.js +85 -141
  33. package/es/condition-select/style/index.js +3 -3
  34. package/es/condition-select/types.d.ts +14 -16
  35. package/es/condition-select/types.js +1 -1
  36. package/es/condition-select/utils/index.d.ts +2 -5
  37. package/es/condition-select/utils/index.js +2 -2
  38. package/es/condition-select-input/index.d.ts +29 -29
  39. package/es/condition-select-input/index.js +106 -196
  40. package/es/condition-select-input/style/index.d.ts +1 -1
  41. package/es/condition-select-input/style/index.js +3 -3
  42. package/es/config-provider/context.d.ts +1 -1
  43. package/es/config-provider/context.js +2 -2
  44. package/es/config-provider/index.d.ts +3 -27
  45. package/es/config-provider/index.js +5 -9
  46. package/es/copy-to-clipboard/index.d.ts +18 -20
  47. package/es/copy-to-clipboard/index.js +44 -63
  48. package/es/copy-to-clipboard/style/index.css +14 -23
  49. package/es/copy-to-clipboard/style/index.js +1 -1
  50. package/es/count-down/index.d.ts +3 -3
  51. package/es/count-down/index.js +26 -44
  52. package/es/count-up/index.d.ts +2 -2
  53. package/es/count-up/index.js +1 -1
  54. package/es/flex/index.d.ts +18 -21
  55. package/es/flex/index.js +32 -64
  56. package/es/flex/style/index.css +47 -52
  57. package/es/flex/style/index.js +1 -1
  58. package/es/flex/utils/gapSize.js +1 -1
  59. package/es/flex/utils/index.d.ts +3 -27
  60. package/es/flex/utils/index.js +19 -53
  61. package/es/highlight-textarea/HighlighedContents.d.ts +3 -6
  62. package/es/highlight-textarea/HighlighedContents.js +5 -9
  63. package/es/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  64. package/es/highlight-textarea/extractSpansOfClasses.js +45 -62
  65. package/es/highlight-textarea/getRanges.js +34 -41
  66. package/es/highlight-textarea/getType.js +2 -6
  67. package/es/highlight-textarea/index.d.ts +7 -14
  68. package/es/highlight-textarea/index.js +70 -114
  69. package/es/highlight-textarea/style/index.css +55 -125
  70. package/es/highlight-textarea/style/index.js +1 -1
  71. package/es/highlight-textarea/types.d.ts +7 -26
  72. package/es/highlight-textarea/types.js +1 -1
  73. package/es/highlight-words/index.d.ts +2 -6
  74. package/es/highlight-words/index.js +1 -1
  75. package/es/img-crop/EasyCrop.d.ts +2 -6
  76. package/es/img-crop/EasyCrop.js +79 -104
  77. package/es/img-crop/getCroppedImg.d.ts +3 -8
  78. package/es/img-crop/getCroppedImg.js +118 -155
  79. package/es/img-crop/index.d.ts +29 -29
  80. package/es/img-crop/index.js +340 -490
  81. package/es/img-crop/style/index.css +47 -52
  82. package/es/img-crop/style/index.d.ts +1 -1
  83. package/es/img-crop/style/index.js +3 -3
  84. package/es/index.d.ts +56 -62
  85. package/es/index.js +29 -29
  86. package/es/json-editor/index.d.ts +5 -7
  87. package/es/json-editor/index.js +62 -91
  88. package/es/json-editor/style/index.js +1 -1
  89. package/es/keep-tab/index.d.ts +17 -17
  90. package/es/keep-tab/index.js +78 -125
  91. package/es/keep-tab/style/index.css +32 -72
  92. package/es/keep-tab/style/index.js +1 -1
  93. package/es/label-auto-complete/index.d.ts +3 -3
  94. package/es/label-auto-complete/index.js +58 -82
  95. package/es/label-auto-complete/style/index.css +50 -61
  96. package/es/label-auto-complete/style/index.js +2 -2
  97. package/es/label-condition-input/index.d.ts +11 -12
  98. package/es/label-condition-input/index.js +62 -100
  99. package/es/label-condition-input/style/index.css +47 -52
  100. package/es/label-condition-input/style/index.js +1 -1
  101. package/es/label-condition-select-input/index.d.ts +33 -35
  102. package/es/label-condition-select-input/index.js +109 -198
  103. package/es/label-condition-select-input/style/index.css +47 -52
  104. package/es/label-condition-select-input/style/index.d.ts +1 -1
  105. package/es/label-condition-select-input/style/index.js +2 -2
  106. package/es/label-customize-range-picker/defaultRadioList.d.ts +28 -34
  107. package/es/label-customize-range-picker/defaultRadioList.js +114 -206
  108. package/es/label-customize-range-picker/index.d.ts +24 -27
  109. package/es/label-customize-range-picker/index.js +141 -300
  110. package/es/label-customize-range-picker/style/index.css +47 -52
  111. package/es/label-customize-range-picker/style/index.d.ts +2 -2
  112. package/es/label-customize-range-picker/style/index.js +4 -4
  113. package/es/label-customize-range-picker/utils/index.d.ts +3 -9
  114. package/es/label-customize-range-picker/utils/index.js +29 -57
  115. package/es/label-date-picker/index.d.ts +2 -2
  116. package/es/label-date-picker/index.js +57 -81
  117. package/es/label-date-picker/style/index.css +47 -52
  118. package/es/label-date-picker/style/index.js +2 -2
  119. package/es/label-input/index.d.ts +25 -29
  120. package/es/label-input/index.js +80 -122
  121. package/es/label-input/style/index.css +47 -52
  122. package/es/label-input/style/index.js +1 -1
  123. package/es/label-number-input/index.d.ts +6 -6
  124. package/es/label-number-input/index.js +63 -101
  125. package/es/label-number-input/style/index.css +48 -54
  126. package/es/label-number-input/style/index.js +1 -1
  127. package/es/label-range-number/index.d.ts +17 -17
  128. package/es/label-range-number/index.js +95 -156
  129. package/es/label-range-number/style/index.css +47 -52
  130. package/es/label-range-number/style/index.js +1 -1
  131. package/es/label-range-picker/index.d.ts +3 -3
  132. package/es/label-range-picker/index.js +71 -103
  133. package/es/label-range-picker/style/index.css +47 -52
  134. package/es/label-range-picker/style/index.js +2 -2
  135. package/es/label-select/index.d.ts +5 -7
  136. package/es/label-select/index.js +69 -100
  137. package/es/label-select/style/index.css +51 -65
  138. package/es/label-select/style/index.js +2 -2
  139. package/es/label-text-area/index.d.ts +17 -21
  140. package/es/label-text-area/index.js +64 -97
  141. package/es/label-text-area/style/index.css +47 -52
  142. package/es/label-text-area/style/index.js +1 -1
  143. package/es/label-tree-select/index.d.ts +7 -8
  144. package/es/label-tree-select/index.js +61 -98
  145. package/es/label-tree-select/style/index.css +48 -55
  146. package/es/label-tree-select/style/index.js +2 -2
  147. package/es/messages/ar_EG.d.ts +24 -24
  148. package/es/messages/ar_EG.js +5 -5
  149. package/es/messages/bg_BG.d.ts +24 -24
  150. package/es/messages/bg_BG.js +5 -5
  151. package/es/messages/cs_CZ.d.ts +24 -24
  152. package/es/messages/cs_CZ.js +5 -5
  153. package/es/messages/de_DE.d.ts +24 -24
  154. package/es/messages/de_DE.js +5 -5
  155. package/es/messages/en_US.d.ts +24 -24
  156. package/es/messages/en_US.js +5 -5
  157. package/es/messages/es_ES.d.ts +24 -24
  158. package/es/messages/es_ES.js +5 -5
  159. package/es/messages/fi_FI.d.ts +24 -24
  160. package/es/messages/fi_FI.js +5 -5
  161. package/es/messages/fr_FR.d.ts +24 -24
  162. package/es/messages/fr_FR.js +5 -5
  163. package/es/messages/id_ID.d.ts +24 -24
  164. package/es/messages/id_ID.js +5 -5
  165. package/es/messages/index.d.ts +23 -27
  166. package/es/messages/index.js +3 -3
  167. package/es/messages/it_IT.d.ts +24 -24
  168. package/es/messages/it_IT.js +5 -5
  169. package/es/messages/ja_JP.d.ts +24 -24
  170. package/es/messages/ja_JP.js +5 -5
  171. package/es/messages/ko_KR.d.ts +24 -24
  172. package/es/messages/ko_KR.js +5 -5
  173. package/es/messages/ms_MY.d.ts +24 -24
  174. package/es/messages/ms_MY.js +5 -5
  175. package/es/messages/nb_NO.d.ts +24 -24
  176. package/es/messages/nb_NO.js +5 -5
  177. package/es/messages/nl_NL.d.ts +24 -24
  178. package/es/messages/nl_NL.js +5 -5
  179. package/es/messages/pt_PT.d.ts +24 -24
  180. package/es/messages/pt_PT.js +5 -5
  181. package/es/messages/ro_RO.d.ts +24 -24
  182. package/es/messages/ro_RO.js +5 -5
  183. package/es/messages/ru_RU.d.ts +24 -24
  184. package/es/messages/ru_RU.js +5 -5
  185. package/es/messages/sv_SE.d.ts +24 -24
  186. package/es/messages/sv_SE.js +5 -5
  187. package/es/messages/th_TH.d.ts +24 -24
  188. package/es/messages/th_TH.js +5 -5
  189. package/es/messages/ug_UG.d.ts +24 -24
  190. package/es/messages/ug_UG.js +5 -5
  191. package/es/messages/vi_VN.d.ts +24 -24
  192. package/es/messages/vi_VN.js +5 -5
  193. package/es/messages/zh_CN.d.ts +24 -24
  194. package/es/messages/zh_CN.js +5 -5
  195. package/es/messages/zh_TW.d.ts +24 -24
  196. package/es/messages/zh_TW.js +5 -5
  197. package/es/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
  198. package/es/multipart-upload/getMultipartUploadHandler.js +6 -8
  199. package/es/multipart-upload/index.d.ts +33 -39
  200. package/es/multipart-upload/index.js +121 -217
  201. package/es/multipart-upload/parse2RegexOption.d.ts +7 -10
  202. package/es/multipart-upload/parse2RegexOption.js +21 -31
  203. package/es/multipart-upload/style/index.css +47 -52
  204. package/es/multipart-upload/style/index.js +2 -2
  205. package/es/number-format-input/index.js +25 -36
  206. package/es/number-format-input/style/index.js +1 -1
  207. package/es/number-input/const/dataTypeEnum.d.ts +2 -2
  208. package/es/number-input/const/dataTypeEnum.js +1 -1
  209. package/es/number-input/const/numberType.d.ts +2 -2
  210. package/es/number-input/const/numberType.js +1 -1
  211. package/es/number-input/index.d.ts +35 -37
  212. package/es/number-input/index.js +65 -94
  213. package/es/number-input/style/index.js +1 -1
  214. package/es/number-input/utils.d.ts +6 -15
  215. package/es/number-input/utils.js +2 -2
  216. package/es/rc-echart/core.d.ts +13 -13
  217. package/es/rc-echart/core.js +19 -28
  218. package/es/rc-echart/index.d.ts +12 -12
  219. package/es/rc-echart/index.js +16 -26
  220. package/es/rc-motion/index.d.ts +2 -14
  221. package/es/rc-motion/index.js +1 -1
  222. package/es/rc-qrcode/index.d.ts +8 -11
  223. package/es/rc-qrcode/index.js +17 -21
  224. package/es/rc-qrcode/useQrcode.d.ts +2 -5
  225. package/es/rc-qrcode/useQrcode.js +33 -38
  226. package/es/rc-transition-group/index.js +1 -1
  227. package/es/resizable/index.d.ts +1 -10
  228. package/es/resizable/index.js +1 -1
  229. package/es/resizable/style/index.js +1 -1
  230. package/es/rich-text-editor/index.d.ts +18 -18
  231. package/es/rich-text-editor/index.js +45 -78
  232. package/es/rich-text-editor/lang/zh_CN.d.ts +404 -404
  233. package/es/rich-text-editor/lang/zh_CN.js +393 -416
  234. package/es/rich-text-editor/plugins/code/index.js +20 -25
  235. package/es/rich-text-editor/style/index.css +47 -52
  236. package/es/rich-text-editor/style/index.js +1 -1
  237. package/es/single-img-upload/index.d.ts +8 -8
  238. package/es/single-img-upload/index.js +230 -338
  239. package/es/single-img-upload/style/index.css +47 -52
  240. package/es/single-img-upload/style/index.js +4 -4
  241. package/es/sortable-hoc/index.js +1 -1
  242. package/es/split-pane/index.d.ts +53 -53
  243. package/es/split-pane/index.js +13 -17
  244. package/es/split-pane/style/index.js +1 -1
  245. package/es/step-number-input/const/countType.d.ts +2 -2
  246. package/es/step-number-input/const/countType.js +1 -1
  247. package/es/step-number-input/const/numberType.d.ts +2 -2
  248. package/es/step-number-input/const/numberType.js +1 -1
  249. package/es/step-number-input/index.d.ts +31 -31
  250. package/es/step-number-input/index.js +85 -135
  251. package/es/step-number-input/style/index.css +47 -52
  252. package/es/step-number-input/style/index.js +2 -2
  253. package/es/table-col/index.d.ts +3 -3
  254. package/es/table-col/index.js +7 -11
  255. package/es/table-col/style/index.js +1 -1
  256. package/es/text-area/index.d.ts +8 -13
  257. package/es/text-area/index.js +48 -64
  258. package/es/text-area/style/index.js +1 -1
  259. package/es/text-input/index.d.ts +1 -3
  260. package/es/text-input/index.js +58 -76
  261. package/es/text-input/style/index.css +53 -123
  262. package/es/text-input/style/index.js +1 -1
  263. package/lib/a-select/index.d.ts +5 -5
  264. package/lib/a-select/index.js +69 -102
  265. package/lib/a-select/style/index.css +47 -52
  266. package/lib/a-select/style/index.js +5 -5
  267. package/lib/a-select/style/index.less +1 -2
  268. package/lib/area-text/index.d.ts +2 -2
  269. package/lib/area-text/index.js +13 -21
  270. package/lib/area-text/style/index.js +4 -4
  271. package/lib/beautiful-dnd/index.js +37 -52
  272. package/lib/button-drawer/index.d.ts +8 -10
  273. package/lib/button-drawer/index.js +101 -153
  274. package/lib/button-drawer/style/index.js +4 -4
  275. package/lib/button-modal/index.d.ts +8 -10
  276. package/lib/button-modal/index.js +99 -151
  277. package/lib/button-modal/style/index.js +4 -4
  278. package/lib/client-only/index.d.ts +2 -2
  279. package/lib/client-only/index.js +5 -5
  280. package/lib/client-only/useClientOnly.js +26 -28
  281. package/lib/color-select/index.d.ts +18 -18
  282. package/lib/color-select/index.js +112 -180
  283. package/lib/color-select/style/index.css +47 -52
  284. package/lib/color-select/style/index.js +5 -5
  285. package/lib/complex-val-select/index.d.ts +13 -25
  286. package/lib/complex-val-select/index.js +102 -140
  287. package/lib/complex-val-select/style/index.js +4 -4
  288. package/lib/condition-input/index.d.ts +13 -21
  289. package/lib/condition-input/index.js +96 -131
  290. package/lib/condition-input/parse2RegexOption.d.ts +7 -10
  291. package/lib/condition-input/parse2RegexOption.js +33 -47
  292. package/lib/condition-input/style/index.js +4 -4
  293. package/lib/condition-select/index.d.ts +1 -7
  294. package/lib/condition-select/index.js +94 -154
  295. package/lib/condition-select/style/index.js +6 -6
  296. package/lib/condition-select/types.d.ts +14 -16
  297. package/lib/condition-select/types.js +4 -4
  298. package/lib/condition-select/utils/index.d.ts +2 -5
  299. package/lib/condition-select/utils/index.js +5 -5
  300. package/lib/condition-select-input/index.d.ts +29 -29
  301. package/lib/condition-select-input/index.js +150 -259
  302. package/lib/condition-select-input/style/index.d.ts +1 -1
  303. package/lib/condition-select-input/style/index.js +6 -6
  304. package/lib/config-provider/context.d.ts +1 -1
  305. package/lib/config-provider/context.js +11 -15
  306. package/lib/config-provider/index.d.ts +3 -27
  307. package/lib/config-provider/index.js +61 -69
  308. package/lib/copy-to-clipboard/index.d.ts +18 -20
  309. package/lib/copy-to-clipboard/index.js +86 -124
  310. package/lib/copy-to-clipboard/style/index.css +14 -23
  311. package/lib/copy-to-clipboard/style/index.js +4 -4
  312. package/lib/count-down/index.d.ts +3 -3
  313. package/lib/count-down/index.js +36 -58
  314. package/lib/count-up/index.d.ts +2 -2
  315. package/lib/count-up/index.js +39 -54
  316. package/lib/flex/index.d.ts +18 -21
  317. package/lib/flex/index.js +42 -78
  318. package/lib/flex/style/index.css +47 -52
  319. package/lib/flex/style/index.js +4 -4
  320. package/lib/flex/utils/gapSize.js +4 -4
  321. package/lib/flex/utils/index.d.ts +3 -27
  322. package/lib/flex/utils/index.js +27 -65
  323. package/lib/highlight-textarea/HighlighedContents.d.ts +3 -6
  324. package/lib/highlight-textarea/HighlighedContents.js +16 -24
  325. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  326. package/lib/highlight-textarea/extractSpansOfClasses.js +54 -75
  327. package/lib/highlight-textarea/getRanges.js +44 -55
  328. package/lib/highlight-textarea/getType.js +6 -10
  329. package/lib/highlight-textarea/index.d.ts +7 -14
  330. package/lib/highlight-textarea/index.js +113 -176
  331. package/lib/highlight-textarea/style/index.css +55 -125
  332. package/lib/highlight-textarea/style/index.js +4 -4
  333. package/lib/highlight-textarea/types.d.ts +7 -26
  334. package/lib/highlight-textarea/types.js +4 -4
  335. package/lib/highlight-words/index.d.ts +2 -6
  336. package/lib/highlight-words/index.js +9 -13
  337. package/lib/img-crop/EasyCrop.d.ts +2 -6
  338. package/lib/img-crop/EasyCrop.js +120 -164
  339. package/lib/img-crop/getCroppedImg.d.ts +3 -8
  340. package/lib/img-crop/getCroppedImg.js +121 -158
  341. package/lib/img-crop/index.d.ts +29 -29
  342. package/lib/img-crop/index.js +383 -555
  343. package/lib/img-crop/style/index.css +47 -52
  344. package/lib/img-crop/style/index.d.ts +1 -1
  345. package/lib/img-crop/style/index.js +6 -6
  346. package/lib/index.d.ts +56 -62
  347. package/lib/index.js +202 -254
  348. package/lib/json-editor/index.d.ts +5 -7
  349. package/lib/json-editor/index.js +108 -156
  350. package/lib/json-editor/style/index.js +5 -5
  351. package/lib/keep-tab/index.d.ts +17 -17
  352. package/lib/keep-tab/index.js +120 -186
  353. package/lib/keep-tab/style/index.css +32 -72
  354. package/lib/keep-tab/style/index.js +4 -4
  355. package/lib/label-auto-complete/index.d.ts +3 -3
  356. package/lib/label-auto-complete/index.js +71 -103
  357. package/lib/label-auto-complete/style/index.css +50 -61
  358. package/lib/label-auto-complete/style/index.js +5 -5
  359. package/lib/label-condition-input/index.d.ts +11 -12
  360. package/lib/label-condition-input/index.js +77 -119
  361. package/lib/label-condition-input/style/index.css +47 -52
  362. package/lib/label-condition-input/style/index.js +4 -4
  363. package/lib/label-condition-select-input/index.d.ts +33 -35
  364. package/lib/label-condition-select-input/index.js +154 -262
  365. package/lib/label-condition-select-input/style/index.css +47 -52
  366. package/lib/label-condition-select-input/style/index.d.ts +1 -1
  367. package/lib/label-condition-select-input/style/index.js +6 -6
  368. package/lib/label-customize-range-picker/defaultRadioList.d.ts +28 -34
  369. package/lib/label-customize-range-picker/defaultRadioList.js +156 -297
  370. package/lib/label-customize-range-picker/index.d.ts +24 -27
  371. package/lib/label-customize-range-picker/index.js +186 -363
  372. package/lib/label-customize-range-picker/style/index.css +47 -52
  373. package/lib/label-customize-range-picker/style/index.d.ts +2 -2
  374. package/lib/label-customize-range-picker/style/index.js +8 -8
  375. package/lib/label-customize-range-picker/utils/index.d.ts +3 -9
  376. package/lib/label-customize-range-picker/utils/index.js +38 -75
  377. package/lib/label-date-picker/index.d.ts +2 -2
  378. package/lib/label-date-picker/index.js +68 -96
  379. package/lib/label-date-picker/style/index.css +47 -52
  380. package/lib/label-date-picker/style/index.js +5 -5
  381. package/lib/label-input/index.d.ts +25 -29
  382. package/lib/label-input/index.js +96 -142
  383. package/lib/label-input/style/index.css +47 -52
  384. package/lib/label-input/style/index.js +4 -4
  385. package/lib/label-number-input/index.d.ts +6 -6
  386. package/lib/label-number-input/index.js +78 -122
  387. package/lib/label-number-input/style/index.css +48 -54
  388. package/lib/label-number-input/style/index.js +4 -4
  389. package/lib/label-range-number/index.d.ts +17 -17
  390. package/lib/label-range-number/index.js +107 -172
  391. package/lib/label-range-number/style/index.css +47 -52
  392. package/lib/label-range-number/style/index.js +4 -4
  393. package/lib/label-range-picker/index.d.ts +3 -3
  394. package/lib/label-range-picker/index.js +83 -122
  395. package/lib/label-range-picker/style/index.css +47 -52
  396. package/lib/label-range-picker/style/index.js +5 -5
  397. package/lib/label-select/index.d.ts +5 -7
  398. package/lib/label-select/index.js +83 -130
  399. package/lib/label-select/style/index.css +51 -65
  400. package/lib/label-select/style/index.js +5 -5
  401. package/lib/label-text-area/index.d.ts +17 -21
  402. package/lib/label-text-area/index.js +77 -114
  403. package/lib/label-text-area/style/index.css +47 -52
  404. package/lib/label-text-area/style/index.js +4 -4
  405. package/lib/label-tree-select/index.d.ts +7 -8
  406. package/lib/label-tree-select/index.js +72 -113
  407. package/lib/label-tree-select/style/index.css +48 -55
  408. package/lib/label-tree-select/style/index.js +5 -5
  409. package/lib/messages/ar_EG.d.ts +24 -24
  410. package/lib/messages/ar_EG.js +8 -8
  411. package/lib/messages/bg_BG.d.ts +24 -24
  412. package/lib/messages/bg_BG.js +8 -8
  413. package/lib/messages/cs_CZ.d.ts +24 -24
  414. package/lib/messages/cs_CZ.js +8 -8
  415. package/lib/messages/de_DE.d.ts +24 -24
  416. package/lib/messages/de_DE.js +8 -8
  417. package/lib/messages/en_US.d.ts +24 -24
  418. package/lib/messages/en_US.js +8 -8
  419. package/lib/messages/es_ES.d.ts +24 -24
  420. package/lib/messages/es_ES.js +8 -8
  421. package/lib/messages/fi_FI.d.ts +24 -24
  422. package/lib/messages/fi_FI.js +8 -8
  423. package/lib/messages/fr_FR.d.ts +24 -24
  424. package/lib/messages/fr_FR.js +8 -8
  425. package/lib/messages/id_ID.d.ts +24 -24
  426. package/lib/messages/id_ID.js +8 -8
  427. package/lib/messages/index.d.ts +23 -27
  428. package/lib/messages/index.js +7 -7
  429. package/lib/messages/it_IT.d.ts +24 -24
  430. package/lib/messages/it_IT.js +8 -8
  431. package/lib/messages/ja_JP.d.ts +24 -24
  432. package/lib/messages/ja_JP.js +8 -8
  433. package/lib/messages/ko_KR.d.ts +24 -24
  434. package/lib/messages/ko_KR.js +8 -8
  435. package/lib/messages/ms_MY.d.ts +24 -24
  436. package/lib/messages/ms_MY.js +8 -8
  437. package/lib/messages/nb_NO.d.ts +24 -24
  438. package/lib/messages/nb_NO.js +8 -8
  439. package/lib/messages/nl_NL.d.ts +24 -24
  440. package/lib/messages/nl_NL.js +8 -8
  441. package/lib/messages/pt_PT.d.ts +24 -24
  442. package/lib/messages/pt_PT.js +8 -8
  443. package/lib/messages/ro_RO.d.ts +24 -24
  444. package/lib/messages/ro_RO.js +8 -8
  445. package/lib/messages/ru_RU.d.ts +24 -24
  446. package/lib/messages/ru_RU.js +8 -8
  447. package/lib/messages/sv_SE.d.ts +24 -24
  448. package/lib/messages/sv_SE.js +8 -8
  449. package/lib/messages/th_TH.d.ts +24 -24
  450. package/lib/messages/th_TH.js +8 -8
  451. package/lib/messages/ug_UG.d.ts +24 -24
  452. package/lib/messages/ug_UG.js +8 -8
  453. package/lib/messages/vi_VN.d.ts +24 -24
  454. package/lib/messages/vi_VN.js +8 -8
  455. package/lib/messages/zh_CN.d.ts +24 -24
  456. package/lib/messages/zh_CN.js +8 -8
  457. package/lib/messages/zh_TW.d.ts +24 -24
  458. package/lib/messages/zh_TW.js +8 -8
  459. package/lib/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
  460. package/lib/multipart-upload/getMultipartUploadHandler.js +10 -12
  461. package/lib/multipart-upload/index.d.ts +33 -39
  462. package/lib/multipart-upload/index.js +165 -286
  463. package/lib/multipart-upload/parse2RegexOption.d.ts +7 -10
  464. package/lib/multipart-upload/parse2RegexOption.js +33 -47
  465. package/lib/multipart-upload/style/index.css +47 -52
  466. package/lib/multipart-upload/style/index.js +5 -5
  467. package/lib/number-format-input/index.js +34 -49
  468. package/lib/number-format-input/style/index.js +4 -4
  469. package/lib/number-input/const/dataTypeEnum.d.ts +2 -2
  470. package/lib/number-input/const/dataTypeEnum.js +4 -4
  471. package/lib/number-input/const/numberType.d.ts +2 -2
  472. package/lib/number-input/const/numberType.js +4 -4
  473. package/lib/number-input/index.d.ts +35 -37
  474. package/lib/number-input/index.js +105 -153
  475. package/lib/number-input/style/index.js +4 -4
  476. package/lib/number-input/utils.d.ts +6 -15
  477. package/lib/number-input/utils.js +5 -5
  478. package/lib/rc-echart/core.d.ts +13 -13
  479. package/lib/rc-echart/core.js +60 -88
  480. package/lib/rc-echart/index.d.ts +12 -12
  481. package/lib/rc-echart/index.js +57 -86
  482. package/lib/rc-motion/index.d.ts +2 -14
  483. package/lib/rc-motion/index.js +9 -13
  484. package/lib/rc-qrcode/index.d.ts +8 -11
  485. package/lib/rc-qrcode/index.js +62 -85
  486. package/lib/rc-qrcode/useQrcode.d.ts +2 -5
  487. package/lib/rc-qrcode/useQrcode.js +42 -51
  488. package/lib/rc-transition-group/index.js +37 -52
  489. package/lib/resizable/index.d.ts +1 -10
  490. package/lib/resizable/index.js +9 -9
  491. package/lib/resizable/style/index.js +4 -4
  492. package/lib/rich-text-editor/index.d.ts +18 -18
  493. package/lib/rich-text-editor/index.js +70 -107
  494. package/lib/rich-text-editor/lang/zh_CN.d.ts +404 -404
  495. package/lib/rich-text-editor/lang/zh_CN.js +397 -420
  496. package/lib/rich-text-editor/plugins/code/index.js +29 -38
  497. package/lib/rich-text-editor/style/index.css +47 -52
  498. package/lib/rich-text-editor/style/index.js +4 -4
  499. package/lib/single-img-upload/index.d.ts +8 -8
  500. package/lib/single-img-upload/index.js +273 -400
  501. package/lib/single-img-upload/style/index.css +47 -52
  502. package/lib/single-img-upload/style/index.js +7 -7
  503. package/lib/sortable-hoc/index.js +37 -52
  504. package/lib/split-pane/index.d.ts +53 -53
  505. package/lib/split-pane/index.js +22 -33
  506. package/lib/split-pane/style/index.js +4 -4
  507. package/lib/step-number-input/const/countType.d.ts +2 -2
  508. package/lib/step-number-input/const/countType.js +4 -4
  509. package/lib/step-number-input/const/numberType.d.ts +2 -2
  510. package/lib/step-number-input/const/numberType.js +4 -4
  511. package/lib/step-number-input/index.d.ts +31 -31
  512. package/lib/step-number-input/index.js +133 -204
  513. package/lib/step-number-input/style/index.css +47 -52
  514. package/lib/step-number-input/style/index.js +5 -5
  515. package/lib/table-col/index.d.ts +3 -3
  516. package/lib/table-col/index.js +15 -23
  517. package/lib/table-col/style/index.js +4 -4
  518. package/lib/text-area/index.d.ts +8 -13
  519. package/lib/text-area/index.js +89 -124
  520. package/lib/text-area/style/index.js +4 -4
  521. package/lib/text-input/index.d.ts +1 -3
  522. package/lib/text-input/index.js +67 -89
  523. package/lib/text-input/style/index.css +53 -123
  524. package/lib/text-input/style/index.js +4 -4
  525. package/package.json +4 -4
@@ -1,91 +1,53 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var __assign =
4
- (this && this.__assign) ||
5
- function () {
6
- __assign =
7
- Object.assign ||
8
- function (t) {
9
- for (var s, i = 1, n = arguments.length; i < n; i++) {
10
- s = arguments[i];
11
- for (var p in s) {
12
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
13
- }
14
- }
15
- return t;
16
- };
17
- return __assign.apply(this, arguments);
3
+ var __assign = this && this.__assign || function () {
4
+ __assign = Object.assign || function (t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) {
8
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9
+ }
10
+ }
11
+ return t;
18
12
  };
19
- var __importDefault =
20
- (this && this.__importDefault) ||
21
- function (mod) {
22
- return mod && mod.__esModule
23
- ? mod
24
- : {
25
- default: mod,
26
- };
13
+ return __assign.apply(this, arguments);
14
+ };
15
+ var __importDefault = this && this.__importDefault || function (mod) {
16
+ return mod && mod.__esModule ? mod : {
17
+ "default": mod
27
18
  };
28
- Object.defineProperty(exports, '__esModule', {
29
- value: true,
19
+ };
20
+ Object.defineProperty(exports, "__esModule", {
21
+ value: true
30
22
  });
31
23
  exports.alignItemsValues = exports.justifyContentValues = exports.flexWrapValues = void 0;
32
- var classnames_1 = __importDefault(require('classnames'));
24
+ var classnames_1 = __importDefault(require("classnames"));
33
25
  exports.flexWrapValues = ['wrap', 'nowrap', 'wrap-reverse'];
34
- exports.justifyContentValues = [
35
- 'flex-start',
36
- 'flex-end',
37
- 'start',
38
- 'end',
39
- 'center',
40
- 'space-between',
41
- 'space-around',
42
- 'space-evenly',
43
- 'stretch',
44
- 'normal',
45
- 'left',
46
- 'right',
47
- ];
48
- exports.alignItemsValues = [
49
- 'center',
50
- 'start',
51
- 'end',
52
- 'flex-start',
53
- 'flex-end',
54
- 'self-start',
55
- 'self-end',
56
- 'baseline',
57
- 'normal',
58
- 'stretch',
59
- ];
26
+ exports.justifyContentValues = ['flex-start', 'flex-end', 'start', 'end', 'center', 'space-between', 'space-around', 'space-evenly', 'stretch', 'normal', 'left', 'right'];
27
+ exports.alignItemsValues = ['center', 'start', 'end', 'flex-start', 'flex-end', 'self-start', 'self-end', 'baseline', 'normal', 'stretch'];
60
28
  var genClsWrap = function genClsWrap(prefixCls, props) {
61
29
  var wrapCls = {};
62
30
  exports.flexWrapValues.forEach(function (cssKey) {
63
- wrapCls[''.concat(prefixCls, '-wrap-').concat(cssKey)] = props.wrap === cssKey;
31
+ wrapCls["".concat(prefixCls, "-wrap-").concat(cssKey)] = props.wrap === cssKey;
64
32
  });
65
33
  return wrapCls;
66
34
  };
67
35
  var genClsAlign = function genClsAlign(prefixCls, props) {
68
36
  var alignCls = {};
69
37
  exports.alignItemsValues.forEach(function (cssKey) {
70
- alignCls[''.concat(prefixCls, '-align-').concat(cssKey)] = props.align === cssKey;
38
+ alignCls["".concat(prefixCls, "-align-").concat(cssKey)] = props.align === cssKey;
71
39
  });
72
- alignCls[''.concat(prefixCls, '-align-stretch')] = !props.align && !!props.vertical;
40
+ alignCls["".concat(prefixCls, "-align-stretch")] = !props.align && !!props.vertical;
73
41
  return alignCls;
74
42
  };
75
43
  var genClsJustify = function genClsJustify(prefixCls, props) {
76
44
  var justifyCls = {};
77
45
  exports.justifyContentValues.forEach(function (cssKey) {
78
- justifyCls[''.concat(prefixCls, '-justify-').concat(cssKey)] =
79
- props.justify === cssKey;
46
+ justifyCls["".concat(prefixCls, "-justify-").concat(cssKey)] = props.justify === cssKey;
80
47
  });
81
48
  return justifyCls;
82
49
  };
83
50
  function createFlexClassNames(prefixCls, props) {
84
- return (0, classnames_1['default'])(
85
- __assign(
86
- __assign(__assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)),
87
- genClsJustify(prefixCls, props),
88
- ),
89
- );
51
+ return (0, classnames_1["default"])(__assign(__assign(__assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)), genClsJustify(prefixCls, props)));
90
52
  }
91
- exports['default'] = createFlexClassNames;
53
+ exports["default"] = createFlexClassNames;
@@ -1,10 +1,7 @@
1
1
  import type { HighlightType } from './types';
2
2
  export interface HighlighedContentsProps {
3
- value: string;
4
- highlight?: HighlightType;
3
+ value: string;
4
+ highlight?: HighlightType;
5
5
  }
6
- declare const HighlighedContents: ({
7
- value,
8
- highlight,
9
- }: HighlighedContentsProps) => JSX.Element;
6
+ declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
10
7
  export default HighlighedContents;
@@ -1,32 +1,24 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var __importDefault =
4
- (this && this.__importDefault) ||
5
- function (mod) {
6
- return mod && mod.__esModule
7
- ? mod
8
- : {
9
- default: mod,
10
- };
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
11
6
  };
12
- Object.defineProperty(exports, '__esModule', {
13
- value: true,
7
+ };
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
14
10
  });
15
- var react_1 = __importDefault(require('react'));
16
- var getRanges_1 = __importDefault(require('./getRanges'));
17
- var extractSpansOfClasses_1 = __importDefault(require('./extractSpansOfClasses'));
11
+ var react_1 = __importDefault(require("react"));
12
+ var getRanges_1 = __importDefault(require("./getRanges"));
13
+ var extractSpansOfClasses_1 = __importDefault(require("./extractSpansOfClasses"));
18
14
  var HighlighedContents = function HighlighedContents(_a) {
19
15
  var value = _a.value,
20
16
  _b = _a.highlight,
21
17
  highlight = _b === void 0 ? '' : _b;
22
- var ranges = (0, getRanges_1['default'])(value, highlight);
23
- var parts = (0, extractSpansOfClasses_1['default'])(value, ranges);
24
- return react_1['default'].createElement(
25
- react_1['default'].Fragment,
26
- null,
27
- parts.map(function (part) {
28
- return part.render();
29
- }),
30
- );
18
+ var ranges = (0, getRanges_1["default"])(value, highlight);
19
+ var parts = (0, extractSpansOfClasses_1["default"])(value, ranges);
20
+ return react_1["default"].createElement(react_1["default"].Fragment, null, parts.map(function (part) {
21
+ return part.render();
22
+ }));
31
23
  };
32
- exports['default'] = HighlighedContents;
24
+ exports["default"] = HighlighedContents;
@@ -1,15 +1,15 @@
1
1
  import type { RangesType } from './types';
2
2
  declare class Span {
3
- beginIndex: number;
4
- endIndex: number;
5
- markClasses: Set<string>;
6
- isMark: boolean;
7
- text: string;
8
- constructor(text: string, beginIndex: number);
9
- setMark(className: string): void;
10
- carve(beginIndex2: number): Span;
11
- get className(): string;
12
- render(): JSX.Element;
3
+ beginIndex: number;
4
+ endIndex: number;
5
+ markClasses: Set<string>;
6
+ isMark: boolean;
7
+ text: string;
8
+ constructor(text: string, beginIndex: number);
9
+ setMark(className: string): void;
10
+ carve(beginIndex2: number): Span;
11
+ get className(): string;
12
+ render(): JSX.Element;
13
13
  }
14
14
  export default function extractSpansOfClasses(value: string, ranges: RangesType): Span[];
15
15
  export {};
@@ -1,59 +1,50 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var __read =
4
- (this && this.__read) ||
5
- function (o, n) {
6
- var m = typeof Symbol === 'function' && o[Symbol.iterator];
7
- if (!m) return o;
8
- var i = m.call(o),
9
- r,
10
- ar = [],
11
- e;
3
+ var __read = this && this.__read || function (o, n) {
4
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5
+ if (!m) return o;
6
+ var i = m.call(o),
7
+ r,
8
+ ar = [],
9
+ e;
10
+ try {
11
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12
+ ar.push(r.value);
13
+ }
14
+ } catch (error) {
15
+ e = {
16
+ error: error
17
+ };
18
+ } finally {
12
19
  try {
13
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
14
- ar.push(r.value);
15
- }
16
- } catch (error) {
17
- e = {
18
- error: error,
19
- };
20
+ if (r && !r.done && (m = i["return"])) m.call(i);
20
21
  } finally {
21
- try {
22
- if (r && !r.done && (m = i['return'])) m.call(i);
23
- } finally {
24
- if (e) throw e.error;
25
- }
22
+ if (e) throw e.error;
26
23
  }
27
- return ar;
28
- };
29
- var __spreadArray =
30
- (this && this.__spreadArray) ||
31
- function (to, from, pack) {
32
- if (pack || arguments.length === 2)
33
- for (var i = 0, l = from.length, ar; i < l; i++) {
34
- if (ar || !(i in from)) {
35
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
36
- ar[i] = from[i];
37
- }
38
- }
39
- return to.concat(ar || Array.prototype.slice.call(from));
40
- };
41
- var __importDefault =
42
- (this && this.__importDefault) ||
43
- function (mod) {
44
- return mod && mod.__esModule
45
- ? mod
46
- : {
47
- default: mod,
48
- };
24
+ }
25
+ return ar;
26
+ };
27
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
28
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
29
+ if (ar || !(i in from)) {
30
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
31
+ ar[i] = from[i];
32
+ }
33
+ }
34
+ return to.concat(ar || Array.prototype.slice.call(from));
35
+ };
36
+ var __importDefault = this && this.__importDefault || function (mod) {
37
+ return mod && mod.__esModule ? mod : {
38
+ "default": mod
49
39
  };
50
- Object.defineProperty(exports, '__esModule', {
51
- value: true,
40
+ };
41
+ Object.defineProperty(exports, "__esModule", {
42
+ value: true
52
43
  });
53
- exports['default'] = extractSpansOfClasses;
44
+ exports["default"] = extractSpansOfClasses;
54
45
  /* eslint-disable no-plusplus */
55
- var react_1 = __importDefault(require('react'));
56
- var Span = /** @class */ (function () {
46
+ var react_1 = __importDefault(require("react"));
47
+ var Span = /** @class */function () {
57
48
  function Span(text, beginIndex) {
58
49
  this.beginIndex = beginIndex;
59
50
  this.endIndex = beginIndex + text.length;
@@ -79,7 +70,7 @@ var Span = /** @class */ (function () {
79
70
  right.markClasses = new Set(__spreadArray([], __read(this.markClasses), false));
80
71
  return right;
81
72
  };
82
- Object.defineProperty(Span.prototype, 'className', {
73
+ Object.defineProperty(Span.prototype, "className", {
83
74
  get: function get() {
84
75
  if (this.markClasses && this.markClasses.size > 0) {
85
76
  return __spreadArray([], __read(this.markClasses), false).sort().join(' ');
@@ -87,39 +78,27 @@ var Span = /** @class */ (function () {
87
78
  return '';
88
79
  },
89
80
  enumerable: false,
90
- configurable: true,
81
+ configurable: true
91
82
  });
92
83
  Span.prototype.render = function () {
93
84
  if (this.isMark) {
94
85
  var className = this.className;
95
86
  if (className) {
96
- return react_1['default'].createElement(
97
- 'mark',
98
- {
99
- key: this.beginIndex,
100
- className: className,
101
- },
102
- this.text,
103
- );
104
- }
105
- return react_1['default'].createElement(
106
- 'mark',
107
- {
87
+ return react_1["default"].createElement("mark", {
108
88
  key: this.beginIndex,
109
- },
110
- this.text,
111
- );
89
+ className: className
90
+ }, this.text);
91
+ }
92
+ return react_1["default"].createElement("mark", {
93
+ key: this.beginIndex
94
+ }, this.text);
112
95
  }
113
- return react_1['default'].createElement(
114
- 'span',
115
- {
116
- key: this.beginIndex,
117
- },
118
- this.text,
119
- );
96
+ return react_1["default"].createElement("span", {
97
+ key: this.beginIndex
98
+ }, this.text);
120
99
  };
121
100
  return Span;
122
- })();
101
+ }();
123
102
  function extractSpansOfClasses(value, ranges) {
124
103
  var spans = [new Span(value, 0)];
125
104
  ranges.forEach(function (range) {
@@ -172,4 +151,4 @@ function extractSpansOfClasses(value, ranges) {
172
151
  }
173
152
  });
174
153
  return spans;
175
- }
154
+ }
@@ -1,62 +1,53 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- var __read =
4
- (this && this.__read) ||
5
- function (o, n) {
6
- var m = typeof Symbol === 'function' && o[Symbol.iterator];
7
- if (!m) return o;
8
- var i = m.call(o),
9
- r,
10
- ar = [],
11
- e;
3
+ var __read = this && this.__read || function (o, n) {
4
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5
+ if (!m) return o;
6
+ var i = m.call(o),
7
+ r,
8
+ ar = [],
9
+ e;
10
+ try {
11
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12
+ ar.push(r.value);
13
+ }
14
+ } catch (error) {
15
+ e = {
16
+ error: error
17
+ };
18
+ } finally {
12
19
  try {
13
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
14
- ar.push(r.value);
15
- }
16
- } catch (error) {
17
- e = {
18
- error: error,
19
- };
20
+ if (r && !r.done && (m = i["return"])) m.call(i);
20
21
  } finally {
21
- try {
22
- if (r && !r.done && (m = i['return'])) m.call(i);
23
- } finally {
24
- if (e) throw e.error;
25
- }
22
+ if (e) throw e.error;
26
23
  }
27
- return ar;
28
- };
29
- var __spreadArray =
30
- (this && this.__spreadArray) ||
31
- function (to, from, pack) {
32
- if (pack || arguments.length === 2)
33
- for (var i = 0, l = from.length, ar; i < l; i++) {
34
- if (ar || !(i in from)) {
35
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
36
- ar[i] = from[i];
37
- }
38
- }
39
- return to.concat(ar || Array.prototype.slice.call(from));
40
- };
41
- var __importDefault =
42
- (this && this.__importDefault) ||
43
- function (mod) {
44
- return mod && mod.__esModule
45
- ? mod
46
- : {
47
- default: mod,
48
- };
24
+ }
25
+ return ar;
26
+ };
27
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
28
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
29
+ if (ar || !(i in from)) {
30
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
31
+ ar[i] = from[i];
32
+ }
33
+ }
34
+ return to.concat(ar || Array.prototype.slice.call(from));
35
+ };
36
+ var __importDefault = this && this.__importDefault || function (mod) {
37
+ return mod && mod.__esModule ? mod : {
38
+ "default": mod
49
39
  };
50
- Object.defineProperty(exports, '__esModule', {
51
- value: true,
40
+ };
41
+ Object.defineProperty(exports, "__esModule", {
42
+ value: true
52
43
  });
53
- exports['default'] = getRanges;
44
+ exports["default"] = getRanges;
54
45
  /* eslint-disable no-param-reassign */
55
46
  /* eslint-disable @typescript-eslint/no-use-before-define */
56
47
  /* eslint-disable no-cond-assign */
57
- var getType_1 = __importDefault(require('./getType'));
48
+ var getType_1 = __importDefault(require("./getType"));
58
49
  function getRanges(input, highlight) {
59
- var type = (0, getType_1['default'])(highlight);
50
+ var type = (0, getType_1["default"])(highlight);
60
51
  switch (type) {
61
52
  case 'array':
62
53
  return getArrayRanges(input, highlight);
@@ -92,7 +83,7 @@ function getFunctionRanges(input, func) {
92
83
  function getRegExpRanges(input, regex) {
93
84
  var ranges = [];
94
85
  var match;
95
- while (((match = regex.exec(input)), match !== null)) {
86
+ while (match = regex.exec(input), match !== null) {
96
87
  ranges.push([match.index, match.index + match[0].length]);
97
88
  if (!regex.global) {
98
89
  // non-global regexes do not increase lastIndex, causing an infinite loop,
@@ -107,7 +98,7 @@ function getStringRanges(input, str) {
107
98
  var inputLower = input.toLowerCase();
108
99
  var strLower = str.toLowerCase();
109
100
  var index = 0;
110
- while (((index = inputLower.indexOf(strLower, index)), index !== -1)) {
101
+ while (index = inputLower.indexOf(strLower, index), index !== -1) {
111
102
  ranges.push([index, index + strLower.length]);
112
103
  index += strLower.length;
113
104
  }
@@ -123,9 +114,7 @@ function getCustomRanges(input, custom) {
123
114
  resultRangesData.forEach(function (range) {
124
115
  var rangeOption = range[2] || {};
125
116
  if (rangeOption.className) {
126
- rangeOption.className = ''
127
- .concat(custom.className, ' ')
128
- .concat(rangeOption.className);
117
+ rangeOption.className = "".concat(custom.className, " ").concat(rangeOption.className);
129
118
  } else {
130
119
  rangeOption.className = custom.className;
131
120
  }
@@ -133,4 +122,4 @@ function getCustomRanges(input, custom) {
133
122
  });
134
123
  }
135
124
  return ranges;
136
- }
125
+ }
@@ -1,20 +1,16 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true,
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
5
  });
6
- exports['default'] = getType;
6
+ exports["default"] = getType;
7
7
  function getType(instance) {
8
8
  var type = typeof instance;
9
9
  if (!instance) {
10
10
  return 'falsely';
11
11
  }
12
12
  if (Array.isArray(instance)) {
13
- if (
14
- instance.length === 2 &&
15
- typeof instance[0] === 'number' &&
16
- typeof instance[1] === 'number'
17
- ) {
13
+ if (instance.length === 2 && typeof instance[0] === 'number' && typeof instance[1] === 'number') {
18
14
  return 'range';
19
15
  }
20
16
  return 'array';
@@ -30,4 +26,4 @@ function getType(instance) {
30
26
  return type;
31
27
  }
32
28
  return 'other';
33
- }
29
+ }
@@ -1,19 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import type { HighlighedContentsProps } from './HighlighedContents';
3
3
  import type { HighlightType } from './types';
4
- export interface HighlightTextareaProps
5
- extends HighlighedContentsProps,
6
- Omit<
7
- React.TextareaHTMLAttributes<HTMLTextAreaElement>,
8
- 'value' | 'onChange' | 'onScroll' | 'style'
9
- > {
10
- prefixCls?: string;
11
- className?: string;
12
- textAreaClassName?: string;
13
- onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
14
- highlight?: HighlightType;
4
+ export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
5
+ prefixCls?: string;
6
+ className?: string;
7
+ textAreaClassName?: string;
8
+ onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
9
+ highlight?: HighlightType;
15
10
  }
16
- declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<
17
- HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>
18
- >;
11
+ declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
19
12
  export default HighlightWithinTextarea;