rsuite 5.78.1 → 5.79.0-canary-2025032417

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 (383) 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 +0 -9
  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/RadioTileGroup/styles/index.css +0 -0
  41. package/RadioTileGroup/styles/index.less +0 -0
  42. package/RangeSlider/styles/index.css +0 -0
  43. package/RangeSlider/styles/index.less +0 -0
  44. package/Table/styles/mixin.less +0 -0
  45. package/Tabs/styles/index.css +0 -0
  46. package/Tabs/styles/index.less +0 -0
  47. package/TimePicker/styles/index.css +0 -0
  48. package/TimePicker/styles/index.less +0 -0
  49. package/TimeRangePicker/styles/index.css +0 -0
  50. package/TimeRangePicker/styles/index.less +0 -0
  51. package/Timeline/styles/mixin.less +0 -0
  52. package/TreePicker/styles/index.css +0 -0
  53. package/TreePicker/styles/index.less +0 -0
  54. package/Uploader/styles/mixin.less +0 -0
  55. package/VisuallyHidden/styles/index.css +0 -0
  56. package/VisuallyHidden/styles/index.less +0 -0
  57. package/cjs/AutoComplete/utils.js +0 -0
  58. package/cjs/Avatar/AvatarIcon.js +0 -0
  59. package/cjs/Avatar/useImage.js +0 -0
  60. package/cjs/Calendar/CalendarProvider.js +0 -0
  61. package/cjs/Calendar/Grid/index.js +0 -0
  62. package/cjs/Calendar/MonthDropdown/index.js +0 -0
  63. package/cjs/Calendar/TimeDropdown/TimeColumn.js +0 -0
  64. package/cjs/Calendar/TimeDropdown/index.js +0 -0
  65. package/cjs/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
  66. package/cjs/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
  67. package/cjs/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
  68. package/cjs/Calendar/TimeDropdown/utils/index.js +0 -0
  69. package/cjs/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
  70. package/cjs/Calendar/hooks/index.js +0 -0
  71. package/cjs/Calendar/hooks/useCalendar.js +0 -0
  72. package/cjs/Calendar/hooks/useCalendarDate.js +0 -0
  73. package/cjs/Calendar/hooks/useCalendarState.js +0 -0
  74. package/cjs/Calendar/types.js +0 -0
  75. package/cjs/Calendar/utils/getAriaLabel.js +0 -0
  76. package/cjs/Calendar/utils/index.js +0 -0
  77. package/cjs/Calendar/utils/isEveryDateInMonth.js +0 -0
  78. package/cjs/CascadeTree/hooks/index.js +0 -0
  79. package/cjs/CascadeTree/hooks/usePaths.js +0 -0
  80. package/cjs/CheckTree/hooks/useTreeCheckState.js +0 -0
  81. package/cjs/CheckTree/hooks/useTreeNodeProps.js +0 -0
  82. package/cjs/CheckTree/hooks/useTreeValue.js +0 -0
  83. package/cjs/CheckTree/utils.js +0 -0
  84. package/cjs/CustomProvider/FormattedDate.js +0 -0
  85. package/cjs/CustomProvider/FormattedNumber.js +0 -0
  86. package/cjs/DOMHelper/isElement.js +0 -0
  87. package/cjs/DateInput/hooks/useFieldCursor.js +0 -0
  88. package/cjs/DateInput/hooks/useIsFocused.js +0 -0
  89. package/cjs/DateInput/hooks/useSelectedState.js +0 -0
  90. package/cjs/DatePicker/hooks/useCustomizedInput.js +0 -0
  91. package/cjs/DatePicker/hooks/useMonthView.js +0 -0
  92. package/cjs/DateRangeInput/utils.js +0 -0
  93. package/cjs/DateRangePicker/DateRangePickerProvider.js +0 -0
  94. package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
  95. package/cjs/DateRangePicker/hooks/index.js +0 -0
  96. package/cjs/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
  97. package/cjs/DateRangePicker/hooks/useDateRangePicker.js +0 -0
  98. package/cjs/DateRangePicker/utils.js +0 -0
  99. package/cjs/Dropdown/DropdownState.js +0 -0
  100. package/cjs/Form/hooks/useFormRef.js +0 -0
  101. package/cjs/Form/hooks/useFormValue.js +0 -0
  102. package/cjs/Form/hooks/useSchemaModel.js +7 -58
  103. package/cjs/Form/utils/constructFlatSchema.d.ts +4 -0
  104. package/cjs/Form/utils/constructFlatSchema.js +42 -0
  105. package/cjs/FormControl/hooks/useRegisterModel.js +0 -0
  106. package/cjs/Highlight/utils/highlightText.js +0 -0
  107. package/cjs/Image/hooks/useImage.js +0 -0
  108. package/cjs/InlineEdit/useEditState.js +0 -0
  109. package/cjs/InlineEdit/useFocusEvent.js +0 -0
  110. package/cjs/InputPicker/InputPickerContext.js +0 -0
  111. package/cjs/InputPicker/utils.js +0 -0
  112. package/cjs/List/ListContext.js +0 -0
  113. package/cjs/List/helper/AutoScroller.js +0 -0
  114. package/cjs/List/helper/useManager.js +0 -0
  115. package/cjs/List/helper/utils.js +0 -0
  116. package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
  117. package/cjs/MaskedInput/createTextMaskInputElement.js +0 -0
  118. package/cjs/MaskedInput/types.js +0 -0
  119. package/cjs/MaskedInput/utilities.js +0 -0
  120. package/cjs/Modal/ModalContext.js +0 -0
  121. package/cjs/MultiCascadeTree/hooks/index.js +0 -0
  122. package/cjs/MultiCascadeTree/hooks/useColumnData.js +0 -0
  123. package/cjs/MultiCascadeTree/hooks/useFlattenData.js +0 -0
  124. package/cjs/Nav/NavContext.js +0 -0
  125. package/cjs/Panel/hooks/useExpanded.js +0 -0
  126. package/cjs/Rate/utils.js +0 -0
  127. package/cjs/Sidenav/Node.js +0 -0
  128. package/cjs/Slider/utils.js +0 -0
  129. package/cjs/Table/TableCell.js +0 -0
  130. package/cjs/Table/TableColumn.js +0 -0
  131. package/cjs/Table/TableColumnGroup.js +0 -0
  132. package/cjs/Table/TableHeaderCell.js +0 -0
  133. package/cjs/Tree/hooks/useExpandTree.js +0 -0
  134. package/cjs/Tree/hooks/useForceUpdate.js +0 -0
  135. package/cjs/Tree/hooks/useTreeDrag.js +0 -0
  136. package/cjs/Tree/hooks/useTreeNodeProps.js +0 -0
  137. package/cjs/Tree/hooks/useTreeWithChildren.js +0 -0
  138. package/cjs/Tree/hooks/useVirtualizedTreeData.js +0 -0
  139. package/cjs/Tree/utils/flattenTree.js +0 -0
  140. package/cjs/Tree/utils/focusableTree.js +0 -0
  141. package/cjs/Tree/utils/formatNodeRefKey.js +0 -0
  142. package/cjs/Tree/utils/getExpandItemValues.js +0 -0
  143. package/cjs/Tree/utils/getNodeParentKeys.js +0 -0
  144. package/cjs/Tree/utils/getTreeActiveNode.js +0 -0
  145. package/cjs/Tree/utils/hasVisibleChildren.js +0 -0
  146. package/cjs/Tree/utils/indentTreeNode.js +0 -0
  147. package/cjs/Tree/utils/index.js +0 -0
  148. package/cjs/Tree/utils/isExpand.js +0 -0
  149. package/cjs/Tree/utils/isSearching.js +0 -0
  150. package/cjs/Tree/utils/treeKeyboardInteractions.js +0 -0
  151. package/cjs/Uploader/UploadTrigger.d.ts +1 -1
  152. package/cjs/Uploader/UploadTrigger.js +9 -13
  153. package/cjs/Uploader/Uploader.d.ts +1 -1
  154. package/cjs/Uploader/Uploader.js +1 -1
  155. package/cjs/Uploader/utils/previewFile.js +0 -0
  156. package/cjs/global.d.ts +0 -0
  157. package/cjs/internals/CloseButton/index.js +0 -0
  158. package/cjs/internals/Disclosure/DisclosureButton.js +0 -0
  159. package/cjs/internals/Disclosure/DisclosureContent.js +0 -0
  160. package/cjs/internals/Disclosure/DisclosureContext.js +0 -0
  161. package/cjs/internals/Disclosure/index.js +0 -0
  162. package/cjs/internals/Disclosure/useDisclosureContext.js +0 -0
  163. package/cjs/internals/Menu/MenuContext.js +0 -0
  164. package/cjs/internals/Menu/index.js +0 -0
  165. package/cjs/internals/Overlay/ModalManager.js +0 -0
  166. package/cjs/internals/Picker/PickerLabel.js +0 -0
  167. package/cjs/internals/Picker/hooks/useSearch.js +0 -0
  168. package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
  169. package/cjs/internals/Picker/utils.js +0 -0
  170. package/cjs/internals/Plaintext/index.js +0 -0
  171. package/cjs/internals/Ripple/index.js +0 -0
  172. package/cjs/internals/ScrollView/hooks/useScrollState.js +0 -0
  173. package/cjs/internals/ScrollView/index.js +0 -0
  174. package/cjs/internals/SearchBox/index.js +0 -0
  175. package/cjs/internals/Tree/TreeProvider.js +0 -0
  176. package/cjs/internals/Tree/index.js +0 -0
  177. package/cjs/internals/Tree/types.js +0 -0
  178. package/cjs/internals/Tree/utils/filterNodesOfTree.js +0 -0
  179. package/cjs/internals/Tree/utils/findNodeOfTree.js +0 -0
  180. package/cjs/internals/Tree/utils/getParentMap.js +0 -0
  181. package/cjs/internals/Tree/utils/index.js +0 -0
  182. package/cjs/internals/Windowing/index.js +0 -0
  183. package/cjs/internals/constants/statusIcons.js +0 -0
  184. package/cjs/internals/hooks/useClickOutside.js +0 -0
  185. package/cjs/internals/hooks/useControlled.js +0 -0
  186. package/cjs/internals/hooks/useEventCallback.js +0 -0
  187. package/cjs/internals/hooks/useEventListener.js +0 -0
  188. package/cjs/internals/hooks/useFocusVirtualListItem.js +0 -0
  189. package/cjs/internals/hooks/useIsMounted.js +0 -0
  190. package/cjs/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
  191. package/cjs/internals/hooks/useMap.js +0 -0
  192. package/cjs/internals/hooks/useMount.js +0 -0
  193. package/cjs/internals/hooks/useUpdatedRef.js +0 -0
  194. package/cjs/internals/index.js +0 -0
  195. package/cjs/internals/utils/attachParent.js +0 -0
  196. package/cjs/internals/utils/composeFunctions.js +0 -0
  197. package/cjs/internals/utils/createChainedFunction.js +0 -0
  198. package/cjs/internals/utils/date/extractTimeFormat.js +0 -0
  199. package/cjs/internals/utils/date/formatCheck.js +0 -0
  200. package/cjs/internals/utils/date/getWeekKeys.js +0 -0
  201. package/cjs/internals/utils/date/omitHideDisabledProps.js +0 -0
  202. package/cjs/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
  203. package/cjs/internals/utils/date/types.js +0 -0
  204. package/cjs/internals/utils/date/useDateMode.js +0 -0
  205. package/cjs/internals/utils/getDataGroupBy.js +0 -0
  206. package/cjs/internals/utils/guid.js +0 -0
  207. package/cjs/internals/utils/isOneOf.js +0 -0
  208. package/cjs/internals/utils/shallowEqual.js +0 -0
  209. package/cjs/internals/utils/warnOnce.js +0 -0
  210. package/cjs/toaster/ToastContext.js +0 -0
  211. package/cjs/useBreakpointValue/useBreakpointValue.js +0 -0
  212. package/dist/rsuite.js +249 -238
  213. package/dist/rsuite.js.map +1 -1
  214. package/dist/rsuite.min.js +1 -1
  215. package/dist/rsuite.min.js.map +1 -1
  216. package/esm/AutoComplete/utils.js +0 -0
  217. package/esm/Avatar/AvatarIcon.js +0 -0
  218. package/esm/Avatar/useImage.js +0 -0
  219. package/esm/Calendar/CalendarProvider.js +0 -0
  220. package/esm/Calendar/Grid/index.js +0 -0
  221. package/esm/Calendar/MonthDropdown/index.js +0 -0
  222. package/esm/Calendar/TimeDropdown/TimeColumn.js +0 -0
  223. package/esm/Calendar/TimeDropdown/index.js +0 -0
  224. package/esm/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
  225. package/esm/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
  226. package/esm/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
  227. package/esm/Calendar/TimeDropdown/utils/index.js +0 -0
  228. package/esm/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
  229. package/esm/Calendar/hooks/index.js +0 -0
  230. package/esm/Calendar/hooks/useCalendar.js +0 -0
  231. package/esm/Calendar/hooks/useCalendarDate.js +0 -0
  232. package/esm/Calendar/hooks/useCalendarState.js +0 -0
  233. package/esm/Calendar/types.js +0 -0
  234. package/esm/Calendar/utils/getAriaLabel.js +0 -0
  235. package/esm/Calendar/utils/index.js +0 -0
  236. package/esm/Calendar/utils/isEveryDateInMonth.js +0 -0
  237. package/esm/CascadeTree/hooks/index.js +0 -0
  238. package/esm/CascadeTree/hooks/usePaths.js +0 -0
  239. package/esm/CheckTree/hooks/useTreeCheckState.js +0 -0
  240. package/esm/CheckTree/hooks/useTreeNodeProps.js +0 -0
  241. package/esm/CheckTree/hooks/useTreeValue.js +0 -0
  242. package/esm/CheckTree/utils.js +0 -0
  243. package/esm/CustomProvider/FormattedDate.js +0 -0
  244. package/esm/CustomProvider/FormattedNumber.js +0 -0
  245. package/esm/DOMHelper/isElement.js +0 -0
  246. package/esm/DateInput/hooks/useFieldCursor.js +0 -0
  247. package/esm/DateInput/hooks/useIsFocused.js +0 -0
  248. package/esm/DateInput/hooks/useSelectedState.js +0 -0
  249. package/esm/DatePicker/hooks/useCustomizedInput.js +0 -0
  250. package/esm/DatePicker/hooks/useMonthView.js +0 -0
  251. package/esm/DateRangeInput/utils.js +0 -0
  252. package/esm/DateRangePicker/DateRangePickerProvider.js +0 -0
  253. package/esm/DateRangePicker/disabledDateUtils.js +0 -0
  254. package/esm/DateRangePicker/hooks/index.js +0 -0
  255. package/esm/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
  256. package/esm/DateRangePicker/hooks/useDateRangePicker.js +0 -0
  257. package/esm/DateRangePicker/utils.js +0 -0
  258. package/esm/Dropdown/DropdownState.js +0 -0
  259. package/esm/Form/hooks/useFormRef.js +0 -0
  260. package/esm/Form/hooks/useFormValue.js +0 -0
  261. package/esm/Form/hooks/useSchemaModel.js +8 -59
  262. package/esm/Form/utils/constructFlatSchema.d.ts +4 -0
  263. package/esm/Form/utils/constructFlatSchema.js +38 -0
  264. package/esm/FormControl/hooks/useRegisterModel.js +0 -0
  265. package/esm/Highlight/utils/highlightText.js +0 -0
  266. package/esm/Image/hooks/useImage.js +0 -0
  267. package/esm/InlineEdit/useEditState.js +0 -0
  268. package/esm/InlineEdit/useFocusEvent.js +0 -0
  269. package/esm/InputPicker/InputPickerContext.js +0 -0
  270. package/esm/InputPicker/utils.js +0 -0
  271. package/esm/List/ListContext.js +0 -0
  272. package/esm/List/helper/AutoScroller.js +0 -0
  273. package/esm/List/helper/useManager.js +0 -0
  274. package/esm/List/helper/utils.js +0 -0
  275. package/esm/MaskedInput/adjustCaretPosition.js +0 -0
  276. package/esm/MaskedInput/createTextMaskInputElement.js +0 -0
  277. package/esm/MaskedInput/types.js +0 -0
  278. package/esm/MaskedInput/utilities.js +0 -0
  279. package/esm/Modal/ModalContext.js +0 -0
  280. package/esm/MultiCascadeTree/hooks/index.js +0 -0
  281. package/esm/MultiCascadeTree/hooks/useColumnData.js +0 -0
  282. package/esm/MultiCascadeTree/hooks/useFlattenData.js +0 -0
  283. package/esm/Nav/NavContext.js +0 -0
  284. package/esm/Panel/hooks/useExpanded.js +0 -0
  285. package/esm/Rate/utils.js +0 -0
  286. package/esm/Sidenav/Node.js +0 -0
  287. package/esm/Slider/utils.js +0 -0
  288. package/esm/Table/TableCell.js +0 -0
  289. package/esm/Table/TableColumn.js +0 -0
  290. package/esm/Table/TableColumnGroup.js +0 -0
  291. package/esm/Table/TableHeaderCell.js +0 -0
  292. package/esm/Tree/hooks/useExpandTree.js +0 -0
  293. package/esm/Tree/hooks/useForceUpdate.js +0 -0
  294. package/esm/Tree/hooks/useTreeDrag.js +0 -0
  295. package/esm/Tree/hooks/useTreeNodeProps.js +0 -0
  296. package/esm/Tree/hooks/useTreeWithChildren.js +0 -0
  297. package/esm/Tree/hooks/useVirtualizedTreeData.js +0 -0
  298. package/esm/Tree/utils/flattenTree.js +0 -0
  299. package/esm/Tree/utils/focusableTree.js +0 -0
  300. package/esm/Tree/utils/formatNodeRefKey.js +0 -0
  301. package/esm/Tree/utils/getExpandItemValues.js +0 -0
  302. package/esm/Tree/utils/getNodeParentKeys.js +0 -0
  303. package/esm/Tree/utils/getTreeActiveNode.js +0 -0
  304. package/esm/Tree/utils/hasVisibleChildren.js +0 -0
  305. package/esm/Tree/utils/indentTreeNode.js +0 -0
  306. package/esm/Tree/utils/index.js +0 -0
  307. package/esm/Tree/utils/isExpand.js +0 -0
  308. package/esm/Tree/utils/isSearching.js +0 -0
  309. package/esm/Tree/utils/treeKeyboardInteractions.js +0 -0
  310. package/esm/Uploader/UploadTrigger.d.ts +1 -1
  311. package/esm/Uploader/UploadTrigger.js +9 -13
  312. package/esm/Uploader/Uploader.d.ts +1 -1
  313. package/esm/Uploader/Uploader.js +1 -1
  314. package/esm/Uploader/utils/previewFile.js +0 -0
  315. package/esm/global.d.ts +0 -0
  316. package/esm/internals/CloseButton/index.js +0 -0
  317. package/esm/internals/Disclosure/DisclosureButton.js +0 -0
  318. package/esm/internals/Disclosure/DisclosureContent.js +0 -0
  319. package/esm/internals/Disclosure/DisclosureContext.js +0 -0
  320. package/esm/internals/Disclosure/index.js +0 -0
  321. package/esm/internals/Disclosure/useDisclosureContext.js +0 -0
  322. package/esm/internals/Menu/MenuContext.js +0 -0
  323. package/esm/internals/Menu/index.js +0 -0
  324. package/esm/internals/Overlay/ModalManager.js +0 -0
  325. package/esm/internals/Picker/PickerLabel.js +0 -0
  326. package/esm/internals/Picker/hooks/useSearch.js +0 -0
  327. package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
  328. package/esm/internals/Picker/utils.js +0 -0
  329. package/esm/internals/Plaintext/index.js +0 -0
  330. package/esm/internals/Ripple/index.js +0 -0
  331. package/esm/internals/ScrollView/hooks/useScrollState.js +0 -0
  332. package/esm/internals/ScrollView/index.js +0 -0
  333. package/esm/internals/SearchBox/index.js +0 -0
  334. package/esm/internals/Tree/TreeProvider.js +0 -0
  335. package/esm/internals/Tree/index.js +0 -0
  336. package/esm/internals/Tree/types.js +0 -0
  337. package/esm/internals/Tree/utils/filterNodesOfTree.js +0 -0
  338. package/esm/internals/Tree/utils/findNodeOfTree.js +0 -0
  339. package/esm/internals/Tree/utils/getParentMap.js +0 -0
  340. package/esm/internals/Tree/utils/index.js +0 -0
  341. package/esm/internals/Windowing/index.js +0 -0
  342. package/esm/internals/constants/statusIcons.js +0 -0
  343. package/esm/internals/hooks/useClickOutside.js +0 -0
  344. package/esm/internals/hooks/useControlled.js +0 -0
  345. package/esm/internals/hooks/useEventCallback.js +0 -0
  346. package/esm/internals/hooks/useEventListener.js +0 -0
  347. package/esm/internals/hooks/useFocusVirtualListItem.js +0 -0
  348. package/esm/internals/hooks/useIsMounted.js +0 -0
  349. package/esm/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
  350. package/esm/internals/hooks/useMap.js +0 -0
  351. package/esm/internals/hooks/useMount.js +0 -0
  352. package/esm/internals/hooks/useUpdatedRef.js +0 -0
  353. package/esm/internals/index.js +0 -0
  354. package/esm/internals/utils/attachParent.js +0 -0
  355. package/esm/internals/utils/composeFunctions.js +0 -0
  356. package/esm/internals/utils/createChainedFunction.js +0 -0
  357. package/esm/internals/utils/date/extractTimeFormat.js +0 -0
  358. package/esm/internals/utils/date/formatCheck.js +0 -0
  359. package/esm/internals/utils/date/getWeekKeys.js +0 -0
  360. package/esm/internals/utils/date/omitHideDisabledProps.js +0 -0
  361. package/esm/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
  362. package/esm/internals/utils/date/types.js +0 -0
  363. package/esm/internals/utils/date/useDateMode.js +0 -0
  364. package/esm/internals/utils/getDataGroupBy.js +0 -0
  365. package/esm/internals/utils/guid.js +0 -0
  366. package/esm/internals/utils/isOneOf.js +0 -0
  367. package/esm/internals/utils/shallowEqual.js +0 -0
  368. package/esm/internals/utils/warnOnce.js +0 -0
  369. package/esm/toaster/ToastContext.js +0 -0
  370. package/esm/useBreakpointValue/useBreakpointValue.js +0 -0
  371. package/internals/CloseButton/styles/index.less +0 -0
  372. package/internals/Ripple/styles/mixins.less +0 -0
  373. package/internals/SearchBox/styles/index.less +0 -0
  374. package/package.json +2 -2
  375. package/styles/colors/dark.less +0 -0
  376. package/styles/colors/high-contrast.less +0 -0
  377. package/styles/colors/light.less +0 -0
  378. package/styles/mixins/color-modes.less +0 -0
  379. package/styles/mixins/menu.less +0 -0
  380. package/styles/plugins/palette.js +0 -0
  381. package/toaster/styles/animation.less +0 -0
  382. package/useToaster/styles/index.css +0 -0
  383. 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,12 +1,3 @@
1
- ## [5.78.1](https://github.com/rsuite/rsuite/compare/v5.78.0...v5.78.1) (2025-03-14)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **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))
7
-
8
-
9
-
10
1
  # [5.78.0](https://github.com/rsuite/rsuite/compare/v5.77.1...v5.78.0) (2025-02-21)
11
2
 
12
3
 
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
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
@@ -5,58 +5,7 @@ exports.__esModule = true;
5
5
  exports.default = void 0;
6
6
  var _schemaTyped = require("schema-typed");
7
7
  var _react = require("react");
8
- /**
9
- * Convert a flat schema object to a nested schema object
10
- *
11
- * @example
12
- *
13
- * ```js
14
- * const schema = {
15
- * 'address.city': StringType().isRequired('City is required'),
16
- * 'address.street': StringType().isRequired('Street is required')
17
- * };
18
- *
19
- * const result = unflattenSchemaObject(schema);
20
- *
21
- * // result
22
- * {
23
- * address: ObjectType().shape({
24
- * city: StringType().isRequired('City is required'),
25
- * street: StringType().isRequired('Street is required')
26
- * })
27
- * }
28
- * ```
29
- */
30
- function unflattenSchemaObject(schema) {
31
- var result = {};
32
- var $type = Symbol('schema-type');
33
- Object.keys(schema).forEach(function (key) {
34
- if (key.includes('.')) {
35
- var keys = key.split('.');
36
- var lastKey = keys.pop() || '';
37
- var current = result;
38
- keys.forEach(function (subKey) {
39
- var _ref;
40
- current[subKey] = current[subKey] || (_ref = {}, _ref[$type] = 'object-type', _ref);
41
- current = current[subKey];
42
- });
43
- current[lastKey] = schema[key];
44
- } else {
45
- result[key] = schema[key];
46
- }
47
- });
48
- function convertToShape(obj) {
49
- Object.keys(obj).forEach(function (key) {
50
- var _obj$key;
51
- if (((_obj$key = obj[key]) === null || _obj$key === void 0 ? void 0 : _obj$key[$type]) === 'object-type') {
52
- delete obj[key][$type];
53
- obj[key] = (0, _schemaTyped.ObjectType)().shape(convertToShape(obj[key]));
54
- }
55
- });
56
- return obj;
57
- }
58
- return convertToShape(result);
59
- }
8
+ var _constructFlatSchema = require("../utils/constructFlatSchema");
60
9
  function useSchemaModel(formModel, nestedField) {
61
10
  var subRulesRef = (0, _react.useRef)([]);
62
11
  var pushFieldRule = (0, _react.useCallback)(function (name, fieldRule) {
@@ -80,15 +29,15 @@ function useSchemaModel(formModel, nestedField) {
80
29
  if (realSubRules.length === 0) {
81
30
  return formModel;
82
31
  }
83
- var subRuleObject = realSubRules.map(function (_ref2) {
84
- var _ref3;
85
- var name = _ref2.name,
86
- fieldRule = _ref2.fieldRule;
87
- return _ref3 = {}, _ref3[name] = fieldRule.current, _ref3;
32
+ var subRuleObject = realSubRules.map(function (_ref) {
33
+ var _ref2;
34
+ var name = _ref.name,
35
+ fieldRule = _ref.fieldRule;
36
+ return _ref2 = {}, _ref2[name] = fieldRule.current, _ref2;
88
37
  }).reduce(function (a, b) {
89
38
  return Object.assign(a, b);
90
39
  }, {});
91
- return _schemaTyped.SchemaModel.combine(formModel, (0, _schemaTyped.SchemaModel)(nestedField ? unflattenSchemaObject(subRuleObject) : subRuleObject));
40
+ return _schemaTyped.SchemaModel.combine(formModel, (0, _schemaTyped.SchemaModel)(nestedField ? (0, _constructFlatSchema.constructFlatSchema)(subRuleObject) : subRuleObject));
92
41
  }, [formModel, nestedField]);
93
42
  return {
94
43
  getCombinedModel: getCombinedModel,
@@ -0,0 +1,4 @@
1
+ /**
2
+ * combine flat schema to nested schema
3
+ */
4
+ export declare function constructFlatSchema(schema: any): any;
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.constructFlatSchema = constructFlatSchema;
7
+ var _schemaTyped = require("schema-typed");
8
+ var _set = _interopRequireDefault(require("lodash/set"));
9
+ /**
10
+ * combine flat schema to nested schema
11
+ */
12
+ function constructFlatSchema(schema) {
13
+ var shape = {};
14
+ Object.keys(schema).forEach(function (key) {
15
+ (0, _set.default)(shape, key, {
16
+ schema: schema[key],
17
+ primitiveType: true
18
+ });
19
+ });
20
+ function convertShapeToSchema(shape, result, internal) {
21
+ Object.keys(shape).forEach(function (key) {
22
+ var currentShape = shape[key];
23
+ if (Array.isArray(currentShape)) {
24
+ var _ArrayType;
25
+ result[key] = (_ArrayType = (0, _schemaTyped.ArrayType)()).of.apply(_ArrayType, currentShape.map(function (v) {
26
+ if (v.primitiveType) {
27
+ return v.schema;
28
+ }
29
+ return convertShapeToSchema(v, {}, true);
30
+ }));
31
+ } else {
32
+ if (currentShape.primitiveType) {
33
+ result[key] = currentShape.schema;
34
+ } else {
35
+ result[key] = convertShapeToSchema(currentShape, {}, true);
36
+ }
37
+ }
38
+ });
39
+ return internal ? (0, _schemaTyped.ObjectType)().shape(result) : result;
40
+ }
41
+ return convertShapeToSchema(shape, {});
42
+ }
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/Rate/utils.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
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
@@ -11,7 +11,7 @@ export interface UploadTriggerProps extends ButtonProps {
11
11
  accept?: string;
12
12
  classPrefix?: string;
13
13
  className?: string;
14
- children?: React.ReactElement;
14
+ children?: React.ReactNode;
15
15
  locale?: UploaderLocale;
16
16
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
17
17
  onDragEnter?: React.DragEventHandler<HTMLInputElement>;
@@ -15,7 +15,6 @@ var _excluded = ["as", "name", "accept", "multiple", "disabled", "readOnly", "ch
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  var UploadTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
18
- var _children$props;
19
18
  var _props$as = props.as,
20
19
  Component = _props$as === void 0 ? _Button.default : _props$as,
21
20
  name = props.name,
@@ -104,21 +103,18 @@ var UploadTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
104
103
  clearInput: handleClearInput
105
104
  };
106
105
  });
107
-
108
- // Prepare button props with event handlers conditionally applied
109
106
  var buttonProps = (0, _extends2.default)({}, rest, {
110
107
  disabled: disabled,
111
108
  className: prefix('btn')
112
- }, !disabled && !readOnly && {
113
- onClick: handleClick,
114
- onDragEnter: handleDragEnter,
115
- onDragLeave: handleDragLeave,
116
- onDragOver: handleDragOver,
117
- onDrop: handleDrop
118
109
  });
119
- var trigger = children ? (/*#__PURE__*/_react.default.cloneElement(_react.default.Children.only(children), (0, _extends2.default)({}, buttonProps, {
120
- className: merge((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.className, prefix('btn'))
121
- }))) : /*#__PURE__*/_react.default.createElement(Component, buttonProps, locale === null || locale === void 0 ? void 0 : locale.upload);
110
+ if (!disabled && !readOnly) {
111
+ buttonProps.onClick = handleClick;
112
+ buttonProps.onDragEnter = handleDragEnter;
113
+ buttonProps.onDragLeave = handleDragLeave;
114
+ buttonProps.onDragOver = handleDragOver;
115
+ buttonProps.onDrop = handleDrop;
116
+ }
117
+ var trigger = children ? (/*#__PURE__*/_react.default.cloneElement(_react.default.Children.only(children), buttonProps)) : /*#__PURE__*/_react.default.createElement(Component, buttonProps, locale === null || locale === void 0 ? void 0 : locale.upload);
122
118
  return /*#__PURE__*/_react.default.createElement("div", {
123
119
  ref: rootRef,
124
120
  className: classes
@@ -144,7 +140,7 @@ UploadTrigger.propTypes = {
144
140
  onChange: _propTypes.default.func,
145
141
  classPrefix: _propTypes.default.string,
146
142
  className: _propTypes.default.string,
147
- children: _propTypes.default.element,
143
+ children: _propTypes.default.node,
148
144
  draggable: _propTypes.default.bool,
149
145
  onDragEnter: _propTypes.default.func,
150
146
  onDragLeave: _propTypes.default.func,
@@ -29,7 +29,7 @@ export interface UploaderProps extends WithAsProps, Omit<UploadTriggerProps, 'on
29
29
  /** Automatically upload files after selecting them */
30
30
  autoUpload?: boolean;
31
31
  /** Primary content */
32
- children?: React.ReactElement;
32
+ children?: React.ReactNode;
33
33
  /** List of uploaded files */
34
34
  defaultFileList?: FileType[];
35
35
  /** List of uploaded files (Controlled) */
@@ -420,7 +420,7 @@ Uploader.propTypes = {
420
420
  action: _propTypes.default.string.isRequired,
421
421
  accept: _propTypes.default.string,
422
422
  autoUpload: _propTypes.default.bool,
423
- children: _propTypes.default.element,
423
+ children: _propTypes.default.node,
424
424
  className: _propTypes.default.string,
425
425
  classPrefix: _propTypes.default.string,
426
426
  defaultFileList: _propTypes.default.array,
File without changes
package/cjs/global.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes