amis-ui 2.7.2 → 2.8.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 (718) hide show
  1. package/esm/_virtual/index.js +1 -1
  2. package/esm/_virtual/react-is.development.js +1 -1
  3. package/esm/_virtual/react-is.production.min.js +1 -1
  4. package/esm/components/404.js +1 -1
  5. package/esm/components/Alert.js +1 -1
  6. package/esm/components/Alert2.js +1 -1
  7. package/esm/components/AnchorNav.js +1 -1
  8. package/esm/components/ArrayInput.js +1 -1
  9. package/esm/components/AsideNav.js +1 -1
  10. package/esm/components/AssociatedSelection.js +1 -1
  11. package/esm/components/Avatar.js +1 -1
  12. package/esm/components/Badge.js +5 -2
  13. package/esm/components/BaiduMapPicker.js +1 -1
  14. package/esm/components/BarCode.js +1 -1
  15. package/esm/components/Breadcrumb.js +1 -1
  16. package/esm/components/Button.js +1 -1
  17. package/esm/components/CalendarMobile.js +1 -1
  18. package/esm/components/Card.js +1 -1
  19. package/esm/components/Cascader.js +23 -13
  20. package/esm/components/ChainedSelection.js +1 -1
  21. package/esm/components/Checkbox.js +1 -1
  22. package/esm/components/CityArea.js +12 -12
  23. package/esm/components/CityDB.js +1 -1
  24. package/esm/components/CodeMirror.js +1 -1
  25. package/esm/components/Collapse.js +1 -1
  26. package/esm/components/CollapseGroup.js +1 -1
  27. package/esm/components/ColorPicker.d.ts +40 -40
  28. package/esm/components/ColorPicker.js +1 -1
  29. package/esm/components/Combo.js +28 -15
  30. package/esm/components/ConfirmBox.js +9 -6
  31. package/esm/components/ContextMenu.js +1 -1
  32. package/esm/components/DatePicker.d.ts +40 -40
  33. package/esm/components/DatePicker.js +6 -4
  34. package/esm/components/DateRangePicker.d.ts +40 -40
  35. package/esm/components/DateRangePicker.js +7 -5
  36. package/esm/components/DndContainer.js +1 -1
  37. package/esm/components/Drawer.js +1 -1
  38. package/esm/components/Editor.js +1 -1
  39. package/esm/components/Form.js +1 -1
  40. package/esm/components/FormField.js +1 -1
  41. package/esm/components/GridNav.js +1 -1
  42. package/esm/components/GroupedSelection.js +1 -1
  43. package/esm/components/Html.js +1 -1
  44. package/esm/components/ImageGallery.js +1 -1
  45. package/esm/components/Input.js +1 -1
  46. package/esm/components/InputBox.js +1 -1
  47. package/esm/components/InputBoxWithSuggestion.js +1 -1
  48. package/esm/components/InputTable.js +28 -15
  49. package/esm/components/Layout.js +1 -1
  50. package/esm/components/Link.js +1 -1
  51. package/esm/components/ListGroup.js +1 -1
  52. package/esm/components/ListMenu.js +1 -1
  53. package/esm/components/LocationPicker.d.ts +40 -40
  54. package/esm/components/LocationPicker.js +1 -1
  55. package/esm/components/Markdown.js +1 -1
  56. package/esm/components/Modal.js +1 -1
  57. package/esm/components/ModalManager.js +1 -1
  58. package/esm/components/MonthRangePicker.d.ts +40 -40
  59. package/esm/components/MultilineText.js +1 -1
  60. package/esm/components/NumberInput.d.ts +15 -11
  61. package/esm/components/NumberInput.js +9 -9
  62. package/esm/components/Pagination.js +1 -1
  63. package/esm/components/Picker.js +4 -4
  64. package/esm/components/PickerColumn.js +4 -4
  65. package/esm/components/PickerContainer.js +1 -1
  66. package/esm/components/PopOverContainer.d.ts +18 -0
  67. package/esm/components/PopOverContainer.js +42 -9
  68. package/esm/components/PopUp.js +1 -1
  69. package/esm/components/Progress.js +1 -1
  70. package/esm/components/PullRefresh.js +4 -4
  71. package/esm/components/Radios.js +1 -1
  72. package/esm/components/Range.js +1 -1
  73. package/esm/components/Rating.js +1 -1
  74. package/esm/components/ResultBox.d.ts +40 -40
  75. package/esm/components/ResultBox.js +3 -3
  76. package/esm/components/ResultList.js +1 -1
  77. package/esm/components/ResultTableList.js +1 -1
  78. package/esm/components/ResultTreeList.js +1 -1
  79. package/esm/components/RichText.js +1 -1
  80. package/esm/components/SearchBox.d.ts +82 -40
  81. package/esm/components/SearchBox.js +10 -7
  82. package/esm/components/Select.d.ts +195 -193
  83. package/esm/components/Select.js +19 -9
  84. package/esm/components/Selection.js +3 -3
  85. package/esm/components/SparkLine.js +4 -4
  86. package/esm/components/Spinner.js +29 -33
  87. package/esm/components/Steps.js +1 -1
  88. package/esm/components/Switch.js +1 -1
  89. package/esm/components/TableSelection.js +1 -1
  90. package/esm/components/Tabs.d.ts +41 -40
  91. package/esm/components/Tabs.js +15 -10
  92. package/esm/components/TabsTransfer.js +1 -1
  93. package/esm/components/TabsTransferPicker.js +1 -1
  94. package/esm/components/Tag.js +1 -1
  95. package/esm/components/Textarea.js +1 -1
  96. package/esm/components/Timeline.js +1 -1
  97. package/esm/components/TimelineItem.js +3 -2
  98. package/esm/components/Tinymce.js +1 -1
  99. package/esm/components/TitleBar.js +1 -1
  100. package/esm/components/Toast.js +3 -3
  101. package/esm/components/Tooltip.js +1 -1
  102. package/esm/components/TooltipWrapper.js +1 -1
  103. package/esm/components/Transfer.js +1 -1
  104. package/esm/components/TransferDropDown.d.ts +44 -40
  105. package/esm/components/TransferDropDown.js +3 -3
  106. package/esm/components/TransferPicker.js +1 -1
  107. package/esm/components/TransferSearch.js +1 -1
  108. package/esm/components/Tree.d.ts +82 -40
  109. package/esm/components/Tree.js +45 -28
  110. package/esm/components/TreeSelection.js +1 -1
  111. package/esm/components/UserSelect.js +1 -1
  112. package/esm/components/UserTabSelect.js +32 -13
  113. package/esm/components/WithRemoteConfig.js +1 -1
  114. package/esm/components/WithStore.js +1 -1
  115. package/esm/components/calendar/Calendar.js +4 -4
  116. package/esm/components/calendar/CalendarContainer.js +1 -1
  117. package/esm/components/calendar/DaysView.js +1 -1
  118. package/esm/components/calendar/MonthsView.js +3 -3
  119. package/esm/components/calendar/QuartersView.js +1 -1
  120. package/esm/components/calendar/TimeView.js +1 -1
  121. package/esm/components/calendar/YearsView.js +1 -1
  122. package/esm/components/condition-builder/Expression.js +1 -1
  123. package/esm/components/condition-builder/Field.js +1 -1
  124. package/esm/components/condition-builder/Formula.js +1 -1
  125. package/esm/components/condition-builder/Func.js +1 -1
  126. package/esm/components/condition-builder/Group.js +1 -1
  127. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  128. package/esm/components/condition-builder/InputSwitch.js +1 -1
  129. package/esm/components/condition-builder/Item.js +1 -1
  130. package/esm/components/condition-builder/Value.js +2 -2
  131. package/esm/components/condition-builder/config.js +1 -1
  132. package/esm/components/condition-builder/index.js +5 -4
  133. package/esm/components/formula/Editor.js +3 -3
  134. package/esm/components/formula/FuncList.js +4 -4
  135. package/esm/components/formula/Picker.js +3 -3
  136. package/esm/components/formula/VariableList.js +3 -2
  137. package/esm/components/formula/plugin.js +3 -2
  138. package/esm/components/icons.js +4 -4
  139. package/esm/components/json-schema/Array.js +4 -4
  140. package/esm/components/json-schema/Item.js +1 -1
  141. package/esm/components/json-schema/Object.js +30 -10
  142. package/esm/components/json-schema/index.js +1 -1
  143. package/esm/components/menu/MenuContext.js +1 -1
  144. package/esm/components/menu/MenuItem.js +5 -5
  145. package/esm/components/menu/SubMenu.js +5 -6
  146. package/esm/components/menu/index.d.ts +6 -9
  147. package/esm/components/menu/index.js +59 -43
  148. package/esm/components/schema-editor/Array.js +3 -3
  149. package/esm/components/schema-editor/Common.d.ts +10 -0
  150. package/esm/components/schema-editor/Common.js +16 -6
  151. package/esm/components/schema-editor/Item.js +1 -1
  152. package/esm/components/schema-editor/Object.d.ts +2 -1
  153. package/esm/components/schema-editor/Object.js +10 -6
  154. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  155. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  156. package/esm/components/schema-editor/index.d.ts +46 -41
  157. package/esm/components/schema-editor/index.js +6 -4
  158. package/esm/components/table/Cell.js +1 -1
  159. package/esm/components/table/HeadCellDropDown.js +1 -1
  160. package/esm/components/table/HeadCellFilter.js +3 -3
  161. package/esm/components/table/HeadCellSelect.js +1 -1
  162. package/esm/components/table/HeadCellSort.js +1 -1
  163. package/esm/components/table/ItemActionsWrapper.js +1 -1
  164. package/esm/components/table/index.js +19 -19
  165. package/esm/components/virtual-list/AutoSizer.js +1 -1
  166. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  167. package/esm/components/virtual-list/constants.js +1 -1
  168. package/esm/components/virtual-list/index.js +1 -1
  169. package/esm/hooks/use-set-state.js +3 -3
  170. package/esm/hooks/use-sub-form.js +1 -1
  171. package/esm/hooks/use-touch.js +3 -3
  172. package/esm/hooks/use-update-effect.js +1 -1
  173. package/esm/hooks/use-validation-resolver.js +56 -32
  174. package/esm/icons/alert-danger.svg.js +1 -1
  175. package/esm/icons/alert-info.svg.js +1 -1
  176. package/esm/icons/alert-success.svg.js +1 -1
  177. package/esm/icons/alert-warning.svg.js +1 -1
  178. package/esm/icons/back.svg.js +1 -1
  179. package/esm/icons/calendar.svg.js +1 -1
  180. package/esm/icons/caret.svg.js +1 -1
  181. package/esm/icons/check.svg.js +1 -1
  182. package/esm/icons/clock.svg.js +1 -1
  183. package/esm/icons/close-small.svg.js +1 -1
  184. package/esm/icons/close.svg.js +1 -1
  185. package/esm/icons/cloud-upload.svg.js +1 -1
  186. package/esm/icons/column-filter.svg.js +1 -1
  187. package/esm/icons/columns.svg.js +1 -1
  188. package/esm/icons/compress-alt.svg.js +1 -1
  189. package/esm/icons/copy.svg.js +1 -1
  190. package/esm/icons/date.svg.js +1 -1
  191. package/esm/icons/department.svg.js +1 -1
  192. package/esm/icons/desk-empty.svg.js +1 -1
  193. package/esm/icons/dot.svg.js +1 -1
  194. package/esm/icons/down-arrow-bold.svg.js +1 -1
  195. package/esm/icons/down.svg.js +1 -1
  196. package/esm/icons/download.svg.js +1 -1
  197. package/esm/icons/drag-bar.svg.js +1 -1
  198. package/esm/icons/drag.svg.js +1 -1
  199. package/esm/icons/edit.svg.js +1 -1
  200. package/esm/icons/ellipsis-v.svg.js +1 -1
  201. package/esm/icons/enter.svg.js +1 -1
  202. package/esm/icons/exchange.svg.js +1 -1
  203. package/esm/icons/expand-alt.svg.js +1 -1
  204. package/esm/icons/fail.svg.js +1 -1
  205. package/esm/icons/file.svg.js +1 -1
  206. package/esm/icons/filter.svg.js +1 -1
  207. package/esm/icons/folder.svg.js +1 -1
  208. package/esm/icons/function.svg.js +1 -1
  209. package/esm/icons/home.svg.js +1 -1
  210. package/esm/icons/image.svg.js +1 -1
  211. package/esm/icons/info-circle.svg.js +1 -1
  212. package/esm/icons/info.svg.js +1 -1
  213. package/esm/icons/input-clear.svg.js +1 -1
  214. package/esm/icons/invisible.svg.js +1 -1
  215. package/esm/icons/left-arrow.svg.js +1 -1
  216. package/esm/icons/loading-outline.svg.js +1 -1
  217. package/esm/icons/location.svg.js +1 -1
  218. package/esm/icons/menu.svg.js +1 -1
  219. package/esm/icons/minus.svg.js +1 -1
  220. package/esm/icons/move.svg.js +1 -1
  221. package/esm/icons/mute.svg.js +1 -1
  222. package/esm/icons/new-edit.svg.js +1 -1
  223. package/esm/icons/pause.svg.js +1 -1
  224. package/esm/icons/pencil.svg.js +1 -1
  225. package/esm/icons/play.svg.js +1 -1
  226. package/esm/icons/plus-cicle.svg.js +1 -1
  227. package/esm/icons/plus-fine.svg.js +1 -1
  228. package/esm/icons/plus.svg.js +1 -1
  229. package/esm/icons/post.svg.js +1 -1
  230. package/esm/icons/question-mark.svg.js +1 -1
  231. package/esm/icons/question.svg.js +1 -1
  232. package/esm/icons/redo.svg.js +1 -1
  233. package/esm/icons/refresh.svg.js +1 -1
  234. package/esm/icons/reload.svg.js +1 -1
  235. package/esm/icons/remove.svg.js +1 -1
  236. package/esm/icons/retry.svg.js +1 -1
  237. package/esm/icons/right-arrow-bold.svg.js +1 -1
  238. package/esm/icons/right-arrow.svg.js +1 -1
  239. package/esm/icons/right-double-arrow.svg.js +1 -1
  240. package/esm/icons/role.svg.js +1 -1
  241. package/esm/icons/rotate-left.svg.js +1 -1
  242. package/esm/icons/rotate-right.svg.js +1 -1
  243. package/esm/icons/scale-origin.svg.js +1 -1
  244. package/esm/icons/schedule.svg.js +1 -1
  245. package/esm/icons/search.svg.js +1 -1
  246. package/esm/icons/setting.svg.js +1 -1
  247. package/esm/icons/slider-handle-icon.svg.js +1 -1
  248. package/esm/icons/sort-asc.svg.js +1 -1
  249. package/esm/icons/sort-default.svg.js +1 -1
  250. package/esm/icons/sort-desc.svg.js +1 -1
  251. package/esm/icons/star.svg.js +1 -1
  252. package/esm/icons/status-close.svg.js +1 -1
  253. package/esm/icons/steps-finsh.svg.js +1 -1
  254. package/esm/icons/success.svg.js +1 -1
  255. package/esm/icons/transparent.svg.js +1 -1
  256. package/esm/icons/trash.svg.js +1 -1
  257. package/esm/icons/tree-down.svg.js +1 -1
  258. package/esm/icons/undo.svg.js +1 -1
  259. package/esm/icons/upload.svg.js +1 -1
  260. package/esm/icons/user-remove.svg.js +1 -1
  261. package/esm/icons/view.svg.js +1 -1
  262. package/esm/icons/volume.svg.js +1 -1
  263. package/esm/icons/warning-mark.svg.js +1 -1
  264. package/esm/icons/warning.svg.js +1 -1
  265. package/esm/icons/window-restore.svg.js +1 -1
  266. package/esm/icons/zoom-in.svg.js +1 -1
  267. package/esm/icons/zoom-out.svg.js +1 -1
  268. package/esm/index.js +1 -1
  269. package/esm/locale/de-DE.js +1 -1
  270. package/esm/locale/en-US.js +1 -1
  271. package/esm/locale/zh-CN.js +1 -1
  272. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
  273. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  274. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  275. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  276. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  277. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  278. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  279. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  280. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  281. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  282. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  283. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
  284. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  285. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  286. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  287. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  288. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  289. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  290. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  291. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  292. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  293. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  294. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  295. package/esm/node_modules/rc-overflow/es/Item.js +3 -3
  296. package/esm/node_modules/rc-overflow/es/Overflow.js +3 -3
  297. package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
  298. package/esm/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
  299. package/esm/node_modules/rc-overflow/es/index.js +1 -1
  300. package/esm/node_modules/rc-resize-observer/es/Collection.js +4 -5
  301. package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
  302. package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
  303. package/esm/node_modules/rc-resize-observer/es/index.js +13 -11
  304. package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
  305. package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
  306. package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  307. package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  308. package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  309. package/esm/node_modules/rc-util/es/hooks/useState.js +1 -1
  310. package/esm/node_modules/rc-util/es/raf.js +1 -1
  311. package/esm/node_modules/rc-util/es/ref.js +1 -1
  312. package/esm/node_modules/rc-util/es/warning.js +1 -1
  313. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
  314. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  315. package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
  316. package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  317. package/esm/themes/ang.js +1 -1
  318. package/esm/themes/antd.js +1 -1
  319. package/esm/themes/cxd.js +1 -1
  320. package/esm/themes/dark.js +1 -1
  321. package/lib/_virtual/index.js +1 -1
  322. package/lib/_virtual/react-is.development.js +1 -1
  323. package/lib/_virtual/react-is.production.min.js +1 -1
  324. package/lib/components/404.js +1 -1
  325. package/lib/components/Alert.js +1 -1
  326. package/lib/components/Alert2.d.ts +10 -10
  327. package/lib/components/Alert2.js +1 -1
  328. package/lib/components/AnchorNav.d.ts +10 -10
  329. package/lib/components/AnchorNav.js +1 -1
  330. package/lib/components/ArrayInput.d.ts +40 -40
  331. package/lib/components/ArrayInput.js +1 -1
  332. package/lib/components/AsideNav.js +1 -1
  333. package/lib/components/AssociatedSelection.d.ts +40 -40
  334. package/lib/components/AssociatedSelection.js +1 -1
  335. package/lib/components/Avatar.d.ts +10 -10
  336. package/lib/components/Avatar.js +1 -1
  337. package/lib/components/Badge.js +5 -2
  338. package/lib/components/BaiduMapPicker.js +1 -1
  339. package/lib/components/BarCode.js +1 -1
  340. package/lib/components/Breadcrumb.js +1 -1
  341. package/lib/components/Button.d.ts +10 -10
  342. package/lib/components/Button.js +1 -1
  343. package/lib/components/CalendarMobile.d.ts +40 -40
  344. package/lib/components/CalendarMobile.js +1 -1
  345. package/lib/components/Card.d.ts +10 -10
  346. package/lib/components/Card.js +1 -1
  347. package/lib/components/Cascader.js +22 -12
  348. package/lib/components/ChainedSelection.d.ts +40 -40
  349. package/lib/components/ChainedSelection.js +1 -1
  350. package/lib/components/Checkbox.d.ts +10 -10
  351. package/lib/components/Checkbox.js +1 -1
  352. package/lib/components/CityArea.js +11 -11
  353. package/lib/components/CityDB.js +1 -1
  354. package/lib/components/CodeMirror.js +1 -1
  355. package/lib/components/Collapse.d.ts +10 -10
  356. package/lib/components/Collapse.js +1 -1
  357. package/lib/components/CollapseGroup.js +1 -1
  358. package/lib/components/ColorPicker.d.ts +40 -40
  359. package/lib/components/ColorPicker.js +1 -1
  360. package/lib/components/Combo.js +27 -14
  361. package/lib/components/ConfirmBox.d.ts +40 -40
  362. package/lib/components/ConfirmBox.js +8 -5
  363. package/lib/components/ContextMenu.js +1 -1
  364. package/lib/components/DatePicker.d.ts +40 -40
  365. package/lib/components/DatePicker.js +5 -3
  366. package/lib/components/DateRangePicker.d.ts +40 -40
  367. package/lib/components/DateRangePicker.js +6 -4
  368. package/lib/components/DndContainer.js +1 -1
  369. package/lib/components/Drawer.d.ts +10 -10
  370. package/lib/components/Drawer.js +1 -1
  371. package/lib/components/Editor.d.ts +40 -40
  372. package/lib/components/Editor.js +1 -1
  373. package/lib/components/Form.js +1 -1
  374. package/lib/components/FormField.js +1 -1
  375. package/lib/components/GridNav.js +1 -1
  376. package/lib/components/GroupedSelection.d.ts +40 -40
  377. package/lib/components/GroupedSelection.js +1 -1
  378. package/lib/components/Html.js +1 -1
  379. package/lib/components/ImageGallery.js +1 -1
  380. package/lib/components/Input.js +1 -1
  381. package/lib/components/InputBox.d.ts +10 -10
  382. package/lib/components/InputBox.js +1 -1
  383. package/lib/components/InputBoxWithSuggestion.js +1 -1
  384. package/lib/components/InputTable.js +27 -14
  385. package/lib/components/Layout.js +1 -1
  386. package/lib/components/Link.js +1 -1
  387. package/lib/components/ListGroup.d.ts +10 -10
  388. package/lib/components/ListGroup.js +1 -1
  389. package/lib/components/ListMenu.d.ts +40 -40
  390. package/lib/components/ListMenu.js +1 -1
  391. package/lib/components/LocationPicker.d.ts +40 -40
  392. package/lib/components/LocationPicker.js +1 -1
  393. package/lib/components/Markdown.js +1 -1
  394. package/lib/components/Modal.d.ts +40 -40
  395. package/lib/components/Modal.js +1 -1
  396. package/lib/components/ModalManager.js +1 -1
  397. package/lib/components/MonthRangePicker.d.ts +40 -40
  398. package/lib/components/MultilineText.js +1 -1
  399. package/lib/components/NumberInput.d.ts +15 -11
  400. package/lib/components/NumberInput.js +8 -8
  401. package/lib/components/Pagination.js +1 -1
  402. package/lib/components/Picker.js +3 -3
  403. package/lib/components/PickerColumn.js +3 -3
  404. package/lib/components/PickerContainer.js +1 -1
  405. package/lib/components/PopOverContainer.d.ts +18 -0
  406. package/lib/components/PopOverContainer.js +41 -8
  407. package/lib/components/PopUp.js +1 -1
  408. package/lib/components/Progress.d.ts +10 -10
  409. package/lib/components/Progress.js +1 -1
  410. package/lib/components/PullRefresh.js +4 -4
  411. package/lib/components/Radios.d.ts +10 -10
  412. package/lib/components/Radios.js +1 -1
  413. package/lib/components/Range.js +1 -1
  414. package/lib/components/Rating.d.ts +10 -10
  415. package/lib/components/Rating.js +1 -1
  416. package/lib/components/ResultBox.d.ts +40 -40
  417. package/lib/components/ResultBox.js +2 -2
  418. package/lib/components/ResultList.d.ts +40 -40
  419. package/lib/components/ResultList.js +1 -1
  420. package/lib/components/ResultTableList.d.ts +40 -40
  421. package/lib/components/ResultTableList.js +1 -1
  422. package/lib/components/ResultTreeList.d.ts +40 -40
  423. package/lib/components/ResultTreeList.js +1 -1
  424. package/lib/components/RichText.js +1 -1
  425. package/lib/components/SearchBox.d.ts +82 -40
  426. package/lib/components/SearchBox.js +9 -6
  427. package/lib/components/Select.d.ts +195 -193
  428. package/lib/components/Select.js +18 -8
  429. package/lib/components/Selection.d.ts +40 -40
  430. package/lib/components/Selection.js +2 -2
  431. package/lib/components/SparkLine.d.ts +40 -40
  432. package/lib/components/SparkLine.js +3 -3
  433. package/lib/components/Spinner.d.ts +10 -10
  434. package/lib/components/Spinner.js +29 -33
  435. package/lib/components/Steps.js +1 -1
  436. package/lib/components/Switch.d.ts +10 -10
  437. package/lib/components/Switch.js +1 -1
  438. package/lib/components/TableSelection.d.ts +40 -40
  439. package/lib/components/TableSelection.js +1 -1
  440. package/lib/components/Tabs.d.ts +41 -40
  441. package/lib/components/Tabs.js +15 -10
  442. package/lib/components/TabsTransfer.d.ts +40 -40
  443. package/lib/components/TabsTransfer.js +1 -1
  444. package/lib/components/TabsTransferPicker.js +1 -1
  445. package/lib/components/Tag.d.ts +10 -10
  446. package/lib/components/Tag.js +1 -1
  447. package/lib/components/Textarea.d.ts +40 -40
  448. package/lib/components/Textarea.js +1 -1
  449. package/lib/components/Timeline.js +1 -1
  450. package/lib/components/TimelineItem.js +3 -2
  451. package/lib/components/Tinymce.js +1 -1
  452. package/lib/components/TitleBar.js +1 -1
  453. package/lib/components/Toast.js +2 -2
  454. package/lib/components/Tooltip.js +1 -1
  455. package/lib/components/TooltipWrapper.js +1 -1
  456. package/lib/components/Transfer.d.ts +40 -40
  457. package/lib/components/Transfer.js +1 -1
  458. package/lib/components/TransferDropDown.d.ts +44 -40
  459. package/lib/components/TransferDropDown.js +3 -3
  460. package/lib/components/TransferPicker.js +1 -1
  461. package/lib/components/TransferSearch.js +1 -1
  462. package/lib/components/Tree.d.ts +82 -40
  463. package/lib/components/Tree.js +44 -27
  464. package/lib/components/TreeSelection.d.ts +40 -40
  465. package/lib/components/TreeSelection.js +1 -1
  466. package/lib/components/UserSelect.d.ts +40 -40
  467. package/lib/components/UserSelect.js +1 -1
  468. package/lib/components/UserTabSelect.d.ts +40 -40
  469. package/lib/components/UserTabSelect.js +31 -12
  470. package/lib/components/WithRemoteConfig.js +1 -1
  471. package/lib/components/WithStore.js +1 -1
  472. package/lib/components/calendar/Calendar.js +3 -3
  473. package/lib/components/calendar/CalendarContainer.js +1 -1
  474. package/lib/components/calendar/DaysView.js +1 -1
  475. package/lib/components/calendar/MonthsView.js +2 -2
  476. package/lib/components/calendar/QuartersView.js +1 -1
  477. package/lib/components/calendar/TimeView.js +1 -1
  478. package/lib/components/calendar/YearsView.js +1 -1
  479. package/lib/components/condition-builder/Expression.js +1 -1
  480. package/lib/components/condition-builder/Field.js +1 -1
  481. package/lib/components/condition-builder/Formula.js +1 -1
  482. package/lib/components/condition-builder/Func.js +1 -1
  483. package/lib/components/condition-builder/Group.js +1 -1
  484. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  485. package/lib/components/condition-builder/InputSwitch.js +1 -1
  486. package/lib/components/condition-builder/Item.js +1 -1
  487. package/lib/components/condition-builder/Value.js +2 -2
  488. package/lib/components/condition-builder/config.js +1 -1
  489. package/lib/components/condition-builder/index.js +4 -3
  490. package/lib/components/formula/Editor.d.ts +40 -40
  491. package/lib/components/formula/Editor.js +2 -2
  492. package/lib/components/formula/FuncList.js +3 -3
  493. package/lib/components/formula/Picker.d.ts +40 -40
  494. package/lib/components/formula/Picker.js +2 -2
  495. package/lib/components/formula/VariableList.js +3 -2
  496. package/lib/components/formula/plugin.js +3 -2
  497. package/lib/components/icons.js +3 -3
  498. package/lib/components/json-schema/Array.js +3 -3
  499. package/lib/components/json-schema/Item.js +1 -1
  500. package/lib/components/json-schema/Object.js +29 -9
  501. package/lib/components/json-schema/index.js +1 -1
  502. package/lib/components/menu/MenuContext.js +1 -1
  503. package/lib/components/menu/MenuItem.js +5 -5
  504. package/lib/components/menu/SubMenu.js +4 -5
  505. package/lib/components/menu/index.d.ts +16 -19
  506. package/lib/components/menu/index.js +56 -41
  507. package/lib/components/schema-editor/Array.js +3 -3
  508. package/lib/components/schema-editor/Common.d.ts +10 -0
  509. package/lib/components/schema-editor/Common.js +16 -5
  510. package/lib/components/schema-editor/Item.js +1 -1
  511. package/lib/components/schema-editor/Object.d.ts +2 -1
  512. package/lib/components/schema-editor/Object.js +10 -6
  513. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  514. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  515. package/lib/components/schema-editor/index.d.ts +46 -41
  516. package/lib/components/schema-editor/index.js +6 -4
  517. package/lib/components/table/Cell.d.ts +40 -40
  518. package/lib/components/table/Cell.js +1 -1
  519. package/lib/components/table/HeadCellDropDown.js +1 -1
  520. package/lib/components/table/HeadCellFilter.js +2 -2
  521. package/lib/components/table/HeadCellSelect.js +1 -1
  522. package/lib/components/table/HeadCellSort.js +1 -1
  523. package/lib/components/table/ItemActionsWrapper.js +1 -1
  524. package/lib/components/table/index.d.ts +40 -40
  525. package/lib/components/table/index.js +18 -18
  526. package/lib/components/virtual-list/AutoSizer.js +1 -1
  527. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  528. package/lib/components/virtual-list/constants.js +1 -1
  529. package/lib/components/virtual-list/index.js +1 -1
  530. package/lib/hooks/use-set-state.js +2 -2
  531. package/lib/hooks/use-sub-form.js +1 -1
  532. package/lib/hooks/use-touch.js +2 -2
  533. package/lib/hooks/use-update-effect.js +1 -1
  534. package/lib/hooks/use-validation-resolver.js +55 -31
  535. package/lib/icons/alert-danger.svg.js +1 -1
  536. package/lib/icons/alert-info.svg.js +1 -1
  537. package/lib/icons/alert-success.svg.js +1 -1
  538. package/lib/icons/alert-warning.svg.js +1 -1
  539. package/lib/icons/back.svg.js +1 -1
  540. package/lib/icons/calendar.svg.js +1 -1
  541. package/lib/icons/caret.svg.js +1 -1
  542. package/lib/icons/check.svg.js +1 -1
  543. package/lib/icons/clock.svg.js +1 -1
  544. package/lib/icons/close-small.svg.js +1 -1
  545. package/lib/icons/close.svg.js +1 -1
  546. package/lib/icons/cloud-upload.svg.js +1 -1
  547. package/lib/icons/column-filter.svg.js +1 -1
  548. package/lib/icons/columns.svg.js +1 -1
  549. package/lib/icons/compress-alt.svg.js +1 -1
  550. package/lib/icons/copy.svg.js +1 -1
  551. package/lib/icons/date.svg.js +1 -1
  552. package/lib/icons/department.svg.js +1 -1
  553. package/lib/icons/desk-empty.svg.js +1 -1
  554. package/lib/icons/dot.svg.js +1 -1
  555. package/lib/icons/down-arrow-bold.svg.js +1 -1
  556. package/lib/icons/down.svg.js +1 -1
  557. package/lib/icons/download.svg.js +1 -1
  558. package/lib/icons/drag-bar.svg.js +1 -1
  559. package/lib/icons/drag.svg.js +1 -1
  560. package/lib/icons/edit.svg.js +1 -1
  561. package/lib/icons/ellipsis-v.svg.js +1 -1
  562. package/lib/icons/enter.svg.js +1 -1
  563. package/lib/icons/exchange.svg.js +1 -1
  564. package/lib/icons/expand-alt.svg.js +1 -1
  565. package/lib/icons/fail.svg.js +1 -1
  566. package/lib/icons/file.svg.js +1 -1
  567. package/lib/icons/filter.svg.js +1 -1
  568. package/lib/icons/folder.svg.js +1 -1
  569. package/lib/icons/function.svg.js +1 -1
  570. package/lib/icons/home.svg.js +1 -1
  571. package/lib/icons/image.svg.js +1 -1
  572. package/lib/icons/info-circle.svg.js +1 -1
  573. package/lib/icons/info.svg.js +1 -1
  574. package/lib/icons/input-clear.svg.js +1 -1
  575. package/lib/icons/invisible.svg.js +1 -1
  576. package/lib/icons/left-arrow.svg.js +1 -1
  577. package/lib/icons/loading-outline.svg.js +1 -1
  578. package/lib/icons/location.svg.js +1 -1
  579. package/lib/icons/menu.svg.js +1 -1
  580. package/lib/icons/minus.svg.js +1 -1
  581. package/lib/icons/move.svg.js +1 -1
  582. package/lib/icons/mute.svg.js +1 -1
  583. package/lib/icons/new-edit.svg.js +1 -1
  584. package/lib/icons/pause.svg.js +1 -1
  585. package/lib/icons/pencil.svg.js +1 -1
  586. package/lib/icons/play.svg.js +1 -1
  587. package/lib/icons/plus-cicle.svg.js +1 -1
  588. package/lib/icons/plus-fine.svg.js +1 -1
  589. package/lib/icons/plus.svg.js +1 -1
  590. package/lib/icons/post.svg.js +1 -1
  591. package/lib/icons/question-mark.svg.js +1 -1
  592. package/lib/icons/question.svg.js +1 -1
  593. package/lib/icons/redo.svg.js +1 -1
  594. package/lib/icons/refresh.svg.js +1 -1
  595. package/lib/icons/reload.svg.js +1 -1
  596. package/lib/icons/remove.svg.js +1 -1
  597. package/lib/icons/retry.svg.js +1 -1
  598. package/lib/icons/right-arrow-bold.svg.js +1 -1
  599. package/lib/icons/right-arrow.svg.js +1 -1
  600. package/lib/icons/right-double-arrow.svg.js +1 -1
  601. package/lib/icons/role.svg.js +1 -1
  602. package/lib/icons/rotate-left.svg.js +1 -1
  603. package/lib/icons/rotate-right.svg.js +1 -1
  604. package/lib/icons/scale-origin.svg.js +1 -1
  605. package/lib/icons/schedule.svg.js +1 -1
  606. package/lib/icons/search.svg.js +1 -1
  607. package/lib/icons/setting.svg.js +1 -1
  608. package/lib/icons/slider-handle-icon.svg.js +1 -1
  609. package/lib/icons/sort-asc.svg.js +1 -1
  610. package/lib/icons/sort-default.svg.js +1 -1
  611. package/lib/icons/sort-desc.svg.js +1 -1
  612. package/lib/icons/star.svg.js +1 -1
  613. package/lib/icons/status-close.svg.js +1 -1
  614. package/lib/icons/steps-finsh.svg.js +1 -1
  615. package/lib/icons/success.svg.js +1 -1
  616. package/lib/icons/transparent.svg.js +1 -1
  617. package/lib/icons/trash.svg.js +1 -1
  618. package/lib/icons/tree-down.svg.js +1 -1
  619. package/lib/icons/undo.svg.js +1 -1
  620. package/lib/icons/upload.svg.js +1 -1
  621. package/lib/icons/user-remove.svg.js +1 -1
  622. package/lib/icons/view.svg.js +1 -1
  623. package/lib/icons/volume.svg.js +1 -1
  624. package/lib/icons/warning-mark.svg.js +1 -1
  625. package/lib/icons/warning.svg.js +1 -1
  626. package/lib/icons/window-restore.svg.js +1 -1
  627. package/lib/icons/zoom-in.svg.js +1 -1
  628. package/lib/icons/zoom-out.svg.js +1 -1
  629. package/lib/index.js +1 -1
  630. package/lib/locale/de-DE.js +1 -1
  631. package/lib/locale/en-US.js +1 -1
  632. package/lib/locale/zh-CN.js +1 -1
  633. package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +2 -4
  634. package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  635. package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  636. package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  637. package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  638. package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  639. package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  640. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  641. package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  642. package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  643. package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  644. package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -4
  645. package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  646. package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  647. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  648. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  649. package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  650. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  651. package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  652. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  653. package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  654. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  655. package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  656. package/lib/node_modules/rc-overflow/es/Item.js +1 -1
  657. package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
  658. package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
  659. package/lib/node_modules/rc-overflow/es/hooks/useBatchFrameState.js +1 -1
  660. package/lib/node_modules/rc-overflow/es/index.js +1 -1
  661. package/lib/node_modules/rc-resize-observer/es/Collection.js +4 -5
  662. package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -7
  663. package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +38 -37
  664. package/lib/node_modules/rc-resize-observer/es/index.js +11 -9
  665. package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +6 -12
  666. package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
  667. package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  668. package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  669. package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  670. package/lib/node_modules/rc-util/es/hooks/useState.js +1 -1
  671. package/lib/node_modules/rc-util/es/raf.js +1 -1
  672. package/lib/node_modules/rc-util/es/ref.js +1 -1
  673. package/lib/node_modules/rc-util/es/warning.js +1 -1
  674. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
  675. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  676. package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
  677. package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  678. package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
  679. package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
  680. package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
  681. package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
  682. package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
  683. package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
  684. package/lib/themes/ang.css +903 -429
  685. package/lib/themes/ang.js +1 -1
  686. package/lib/themes/antd.css +917 -435
  687. package/lib/themes/antd.js +1 -1
  688. package/lib/themes/cxd.css +903 -429
  689. package/lib/themes/cxd.js +1 -1
  690. package/lib/themes/dark.css +903 -429
  691. package/lib/themes/dark.js +1 -1
  692. package/lib/themes/default.css +903 -429
  693. package/package.json +4 -4
  694. package/scss/_components.scss +464 -6
  695. package/scss/_properties.scss +3 -199
  696. package/scss/base/_normalize.scss +11 -0
  697. package/scss/components/_button.scss +8 -17
  698. package/scss/components/_formula.scss +13 -0
  699. package/scss/components/_menu.scss +93 -75
  700. package/scss/components/_result-box.scss +83 -17
  701. package/scss/components/_table.scss +0 -5
  702. package/scss/components/_tabs.scss +4 -0
  703. package/scss/components/form/_chained-select.scss +5 -0
  704. package/scss/components/form/_checks.scss +0 -4
  705. package/scss/components/form/_date-range.scss +73 -11
  706. package/scss/components/form/_date.scss +93 -23
  707. package/scss/components/form/_form.scss +0 -1
  708. package/scss/components/form/_input-group.scss +11 -0
  709. package/scss/components/form/_location.scss +16 -16
  710. package/scss/components/form/_nested-select.scss +6 -2
  711. package/scss/components/form/_number.scss +12 -3
  712. package/scss/components/form/_select.scss +119 -52
  713. package/scss/components/form/_selection.scss +62 -40
  714. package/scss/components/form/_tag.scss +0 -4
  715. package/scss/components/form/_text.scss +13 -3
  716. package/scss/components/form/_tree.scss +22 -2
  717. package/scss/components/react-datetime.scss +8 -2
  718. package/scss/themes/_antd-variables.scss +20 -6
@@ -39,6 +39,7 @@ export interface SearchBoxProps extends ThemeProps, LocaleProps {
39
39
  onBlur?: () => void;
40
40
  /** 历史记录配置 */
41
41
  history?: SearchHistoryOptions;
42
+ clearAndSubmit?: boolean;
42
43
  }
43
44
  export interface SearchBoxState {
44
45
  isFocused: boolean;
@@ -54,6 +55,7 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
54
55
  clearable: boolean;
55
56
  searchImediately: boolean;
56
57
  history: Required<SearchHistoryOptions>;
58
+ clearAndSubmit: boolean;
57
59
  };
58
60
  state: {
59
61
  isHistoryOpened: boolean;
@@ -89,12 +91,13 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
89
91
  render(): JSX.Element;
90
92
  }
91
93
  declare const _default: {
92
- new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
94
+ new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
93
95
  mini: boolean;
94
96
  enhance: boolean;
95
97
  clearable: boolean;
96
98
  searchImediately: boolean;
97
99
  history: Required<SearchHistoryOptions>;
100
+ clearAndSubmit: boolean;
98
101
  }, never>> & {
99
102
  locale?: string | undefined;
100
103
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -104,23 +107,25 @@ declare const _default: {
104
107
  getWrappedInstance(): any;
105
108
  render(): JSX.Element;
106
109
  context: any;
107
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
110
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
108
111
  mini: boolean;
109
112
  enhance: boolean;
110
113
  clearable: boolean;
111
114
  searchImediately: boolean;
112
115
  history: Required<SearchHistoryOptions>;
116
+ clearAndSubmit: boolean;
113
117
  }, never>> & {
114
118
  locale?: string | undefined;
115
119
  translate?: ((str: string, ...args: any[]) => string) | undefined;
116
120
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
117
121
  forceUpdate(callback?: (() => void) | undefined): void;
118
- readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
122
+ readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
119
123
  mini: boolean;
120
124
  enhance: boolean;
121
125
  clearable: boolean;
122
126
  searchImediately: boolean;
123
127
  history: Required<SearchHistoryOptions>;
128
+ clearAndSubmit: boolean;
124
129
  }, never>> & {
125
130
  locale?: string | undefined;
126
131
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -132,76 +137,83 @@ declare const _default: {
132
137
  [key: string]: React.ReactInstance;
133
138
  };
134
139
  componentDidMount?(): void;
135
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
140
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
136
141
  mini: boolean;
137
142
  enhance: boolean;
138
143
  clearable: boolean;
139
144
  searchImediately: boolean;
140
145
  history: Required<SearchHistoryOptions>;
146
+ clearAndSubmit: boolean;
141
147
  }, never>> & {
142
148
  locale?: string | undefined;
143
149
  translate?: ((str: string, ...args: any[]) => string) | undefined;
144
150
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
145
151
  componentWillUnmount?(): void;
146
152
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
147
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
153
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
148
154
  mini: boolean;
149
155
  enhance: boolean;
150
156
  clearable: boolean;
151
157
  searchImediately: boolean;
152
158
  history: Required<SearchHistoryOptions>;
159
+ clearAndSubmit: boolean;
153
160
  }, never>> & {
154
161
  locale?: string | undefined;
155
162
  translate?: ((str: string, ...args: any[]) => string) | undefined;
156
163
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
157
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
164
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
158
165
  mini: boolean;
159
166
  enhance: boolean;
160
167
  clearable: boolean;
161
168
  searchImediately: boolean;
162
169
  history: Required<SearchHistoryOptions>;
170
+ clearAndSubmit: boolean;
163
171
  }, never>> & {
164
172
  locale?: string | undefined;
165
173
  translate?: ((str: string, ...args: any[]) => string) | undefined;
166
174
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
167
175
  componentWillMount?(): void;
168
176
  UNSAFE_componentWillMount?(): void;
169
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
177
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
170
178
  mini: boolean;
171
179
  enhance: boolean;
172
180
  clearable: boolean;
173
181
  searchImediately: boolean;
174
182
  history: Required<SearchHistoryOptions>;
183
+ clearAndSubmit: boolean;
175
184
  }, never>> & {
176
185
  locale?: string | undefined;
177
186
  translate?: ((str: string, ...args: any[]) => string) | undefined;
178
187
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
179
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
188
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
180
189
  mini: boolean;
181
190
  enhance: boolean;
182
191
  clearable: boolean;
183
192
  searchImediately: boolean;
184
193
  history: Required<SearchHistoryOptions>;
194
+ clearAndSubmit: boolean;
185
195
  }, never>> & {
186
196
  locale?: string | undefined;
187
197
  translate?: ((str: string, ...args: any[]) => string) | undefined;
188
198
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
189
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
199
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
190
200
  mini: boolean;
191
201
  enhance: boolean;
192
202
  clearable: boolean;
193
203
  searchImediately: boolean;
194
204
  history: Required<SearchHistoryOptions>;
205
+ clearAndSubmit: boolean;
195
206
  }, never>> & {
196
207
  locale?: string | undefined;
197
208
  translate?: ((str: string, ...args: any[]) => string) | undefined;
198
209
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
199
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
210
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
200
211
  mini: boolean;
201
212
  enhance: boolean;
202
213
  clearable: boolean;
203
214
  searchImediately: boolean;
204
215
  history: Required<SearchHistoryOptions>;
216
+ clearAndSubmit: boolean;
205
217
  }, never>> & {
206
218
  locale?: string | undefined;
207
219
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -210,12 +222,13 @@ declare const _default: {
210
222
  displayName: string;
211
223
  contextType: React.Context<string>;
212
224
  ComposedComponent: React.ComponentType<{
213
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
225
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
214
226
  mini: boolean;
215
227
  enhance: boolean;
216
228
  clearable: boolean;
217
229
  searchImediately: boolean;
218
230
  history: Required<SearchHistoryOptions>;
231
+ clearAndSubmit: boolean;
219
232
  }, never>> & {
220
233
  locale?: string | undefined;
221
234
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -225,23 +238,25 @@ declare const _default: {
225
238
  getWrappedInstance(): any;
226
239
  render(): JSX.Element;
227
240
  context: any;
228
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
241
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
229
242
  mini: boolean;
230
243
  enhance: boolean;
231
244
  clearable: boolean;
232
245
  searchImediately: boolean;
233
246
  history: Required<SearchHistoryOptions>;
247
+ clearAndSubmit: boolean;
234
248
  }, never>> & {
235
249
  locale?: string | undefined;
236
250
  translate?: ((str: string, ...args: any[]) => string) | undefined;
237
251
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
238
252
  forceUpdate(callback?: (() => void) | undefined): void;
239
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
253
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
240
254
  mini: boolean;
241
255
  enhance: boolean;
242
256
  clearable: boolean;
243
257
  searchImediately: boolean;
244
258
  history: Required<SearchHistoryOptions>;
259
+ clearAndSubmit: boolean;
245
260
  }, never>> & {
246
261
  locale?: string | undefined;
247
262
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -253,76 +268,83 @@ declare const _default: {
253
268
  [key: string]: React.ReactInstance;
254
269
  };
255
270
  componentDidMount?(): void;
256
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
271
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
257
272
  mini: boolean;
258
273
  enhance: boolean;
259
274
  clearable: boolean;
260
275
  searchImediately: boolean;
261
276
  history: Required<SearchHistoryOptions>;
277
+ clearAndSubmit: boolean;
262
278
  }, never>> & {
263
279
  locale?: string | undefined;
264
280
  translate?: ((str: string, ...args: any[]) => string) | undefined;
265
281
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
266
282
  componentWillUnmount?(): void;
267
283
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
268
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
284
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
269
285
  mini: boolean;
270
286
  enhance: boolean;
271
287
  clearable: boolean;
272
288
  searchImediately: boolean;
273
289
  history: Required<SearchHistoryOptions>;
290
+ clearAndSubmit: boolean;
274
291
  }, never>> & {
275
292
  locale?: string | undefined;
276
293
  translate?: ((str: string, ...args: any[]) => string) | undefined;
277
294
  }>, prevState: Readonly<{}>): any;
278
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
295
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
279
296
  mini: boolean;
280
297
  enhance: boolean;
281
298
  clearable: boolean;
282
299
  searchImediately: boolean;
283
300
  history: Required<SearchHistoryOptions>;
301
+ clearAndSubmit: boolean;
284
302
  }, never>> & {
285
303
  locale?: string | undefined;
286
304
  translate?: ((str: string, ...args: any[]) => string) | undefined;
287
305
  }>, prevState: Readonly<{}>, snapshot?: any): void;
288
306
  componentWillMount?(): void;
289
307
  UNSAFE_componentWillMount?(): void;
290
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
308
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
291
309
  mini: boolean;
292
310
  enhance: boolean;
293
311
  clearable: boolean;
294
312
  searchImediately: boolean;
295
313
  history: Required<SearchHistoryOptions>;
314
+ clearAndSubmit: boolean;
296
315
  }, never>> & {
297
316
  locale?: string | undefined;
298
317
  translate?: ((str: string, ...args: any[]) => string) | undefined;
299
318
  }>, nextContext: any): void;
