rsuite 5.18.1-beta.4 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -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/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/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 +5 -0
- 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/index.js +0 -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/MonthDropdown.d.ts +0 -1
- package/cjs/Calendar/MonthDropdown.js +40 -27
- package/cjs/Carousel/index.js +0 -0
- package/cjs/Cascader/Cascader.d.ts +2 -2
- package/cjs/Cascader/DropdownMenu.js +2 -5
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/CheckPicker.d.ts +2 -2
- package/cjs/CheckPicker/CheckPicker.js +1 -4
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +31 -31
- 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/index.js +0 -0
- 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/Dropdown.js +1 -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/InputPicker.js +1 -4
- 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/DropdownMenu.js +2 -5
- 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 +10 -16
- package/cjs/Navbar/NavbarHeader.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Overlay/OverlayTrigger.d.ts +2 -2
- 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/DropdownMenu.d.ts +1 -2
- package/cjs/Picker/DropdownMenu.js +33 -39
- package/cjs/Picker/PickerOverlay.d.ts +2 -2
- package/cjs/Picker/PickerToggle.js +1 -1
- package/cjs/Picker/PickerToggleTrigger.d.ts +2 -2
- package/cjs/Picker/VirtualizedList.d.ts +37 -0
- package/cjs/Picker/VirtualizedList.js +15 -0
- package/cjs/Picker/index.d.ts +3 -3
- package/cjs/Picker/types.d.ts +5 -7
- package/cjs/Picker/utils.d.ts +12 -11
- package/cjs/Picker/utils.js +0 -4
- 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/SelectPicker/SelectPicker.d.ts +5 -4
- package/cjs/SelectPicker/SelectPicker.js +1 -4
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/SidenavBody.js +0 -0
- package/cjs/Sidenav/SidenavHeader.js +0 -0
- package/cjs/Sidenav/SidenavItem.js +8 -1
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/index.js +0 -0
- package/cjs/Stack/Stack.d.ts +6 -2
- package/cjs/Stack/Stack.js +17 -7
- package/cjs/Stack/StackItem.d.ts +26 -0
- package/cjs/Stack/StackItem.js +53 -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/Tree.d.ts +5 -2
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/TreePicker.js +34 -34
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/TreePicker/test/TreePicker.test.js +0 -14
- package/cjs/Whisper/Whisper.d.ts +3 -3
- package/cjs/Whisper/index.js +0 -0
- package/cjs/index.d.ts +0 -1
- 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 +1 -2
- package/cjs/toaster/ToastContainer.js +26 -27
- package/cjs/toaster/toaster.d.ts +1 -1
- package/cjs/toaster/toaster.js +13 -43
- 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 +0 -1
- package/cjs/utils/index.js +1 -6
- package/cjs/utils/isOneOf.js +0 -0
- package/cjs/utils/prefix.js +0 -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/treeUtils.d.ts +2 -2
- 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 +2 -10
- 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 +4 -0
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +4 -0
- package/dist/rsuite.js +1104 -405
- 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 +0 -2
- 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/index.js +0 -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/MonthDropdown.d.ts +0 -1
- package/esm/Calendar/MonthDropdown.js +41 -26
- package/esm/Carousel/index.js +0 -0
- package/esm/Cascader/Cascader.d.ts +2 -2
- package/esm/Cascader/DropdownMenu.js +2 -5
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/CheckPicker.d.ts +2 -2
- package/esm/CheckPicker/CheckPicker.js +1 -4
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +30 -31
- 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/index.js +0 -0
- 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/Dropdown.js +1 -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/InputPicker.js +1 -4
- 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/DropdownMenu.js +2 -5
- 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 +8 -14
- package/esm/Navbar/NavbarHeader.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Overlay/OverlayTrigger.d.ts +2 -2
- 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/DropdownMenu.d.ts +1 -2
- package/esm/Picker/DropdownMenu.js +35 -39
- package/esm/Picker/PickerOverlay.d.ts +2 -2
- package/esm/Picker/PickerToggle.js +1 -1
- package/esm/Picker/PickerToggleTrigger.d.ts +2 -2
- package/esm/Picker/VirtualizedList.d.ts +37 -0
- package/esm/Picker/VirtualizedList.js +4 -0
- package/esm/Picker/index.d.ts +3 -3
- package/esm/Picker/types.d.ts +5 -7
- package/esm/Picker/utils.d.ts +12 -11
- package/esm/Picker/utils.js +0 -4
- 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/SelectPicker/SelectPicker.d.ts +5 -4
- package/esm/SelectPicker/SelectPicker.js +1 -4
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/SidenavBody.js +0 -0
- package/esm/Sidenav/SidenavHeader.js +0 -0
- package/esm/Sidenav/SidenavItem.js +6 -1
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/index.js +0 -0
- package/esm/Stack/Stack.d.ts +6 -2
- package/esm/Stack/Stack.js +15 -4
- package/esm/Stack/StackItem.d.ts +26 -0
- package/esm/Stack/StackItem.js +42 -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/Tree.d.ts +5 -2
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/TreePicker.js +32 -33
- package/esm/TreePicker/index.js +0 -0
- package/esm/TreePicker/test/TreePicker.test.js +0 -14
- package/esm/Whisper/Whisper.d.ts +3 -3
- package/esm/Whisper/index.js +0 -0
- package/esm/index.d.ts +0 -1
- 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 +1 -2
- package/esm/toaster/ToastContainer.js +26 -28
- package/esm/toaster/toaster.d.ts +1 -1
- package/esm/toaster/toaster.js +13 -41
- 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 +0 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/isOneOf.js +0 -0
- package/esm/utils/prefix.js +0 -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/treeUtils.d.ts +2 -2
- 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 +2 -7
- package/esm/utils/useUpdateEffect.js +0 -0
- package/esm/utils/useUpdatedRef.js +0 -0
- package/esm/utils/useWillUnmount.js +0 -0
- package/package.json +7 -7
- 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
- package/Windowing/package.json +0 -7
- package/cjs/Windowing/AutoSizer.d.ts +0 -25
- package/cjs/Windowing/AutoSizer.js +0 -107
- package/cjs/Windowing/List.d.ts +0 -45
- package/cjs/Windowing/List.js +0 -72
- package/cjs/Windowing/index.d.ts +0 -5
- package/cjs/Windowing/index.js +0 -19
- package/cjs/utils/render.d.ts +0 -3
- package/cjs/utils/render.js +0 -49
- package/esm/Windowing/AutoSizer.d.ts +0 -25
- package/esm/Windowing/AutoSizer.js +0 -92
- package/esm/Windowing/List.d.ts +0 -45
- package/esm/Windowing/List.js +0 -58
- package/esm/Windowing/index.d.ts +0 -5
- package/esm/Windowing/index.js +0 -3
- package/esm/utils/render.d.ts +0 -3
- package/esm/utils/render.js +0 -37
package/esm/@types/global.d.ts
CHANGED
|
File without changes
|
package/esm/Affix/index.js
CHANGED
|
File without changes
|
package/esm/Animation/Bounce.js
CHANGED
|
File without changes
|
package/esm/Animation/Fade.js
CHANGED
|
File without changes
|
package/esm/Animation/Slide.js
CHANGED
|
File without changes
|
package/esm/Animation/index.js
CHANGED
|
File without changes
|
package/esm/Animation/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Avatar/index.js
CHANGED
|
File without changes
|
package/esm/Badge/index.js
CHANGED
|
File without changes
|
package/esm/Breadcrumb/index.js
CHANGED
|
File without changes
|
package/esm/Button/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
import React, { useCallback
|
|
3
|
+
import React, { useCallback } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { AutoSizer,
|
|
5
|
+
import { AutoSizer, List } from '../Picker/VirtualizedList';
|
|
6
6
|
import { DateUtils, useClassNames } from '../utils';
|
|
7
7
|
import MonthDropdownItem from './MonthDropdownItem';
|
|
8
8
|
import { useCalendarContext } from './CalendarContext';
|
|
9
9
|
var monthMap = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
|
10
|
+
/**
|
|
11
|
+
* Set the row height.
|
|
12
|
+
* Add 1px to the first and last lines.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
function getRowHeight(count) {
|
|
16
|
+
return function (_ref) {
|
|
17
|
+
var index = _ref.index;
|
|
18
|
+
|
|
19
|
+
if (index === 0 || count - 1 === index) {
|
|
20
|
+
return 75 + 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return 75;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
10
27
|
var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
28
|
var _props$as = props.as,
|
|
12
29
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
13
30
|
className = props.className,
|
|
14
31
|
_props$classPrefix = props.classPrefix,
|
|
15
32
|
classPrefix = _props$classPrefix === void 0 ? 'calendar-month-dropdown' : _props$classPrefix,
|
|
16
|
-
limitStartYear = props.limitStartYear,
|
|
17
33
|
_props$limitEndYear = props.limitEndYear,
|
|
18
34
|
limitEndYear = _props$limitEndYear === void 0 ? 5 : _props$limitEndYear,
|
|
19
35
|
show = props.show,
|
|
@@ -22,7 +38,7 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
22
38
|
_props$width = props.width,
|
|
23
39
|
defaultWidth = _props$width === void 0 ? 256 : _props$width,
|
|
24
40
|
disabledMonth = props.disabledMonth,
|
|
25
|
-
rest = _objectWithoutPropertiesLoose(props, ["as", "className", "classPrefix", "
|
|
41
|
+
rest = _objectWithoutPropertiesLoose(props, ["as", "className", "classPrefix", "limitEndYear", "show", "height", "width", "disabledMonth"]);
|
|
26
42
|
|
|
27
43
|
var _useCalendarContext = useCalendarContext(),
|
|
28
44
|
_useCalendarContext$d = _useCalendarContext.date,
|
|
@@ -33,12 +49,9 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
33
49
|
merge = _useClassNames.merge,
|
|
34
50
|
withClassPrefix = _useClassNames.withClassPrefix;
|
|
35
51
|
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var endYear = thisYear + limitEndYear;
|
|
40
|
-
return endYear - startYear;
|
|
41
|
-
}, [limitEndYear, startYear, thisYear]);
|
|
52
|
+
var getRowCount = useCallback(function () {
|
|
53
|
+
return DateUtils.getYear(new Date()) + limitEndYear;
|
|
54
|
+
}, [limitEndYear]);
|
|
42
55
|
var isMonthDisabled = useCallback(function (year, month) {
|
|
43
56
|
if (disabledMonth) {
|
|
44
57
|
var days = DateUtils.getDaysInMonth(new Date(year, month)); // If all dates in a month are disabled, disable the current month
|
|
@@ -55,23 +68,26 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
55
68
|
return false;
|
|
56
69
|
}, [disabledMonth]);
|
|
57
70
|
|
|
58
|
-
var rowRenderer = function rowRenderer(
|
|
59
|
-
var index =
|
|
60
|
-
|
|
71
|
+
var rowRenderer = function rowRenderer(_ref2) {
|
|
72
|
+
var index = _ref2.index,
|
|
73
|
+
key = _ref2.key,
|
|
74
|
+
style = _ref2.style;
|
|
61
75
|
var selectedMonth = DateUtils.getMonth(date);
|
|
62
76
|
var selectedYear = DateUtils.getYear(date);
|
|
63
|
-
var year =
|
|
77
|
+
var year = index + 1;
|
|
64
78
|
var isSelectedYear = year === selectedYear;
|
|
79
|
+
var count = getRowCount();
|
|
65
80
|
var titleClassName = prefix('year', {
|
|
66
81
|
'year-active': isSelectedYear
|
|
67
82
|
});
|
|
68
83
|
var rowClassName = merge(prefix('row'), {
|
|
69
84
|
'first-row': index === 0,
|
|
70
|
-
'last-row': index ===
|
|
85
|
+
'last-row': index === count - 1
|
|
71
86
|
});
|
|
72
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
73
88
|
className: rowClassName,
|
|
74
89
|
role: "row",
|
|
90
|
+
key: key,
|
|
75
91
|
style: style
|
|
76
92
|
}, /*#__PURE__*/React.createElement("div", {
|
|
77
93
|
className: titleClassName,
|
|
@@ -90,12 +106,10 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
90
106
|
})));
|
|
91
107
|
};
|
|
92
108
|
|
|
109
|
+
var count = getRowCount();
|
|
93
110
|
var classes = merge(className, withClassPrefix(), {
|
|
94
111
|
show: show
|
|
95
112
|
});
|
|
96
|
-
var itemSize = 75;
|
|
97
|
-
var initialItemIndex = DateUtils.getYear(date) - startYear;
|
|
98
|
-
var initialScrollOffset = itemSize * initialItemIndex;
|
|
99
113
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
100
114
|
role: "menu"
|
|
101
115
|
}, rest, {
|
|
@@ -108,17 +122,18 @@ var MonthDropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
108
122
|
}, show && /*#__PURE__*/React.createElement(AutoSizer, {
|
|
109
123
|
defaultHeight: defaultHeight,
|
|
110
124
|
defaultWidth: defaultWidth
|
|
111
|
-
}, function (
|
|
112
|
-
var height =
|
|
113
|
-
width =
|
|
114
|
-
return /*#__PURE__*/React.createElement(
|
|
125
|
+
}, function (_ref3) {
|
|
126
|
+
var height = _ref3.height,
|
|
127
|
+
width = _ref3.width;
|
|
128
|
+
return /*#__PURE__*/React.createElement(List, {
|
|
115
129
|
className: prefix('row-wrapper'),
|
|
116
130
|
width: width || defaultWidth,
|
|
117
131
|
height: height || defaultHeight,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
132
|
+
rowHeight: getRowHeight(count),
|
|
133
|
+
rowCount: count,
|
|
134
|
+
scrollToIndex: DateUtils.getYear(date),
|
|
135
|
+
rowRenderer: rowRenderer
|
|
136
|
+
});
|
|
122
137
|
}))));
|
|
123
138
|
});
|
|
124
139
|
MonthDropdown.displayName = 'MonthDropdown';
|
package/esm/Carousel/index.js
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PickerLocale } from '../locales';
|
|
3
|
-
import {
|
|
3
|
+
import { PickerInstance } from '../Picker';
|
|
4
4
|
import { ItemDataType, FormControlPickerProps } from '../@types/common';
|
|
5
5
|
export declare type ValueType = number | string;
|
|
6
6
|
export interface CascaderProps<T = ValueType> extends FormControlPickerProps<T | null, PickerLocale, ItemDataType<T>> {
|
|
@@ -33,7 +33,7 @@ export interface CascaderProps<T = ValueType> extends FormControlPickerProps<T |
|
|
|
33
33
|
}
|
|
34
34
|
export interface CascaderComponent {
|
|
35
35
|
<T>(props: CascaderProps<T> & {
|
|
36
|
-
ref?: React.Ref<
|
|
36
|
+
ref?: React.Ref<PickerInstance>;
|
|
37
37
|
}): JSX.Element | null;
|
|
38
38
|
displayName?: string;
|
|
39
39
|
propTypes?: React.WeakValidationMap<CascaderProps<any>>;
|
|
@@ -45,10 +45,7 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
45
45
|
|
|
46
46
|
var classes = merge(className, prefix('items'));
|
|
47
47
|
var rootRef = useRef();
|
|
48
|
-
|
|
49
|
-
var _useCustom = useCustom('DropdownMenu'),
|
|
50
|
-
rtl = _useCustom.rtl;
|
|
51
|
-
|
|
48
|
+
var rtl = useCustom('DropdownMenu');
|
|
52
49
|
useEffect(function () {
|
|
53
50
|
var _rootRef$current;
|
|
54
51
|
|
|
@@ -99,7 +96,7 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
99
96
|
}); // Use `value` in keys when If `value` is string or number
|
|
100
97
|
|
|
101
98
|
var onlyKey = typeof value === 'number' || typeof value === 'string' ? value : index;
|
|
102
|
-
var Icon = node.loading ? SpinnerIcon : rtl ?
|
|
99
|
+
var Icon = node.loading ? SpinnerIcon : rtl ? AngleRightIcon : AngleLeftIcon;
|
|
103
100
|
return /*#__PURE__*/React.createElement(DropdownMenuItem, {
|
|
104
101
|
classPrefix: "picker-cascader-menu-item",
|
|
105
102
|
as: 'li',
|
package/esm/Cascader/index.js
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Ref } from 'react';
|
|
2
2
|
import { PickerLocale } from '../locales';
|
|
3
|
-
import {
|
|
3
|
+
import { PickerInstance, PickerToggleProps } from '../Picker';
|
|
4
4
|
import { ItemDataType, FormControlPickerProps } from '../@types/common';
|
|
5
5
|
import type { MultipleSelectProps } from '../SelectPicker';
|
|
6
6
|
export declare type ValueType = (number | string)[];
|
|
@@ -12,7 +12,7 @@ export interface CheckPickerProps<T> extends FormControlPickerProps<T[], PickerL
|
|
|
12
12
|
}
|
|
13
13
|
export interface CheckPickerComponent {
|
|
14
14
|
<T>(props: CheckPickerProps<T> & {
|
|
15
|
-
ref?: Ref<
|
|
15
|
+
ref?: Ref<PickerInstance>;
|
|
16
16
|
}): JSX.Element | null;
|
|
17
17
|
displayName?: string;
|
|
18
18
|
propTypes?: React.WeakValidationMap<CheckPickerProps<any>>;
|
|
@@ -81,7 +81,6 @@ var CheckPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
81
81
|
var targetRef = useRef(null);
|
|
82
82
|
var overlayRef = useRef(null);
|
|
83
83
|
var searchInputRef = useRef(null);
|
|
84
|
-
var listRef = useRef(null);
|
|
85
84
|
|
|
86
85
|
var _useCustom = useCustom('Picker', overrideLocale),
|
|
87
86
|
locale = _useCustom.locale;
|
|
@@ -236,8 +235,7 @@ var CheckPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
236
235
|
usePublicMethods(ref, {
|
|
237
236
|
triggerRef: triggerRef,
|
|
238
237
|
overlayRef: overlayRef,
|
|
239
|
-
targetRef: targetRef
|
|
240
|
-
listRef: listRef
|
|
238
|
+
targetRef: targetRef
|
|
241
239
|
});
|
|
242
240
|
var selectedItems = data.filter(function (item) {
|
|
243
241
|
return value === null || value === void 0 ? void 0 : value.some(function (val) {
|
|
@@ -310,7 +308,6 @@ var CheckPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
310
308
|
var menu = items.length || filteredStickyItems.length ? /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
311
309
|
id: id ? id + "-listbox" : undefined,
|
|
312
310
|
listProps: listProps,
|
|
313
|
-
listRef: listRef,
|
|
314
311
|
disabledItemValues: disabledItemValues,
|
|
315
312
|
valueKey: valueKey,
|
|
316
313
|
labelKey: labelKey,
|
package/esm/CheckPicker/index.js
CHANGED
|
File without changes
|
|
@@ -9,7 +9,7 @@ import _isNil from "lodash/isNil";
|
|
|
9
9
|
import React, { useState, useRef, useEffect, useCallback, useContext } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
|
-
import { List, AutoSizer } from '../
|
|
12
|
+
import { List, AutoSizer } from '../Picker/VirtualizedList';
|
|
13
13
|
import CheckTreeNode from './CheckTreeNode';
|
|
14
14
|
import TreeContext from '../Tree/TreeContext';
|
|
15
15
|
import { getTreeNodeIndent } from '../utils/treeUtils';
|
|
@@ -19,11 +19,6 @@ import { isEveryChildChecked, isSomeNodeHasChildren, isAllSiblingNodeUncheckable
|
|
|
19
19
|
import { hasVisibleChildren, getExpandWhenSearching, useTreeSearch, useTreeNodeRefs, getDefaultExpandItemValues, useFlattenTreeData, focusNextItem, getFocusableItems, focusPreviousItem, toggleExpand, getActiveItem, useGetTreeNodeChildren, focusToActiveTreeNode, focusTreeNode, leftArrowHandler, rightArrowHandler, isSearching } from '../utils/treeUtils';
|
|
20
20
|
import { maxTreeHeight } from '../TreePicker/TreePicker';
|
|
21
21
|
var emptyArray = [];
|
|
22
|
-
|
|
23
|
-
var itemSize = function itemSize() {
|
|
24
|
-
return 36;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
22
|
var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
28
23
|
var _props$as = props.as,
|
|
29
24
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -613,28 +608,31 @@ var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
613
608
|
}, nodeProps));
|
|
614
609
|
};
|
|
615
610
|
|
|
616
|
-
var renderVirtualListNode = function renderVirtualListNode(
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
611
|
+
var renderVirtualListNode = function renderVirtualListNode(nodes) {
|
|
612
|
+
return function (_ref3) {
|
|
613
|
+
var key = _ref3.key,
|
|
614
|
+
index = _ref3.index,
|
|
615
|
+
style = _ref3.style;
|
|
616
|
+
var node = nodes[index];
|
|
617
|
+
var layer = node.layer,
|
|
618
|
+
refKey = node.refKey,
|
|
619
|
+
visible = node.visible;
|
|
620
|
+
var expand = getExpandWhenSearching(searchKeywordState, expandItemValues.includes(node[valueKey]));
|
|
621
|
+
|
|
622
|
+
var nodeProps = _extends({}, getTreeNodeProps(_extends({}, node, {
|
|
623
|
+
expand: expand
|
|
624
|
+
}), layer), {
|
|
625
|
+
hasChildren: node.hasChildren
|
|
626
|
+
});
|
|
631
627
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
628
|
+
return visible && /*#__PURE__*/React.createElement(CheckTreeNode, _extends({
|
|
629
|
+
style: style,
|
|
630
|
+
key: key,
|
|
631
|
+
ref: function ref(_ref4) {
|
|
632
|
+
return saveTreeNodeRef(_ref4, refKey);
|
|
633
|
+
}
|
|
634
|
+
}, nodeProps));
|
|
635
|
+
};
|
|
638
636
|
};
|
|
639
637
|
|
|
640
638
|
var renderCheckTree = function renderCheckTree() {
|
|
@@ -679,10 +677,11 @@ var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
679
677
|
ref: listRef,
|
|
680
678
|
width: width,
|
|
681
679
|
height: height,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
680
|
+
rowHeight: 36,
|
|
681
|
+
rowCount: formattedNodes.length,
|
|
682
|
+
rowRenderer: renderVirtualListNode(formattedNodes),
|
|
683
|
+
scrollToAlignment: "center"
|
|
684
|
+
}, listProps));
|
|
686
685
|
}) : formattedNodes));
|
|
687
686
|
};
|
|
688
687
|
|
|
File without changes
|
package/esm/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/CloseButton/index.js
CHANGED
|
File without changes
|
package/esm/Col/index.js
CHANGED
|
File without changes
|
package/esm/Container/index.js
CHANGED
|
File without changes
|
package/esm/Content/Content.js
CHANGED
|
File without changes
|
package/esm/Content/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/DatePicker/index.js
CHANGED
|
File without changes
|
|
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' | 'mouseover';
|
|
5
|
+
export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, 'onMouseOver' | 'onMouseOut'> {
|
|
6
6
|
open: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface DisclosureProps {
|
|
@@ -59,7 +59,7 @@ var Disclosure = /*#__PURE__*/React.memo(function (props) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
var
|
|
62
|
+
var onMouseOver = useCallback(function (event) {
|
|
63
63
|
if (!open) {
|
|
64
64
|
dispatch({
|
|
65
65
|
type: DisclosureActionTypes.Show
|
|
@@ -67,7 +67,7 @@ var Disclosure = /*#__PURE__*/React.memo(function (props) {
|
|
|
67
67
|
onToggle === null || onToggle === void 0 ? void 0 : onToggle(true, event);
|
|
68
68
|
}
|
|
69
69
|
}, [open, dispatch, onToggle]);
|
|
70
|
-
var
|
|
70
|
+
var onMouseOut = useCallback(function (event) {
|
|
71
71
|
if (open) {
|
|
72
72
|
dispatch({
|
|
73
73
|
type: DisclosureActionTypes.Hide
|
|
@@ -98,13 +98,13 @@ var Disclosure = /*#__PURE__*/React.memo(function (props) {
|
|
|
98
98
|
open: open
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
if (trigger.includes('
|
|
102
|
-
renderProps.
|
|
103
|
-
renderProps.
|
|
101
|
+
if (trigger.includes('mouseover')) {
|
|
102
|
+
renderProps.onMouseOver = onMouseOver;
|
|
103
|
+
renderProps.onMouseOut = onMouseOut;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
return renderProps;
|
|
107
|
-
}, [open, trigger,
|
|
107
|
+
}, [open, trigger, onMouseOver, onMouseOut]);
|
|
108
108
|
return /*#__PURE__*/React.createElement(DisclosureContext.Provider, {
|
|
109
109
|
value: contextValue
|
|
110
110
|
}, children(renderProps, containerElementRef));
|
package/esm/Disclosure/index.js
CHANGED
|
File without changes
|
package/esm/Divider/index.js
CHANGED
|
File without changes
|
package/esm/Drawer/index.js
CHANGED
|
File without changes
|
package/esm/Dropdown/Dropdown.js
CHANGED
|
@@ -123,6 +123,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
123
123
|
defaultOpen: defaultOpen,
|
|
124
124
|
menuButtonText: title,
|
|
125
125
|
renderMenuButton: renderMenuButton,
|
|
126
|
+
disabled: disabled,
|
|
126
127
|
openMenuOn: menuButtonTriggers,
|
|
127
128
|
renderMenuPopup: function renderMenuPopup(_ref, popupRef) {
|
|
128
129
|
var open = _ref.open,
|
|
File without changes
|
package/esm/Dropdown/index.js
CHANGED
|
File without changes
|
package/esm/FlexboxGrid/index.js
CHANGED
|
File without changes
|
package/esm/Footer/Footer.js
CHANGED
|
File without changes
|
package/esm/Footer/index.js
CHANGED
|
File without changes
|
package/esm/FormControl/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/FormGroup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Grid/Grid.js
CHANGED
|
File without changes
|
package/esm/Grid/index.js
CHANGED
|
File without changes
|
package/esm/Header/Header.js
CHANGED
|
File without changes
|
package/esm/Header/index.js
CHANGED
|
File without changes
|
package/esm/IconButton/index.js
CHANGED
|
File without changes
|
package/esm/Input/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/InputGroup/index.js
CHANGED
|
File without changes
|
package/esm/InputNumber/index.js
CHANGED
|
File without changes
|
|
@@ -112,7 +112,6 @@ var InputPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
112
112
|
var targetRef = useRef(null);
|
|
113
113
|
var triggerRef = useRef(null);
|
|
114
114
|
var inputRef = useRef();
|
|
115
|
-
var listRef = useRef(null);
|
|
116
115
|
|
|
117
116
|
var _useCustom = useCustom(['Picker', 'InputPicker'], overrideLocale),
|
|
118
117
|
locale = _useCustom.locale;
|
|
@@ -404,8 +403,7 @@ var InputPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
404
403
|
usePublicMethods(ref, {
|
|
405
404
|
triggerRef: triggerRef,
|
|
406
405
|
overlayRef: overlayRef,
|
|
407
|
-
targetRef: targetRef
|
|
408
|
-
listRef: listRef
|
|
406
|
+
targetRef: targetRef
|
|
409
407
|
});
|
|
410
408
|
/**
|
|
411
409
|
* Remove the last item, after pressing the back key on the keyboard.
|
|
@@ -607,7 +605,6 @@ var InputPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
607
605
|
var menu = items.length ? /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
608
606
|
id: id ? id + "-listbox" : undefined,
|
|
609
607
|
listProps: listProps,
|
|
610
|
-
listRef: listRef,
|
|
611
608
|
disabledItemValues: disabledItemValues,
|
|
612
609
|
valueKey: valueKey,
|
|
613
610
|
labelKey: labelKey,
|
package/esm/InputPicker/index.js
CHANGED
|
File without changes
|
package/esm/List/index.js
CHANGED
|
File without changes
|
package/esm/Loader/index.js
CHANGED
|
File without changes
|
package/esm/Menu/MenuContext.js
CHANGED
|
File without changes
|
package/esm/Menu/index.js
CHANGED
|
File without changes
|
package/esm/Message/index.js
CHANGED
|
File without changes
|
package/esm/Modal/ModalFooter.js
CHANGED
|
File without changes
|
package/esm/Modal/index.js
CHANGED
|
File without changes
|
|
@@ -50,10 +50,7 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50
50
|
prefix = _useClassNames.prefix;
|
|
51
51
|
|
|
52
52
|
var classes = merge(className, prefix('items'));
|
|
53
|
-
|
|
54
|
-
var _useCustom = useCustom('DropdownMenu'),
|
|
55
|
-
rtl = _useCustom.rtl;
|
|
56
|
-
|
|
53
|
+
var rtl = useCustom('DropdownMenu');
|
|
57
54
|
var getCascadePaths = useCallback(function (layer, node) {
|
|
58
55
|
var paths = [];
|
|
59
56
|
|
|
@@ -80,7 +77,7 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
80
77
|
}); // Use `value` in keys when If `value` is string or number
|
|
81
78
|
|
|
82
79
|
var onlyKey = typeof value === 'number' || typeof value === 'string' ? value : index;
|
|
83
|
-
var Icon = node.loading ? SpinnerIcon : rtl ?
|
|
80
|
+
var Icon = node.loading ? SpinnerIcon : rtl ? AngleRightIcon : AngleLeftIcon;
|
|
84
81
|
var active = value.some(function (v) {
|
|
85
82
|
return v === nodeValue;
|
|
86
83
|
});
|
|
File without changes
|
package/esm/Nav/index.js
CHANGED
|
File without changes
|
package/esm/Navbar/NavbarBody.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -5,12 +5,12 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
var _templateObject, _templateObject2;
|
|
6
6
|
|
|
7
7
|
import React, { useContext } from 'react';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
8
|
import omit from 'lodash/omit';
|
|
10
|
-
import
|
|
9
|
+
import { mergeRefs, useClassNames } from '../utils';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
11
|
import AngleLeft from '@rsuite/icons/legacy/AngleLeft';
|
|
12
12
|
import AngleRight from '@rsuite/icons/legacy/AngleRight';
|
|
13
|
-
import
|
|
13
|
+
import useCustom from '../utils/useCustom';
|
|
14
14
|
import { NavbarContext } from '.';
|
|
15
15
|
import Disclosure from '../Disclosure';
|
|
16
16
|
import NavContext from '../Nav/NavContext';
|
|
@@ -73,7 +73,7 @@ var NavbarDropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
73
73
|
var Icon = rtl ? AngleLeft : AngleRight;
|
|
74
74
|
return /*#__PURE__*/React.createElement(Disclosure, {
|
|
75
75
|
hideOnClickOutside: true,
|
|
76
|
-
trigger: ['click', '
|
|
76
|
+
trigger: ['click', 'mouseover'],
|
|
77
77
|
onToggle: function onToggle(open, event) {
|
|
78
78
|
return _onToggle === null || _onToggle === void 0 ? void 0 : _onToggle(open, undefined, event);
|
|
79
79
|
}
|
|
@@ -98,18 +98,12 @@ var NavbarDropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
98
98
|
open: open,
|
|
99
99
|
disabled: disabled
|
|
100
100
|
}));
|
|
101
|
-
var dataAttributes = {
|
|
102
|
-
'data-event-key': eventKey
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
if (!isNil(eventKey) && typeof eventKey !== 'string') {
|
|
106
|
-
dataAttributes['data-event-key-type'] = typeof eventKey;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
101
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
110
102
|
ref: mergeRefs(buttonRef, buttonRef),
|
|
111
|
-
className: classes
|
|
112
|
-
|
|
103
|
+
className: classes,
|
|
104
|
+
"data-event-key": eventKey,
|
|
105
|
+
"data-event-key-type": typeof eventKey
|
|
106
|
+
}, buttonProps), icon && /*#__PURE__*/React.cloneElement(icon, {
|
|
113
107
|
className: prefix('menu-icon')
|
|
114
108
|
}), title, /*#__PURE__*/React.createElement(Icon, {
|
|
115
109
|
className: prefix(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["toggle-icon"])))
|