rsuite 5.16.3 → 5.17.0-beta.1

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 (428) hide show
  1. package/Animation/styles/animation.less +0 -0
  2. package/Animation/styles/index.less +0 -0
  3. package/Animation/styles/mixin.less +0 -0
  4. package/AutoComplete/styles/index.less +0 -0
  5. package/Avatar/styles/mixin.less +0 -0
  6. package/Badge/styles/index.less +0 -0
  7. package/Breadcrumb/styles/index.less +0 -0
  8. package/Button/styles/mixin.less +0 -0
  9. package/CHANGELOG.md +6 -0
  10. package/Calendar/styles/index.less +0 -0
  11. package/Cascader/styles/index.less +0 -0
  12. package/CheckPicker/styles/index.less +0 -0
  13. package/Checkbox/styles/index.less +0 -0
  14. package/Checkbox/styles/mixin.less +0 -0
  15. package/CheckboxGroup/styles/index.less +0 -0
  16. package/CloseButton/styles/index.less +0 -0
  17. package/Container/styles/index.less +0 -0
  18. package/Content/styles/index.less +0 -0
  19. package/DatePicker/styles/index.less +0 -0
  20. package/DateRangePicker/styles/index.less +0 -0
  21. package/Divider/styles/index.less +0 -0
  22. package/Drawer/styles/mixin.less +0 -0
  23. package/FlexboxGrid/styles/index.less +0 -0
  24. package/Footer/styles/index.less +0 -0
  25. package/Form/styles/index.less +0 -0
  26. package/FormControl/styles/index.less +0 -0
  27. package/FormControlLabel/styles/index.less +0 -0
  28. package/FormErrorMessage/styles/animation.less +0 -0
  29. package/FormErrorMessage/styles/index.less +0 -0
  30. package/FormGroup/styles/index.less +0 -0
  31. package/FormHelpText/styles/index.less +0 -0
  32. package/Grid/styles/grid-framework.less +0 -0
  33. package/Grid/styles/mixin.less +0 -0
  34. package/Header/styles/index.less +0 -0
  35. package/Input/styles/index.less +0 -0
  36. package/InputNumber/styles/index.less +0 -0
  37. package/InputNumber/styles/mixin.less +0 -0
  38. package/InputPicker/styles/index.less +0 -0
  39. package/LICENSE +0 -0
  40. package/List/styles/index.less +0 -0
  41. package/Loader/styles/index.less +0 -0
  42. package/Loader/styles/mixin.less +0 -0
  43. package/Message/styles/index.less +0 -0
  44. package/Message/styles/mixin.less +0 -0
  45. package/Modal/styles/animation.less +0 -0
  46. package/Notification/styles/index.less +0 -0
  47. package/Notification/styles/mixin.less +0 -0
  48. package/Pagination/styles/index.less +0 -0
  49. package/Pagination/styles/mixin.less +0 -0
  50. package/Pagination/styles/pagination-group.less +0 -0
  51. package/Panel/styles/index.less +0 -0
  52. package/Picker/styles/index.less +1 -1
  53. package/Placeholder/styles/index.less +0 -0
  54. package/Popover/styles/index.less +0 -0
  55. package/Popover/styles/mixins.less +0 -0
  56. package/Progress/styles/animation.less +0 -0
  57. package/Progress/styles/index.less +0 -0
  58. package/Radio/styles/mixin.less +0 -0
  59. package/RadioGroup/styles/index.less +0 -0
  60. package/Rate/styles/index.less +0 -0
  61. package/Ripple/styles/index.less +0 -0
  62. package/Ripple/styles/mixins.less +0 -0
  63. package/Row/styles/index.less +0 -0
  64. package/SelectPicker/styles/index.less +0 -0
  65. package/Sidebar/styles/index.less +0 -0
  66. package/Sidenav/styles/mixin.less +0 -0
  67. package/Steps/styles/index.less +0 -0
  68. package/Table/styles/mixin.less +0 -0
  69. package/Tag/styles/index.less +0 -0
  70. package/TagInput/styles/index.less +0 -0
  71. package/TagPicker/styles/index.less +0 -0
  72. package/Timeline/styles/index.less +0 -0
  73. package/Timeline/styles/mixin.less +0 -0
  74. package/Tooltip/styles/mixins.less +0 -0
  75. package/TreePicker/styles/mixin.less +0 -0
  76. package/Uploader/styles/mixin.less +0 -0
  77. package/cjs/@types/global.d.ts +0 -0
  78. package/cjs/Affix/index.js +0 -0
  79. package/cjs/Animation/Bounce.js +0 -0
  80. package/cjs/Animation/Fade.js +0 -0
  81. package/cjs/Animation/Slide.js +0 -0
  82. package/cjs/Animation/index.js +0 -0
  83. package/cjs/Animation/utils.js +0 -0
  84. package/cjs/AutoComplete/AutoComplete.d.ts +3 -1
  85. package/cjs/AutoComplete/AutoComplete.js +6 -2
  86. package/cjs/AutoComplete/index.js +0 -0
  87. package/cjs/AutoComplete/test/AutoComplete.test.d.ts +1 -0
  88. package/cjs/AutoComplete/test/AutoComplete.test.js +23 -0
  89. package/cjs/Avatar/index.js +0 -0
  90. package/cjs/Badge/index.js +0 -0
  91. package/cjs/Breadcrumb/index.js +0 -0
  92. package/cjs/Button/index.js +0 -0
  93. package/cjs/ButtonToolbar/ButtonToolbar.js +0 -0
  94. package/cjs/ButtonToolbar/index.js +0 -0
  95. package/cjs/Calendar/index.js +0 -0
  96. package/cjs/Carousel/index.js +0 -0
  97. package/cjs/Cascader/index.js +0 -0
  98. package/cjs/CheckPicker/index.js +0 -0
  99. package/cjs/CheckTreePicker/index.js +0 -0
  100. package/cjs/Checkbox/index.js +0 -0
  101. package/cjs/CloseButton/CloseButton.js +0 -0
  102. package/cjs/CloseButton/index.js +0 -0
  103. package/cjs/Col/index.js +0 -0
  104. package/cjs/Container/index.js +0 -0
  105. package/cjs/Content/Content.js +0 -0
  106. package/cjs/Content/index.js +0 -0
  107. package/cjs/CustomProvider/FormattedDate.js +0 -0
  108. package/cjs/CustomProvider/index.js +0 -0
  109. package/cjs/DatePicker/DatePicker.js +1 -1
  110. package/cjs/DatePicker/index.js +0 -0
  111. package/cjs/DateRangePicker/DateRangePicker.js +1 -1
  112. package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
  113. package/cjs/Disclosure/Disclosure.d.ts +2 -2
  114. package/cjs/Disclosure/Disclosure.js +6 -6
  115. package/cjs/Disclosure/index.js +0 -0
  116. package/cjs/Divider/index.js +0 -0
  117. package/cjs/Drawer/index.js +0 -0
  118. package/cjs/Dropdown/DropdownState.js +0 -0
  119. package/cjs/Dropdown/index.js +0 -0
  120. package/cjs/FlexboxGrid/index.js +0 -0
  121. package/cjs/Footer/Footer.js +0 -0
  122. package/cjs/Footer/index.js +0 -0
  123. package/cjs/FormControl/index.js +0 -0
  124. package/cjs/FormControlLabel/FormControlLabel.js +0 -0
  125. package/cjs/FormControlLabel/index.js +0 -0
  126. package/cjs/FormErrorMessage/FormErrorMessage.js +0 -0
  127. package/cjs/FormErrorMessage/index.js +0 -0
  128. package/cjs/FormGroup/index.js +0 -0
  129. package/cjs/FormHelpText/index.js +0 -0
  130. package/cjs/Grid/Grid.js +0 -0
  131. package/cjs/Grid/index.js +0 -0
  132. package/cjs/Header/Header.js +0 -0
  133. package/cjs/Header/index.js +0 -0
  134. package/cjs/IconButton/index.js +0 -0
  135. package/cjs/Input/index.js +0 -0
  136. package/cjs/InputGroup/InputGroupButton.js +0 -0
  137. package/cjs/InputGroup/index.js +0 -0
  138. package/cjs/InputNumber/index.js +0 -0
  139. package/cjs/InputPicker/index.js +0 -0
  140. package/cjs/List/index.js +0 -0
  141. package/cjs/Loader/index.js +0 -0
  142. package/cjs/Menu/MenuContext.js +0 -0
  143. package/cjs/Menu/index.js +0 -0
  144. package/cjs/Message/index.js +0 -0
  145. package/cjs/Modal/ModalFooter.js +0 -0
  146. package/cjs/Modal/index.js +0 -0
  147. package/cjs/MultiCascader/index.js +0 -0
  148. package/cjs/Nav/index.js +0 -0
  149. package/cjs/Navbar/NavbarBody.js +0 -0
  150. package/cjs/Navbar/NavbarBrand.js +0 -0
  151. package/cjs/Navbar/NavbarDropdownMenu.js +16 -10
  152. package/cjs/Navbar/NavbarHeader.js +0 -0
  153. package/cjs/Notification/index.js +0 -0
  154. package/cjs/Overlay/OverlayTrigger.js +43 -34
  155. package/cjs/Overlay/index.js +0 -0
  156. package/cjs/Pagination/index.js +0 -0
  157. package/cjs/Panel/index.js +0 -0
  158. package/cjs/PanelGroup/index.js +0 -0
  159. package/cjs/Picker/PickerToggle.d.ts +1 -1
  160. package/cjs/Picker/PickerToggle.js +52 -27
  161. package/cjs/Picker/types.js +0 -0
  162. package/cjs/Placeholder/Placeholder.js +0 -0
  163. package/cjs/Placeholder/index.js +0 -0
  164. package/cjs/Plaintext/index.js +0 -0
  165. package/cjs/Popover/index.js +0 -0
  166. package/cjs/Progress/Progress.js +0 -0
  167. package/cjs/Progress/index.js +0 -0
  168. package/cjs/Radio/index.js +0 -0
  169. package/cjs/RadioGroup/index.js +0 -0
  170. package/cjs/RangeSlider/index.js +0 -0
  171. package/cjs/Rate/index.js +0 -0
  172. package/cjs/Ripple/index.js +0 -0
  173. package/cjs/Row/Row.js +0 -0
  174. package/cjs/Row/index.js +0 -0
  175. package/cjs/SafeAnchor/index.js +0 -0
  176. package/cjs/Schema/Schema.js +0 -0
  177. package/cjs/Schema/index.js +0 -0
  178. package/cjs/Sidebar/index.js +0 -0
  179. package/cjs/Sidenav/SidenavBody.js +0 -0
  180. package/cjs/Sidenav/SidenavHeader.js +0 -0
  181. package/cjs/Sidenav/index.js +0 -0
  182. package/cjs/Slider/index.js +0 -0
  183. package/cjs/Steps/index.js +0 -0
  184. package/cjs/Table/index.js +0 -0
  185. package/cjs/Tag/Tag.js +0 -0
  186. package/cjs/Tag/index.js +0 -0
  187. package/cjs/TagGroup/TagGroup.js +0 -0
  188. package/cjs/TagGroup/index.js +0 -0
  189. package/cjs/Timeline/index.js +0 -0
  190. package/cjs/Toggle/index.js +0 -0
  191. package/cjs/Tooltip/index.js +0 -0
  192. package/cjs/Tree/index.js +0 -0
  193. package/cjs/TreePicker/index.js +0 -0
  194. package/cjs/Whisper/index.js +0 -0
  195. package/cjs/locales/ar_EG.js +0 -0
  196. package/cjs/locales/da_DK.js +0 -0
  197. package/cjs/locales/de_DE.js +0 -0
  198. package/cjs/locales/default.js +0 -0
  199. package/cjs/locales/en_GB.js +0 -0
  200. package/cjs/locales/en_US.js +0 -0
  201. package/cjs/locales/es_AR.js +0 -0
  202. package/cjs/locales/es_ES.js +0 -0
  203. package/cjs/locales/fi_FI.js +0 -0
  204. package/cjs/locales/it_IT.js +0 -0
  205. package/cjs/locales/ko_KR.js +0 -0
  206. package/cjs/locales/pt_BR.js +0 -0
  207. package/cjs/locales/ru_RU.js +0 -0
  208. package/cjs/locales/sv_SE.js +0 -0
  209. package/cjs/locales/zh_CN.js +0 -0
  210. package/cjs/locales/zh_TW.js +0 -0
  211. package/cjs/toaster/ToastContainer.d.ts +2 -1
  212. package/cjs/toaster/ToastContainer.js +27 -26
  213. package/cjs/toaster/toaster.d.ts +1 -1
  214. package/cjs/toaster/toaster.js +43 -13
  215. package/cjs/toaster/useToaster.d.ts +1 -1
  216. package/cjs/utils/clone.js +0 -0
  217. package/cjs/utils/events.js +0 -0
  218. package/cjs/utils/getDOMNode.js +0 -0
  219. package/cjs/utils/getSafeRegExpString.js +0 -0
  220. package/cjs/utils/guid.js +0 -0
  221. package/cjs/utils/htmlPropsUtils.js +0 -0
  222. package/cjs/utils/index.d.ts +1 -0
  223. package/cjs/utils/index.js +6 -1
  224. package/cjs/utils/isOneOf.js +0 -0
  225. package/cjs/utils/prefix.js +0 -0
  226. package/cjs/utils/render.d.ts +3 -0
  227. package/cjs/utils/render.js +49 -0
  228. package/cjs/utils/shallowEqual.js +0 -0
  229. package/cjs/utils/shallowEqualArray.js +0 -0
  230. package/cjs/utils/statusIcons.js +0 -0
  231. package/cjs/utils/stringToObject.js +0 -0
  232. package/cjs/utils/tplTransform.js +0 -0
  233. package/cjs/utils/useClassNames.js +0 -0
  234. package/cjs/utils/useEnsuredRef.js +0 -0
  235. package/cjs/utils/useEventCallback.js +0 -0
  236. package/cjs/utils/useToggleCaret.js +0 -0
  237. package/cjs/utils/useUniqueId.js +10 -2
  238. package/cjs/utils/useUpdateEffect.js +0 -0
  239. package/cjs/utils/useUpdatedRef.js +0 -0
  240. package/cjs/utils/useWillUnmount.js +0 -0
  241. package/dist/rsuite-rtl.css +1 -1
  242. package/dist/rsuite-rtl.min.css +1 -1
  243. package/dist/rsuite-rtl.min.css.map +1 -1
  244. package/dist/rsuite.css +1 -1
  245. package/dist/rsuite.js +233 -182
  246. package/dist/rsuite.js.map +1 -1
  247. package/dist/rsuite.min.css +1 -1
  248. package/dist/rsuite.min.css.map +1 -1
  249. package/dist/rsuite.min.js +1 -1
  250. package/dist/rsuite.min.js.LICENSE.txt +2 -0
  251. package/dist/rsuite.min.js.map +1 -1
  252. package/esm/@types/global.d.ts +0 -0
  253. package/esm/Affix/index.js +0 -0
  254. package/esm/Animation/Bounce.js +0 -0
  255. package/esm/Animation/Fade.js +0 -0
  256. package/esm/Animation/Slide.js +0 -0
  257. package/esm/Animation/index.js +0 -0
  258. package/esm/Animation/utils.js +0 -0
  259. package/esm/AutoComplete/AutoComplete.d.ts +3 -1
  260. package/esm/AutoComplete/AutoComplete.js +6 -2
  261. package/esm/AutoComplete/index.js +0 -0
  262. package/esm/AutoComplete/test/AutoComplete.test.d.ts +1 -0
  263. package/esm/AutoComplete/test/AutoComplete.test.js +18 -0
  264. package/esm/Avatar/index.js +0 -0
  265. package/esm/Badge/index.js +0 -0
  266. package/esm/Breadcrumb/index.js +0 -0
  267. package/esm/Button/index.js +0 -0
  268. package/esm/ButtonToolbar/ButtonToolbar.js +0 -0
  269. package/esm/ButtonToolbar/index.js +0 -0
  270. package/esm/Calendar/index.js +0 -0
  271. package/esm/Carousel/index.js +0 -0
  272. package/esm/Cascader/index.js +0 -0
  273. package/esm/CheckPicker/index.js +0 -0
  274. package/esm/CheckTreePicker/index.js +0 -0
  275. package/esm/Checkbox/index.js +0 -0
  276. package/esm/CloseButton/CloseButton.js +0 -0
  277. package/esm/CloseButton/index.js +0 -0
  278. package/esm/Col/index.js +0 -0
  279. package/esm/Container/index.js +0 -0
  280. package/esm/Content/Content.js +0 -0
  281. package/esm/Content/index.js +0 -0
  282. package/esm/CustomProvider/FormattedDate.js +0 -0
  283. package/esm/CustomProvider/index.js +0 -0
  284. package/esm/DatePicker/DatePicker.js +1 -1
  285. package/esm/DatePicker/index.js +0 -0
  286. package/esm/DateRangePicker/DateRangePicker.js +1 -1
  287. package/esm/DateRangePicker/disabledDateUtils.js +0 -0
  288. package/esm/Disclosure/Disclosure.d.ts +2 -2
  289. package/esm/Disclosure/Disclosure.js +6 -6
  290. package/esm/Disclosure/index.js +0 -0
  291. package/esm/Divider/index.js +0 -0
  292. package/esm/Drawer/index.js +0 -0
  293. package/esm/Dropdown/DropdownState.js +0 -0
  294. package/esm/Dropdown/index.js +0 -0
  295. package/esm/FlexboxGrid/index.js +0 -0
  296. package/esm/Footer/Footer.js +0 -0
  297. package/esm/Footer/index.js +0 -0
  298. package/esm/FormControl/index.js +0 -0
  299. package/esm/FormControlLabel/FormControlLabel.js +0 -0
  300. package/esm/FormControlLabel/index.js +0 -0
  301. package/esm/FormErrorMessage/FormErrorMessage.js +0 -0
  302. package/esm/FormErrorMessage/index.js +0 -0
  303. package/esm/FormGroup/index.js +0 -0
  304. package/esm/FormHelpText/index.js +0 -0
  305. package/esm/Grid/Grid.js +0 -0
  306. package/esm/Grid/index.js +0 -0
  307. package/esm/Header/Header.js +0 -0
  308. package/esm/Header/index.js +0 -0
  309. package/esm/IconButton/index.js +0 -0
  310. package/esm/Input/index.js +0 -0
  311. package/esm/InputGroup/InputGroupButton.js +0 -0
  312. package/esm/InputGroup/index.js +0 -0
  313. package/esm/InputNumber/index.js +0 -0
  314. package/esm/InputPicker/index.js +0 -0
  315. package/esm/List/index.js +0 -0
  316. package/esm/Loader/index.js +0 -0
  317. package/esm/Menu/MenuContext.js +0 -0
  318. package/esm/Menu/index.js +0 -0
  319. package/esm/Message/index.js +0 -0
  320. package/esm/Modal/ModalFooter.js +0 -0
  321. package/esm/Modal/index.js +0 -0
  322. package/esm/MultiCascader/index.js +0 -0
  323. package/esm/Nav/index.js +0 -0
  324. package/esm/Navbar/NavbarBody.js +0 -0
  325. package/esm/Navbar/NavbarBrand.js +0 -0
  326. package/esm/Navbar/NavbarDropdownMenu.js +14 -8
  327. package/esm/Navbar/NavbarHeader.js +0 -0
  328. package/esm/Notification/index.js +0 -0
  329. package/esm/Overlay/OverlayTrigger.js +44 -35
  330. package/esm/Overlay/index.js +0 -0
  331. package/esm/Pagination/index.js +0 -0
  332. package/esm/Panel/index.js +0 -0
  333. package/esm/PanelGroup/index.js +0 -0
  334. package/esm/Picker/PickerToggle.d.ts +1 -1
  335. package/esm/Picker/PickerToggle.js +52 -27
  336. package/esm/Picker/types.js +0 -0
  337. package/esm/Placeholder/Placeholder.js +0 -0
  338. package/esm/Placeholder/index.js +0 -0
  339. package/esm/Plaintext/index.js +0 -0
  340. package/esm/Popover/index.js +0 -0
  341. package/esm/Progress/Progress.js +0 -0
  342. package/esm/Progress/index.js +0 -0
  343. package/esm/Radio/index.js +0 -0
  344. package/esm/RadioGroup/index.js +0 -0
  345. package/esm/RangeSlider/index.js +0 -0
  346. package/esm/Rate/index.js +0 -0
  347. package/esm/Ripple/index.js +0 -0
  348. package/esm/Row/Row.js +0 -0
  349. package/esm/Row/index.js +0 -0
  350. package/esm/SafeAnchor/index.js +0 -0
  351. package/esm/Schema/Schema.js +0 -0
  352. package/esm/Schema/index.js +0 -0
  353. package/esm/Sidebar/index.js +0 -0
  354. package/esm/Sidenav/SidenavBody.js +0 -0
  355. package/esm/Sidenav/SidenavHeader.js +0 -0
  356. package/esm/Sidenav/index.js +0 -0
  357. package/esm/Slider/index.js +0 -0
  358. package/esm/Steps/index.js +0 -0
  359. package/esm/Table/index.js +0 -0
  360. package/esm/Tag/Tag.js +0 -0
  361. package/esm/Tag/index.js +0 -0
  362. package/esm/TagGroup/TagGroup.js +0 -0
  363. package/esm/TagGroup/index.js +0 -0
  364. package/esm/Timeline/index.js +0 -0
  365. package/esm/Toggle/index.js +0 -0
  366. package/esm/Tooltip/index.js +0 -0
  367. package/esm/Tree/index.js +0 -0
  368. package/esm/TreePicker/index.js +0 -0
  369. package/esm/Whisper/index.js +0 -0
  370. package/esm/locales/ar_EG.js +0 -0
  371. package/esm/locales/da_DK.js +0 -0
  372. package/esm/locales/de_DE.js +0 -0
  373. package/esm/locales/default.js +0 -0
  374. package/esm/locales/en_GB.js +0 -0
  375. package/esm/locales/en_US.js +0 -0
  376. package/esm/locales/es_AR.js +0 -0
  377. package/esm/locales/es_ES.js +0 -0
  378. package/esm/locales/fi_FI.js +0 -0
  379. package/esm/locales/it_IT.js +0 -0
  380. package/esm/locales/ko_KR.js +0 -0
  381. package/esm/locales/pt_BR.js +0 -0
  382. package/esm/locales/ru_RU.js +0 -0
  383. package/esm/locales/sv_SE.js +0 -0
  384. package/esm/locales/zh_CN.js +0 -0
  385. package/esm/locales/zh_TW.js +0 -0
  386. package/esm/toaster/ToastContainer.d.ts +2 -1
  387. package/esm/toaster/ToastContainer.js +28 -26
  388. package/esm/toaster/toaster.d.ts +1 -1
  389. package/esm/toaster/toaster.js +41 -13
  390. package/esm/toaster/useToaster.d.ts +1 -1
  391. package/esm/utils/clone.js +0 -0
  392. package/esm/utils/events.js +0 -0
  393. package/esm/utils/getDOMNode.js +0 -0
  394. package/esm/utils/getSafeRegExpString.js +0 -0
  395. package/esm/utils/guid.js +0 -0
  396. package/esm/utils/htmlPropsUtils.js +0 -0
  397. package/esm/utils/index.d.ts +1 -0
  398. package/esm/utils/index.js +1 -0
  399. package/esm/utils/isOneOf.js +0 -0
  400. package/esm/utils/prefix.js +0 -0
  401. package/esm/utils/render.d.ts +3 -0
  402. package/esm/utils/render.js +37 -0
  403. package/esm/utils/shallowEqual.js +0 -0
  404. package/esm/utils/shallowEqualArray.js +0 -0
  405. package/esm/utils/statusIcons.js +0 -0
  406. package/esm/utils/stringToObject.js +0 -0
  407. package/esm/utils/tplTransform.js +0 -0
  408. package/esm/utils/useClassNames.js +0 -0
  409. package/esm/utils/useEnsuredRef.js +0 -0
  410. package/esm/utils/useEventCallback.js +0 -0
  411. package/esm/utils/useToggleCaret.js +0 -0
  412. package/esm/utils/useUniqueId.js +7 -2
  413. package/esm/utils/useUpdateEffect.js +0 -0
  414. package/esm/utils/useUpdatedRef.js +0 -0
  415. package/esm/utils/useWillUnmount.js +0 -0
  416. package/package.json +2 -2
  417. package/styles/color-modes.less +0 -0
  418. package/styles/colors/light.less +0 -0
  419. package/styles/common.less +0 -0
  420. package/styles/mixins/color-modes.less +0 -0
  421. package/styles/mixins/hacks.less +0 -0
  422. package/styles/mixins/listbox.less +0 -0
  423. package/styles/mixins/menu.less +0 -0
  424. package/styles/normalize.less +0 -0
  425. package/styles/scaffolding.less +0 -0
  426. package/styles/typography.less +0 -0
  427. package/toaster/styles/animation.less +0 -0
  428. package/toaster/styles/index.less +0 -0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [5.16.4](https://github.com/rsuite/rsuite/compare/v5.16.3...v5.16.4) (2022-08-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **DatePicker:** fix issues with focus event ([#2636](https://github.com/rsuite/rsuite/issues/2636)) ([76b68aa](https://github.com/rsuite/rsuite/commit/76b68aa79dd129a210238517c279fe41b0da89ac))
6
+
1
7
  ## [5.16.3](https://github.com/rsuite/rsuite/compare/v5.16.2...v5.16.3) (2022-07-29)
2
8
 
3
9
  ### Bug Fixes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/LICENSE CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -104,6 +104,7 @@
104
104
  padding-right: 32px;
105
105
  color: var(--rs-text-primary);
106
106
  background-color: var(--rs-input-bg);
107
+ outline: none;
107
108
  }
108
109
 
109
110
  &.rs-btn-lg &-textbox {
@@ -120,7 +121,6 @@
120
121
 
121
122
  &-read-only {
122
123
  opacity: 0;
123
- pointer-events: none;
124
124
  }
125
125
  }
126
126
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { PickerComponent } from '../Picker';
3
3
  import { WithAsProps, FormControlPickerProps, TypeAttributes, ItemDataType } from '../@types/common';
4
4
  export declare type ValueType = string;
5
- export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormControlPickerProps<T, any, ItemDataType> {
5
+ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormControlPickerProps<T, any, ItemDataType | string> {
6
6
  /** Additional classes for menu */
7
7
  menuClassName?: string;
8
8
  /** The placement of component */
@@ -13,6 +13,8 @@ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormContr
13
13
  open?: boolean;
14
14
  /** Placeholder text */
15
15
  placeholder?: string;
16
+ /** The width of the menu will automatically follow the width of the input box */
17
+ menuAutoWidth?: boolean;
16
18
  /** Custom filter function to determine whether the item will be displayed */
17
19
  filterBy?: (value: string, item: ItemDataType) => boolean;
18
20
  /** Called when a option is selected */
@@ -44,6 +44,8 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
44
44
  classPrefix = _props$classPrefix === void 0 ? 'auto-complete' : _props$classPrefix,
45
45
  _props$defaultValue = props.defaultValue,
46
46
  defaultValue = _props$defaultValue === void 0 ? '' : _props$defaultValue,
47
+ _props$menuAutoWidth = props.menuAutoWidth,
48
+ menuAutoWidth = _props$menuAutoWidth === void 0 ? true : _props$menuAutoWidth,
47
49
  data = props.data,
48
50
  valueProp = props.value,
49
51
  open = props.open,
@@ -61,7 +63,7 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
61
63
  onFocus = props.onFocus,
62
64
  onBlur = props.onBlur,
63
65
  onMenuFocus = props.onMenuFocus,
64
- rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "data", "value", "open", "style", "menuClassName", "id", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
66
+ rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "menuAutoWidth", "data", "value", "open", "style", "menuClassName", "id", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
65
67
  var datalist = (0, _utils3.transformData)(data);
66
68
 
67
69
  var _useControlled = (0, _utils.useControlled)(valueProp, defaultValue),
@@ -203,7 +205,8 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
203
205
  style: styles,
204
206
  className: className,
205
207
  onKeyDown: handleKeyDownEvent,
206
- target: triggerRef
208
+ target: triggerRef,
209
+ autoWidth: menuAutoWidth
207
210
  }, renderMenu ? renderMenu(menu) : menu);
