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.
- package/Accordion/styles/index.css +0 -0
- package/Accordion/styles/index.less +0 -0
- package/Animation/styles/animation.less +0 -0
- package/Animation/styles/bounce.less +0 -0
- package/Animation/styles/collapse.less +0 -0
- package/Animation/styles/fade.less +0 -0
- package/Animation/styles/index.css +0 -0
- package/Animation/styles/index.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/Animation/styles/slide.less +0 -0
- package/Animation/styles/variables.less +0 -0
- package/CHANGELOG.md +0 -9
- package/CascadeTree/styles/search.less +0 -0
- package/Cascader/styles/index.css +0 -0
- package/Cascader/styles/index.less +0 -0
- package/Container/stories/styles.less +0 -0
- package/Container/styles/index.css +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.css +0 -0
- package/Content/styles/index.less +0 -0
- package/DateInput/styles/index.css +0 -0
- package/DateInput/styles/index.less +0 -0
- package/DatePicker/styles/mixin.less +0 -0
- package/DateRangeInput/styles/index.css +0 -0
- package/DateRangeInput/styles/index.less +0 -0
- package/Drawer/styles/mixin.less +0 -0
- package/Footer/styles/index.css +0 -0
- package/Footer/styles/index.less +0 -0
- package/Header/styles/index.css +0 -0
- package/Header/styles/index.less +0 -0
- package/HeadingGroup/styles/index.css +0 -0
- package/HeadingGroup/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +0 -0
- package/InputPicker/styles/mixin.less +0 -0
- package/LICENSE +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Pagination/styles/mixin.less +0 -0
- package/Placeholder/styles/mixin.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/RadioTileGroup/styles/index.css +0 -0
- package/RadioTileGroup/styles/index.less +0 -0
- package/RangeSlider/styles/index.css +0 -0
- package/RangeSlider/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/Tabs/styles/index.css +0 -0
- package/Tabs/styles/index.less +0 -0
- package/TimePicker/styles/index.css +0 -0
- package/TimePicker/styles/index.less +0 -0
- package/TimeRangePicker/styles/index.css +0 -0
- package/TimeRangePicker/styles/index.less +0 -0
- package/Timeline/styles/mixin.less +0 -0
- package/TreePicker/styles/index.css +0 -0
- package/TreePicker/styles/index.less +0 -0
- package/Uploader/styles/mixin.less +0 -0
- package/VisuallyHidden/styles/index.css +0 -0
- package/VisuallyHidden/styles/index.less +0 -0
- package/cjs/AutoComplete/utils.js +0 -0
- package/cjs/Avatar/AvatarIcon.js +0 -0
- package/cjs/Avatar/useImage.js +0 -0
- package/cjs/Calendar/CalendarProvider.js +0 -0
- package/cjs/Calendar/Grid/index.js +0 -0
- package/cjs/Calendar/MonthDropdown/index.js +0 -0
- package/cjs/Calendar/TimeDropdown/TimeColumn.js +0 -0
- package/cjs/Calendar/TimeDropdown/index.js +0 -0
- package/cjs/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
- package/cjs/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
- package/cjs/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
- package/cjs/Calendar/TimeDropdown/utils/index.js +0 -0
- package/cjs/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
- package/cjs/Calendar/hooks/index.js +0 -0
- package/cjs/Calendar/hooks/useCalendar.js +0 -0
- package/cjs/Calendar/hooks/useCalendarDate.js +0 -0
- package/cjs/Calendar/hooks/useCalendarState.js +0 -0
- package/cjs/Calendar/types.js +0 -0
- package/cjs/Calendar/utils/getAriaLabel.js +0 -0
- package/cjs/Calendar/utils/index.js +0 -0
- package/cjs/Calendar/utils/isEveryDateInMonth.js +0 -0
- package/cjs/CascadeTree/hooks/index.js +0 -0
- package/cjs/CascadeTree/hooks/usePaths.js +0 -0
- package/cjs/CheckTree/hooks/useTreeCheckState.js +0 -0
- package/cjs/CheckTree/hooks/useTreeNodeProps.js +0 -0
- package/cjs/CheckTree/hooks/useTreeValue.js +0 -0
- package/cjs/CheckTree/utils.js +0 -0
- package/cjs/CustomProvider/FormattedDate.js +0 -0
- package/cjs/CustomProvider/FormattedNumber.js +0 -0
- package/cjs/DOMHelper/isElement.js +0 -0
- package/cjs/DateInput/hooks/useFieldCursor.js +0 -0
- package/cjs/DateInput/hooks/useIsFocused.js +0 -0
- package/cjs/DateInput/hooks/useSelectedState.js +0 -0
- package/cjs/DatePicker/hooks/useCustomizedInput.js +0 -0
- package/cjs/DatePicker/hooks/useMonthView.js +0 -0
- package/cjs/DateRangeInput/utils.js +0 -0
- package/cjs/DateRangePicker/DateRangePickerProvider.js +0 -0
- package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
- package/cjs/DateRangePicker/hooks/index.js +0 -0
- package/cjs/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
- package/cjs/DateRangePicker/hooks/useDateRangePicker.js +0 -0
- package/cjs/DateRangePicker/utils.js +0 -0
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Form/hooks/useFormRef.js +0 -0
- package/cjs/Form/hooks/useFormValue.js +0 -0
- package/cjs/Form/hooks/useSchemaModel.js +7 -58
- package/cjs/Form/utils/constructFlatSchema.d.ts +4 -0
- package/cjs/Form/utils/constructFlatSchema.js +42 -0
- package/cjs/FormControl/hooks/useRegisterModel.js +0 -0
- package/cjs/Highlight/utils/highlightText.js +0 -0
- package/cjs/Image/hooks/useImage.js +0 -0
- package/cjs/InlineEdit/useEditState.js +0 -0
- package/cjs/InlineEdit/useFocusEvent.js +0 -0
- package/cjs/InputPicker/InputPickerContext.js +0 -0
- package/cjs/InputPicker/utils.js +0 -0
- package/cjs/List/ListContext.js +0 -0
- package/cjs/List/helper/AutoScroller.js +0 -0
- package/cjs/List/helper/useManager.js +0 -0
- package/cjs/List/helper/utils.js +0 -0
- package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
- package/cjs/MaskedInput/createTextMaskInputElement.js +0 -0
- package/cjs/MaskedInput/types.js +0 -0
- package/cjs/MaskedInput/utilities.js +0 -0
- package/cjs/Modal/ModalContext.js +0 -0
- package/cjs/MultiCascadeTree/hooks/index.js +0 -0
- package/cjs/MultiCascadeTree/hooks/useColumnData.js +0 -0
- package/cjs/MultiCascadeTree/hooks/useFlattenData.js +0 -0
- package/cjs/Nav/NavContext.js +0 -0
- package/cjs/Panel/hooks/useExpanded.js +0 -0
- package/cjs/Rate/utils.js +0 -0
- package/cjs/Sidenav/Node.js +0 -0
- package/cjs/Slider/utils.js +0 -0
- package/cjs/Table/TableCell.js +0 -0
- package/cjs/Table/TableColumn.js +0 -0
- package/cjs/Table/TableColumnGroup.js +0 -0
- package/cjs/Table/TableHeaderCell.js +0 -0
- package/cjs/Tree/hooks/useExpandTree.js +0 -0
- package/cjs/Tree/hooks/useForceUpdate.js +0 -0
- package/cjs/Tree/hooks/useTreeDrag.js +0 -0
- package/cjs/Tree/hooks/useTreeNodeProps.js +0 -0
- package/cjs/Tree/hooks/useTreeWithChildren.js +0 -0
- package/cjs/Tree/hooks/useVirtualizedTreeData.js +0 -0
- package/cjs/Tree/utils/flattenTree.js +0 -0
- package/cjs/Tree/utils/focusableTree.js +0 -0
- package/cjs/Tree/utils/formatNodeRefKey.js +0 -0
- package/cjs/Tree/utils/getExpandItemValues.js +0 -0
- package/cjs/Tree/utils/getNodeParentKeys.js +0 -0
- package/cjs/Tree/utils/getTreeActiveNode.js +0 -0
- package/cjs/Tree/utils/hasVisibleChildren.js +0 -0
- package/cjs/Tree/utils/indentTreeNode.js +0 -0
- package/cjs/Tree/utils/index.js +0 -0
- package/cjs/Tree/utils/isExpand.js +0 -0
- package/cjs/Tree/utils/isSearching.js +0 -0
- package/cjs/Tree/utils/treeKeyboardInteractions.js +0 -0
- package/cjs/Uploader/UploadTrigger.d.ts +1 -1
- package/cjs/Uploader/UploadTrigger.js +9 -13
- package/cjs/Uploader/Uploader.d.ts +1 -1
- package/cjs/Uploader/Uploader.js +1 -1
- package/cjs/Uploader/utils/previewFile.js +0 -0
- package/cjs/global.d.ts +0 -0
- package/cjs/internals/CloseButton/index.js +0 -0
- package/cjs/internals/Disclosure/DisclosureButton.js +0 -0
- package/cjs/internals/Disclosure/DisclosureContent.js +0 -0
- package/cjs/internals/Disclosure/DisclosureContext.js +0 -0
- package/cjs/internals/Disclosure/index.js +0 -0
- package/cjs/internals/Disclosure/useDisclosureContext.js +0 -0
- package/cjs/internals/Menu/MenuContext.js +0 -0
- package/cjs/internals/Menu/index.js +0 -0
- package/cjs/internals/Overlay/ModalManager.js +0 -0
- package/cjs/internals/Picker/PickerLabel.js +0 -0
- package/cjs/internals/Picker/hooks/useSearch.js +0 -0
- package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
- package/cjs/internals/Picker/utils.js +0 -0
- package/cjs/internals/Plaintext/index.js +0 -0
- package/cjs/internals/Ripple/index.js +0 -0
- package/cjs/internals/ScrollView/hooks/useScrollState.js +0 -0
- package/cjs/internals/ScrollView/index.js +0 -0
- package/cjs/internals/SearchBox/index.js +0 -0
- package/cjs/internals/Tree/TreeProvider.js +0 -0
- package/cjs/internals/Tree/index.js +0 -0
- package/cjs/internals/Tree/types.js +0 -0
- package/cjs/internals/Tree/utils/filterNodesOfTree.js +0 -0
- package/cjs/internals/Tree/utils/findNodeOfTree.js +0 -0
- package/cjs/internals/Tree/utils/getParentMap.js +0 -0
- package/cjs/internals/Tree/utils/index.js +0 -0
- package/cjs/internals/Windowing/index.js +0 -0
- package/cjs/internals/constants/statusIcons.js +0 -0
- package/cjs/internals/hooks/useClickOutside.js +0 -0
- package/cjs/internals/hooks/useControlled.js +0 -0
- package/cjs/internals/hooks/useEventCallback.js +0 -0
- package/cjs/internals/hooks/useEventListener.js +0 -0
- package/cjs/internals/hooks/useFocusVirtualListItem.js +0 -0
- package/cjs/internals/hooks/useIsMounted.js +0 -0
- package/cjs/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
- package/cjs/internals/hooks/useMap.js +0 -0
- package/cjs/internals/hooks/useMount.js +0 -0
- package/cjs/internals/hooks/useUpdatedRef.js +0 -0
- package/cjs/internals/index.js +0 -0
- package/cjs/internals/utils/attachParent.js +0 -0
- package/cjs/internals/utils/composeFunctions.js +0 -0
- package/cjs/internals/utils/createChainedFunction.js +0 -0
- package/cjs/internals/utils/date/extractTimeFormat.js +0 -0
- package/cjs/internals/utils/date/formatCheck.js +0 -0
- package/cjs/internals/utils/date/getWeekKeys.js +0 -0
- package/cjs/internals/utils/date/omitHideDisabledProps.js +0 -0
- package/cjs/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
- package/cjs/internals/utils/date/types.js +0 -0
- package/cjs/internals/utils/date/useDateMode.js +0 -0
- package/cjs/internals/utils/getDataGroupBy.js +0 -0
- package/cjs/internals/utils/guid.js +0 -0
- package/cjs/internals/utils/isOneOf.js +0 -0
- package/cjs/internals/utils/shallowEqual.js +0 -0
- package/cjs/internals/utils/warnOnce.js +0 -0
- package/cjs/toaster/ToastContext.js +0 -0
- package/cjs/useBreakpointValue/useBreakpointValue.js +0 -0
- package/dist/rsuite.js +249 -238
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/AutoComplete/utils.js +0 -0
- package/esm/Avatar/AvatarIcon.js +0 -0
- package/esm/Avatar/useImage.js +0 -0
- package/esm/Calendar/CalendarProvider.js +0 -0
- package/esm/Calendar/Grid/index.js +0 -0
- package/esm/Calendar/MonthDropdown/index.js +0 -0
- package/esm/Calendar/TimeDropdown/TimeColumn.js +0 -0
- package/esm/Calendar/TimeDropdown/index.js +0 -0
- package/esm/Calendar/TimeDropdown/utils/formatWithLeadingZero.js +0 -0
- package/esm/Calendar/TimeDropdown/utils/getClockTime.js +0 -0
- package/esm/Calendar/TimeDropdown/utils/getTimeLimits.js +0 -0
- package/esm/Calendar/TimeDropdown/utils/index.js +0 -0
- package/esm/Calendar/TimeDropdown/utils/scrollToTime.js +0 -0
- package/esm/Calendar/hooks/index.js +0 -0
- package/esm/Calendar/hooks/useCalendar.js +0 -0
- package/esm/Calendar/hooks/useCalendarDate.js +0 -0
- package/esm/Calendar/hooks/useCalendarState.js +0 -0
- package/esm/Calendar/types.js +0 -0
- package/esm/Calendar/utils/getAriaLabel.js +0 -0
- package/esm/Calendar/utils/index.js +0 -0
- package/esm/Calendar/utils/isEveryDateInMonth.js +0 -0
- package/esm/CascadeTree/hooks/index.js +0 -0
- package/esm/CascadeTree/hooks/usePaths.js +0 -0
- package/esm/CheckTree/hooks/useTreeCheckState.js +0 -0
- package/esm/CheckTree/hooks/useTreeNodeProps.js +0 -0
- package/esm/CheckTree/hooks/useTreeValue.js +0 -0
- package/esm/CheckTree/utils.js +0 -0
- package/esm/CustomProvider/FormattedDate.js +0 -0
- package/esm/CustomProvider/FormattedNumber.js +0 -0
- package/esm/DOMHelper/isElement.js +0 -0
- package/esm/DateInput/hooks/useFieldCursor.js +0 -0
- package/esm/DateInput/hooks/useIsFocused.js +0 -0
- package/esm/DateInput/hooks/useSelectedState.js +0 -0
- package/esm/DatePicker/hooks/useCustomizedInput.js +0 -0
- package/esm/DatePicker/hooks/useMonthView.js +0 -0
- package/esm/DateRangeInput/utils.js +0 -0
- package/esm/DateRangePicker/DateRangePickerProvider.js +0 -0
- package/esm/DateRangePicker/disabledDateUtils.js +0 -0
- package/esm/DateRangePicker/hooks/index.js +0 -0
- package/esm/DateRangePicker/hooks/useCalendarHandlers.js +0 -0
- package/esm/DateRangePicker/hooks/useDateRangePicker.js +0 -0
- package/esm/DateRangePicker/utils.js +0 -0
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Form/hooks/useFormRef.js +0 -0
- package/esm/Form/hooks/useFormValue.js +0 -0
- package/esm/Form/hooks/useSchemaModel.js +8 -59
- package/esm/Form/utils/constructFlatSchema.d.ts +4 -0
- package/esm/Form/utils/constructFlatSchema.js +38 -0
- package/esm/FormControl/hooks/useRegisterModel.js +0 -0
- package/esm/Highlight/utils/highlightText.js +0 -0
- package/esm/Image/hooks/useImage.js +0 -0
- package/esm/InlineEdit/useEditState.js +0 -0
- package/esm/InlineEdit/useFocusEvent.js +0 -0
- package/esm/InputPicker/InputPickerContext.js +0 -0
- package/esm/InputPicker/utils.js +0 -0
- package/esm/List/ListContext.js +0 -0
- package/esm/List/helper/AutoScroller.js +0 -0
- package/esm/List/helper/useManager.js +0 -0
- package/esm/List/helper/utils.js +0 -0
- package/esm/MaskedInput/adjustCaretPosition.js +0 -0
- package/esm/MaskedInput/createTextMaskInputElement.js +0 -0
- package/esm/MaskedInput/types.js +0 -0
- package/esm/MaskedInput/utilities.js +0 -0
- package/esm/Modal/ModalContext.js +0 -0
- package/esm/MultiCascadeTree/hooks/index.js +0 -0
- package/esm/MultiCascadeTree/hooks/useColumnData.js +0 -0
- package/esm/MultiCascadeTree/hooks/useFlattenData.js +0 -0
- package/esm/Nav/NavContext.js +0 -0
- package/esm/Panel/hooks/useExpanded.js +0 -0
- package/esm/Rate/utils.js +0 -0
- package/esm/Sidenav/Node.js +0 -0
- package/esm/Slider/utils.js +0 -0
- package/esm/Table/TableCell.js +0 -0
- package/esm/Table/TableColumn.js +0 -0
- package/esm/Table/TableColumnGroup.js +0 -0
- package/esm/Table/TableHeaderCell.js +0 -0
- package/esm/Tree/hooks/useExpandTree.js +0 -0
- package/esm/Tree/hooks/useForceUpdate.js +0 -0
- package/esm/Tree/hooks/useTreeDrag.js +0 -0
- package/esm/Tree/hooks/useTreeNodeProps.js +0 -0
- package/esm/Tree/hooks/useTreeWithChildren.js +0 -0
- package/esm/Tree/hooks/useVirtualizedTreeData.js +0 -0
- package/esm/Tree/utils/flattenTree.js +0 -0
- package/esm/Tree/utils/focusableTree.js +0 -0
- package/esm/Tree/utils/formatNodeRefKey.js +0 -0
- package/esm/Tree/utils/getExpandItemValues.js +0 -0
- package/esm/Tree/utils/getNodeParentKeys.js +0 -0
- package/esm/Tree/utils/getTreeActiveNode.js +0 -0
- package/esm/Tree/utils/hasVisibleChildren.js +0 -0
- package/esm/Tree/utils/indentTreeNode.js +0 -0
- package/esm/Tree/utils/index.js +0 -0
- package/esm/Tree/utils/isExpand.js +0 -0
- package/esm/Tree/utils/isSearching.js +0 -0
- package/esm/Tree/utils/treeKeyboardInteractions.js +0 -0
- package/esm/Uploader/UploadTrigger.d.ts +1 -1
- package/esm/Uploader/UploadTrigger.js +9 -13
- package/esm/Uploader/Uploader.d.ts +1 -1
- package/esm/Uploader/Uploader.js +1 -1
- package/esm/Uploader/utils/previewFile.js +0 -0
- package/esm/global.d.ts +0 -0
- package/esm/internals/CloseButton/index.js +0 -0
- package/esm/internals/Disclosure/DisclosureButton.js +0 -0
- package/esm/internals/Disclosure/DisclosureContent.js +0 -0
- package/esm/internals/Disclosure/DisclosureContext.js +0 -0
- package/esm/internals/Disclosure/index.js +0 -0
- package/esm/internals/Disclosure/useDisclosureContext.js +0 -0
- package/esm/internals/Menu/MenuContext.js +0 -0
- package/esm/internals/Menu/index.js +0 -0
- package/esm/internals/Overlay/ModalManager.js +0 -0
- package/esm/internals/Picker/PickerLabel.js +0 -0
- package/esm/internals/Picker/hooks/useSearch.js +0 -0
- package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +0 -0
- package/esm/internals/Picker/utils.js +0 -0
- package/esm/internals/Plaintext/index.js +0 -0
- package/esm/internals/Ripple/index.js +0 -0
- package/esm/internals/ScrollView/hooks/useScrollState.js +0 -0
- package/esm/internals/ScrollView/index.js +0 -0
- package/esm/internals/SearchBox/index.js +0 -0
- package/esm/internals/Tree/TreeProvider.js +0 -0
- package/esm/internals/Tree/index.js +0 -0
- package/esm/internals/Tree/types.js +0 -0
- package/esm/internals/Tree/utils/filterNodesOfTree.js +0 -0
- package/esm/internals/Tree/utils/findNodeOfTree.js +0 -0
- package/esm/internals/Tree/utils/getParentMap.js +0 -0
- package/esm/internals/Tree/utils/index.js +0 -0
- package/esm/internals/Windowing/index.js +0 -0
- package/esm/internals/constants/statusIcons.js +0 -0
- package/esm/internals/hooks/useClickOutside.js +0 -0
- package/esm/internals/hooks/useControlled.js +0 -0
- package/esm/internals/hooks/useEventCallback.js +0 -0
- package/esm/internals/hooks/useEventListener.js +0 -0
- package/esm/internals/hooks/useFocusVirtualListItem.js +0 -0
- package/esm/internals/hooks/useIsMounted.js +0 -0
- package/esm/internals/hooks/useIsomorphicLayoutEffect.js +0 -0
- package/esm/internals/hooks/useMap.js +0 -0
- package/esm/internals/hooks/useMount.js +0 -0
- package/esm/internals/hooks/useUpdatedRef.js +0 -0
- package/esm/internals/index.js +0 -0
- package/esm/internals/utils/attachParent.js +0 -0
- package/esm/internals/utils/composeFunctions.js +0 -0
- package/esm/internals/utils/createChainedFunction.js +0 -0
- package/esm/internals/utils/date/extractTimeFormat.js +0 -0
- package/esm/internals/utils/date/formatCheck.js +0 -0
- package/esm/internals/utils/date/getWeekKeys.js +0 -0
- package/esm/internals/utils/date/omitHideDisabledProps.js +0 -0
- package/esm/internals/utils/date/reverseDateRangeOmitTime.js +0 -0
- package/esm/internals/utils/date/types.js +0 -0
- package/esm/internals/utils/date/useDateMode.js +0 -0
- package/esm/internals/utils/getDataGroupBy.js +0 -0
- package/esm/internals/utils/guid.js +0 -0
- package/esm/internals/utils/isOneOf.js +0 -0
- package/esm/internals/utils/shallowEqual.js +0 -0
- package/esm/internals/utils/warnOnce.js +0 -0
- package/esm/toaster/ToastContext.js +0 -0
- package/esm/useBreakpointValue/useBreakpointValue.js +0 -0
- package/internals/CloseButton/styles/index.less +0 -0
- package/internals/Ripple/styles/mixins.less +0 -0
- package/internals/SearchBox/styles/index.less +0 -0
- package/package.json +2 -2
- package/styles/colors/dark.less +0 -0
- package/styles/colors/high-contrast.less +0 -0
- package/styles/colors/light.less +0 -0
- package/styles/mixins/color-modes.less +0 -0
- package/styles/mixins/menu.less +0 -0
- package/styles/plugins/palette.js +0 -0
- package/toaster/styles/animation.less +0 -0
- package/useToaster/styles/index.css +0 -0
- 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
|
package/Content/styles/index.css
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/Drawer/styles/mixin.less
CHANGED
|
File without changes
|
package/Footer/styles/index.css
CHANGED
|
File without changes
|
package/Footer/styles/index.less
CHANGED
|
File without changes
|
package/Header/styles/index.css
CHANGED
|
File without changes
|
package/Header/styles/index.less
CHANGED
|
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
|
package/Table/styles/mixin.less
CHANGED
|
File without changes
|
package/Tabs/styles/index.css
CHANGED
|
File without changes
|
package/Tabs/styles/index.less
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
|
package/cjs/Avatar/AvatarIcon.js
CHANGED
|
File without changes
|
package/cjs/Avatar/useImage.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
|
package/cjs/Calendar/types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/CheckTree/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
|
|
@@ -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 (
|
|
84
|
-
var
|
|
85
|
-
var name =
|
|
86
|
-
fieldRule =
|
|
87
|
-
return
|
|
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 ?
|
|
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,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
|
package/cjs/InputPicker/utils.js
CHANGED
|
File without changes
|
package/cjs/List/ListContext.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/List/helper/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/MaskedInput/types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/Nav/NavContext.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/Rate/utils.js
CHANGED
|
File without changes
|
package/cjs/Sidenav/Node.js
CHANGED
|
File without changes
|
package/cjs/Slider/utils.js
CHANGED
|
File without changes
|
package/cjs/Table/TableCell.js
CHANGED
|
File without changes
|
package/cjs/Table/TableColumn.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
|
package/cjs/Tree/utils/index.js
CHANGED
|
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.
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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.
|
|
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.
|
|
32
|
+
children?: React.ReactNode;
|
|
33
33
|
/** List of uploaded files */
|
|
34
34
|
defaultFileList?: FileType[];
|
|
35
35
|
/** List of uploaded files (Controlled) */
|
package/cjs/Uploader/Uploader.js
CHANGED
|
@@ -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.
|
|
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
|