rsuite 5.20.0-beta.6 → 5.21.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 (398) 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 +10 -0
  10. package/Cascader/styles/index.less +0 -0
  11. package/CheckPicker/styles/index.less +0 -0
  12. package/CheckTreePicker/styles/index.less +0 -25
  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/Divider/styles/index.less +0 -0
  20. package/Drawer/styles/mixin.less +0 -0
  21. package/FlexboxGrid/styles/index.less +0 -0
  22. package/Footer/styles/index.less +0 -0
  23. package/Form/styles/index.less +0 -0
  24. package/FormControlLabel/styles/index.less +0 -0
  25. package/FormErrorMessage/styles/animation.less +0 -0
  26. package/FormErrorMessage/styles/index.less +0 -0
  27. package/FormGroup/styles/index.less +0 -0
  28. package/FormHelpText/styles/index.less +0 -0
  29. package/Grid/styles/grid-framework.less +0 -0
  30. package/Grid/styles/mixin.less +0 -0
  31. package/Header/styles/index.less +0 -0
  32. package/Input/styles/index.less +0 -0
  33. package/InputNumber/styles/index.less +0 -0
  34. package/InputNumber/styles/mixin.less +0 -0
  35. package/InputPicker/styles/index.less +0 -0
  36. package/LICENSE +0 -0
  37. package/List/styles/index.less +0 -0
  38. package/Loader/styles/index.less +0 -0
  39. package/Loader/styles/mixin.less +0 -0
  40. package/Message/styles/index.less +0 -0
  41. package/Message/styles/mixin.less +0 -0
  42. package/Modal/styles/animation.less +0 -0
  43. package/Notification/styles/index.less +0 -0
  44. package/Notification/styles/mixin.less +0 -0
  45. package/Pagination/styles/index.less +0 -0
  46. package/Pagination/styles/mixin.less +0 -0
  47. package/Pagination/styles/pagination-group.less +0 -0
  48. package/Panel/styles/index.less +0 -0
  49. package/Picker/styles/index.less +0 -10
  50. package/Picker/styles/mixin.less +0 -5
  51. package/Placeholder/styles/index.less +0 -0
  52. package/Popover/styles/index.less +0 -0
  53. package/Popover/styles/mixins.less +0 -0
  54. package/Progress/styles/animation.less +0 -0
  55. package/Progress/styles/index.less +0 -0
  56. package/README.md +4 -2
  57. package/Radio/styles/mixin.less +0 -0
  58. package/RadioGroup/styles/index.less +0 -0
  59. package/Rate/styles/index.less +0 -0
  60. package/Ripple/styles/index.less +0 -0
  61. package/Ripple/styles/mixins.less +0 -0
  62. package/Row/styles/index.less +0 -0
  63. package/SelectPicker/styles/index.less +0 -0
  64. package/Sidebar/styles/index.less +0 -0
  65. package/Sidenav/styles/mixin.less +0 -0
  66. package/Steps/styles/index.less +0 -0
  67. package/Table/styles/mixin.less +0 -0
  68. package/Tag/styles/index.less +0 -0
  69. package/TagInput/styles/index.less +0 -0
  70. package/TagPicker/styles/index.less +0 -0
  71. package/Timeline/styles/index.less +0 -0
  72. package/Timeline/styles/mixin.less +0 -0
  73. package/Tooltip/styles/mixins.less +0 -0
  74. package/TreePicker/styles/index.less +0 -19
  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/index.js +0 -0
  85. package/cjs/Avatar/index.js +0 -0
  86. package/cjs/Badge/index.js +0 -0
  87. package/cjs/Breadcrumb/index.js +0 -0
  88. package/cjs/Button/index.js +0 -0
  89. package/cjs/ButtonToolbar/ButtonToolbar.js +0 -0
  90. package/cjs/ButtonToolbar/index.js +0 -0
  91. package/cjs/Carousel/index.js +0 -0
  92. package/cjs/Cascader/index.js +0 -0
  93. package/cjs/CheckPicker/index.js +0 -0
  94. package/cjs/CheckTreePicker/CheckTreePicker.js +1 -3
  95. package/cjs/CheckTreePicker/index.js +0 -0
  96. package/cjs/Checkbox/index.js +0 -0
  97. package/cjs/CloseButton/CloseButton.js +0 -0
  98. package/cjs/CloseButton/index.js +0 -0
  99. package/cjs/Col/index.js +0 -0
  100. package/cjs/Container/index.js +0 -0
  101. package/cjs/Content/Content.js +0 -0
  102. package/cjs/Content/index.js +0 -0
  103. package/cjs/CustomProvider/CustomProvider.d.ts +1 -108
  104. package/cjs/CustomProvider/CustomProvider.js +2 -5
  105. package/cjs/CustomProvider/FormattedDate.js +0 -0
  106. package/cjs/CustomProvider/index.d.ts +2 -2
  107. package/cjs/CustomProvider/index.js +0 -1
  108. package/cjs/DatePicker/index.js +0 -0
  109. package/cjs/DateRangePicker/DateRangePicker.js +5 -5
  110. package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
  111. package/cjs/Disclosure/index.js +0 -0
  112. package/cjs/Divider/index.js +0 -0
  113. package/cjs/Drawer/index.js +0 -0
  114. package/cjs/Dropdown/DropdownState.js +0 -0
  115. package/cjs/Dropdown/index.js +0 -0
  116. package/cjs/FlexboxGrid/index.js +0 -0
  117. package/cjs/Footer/Footer.js +0 -0
  118. package/cjs/Footer/index.js +0 -0
  119. package/cjs/FormControl/index.js +0 -0
  120. package/cjs/FormControlLabel/FormControlLabel.js +0 -0
  121. package/cjs/FormControlLabel/index.js +0 -0
  122. package/cjs/FormErrorMessage/FormErrorMessage.js +0 -0
  123. package/cjs/FormErrorMessage/index.js +0 -0
  124. package/cjs/FormGroup/index.js +0 -0
  125. package/cjs/FormHelpText/index.js +0 -0
  126. package/cjs/Grid/Grid.js +0 -0
  127. package/cjs/Grid/index.js +0 -0
  128. package/cjs/Header/Header.js +0 -0
  129. package/cjs/Header/index.js +0 -0
  130. package/cjs/IconButton/index.js +0 -0
  131. package/cjs/Input/index.js +0 -0
  132. package/cjs/InputGroup/InputGroupButton.js +0 -0
  133. package/cjs/InputGroup/index.js +0 -0
  134. package/cjs/InputNumber/index.js +0 -0
  135. package/cjs/InputPicker/index.js +0 -0
  136. package/cjs/List/index.js +0 -0
  137. package/cjs/Loader/index.js +0 -0
  138. package/cjs/Menu/MenuContext.js +0 -0
  139. package/cjs/Menu/index.js +0 -0
  140. package/cjs/Message/index.js +0 -0
  141. package/cjs/Modal/ModalBody.js +18 -17
  142. package/cjs/Modal/ModalFooter.js +0 -0
  143. package/cjs/Modal/index.js +0 -0
  144. package/cjs/MultiCascader/index.js +0 -0
  145. package/cjs/Nav/index.js +0 -0
  146. package/cjs/Navbar/NavbarBody.js +0 -0
  147. package/cjs/Navbar/NavbarBrand.js +0 -0
  148. package/cjs/Navbar/NavbarHeader.js +0 -0
  149. package/cjs/Notification/index.js +0 -0
  150. package/cjs/Overlay/index.js +0 -0
  151. package/cjs/Pagination/index.js +0 -0
  152. package/cjs/Panel/index.js +0 -0
  153. package/cjs/PanelGroup/index.js +0 -0
  154. package/cjs/Picker/DropdownMenu.js +1 -3
  155. package/cjs/Picker/PickerToggleTrigger.js +11 -10
  156. package/cjs/Placeholder/Placeholder.js +0 -0
  157. package/cjs/Placeholder/index.js +0 -0
  158. package/cjs/Plaintext/index.js +0 -0
  159. package/cjs/Popover/index.js +0 -0
  160. package/cjs/Progress/Progress.js +0 -0
  161. package/cjs/Progress/index.js +0 -0
  162. package/cjs/Radio/index.js +0 -0
  163. package/cjs/RadioGroup/index.js +0 -0
  164. package/cjs/RangeSlider/index.js +0 -0
  165. package/cjs/Rate/index.js +0 -0
  166. package/cjs/Ripple/index.js +0 -0
  167. package/cjs/Row/Row.js +0 -0
  168. package/cjs/Row/index.js +0 -0
  169. package/cjs/SafeAnchor/index.js +0 -0
  170. package/cjs/Schema/Schema.js +0 -0
  171. package/cjs/Schema/index.js +0 -0
  172. package/cjs/Sidebar/index.js +0 -0
  173. package/cjs/Sidenav/SidenavBody.js +0 -0
  174. package/cjs/Sidenav/SidenavHeader.js +0 -0
  175. package/cjs/Sidenav/index.js +0 -0
  176. package/cjs/Slider/index.js +0 -0
  177. package/cjs/Steps/index.js +0 -0
  178. package/cjs/Table/index.js +0 -0
  179. package/cjs/Tag/Tag.js +0 -0
  180. package/cjs/Tag/index.js +0 -0
  181. package/cjs/TagGroup/TagGroup.js +0 -0
  182. package/cjs/TagGroup/index.js +0 -0
  183. package/cjs/Timeline/index.js +0 -0
  184. package/cjs/Toggle/index.js +0 -0
  185. package/cjs/Tooltip/index.js +0 -0
  186. package/cjs/Tree/index.js +0 -0
  187. package/cjs/TreePicker/TreePicker.js +1 -3
  188. package/cjs/TreePicker/index.js +0 -0
  189. package/cjs/Whisper/Whisper.js +11 -10
  190. package/cjs/Whisper/index.js +0 -0
  191. package/cjs/locales/ar_EG.js +0 -0
  192. package/cjs/locales/da_DK.js +0 -0
  193. package/cjs/locales/de_DE.js +0 -0
  194. package/cjs/locales/default.js +0 -0
  195. package/cjs/locales/en_GB.js +0 -0
  196. package/cjs/locales/en_US.js +0 -0
  197. package/cjs/locales/es_AR.js +0 -0
  198. package/cjs/locales/es_ES.js +0 -0
  199. package/cjs/locales/fi_FI.js +0 -0
  200. package/cjs/locales/it_IT.js +0 -0
  201. package/cjs/locales/ko_KR.js +0 -0
  202. package/cjs/locales/pt_BR.js +0 -0
  203. package/cjs/locales/ru_RU.js +0 -0
  204. package/cjs/locales/sv_SE.js +0 -0
  205. package/cjs/locales/zh_CN.js +0 -0
  206. package/cjs/locales/zh_TW.js +0 -0
  207. package/cjs/utils/clone.js +0 -0
  208. package/cjs/utils/events.js +0 -0
  209. package/cjs/utils/getDOMNode.js +0 -0
  210. package/cjs/utils/getSafeRegExpString.js +0 -0
  211. package/cjs/utils/guid.js +0 -0
  212. package/cjs/utils/htmlPropsUtils.js +0 -0
  213. package/cjs/utils/isOneOf.js +0 -0
  214. package/cjs/utils/prefix.js +0 -0
  215. package/cjs/utils/shallowEqual.js +0 -0
  216. package/cjs/utils/shallowEqualArray.js +0 -0
  217. package/cjs/utils/statusIcons.js +0 -0
  218. package/cjs/utils/stringToObject.js +0 -0
  219. package/cjs/utils/tplTransform.js +0 -0
  220. package/cjs/utils/useClassNames.js +0 -0
  221. package/cjs/utils/useEnsuredRef.js +0 -0
  222. package/cjs/utils/useEventCallback.js +0 -0
  223. package/cjs/utils/useToggleCaret.js +0 -0
  224. package/cjs/utils/useUpdateEffect.js +0 -0
  225. package/cjs/utils/useUpdatedRef.js +0 -0
  226. package/cjs/utils/useWillUnmount.js +0 -0
  227. package/dist/rsuite-rtl.css +0 -67
  228. package/dist/rsuite-rtl.min.css +1 -1
  229. package/dist/rsuite-rtl.min.css.map +1 -1
  230. package/dist/rsuite.css +0 -67
  231. package/dist/rsuite.js +178 -178
  232. package/dist/rsuite.min.css +1 -1
  233. package/dist/rsuite.min.css.map +1 -1
  234. package/dist/rsuite.min.js +1 -1
  235. package/dist/rsuite.min.js.map +1 -1
  236. package/esm/@types/global.d.ts +0 -0
  237. package/esm/Affix/index.js +0 -0
  238. package/esm/Animation/Bounce.js +0 -0
  239. package/esm/Animation/Fade.js +0 -0
  240. package/esm/Animation/Slide.js +0 -0
  241. package/esm/Animation/index.js +0 -0
  242. package/esm/Animation/utils.js +0 -0
  243. package/esm/AutoComplete/index.js +0 -0
  244. package/esm/Avatar/index.js +0 -0
  245. package/esm/Badge/index.js +0 -0
  246. package/esm/Breadcrumb/index.js +0 -0
  247. package/esm/Button/index.js +0 -0
  248. package/esm/ButtonToolbar/ButtonToolbar.js +0 -0
  249. package/esm/ButtonToolbar/index.js +0 -0
  250. package/esm/Carousel/index.js +0 -0
  251. package/esm/Cascader/index.js +0 -0
  252. package/esm/CheckPicker/index.js +0 -0
  253. package/esm/CheckTreePicker/CheckTreePicker.js +1 -3
  254. package/esm/CheckTreePicker/index.js +0 -0
  255. package/esm/Checkbox/index.js +0 -0
  256. package/esm/CloseButton/CloseButton.js +0 -0
  257. package/esm/CloseButton/index.js +0 -0
  258. package/esm/Col/index.js +0 -0
  259. package/esm/Container/index.js +0 -0
  260. package/esm/Content/Content.js +0 -0
  261. package/esm/Content/index.js +0 -0
  262. package/esm/CustomProvider/CustomProvider.d.ts +1 -108
  263. package/esm/CustomProvider/CustomProvider.js +2 -4
  264. package/esm/CustomProvider/FormattedDate.js +0 -0
  265. package/esm/CustomProvider/index.d.ts +2 -2
  266. package/esm/CustomProvider/index.js +2 -2
  267. package/esm/DatePicker/index.js +0 -0
  268. package/esm/DateRangePicker/DateRangePicker.js +5 -5
  269. package/esm/DateRangePicker/disabledDateUtils.js +0 -0
  270. package/esm/Disclosure/index.js +0 -0
  271. package/esm/Divider/index.js +0 -0
  272. package/esm/Drawer/index.js +0 -0
  273. package/esm/Dropdown/DropdownState.js +0 -0
  274. package/esm/Dropdown/index.js +0 -0
  275. package/esm/FlexboxGrid/index.js +0 -0
  276. package/esm/Footer/Footer.js +0 -0
  277. package/esm/Footer/index.js +0 -0
  278. package/esm/FormControl/index.js +0 -0
  279. package/esm/FormControlLabel/FormControlLabel.js +0 -0
  280. package/esm/FormControlLabel/index.js +0 -0
  281. package/esm/FormErrorMessage/FormErrorMessage.js +0 -0
  282. package/esm/FormErrorMessage/index.js +0 -0
  283. package/esm/FormGroup/index.js +0 -0
  284. package/esm/FormHelpText/index.js +0 -0
  285. package/esm/Grid/Grid.js +0 -0
  286. package/esm/Grid/index.js +0 -0
  287. package/esm/Header/Header.js +0 -0
  288. package/esm/Header/index.js +0 -0
  289. package/esm/IconButton/index.js +0 -0
  290. package/esm/Input/index.js +0 -0
  291. package/esm/InputGroup/InputGroupButton.js +0 -0
  292. package/esm/InputGroup/index.js +0 -0
  293. package/esm/InputNumber/index.js +0 -0
  294. package/esm/InputPicker/index.js +0 -0
  295. package/esm/List/index.js +0 -0
  296. package/esm/Loader/index.js +0 -0
  297. package/esm/Menu/MenuContext.js +0 -0
  298. package/esm/Menu/index.js +0 -0
  299. package/esm/Message/index.js +0 -0
  300. package/esm/Modal/ModalBody.js +16 -17
  301. package/esm/Modal/ModalFooter.js +0 -0
  302. package/esm/Modal/index.js +0 -0
  303. package/esm/MultiCascader/index.js +0 -0
  304. package/esm/Nav/index.js +0 -0
  305. package/esm/Navbar/NavbarBody.js +0 -0
  306. package/esm/Navbar/NavbarBrand.js +0 -0
  307. package/esm/Navbar/NavbarHeader.js +0 -0
  308. package/esm/Notification/index.js +0 -0
  309. package/esm/Overlay/index.js +0 -0
  310. package/esm/Pagination/index.js +0 -0
  311. package/esm/Panel/index.js +0 -0
  312. package/esm/PanelGroup/index.js +0 -0
  313. package/esm/Picker/DropdownMenu.js +1 -3
  314. package/esm/Picker/PickerToggleTrigger.js +10 -11
  315. package/esm/Placeholder/Placeholder.js +0 -0
  316. package/esm/Placeholder/index.js +0 -0
  317. package/esm/Plaintext/index.js +0 -0
  318. package/esm/Popover/index.js +0 -0
  319. package/esm/Progress/Progress.js +0 -0
  320. package/esm/Progress/index.js +0 -0
  321. package/esm/Radio/index.js +0 -0
  322. package/esm/RadioGroup/index.js +0 -0
  323. package/esm/RangeSlider/index.js +0 -0
  324. package/esm/Rate/index.js +0 -0
  325. package/esm/Ripple/index.js +0 -0
  326. package/esm/Row/Row.js +0 -0
  327. package/esm/Row/index.js +0 -0
  328. package/esm/SafeAnchor/index.js +0 -0
  329. package/esm/Schema/Schema.js +0 -0
  330. package/esm/Schema/index.js +0 -0
  331. package/esm/Sidebar/index.js +0 -0
  332. package/esm/Sidenav/SidenavBody.js +0 -0
  333. package/esm/Sidenav/SidenavHeader.js +0 -0
  334. package/esm/Sidenav/index.js +0 -0
  335. package/esm/Slider/index.js +0 -0
  336. package/esm/Steps/index.js +0 -0
  337. package/esm/Table/index.js +0 -0
  338. package/esm/Tag/Tag.js +0 -0
  339. package/esm/Tag/index.js +0 -0
  340. package/esm/TagGroup/TagGroup.js +0 -0
  341. package/esm/TagGroup/index.js +0 -0
  342. package/esm/Timeline/index.js +0 -0
  343. package/esm/Toggle/index.js +0 -0
  344. package/esm/Tooltip/index.js +0 -0
  345. package/esm/Tree/index.js +0 -0
  346. package/esm/TreePicker/TreePicker.js +1 -3
  347. package/esm/TreePicker/index.js +0 -0
  348. package/esm/Whisper/Whisper.js +10 -11
  349. package/esm/Whisper/index.js +0 -0
  350. package/esm/locales/ar_EG.js +0 -0
  351. package/esm/locales/da_DK.js +0 -0
  352. package/esm/locales/de_DE.js +0 -0
  353. package/esm/locales/default.js +0 -0
  354. package/esm/locales/en_GB.js +0 -0
  355. package/esm/locales/en_US.js +0 -0
  356. package/esm/locales/es_AR.js +0 -0
  357. package/esm/locales/es_ES.js +0 -0
  358. package/esm/locales/fi_FI.js +0 -0
  359. package/esm/locales/it_IT.js +0 -0
  360. package/esm/locales/ko_KR.js +0 -0
  361. package/esm/locales/pt_BR.js +0 -0
  362. package/esm/locales/ru_RU.js +0 -0
  363. package/esm/locales/sv_SE.js +0 -0
  364. package/esm/locales/zh_CN.js +0 -0
  365. package/esm/locales/zh_TW.js +0 -0
  366. package/esm/utils/clone.js +0 -0
  367. package/esm/utils/events.js +0 -0
  368. package/esm/utils/getDOMNode.js +0 -0
  369. package/esm/utils/getSafeRegExpString.js +0 -0
  370. package/esm/utils/guid.js +0 -0
  371. package/esm/utils/htmlPropsUtils.js +0 -0
  372. package/esm/utils/isOneOf.js +0 -0
  373. package/esm/utils/prefix.js +0 -0
  374. package/esm/utils/shallowEqual.js +0 -0
  375. package/esm/utils/shallowEqualArray.js +0 -0
  376. package/esm/utils/statusIcons.js +0 -0
  377. package/esm/utils/stringToObject.js +0 -0
  378. package/esm/utils/tplTransform.js +0 -0
  379. package/esm/utils/useClassNames.js +0 -0
  380. package/esm/utils/useEnsuredRef.js +0 -0
  381. package/esm/utils/useEventCallback.js +0 -0
  382. package/esm/utils/useToggleCaret.js +0 -0
  383. package/esm/utils/useUpdateEffect.js +0 -0
  384. package/esm/utils/useUpdatedRef.js +0 -0
  385. package/esm/utils/useWillUnmount.js +0 -0
  386. package/package.json +1 -1
  387. package/styles/color-modes.less +0 -0
  388. package/styles/colors/light.less +0 -0
  389. package/styles/common.less +0 -0
  390. package/styles/mixins/color-modes.less +0 -0
  391. package/styles/mixins/hacks.less +0 -0
  392. package/styles/mixins/listbox.less +0 -5
  393. package/styles/mixins/menu.less +0 -0
  394. package/styles/normalize.less +0 -0
  395. package/styles/scaffolding.less +0 -0
  396. package/styles/typography.less +0 -0
  397. package/toaster/styles/animation.less +0 -0
  398. 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
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
@@ -671,11 +671,9 @@ var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
671
671
  height: 'auto'
672
672
  }
673
673
  }, function (_ref5) {
674
- var height = _ref5.height,
675
- width = _ref5.width;
674
+ var height = _ref5.height;
676
675
  return /*#__PURE__*/React.createElement(List, _extends({
677
676
  ref: listRef,
678
- width: width,
679
677
  height: height,
680
678
  itemSize: itemSize,
681
679
  itemCount: formattedNodes.length,
File without changes
File without changes
File without changes
File without changes
package/esm/Col/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -156,113 +156,6 @@ declare const CustomContext: React.Context<CustomProviderProps<{
156
156
  off: string;
157
157
  } | undefined;
158
158
  }>>;
159
- declare const Consumer: React.Consumer<CustomProviderProps<{
160
- common?: {
161
- loading: string;
162
- emptyMessage: string;
163
- } | undefined;
164
- Plaintext?: {
165
- unfilled: string;
166
- notSelected: string;
167
- notUploaded: string;
168
- } | undefined;
169
- Pagination?: {
170
- more: string;
171
- prev: string;
172
- next: string;
173
- first: string;
174
- last: string;
175
- limit: string;
176
- total: string;
177
- skip: string;
178
- } | undefined;
179
- Calendar?: {
180
- sunday: string;
181
- monday: string;
182
- tuesday: string;
183
- wednesday: string;
184
- thursday: string;
185
- friday: string;
186
- saturday: string;
187
- ok: string;
188
- today: string;
189
- yesterday: string;
190
- hours: string;
191
- minutes: string;
192
- seconds: string;
193
- formattedMonthPattern: string;
194
- formattedDayPattern: string;
195
- dateLocale: any;
196
- } | undefined;
197
- DatePicker?: {
198
- sunday: string;
199
- monday: string;
200
- tuesday: string;
201
- wednesday: string;
202
- thursday: string;
203
- friday: string;
204
- saturday: string;
205
- ok: string;
206
- today: string;
207
- yesterday: string;
208
- hours: string;
209
- minutes: string;
210
- seconds: string;
211
- formattedMonthPattern: string;
212
- formattedDayPattern: string;
213
- dateLocale: any;
214
- } | undefined;
215
- DateRangePicker?: {
216
- last7Days: string;
217
- sunday: string;
218
- monday: string;
219
- tuesday: string;
220
- wednesday: string;
221
- thursday: string;
222
- friday: string;
223
- saturday: string;
224
- ok: string;
225
- today: string;
226
- yesterday: string;
227
- hours: string;
228
- minutes: string;
229
- seconds: string;
230
- formattedMonthPattern: string;
231
- formattedDayPattern: string;
232
- dateLocale: any;
233
- } | undefined;
234
- Picker?: {
235
- noResultsText: string;
236
- placeholder: string;
237
- searchPlaceholder: string;
238
- checkAll: string;
239
- } | undefined;
240
- InputPicker?: {
241
- newItem: string;
242
- /**
243
- * A Map of toast containers
244
- */
245
- createOption: string;
246
- } | undefined;
247
- Uploader?: {
248
- inited: string;
249
- progress: string;
250
- error: string;
251
- complete: string;
252
- emptyFile: string;
253
- upload: string;
254
- } | undefined;
255
- CloseButton?: {
256
- closeLabel: string;
257
- } | undefined;
258
- Breadcrumb?: {
259
- expandText: string;
260
- } | undefined;
261
- Toggle?: {
262
- on: string;
263
- off: string;
264
- } | undefined;
265
- }>>;
266
159
  declare const CustomProvider: (props: Omit<CustomProviderProps, 'toasters'>) => JSX.Element;
267
- export { CustomContext, Consumer as CustomConsumer };
160
+ export { CustomContext };
268
161
  export default CustomProvider;
@@ -6,8 +6,6 @@ import { addClass, removeClass, canUseDOM } from '../DOMHelper';
6
6
  import ToastContainer, { toastPlacements } from '../toaster/ToastContainer';
7
7
  import { usePortal } from '../utils';
8
8
  var CustomContext = /*#__PURE__*/React.createContext({});
9
- var Consumer = CustomContext.Consumer,
10
- Provider = CustomContext.Provider;
11
9
  var themes = ['light', 'dark', 'high-contrast'];
12
10
 
13
11
  var CustomProvider = function CustomProvider(props) {
@@ -44,7 +42,7 @@ var CustomProvider = function CustomProvider(props) {
44
42
  });
45
43
  }
46
44
  }, [classPrefix, theme]);
47
- return /*#__PURE__*/React.createElement(Provider, {
45
+ return /*#__PURE__*/React.createElement(CustomContext.Provider, {
48
46
  value: value
49
47
  }, children, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement("div", {
50
48
  className: "rs-toast-provider"
@@ -59,5 +57,5 @@ var CustomProvider = function CustomProvider(props) {
59
57
  }))));
60
58
  };
61
59
 
62
- export { CustomContext, Consumer as CustomConsumer };
60
+ export { CustomContext };
63
61
  export default CustomProvider;
File without changes
@@ -1,5 +1,5 @@
1
- import CustomProvider, { CustomContext, CustomConsumer } from './CustomProvider';
1
+ import CustomProvider, { CustomContext } from './CustomProvider';
2
2
  import FormattedDate from './FormattedDate';
3
- export { CustomContext, CustomConsumer, FormattedDate };
3
+ export { CustomContext, FormattedDate };
4
4
  export type { CustomProviderProps } from './CustomProvider';
5
5
  export default CustomProvider;
@@ -1,4 +1,4 @@
1
- import CustomProvider, { CustomContext, CustomConsumer } from './CustomProvider';
1
+ import CustomProvider, { CustomContext } from './CustomProvider';
2
2
  import FormattedDate from './FormattedDate';
3
- export { CustomContext, CustomConsumer, FormattedDate };
3
+ export { CustomContext, FormattedDate };
4
4
  export default CustomProvider;
File without changes
@@ -138,17 +138,17 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
138
138
  * If params `value` is not passed, it defaults to [new Date(), addMonth(new Date(), 1)].
139
139
  */
140
140
 
141
- var updateCalendarDateRange = useCallback(function (value, calendarKey) {
142
- var nextValue = value;
141
+ var updateCalendarDateRange = useCallback(function (selectedDate, calendarKey) {
142
+ var nextValue = selectedDate;
143
143
  var shouldRenderTime = DateUtils.shouldRenderTime,
144
144
  getHours = DateUtils.getHours,
145
145
  getMinutes = DateUtils.getMinutes,
146
146
  getSeconds = DateUtils.getSeconds,
147
147
  set = DateUtils.set;
148
148
 
149
- if (shouldRenderTime(formatStr) && calendarKey === undefined && (value === null || value === void 0 ? void 0 : value.length) === 1 && (defaultCalendarValue === null || defaultCalendarValue === void 0 ? void 0 : defaultCalendarValue.length) === 2) {
150
- var calendarEndDate = (calendarDate === null || calendarDate === void 0 ? void 0 : calendarDate[1]) || defaultCalendarValue[1];
151
- var _startDate = value[0]; // When updating the start date, the time of the end date should keep the time set by the user by default.
149
+ if (shouldRenderTime(formatStr) && calendarKey === undefined && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.length) === 1) {
150
+ var calendarEndDate = (calendarDate === null || calendarDate === void 0 ? void 0 : calendarDate[1]) || (defaultCalendarValue === null || defaultCalendarValue === void 0 ? void 0 : defaultCalendarValue[1]);
151
+ var _startDate = selectedDate[0]; // When updating the start date, the time of the end date should keep the time set by the user by default.
152
152
 
153
153
  var _endDate = set(addMonths(_startDate, 1), {
154
154
  hours: getHours(calendarEndDate),
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/esm/Grid/Grid.js CHANGED
File without changes
package/esm/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/esm/List/index.js CHANGED
File without changes
File without changes
File without changes
package/esm/Menu/index.js CHANGED
File without changes
File without changes
@@ -1,12 +1,14 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- import React from 'react';
3
+ import React, { useContext } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { useClassNames } from '../utils';
6
6
  import { ModalContext } from './ModalContext';
7
7
  import IconButton from '../IconButton';
8
8
  import Close from '@rsuite/icons/Close';
9
9
  var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
+ var _context$getBodyStyle;
11
+
10
12
  var _props$as = props.as,
11
13
  Component = _props$as === void 0 ? 'div' : _props$as,
12
14
  _props$classPrefix = props.classPrefix,
@@ -22,22 +24,19 @@ var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
22
24
  prefix = _useClassNames.prefix;
23
25
 
24
26
  var classes = merge(className, withClassPrefix());
25
- return /*#__PURE__*/React.createElement(ModalContext.Consumer, null, function (context) {
26
- var _context$getBodyStyle;
27
-
28
- var bodyStyles = context === null || context === void 0 ? void 0 : (_context$getBodyStyle = context.getBodyStyles) === null || _context$getBodyStyle === void 0 ? void 0 : _context$getBodyStyle.call(context);
29
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
30
- ref: ref,
31
- style: _extends({}, bodyStyles, style),
32
- className: classes
33
- }), (context === null || context === void 0 ? void 0 : context.isDrawer) && /*#__PURE__*/React.createElement(IconButton, {
34
- icon: /*#__PURE__*/React.createElement(Close, null),
35
- appearance: "subtle",
36
- size: "sm",
37
- className: prefix('close'),
38
- onClick: context === null || context === void 0 ? void 0 : context.onModalClose
39
- }), children);
40
- });
27
+ var context = useContext(ModalContext);
28
+ var bodyStyles = context === null || context === void 0 ? void 0 : (_context$getBodyStyle = context.getBodyStyles) === null || _context$getBodyStyle === void 0 ? void 0 : _context$getBodyStyle.call(context);
29
+ return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
30
+ ref: ref,
31
+ style: _extends({}, bodyStyles, style),
32
+ className: classes
33
+ }), (context === null || context === void 0 ? void 0 : context.isDrawer) && /*#__PURE__*/React.createElement(IconButton, {
34
+ icon: /*#__PURE__*/React.createElement(Close, null),
35
+ appearance: "subtle",
36
+ size: "sm",
37
+ className: prefix('close'),
38
+ onClick: context === null || context === void 0 ? void 0 : context.onModalClose
39
+ }), children);
41
40
  });
