rsuite 5.79.0-canary-2025032417 → 5.79.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 (401) hide show
  1. package/Accordion/styles/index.css +0 -0
  2. package/Accordion/styles/index.less +0 -0
  3. package/Animation/styles/animation.less +0 -0
  4. package/Animation/styles/bounce.less +0 -0
  5. package/Animation/styles/collapse.less +0 -0
  6. package/Animation/styles/fade.less +0 -0
  7. package/Animation/styles/index.css +0 -0
  8. package/Animation/styles/index.less +0 -0
  9. package/Animation/styles/mixin.less +0 -0
  10. package/Animation/styles/slide.less +0 -0
  11. package/Animation/styles/variables.less +0 -0
  12. package/CHANGELOG.md +33 -0
  13. package/CascadeTree/styles/search.less +0 -0
  14. package/Cascader/styles/index.css +0 -0
  15. package/Cascader/styles/index.less +0 -0
  16. package/Container/stories/styles.less +0 -0
  17. package/Container/styles/index.css +0 -0
  18. package/Container/styles/index.less +0 -0
  19. package/Content/styles/index.css +0 -0
  20. package/Content/styles/index.less +0 -0
  21. package/DateInput/styles/index.css +0 -0
  22. package/DateInput/styles/index.less +0 -0
  23. package/DatePicker/styles/mixin.less +0 -0
  24. package/DateRangeInput/styles/index.css +0 -0
  25. package/DateRangeInput/styles/index.less +0 -0
  26. package/Drawer/styles/mixin.less +0 -0
  27. package/Footer/styles/index.css +0 -0
  28. package/Footer/styles/index.less +0 -0
  29. package/Header/styles/index.css +0 -0
  30. package/Header/styles/index.less +0 -0
  31. package/HeadingGroup/styles/index.css +0 -0
  32. package/HeadingGroup/styles/index.less +0 -0
  33. package/InputNumber/styles/mixin.less +0 -0
  34. package/InputPicker/styles/mixin.less +0 -0
  35. package/LICENSE +0 -0
  36. package/Modal/styles/animation.less +0 -0
  37. package/Pagination/styles/mixin.less +0 -0
  38. package/Placeholder/styles/mixin.less +0 -0
  39. package/Progress/styles/animation.less +0 -0
  40. package/README.md +3 -3
  41. package/RadioTileGroup/styles/index.css +0 -0
  42. package/RadioTileGroup/styles/index.less +0 -0
  43. package/RangeSlider/styles/index.css +0 -0
  44. package/RangeSlider/styles/index.less +0 -0
  45. package/Table/styles/mixin.less +0 -0
  46. package/Tabs/styles/index.css +0 -0
  47. package/Tabs/styles/index.less +0 -0
  48. package/TimePicker/styles/index.css +0 -0
  49. package/TimePicker/styles/index.less +0 -0
  50. package/TimeRangePicker/styles/index.css +0 -0
  51. package/TimeRangePicker/styles/index.less +0 -0
  52. package/Timeline/styles/mixin.less +0 -0
  53. package/TreePicker/styles/index.css +0 -0
  54. package/TreePicker/styles/index.less +0 -0
  55. package/Uploader/styles/mixin.less +0 -0
  56. package/VisuallyHidden/styles/index.css +0 -0
  57. package/VisuallyHidden/styles/index.less +0 -0
  58. package/cjs/AutoComplete/utils.js +0 -0
  59. package/cjs/Avatar/AvatarIcon.js +0 -0
  60. package/cjs/Avatar/useImage.js +0 -0
  61. package/cjs/Calendar/CalendarProvider.js +0 -0
  62. package/cjs/Calendar/Grid/index.js +0 -0
  63. package/cjs/Calendar/MonthDropdown/index.js +0 -0
  64. package/cjs/Calendar/TimeDropdown/TimeColumn.js +0 -0
  65. package/cjs/Calendar/TimeDropdown/index.js +0 -0
  66. package/cjs/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
  67. package/cjs/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
  68. package/cjs/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
  69. package/cjs/Calendar/TimeDropdown/utils/index.js +0 -0
  70. package/cjs/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
  71. package/cjs/Calendar/hooks/index.js +0 -0
  72. package/cjs/Calendar/hooks/useCalendar.js +0 -0
  73. package/cjs/Calendar/hooks/useCalendarDate.js +0 -0
  74. package/cjs/Calendar/hooks/useCalendarState.js +0 -0
  75. package/cjs/Calendar/types.js +0 -0
  76. package/cjs/Calendar/utils/getAriaLabel.js +0 -0
  77. package/cjs/Calendar/utils/index.js +0 -0
  78. package/cjs/Calendar/utils/isEveryDateInMonth.js +0 -0
  79. package/cjs/CascadeTree/hooks/index.js +0 -0
  80. package/cjs/CascadeTree/hooks/usePaths.js +0 -0
  81. package/cjs/CheckTree/hooks/useTreeCheckState.js +0 -0
  82. package/cjs/CheckTree/hooks/useTreeNodeProps.js +0 -0
  83. package/cjs/CheckTree/hooks/useTreeValue.js +0 -0
  84. package/cjs/CheckTree/utils.js +0 -0
  85. package/cjs/CustomProvider/FormattedDate.js +0 -0
  86. package/cjs/CustomProvider/FormattedNumber.js +0 -0
  87. package/cjs/DOMHelper/isElement.js +0 -0
  88. package/cjs/DateInput/hooks/useFieldCursor.js +0 -0
  89. package/cjs/DateInput/hooks/useIsFocused.js +0 -0
  90. package/cjs/DateInput/hooks/useSelectedState.js +0 -0
  91. package/cjs/DatePicker/hooks/useCustomizedInput.js +0 -0
  92. package/cjs/DatePicker/hooks/useMonthView.js +0 -0
  93. package/cjs/DateRangeInput/utils.js +0 -0
  94. package/cjs/DateRangePicker/DateRangePickerProvider.js +0 -0
  95. package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
  96. package/cjs/DateRangePicker/hooks/index.js +0 -0
  97. package/cjs/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
  98. package/cjs/DateRangePicker/hooks/useDateRangePicker.js +0 -0
  99. package/cjs/DateRangePicker/utils.js +0 -0
  100. package/cjs/Dropdown/DropdownState.js +0 -0
  101. package/cjs/Form/hooks/useFormRef.js +0 -0
  102. package/cjs/Form/hooks/useFormValue.js +0 -0
  103. package/cjs/FormControl/hooks/useRegisterModel.js +0 -0
  104. package/cjs/Highlight/utils/highlightText.js +0 -0
  105. package/cjs/Image/hooks/useImage.js +0 -0
  106. package/cjs/InlineEdit/useEditState.js +0 -0
  107. package/cjs/InlineEdit/useFocusEvent.js +0 -0
  108. package/cjs/InputPicker/InputPickerContext.js +0 -0
  109. package/cjs/InputPicker/utils.js +0 -0
  110. package/cjs/List/List.js +6 -2
  111. package/cjs/List/ListContext.js +0 -0
  112. package/cjs/List/helper/AutoScroller.js +0 -0
  113. package/cjs/List/helper/useManager.js +0 -0
  114. package/cjs/List/helper/useSortHelper.d.ts +7 -5
  115. package/cjs/List/helper/useSortHelper.js +109 -16
  116. package/cjs/List/helper/utils.js +15 -7
  117. package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
  118. package/cjs/MaskedInput/createTextMaskInputElement.js +0 -0
  119. package/cjs/MaskedInput/types.js +0 -0
  120. package/cjs/MaskedInput/utilities.js +0 -0
  121. package/cjs/Modal/ModalContext.js +0 -0
  122. package/cjs/MultiCascadeTree/hooks/index.js +0 -0
  123. package/cjs/MultiCascadeTree/hooks/useColumnData.js +0 -0
  124. package/cjs/MultiCascadeTree/hooks/useFlattenData.js +0 -0
  125. package/cjs/Nav/NavContext.js +0 -0
  126. package/cjs/Panel/hooks/useExpanded.js +0 -0
  127. package/cjs/RangeSlider/RangeSlider.js +5 -2
  128. package/cjs/Rate/utils.js +0 -0
  129. package/cjs/Sidenav/Node.js +0 -0
  130. package/cjs/Slider/Handle.d.ts +1 -0
  131. package/cjs/Slider/Handle.js +8 -5
  132. package/cjs/Slider/Slider.d.ts +2 -0
  133. package/cjs/Slider/Slider.js +3 -1
  134. package/cjs/Slider/useDrag.d.ts +1 -0
  135. package/cjs/Slider/useDrag.js +6 -2
  136. package/cjs/Slider/utils.js +0 -0
  137. package/cjs/Table/TableCell.js +0 -0
  138. package/cjs/Table/TableColumn.js +0 -0
  139. package/cjs/Table/TableColumnGroup.js +0 -0
  140. package/cjs/Table/TableHeaderCell.js +0 -0
  141. package/cjs/Tree/hooks/useExpandTree.js +0 -0
  142. package/cjs/Tree/hooks/useForceUpdate.js +0 -0
  143. package/cjs/Tree/hooks/useTreeDrag.js +0 -0
  144. package/cjs/Tree/hooks/useTreeNodeProps.js +0 -0
  145. package/cjs/Tree/hooks/useTreeWithChildren.js +0 -0
  146. package/cjs/Tree/hooks/useVirtualizedTreeData.js +0 -0
  147. package/cjs/Tree/utils/flattenTree.js +0 -0
  148. package/cjs/Tree/utils/focusableTree.js +0 -0
  149. package/cjs/Tree/utils/formatNodeRefKey.js +0 -0
  150. package/cjs/Tree/utils/getExpandItemValues.js +0 -0
  151. package/cjs/Tree/utils/getNodeParentKeys.js +0 -0
  152. package/cjs/Tree/utils/getTreeActiveNode.js +0 -0
  153. package/cjs/Tree/utils/hasVisibleChildren.js +0 -0
  154. package/cjs/Tree/utils/indentTreeNode.js +0 -0
  155. package/cjs/Tree/utils/index.js +0 -0
  156. package/cjs/Tree/utils/isExpand.js +0 -0
  157. package/cjs/Tree/utils/isSearching.js +0 -0
  158. package/cjs/Tree/utils/treeKeyboardInteractions.js +0 -0
  159. package/cjs/Uploader/UploadTrigger.d.ts +1 -1
  160. package/cjs/Uploader/UploadTrigger.js +13 -9
  161. package/cjs/Uploader/Uploader.d.ts +1 -1
  162. package/cjs/Uploader/Uploader.js +1 -1
  163. package/cjs/Uploader/utils/previewFile.js +0 -0
  164. package/cjs/global.d.ts +0 -0
  165. package/cjs/internals/CloseButton/index.js +0 -0
  166. package/cjs/internals/Disclosure/DisclosureButton.js +0 -0
  167. package/cjs/internals/Disclosure/DisclosureContent.js +0 -0
  168. package/cjs/internals/Disclosure/DisclosureContext.js +0 -0
  169. package/cjs/internals/Disclosure/index.js +0 -0
  170. package/cjs/internals/Disclosure/useDisclosureContext.js +0 -0
  171. package/cjs/internals/Menu/MenuContext.js +0 -0
  172. package/cjs/internals/Menu/index.js +0 -0
  173. package/cjs/internals/Overlay/ModalManager.js +0 -0
  174. package/cjs/internals/Picker/PickerLabel.js +0 -0
  175. package/cjs/internals/Picker/hooks/useSearch.js +0 -0
  176. package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
  177. package/cjs/internals/Picker/utils.js +0 -0
  178. package/cjs/internals/Plaintext/index.js +0 -0
  179. package/cjs/internals/Ripple/index.js +0 -0
  180. package/cjs/internals/ScrollView/hooks/useScrollState.js +0 -0
  181. package/cjs/internals/ScrollView/index.js +0 -0
  182. package/cjs/internals/SearchBox/index.js +0 -0
  183. package/cjs/internals/Tree/TreeProvider.js +0 -0
  184. package/cjs/internals/Tree/index.js +0 -0
  185. package/cjs/internals/Tree/types.js +0 -0
  186. package/cjs/internals/Tree/utils/filterNodesOfTree.js +0 -0
  187. package/cjs/internals/Tree/utils/findNodeOfTree.js +0 -0
  188. package/cjs/internals/Tree/utils/getParentMap.js +0 -0
  189. package/cjs/internals/Tree/utils/index.js +0 -0
  190. package/cjs/internals/Windowing/index.js +0 -0
  191. package/cjs/internals/constants/statusIcons.js +0 -0
  192. package/cjs/internals/hooks/useClickOutside.js +0 -0
  193. package/cjs/internals/hooks/useControlled.js +0 -0
  194. package/cjs/internals/hooks/useEventCallback.js +0 -0
  195. package/cjs/internals/hooks/useEventListener.js +0 -0
  196. package/cjs/internals/hooks/useFocusVirtualListItem.js +0 -0
  197. package/cjs/internals/hooks/useIsMounted.js +0 -0
  198. package/cjs/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
  199. package/cjs/internals/hooks/useMap.js +0 -0
  200. package/cjs/internals/hooks/useMount.js +0 -0
  201. package/cjs/internals/hooks/useUpdatedRef.js +0 -0
  202. package/cjs/internals/index.js +0 -0
  203. package/cjs/internals/utils/attachParent.js +0 -0
  204. package/cjs/internals/utils/composeFunctions.js +0 -0
  205. package/cjs/internals/utils/createChainedFunction.js +0 -0
  206. package/cjs/internals/utils/date/extractTimeFormat.js +0 -0
  207. package/cjs/internals/utils/date/formatCheck.js +0 -0
  208. package/cjs/internals/utils/date/getWeekKeys.js +0 -0
  209. package/cjs/internals/utils/date/omitHideDisabledProps.js +0 -0
  210. package/cjs/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
  211. package/cjs/internals/utils/date/types.js +0 -0
  212. package/cjs/internals/utils/date/useDateMode.js +0 -0
  213. package/cjs/internals/utils/getDataGroupBy.js +0 -0
  214. package/cjs/internals/utils/guid.js +0 -0
  215. package/cjs/internals/utils/isOneOf.js +0 -0
  216. package/cjs/internals/utils/shallowEqual.js +0 -0
  217. package/cjs/internals/utils/warnOnce.js +0 -0
  218. package/cjs/toaster/ToastContext.js +0 -0
  219. package/cjs/useBreakpointValue/useBreakpointValue.js +0 -0
  220. package/cjs/useToaster/useToaster.d.ts +1 -1
  221. package/cjs/useToaster/useToaster.js +1 -1
  222. package/dist/rsuite.js +237 -237
  223. package/dist/rsuite.min.js +1 -1
  224. package/dist/rsuite.min.js.map +1 -1
  225. package/esm/AutoComplete/utils.js +0 -0
  226. package/esm/Avatar/AvatarIcon.js +0 -0
  227. package/esm/Avatar/useImage.js +0 -0
  228. package/esm/Calendar/CalendarProvider.js +0 -0
  229. package/esm/Calendar/Grid/index.js +0 -0
  230. package/esm/Calendar/MonthDropdown/index.js +0 -0
  231. package/esm/Calendar/TimeDropdown/TimeColumn.js +0 -0
  232. package/esm/Calendar/TimeDropdown/index.js +0 -0
  233. package/esm/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
  234. package/esm/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
  235. package/esm/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
  236. package/esm/Calendar/TimeDropdown/utils/index.js +0 -0
  237. package/esm/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
  238. package/esm/Calendar/hooks/index.js +0 -0
  239. package/esm/Calendar/hooks/useCalendar.js +0 -0
  240. package/esm/Calendar/hooks/useCalendarDate.js +0 -0
  241. package/esm/Calendar/hooks/useCalendarState.js +0 -0
  242. package/esm/Calendar/types.js +0 -0
  243. package/esm/Calendar/utils/getAriaLabel.js +0 -0
  244. package/esm/Calendar/utils/index.js +0 -0
  245. package/esm/Calendar/utils/isEveryDateInMonth.js +0 -0
  246. package/esm/CascadeTree/hooks/index.js +0 -0
  247. package/esm/CascadeTree/hooks/usePaths.js +0 -0
  248. package/esm/CheckTree/hooks/useTreeCheckState.js +0 -0
  249. package/esm/CheckTree/hooks/useTreeNodeProps.js +0 -0
  250. package/esm/CheckTree/hooks/useTreeValue.js +0 -0
  251. package/esm/CheckTree/utils.js +0 -0
  252. package/esm/CustomProvider/FormattedDate.js +0 -0
  253. package/esm/CustomProvider/FormattedNumber.js +0 -0
  254. package/esm/DOMHelper/isElement.js +0 -0
  255. package/esm/DateInput/hooks/useFieldCursor.js +0 -0
  256. package/esm/DateInput/hooks/useIsFocused.js +0 -0
  257. package/esm/DateInput/hooks/useSelectedState.js +0 -0
  258. package/esm/DatePicker/hooks/useCustomizedInput.js +0 -0
  259. package/esm/DatePicker/hooks/useMonthView.js +0 -0
  260. package/esm/DateRangeInput/utils.js +0 -0
  261. package/esm/DateRangePicker/DateRangePickerProvider.js +0 -0
  262. package/esm/DateRangePicker/disabledDateUtils.js +0 -0
  263. package/esm/DateRangePicker/hooks/index.js +0 -0
  264. package/esm/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
  265. package/esm/DateRangePicker/hooks/useDateRangePicker.js +0 -0
  266. package/esm/DateRangePicker/utils.js +0 -0
  267. package/esm/Dropdown/DropdownState.js +0 -0
  268. package/esm/Form/hooks/useFormRef.js +0 -0
  269. package/esm/Form/hooks/useFormValue.js +0 -0
  270. package/esm/FormControl/hooks/useRegisterModel.js +0 -0
  271. package/esm/Highlight/utils/highlightText.js +0 -0
  272. package/esm/Image/hooks/useImage.js +0 -0
  273. package/esm/InlineEdit/useEditState.js +0 -0
  274. package/esm/InlineEdit/useFocusEvent.js +0 -0
  275. package/esm/InputPicker/InputPickerContext.js +0 -0
  276. package/esm/InputPicker/utils.js +0 -0
  277. package/esm/List/List.js +6 -2
  278. package/esm/List/ListContext.js +0 -0
  279. package/esm/List/helper/AutoScroller.js +0 -0
  280. package/esm/List/helper/useManager.js +0 -0
  281. package/esm/List/helper/useSortHelper.d.ts +7 -5
  282. package/esm/List/helper/useSortHelper.js +109 -16
  283. package/esm/List/helper/utils.js +15 -7
  284. package/esm/MaskedInput/adjustCaretPosition.js +0 -0
  285. package/esm/MaskedInput/createTextMaskInputElement.js +0 -0
  286. package/esm/MaskedInput/types.js +0 -0
  287. package/esm/MaskedInput/utilities.js +0 -0
  288. package/esm/Modal/ModalContext.js +0 -0
  289. package/esm/MultiCascadeTree/hooks/index.js +0 -0
  290. package/esm/MultiCascadeTree/hooks/useColumnData.js +0 -0
  291. package/esm/MultiCascadeTree/hooks/useFlattenData.js +0 -0
  292. package/esm/Nav/NavContext.js +0 -0
  293. package/esm/Panel/hooks/useExpanded.js +0 -0
  294. package/esm/RangeSlider/RangeSlider.js +5 -2
  295. package/esm/Rate/utils.js +0 -0
  296. package/esm/Sidenav/Node.js +0 -0
  297. package/esm/Slider/Handle.d.ts +1 -0
  298. package/esm/Slider/Handle.js +8 -5
  299. package/esm/Slider/Slider.d.ts +2 -0
  300. package/esm/Slider/Slider.js +3 -1
  301. package/esm/Slider/useDrag.d.ts +1 -0
  302. package/esm/Slider/useDrag.js +6 -2
  303. package/esm/Slider/utils.js +0 -0
  304. package/esm/Table/TableCell.js +0 -0
  305. package/esm/Table/TableColumn.js +0 -0
  306. package/esm/Table/TableColumnGroup.js +0 -0
  307. package/esm/Table/TableHeaderCell.js +0 -0
  308. package/esm/Tree/hooks/useExpandTree.js +0 -0
  309. package/esm/Tree/hooks/useForceUpdate.js +0 -0
  310. package/esm/Tree/hooks/useTreeDrag.js +0 -0
  311. package/esm/Tree/hooks/useTreeNodeProps.js +0 -0
  312. package/esm/Tree/hooks/useTreeWithChildren.js +0 -0
  313. package/esm/Tree/hooks/useVirtualizedTreeData.js +0 -0
  314. package/esm/Tree/utils/flattenTree.js +0 -0
  315. package/esm/Tree/utils/focusableTree.js +0 -0
  316. package/esm/Tree/utils/formatNodeRefKey.js +0 -0
  317. package/esm/Tree/utils/getExpandItemValues.js +0 -0
  318. package/esm/Tree/utils/getNodeParentKeys.js +0 -0
  319. package/esm/Tree/utils/getTreeActiveNode.js +0 -0
  320. package/esm/Tree/utils/hasVisibleChildren.js +0 -0
  321. package/esm/Tree/utils/indentTreeNode.js +0 -0
  322. package/esm/Tree/utils/index.js +0 -0
  323. package/esm/Tree/utils/isExpand.js +0 -0
  324. package/esm/Tree/utils/isSearching.js +0 -0
  325. package/esm/Tree/utils/treeKeyboardInteractions.js +0 -0
  326. package/esm/Uploader/UploadTrigger.d.ts +1 -1
  327. package/esm/Uploader/UploadTrigger.js +13 -9
  328. package/esm/Uploader/Uploader.d.ts +1 -1
  329. package/esm/Uploader/Uploader.js +1 -1
  330. package/esm/Uploader/utils/previewFile.js +0 -0
  331. package/esm/global.d.ts +0 -0
  332. package/esm/internals/CloseButton/index.js +0 -0
  333. package/esm/internals/Disclosure/DisclosureButton.js +0 -0
  334. package/esm/internals/Disclosure/DisclosureContent.js +0 -0
  335. package/esm/internals/Disclosure/DisclosureContext.js +0 -0
  336. package/esm/internals/Disclosure/index.js +0 -0
  337. package/esm/internals/Disclosure/useDisclosureContext.js +0 -0
  338. package/esm/internals/Menu/MenuContext.js +0 -0
  339. package/esm/internals/Menu/index.js +0 -0
  340. package/esm/internals/Overlay/ModalManager.js +0 -0
  341. package/esm/internals/Picker/PickerLabel.js +0 -0
  342. package/esm/internals/Picker/hooks/useSearch.js +0 -0
  343. package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
  344. package/esm/internals/Picker/utils.js +0 -0
  345. package/esm/internals/Plaintext/index.js +0 -0
  346. package/esm/internals/Ripple/index.js +0 -0
  347. package/esm/internals/ScrollView/hooks/useScrollState.js +0 -0
  348. package/esm/internals/ScrollView/index.js +0 -0
  349. package/esm/internals/SearchBox/index.js +0 -0
  350. package/esm/internals/Tree/TreeProvider.js +0 -0
  351. package/esm/internals/Tree/index.js +0 -0
  352. package/esm/internals/Tree/types.js +0 -0
  353. package/esm/internals/Tree/utils/filterNodesOfTree.js +0 -0
  354. package/esm/internals/Tree/utils/findNodeOfTree.js +0 -0
  355. package/esm/internals/Tree/utils/getParentMap.js +0 -0
  356. package/esm/internals/Tree/utils/index.js +0 -0
  357. package/esm/internals/Windowing/index.js +0 -0
  358. package/esm/internals/constants/statusIcons.js +0 -0
  359. package/esm/internals/hooks/useClickOutside.js +0 -0
  360. package/esm/internals/hooks/useControlled.js +0 -0
  361. package/esm/internals/hooks/useEventCallback.js +0 -0
  362. package/esm/internals/hooks/useEventListener.js +0 -0
  363. package/esm/internals/hooks/useFocusVirtualListItem.js +0 -0
  364. package/esm/internals/hooks/useIsMounted.js +0 -0
  365. package/esm/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
  366. package/esm/internals/hooks/useMap.js +0 -0
  367. package/esm/internals/hooks/useMount.js +0 -0
  368. package/esm/internals/hooks/useUpdatedRef.js +0 -0
  369. package/esm/internals/index.js +0 -0
  370. package/esm/internals/utils/attachParent.js +0 -0
  371. package/esm/internals/utils/composeFunctions.js +0 -0
  372. package/esm/internals/utils/createChainedFunction.js +0 -0
  373. package/esm/internals/utils/date/extractTimeFormat.js +0 -0
  374. package/esm/internals/utils/date/formatCheck.js +0 -0
  375. package/esm/internals/utils/date/getWeekKeys.js +0 -0
  376. package/esm/internals/utils/date/omitHideDisabledProps.js +0 -0
  377. package/esm/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
  378. package/esm/internals/utils/date/types.js +0 -0
  379. package/esm/internals/utils/date/useDateMode.js +0 -0
  380. package/esm/internals/utils/getDataGroupBy.js +0 -0
  381. package/esm/internals/utils/guid.js +0 -0
  382. package/esm/internals/utils/isOneOf.js +0 -0
  383. package/esm/internals/utils/shallowEqual.js +0 -0
  384. package/esm/internals/utils/warnOnce.js +0 -0
  385. package/esm/toaster/ToastContext.js +0 -0
  386. package/esm/useBreakpointValue/useBreakpointValue.js +0 -0
  387. package/esm/useToaster/useToaster.d.ts +1 -1
  388. package/esm/useToaster/useToaster.js +1 -1
  389. package/internals/CloseButton/styles/index.less +0 -0
  390. package/internals/Ripple/styles/mixins.less +0 -0
  391. package/internals/SearchBox/styles/index.less +0 -0
  392. package/package.json +1 -1
  393. package/styles/colors/dark.less +0 -0
  394. package/styles/colors/high-contrast.less +0 -0
  395. package/styles/colors/light.less +0 -0
  396. package/styles/mixins/color-modes.less +0 -0
  397. package/styles/mixins/menu.less +0 -0
  398. package/styles/plugins/palette.js +0 -0
  399. package/toaster/styles/animation.less +0 -0
  400. package/useToaster/styles/index.css +0 -0
  401. package/useToaster/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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ ## [5.79.1](https://github.com/rsuite/rsuite/compare/v5.79.0...v5.79.1) (2025-04-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **List:** fix sorting issue on mobile devices ([#4215](https://github.com/rsuite/rsuite/issues/4215)) ([5b74d8b](https://github.com/rsuite/rsuite/commit/5b74d8b6e09e3d662e63f0c437a28585f2535a94))
