amis-ui 3.2.0 → 3.3.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 (807) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.d.ts +122 -122
  3. package/esm/components/Alert.js +55 -17
  4. package/esm/components/Alert2.d.ts +20 -20
  5. package/esm/components/Alert2.js +5 -8
  6. package/esm/components/AnchorNav.d.ts +20 -20
  7. package/esm/components/AnchorNav.js +1 -1
  8. package/esm/components/ArrayInput.d.ts +40 -40
  9. package/esm/components/ArrayInput.js +1 -1
  10. package/esm/components/AsideNav.js +1 -1
  11. package/esm/components/AssociatedSelection.d.ts +120 -120
  12. package/esm/components/AssociatedSelection.js +1 -1
  13. package/esm/components/Avatar.d.ts +102 -101
  14. package/esm/components/Avatar.js +4 -3
  15. package/esm/components/Badge.js +1 -1
  16. package/esm/components/BaiduMapPicker.js +1 -1
  17. package/esm/components/BarCode.js +1 -1
  18. package/esm/components/Breadcrumb.js +5 -9
  19. package/esm/components/Button.d.ts +20 -20
  20. package/esm/components/Button.js +1 -1
  21. package/esm/components/CalendarMobile.d.ts +40 -40
  22. package/esm/components/CalendarMobile.js +1 -1
  23. package/esm/components/Card.d.ts +100 -100
  24. package/esm/components/Card.js +1 -1
  25. package/esm/components/Cascader.js +1 -1
  26. package/esm/components/ChainedDropdownSelection.d.ts +120 -120
  27. package/esm/components/ChainedDropdownSelection.js +1 -1
  28. package/esm/components/ChainedSelection.d.ts +120 -120
  29. package/esm/components/ChainedSelection.js +1 -1
  30. package/esm/components/Checkbox.d.ts +10 -10
  31. package/esm/components/Checkbox.js +1 -1
  32. package/esm/components/CityArea.js +1 -1
  33. package/esm/components/CityDB.js +1 -1
  34. package/esm/components/CodeMirror.js +1 -1
  35. package/esm/components/Collapse.d.ts +140 -140
  36. package/esm/components/Collapse.js +2 -2
  37. package/esm/components/CollapseGroup.d.ts +30 -30
  38. package/esm/components/CollapseGroup.js +1 -1
  39. package/esm/components/ColorPicker.d.ts +80 -80
  40. package/esm/components/ColorPicker.js +1 -1
  41. package/esm/components/Combo.js +1 -1
  42. package/esm/components/ConfirmBox.d.ts +80 -80
  43. package/esm/components/ConfirmBox.js +1 -1
  44. package/esm/components/ContextMenu.d.ts +2 -2
  45. package/esm/components/ContextMenu.js +25 -10
  46. package/esm/components/DatePicker.d.ts +82 -81
  47. package/esm/components/DatePicker.js +5 -2
  48. package/esm/components/DateRangePicker.d.ts +120 -120
  49. package/esm/components/DateRangePicker.js +1 -1
  50. package/esm/components/DndContainer.js +1 -1
  51. package/esm/components/Drawer.d.ts +30 -30
  52. package/esm/components/Drawer.js +1 -1
  53. package/esm/components/DropDownSelection.d.ts +120 -120
  54. package/esm/components/DropDownSelection.js +1 -1
  55. package/esm/components/Editor.d.ts +120 -120
  56. package/esm/components/Editor.js +1 -1
  57. package/esm/components/Form.js +1 -1
  58. package/esm/components/FormField.js +1 -1
  59. package/esm/components/GaodeMapPicker.js +1 -1
  60. package/esm/components/GridNav.js +1 -1
  61. package/esm/components/GroupedSelection.d.ts +120 -120
  62. package/esm/components/GroupedSelection.js +1 -1
  63. package/esm/components/Html.js +1 -1
  64. package/esm/components/ImageGallery.d.ts +40 -40
  65. package/esm/components/ImageGallery.js +1 -1
  66. package/esm/components/Input.js +1 -1
  67. package/esm/components/InputBox.d.ts +10 -10
  68. package/esm/components/InputBox.js +1 -1
  69. package/esm/components/InputBoxWithSuggestion.js +2 -2
  70. package/esm/components/InputTable.js +1 -1
  71. package/esm/components/Layout.d.ts +10 -10
  72. package/esm/components/Layout.js +1 -1
  73. package/esm/components/Link.js +5 -4
  74. package/esm/components/ListGroup.d.ts +10 -10
  75. package/esm/components/ListGroup.js +1 -1
  76. package/esm/components/ListMenu.d.ts +80 -80
  77. package/esm/components/ListMenu.js +1 -1
  78. package/esm/components/LocationPicker.d.ts +40 -40
  79. package/esm/components/LocationPicker.js +4 -4
  80. package/esm/components/Markdown.js +1 -1
  81. package/esm/components/Modal.d.ts +80 -80
  82. package/esm/components/Modal.js +1 -1
  83. package/esm/components/ModalManager.js +1 -1
  84. package/esm/components/MonthRangePicker.d.ts +120 -120
  85. package/esm/components/MultilineText.d.ts +40 -40
  86. package/esm/components/MultilineText.js +1 -1
  87. package/esm/components/NumberInput.d.ts +20 -20
  88. package/esm/components/NumberInput.js +6 -3
  89. package/esm/components/Pagination.d.ts +80 -80
  90. package/esm/components/Pagination.js +1 -1
  91. package/esm/components/Picker.js +1 -1
  92. package/esm/components/PickerColumn.js +1 -1
  93. package/esm/components/PickerContainer.js +1 -1
  94. package/esm/components/PopOverContainer.js +1 -1
  95. package/esm/components/PopUp.d.ts +120 -120
  96. package/esm/components/PopUp.js +1 -1
  97. package/esm/components/Progress.d.ts +30 -30
  98. package/esm/components/Progress.js +1 -1
  99. package/esm/components/PullRefresh.js +1 -1
  100. package/esm/components/Radios.d.ts +11 -10
  101. package/esm/components/Radios.js +7 -6
  102. package/esm/components/Range.js +4 -4
  103. package/esm/components/Rating.d.ts +20 -20
  104. package/esm/components/Rating.js +2 -2
  105. package/esm/components/ResultBox.d.ts +80 -80
  106. package/esm/components/ResultBox.js +1 -1
  107. package/esm/components/ResultList.d.ts +40 -40
  108. package/esm/components/ResultList.js +2 -2
  109. package/esm/components/ResultTableList.d.ts +120 -120
  110. package/esm/components/ResultTableList.js +1 -1
  111. package/esm/components/ResultTreeList.d.ts +40 -40
  112. package/esm/components/ResultTreeList.js +4 -2
  113. package/esm/components/RichText.js +1 -1
  114. package/esm/components/SearchBox.d.ts +82 -82
  115. package/esm/components/SearchBox.js +4 -4
  116. package/esm/components/Select.d.ts +1546 -1546
  117. package/esm/components/Select.js +4 -2
  118. package/esm/components/SelectMobile.js +1 -1
  119. package/esm/components/Selection.d.ts +120 -120
  120. package/esm/components/Selection.js +1 -1
  121. package/esm/components/SparkLine.d.ts +40 -40
  122. package/esm/components/SparkLine.js +1 -1
  123. package/esm/components/Spinner.d.ts +50 -50
  124. package/esm/components/Spinner.js +4 -4
  125. package/esm/components/Steps.js +1 -1
  126. package/esm/components/Switch.d.ts +10 -10
  127. package/esm/components/Switch.js +1 -1
  128. package/esm/components/TableSelection.d.ts +120 -120
  129. package/esm/components/TableSelection.js +3 -2
  130. package/esm/components/Tabs.d.ts +80 -80
  131. package/esm/components/Tabs.js +3 -3
  132. package/esm/components/TabsTransfer.d.ts +40 -40
  133. package/esm/components/TabsTransfer.js +1 -1
  134. package/esm/components/TabsTransferPicker.js +1 -1
  135. package/esm/components/Tag.d.ts +80 -80
  136. package/esm/components/Tag.js +5 -10
  137. package/esm/components/Textarea.d.ts +40 -40
  138. package/esm/components/Textarea.js +1 -1
  139. package/esm/components/Timeline.js +1 -1
  140. package/esm/components/TimelineItem.d.ts +1 -1
  141. package/esm/components/TimelineItem.js +4 -3
  142. package/esm/components/Tinymce.d.ts +1 -0
  143. package/esm/components/Tinymce.js +7 -3
  144. package/esm/components/TitleBar.js +1 -1
  145. package/esm/components/Toast.d.ts +80 -80
  146. package/esm/components/Toast.js +1 -1
  147. package/esm/components/Tooltip.js +1 -1
  148. package/esm/components/TooltipWrapper.d.ts +30 -30
  149. package/esm/components/TooltipWrapper.js +1 -1
  150. package/esm/components/Transfer.d.ts +169 -169
  151. package/esm/components/Transfer.js +7 -2
  152. package/esm/components/TransferDropDown.d.ts +160 -160
  153. package/esm/components/TransferDropDown.js +1 -1
  154. package/esm/components/TransferPicker.js +1 -1
  155. package/esm/components/TransferSearch.js +2 -2
  156. package/esm/components/Tree.d.ts +160 -160
  157. package/esm/components/Tree.js +35 -9
  158. package/esm/components/TreeSelection.d.ts +120 -120
  159. package/esm/components/TreeSelection.js +1 -1
  160. package/esm/components/UserSelect.d.ts +40 -40
  161. package/esm/components/UserSelect.js +1 -1
  162. package/esm/components/UserTabSelect.d.ts +40 -40
  163. package/esm/components/UserTabSelect.js +1 -1
  164. package/esm/components/WithRemoteConfig.js +1 -1
  165. package/esm/components/WithStore.js +1 -1
  166. package/esm/components/calendar/Calendar.js +1 -1
  167. package/esm/components/calendar/CalendarContainer.js +1 -1
  168. package/esm/components/calendar/DaysView.js +1 -1
  169. package/esm/components/calendar/MonthsView.js +1 -1
  170. package/esm/components/calendar/QuartersView.js +1 -1
  171. package/esm/components/calendar/TimeView.js +1 -1
  172. package/esm/components/calendar/YearsView.js +1 -1
  173. package/esm/components/condition-builder/Expression.js +1 -1
  174. package/esm/components/condition-builder/Field.js +1 -1
  175. package/esm/components/condition-builder/Formula.js +1 -1
  176. package/esm/components/condition-builder/Func.js +1 -1
  177. package/esm/components/condition-builder/Group.js +1 -1
  178. package/esm/components/condition-builder/GroupOrItem.js +2 -2
  179. package/esm/components/condition-builder/InputSwitch.js +1 -1
  180. package/esm/components/condition-builder/Item.js +1 -1
  181. package/esm/components/condition-builder/Value.js +8 -3
  182. package/esm/components/condition-builder/config.js +1 -1
  183. package/esm/components/condition-builder/index.js +1 -1
  184. package/esm/components/formula/Editor.d.ts +43 -40
  185. package/esm/components/formula/Editor.js +36 -9
  186. package/esm/components/formula/FuncList.js +8 -4
  187. package/esm/components/formula/Input.d.ts +272 -0
  188. package/esm/components/formula/Input.js +115 -0
  189. package/esm/components/formula/Picker.d.ts +61 -44
  190. package/esm/components/formula/Picker.js +86 -16
  191. package/esm/components/formula/VariableList.js +43 -23
  192. package/esm/components/formula/plugin.js +1 -1
  193. package/esm/components/icons.d.ts +11 -2
  194. package/esm/components/icons.js +64 -22
  195. package/esm/components/json-schema/Array.js +2 -2
  196. package/esm/components/json-schema/Item.js +1 -1
  197. package/esm/components/json-schema/Object.js +2 -2
  198. package/esm/components/json-schema/index.js +1 -1
  199. package/esm/components/menu/MenuContext.js +1 -1
  200. package/esm/components/menu/MenuItem.js +1 -1
  201. package/esm/components/menu/SubMenu.js +1 -1
  202. package/esm/components/menu/index.d.ts +60 -60
  203. package/esm/components/menu/index.js +1 -1
  204. package/esm/components/schema-editor/Array.js +1 -1
  205. package/esm/components/schema-editor/Common.js +1 -1
  206. package/esm/components/schema-editor/Item.js +1 -1
  207. package/esm/components/schema-editor/Object.js +1 -1
  208. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  209. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  210. package/esm/components/schema-editor/index.d.ts +40 -40
  211. package/esm/components/schema-editor/index.js +1 -1
  212. package/esm/components/table/Cell.d.ts +80 -80
  213. package/esm/components/table/Cell.js +1 -1
  214. package/esm/components/table/HeadCellDropDown.js +1 -1
  215. package/esm/components/table/HeadCellFilter.d.ts +40 -40
  216. package/esm/components/table/HeadCellFilter.js +1 -1
  217. package/esm/components/table/HeadCellSelect.d.ts +40 -40
  218. package/esm/components/table/HeadCellSelect.js +1 -1
  219. package/esm/components/table/HeadCellSort.js +1 -1
  220. package/esm/components/table/ItemActionsWrapper.js +1 -1
  221. package/esm/components/table/index.d.ts +120 -120
  222. package/esm/components/table/index.js +1 -1
  223. package/esm/components/virtual-list/AutoSizer.js +1 -1
  224. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  225. package/esm/components/virtual-list/constants.js +1 -1
  226. package/esm/components/virtual-list/index.js +1 -1
  227. package/esm/hooks/use-set-state.js +1 -1
  228. package/esm/hooks/use-sub-form.js +1 -1
  229. package/esm/hooks/use-touch.js +1 -1
  230. package/esm/hooks/use-update-effect.js +1 -1
  231. package/esm/hooks/use-validation-resolver.js +1 -1
  232. package/esm/icons/alert-danger.svg.js +1 -1
  233. package/esm/icons/alert-info.svg.js +1 -1
  234. package/esm/icons/alert-success.svg.js +1 -1
  235. package/esm/icons/alert-warning.svg.js +1 -1
  236. package/esm/icons/back.svg.js +1 -1
  237. package/esm/icons/calendar.svg.js +1 -1
  238. package/esm/icons/caret.svg.js +1 -1
  239. package/esm/icons/check.svg.js +1 -1
  240. package/esm/icons/clock.svg.js +1 -1
  241. package/esm/icons/close-small.svg.js +1 -1
  242. package/esm/icons/close.svg.js +1 -1
  243. package/esm/icons/cloud-upload.svg.js +1 -1
  244. package/esm/icons/column-filter.svg.js +1 -1
  245. package/esm/icons/columns.svg.js +1 -1
  246. package/esm/icons/compress-alt.svg.js +1 -1
  247. package/esm/icons/copy.svg.js +1 -1
  248. package/esm/icons/date.svg.js +1 -1
  249. package/esm/icons/department.svg.js +1 -1
  250. package/esm/icons/desk-empty.svg.js +1 -1
  251. package/esm/icons/dot.svg.js +1 -1
  252. package/esm/icons/down-arrow-bold.svg.js +1 -1
  253. package/esm/icons/down.svg.js +1 -1
  254. package/esm/icons/download.svg.js +1 -1
  255. package/esm/icons/drag-bar.svg.js +1 -1
  256. package/esm/icons/drag.svg.js +1 -1
  257. package/esm/icons/edit.svg.js +1 -1
  258. package/esm/icons/ellipsis-v.svg.js +1 -1
  259. package/esm/icons/enter.svg.js +1 -1
  260. package/esm/icons/exchange.svg.js +1 -1
  261. package/esm/icons/expand-alt.svg.js +1 -1
  262. package/esm/icons/fail.svg.js +1 -1
  263. package/esm/icons/file.svg.js +1 -1
  264. package/esm/icons/filter.svg.js +1 -1
  265. package/esm/icons/folder.svg.js +1 -1
  266. package/esm/icons/function.svg.js +15 -8
  267. package/esm/icons/home.svg.js +1 -1
  268. package/esm/icons/image.svg.js +1 -1
  269. package/esm/icons/info-circle.svg.js +1 -1
  270. package/esm/icons/info.svg.js +1 -1
  271. package/esm/icons/input-clear.svg.js +1 -1
  272. package/esm/icons/invisible.svg.js +1 -1
  273. package/esm/icons/left-arrow.svg.js +1 -1
  274. package/esm/icons/loading-outline.svg.js +1 -1
  275. package/esm/icons/location.svg.js +1 -1
  276. package/esm/icons/menu.svg.js +1 -1
  277. package/esm/icons/minus.svg.js +1 -1
  278. package/esm/icons/move.svg.js +1 -1
  279. package/esm/icons/mute.svg.js +1 -1
  280. package/esm/icons/new-edit.svg.js +1 -1
  281. package/esm/icons/pause.svg.js +1 -1
  282. package/esm/icons/pencil.svg.js +1 -1
  283. package/esm/icons/play.svg.js +1 -1
  284. package/esm/icons/plus-cicle.svg.js +1 -1
  285. package/esm/icons/plus-fine.svg.js +1 -1
  286. package/esm/icons/plus.svg.js +1 -1
  287. package/esm/icons/post.svg.js +1 -1
  288. package/esm/icons/question-mark.svg.js +1 -1
  289. package/esm/icons/question.svg.js +1 -1
  290. package/esm/icons/redo.svg.js +1 -1
  291. package/esm/icons/refresh.svg.js +1 -1
  292. package/esm/icons/reload.svg.js +1 -1
  293. package/esm/icons/remove.svg.js +1 -1
  294. package/esm/icons/retry.svg.js +1 -1
  295. package/esm/icons/right-arrow-bold.svg.js +1 -1
  296. package/esm/icons/right-arrow.svg.js +1 -1
  297. package/esm/icons/right-double-arrow.svg.js +1 -1
  298. package/esm/icons/role.svg.js +1 -1
  299. package/esm/icons/rotate-left.svg.js +1 -1
  300. package/esm/icons/rotate-right.svg.js +1 -1
  301. package/esm/icons/scale-origin.svg.js +1 -1
  302. package/esm/icons/schedule.svg.js +1 -1
  303. package/esm/icons/search.svg.js +1 -1
  304. package/esm/icons/setting.svg.js +1 -1
  305. package/esm/icons/slider-handle-icon.svg.js +1 -1
  306. package/esm/icons/sort-asc.svg.js +1 -1
  307. package/esm/icons/sort-default.svg.js +1 -1
  308. package/esm/icons/sort-desc.svg.js +1 -1
  309. package/esm/icons/star.svg.js +1 -1
  310. package/esm/icons/status-close.svg.js +1 -1
  311. package/esm/icons/steps-finsh.svg.js +1 -1
  312. package/esm/icons/success.svg.js +1 -1
  313. package/esm/icons/transparent.svg.js +1 -1
  314. package/esm/icons/trash.svg.js +1 -1
  315. package/esm/icons/tree-down.svg.js +1 -1
  316. package/esm/icons/undo.svg.js +1 -1
  317. package/esm/icons/upload.svg.js +1 -1
  318. package/esm/icons/user-remove.svg.js +1 -1
  319. package/esm/icons/view.svg.js +1 -1
  320. package/esm/icons/volume.svg.js +1 -1
  321. package/esm/icons/warning-mark.svg.js +1 -1
  322. package/esm/icons/warning.svg.js +1 -1
  323. package/esm/icons/window-restore.svg.js +1 -1
  324. package/esm/icons/zoom-in.svg.js +1 -1
  325. package/esm/icons/zoom-out.svg.js +1 -1
  326. package/esm/index.js +1 -1
  327. package/esm/locale/de-DE.js +6 -2
  328. package/esm/locale/en-US.js +6 -2
  329. package/esm/locale/zh-CN.js +6 -2
  330. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
  331. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  332. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  333. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  334. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  335. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  336. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  337. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  338. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  339. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  340. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  341. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
  342. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  343. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  344. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  345. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  346. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  347. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  348. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  349. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  350. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  351. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  352. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  353. package/esm/node_modules/rc-overflow/es/Item.js +1 -1
  354. package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
  355. package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
  356. package/esm/node_modules/rc-overflow/es/context.js +1 -1
  357. package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
  358. package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
  359. package/esm/node_modules/rc-overflow/es/index.js +1 -1
  360. package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
  361. package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
  362. package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
  363. package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
  364. package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
  365. package/esm/node_modules/rc-util/es/Children/toArray.js +3 -4
  366. package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  367. package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  368. package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
  369. package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  370. package/esm/node_modules/rc-util/es/raf.js +1 -1
  371. package/esm/node_modules/rc-util/es/ref.js +3 -4
  372. package/esm/node_modules/rc-util/es/warning.js +1 -1
  373. package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  374. package/esm/themes/ang.js +1 -1
  375. package/esm/themes/antd.js +1 -1
  376. package/esm/themes/cxd.js +1 -1
  377. package/esm/themes/dark.js +1 -1
  378. package/lib/components/404.js +12 -13
  379. package/lib/components/Alert.d.ts +42 -42
  380. package/lib/components/Alert.js +64 -27
  381. package/lib/components/Alert2.d.ts +10 -10
  382. package/lib/components/Alert2.js +13 -17
  383. package/lib/components/AnchorNav.d.ts +10 -10
  384. package/lib/components/AnchorNav.js +10 -12
  385. package/lib/components/ArrayInput.d.ts +40 -40
  386. package/lib/components/ArrayInput.js +17 -14
  387. package/lib/components/AsideNav.js +13 -15
  388. package/lib/components/AssociatedSelection.d.ts +40 -40
  389. package/lib/components/AssociatedSelection.js +11 -17
  390. package/lib/components/Avatar.d.ts +42 -41
  391. package/lib/components/Avatar.js +10 -6
  392. package/lib/components/Badge.js +13 -13
  393. package/lib/components/BaiduMapPicker.js +15 -12
  394. package/lib/components/BarCode.js +5 -5
  395. package/lib/components/Breadcrumb.js +21 -25
  396. package/lib/components/Button.d.ts +10 -10
  397. package/lib/components/Button.js +7 -8
  398. package/lib/components/CalendarMobile.d.ts +40 -40
  399. package/lib/components/CalendarMobile.js +36 -38
  400. package/lib/components/Card.d.ts +50 -50
  401. package/lib/components/Card.js +22 -19
  402. package/lib/components/Cascader.js +18 -19
  403. package/lib/components/ChainedDropdownSelection.d.ts +40 -40
  404. package/lib/components/ChainedDropdownSelection.js +7 -5
  405. package/lib/components/ChainedSelection.d.ts +40 -40
  406. package/lib/components/ChainedSelection.js +23 -20
  407. package/lib/components/Checkbox.d.ts +10 -10
  408. package/lib/components/Checkbox.js +9 -10
  409. package/lib/components/CityArea.js +9 -10
  410. package/lib/components/CityDB.js +1 -1
  411. package/lib/components/CodeMirror.js +5 -2
  412. package/lib/components/Collapse.d.ts +50 -50
  413. package/lib/components/Collapse.js +12 -14
  414. package/lib/components/CollapseGroup.d.ts +30 -30
  415. package/lib/components/CollapseGroup.js +5 -7
  416. package/lib/components/ColorPicker.d.ts +40 -40
  417. package/lib/components/ColorPicker.js +15 -17
  418. package/lib/components/Combo.js +16 -73
  419. package/lib/components/ConfirmBox.d.ts +40 -40
  420. package/lib/components/ConfirmBox.js +24 -21
  421. package/lib/components/ContextMenu.d.ts +2 -2
  422. package/lib/components/ContextMenu.js +37 -19
  423. package/lib/components/DatePicker.d.ts +41 -40
  424. package/lib/components/DatePicker.js +26 -25
  425. package/lib/components/DateRangePicker.d.ts +40 -40
  426. package/lib/components/DateRangePicker.js +40 -42
  427. package/lib/components/DndContainer.js +6 -8
  428. package/lib/components/Drawer.js +13 -15
  429. package/lib/components/DropDownSelection.d.ts +40 -40
  430. package/lib/components/DropDownSelection.js +14 -15
  431. package/lib/components/Editor.d.ts +40 -40
  432. package/lib/components/Editor.js +9 -11
  433. package/lib/components/Form.js +8 -5
  434. package/lib/components/FormField.js +20 -21
  435. package/lib/components/GaodeMapPicker.js +10 -7
  436. package/lib/components/GridNav.js +15 -16
  437. package/lib/components/GroupedSelection.d.ts +40 -40
  438. package/lib/components/GroupedSelection.js +22 -19
  439. package/lib/components/Html.js +5 -7
  440. package/lib/components/ImageGallery.d.ts +40 -40
  441. package/lib/components/ImageGallery.js +28 -25
  442. package/lib/components/Input.js +6 -3
  443. package/lib/components/InputBox.d.ts +10 -10
  444. package/lib/components/InputBox.js +8 -5
  445. package/lib/components/InputBoxWithSuggestion.js +11 -8
  446. package/lib/components/InputTable.js +24 -21
  447. package/lib/components/Layout.d.ts +10 -10
  448. package/lib/components/Layout.js +13 -26
  449. package/lib/components/Link.js +8 -4
  450. package/lib/components/ListGroup.d.ts +10 -10
  451. package/lib/components/ListGroup.js +8 -5
  452. package/lib/components/ListMenu.d.ts +40 -40
  453. package/lib/components/ListMenu.js +11 -8
  454. package/lib/components/LocationPicker.d.ts +40 -40
  455. package/lib/components/LocationPicker.js +16 -13
  456. package/lib/components/Markdown.js +5 -2
  457. package/lib/components/Modal.d.ts +40 -40
  458. package/lib/components/Modal.js +15 -17
  459. package/lib/components/ModalManager.js +1 -1
  460. package/lib/components/MonthRangePicker.d.ts +40 -40
  461. package/lib/components/MultilineText.d.ts +40 -40
  462. package/lib/components/MultilineText.js +9 -6
  463. package/lib/components/NumberInput.d.ts +10 -10
  464. package/lib/components/NumberInput.js +13 -7
  465. package/lib/components/Pagination.d.ts +40 -40
  466. package/lib/components/Pagination.js +30 -27
  467. package/lib/components/Picker.js +13 -14
  468. package/lib/components/PickerColumn.js +7 -5
  469. package/lib/components/PickerContainer.js +6 -3
  470. package/lib/components/PopOverContainer.js +7 -4
  471. package/lib/components/PopUp.d.ts +40 -40
  472. package/lib/components/PopUp.js +18 -20
  473. package/lib/components/Progress.d.ts +40 -40
  474. package/lib/components/Progress.js +14 -11
  475. package/lib/components/PullRefresh.js +8 -14
  476. package/lib/components/Radios.d.ts +11 -10
  477. package/lib/components/Radios.js +13 -24
  478. package/lib/components/Range.js +24 -26
  479. package/lib/components/Rating.d.ts +10 -10
  480. package/lib/components/Rating.js +14 -15
  481. package/lib/components/ResultBox.d.ts +40 -40
  482. package/lib/components/ResultBox.js +31 -28
  483. package/lib/components/ResultList.d.ts +40 -40
  484. package/lib/components/ResultList.js +19 -15
  485. package/lib/components/ResultTableList.d.ts +40 -40
  486. package/lib/components/ResultTableList.js +13 -13
  487. package/lib/components/ResultTreeList.d.ts +40 -40
  488. package/lib/components/ResultTreeList.js +21 -13
  489. package/lib/components/RichText.js +6 -8
  490. package/lib/components/SearchBox.d.ts +42 -42
  491. package/lib/components/SearchBox.js +26 -23
  492. package/lib/components/Select.d.ts +193 -193
  493. package/lib/components/Select.js +60 -61
  494. package/lib/components/SelectMobile.js +20 -17
  495. package/lib/components/Selection.d.ts +40 -40
  496. package/lib/components/Selection.js +7 -9
  497. package/lib/components/SparkLine.d.ts +40 -40
  498. package/lib/components/SparkLine.js +8 -5
  499. package/lib/components/Spinner.d.ts +10 -10
  500. package/lib/components/Spinner.js +13 -16
  501. package/lib/components/Steps.js +20 -21
  502. package/lib/components/Switch.d.ts +10 -10
  503. package/lib/components/Switch.js +8 -10
  504. package/lib/components/TableSelection.d.ts +40 -40
  505. package/lib/components/TableSelection.js +35 -29
  506. package/lib/components/Tabs.d.ts +40 -40
  507. package/lib/components/Tabs.js +41 -43
  508. package/lib/components/TabsTransfer.d.ts +40 -40
  509. package/lib/components/TabsTransfer.js +17 -14
  510. package/lib/components/TabsTransferPicker.js +8 -5
  511. package/lib/components/Tag.d.ts +60 -60
  512. package/lib/components/Tag.js +12 -17
  513. package/lib/components/Textarea.d.ts +40 -40
  514. package/lib/components/Textarea.js +9 -6
  515. package/lib/components/Timeline.js +6 -7
  516. package/lib/components/TimelineItem.d.ts +1 -1
  517. package/lib/components/TimelineItem.js +18 -14
  518. package/lib/components/Tinymce.d.ts +1 -0
  519. package/lib/components/Tinymce.js +11 -4
  520. package/lib/components/TitleBar.js +10 -16
  521. package/lib/components/Toast.d.ts +40 -40
  522. package/lib/components/Toast.js +14 -16
  523. package/lib/components/Tooltip.js +8 -10
  524. package/lib/components/TooltipWrapper.js +6 -8
  525. package/lib/components/Transfer.d.ts +40 -40
  526. package/lib/components/Transfer.js +47 -33
  527. package/lib/components/TransferDropDown.d.ts +40 -40
  528. package/lib/components/TransferDropDown.js +11 -12
  529. package/lib/components/TransferPicker.js +8 -5
  530. package/lib/components/TransferSearch.js +10 -6
  531. package/lib/components/Tree.d.ts +40 -40
  532. package/lib/components/Tree.js +86 -75
  533. package/lib/components/TreeSelection.d.ts +40 -40
  534. package/lib/components/TreeSelection.js +15 -16
  535. package/lib/components/UserSelect.d.ts +40 -40
  536. package/lib/components/UserSelect.js +84 -85
  537. package/lib/components/UserTabSelect.d.ts +40 -40
  538. package/lib/components/UserTabSelect.js +17 -18
  539. package/lib/components/WithRemoteConfig.js +5 -2
  540. package/lib/components/WithStore.js +5 -2
  541. package/lib/components/calendar/Calendar.js +7 -4
  542. package/lib/components/calendar/CalendarContainer.js +5 -2
  543. package/lib/components/calendar/DaysView.js +55 -53
  544. package/lib/components/calendar/MonthsView.js +18 -15
  545. package/lib/components/calendar/QuartersView.js +17 -14
  546. package/lib/components/calendar/TimeView.js +32 -29
  547. package/lib/components/calendar/YearsView.js +18 -15
  548. package/lib/components/condition-builder/Expression.js +10 -7
  549. package/lib/components/condition-builder/Field.js +7 -4
  550. package/lib/components/condition-builder/Formula.js +6 -3
  551. package/lib/components/condition-builder/Func.js +16 -13
  552. package/lib/components/condition-builder/Group.js +22 -19
  553. package/lib/components/condition-builder/GroupOrItem.js +14 -11
  554. package/lib/components/condition-builder/InputSwitch.js +10 -11
  555. package/lib/components/condition-builder/Item.js +19 -16
  556. package/lib/components/condition-builder/Value.js +18 -10
  557. package/lib/components/condition-builder/config.js +1 -1
  558. package/lib/components/condition-builder/index.js +8 -5
  559. package/lib/components/formula/Editor.d.ts +43 -40
  560. package/lib/components/formula/Editor.js +54 -24
  561. package/lib/components/formula/FuncList.js +32 -25
  562. package/lib/components/formula/Input.d.ts +272 -0
  563. package/lib/components/formula/Input.js +128 -0
  564. package/lib/components/formula/Picker.d.ts +61 -44
  565. package/lib/components/formula/Picker.js +113 -39
  566. package/lib/components/formula/VariableList.js +60 -37
  567. package/lib/components/formula/plugin.js +1 -1
  568. package/lib/components/icons.d.ts +11 -2
  569. package/lib/components/icons.js +76 -30
  570. package/lib/components/json-schema/Array.js +15 -12
  571. package/lib/components/json-schema/Item.js +11 -12
  572. package/lib/components/json-schema/Object.js +18 -15
  573. package/lib/components/json-schema/index.js +6 -7
  574. package/lib/components/menu/MenuContext.js +1 -1
  575. package/lib/components/menu/MenuItem.js +16 -18
  576. package/lib/components/menu/SubMenu.js +17 -19
  577. package/lib/components/menu/index.d.ts +10 -10
  578. package/lib/components/menu/index.js +14 -16
  579. package/lib/components/schema-editor/Array.js +10 -7
  580. package/lib/components/schema-editor/Common.js +19 -16
  581. package/lib/components/schema-editor/Item.js +5 -2
  582. package/lib/components/schema-editor/Object.js +15 -12
  583. package/lib/components/schema-editor/SchemaVariableList.js +9 -6
  584. package/lib/components/schema-editor/SchemaVariableListPicker.js +7 -4
  585. package/lib/components/schema-editor/index.d.ts +40 -40
  586. package/lib/components/schema-editor/index.js +6 -6
  587. package/lib/components/table/Cell.d.ts +40 -40
  588. package/lib/components/table/Cell.js +5 -6
  589. package/lib/components/table/HeadCellDropDown.js +8 -9
  590. package/lib/components/table/HeadCellFilter.d.ts +40 -40
  591. package/lib/components/table/HeadCellFilter.js +12 -13
  592. package/lib/components/table/HeadCellSelect.d.ts +40 -40
  593. package/lib/components/table/HeadCellSelect.js +6 -7
  594. package/lib/components/table/HeadCellSort.js +11 -12
  595. package/lib/components/table/ItemActionsWrapper.js +5 -2
  596. package/lib/components/table/index.d.ts +80 -80
  597. package/lib/components/table/index.js +62 -63
  598. package/lib/components/virtual-list/AutoSizer.js +5 -2
  599. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  600. package/lib/components/virtual-list/constants.js +1 -1
  601. package/lib/components/virtual-list/index.js +6 -6
  602. package/lib/helper.css +1393 -9569
  603. package/lib/hooks/use-set-state.js +1 -1
  604. package/lib/hooks/use-sub-form.js +1 -1
  605. package/lib/hooks/use-touch.js +1 -1
  606. package/lib/hooks/use-update-effect.js +1 -1
  607. package/lib/hooks/use-validation-resolver.js +1 -1
  608. package/lib/icons/alert-danger.svg.js +7 -24
  609. package/lib/icons/alert-info.svg.js +7 -24
  610. package/lib/icons/alert-success.svg.js +7 -24
  611. package/lib/icons/alert-warning.svg.js +7 -24
  612. package/lib/icons/back.svg.js +7 -24
  613. package/lib/icons/calendar.svg.js +11 -28
  614. package/lib/icons/caret.svg.js +7 -24
  615. package/lib/icons/check.svg.js +7 -24
  616. package/lib/icons/clock.svg.js +9 -26
  617. package/lib/icons/close-small.svg.js +8 -25
  618. package/lib/icons/close.svg.js +7 -24
  619. package/lib/icons/cloud-upload.svg.js +7 -24
  620. package/lib/icons/column-filter.svg.js +7 -24
  621. package/lib/icons/columns.svg.js +7 -24
  622. package/lib/icons/compress-alt.svg.js +7 -24
  623. package/lib/icons/copy.svg.js +9 -26
  624. package/lib/icons/date.svg.js +9 -26
  625. package/lib/icons/department.svg.js +12 -29
  626. package/lib/icons/desk-empty.svg.js +19 -36
  627. package/lib/icons/dot.svg.js +10 -27
  628. package/lib/icons/down-arrow-bold.svg.js +7 -24
  629. package/lib/icons/down.svg.js +7 -24
  630. package/lib/icons/download.svg.js +7 -24
  631. package/lib/icons/drag-bar.svg.js +15 -32
  632. package/lib/icons/drag.svg.js +7 -24
  633. package/lib/icons/edit.svg.js +7 -24
  634. package/lib/icons/ellipsis-v.svg.js +7 -24
  635. package/lib/icons/enter.svg.js +7 -24
  636. package/lib/icons/exchange.svg.js +7 -24
  637. package/lib/icons/expand-alt.svg.js +7 -24
  638. package/lib/icons/fail.svg.js +9 -26
  639. package/lib/icons/file.svg.js +8 -25
  640. package/lib/icons/filter.svg.js +7 -24
  641. package/lib/icons/folder.svg.js +9 -26
  642. package/lib/icons/function.svg.js +20 -30
  643. package/lib/icons/home.svg.js +7 -24
  644. package/lib/icons/image.svg.js +7 -24
  645. package/lib/icons/info-circle.svg.js +7 -24
  646. package/lib/icons/info.svg.js +8 -25
  647. package/lib/icons/input-clear.svg.js +7 -24
  648. package/lib/icons/invisible.svg.js +7 -24
  649. package/lib/icons/left-arrow.svg.js +7 -24
  650. package/lib/icons/loading-outline.svg.js +7 -24
  651. package/lib/icons/location.svg.js +7 -24
  652. package/lib/icons/menu.svg.js +7 -24
  653. package/lib/icons/minus.svg.js +7 -24
  654. package/lib/icons/move.svg.js +7 -24
  655. package/lib/icons/mute.svg.js +7 -24
  656. package/lib/icons/new-edit.svg.js +7 -24
  657. package/lib/icons/pause.svg.js +7 -24
  658. package/lib/icons/pencil.svg.js +7 -24
  659. package/lib/icons/play.svg.js +7 -24
  660. package/lib/icons/plus-cicle.svg.js +7 -24
  661. package/lib/icons/plus-fine.svg.js +7 -24
  662. package/lib/icons/plus.svg.js +7 -24
  663. package/lib/icons/post.svg.js +12 -29
  664. package/lib/icons/question-mark.svg.js +8 -25
  665. package/lib/icons/question.svg.js +7 -24
  666. package/lib/icons/redo.svg.js +7 -24
  667. package/lib/icons/refresh.svg.js +7 -24
  668. package/lib/icons/reload.svg.js +7 -24
  669. package/lib/icons/remove.svg.js +7 -24
  670. package/lib/icons/retry.svg.js +9 -26
  671. package/lib/icons/right-arrow-bold.svg.js +7 -24
  672. package/lib/icons/right-arrow.svg.js +7 -24
  673. package/lib/icons/right-double-arrow.svg.js +7 -24
  674. package/lib/icons/role.svg.js +11 -28
  675. package/lib/icons/rotate-left.svg.js +8 -25
  676. package/lib/icons/rotate-right.svg.js +8 -25
  677. package/lib/icons/scale-origin.svg.js +9 -26
  678. package/lib/icons/schedule.svg.js +9 -26
  679. package/lib/icons/search.svg.js +7 -24
  680. package/lib/icons/setting.svg.js +7 -24
  681. package/lib/icons/slider-handle-icon.svg.js +7 -24
  682. package/lib/icons/sort-asc.svg.js +7 -24
  683. package/lib/icons/sort-default.svg.js +8 -25
  684. package/lib/icons/sort-desc.svg.js +7 -24
  685. package/lib/icons/star.svg.js +7 -24
  686. package/lib/icons/status-close.svg.js +7 -24
  687. package/lib/icons/steps-finsh.svg.js +7 -24
  688. package/lib/icons/success.svg.js +9 -26
  689. package/lib/icons/transparent.svg.js +12 -29
  690. package/lib/icons/trash.svg.js +7 -24
  691. package/lib/icons/tree-down.svg.js +7 -24
  692. package/lib/icons/undo.svg.js +7 -24
  693. package/lib/icons/upload.svg.js +7 -24
  694. package/lib/icons/user-remove.svg.js +9 -26
  695. package/lib/icons/view.svg.js +7 -24
  696. package/lib/icons/volume.svg.js +8 -25
  697. package/lib/icons/warning-mark.svg.js +8 -25
  698. package/lib/icons/warning.svg.js +7 -24
  699. package/lib/icons/window-restore.svg.js +7 -24
  700. package/lib/icons/zoom-in.svg.js +7 -24
  701. package/lib/icons/zoom-out.svg.js +7 -24
  702. package/lib/index.js +1 -1
  703. package/lib/locale/de-DE.js +6 -2
  704. package/lib/locale/en-US.js +6 -2
  705. package/lib/locale/zh-CN.js +6 -2
  706. package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
  707. package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  708. package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  709. package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  710. package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  711. package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  712. package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  713. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  714. package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  715. package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  716. package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  717. package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
  718. package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  719. package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  720. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  721. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  722. package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  723. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  724. package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  725. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  726. package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  727. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  728. package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  729. package/lib/node_modules/rc-overflow/es/Item.js +1 -1
  730. package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
  731. package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
  732. package/lib/node_modules/rc-overflow/es/context.js +1 -1
  733. package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
  734. package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
  735. package/lib/node_modules/rc-overflow/es/index.js +1 -1
  736. package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
  737. package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
  738. package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
  739. package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
  740. package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
  741. package/lib/node_modules/rc-util/es/Children/toArray.js +3 -4
  742. package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  743. package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  744. package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
  745. package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  746. package/lib/node_modules/rc-util/es/raf.js +1 -1
  747. package/lib/node_modules/rc-util/es/ref.js +3 -4
  748. package/lib/node_modules/rc-util/es/warning.js +1 -1
  749. package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  750. package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
  751. package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
  752. package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
  753. package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
  754. package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
  755. package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
  756. package/lib/themes/ang.css +600 -746
  757. package/lib/themes/ang.js +1 -1
  758. package/lib/themes/antd.css +600 -746
  759. package/lib/themes/antd.js +1 -1
  760. package/lib/themes/cxd.css +600 -746
  761. package/lib/themes/cxd.js +1 -1
  762. package/lib/themes/dark.css +600 -746
  763. package/lib/themes/dark.js +1 -1
  764. package/lib/themes/default.css +600 -746
  765. package/package.json +6 -6
  766. package/scss/_components.scss +7 -6
  767. package/scss/_mixins.scss +0 -1
  768. package/scss/_properties.scss +6 -4
  769. package/scss/_variables.scss +20 -0
  770. package/scss/base/_common.scss +4 -0
  771. package/scss/components/_cards.scss +3 -10
  772. package/scss/components/_column-toggler.scss +4 -4
  773. package/scss/components/_condition-builder.scss +1 -1
  774. package/scss/components/_debug.scss +34 -1
  775. package/scss/components/_drawer.scss +10 -1
  776. package/scss/components/_dropdown.scss +5 -4
  777. package/scss/components/_formula.scss +39 -3
  778. package/scss/components/_input-box.scss +2 -1
  779. package/scss/components/_json-schema-editor.scss +2 -2
  780. package/scss/components/_json-schema.scss +2 -2
  781. package/scss/components/_list.scss +3 -10
  782. package/scss/components/_menu.scss +1 -0
  783. package/scss/components/_progress.scss +1 -1
  784. package/scss/components/_search-box.scss +6 -0
  785. package/scss/components/_steps.scss +5 -3
  786. package/scss/components/_table.scss +104 -129
  787. package/scss/components/_timeline.scss +2 -1
  788. package/scss/components/form/_checks.scss +3 -1
  789. package/scss/components/form/_date.scss +3 -0
  790. package/scss/components/form/_form.scss +7 -0
  791. package/scss/components/form/_list.scss +1 -1
  792. package/scss/components/form/_nested-select.scss +3 -2
  793. package/scss/components/form/_selection.scss +8 -0
  794. package/scss/helper/sizing/_width.md +105 -94
  795. package/scss/helper/sizing/_width.scss +16 -0
  796. package/esm/_virtual/index.js +0 -8
  797. package/esm/_virtual/react-is.development.js +0 -8
  798. package/esm/_virtual/react-is.production.min.js +0 -8
  799. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -195
  800. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -31
  801. package/esm/node_modules/rc-util/node_modules/react-is/index.js +0 -17
  802. package/lib/_virtual/index.js +0 -12
  803. package/lib/_virtual/react-is.development.js +0 -12
  804. package/lib/_virtual/react-is.production.min.js +0 -12
  805. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -199
  806. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -35
  807. package/lib/node_modules/rc-util/node_modules/react-is/index.js +0 -19
@@ -69,7 +69,7 @@ export declare class ColorControl extends React.PureComponent<ColorProps, ColorC
69
69
  render(): React.JSX.Element;
70
70
  }
71
71
  declare const _default: {
72
- new (props: Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
72
+ new (props: Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
73
73
  placeholder?: string | undefined;
74
74
  format?: string | undefined;
75
75
  clearable?: boolean | undefined;
@@ -83,7 +83,7 @@ declare const _default: {
83
83
  getWrappedInstance(): any;
84
84
  render(): React.JSX.Element;
85
85
  context: unknown;
86
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
86
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
87
87
  placeholder?: string | undefined;
88
88
  format?: string | undefined;
89
89
  clearable?: boolean | undefined;
@@ -93,7 +93,7 @@ declare const _default: {
93
93
  translate?: ((str: string, ...args: any[]) => string) | undefined;
94
94
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
95
95
  forceUpdate(callback?: (() => void) | undefined): void;
96
- readonly props: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
96
+ readonly props: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
97
97
  placeholder?: string | undefined;
98
98
  format?: string | undefined;
99
99
  clearable?: boolean | undefined;
@@ -107,7 +107,7 @@ declare const _default: {
107
107
  [key: string]: React.ReactInstance;
108
108
  };
109
109
  componentDidMount?(): void;
110
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
110
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
111
111
  placeholder?: string | undefined;
112
112
  format?: string | undefined;
113
113
  clearable?: boolean | undefined;
@@ -118,7 +118,7 @@ declare const _default: {
118
118
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
119
119
  componentWillUnmount?(): void;
120
120
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
121
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
121
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
122
122
  placeholder?: string | undefined;
123
123
  format?: string | undefined;
124
124
  clearable?: boolean | undefined;
@@ -127,7 +127,7 @@ declare const _default: {
127
127
  locale?: string | undefined;
128
128
  translate?: ((str: string, ...args: any[]) => string) | undefined;
129
129
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
130
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
130
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
131
131
  placeholder?: string | undefined;
132
132
  format?: string | undefined;
133
133
  clearable?: boolean | undefined;
@@ -138,7 +138,7 @@ declare const _default: {
138
138
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
139
139
  componentWillMount?(): void;
140
140
  UNSAFE_componentWillMount?(): void;
141
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
141
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
142
142
  placeholder?: string | undefined;
143
143
  format?: string | undefined;
144
144
  clearable?: boolean | undefined;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  locale?: string | undefined;
148
148
  translate?: ((str: string, ...args: any[]) => string) | undefined;
149
149
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
150
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
150
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
151
151
  placeholder?: string | undefined;
152
152
  format?: string | undefined;
153
153
  clearable?: boolean | undefined;
@@ -156,7 +156,7 @@ declare const _default: {
156
156
  locale?: string | undefined;
157
157
  translate?: ((str: string, ...args: any[]) => string) | undefined;
158
158
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
159
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
159
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
160
160
  placeholder?: string | undefined;
161
161
  format?: string | undefined;
162
162
  clearable?: boolean | undefined;
@@ -165,7 +165,7 @@ declare const _default: {
165
165
  locale?: string | undefined;
166
166
  translate?: ((str: string, ...args: any[]) => string) | undefined;
167
167
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
168
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
168
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
169
169
  placeholder?: string | undefined;
170
170
  format?: string | undefined;
171
171
  clearable?: boolean | undefined;
@@ -178,7 +178,7 @@ declare const _default: {
178
178
  displayName: string;
179
179
  contextType: React.Context<string>;
180
180
  ComposedComponent: React.ComponentType<{
181
- new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
181
+ new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
182
182
  placeholder?: string | undefined;
183
183
  format?: string | undefined;
184
184
  clearable?: boolean | undefined;
@@ -192,7 +192,7 @@ declare const _default: {
192
192
  getWrappedInstance(): any;
193
193
  render(): React.JSX.Element;
194
194
  context: unknown;
195
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
195
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
196
196
  placeholder?: string | undefined;
197
197
  format?: string | undefined;
198
198
  clearable?: boolean | undefined;
@@ -202,7 +202,7 @@ declare const _default: {
202
202
  translate?: ((str: string, ...args: any[]) => string) | undefined;
203
203
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
204
204
  forceUpdate(callback?: (() => void) | undefined): void;
205
- readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
205
+ readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
206
206
  placeholder?: string | undefined;
207
207
  format?: string | undefined;
208
208
  clearable?: boolean | undefined;
@@ -216,7 +216,7 @@ declare const _default: {
216
216
  [key: string]: React.ReactInstance;
217
217
  };
218
218
  componentDidMount?(): void;
219
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
219
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
220
220
  placeholder?: string | undefined;
221
221
  format?: string | undefined;
222
222
  clearable?: boolean | undefined;
@@ -227,7 +227,7 @@ declare const _default: {
227
227
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
228
228
  componentWillUnmount?(): void;
229
229
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
230
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
230
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
231
231
  placeholder?: string | undefined;
232
232
  format?: string | undefined;
233
233
  clearable?: boolean | undefined;
@@ -236,7 +236,7 @@ declare const _default: {
236
236
  locale?: string | undefined;
237
237
  translate?: ((str: string, ...args: any[]) => string) | undefined;
238
238
  }>, prevState: Readonly<{}>): any;
239
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
239
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
240
240
  placeholder?: string | undefined;
241
241
  format?: string | undefined;
242
242
  clearable?: boolean | undefined;
@@ -247,7 +247,7 @@ declare const _default: {
247
247
  }>, prevState: Readonly<{}>, snapshot?: any): void;
248
248
  componentWillMount?(): void;
249
249
  UNSAFE_componentWillMount?(): void;
250
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
250
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
251
251
  placeholder?: string | undefined;
252
252
  format?: string | undefined;
253
253
  clearable?: boolean | undefined;
@@ -256,7 +256,7 @@ declare const _default: {
256
256
  locale?: string | undefined;
257
257
  translate?: ((str: string, ...args: any[]) => string) | undefined;
258
258
  }>, nextContext: any): void;
259
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
259
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
260
260
  placeholder?: string | undefined;
261
261
  format?: string | undefined;
262
262
  clearable?: boolean | undefined;
@@ -265,7 +265,7 @@ declare const _default: {
265
265
  locale?: string | undefined;
266
266
  translate?: ((str: string, ...args: any[]) => string) | undefined;
267
267
  }>, nextContext: any): void;
268
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
268
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
269
269
  placeholder?: string | undefined;
270
270
  format?: string | undefined;
271
271
  clearable?: boolean | undefined;
@@ -274,7 +274,7 @@ declare const _default: {
274
274
  locale?: string | undefined;
275
275
  translate?: ((str: string, ...args: any[]) => string) | undefined;
276
276
  }>, nextState: Readonly<{}>, nextContext: any): void;
277
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
277
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
278
278
  placeholder?: string | undefined;
279
279
  format?: string | undefined;
280
280
  clearable?: boolean | undefined;
@@ -291,7 +291,7 @@ declare const _default: {
291
291
  ComposedComponent: typeof ColorControl;
292
292
  }>;
293
293
  } & import("hoist-non-react-statics").NonReactStatics<{
294
- new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
294
+ new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
295
295
  placeholder?: string | undefined;
296
296
  format?: string | undefined;
297
297
  clearable?: boolean | undefined;
@@ -305,7 +305,7 @@ declare const _default: {
305
305
  getWrappedInstance(): any;
306
306
  render(): React.JSX.Element;
307
307
  context: unknown;
308
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
308
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
309
309
  placeholder?: string | undefined;
310
310
  format?: string | undefined;
311
311
  clearable?: boolean | undefined;
@@ -315,7 +315,7 @@ declare const _default: {
315
315
  translate?: ((str: string, ...args: any[]) => string) | undefined;
316
316
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
317
317
  forceUpdate(callback?: (() => void) | undefined): void;
318
- readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
318
+ readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
319
319
  placeholder?: string | undefined;
320
320
  format?: string | undefined;
321
321
  clearable?: boolean | undefined;
@@ -329,7 +329,7 @@ declare const _default: {
329
329
  [key: string]: React.ReactInstance;
330
330
  };
331
331
  componentDidMount?(): void;
332
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
332
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
333
333
  placeholder?: string | undefined;
334
334
  format?: string | undefined;
335
335
  clearable?: boolean | undefined;
@@ -340,7 +340,7 @@ declare const _default: {
340
340
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
341
341
  componentWillUnmount?(): void;
342
342
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
343
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
343
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
344
344
  placeholder?: string | undefined;
345
345
  format?: string | undefined;
346
346
  clearable?: boolean | undefined;
@@ -349,7 +349,7 @@ declare const _default: {
349
349
  locale?: string | undefined;
350
350
  translate?: ((str: string, ...args: any[]) => string) | undefined;
351
351
  }>, prevState: Readonly<{}>): any;
352
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
352
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
353
353
  placeholder?: string | undefined;
354
354
  format?: string | undefined;
355
355
  clearable?: boolean | undefined;
@@ -360,7 +360,7 @@ declare const _default: {
360
360
  }>, prevState: Readonly<{}>, snapshot?: any): void;
361
361
  componentWillMount?(): void;
362
362
  UNSAFE_componentWillMount?(): void;
363
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
363
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
364
364
  placeholder?: string | undefined;
365
365
  format?: string | undefined;
366
366
  clearable?: boolean | undefined;
@@ -369,7 +369,7 @@ declare const _default: {
369
369
  locale?: string | undefined;
370
370
  translate?: ((str: string, ...args: any[]) => string) | undefined;
371
371
  }>, nextContext: any): void;
372
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
372
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
373
373
  placeholder?: string | undefined;
374
374
  format?: string | undefined;
375
375
  clearable?: boolean | undefined;
@@ -378,7 +378,7 @@ declare const _default: {
378
378
  locale?: string | undefined;
379
379
  translate?: ((str: string, ...args: any[]) => string) | undefined;
380
380
  }>, nextContext: any): void;
381
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
381
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
382
382
  placeholder?: string | undefined;
383
383
  format?: string | undefined;
384
384
  clearable?: boolean | undefined;
@@ -387,7 +387,7 @@ declare const _default: {
387
387
  locale?: string | undefined;
388
388
  translate?: ((str: string, ...args: any[]) => string) | undefined;
389
389
  }>, nextState: Readonly<{}>, nextContext: any): void;
390
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
390
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
391
391
  placeholder?: string | undefined;
392
392
  format?: string | undefined;
393
393
  clearable?: boolean | undefined;
@@ -404,7 +404,7 @@ declare const _default: {
404
404
  ComposedComponent: typeof ColorControl;
405
405
  }, {}> & {
406
406
  ComposedComponent: {
407
- new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
407
+ new (props: Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
408
408
  placeholder?: string | undefined;
409
409
  format?: string | undefined;
410
410
  clearable?: boolean | undefined;
@@ -418,7 +418,7 @@ declare const _default: {
418
418
  getWrappedInstance(): any;
419
419
  render(): React.JSX.Element;
420
420
  context: unknown;
421
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
421
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
422
422
  placeholder?: string | undefined;
423
423
  format?: string | undefined;
424
424
  clearable?: boolean | undefined;
@@ -428,7 +428,7 @@ declare const _default: {
428
428
  translate?: ((str: string, ...args: any[]) => string) | undefined;
429
429
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
430
430
  forceUpdate(callback?: (() => void) | undefined): void;
431
- readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
431
+ readonly props: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
432
432
  placeholder?: string | undefined;
433
433
  format?: string | undefined;
434
434
  clearable?: boolean | undefined;
@@ -442,7 +442,7 @@ declare const _default: {
442
442
  [key: string]: React.ReactInstance;
443
443
  };
444
444
  componentDidMount?(): void;
445
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
445
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
446
446
  placeholder?: string | undefined;
447
447
  format?: string | undefined;
448
448
  clearable?: boolean | undefined;
@@ -453,7 +453,7 @@ declare const _default: {
453
453
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
454
454
  componentWillUnmount?(): void;
455
455
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
456
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
456
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
457
457
  placeholder?: string | undefined;
458
458
  format?: string | undefined;
459
459
  clearable?: boolean | undefined;
@@ -462,7 +462,7 @@ declare const _default: {
462
462
  locale?: string | undefined;
463
463
  translate?: ((str: string, ...args: any[]) => string) | undefined;
464
464
  }>, prevState: Readonly<{}>): any;
465
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
465
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
466
466
  placeholder?: string | undefined;
467
467
  format?: string | undefined;
468
468
  clearable?: boolean | undefined;
@@ -473,7 +473,7 @@ declare const _default: {
473
473
  }>, prevState: Readonly<{}>, snapshot?: any): void;
474
474
  componentWillMount?(): void;
475
475
  UNSAFE_componentWillMount?(): void;
476
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
476
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
477
477
  placeholder?: string | undefined;
478
478
  format?: string | undefined;
479
479
  clearable?: boolean | undefined;
@@ -482,7 +482,7 @@ declare const _default: {
482
482
  locale?: string | undefined;
483
483
  translate?: ((str: string, ...args: any[]) => string) | undefined;
484
484
  }>, nextContext: any): void;
485
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
485
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
486
486
  placeholder?: string | undefined;
487
487
  format?: string | undefined;
488
488
  clearable?: boolean | undefined;
@@ -491,7 +491,7 @@ declare const _default: {
491
491
  locale?: string | undefined;
492
492
  translate?: ((str: string, ...args: any[]) => string) | undefined;
493
493
  }>, nextContext: any): void;
494
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
494
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
495
495
  placeholder?: string | undefined;
496
496
  format?: string | undefined;
497
497
  clearable?: boolean | undefined;
@@ -500,7 +500,7 @@ declare const _default: {
500
500
  locale?: string | undefined;
501
501
  translate?: ((str: string, ...args: any[]) => string) | undefined;
502
502
  }>, nextState: Readonly<{}>, nextContext: any): void;
503
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "onChange" | "value" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
503
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ColorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "style" | "className" | "theme" | "value" | "onChange" | "disabled" | "placement" | "useMobileUI" | "popoverClassName" | "popOverContainer" | "resetValue" | "presetColors"> & {
504
504
  placeholder?: string | undefined;
505
505
  format?: string | undefined;
506
506
  clearable?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v3.2.0
2
+ * amis-ui v3.3.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -19,11 +19,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
19
19
 
20
20
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
21
21
 
22
- /**
23
- * @file ColorPicker
24
- * @description 颜色选择器组件
25
- * @author fex
26
- */
22
+ var __react_jsx__ = require('react');
23
+ var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
24
+ (__react_jsx__["default"] || __react_jsx__).Fragment;
27
25
  var ColorControl = /** @class */ (function (_super) {
28
26
  tslib.__extends(ColorControl, _super);
29
27
  function ColorControl(props) {
@@ -179,20 +177,20 @@ var ColorControl = /** @class */ (function (_super) {
179
177
  var isFocused = this.state.isFocused;
180
178
  var tempValue = this.state.tempValue;
181
179
  var mobileUI = useMobileUI && amisCore.isMobile();
182
- return (React__default["default"].createElement("div", { className: cx("ColorPicker", {
180
+ return (_J$X_("div", { className: cx("ColorPicker", {
183
181
  'is-disabled': disabled,
184
182
  'is-focused': isFocused,
185
183
  'is-opened': isOpened
186
184
  }, className) },
187
- React__default["default"].createElement("span", { onClick: this.handleClick, className: cx('ColorPicker-preview') },
188
- React__default["default"].createElement("i", { ref: this.preview, className: "".concat(ns, "ColorPicker-previewIcon"), style: { background: this.state.inputValue || '#ccc' } })),
189
- React__default["default"].createElement("input", { ref: this.input, type: "text", autoComplete: "off", size: 10, className: cx('ColorPicker-input'), value: this.state.inputValue || '', placeholder: __(placeholder), disabled: disabled, onChange: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, readOnly: mobileUI }),
190
- clearable && !disabled && value ? (React__default["default"].createElement("a", { onClick: this.clearValue, className: cx('ColorPicker-clear') },
191
- React__default["default"].createElement(icons.Icon, { icon: "input-clear", className: "icon" }))) : null,
192
- React__default["default"].createElement("span", { className: cx('ColorPicker-arrow') },
193
- React__default["default"].createElement(icons.Icon, { icon: "right-arrow-bold", className: "icon", onClick: this.handleClick })),
194
- !mobileUI && isOpened ? (React__default["default"].createElement(amisCore.Overlay, { placement: placement || 'auto', target: function () { return ReactDOM.findDOMNode(_this); }, onHide: this.close, container: popOverContainer || (function () { return ReactDOM.findDOMNode(_this); }), rootClose: false, show: true },
195
- React__default["default"].createElement(amisCore.PopOver, { classPrefix: ns, className: cx('ColorPicker-popover', popoverClassName), onHide: this.close, overlay: true }, allowCustomColor ? (React__default["default"].createElement(reactColor.SketchPicker, { styles: {}, disableAlpha: !!~['rgb', 'hex'].indexOf(format), color: value, presetColors: presetColors, onChangeComplete: this.handleChange })) : (React__default["default"].createElement(reactColor.GithubPicker, { color: value, colors: Array.isArray(presetColors)
185
+ _J$X_("span", { onClick: this.handleClick, className: cx('ColorPicker-preview') },
186
+ _J$X_("i", { ref: this.preview, className: "".concat(ns, "ColorPicker-previewIcon"), style: { background: this.state.inputValue || '#ccc' } })),
187
+ _J$X_("input", { ref: this.input, type: "text", autoComplete: "off", size: 10, className: cx('ColorPicker-input'), value: this.state.inputValue || '', placeholder: __(placeholder), disabled: disabled, onChange: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, readOnly: mobileUI }),
188
+ clearable && !disabled && value ? (_J$X_("a", { onClick: this.clearValue, className: cx('ColorPicker-clear') },
189
+ _J$X_(icons.Icon, { icon: "input-clear", className: "icon" }))) : null,
190
+ _J$X_("span", { className: cx('ColorPicker-arrow') },
191
+ _J$X_(icons.Icon, { icon: "right-arrow-bold", className: "icon", onClick: this.handleClick })),
192
+ !mobileUI && isOpened ? (_J$X_(amisCore.Overlay, { placement: placement || 'auto', target: function () { return ReactDOM.findDOMNode(_this); }, onHide: this.close, container: popOverContainer || (function () { return ReactDOM.findDOMNode(_this); }), rootClose: false, show: true },
193
+ _J$X_(amisCore.PopOver, { classPrefix: ns, className: cx('ColorPicker-popover', popoverClassName), onHide: this.close, overlay: true }, allowCustomColor ? (_J$X_(reactColor.SketchPicker, { styles: {}, disableAlpha: !!~['rgb', 'hex'].indexOf(format), color: value, presetColors: presetColors, onChangeComplete: this.handleChange })) : (_J$X_(reactColor.GithubPicker, { color: value, colors: Array.isArray(presetColors)
196
194
  ? presetColors
197
195
  .filter(function (item) { return typeof item === 'string' || amisCore.isObject(item); })
198
196
  .map(function (item) {
@@ -203,7 +201,7 @@ var ColorControl = /** @class */ (function (_super) {
203
201
  : item;
204
202
  })
205
203
  : undefined, onChangeComplete: this.handleChange }))))) : null,
206
- mobileUI && (React__default["default"].createElement(PopUp["default"], { className: cx("".concat(ns, "ColorPicker-popup")), container: popOverContainer, isShow: isOpened, onHide: this.handleClick, showConfirm: true, onConfirm: this.handleConfirm }, allowCustomColor ? (React__default["default"].createElement(reactColor.SketchPicker, { styles: {}, disableAlpha: !!~['rgb', 'hex'].indexOf(format), color: tempValue, presetColors: presetColors, onChangeComplete: this.handleTempChange })) : (React__default["default"].createElement(reactColor.GithubPicker, { color: tempValue, colors: Array.isArray(presetColors)
204
+ mobileUI && (_J$X_(PopUp["default"], { className: cx("".concat(ns, "ColorPicker-popup")), container: popOverContainer, isShow: isOpened, onHide: this.handleClick, showConfirm: true, onConfirm: this.handleConfirm }, allowCustomColor ? (_J$X_(reactColor.SketchPicker, { styles: {}, disableAlpha: !!~['rgb', 'hex'].indexOf(format), color: tempValue, presetColors: presetColors, onChangeComplete: this.handleTempChange })) : (_J$X_(reactColor.GithubPicker, { color: tempValue, colors: Array.isArray(presetColors)
207
205
  ? presetColors
208
206
  .filter(function (item) { return typeof item === 'string' || amisCore.isObject(item); })
209
207
  .map(function (item) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v3.2.0
2
+ * amis-ui v3.3.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -20,66 +20,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
20
20
 
21
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
22
 
23
- /**
24
- * 纯组件版本的 combo 实现
25
- *
26
- * 只能用在 <Form> 里面。
27
- *
28
- * 示例:
29
- *
30
- * <Form
31
- * defaultValues={{a: 1, b: 2, arr: [{a: 1, b: 2}]}}
32
- * onSubmit={values => console.log(values)}
33
- * >
34
- * {({control, getValues, setValue, handleSubmit}) => (
35
- * <>
36
- * <Combo
37
- * name="arr"
38
- * control={control}
39
- * label="Combo"
40
- * mode="horizontal"
41
- * itemRender={({
42
- * control,
43
- * getValues,
44
- * setValue,
45
- * handleSubmit
46
- * }) => (
47
- * <>
48
- * <Controller
49
- * name="a"
50
- * label="A"
51
- * mode="horizontal"
52
- * horizontal={{justify: true}}
53
- * control={control}
54
- * rules={{maxLength: 20}}
55
- * render={({field, fieldState}) => (
56
- * <InputBox
57
- * {...field}
58
- * hasError={fieldState.error}
59
- * disabled={false}
60
- * />
61
- * )}
62
- * />
63
- *
64
- * <Controller
65
- * name="b"
66
- * control={control}
67
- * rules={{maxLength: 20}}
68
- * render={({field, fieldState}) => (
69
- * <InputBox
70
- * {...field}
71
- * hasError={fieldState.error}
72
- * disabled={false}
73
- * />
74
- * )}
75
- * />
76
- * </>
77
- * )}
78
- * />
79
- * </>
80
- * )}
81
- * </Form>
82
- */
23
+ var __react_jsx__ = require('react');
24
+ var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
25
+ (__react_jsx__["default"] || __react_jsx__).Fragment;
83
26
  function Combo(_a) {
84
27
  var _this = this;
85
28
  var _b, _c;
@@ -171,23 +114,23 @@ function Combo(_a) {
171
114
  control._subjects.watch.next({});
172
115
  }, [control]);
173
116
  function renderBody() {
174
- return (React__default["default"].createElement("div", { className: cx("Combo Combo--multi", className, multiLine ? "Combo--ver" : "Combo--hor") },
175
- React__default["default"].createElement("div", { className: cx("Combo-items", itemsWrapperClassName) }, fields.map(function (field, index) { return (React__default["default"].createElement("div", { key: field.id, className: cx("Combo-item", itemClassName) },
176
- React__default["default"].createElement(ComboItem, { control: control, update: lightUpdate, index: index, value: field, itemRender: itemRender, translate: __, classnames: cx, formRef: subFormRef }),
177
- React__default["default"].createElement("a", { onClick: function () { return remove(index); }, key: "delete", className: cx("Combo-delBtn ".concat(removable === false ||
117
+ return (_J$X_("div", { className: cx("Combo Combo--multi", className, multiLine ? "Combo--ver" : "Combo--hor") },
118
+ _J$X_("div", { className: cx("Combo-items", itemsWrapperClassName) }, fields.map(function (field, index) { return (_J$X_("div", { key: field.id, className: cx("Combo-item", itemClassName) },
119
+ _J$X_(ComboItem, { control: control, update: lightUpdate, index: index, value: field, itemRender: itemRender, translate: __, classnames: cx, formRef: subFormRef }),
120
+ _J$X_("a", { onClick: function () { return remove(index); }, key: "delete", className: cx("Combo-delBtn ".concat(removable === false ||
178
121
  (minLength && fields.length <= minLength)
179
122
  ? 'is-disabled'
180
123
  : '')), "data-tooltip": __('delete'), "data-position": "bottom" },
181
- React__default["default"].createElement(icons.Icon, { icon: "status-close", className: "icon" })))); })),
182
- addable !== false && (!maxLength || fields.length < maxLength) ? (React__default["default"].createElement("div", { className: cx("Combo-toolbar") },
183
- React__default["default"].createElement(Button["default"], { className: cx("Combo-addBtn", addButtonClassName), onClick: function () { return append(tslib.__assign({}, scaffold)); } },
184
- React__default["default"].createElement(icons.Icon, { icon: "plus", className: "icon" }),
185
- React__default["default"].createElement("span", null, __(addButtonText || 'add'))))) : null));
124
+ _J$X_(icons.Icon, { icon: "status-close", className: "icon" })))); })),
125
+ addable !== false && (!maxLength || fields.length < maxLength) ? (_J$X_("div", { className: cx("Combo-toolbar") },
126
+ _J$X_(Button["default"], { className: cx("Combo-addBtn", addButtonClassName), onClick: function () { return append(tslib.__assign({}, scaffold)); } },
127
+ _J$X_(icons.Icon, { icon: "plus", className: "icon" }),
128
+ _J$X_("span", null, __(addButtonText || 'add'))))) : null));
186
129
  }
187
130
  var errors = reactHookForm.useFormState({
188
131
  control: control
189
132
  }).errors;
190
- return wrap === false ? (renderBody()) : (React__default["default"].createElement(FormField["default"], { className: fieldClassName, style: style, label: label, labelAlign: labelAlign, labelClassName: labelClassName, description: description, mode: mode, isRequired: isRequired, hasError: !!((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message), errors: (_c = errors[name]) === null || _c === void 0 ? void 0 : _c.message }, renderBody()));
133
+ return wrap === false ? (renderBody()) : (_J$X_(FormField["default"], { className: fieldClassName, style: style, label: label, labelAlign: labelAlign, labelClassName: labelClassName, description: description, mode: mode, isRequired: isRequired, hasError: !!((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message), errors: (_c = errors[name]) === null || _c === void 0 ? void 0 : _c.message }, renderBody()));
191
134
  }
192
135
  function ComboItem(_a) {
193
136
  var value = _a.value, itemRender = _a.itemRender, index = _a.index, translate = _a.translate, update = _a.update, cx = _a.classnames, formRef = _a.formRef;
@@ -209,9 +152,9 @@ function ComboItem(_a) {
209
152
  child = child.props.children;
210
153
  }
211
154
  if (Array.isArray(child)) {
212
- child = (React__default["default"].createElement("div", { className: cx('Form-row') }, child.map(function (child, index) { return (React__default["default"].createElement("div", { className: cx('Form-col'), key: child.key || index }, child)); })));
155
+ child = (_J$X_("div", { className: cx('Form-row') }, child.map(function (child, index) { return (_J$X_("div", { className: cx('Form-col'), key: child.key || index }, child)); })));
213
156
  }
214
- return React__default["default"].createElement("div", { className: cx('Combo-itemInner') }, child);
157
+ return _J$X_("div", { className: cx('Combo-itemInner') }, child);
215
158
  }
216
159
  var Combo$1 = amisCore.themeable(amisCore.localeable(Combo));
217
160