208
211
  };
209
212
 
@@ -239,6 +242,7 @@ AutoComplete.propTypes = (0, _extends2.default)({}, _utils2.animationPropTypes,
239
242
  defaultValue: _propTypes.default.string,
240
243
  className: _propTypes.default.string,
241
244
  menuClassName: _propTypes.default.string,
245
+ menuAutoWidth: _propTypes.default.bool,
242
246
  placement: _propTypes.default.oneOf(_utils.PLACEMENT),
243
247
  onFocus: _propTypes.default.func,
244
248
  onMenuFocus: _propTypes.default.func,
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _AutoComplete = _interopRequireDefault(require("../AutoComplete"));
8
+
9
+ /*#__PURE__*/
10
+ _react.default.createElement(_AutoComplete.default, {
11
+ data: ['item1', 'item2']
12
+ });
13
+
14
+ /*#__PURE__*/
15
+ _react.default.createElement(_AutoComplete.default, {
16
+ data: [{
17
+ label: 'item1',
18
+ value: 'item1'
19
+ }, {
20
+ label: 'item2',
21
+ value: 'item2'
22
+ }]
23
+ });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/Col/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -467,7 +467,7 @@ var DatePicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
467
467
  as: toggleAs,
468
468
  ref: targetRef,
469
469
  appearance: appearance,
470
- input: true,
470
+ editable: true,
471
471
  inputValue: value ? formatDate(value, formatStr) : '',
472
472
  inputPlaceholder: typeof placeholder === 'string' && placeholder ? placeholder : formatStr,
473
473
  inputMask: _utils.DateUtils.getDateMask(formatStr),
File without changes
@@ -624,7 +624,7 @@ var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, re
624
624
  as: toggleAs,
625
625
  ref: targetRef,
626
626
  appearance: appearance,
627
- input: true,
627
+ editable: true,
628
628
  inputMask: _utils.DateUtils.getDateMask(rangeFormatStr),
629
629
  inputValue: value ? getDisplayString(value, true) : '',
630
630
  inputPlaceholder: typeof placeholder === 'string' && placeholder ? placeholder : rangeFormatStr,
File without changes
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import DisclosureButton from './DisclosureButton';
3
3
  import DisclosureContent from './DisclosureContent';
4
- export declare type DisclosureTrigger = 'click' | 'mouseover';
5
- export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, 'onMouseOver' | 'onMouseOut'> {
4
+ export declare type DisclosureTrigger = 'click' | 'hover';
5
+ export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, 'onMouseEnter' | 'onMouseLeave'> {
6
6
  open: boolean;
7
7
  }
8
8
  export interface DisclosureProps {
@@ -74,7 +74,7 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
74
74
  });
75
75
  }
76
76
  });
77
- var onMouseOver = (0, _react.useCallback)(function (event) {
77
+ var onMouseEnter = (0, _react.useCallback)(function (event) {
78
78
  if (!open) {
79
79
  dispatch({
80
80
  type: _DisclosureContext.DisclosureActionTypes.Show
@@ -82,7 +82,7 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
82
82
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(true, event);
83
83
  }
84
84
  }, [open, dispatch, onToggle]);
85
- var onMouseOut = (0, _react.useCallback)(function (event) {
85
+ var onMouseLeave = (0, _react.useCallback)(function (event) {
86
86
  if (open) {
87
87
  dispatch({
88
88
  type: _DisclosureContext.DisclosureActionTypes.Hide
@@ -113,13 +113,13 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
113
113
  open: open
114
114
  };
115
115
 
116
- if (trigger.includes('mouseover')) {
117
- renderProps.onMouseOver = onMouseOver;
118
- renderProps.onMouseOut = onMouseOut;
116
+ if (trigger.includes('hover')) {
117
+ renderProps.onMouseEnter = onMouseEnter;
118
+ renderProps.onMouseLeave = onMouseLeave;
119
119
  }
120
120
 
121
121
  return renderProps;
122
- }, [open, trigger, onMouseOver, onMouseOut]);
122
+ }, [open, trigger, onMouseEnter, onMouseLeave]);
123
123
  return /*#__PURE__*/_react.default.createElement(_DisclosureContext.default.Provider, {
124
124
  value: contextValue
125
125
  }, children(renderProps, containerElementRef));
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/Grid/Grid.js CHANGED
File without changes
package/cjs/Grid/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/List/index.js CHANGED
File without changes
File without changes
File without changes
package/cjs/Menu/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/Nav/index.js CHANGED
File without changes
File without changes
File without changes
@@ -15,17 +15,17 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
- var _omit2 = _interopRequireDefault(require("lodash/omit"));
18
+ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
- var _utils = require("../utils");
20
+ var _omit2 = _interopRequireDefault(require("lodash/omit"));
21
21
 
22
- var _propTypes = _interopRequireDefault(require("prop-types"));
22
+ var _isNil = _interopRequireDefault(require("lodash/isNil"));
23
23
 
24
24
  var _AngleLeft = _interopRequireDefault(require("@rsuite/icons/legacy/AngleLeft"));
25
25
 
26
26
  var _AngleRight = _interopRequireDefault(require("@rsuite/icons/legacy/AngleRight"));
27
27
 
28
- var _useCustom2 = _interopRequireDefault(require("../utils/useCustom"));
28
+ var _utils = require("../utils");
29
29
 
30
30
  var _ = require(".");
31
31
 
@@ -68,7 +68,7 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
68
68
  openDirection = _props$openDirection === void 0 ? 'end' : _props$openDirection,
69
69
  rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["onToggle", "eventKey", "title", "classPrefix", "children", "openDirection"]);
70
70
 
71
- var _useCustom = (0, _useCustom2.default)('DropdownMenu'),
71
+ var _useCustom = (0, _utils.useCustom)('DropdownMenu'),
72
72
  rtl = _useCustom.rtl;
73
73
 
74
74
  var _useClassNames = (0, _utils.useClassNames)(classPrefix),
@@ -94,7 +94,7 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
94
94
  var Icon = rtl ? _AngleLeft.default : _AngleRight.default;
95
95
  return /*#__PURE__*/_react.default.createElement(_Disclosure.default, {
96
96
  hideOnClickOutside: true,
97
- trigger: ['click', 'mouseover'],
97
+ trigger: ['click', 'hover'],
98
98
  onToggle: function onToggle(open, event) {
99
99
  return _onToggle === null || _onToggle === void 0 ? void 0 : _onToggle(open, undefined, event);
100
100
  }
@@ -117,12 +117,18 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
117
117
  open: open,
118
118
  disabled: disabled
119
119
  }));
120
+ var dataAttributes = {
121
+ 'data-event-key': eventKey
122
+ };
123
+
124
+ if (!(0, _isNil.default)(eventKey) && typeof eventKey !== 'string') {
125
+ dataAttributes['data-event-key-type'] = typeof eventKey;
126
+ }
127
+
120
128
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
121
129
  ref: (0, _utils.mergeRefs)(buttonRef, buttonRef),
122
- className: classes,
123
- "data-event-key": eventKey,
124
- "data-event-key-type": typeof eventKey
125
- }, buttonProps), icon && /*#__PURE__*/_react.default.cloneElement(icon, {
130
+ className: classes
131
+ }, dataAttributes, buttonProps), icon && /*#__PURE__*/_react.default.cloneElement(icon, {
126
132
  className: prefix('menu-icon')
127
133
  }), title, /*#__PURE__*/_react.default.createElement(Icon, {
128
134
  className: prefix(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2.default)(["toggle-icon"])))
File without changes
File without changes