42
41
  ModalBody.displayName = 'ModalBody';
43
42
  ModalBody.propTypes = {
File without changes
File without changes
File without changes
package/esm/Nav/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
@@ -210,12 +210,10 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
210
210
  height: 'auto'
211
211
  }
212
212
  }, function (_ref2) {
213
- var height = _ref2.height,
214
- width = _ref2.width;
213
+ var height = _ref2.height;
215
214
  return /*#__PURE__*/React.createElement(List, _extends({
216
215
  as: VariableSizeList,
217
216
  ref: mergeRefs(listRef, virtualizedListRef),
218
- width: width,
219
217
  height: height || maxHeight,
220
218
  itemCount: rowCount,
221
219
  itemData: filteredItems,
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- import React from 'react';
3
+ import React, { useContext } from 'react';
4
4
  import pick from 'lodash/pick';
5
5
  import OverlayTrigger from '../Overlay/OverlayTrigger';
6
6
  import { placementPolyfill } from '../utils';
7
- import { CustomConsumer } from '../CustomProvider';
7
+ import { CustomContext } from '../CustomProvider';
8
8
  export var omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'defaultOpen', 'onHide', 'container', 'containerPadding', 'preventOverflow'];
9
9
  export var pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading']);
10
10
  var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -16,15 +16,14 @@ var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
16
  rest = _objectWithoutPropertiesLoose(props, ["pickerProps", "speaker", "placement", "trigger"]);
17
17
 
18
18
  var pickerTriggerProps = pick(pickerProps, pickTriggerPropKeys);
19
- return /*#__PURE__*/React.createElement(CustomConsumer, null, function (context) {
20
- return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, pickerTriggerProps, {
21
- disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,
22
- ref: ref,
23
- trigger: trigger,
24
- placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
25
- speaker: speaker
26
- }));
27
- });
19
+ var context = useContext(CustomContext);
20
+ return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, pickerTriggerProps, {
21
+ disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,
22
+ ref: ref,
23
+ trigger: trigger,
24
+ placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
25
+ speaker: speaker
26
+ }));
28
27
  });