300
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
319
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
301
320
  mini: boolean;
302
321
  enhance: boolean;
303
322
  clearable: boolean;
304
323
  searchImediately: boolean;
305
324
  history: Required<SearchHistoryOptions>;
325
+ clearAndSubmit: boolean;
306
326
  }, never>> & {
307
327
  locale?: string | undefined;
308
328
  translate?: ((str: string, ...args: any[]) => string) | undefined;
309
329
  }>, nextContext: any): void;
310
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
330
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
311
331
  mini: boolean;
312
332
  enhance: boolean;
313
333
  clearable: boolean;
314
334
  searchImediately: boolean;
315
335
  history: Required<SearchHistoryOptions>;
336
+ clearAndSubmit: boolean;
316
337
  }, never>> & {
317
338
  locale?: string | undefined;
318
339
  translate?: ((str: string, ...args: any[]) => string) | undefined;
319
340
  }>, nextState: Readonly<{}>, nextContext: any): void;
320
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
341
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
321
342
  mini: boolean;
322
343
  enhance: boolean;
323
344
  clearable: boolean;
324
345
  searchImediately: boolean;
325
346
  history: Required<SearchHistoryOptions>;
347
+ clearAndSubmit: boolean;
326
348
  }, never>> & {
327
349
  locale?: string | undefined;
328
350
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -335,12 +357,13 @@ declare const _default: {
335
357
  ComposedComponent: typeof SearchBox;
336
358
  }>;
337
359
  } & import("hoist-non-react-statics").NonReactStatics<{
338
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
360
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
339
361
  mini: boolean;
340
362
  enhance: boolean;
341
363
  clearable: boolean;
342
364
  searchImediately: boolean;
343
365
  history: Required<SearchHistoryOptions>;
366
+ clearAndSubmit: boolean;
344
367
  }, never>> & {
345
368
  locale?: string | undefined;
346
369
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -350,23 +373,25 @@ declare const _default: {
350
373
  getWrappedInstance(): any;
351
374
  render(): JSX.Element;
352
375
  context: any;
353
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
376
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
354
377
  mini: boolean;
355
378
  enhance: boolean;
356
379
  clearable: boolean;
357
380
  searchImediately: boolean;
358
381
  history: Required<SearchHistoryOptions>;
382
+ clearAndSubmit: boolean;
359
383
  }, never>> & {
360
384
  locale?: string | undefined;
361
385
  translate?: ((str: string, ...args: any[]) => string) | undefined;
362
386
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
363
387
  forceUpdate(callback?: (() => void) | undefined): void;
364
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
388
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
365
389
  mini: boolean;
366
390
  enhance: boolean;
367
391
  clearable: boolean;
368
392
  searchImediately: boolean;
369
393
  history: Required<SearchHistoryOptions>;
394
+ clearAndSubmit: boolean;
370
395
  }, never>> & {
371
396
  locale?: string | undefined;
372
397
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -378,76 +403,83 @@ declare const _default: {
378
403
  [key: string]: React.ReactInstance;
379
404
  };
380
405
  componentDidMount?(): void;
381
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
406
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
382
407
  mini: boolean;
383
408
  enhance: boolean;
384
409
  clearable: boolean;
385
410
  searchImediately: boolean;
386
411
  history: Required<SearchHistoryOptions>;
412
+ clearAndSubmit: boolean;
387
413
  }, never>> & {
388
414
  locale?: string | undefined;
389
415
  translate?: ((str: string, ...args: any[]) => string) | undefined;
390
416
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
391
417
  componentWillUnmount?(): void;
392
418
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
393
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
419
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
394
420
  mini: boolean;
395
421
  enhance: boolean;
396
422
  clearable: boolean;
397
423
  searchImediately: boolean;
398
424
  history: Required<SearchHistoryOptions>;
425
+ clearAndSubmit: boolean;
399
426
  }, never>> & {
400
427
  locale?: string | undefined;
401
428
  translate?: ((str: string, ...args: any[]) => string) | undefined;
402
429
  }>, prevState: Readonly<{}>): any;
403
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
430
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
404
431
  mini: boolean;
405
432
  enhance: boolean;
406
433
  clearable: boolean;
407
434
  searchImediately: boolean;
408
435
  history: Required<SearchHistoryOptions>;
436
+ clearAndSubmit: boolean;
409
437
  }, never>> & {
410
438
  locale?: string | undefined;
411
439
  translate?: ((str: string, ...args: any[]) => string) | undefined;
412
440
  }>, prevState: Readonly<{}>, snapshot?: any): void;
413
441
  componentWillMount?(): void;
414
442
  UNSAFE_componentWillMount?(): void;
415
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
443
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
416
444
  mini: boolean;
417
445
  enhance: boolean;
418
446
  clearable: boolean;
419
447
  searchImediately: boolean;
420
448
  history: Required<SearchHistoryOptions>;
449
+ clearAndSubmit: boolean;
421
450
  }, never>> & {
422
451
  locale?: string | undefined;
423
452
  translate?: ((str: string, ...args: any[]) => string) | undefined;
424
453
  }>, nextContext: any): void;
425
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
454
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
426
455
  mini: boolean;
427
456
  enhance: boolean;
428
457
  clearable: boolean;
429
458
  searchImediately: boolean;
430
459
  history: Required<SearchHistoryOptions>;
460
+ clearAndSubmit: boolean;
431
461
  }, never>> & {
432
462
  locale?: string | undefined;
433
463
  translate?: ((str: string, ...args: any[]) => string) | undefined;
434
464
  }>, nextContext: any): void;
435
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
465
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
436
466
  mini: boolean;
437
467
  enhance: boolean;
438
468
  clearable: boolean;
439
469
  searchImediately: boolean;
440
470
  history: Required<SearchHistoryOptions>;
471
+ clearAndSubmit: boolean;
441
472
  }, never>> & {
442
473
  locale?: string | undefined;
443
474
  translate?: ((str: string, ...args: any[]) => string) | undefined;
444
475
  }>, nextState: Readonly<{}>, nextContext: any): void;
445
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
476
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
446
477
  mini: boolean;
447
478
  enhance: boolean;
448
479
  clearable: boolean;
449
480
  searchImediately: boolean;
450
481
  history: Required<SearchHistoryOptions>;
482
+ clearAndSubmit: boolean;
451
483
  }, never>> & {
452
484
  locale?: string | undefined;
453
485
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -460,12 +492,13 @@ declare const _default: {
460
492
  ComposedComponent: typeof SearchBox;
461
493
  }, {}> & {
462
494
  ComposedComponent: {
463
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
495
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
464
496
  mini: boolean;
465
497
  enhance: boolean;
466
498
  clearable: boolean;
467
499
  searchImediately: boolean;
468
500
  history: Required<SearchHistoryOptions>;
501
+ clearAndSubmit: boolean;
469
502
  }, never>> & {
470
503
  locale?: string | undefined;
471
504
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -475,23 +508,25 @@ declare const _default: {
475
508
  getWrappedInstance(): any;
476
509
  render(): JSX.Element;
477
510
  context: any;
478
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
511
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
479
512
  mini: boolean;
480
513
  enhance: boolean;
481
514
  clearable: boolean;
482
515
  searchImediately: boolean;
483
516
  history: Required<SearchHistoryOptions>;
517
+ clearAndSubmit: boolean;
484
518
  }, never>> & {
485
519
  locale?: string | undefined;
486
520
  translate?: ((str: string, ...args: any[]) => string) | undefined;
487
521
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
488
522
  forceUpdate(callback?: (() => void) | undefined): void;
489
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
523
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
490
524
  mini: boolean;
491
525
  enhance: boolean;
492
526
  clearable: boolean;
493
527
  searchImediately: boolean;
494
528
  history: Required<SearchHistoryOptions>;
529
+ clearAndSubmit: boolean;
495
530
  }, never>> & {
496
531
  locale?: string | undefined;
497
532
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -503,76 +538,83 @@ declare const _default: {
503
538
  [key: string]: React.ReactInstance;
504
539
  };
505
540
  componentDidMount?(): void;
506
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
541
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
507
542
  mini: boolean;
508
543
  enhance: boolean;
509
544
  clearable: boolean;
510
545
  searchImediately: boolean;
511
546
  history: Required<SearchHistoryOptions>;
547
+ clearAndSubmit: boolean;
512
548
  }, never>> & {
513
549
  locale?: string | undefined;
514
550
  translate?: ((str: string, ...args: any[]) => string) | undefined;
515
551
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
516
552
  componentWillUnmount?(): void;
517
553
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
518
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
554
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
519
555
  mini: boolean;
520
556
  enhance: boolean;
521
557
  clearable: boolean;
522
558
  searchImediately: boolean;
523
559
  history: Required<SearchHistoryOptions>;
560
+ clearAndSubmit: boolean;
524
561
  }, never>> & {
525
562
  locale?: string | undefined;
526
563
  translate?: ((str: string, ...args: any[]) => string) | undefined;
527
564
  }>, prevState: Readonly<{}>): any;
528
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
565
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
529
566
  mini: boolean;
530
567
  enhance: boolean;
531
568
  clearable: boolean;
532
569
  searchImediately: boolean;
533
570
  history: Required<SearchHistoryOptions>;
571
+ clearAndSubmit: boolean;
534
572
  }, never>> & {
535
573
  locale?: string | undefined;
536
574
  translate?: ((str: string, ...args: any[]) => string) | undefined;
537
575
  }>, prevState: Readonly<{}>, snapshot?: any): void;
538
576
  componentWillMount?(): void;
539
577
  UNSAFE_componentWillMount?(): void;
540
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
578
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
541
579
  mini: boolean;
542
580
  enhance: boolean;
543
581
  clearable: boolean;
544
582
  searchImediately: boolean;
545
583
  history: Required<SearchHistoryOptions>;
584
+ clearAndSubmit: boolean;
546
585
  }, never>> & {
547
586
  locale?: string | undefined;
548
587
  translate?: ((str: string, ...args: any[]) => string) | undefined;
549
588
  }>, nextContext: any): void;
550
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
589
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
551
590
  mini: boolean;
552
591
  enhance: boolean;
553
592
  clearable: boolean;
554
593
  searchImediately: boolean;
555
594
  history: Required<SearchHistoryOptions>;
595
+ clearAndSubmit: boolean;
556
596
  }, never>> & {
557
597
  locale?: string | undefined;
558
598
  translate?: ((str: string, ...args: any[]) => string) | undefined;
559
599
  }>, nextContext: any): void;
560
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
600
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
561
601
  mini: boolean;
562
602
  enhance: boolean;
563
603
  clearable: boolean;
564
604
  searchImediately: boolean;
565
605
  history: Required<SearchHistoryOptions>;
606
+ clearAndSubmit: boolean;
566
607
  }, never>> & {
567
608
  locale?: string | undefined;
568
609
  translate?: ((str: string, ...args: any[]) => string) | undefined;
569
610
  }>, nextState: Readonly<{}>, nextContext: any): void;
570
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "disabled" | "defaultValue" | "value" | "onCancel" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "active" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
611
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "style" | "theme" | "name" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "value" | "disabled" | "active" | "onCancel" | "onSearch" | "defaultActive" | "onActiveChange"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history" | "clearAndSubmit">> & Partial<Pick<{
571
612
  mini: boolean;
572
613
  enhance: boolean;
573
614
  clearable: boolean;
574
615
  searchImediately: boolean;
575
616
  history: Required<SearchHistoryOptions>;
617
+ clearAndSubmit: boolean;
576
618
  }, never>> & {
577
619
  locale?: string | undefined;
578
620
  translate?: ((str: string, ...args: any[]) => string) | undefined;