rsuite 5.16.3 → 5.17.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Animation/styles/animation.less +0 -0
- package/Animation/styles/index.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/AutoComplete/styles/index.less +0 -0
- package/Avatar/styles/mixin.less +0 -0
- package/Badge/styles/index.less +0 -0
- package/Breadcrumb/styles/index.less +0 -0
- package/Button/styles/mixin.less +0 -0
- package/CHANGELOG.md +6 -0
- package/Calendar/styles/index.less +0 -0
- package/Cascader/styles/index.less +0 -0
- package/CheckPicker/styles/index.less +0 -0
- package/Checkbox/styles/index.less +0 -0
- package/Checkbox/styles/mixin.less +0 -0
- package/CheckboxGroup/styles/index.less +0 -0
- package/CloseButton/styles/index.less +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.less +0 -0
- package/DatePicker/styles/index.less +0 -0
- package/DateRangePicker/styles/index.less +0 -0
- package/Divider/styles/index.less +0 -0
- package/Drawer/styles/mixin.less +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/Footer/styles/index.less +0 -0
- package/Form/styles/index.less +0 -0
- package/FormControl/styles/index.less +0 -0
- package/FormControlLabel/styles/index.less +0 -0
- package/FormErrorMessage/styles/animation.less +0 -0
- package/FormErrorMessage/styles/index.less +0 -0
- package/FormGroup/styles/index.less +0 -0
- package/FormHelpText/styles/index.less +0 -0
- package/Grid/styles/grid-framework.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Header/styles/index.less +0 -0
- package/Input/styles/index.less +0 -0
- package/InputNumber/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +0 -0
- package/InputPicker/styles/index.less +0 -0
- package/LICENSE +0 -0
- package/List/styles/index.less +0 -0
- package/Loader/styles/index.less +0 -0
- package/Loader/styles/mixin.less +0 -0
- package/Message/styles/index.less +0 -0
- package/Message/styles/mixin.less +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Notification/styles/index.less +0 -0
- package/Notification/styles/mixin.less +0 -0
- package/Pagination/styles/index.less +0 -0
- package/Pagination/styles/mixin.less +0 -0
- package/Pagination/styles/pagination-group.less +0 -0
- package/Panel/styles/index.less +0 -0
- package/Picker/styles/index.less +1 -1
- package/Placeholder/styles/index.less +0 -0
- package/Popover/styles/index.less +0 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/Progress/styles/index.less +0 -0
- package/Radio/styles/mixin.less +0 -0
- package/RadioGroup/styles/index.less +0 -0
- package/Rate/styles/index.less +0 -0
- package/Ripple/styles/index.less +0 -0
- package/Ripple/styles/mixins.less +0 -0
- package/Row/styles/index.less +0 -0
- package/SelectPicker/styles/index.less +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Steps/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/Tag/styles/index.less +0 -0
- package/TagInput/styles/index.less +0 -0
- package/TagPicker/styles/index.less +0 -0
- package/Timeline/styles/index.less +0 -0
- package/Timeline/styles/mixin.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/TreePicker/styles/mixin.less +0 -0
- package/Uploader/styles/mixin.less +0 -0
- package/cjs/@types/global.d.ts +0 -0
- package/cjs/Affix/index.js +0 -0
- package/cjs/Animation/Bounce.js +0 -0
- package/cjs/Animation/Fade.js +0 -0
- package/cjs/Animation/Slide.js +0 -0
- package/cjs/Animation/index.js +0 -0
- package/cjs/Animation/utils.js +0 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +3 -1
- package/cjs/AutoComplete/AutoComplete.js +6 -2
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/AutoComplete/test/AutoComplete.test.d.ts +1 -0
- package/cjs/AutoComplete/test/AutoComplete.test.js +23 -0
- package/cjs/Avatar/index.js +0 -0
- package/cjs/Badge/index.js +0 -0
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +0 -0
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Calendar/index.js +0 -0
- package/cjs/Carousel/index.js +0 -0
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CloseButton/CloseButton.js +0 -0
- package/cjs/CloseButton/index.js +0 -0
- package/cjs/Col/index.js +0 -0
- package/cjs/Container/index.js +0 -0
- package/cjs/Content/Content.js +0 -0
- package/cjs/Content/index.js +0 -0
- package/cjs/CustomProvider/FormattedDate.js +0 -0
- package/cjs/CustomProvider/index.js +0 -0
- package/cjs/DatePicker/DatePicker.js +1 -1
- package/cjs/DatePicker/index.js +0 -0
- package/cjs/DateRangePicker/DateRangePicker.js +1 -1
- package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
- package/cjs/Disclosure/Disclosure.d.ts +2 -2
- package/cjs/Disclosure/Disclosure.js +6 -6
- package/cjs/Disclosure/index.js +0 -0
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/Footer.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/FormControlLabel.js +0 -0
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +0 -0
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormGroup/index.js +0 -0
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/Grid/Grid.js +0 -0
- package/cjs/Grid/index.js +0 -0
- package/cjs/Header/Header.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/IconButton/index.js +0 -0
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/InputGroupButton.js +0 -0
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/InputPicker/index.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/index.js +0 -0
- package/cjs/Menu/MenuContext.js +0 -0
- package/cjs/Menu/index.js +0 -0
- package/cjs/Message/index.js +0 -0
- package/cjs/Modal/ModalFooter.js +0 -0
- package/cjs/Modal/index.js +0 -0
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/NavbarBody.js +0 -0
- package/cjs/Navbar/NavbarBrand.js +0 -0
- package/cjs/Navbar/NavbarDropdownMenu.js +16 -10
- package/cjs/Navbar/NavbarHeader.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Overlay/OverlayTrigger.js +43 -34
- package/cjs/Overlay/index.js +0 -0
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Picker/PickerToggle.d.ts +1 -1
- package/cjs/Picker/PickerToggle.js +52 -27
- package/cjs/Picker/types.js +0 -0
- package/cjs/Placeholder/Placeholder.js +0 -0
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Plaintext/index.js +0 -0
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/Progress.js +0 -0
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/index.js +0 -0
- package/cjs/Ripple/index.js +0 -0
- package/cjs/Row/Row.js +0 -0
- package/cjs/Row/index.js +0 -0
- package/cjs/SafeAnchor/index.js +0 -0
- package/cjs/Schema/Schema.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/SidenavBody.js +0 -0
- package/cjs/Sidenav/SidenavHeader.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/index.js +0 -0
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/index.js +0 -0
- package/cjs/Tag/Tag.js +0 -0
- package/cjs/Tag/index.js +0 -0
- package/cjs/TagGroup/TagGroup.js +0 -0
- package/cjs/TagGroup/index.js +0 -0
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Whisper/index.js +0 -0
- package/cjs/locales/ar_EG.js +0 -0
- package/cjs/locales/da_DK.js +0 -0
- package/cjs/locales/de_DE.js +0 -0
- package/cjs/locales/default.js +0 -0
- package/cjs/locales/en_GB.js +0 -0
- package/cjs/locales/en_US.js +0 -0
- package/cjs/locales/es_AR.js +0 -0
- package/cjs/locales/es_ES.js +0 -0
- package/cjs/locales/fi_FI.js +0 -0
- package/cjs/locales/it_IT.js +0 -0
- package/cjs/locales/ko_KR.js +0 -0
- package/cjs/locales/pt_BR.js +0 -0
- package/cjs/locales/ru_RU.js +0 -0
- package/cjs/locales/sv_SE.js +0 -0
- package/cjs/locales/zh_CN.js +0 -0
- package/cjs/locales/zh_TW.js +0 -0
- package/cjs/toaster/ToastContainer.d.ts +2 -1
- package/cjs/toaster/ToastContainer.js +27 -26
- package/cjs/toaster/toaster.d.ts +1 -1
- package/cjs/toaster/toaster.js +43 -13
- package/cjs/toaster/useToaster.d.ts +1 -1
- package/cjs/utils/clone.js +0 -0
- package/cjs/utils/events.js +0 -0
- package/cjs/utils/getDOMNode.js +0 -0
- package/cjs/utils/getSafeRegExpString.js +0 -0
- package/cjs/utils/guid.js +0 -0
- package/cjs/utils/htmlPropsUtils.js +0 -0
- package/cjs/utils/index.d.ts +1 -0
- package/cjs/utils/index.js +6 -1
- package/cjs/utils/isOneOf.js +0 -0
- package/cjs/utils/prefix.js +0 -0
- package/cjs/utils/render.d.ts +3 -0
- package/cjs/utils/render.js +49 -0
- package/cjs/utils/shallowEqual.js +0 -0
- package/cjs/utils/shallowEqualArray.js +0 -0
- package/cjs/utils/statusIcons.js +0 -0
- package/cjs/utils/stringToObject.js +0 -0
- package/cjs/utils/tplTransform.js +0 -0
- package/cjs/utils/useClassNames.js +0 -0
- package/cjs/utils/useEnsuredRef.js +0 -0
- package/cjs/utils/useEventCallback.js +0 -0
- package/cjs/utils/useToggleCaret.js +0 -0
- package/cjs/utils/useUniqueId.js +10 -2
- package/cjs/utils/useUpdateEffect.js +0 -0
- package/cjs/utils/useUpdatedRef.js +0 -0
- package/cjs/utils/useWillUnmount.js +0 -0
- package/dist/rsuite-rtl.css +1 -1
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +1 -1
- package/dist/rsuite.js +233 -182
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +2 -0
- package/dist/rsuite.min.js.map +1 -1
- package/esm/@types/global.d.ts +0 -0
- package/esm/Affix/index.js +0 -0
- package/esm/Animation/Bounce.js +0 -0
- package/esm/Animation/Fade.js +0 -0
- package/esm/Animation/Slide.js +0 -0
- package/esm/Animation/index.js +0 -0
- package/esm/Animation/utils.js +0 -0
- package/esm/AutoComplete/AutoComplete.d.ts +3 -1
- package/esm/AutoComplete/AutoComplete.js +6 -2
- package/esm/AutoComplete/index.js +0 -0
- package/esm/AutoComplete/test/AutoComplete.test.d.ts +1 -0
- package/esm/AutoComplete/test/AutoComplete.test.js +18 -0
- package/esm/Avatar/index.js +0 -0
- package/esm/Badge/index.js +0 -0
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/index.js +0 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +0 -0
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Calendar/index.js +0 -0
- package/esm/Carousel/index.js +0 -0
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/index.js +0 -0
- package/esm/CloseButton/CloseButton.js +0 -0
- package/esm/CloseButton/index.js +0 -0
- package/esm/Col/index.js +0 -0
- package/esm/Container/index.js +0 -0
- package/esm/Content/Content.js +0 -0
- package/esm/Content/index.js +0 -0
- package/esm/CustomProvider/FormattedDate.js +0 -0
- package/esm/CustomProvider/index.js +0 -0
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/DatePicker/index.js +0 -0
- package/esm/DateRangePicker/DateRangePicker.js +1 -1
- package/esm/DateRangePicker/disabledDateUtils.js +0 -0
- package/esm/Disclosure/Disclosure.d.ts +2 -2
- package/esm/Disclosure/Disclosure.js +6 -6
- package/esm/Disclosure/index.js +0 -0
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/Footer.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/FormControlLabel.js +0 -0
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +0 -0
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormGroup/index.js +0 -0
- package/esm/FormHelpText/index.js +0 -0
- package/esm/Grid/Grid.js +0 -0
- package/esm/Grid/index.js +0 -0
- package/esm/Header/Header.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/IconButton/index.js +0 -0
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/InputGroupButton.js +0 -0
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/index.js +0 -0
- package/esm/InputPicker/index.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/index.js +0 -0
- package/esm/Menu/MenuContext.js +0 -0
- package/esm/Menu/index.js +0 -0
- package/esm/Message/index.js +0 -0
- package/esm/Modal/ModalFooter.js +0 -0
- package/esm/Modal/index.js +0 -0
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/NavbarBody.js +0 -0
- package/esm/Navbar/NavbarBrand.js +0 -0
- package/esm/Navbar/NavbarDropdownMenu.js +14 -8
- package/esm/Navbar/NavbarHeader.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Overlay/OverlayTrigger.js +44 -35
- package/esm/Overlay/index.js +0 -0
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Picker/PickerToggle.d.ts +1 -1
- package/esm/Picker/PickerToggle.js +52 -27
- package/esm/Picker/types.js +0 -0
- package/esm/Placeholder/Placeholder.js +0 -0
- package/esm/Placeholder/index.js +0 -0
- package/esm/Plaintext/index.js +0 -0
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/Progress.js +0 -0
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/index.js +0 -0
- package/esm/Ripple/index.js +0 -0
- package/esm/Row/Row.js +0 -0
- package/esm/Row/index.js +0 -0
- package/esm/SafeAnchor/index.js +0 -0
- package/esm/Schema/Schema.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/SidenavBody.js +0 -0
- package/esm/Sidenav/SidenavHeader.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/index.js +0 -0
- package/esm/Steps/index.js +0 -0
- package/esm/Table/index.js +0 -0
- package/esm/Tag/Tag.js +0 -0
- package/esm/Tag/index.js +0 -0
- package/esm/TagGroup/TagGroup.js +0 -0
- package/esm/TagGroup/index.js +0 -0
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/index.js +0 -0
- package/esm/Whisper/index.js +0 -0
- package/esm/locales/ar_EG.js +0 -0
- package/esm/locales/da_DK.js +0 -0
- package/esm/locales/de_DE.js +0 -0
- package/esm/locales/default.js +0 -0
- package/esm/locales/en_GB.js +0 -0
- package/esm/locales/en_US.js +0 -0
- package/esm/locales/es_AR.js +0 -0
- package/esm/locales/es_ES.js +0 -0
- package/esm/locales/fi_FI.js +0 -0
- package/esm/locales/it_IT.js +0 -0
- package/esm/locales/ko_KR.js +0 -0
- package/esm/locales/pt_BR.js +0 -0
- package/esm/locales/ru_RU.js +0 -0
- package/esm/locales/sv_SE.js +0 -0
- package/esm/locales/zh_CN.js +0 -0
- package/esm/locales/zh_TW.js +0 -0
- package/esm/toaster/ToastContainer.d.ts +2 -1
- package/esm/toaster/ToastContainer.js +28 -26
- package/esm/toaster/toaster.d.ts +1 -1
- package/esm/toaster/toaster.js +41 -13
- package/esm/toaster/useToaster.d.ts +1 -1
- package/esm/utils/clone.js +0 -0
- package/esm/utils/events.js +0 -0
- package/esm/utils/getDOMNode.js +0 -0
- package/esm/utils/getSafeRegExpString.js +0 -0
- package/esm/utils/guid.js +0 -0
- package/esm/utils/htmlPropsUtils.js +0 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.js +1 -0
- package/esm/utils/isOneOf.js +0 -0
- package/esm/utils/prefix.js +0 -0
- package/esm/utils/render.d.ts +3 -0
- package/esm/utils/render.js +37 -0
- package/esm/utils/shallowEqual.js +0 -0
- package/esm/utils/shallowEqualArray.js +0 -0
- package/esm/utils/statusIcons.js +0 -0
- package/esm/utils/stringToObject.js +0 -0
- package/esm/utils/tplTransform.js +0 -0
- package/esm/utils/useClassNames.js +0 -0
- package/esm/utils/useEnsuredRef.js +0 -0
- package/esm/utils/useEventCallback.js +0 -0
- package/esm/utils/useToggleCaret.js +0 -0
- package/esm/utils/useUniqueId.js +7 -2
- package/esm/utils/useUpdateEffect.js +0 -0
- package/esm/utils/useUpdatedRef.js +0 -0
- package/esm/utils/useWillUnmount.js +0 -0
- package/package.json +2 -2
- package/styles/color-modes.less +0 -0
- package/styles/colors/light.less +0 -0
- package/styles/common.less +0 -0
- package/styles/mixins/color-modes.less +0 -0
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/listbox.less +0 -0
- package/styles/mixins/menu.less +0 -0
- package/styles/normalize.less +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/toaster/styles/animation.less +0 -0
- package/toaster/styles/index.less +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/Avatar/styles/mixin.less
CHANGED
|
File without changes
|
package/Badge/styles/index.less
CHANGED
|
File without changes
|
|
File without changes
|
package/Button/styles/mixin.less
CHANGED
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [5.16.4](https://github.com/rsuite/rsuite/compare/v5.16.3...v5.16.4) (2022-08-04)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **DatePicker:** fix issues with focus event ([#2636](https://github.com/rsuite/rsuite/issues/2636)) ([76b68aa](https://github.com/rsuite/rsuite/commit/76b68aa79dd129a210238517c279fe41b0da89ac))
|
|
6
|
+
|
|
1
7
|
## [5.16.3](https://github.com/rsuite/rsuite/compare/v5.16.2...v5.16.3) (2022-07-29)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/Drawer/styles/mixin.less
CHANGED
|
File without changes
|
|
File without changes
|
package/Footer/styles/index.less
CHANGED
|
File without changes
|
package/Form/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
|
package/Grid/styles/mixin.less
CHANGED
|
File without changes
|
package/Header/styles/index.less
CHANGED
|
File without changes
|
package/Input/styles/index.less
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/LICENSE
CHANGED
|
File without changes
|
package/List/styles/index.less
CHANGED
|
File without changes
|
package/Loader/styles/index.less
CHANGED
|
File without changes
|
package/Loader/styles/mixin.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
|
package/Panel/styles/index.less
CHANGED
|
File without changes
|
package/Picker/styles/index.less
CHANGED
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
padding-right: 32px;
|
|
105
105
|
color: var(--rs-text-primary);
|
|
106
106
|
background-color: var(--rs-input-bg);
|
|
107
|
+
outline: none;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
&.rs-btn-lg &-textbox {
|
|
@@ -120,7 +121,6 @@
|
|
|
120
121
|
|
|
121
122
|
&-read-only {
|
|
122
123
|
opacity: 0;
|
|
123
|
-
pointer-events: none;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/Radio/styles/mixin.less
CHANGED
|
File without changes
|
|
File without changes
|
package/Rate/styles/index.less
CHANGED
|
File without changes
|
package/Ripple/styles/index.less
CHANGED
|
File without changes
|
|
File without changes
|
package/Row/styles/index.less
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/Steps/styles/index.less
CHANGED
|
File without changes
|
package/Table/styles/mixin.less
CHANGED
|
File without changes
|
package/Tag/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
|
package/cjs/@types/global.d.ts
CHANGED
|
File without changes
|
package/cjs/Affix/index.js
CHANGED
|
File without changes
|
package/cjs/Animation/Bounce.js
CHANGED
|
File without changes
|
package/cjs/Animation/Fade.js
CHANGED
|
File without changes
|
package/cjs/Animation/Slide.js
CHANGED
|
File without changes
|
package/cjs/Animation/index.js
CHANGED
|
File without changes
|
package/cjs/Animation/utils.js
CHANGED
|
File without changes
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { PickerComponent } from '../Picker';
|
|
3
3
|
import { WithAsProps, FormControlPickerProps, TypeAttributes, ItemDataType } from '../@types/common';
|
|
4
4
|
export declare type ValueType = string;
|
|
5
|
-
export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormControlPickerProps<T, any, ItemDataType> {
|
|
5
|
+
export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormControlPickerProps<T, any, ItemDataType | string> {
|
|
6
6
|
/** Additional classes for menu */
|
|
7
7
|
menuClassName?: string;
|
|
8
8
|
/** The placement of component */
|
|
@@ -13,6 +13,8 @@ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormContr
|
|
|
13
13
|
open?: boolean;
|
|
14
14
|
/** Placeholder text */
|
|
15
15
|
placeholder?: string;
|
|
16
|
+
/** The width of the menu will automatically follow the width of the input box */
|
|
17
|
+
menuAutoWidth?: boolean;
|
|
16
18
|
/** Custom filter function to determine whether the item will be displayed */
|
|
17
19
|
filterBy?: (value: string, item: ItemDataType) => boolean;
|
|
18
20
|
/** Called when a option is selected */
|
|
@@ -44,6 +44,8 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
44
44
|
classPrefix = _props$classPrefix === void 0 ? 'auto-complete' : _props$classPrefix,
|
|
45
45
|
_props$defaultValue = props.defaultValue,
|
|
46
46
|
defaultValue = _props$defaultValue === void 0 ? '' : _props$defaultValue,
|
|
47
|
+
_props$menuAutoWidth = props.menuAutoWidth,
|
|
48
|
+
menuAutoWidth = _props$menuAutoWidth === void 0 ? true : _props$menuAutoWidth,
|
|
47
49
|
data = props.data,
|
|
48
50
|
valueProp = props.value,
|
|
49
51
|
open = props.open,
|
|
@@ -61,7 +63,7 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
61
63
|
onFocus = props.onFocus,
|
|
62
64
|
onBlur = props.onBlur,
|
|
63
65
|
onMenuFocus = props.onMenuFocus,
|
|
64
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "data", "value", "open", "style", "menuClassName", "id", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
|
|
66
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "menuAutoWidth", "data", "value", "open", "style", "menuClassName", "id", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
|
|
65
67
|
var datalist = (0, _utils3.transformData)(data);
|
|
66
68
|
|
|
67
69
|
var _useControlled = (0, _utils.useControlled)(valueProp, defaultValue),
|
|
@@ -203,7 +205,8 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
203
205
|
style: styles,
|
|
204
206
|
className: className,
|
|
205
207
|
onKeyDown: handleKeyDownEvent,
|
|
206
|
-
target: triggerRef
|
|
208
|
+
target: triggerRef,
|
|
209
|
+
autoWidth: menuAutoWidth
|
|
207
210
|
}, renderMenu ? renderMenu(menu) : menu);
|
|
208
211
|
};
|
|
209
212
|
|
|
@@ -239,6 +242,7 @@ AutoComplete.propTypes = (0, _extends2.default)({}, _utils2.animationPropTypes,
|
|
|
239
242
|
defaultValue: _propTypes.default.string,
|
|
240
243
|
className: _propTypes.default.string,
|
|
241
244
|
menuClassName: _propTypes.default.string,
|
|
245
|
+
menuAutoWidth: _propTypes.default.bool,
|
|
242
246
|
placement: _propTypes.default.oneOf(_utils.PLACEMENT),
|
|
243
247
|
onFocus: _propTypes.default.func,
|
|
244
248
|
onMenuFocus: _propTypes.default.func,
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _AutoComplete = _interopRequireDefault(require("../AutoComplete"));
|
|
8
|
+
|
|
9
|
+
/*#__PURE__*/
|
|
10
|
+
_react.default.createElement(_AutoComplete.default, {
|
|
11
|
+
data: ['item1', 'item2']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
/*#__PURE__*/
|
|
15
|
+
_react.default.createElement(_AutoComplete.default, {
|
|
16
|
+
data: [{
|
|
17
|
+
label: 'item1',
|
|
18
|
+
value: 'item1'
|
|
19
|
+
}, {
|
|
20
|
+
label: 'item2',
|
|
21
|
+
value: 'item2'
|
|
22
|
+
}]
|
|
23
|
+
});
|
package/cjs/Avatar/index.js
CHANGED
|
File without changes
|
package/cjs/Badge/index.js
CHANGED
|
File without changes
|
package/cjs/Breadcrumb/index.js
CHANGED
|
File without changes
|
package/cjs/Button/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/Calendar/index.js
CHANGED
|
File without changes
|
package/cjs/Carousel/index.js
CHANGED
|
File without changes
|
package/cjs/Cascader/index.js
CHANGED
|
File without changes
|
package/cjs/CheckPicker/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/CloseButton/index.js
CHANGED
|
File without changes
|
package/cjs/Col/index.js
CHANGED
|
File without changes
|
package/cjs/Container/index.js
CHANGED
|
File without changes
|
package/cjs/Content/Content.js
CHANGED
|
File without changes
|
package/cjs/Content/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -467,7 +467,7 @@ var DatePicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
467
467
|
as: toggleAs,
|
|
468
468
|
ref: targetRef,
|
|
469
469
|
appearance: appearance,
|
|
470
|
-
|
|
470
|
+
editable: true,
|
|
471
471
|
inputValue: value ? formatDate(value, formatStr) : '',
|
|
472
472
|
inputPlaceholder: typeof placeholder === 'string' && placeholder ? placeholder : formatStr,
|
|
473
473
|
inputMask: _utils.DateUtils.getDateMask(formatStr),
|
package/cjs/DatePicker/index.js
CHANGED
|
File without changes
|
|
@@ -624,7 +624,7 @@ var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, re
|
|
|
624
624
|
as: toggleAs,
|
|
625
625
|
ref: targetRef,
|
|
626
626
|
appearance: appearance,
|
|
627
|
-
|
|
627
|
+
editable: true,
|
|
628
628
|
inputMask: _utils.DateUtils.getDateMask(rangeFormatStr),
|
|
629
629
|
inputValue: value ? getDisplayString(value, true) : '',
|
|
630
630
|
inputPlaceholder: typeof placeholder === 'string' && placeholder ? placeholder : rangeFormatStr,
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import DisclosureButton from './DisclosureButton';
|
|
3
3
|
import DisclosureContent from './DisclosureContent';
|
|
4
|
-
export declare type DisclosureTrigger = 'click' | '
|
|
5
|
-
export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, '
|
|
4
|
+
export declare type DisclosureTrigger = 'click' | 'hover';
|
|
5
|
+
export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, 'onMouseEnter' | 'onMouseLeave'> {
|
|
6
6
|
open: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface DisclosureProps {
|
|
@@ -74,7 +74,7 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
var
|
|
77
|
+
var onMouseEnter = (0, _react.useCallback)(function (event) {
|
|
78
78
|
if (!open) {
|
|
79
79
|
dispatch({
|
|
80
80
|
type: _DisclosureContext.DisclosureActionTypes.Show
|
|
@@ -82,7 +82,7 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
82
82
|
onToggle === null || onToggle === void 0 ? void 0 : onToggle(true, event);
|
|
83
83
|
}
|
|
84
84
|
}, [open, dispatch, onToggle]);
|
|
85
|
-
var
|
|
85
|
+
var onMouseLeave = (0, _react.useCallback)(function (event) {
|
|
86
86
|
if (open) {
|
|
87
87
|
dispatch({
|
|
88
88
|
type: _DisclosureContext.DisclosureActionTypes.Hide
|
|
@@ -113,13 +113,13 @@ var Disclosure = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
113
113
|
open: open
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
if (trigger.includes('
|
|
117
|
-
renderProps.
|
|
118
|
-
renderProps.
|
|
116
|
+
if (trigger.includes('hover')) {
|
|
117
|
+
renderProps.onMouseEnter = onMouseEnter;
|
|
118
|
+
renderProps.onMouseLeave = onMouseLeave;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
return renderProps;
|
|
122
|
-
}, [open, trigger,
|
|
122
|
+
}, [open, trigger, onMouseEnter, onMouseLeave]);
|
|
123
123
|
return /*#__PURE__*/_react.default.createElement(_DisclosureContext.default.Provider, {
|
|
124
124
|
value: contextValue
|
|
125
125
|
}, children(renderProps, containerElementRef));
|
package/cjs/Disclosure/index.js
CHANGED
|
File without changes
|
package/cjs/Divider/index.js
CHANGED
|
File without changes
|
package/cjs/Drawer/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/Dropdown/index.js
CHANGED
|
File without changes
|
package/cjs/FlexboxGrid/index.js
CHANGED
|
File without changes
|
package/cjs/Footer/Footer.js
CHANGED
|
File without changes
|
package/cjs/Footer/index.js
CHANGED
|
File without changes
|
package/cjs/FormControl/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/FormGroup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/Grid/Grid.js
CHANGED
|
File without changes
|
package/cjs/Grid/index.js
CHANGED
|
File without changes
|
package/cjs/Header/Header.js
CHANGED
|
File without changes
|
package/cjs/Header/index.js
CHANGED
|
File without changes
|
package/cjs/IconButton/index.js
CHANGED
|
File without changes
|
package/cjs/Input/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/InputGroup/index.js
CHANGED
|
File without changes
|
package/cjs/InputNumber/index.js
CHANGED
|
File without changes
|
package/cjs/InputPicker/index.js
CHANGED
|
File without changes
|
package/cjs/List/index.js
CHANGED
|
File without changes
|
package/cjs/Loader/index.js
CHANGED
|
File without changes
|
package/cjs/Menu/MenuContext.js
CHANGED
|
File without changes
|
package/cjs/Menu/index.js
CHANGED
|
File without changes
|
package/cjs/Message/index.js
CHANGED
|
File without changes
|
package/cjs/Modal/ModalFooter.js
CHANGED
|
File without changes
|
package/cjs/Modal/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/Nav/index.js
CHANGED
|
File without changes
|
package/cjs/Navbar/NavbarBody.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -15,17 +15,17 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _omit2 = _interopRequireDefault(require("lodash/omit"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
23
23
|
|
|
24
24
|
var _AngleLeft = _interopRequireDefault(require("@rsuite/icons/legacy/AngleLeft"));
|
|
25
25
|
|
|
26
26
|
var _AngleRight = _interopRequireDefault(require("@rsuite/icons/legacy/AngleRight"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _utils = require("../utils");
|
|
29
29
|
|
|
30
30
|
var _ = require(".");
|
|
31
31
|
|
|
@@ -68,7 +68,7 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
68
68
|
openDirection = _props$openDirection === void 0 ? 'end' : _props$openDirection,
|
|
69
69
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["onToggle", "eventKey", "title", "classPrefix", "children", "openDirection"]);
|
|
70
70
|
|
|
71
|
-
var _useCustom = (0,
|
|
71
|
+
var _useCustom = (0, _utils.useCustom)('DropdownMenu'),
|
|
72
72
|
rtl = _useCustom.rtl;
|
|
73
73
|
|
|
74
74
|
var _useClassNames = (0, _utils.useClassNames)(classPrefix),
|
|
@@ -94,7 +94,7 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
94
94
|
var Icon = rtl ? _AngleLeft.default : _AngleRight.default;
|
|
95
95
|
return /*#__PURE__*/_react.default.createElement(_Disclosure.default, {
|
|
96
96
|
hideOnClickOutside: true,
|
|
97
|
-
trigger: ['click', '
|
|
97
|
+
trigger: ['click', 'hover'],
|
|
98
98
|
onToggle: function onToggle(open, event) {
|
|
99
99
|
return _onToggle === null || _onToggle === void 0 ? void 0 : _onToggle(open, undefined, event);
|
|
100
100
|
}
|
|
@@ -117,12 +117,18 @@ var NavbarDropdownMenu = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
117
117
|
open: open,
|
|
118
118
|
disabled: disabled
|
|
119
119
|
}));
|
|
120
|
+
var dataAttributes = {
|
|
121
|
+
'data-event-key': eventKey
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
if (!(0, _isNil.default)(eventKey) && typeof eventKey !== 'string') {
|
|
125
|
+
dataAttributes['data-event-key-type'] = typeof eventKey;
|
|
126
|
+
}
|
|
127
|
+
|
|
120
128
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
121
129
|
ref: (0, _utils.mergeRefs)(buttonRef, buttonRef),
|
|
122
|
-
className: classes
|
|
123
|
-
|
|
124
|
-
"data-event-key-type": typeof eventKey
|
|
125
|
-
}, buttonProps), icon && /*#__PURE__*/_react.default.cloneElement(icon, {
|
|
130
|
+
className: classes
|
|
131
|
+
}, dataAttributes, buttonProps), icon && /*#__PURE__*/_react.default.cloneElement(icon, {
|
|
126
132
|
className: prefix('menu-icon')
|
|
127
133
|
}), title, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
128
134
|
className: prefix(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2.default)(["toggle-icon"])))
|
|
File without changes
|
|
File without changes
|