29
28
  PickerToggleTrigger.displayName = 'PickerToggleTrigger';
30
29
  export default PickerToggleTrigger;
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/esm/Rate/index.js CHANGED
File without changes
File without changes
package/esm/Row/Row.js CHANGED
File without changes
package/esm/Row/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
File without changes
File without changes
package/esm/Tag/Tag.js CHANGED
File without changes
package/esm/Tag/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/esm/Tree/index.js CHANGED
File without changes
@@ -633,11 +633,9 @@ var TreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
633
633
  height: 'auto'
634
634
  }
635
635
  }, function (_ref5) {
636
- var height = _ref5.height,
637
- width = _ref5.width;
636
+ var height = _ref5.height;
638
637
  return /*#__PURE__*/React.createElement(List, _extends({
639
638
  ref: listRef,
640
- width: width,
641
639
  height: height,
642
640
  itemSize: itemSize,
643
641
  itemCount: formattedNodes.length,
File without changes
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- import React from 'react';
3
+ import React, { useContext } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import OverlayTrigger from '../Overlay/OverlayTrigger';
6
6
  import { createChainedFunction, placementPolyfill, PLACEMENT } from '../utils';
7
- import { CustomConsumer } from '../CustomProvider';
7
+ import { CustomContext } from '../CustomProvider';
8
8
  var Whisper = /*#__PURE__*/React.forwardRef(function (props, ref) {
9
9
  var onOpen = props.onOpen,
10
10
  onClose = props.onClose,
@@ -15,15 +15,14 @@ var Whisper = /*#__PURE__*/React.forwardRef(function (props, ref) {
15
15
  preventOverflow = props.preventOverflow,
16
16
  rest = _objectWithoutPropertiesLoose(props, ["onOpen", "onClose", "onEntered", "onExited", "placement", "preventOverflow"]);
17
17
 
18
- return /*#__PURE__*/React.createElement(CustomConsumer, null, function (context) {
19
- return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, {
20
- ref: ref,
21
- preventOverflow: preventOverflow,
22
- placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
23
- onEntered: createChainedFunction(onOpen, onEntered),
24
- onExited: createChainedFunction(onClose, onExited)
25
- }));
26
- });
18
+ var context = useContext(CustomContext);
19
+ return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, {
20
+ ref: ref,
21
+ preventOverflow: preventOverflow,
22
+ placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
23
+ onEntered: createChainedFunction(onOpen, onEntered),
24
+ onExited: createChainedFunction(onClose, onExited)
25
+ }));
27
26
  });
28
27
  Whisper.displayName = 'Whisper';
29
28
  Whisper.propTypes = {
File without changes
File without changes
File without changes
File without changes
File without changes