7
+
8
+
9
+
10
+ # [5.79.0](https://github.com/rsuite/rsuite/compare/v5.78.1...v5.79.0) (2025-03-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **Form:** support explicit type of array type when use rule of formControl ([#4165](https://github.com/rsuite/rsuite/issues/4165)) ([55df308](https://github.com/rsuite/rsuite/commit/55df3080ebcb57ab5e3a8482e381220499600831))
16
+ * **useToaster:** fix the incorrect [@see](https://github.com/see) link in the useToaster comment ([#4200](https://github.com/rsuite/rsuite/issues/4200)) ([cd8087a](https://github.com/rsuite/rsuite/commit/cd8087a4529fad814378104a4f19c2734bcd55f2))
17
+
18
+
19
+ ### Features
20
+
21
+ * **Slider,RangeSlider:** add support for `keepTooltipOpen` prop ([#4186](https://github.com/rsuite/rsuite/issues/4186)) ([a1bdea4](https://github.com/rsuite/rsuite/commit/a1bdea4fad33feca63636631aa1cac7989c0eb87))
22
+
23
+
24
+
25
+ ## [5.78.1](https://github.com/rsuite/rsuite/compare/v5.78.0...v5.78.1) (2025-03-14)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **Uploader:** refine children prop type and improve class handling ([#4175](https://github.com/rsuite/rsuite/issues/4175)) ([58d3eea](https://github.com/rsuite/rsuite/commit/58d3eea86e186590586a14068773a8418fb5f3f9))
31
+
32
+
33
+
1
34
  # [5.78.0](https://github.com/rsuite/rsuite/compare/v5.77.1...v5.78.0) (2025-02-21)
2
35
 
3
36
 
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
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  English | [中文版][readm-cn]
8
8
 
9
9
  [![npm][npm-svg]][npm-home]
10
- [![GitHub Actions][actions-svg]][actions-home]
10
+ [![GitHub Actions][nodejs-ci-svg]][nodejs-ci]
11
11
  [![npm bundle size][npm-bundle-size-img]][npm-bundle-size]
12
12
  [![codecov][codecov-img]][codecov]
13
13
  [![Discord][discord-svg]][discord-invite]
@@ -142,8 +142,8 @@ React Suite is [MIT licensed][license].
142
142
  [npm-home]: https://www.npmjs.com/package/rsuite
143
143
  [npm-bundle-size-img]: https://badgen.net/bundlephobia/minzip/rsuite?icon=npm
144
144
  [npm-bundle-size]: https://bundlephobia.com/package/rsuite
145
- [actions-svg]: https://github.com/rsuite/rsuite/workflows/Node.js%20CI/badge.svg?branch=main
146
- [actions-home]: https://github.com/rsuite/rsuite/actions?query=branch%3Amain+workflow%3A%22Node.js+CI%22
145
+ [nodejs-ci-svg]: https://github.com/rsuite/rsuite/workflows/Node.js%20CI/badge.svg
146
+ [nodejs-ci]: https://github.com/rsuite/rsuite/actions/workflows/nodejs-ci.yml?query=branch%3Amain+workflow%3A%22Node.js+CI%22
147
147
  [discord-svg]: https://img.shields.io/badge/Discord-Join%20chat%20%E2%86%92-738bd7.svg
148
148
  [discord-invite]: https://discord.gg/R8mnjwh
149
149
  [release-notes]: https://github.com/rsuite/rsuite/releases
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/cjs/List/List.js CHANGED
@@ -65,7 +65,9 @@ var List = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
65
65
  register = _useSortHelper.register,
66
66
  sorting = _useSortHelper.sorting,
67
67
  handleEnd = _useSortHelper.handleEnd,
68
- handleStart = _useSortHelper.handleStart;
68
+ handleStart = _useSortHelper.handleStart,
69
+ handleTouchStart = _useSortHelper.handleTouchStart,
70
+ handleTouchEnd = _useSortHelper.handleTouchEnd;
69
71
  var classes = merge(className, withClassPrefix({
70
72
  bordered: bordered,
71
73
  sortable: sortable,
@@ -86,7 +88,9 @@ var List = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
86
88
  ref: (0, _utils.mergeRefs)(containerRef, ref),
87
89
  className: classes,
88
90
  onMouseDown: sortable ? handleStart : undefined,
89
- onMouseUp: sortable ? handleEnd : undefined
91
+ onMouseUp: sortable ? handleEnd : undefined,
92
+ onTouchStart: sortable ? handleTouchStart : undefined,
93
+ onTouchEnd: sortable ? handleTouchEnd : undefined
90
94
  }), /*#__PURE__*/_react.default.createElement(_ListContext.default.Provider, {
91
95
  value: contextValue
92
96
  }, children));
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { MouseEventHandler } from 'react';
1
+ import { MouseEventHandler, TouchEventHandler } from 'react';
2
2
  import { Collection, ManagedItem } from './useManager';
3
3
  export interface MovedItemInfo {
4
4
  collection: Collection;
@@ -10,14 +10,16 @@ export type SortConfig = {
10
10
  autoScroll?: boolean;
11
11
  pressDelay?: number;
12
12
  transitionDuration?: number;
13
- onSortStart?(payload?: MovedItemInfo, event?: MouseEvent): void;
14
- onSortMove?(payload?: MovedItemInfo, event?: MouseEvent): void;
15
- onSortEnd?(payload?: MovedItemInfo, event?: MouseEvent): void;
16
- onSort?(payload?: MovedItemInfo, event?: MouseEvent): void;
13
+ onSortStart?(payload?: MovedItemInfo, event?: MouseEvent | TouchEvent): void;
14
+ onSortMove?(payload?: MovedItemInfo, event?: MouseEvent | TouchEvent): void;
15
+ onSortEnd?(payload?: MovedItemInfo, event?: MouseEvent | TouchEvent): void;
16
+ onSort?(payload?: MovedItemInfo, event?: MouseEvent | TouchEvent): void;
17
17
  };
18
18
  declare const useSortHelper: (config: SortConfig) => {
19
19
  handleStart: MouseEventHandler<Element>;
20
20
  handleEnd: MouseEventHandler<Element>;
21
+ handleTouchStart: TouchEventHandler<Element>;
22
+ handleTouchEnd: TouchEventHandler<Element>;
21
23
  containerRef: import("react").RefObject<HTMLDivElement>;
22
24
  sorting: boolean;
23
25
  register: (item: ManagedItem) => {
@@ -37,7 +37,7 @@ var useSortHelper = function useSortHelper(config) {
37
37
  /**
38
38
  * start dragging
39
39
  * */
40
- var handlePress = (0, _react.useCallback)(function (mouseDownEvent, _targetNode, curManagedItem) {
40
+ var handlePress = (0, _react.useCallback)(function (event, _targetNode, curManagedItem) {
41
41
  var _curManagedItem$info$, _curManagedItem$info$2, _activeNodeHelper;
42
42
  if (!isMounted()) return;
43
43
  // data
@@ -51,6 +51,13 @@ var useSortHelper = function useSortHelper(config) {
51
51
  };
52
52
  var animatedNodesOffset = []; // all list item offset
53
53
 
54
+ // Get initial position from event
55
+ var isTouchEvent = 'touches' in event;
56
+ var initialPosition = {
57
+ pageX: isTouchEvent ? event.touches[0].pageX : event.pageX,
58
+ pageY: isTouchEvent ? event.touches[0].pageY : event.pageY
59
+ };
60
+
54
61
  // init scroller
55
62
  var scrollContainer = (0, _utils.getScrollingParent)(containerElement) || containerElement;
56
63
  var initScroll = {
@@ -92,17 +99,31 @@ var useSortHelper = function useSortHelper(config) {
92
99
  y: 0
93
100
  });
94
101
  };
95
- var sortMouseMoveListener = (0, _on.default)(window, 'mousemove', function (mouseOverEvent) {
102
+
103
+ // Common handler for both mouse and touch move events
104
+ var handleSortMove = function handleSortMove(moveEvent) {
105
+ // Prevent default to stop page scrolling during touch drag
106
+ if ('touches' in moveEvent) {
107
+ moveEvent.preventDefault();
108
+ }
109
+
110
+ // Get current position from event
111
+ var isTouchMoveEvent = 'touches' in moveEvent;
112
+ var currentPosition = {
113
+ pageX: isTouchMoveEvent ? moveEvent.touches[0].pageX : moveEvent.pageX,
114
+ pageY: isTouchMoveEvent ? moveEvent.touches[0].pageY : moveEvent.pageY
115
+ };
116
+
96
117
  // Update helper position
97
118
  var offset = {
98
- x: (mouseOverEvent === null || mouseOverEvent === void 0 ? void 0 : mouseOverEvent.pageX) || 0,
99
- y: (mouseOverEvent === null || mouseOverEvent === void 0 ? void 0 : mouseOverEvent.pageY) || 0
119
+ x: currentPosition.pageX,
120
+ y: currentPosition.pageY
100
121
  };
101
122
  var containerScrollDelta = getContainerScrollDelta();
102
123
  var containerBoundingRect = scrollContainer.getBoundingClientRect();
103
124
  activeNodeHolderTranslate = {
104
- x: offset.x - mouseDownEvent.pageX,
105
- y: offset.y - mouseDownEvent.pageY
125
+ x: offset.x - initialPosition.pageX,
126
+ y: offset.y - initialPosition.pageY
106
127
  };
107
128
  if (activeNodeHelper) {
108
129
  (0, _utils.setTranslate3d)(activeNodeHelper, activeNodeHolderTranslate);
@@ -202,14 +223,22 @@ var useSortHelper = function useSortHelper(config) {
202
223
  node: activeNode,
203
224
  oldIndex: activeNodeOldIndex,
204
225
  newIndex: activeNodeNextIndex
205
- }, mouseOverEvent);
206
- }, {
207
- passive: false
208
- });
209
- var sortMouseEndListener = (0, _on.default)(window, 'mouseup', function (event) {
226
+ }, moveEvent);
227
+ };
228
+
229
+ // Common handler for both mouse and touch end events
230
+ var handleSortEnd = function handleSortEnd(endEvent) {
231
+ var _sortTouchMoveListene, _sortTouchEndListener;
210
232
  // Remove the event listeners
211
233
  sortMouseMoveListener.off();
212
234
  sortMouseEndListener.off();
235
+ (_sortTouchMoveListene = sortTouchMoveListener) === null || _sortTouchMoveListene === void 0 || _sortTouchMoveListene.off();
236
+ (_sortTouchEndListener = sortTouchEndListener) === null || _sortTouchEndListener === void 0 || _sortTouchEndListener.off();
237
+
238
+ // Enable page scrolling again
239
+ if (document.body.style.overflow === 'hidden') {
240
+ document.body.style.overflow = '';
241
+ }
213
242
  var holderTranslate = getHolderTranslate();
214
243
  var containerScrollDelta = getContainerScrollDelta();
215
244
  if (activeNodeHelper) {
@@ -256,12 +285,33 @@ var useSortHelper = function useSortHelper(config) {
256
285
  newIndex: activeNodeNextIndex,
257
286
  oldIndex: activeNodeOldIndex
258
287
  };
259
- onSortEnd === null || onSortEnd === void 0 || onSortEnd(callbackPayload, event);
260
- onSort === null || onSort === void 0 || onSort(callbackPayload, event);
288
+ onSortEnd === null || onSortEnd === void 0 || onSortEnd(callbackPayload, endEvent);
289
+ onSort === null || onSort === void 0 || onSort(callbackPayload, endEvent);
261
290
  }, transitionDuration);
262
- }, {
291
+ };
292
+
293
+ // Set up mouse event listeners
294
+ var sortMouseMoveListener = (0, _on.default)(window, 'mousemove', handleSortMove, {
295
+ passive: false
296
+ });
297
+ var sortMouseEndListener = (0, _on.default)(window, 'mouseup', handleSortEnd, {
263
298
  passive: false
264
299
  });
300
+
301
+ // Set up touch event listeners
302
+ var sortTouchMoveListener;
303
+ var sortTouchEndListener;
304
+ if (isTouchEvent) {
305
+ // Disable page scrolling during touch drag
306
+ document.body.style.overflow = 'hidden';
307
+ sortTouchMoveListener = (0, _on.default)(window, 'touchmove', handleSortMove, {
308
+ passive: false
309
+ } // Important: passive: false allows preventDefault() to work
310
+ );
311
+ sortTouchEndListener = (0, _on.default)(window, 'touchend', handleSortEnd, {
312
+ passive: false
313
+ });
314
+ }
265
315
  setSorting(true);
266
316
  // start callback
267
317
  onSortStart === null || onSortStart === void 0 || onSortStart({
@@ -269,7 +319,7 @@ var useSortHelper = function useSortHelper(config) {
269
319
  node: activeNode,
270
320
  oldIndex: activeNodeOldIndex,
271
321
  newIndex: activeNodeNextIndex
272
- }, mouseDownEvent.nativeEvent);
322
+ }, event);
273
323
  }, [autoScroll, getOrderedItems, isMounted, onSort, onSortEnd, onSortMove, onSortStart, transitionDuration]);
274
324
 
275
325
  /**
@@ -297,15 +347,58 @@ var useSortHelper = function useSortHelper(config) {
297
347
  }
298
348
  }, [getManagedItem, handlePress, pressDelay, sorting]);
299
349
 
350
+ /**
351
+ * Handle touch start for mobile devices
352
+ */
353
+ var handleTouchStart = (0, _react.useCallback)(function (touchStartEvent) {
354
+ var triggeredNode = touchStartEvent.target;
355
+ var targetNode = (0, _utils.closestNode)(triggeredNode, function (el) {
356
+ return Boolean(getManagedItem(el));
357
+ });
358
+ var curManagedItem = getManagedItem(targetNode);
359
+ if (
360
+ // is list item
361
+ Boolean(curManagedItem) && !curManagedItem.info.disabled &&
362
+ // is not sorting
363
+ !sorting &&
364
+ // is valid node
365
+ targetNode instanceof HTMLElement &&
366
+ // excludes interactive elements
367
+ !targetNode.contains((0, _utils.closestNode)(triggeredNode, _utils.isContainInteractiveElement))) {
368
+ // Prevent scrolling while sorting
369
+ touchStartEvent.preventDefault();
370
+ pressTimer.current = setTimeout(handlePress, pressDelay, touchStartEvent, targetNode, curManagedItem);
371
+ }
372
+ }, [getManagedItem, handlePress, pressDelay, sorting]);
373
+
300
374
  /**
301
375
  * Clear timer after drag
302
376
  * */
303
377
  var handleEnd = (0, _react.useCallback)(function () {
304
- return clearTimeout(pressTimer.current);
378
+ clearTimeout(pressTimer.current);
379
+
380
+ // Ensure page scrolling is re-enabled
381
+ if (document.body.style.overflow === 'hidden') {
382
+ document.body.style.overflow = '';
383
+ }
384
+ }, []);
385
+
386
+ /**
387
+ * Clear timer after touch end
388
+ */
389
+ var handleTouchEnd = (0, _react.useCallback)(function () {
390
+ clearTimeout(pressTimer.current);
391
+
392
+ // Ensure page scrolling is re-enabled
393
+ if (document.body.style.overflow === 'hidden') {
394
+ document.body.style.overflow = '';
395
+ }
305
396
  }, []);
306
397
  return {
307
398
  handleStart: handleStart,
308
399
  handleEnd: handleEnd,
400
+ handleTouchStart: handleTouchStart,
401
+ handleTouchEnd: handleTouchEnd,
309
402
  containerRef: containerRef,
310
403
  sorting: sorting,
311
404
  register: listItemRegister
@@ -72,12 +72,20 @@ function getEdgeOffset(node, parent, offset) {
72
72
  return getEdgeOffset(node.parentNode, parent, nodeOffset);
73
73
  }
74
74
  function getScrollingParent(el) {
75
- return closestNode(el, function (el) {
76
- var computedStyle = window.getComputedStyle(el);
77
- var overflowRegex = /(auto|scroll)/;
78
- var properties = ['overflow', 'overflowX', 'overflowY'];
79
- return properties.some(function (property) {
80
- return overflowRegex.test(computedStyle[property]);
75
+ if (!el || typeof window === 'undefined' || !window.getComputedStyle) {
76
+ return null;
77
+ }
78
+ try {
79
+ return closestNode(el, function (el) {
80
+ var computedStyle = window.getComputedStyle(el);
81
+ var overflowRegex = /(auto|scroll)/;
82
+ var properties = ['overflow', 'overflowX', 'overflowY'];
83
+ return properties.some(function (property) {
84
+ return overflowRegex.test(computedStyle[property]);
85
+ });
81
86
  });
82
- });
87
+ } catch (error) {
88
+ // In test environments, errors may occur, so return null
89
+ return null;
90
+ }
83
91
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes