rsuite 5.18.0 → 5.18.1-beta.4
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 +12 -0
- package/Calendar/styles/index.less +30 -11
- 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/DateRangePicker/styles/index.less +1 -1
- 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/Nav/styles/index.less +1 -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/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/Windowing/package.json +7 -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/Calendar.d.ts +20 -55
- package/cjs/Calendar/Calendar.js +84 -163
- package/cjs/Calendar/CalendarBody.d.ts +4 -0
- package/cjs/Calendar/{View.js → CalendarBody.js} +5 -5
- package/cjs/Calendar/CalendarContainer.d.ts +61 -0
- package/cjs/Calendar/CalendarContainer.js +233 -0
- package/{esm/Calendar/Header.d.ts → cjs/Calendar/CalendarHeader.d.ts} +9 -7
- package/cjs/Calendar/{Header.js → CalendarHeader.js} +4 -4
- package/cjs/Calendar/MonthDropdown.d.ts +1 -0
- package/cjs/Calendar/MonthDropdown.js +27 -40
- package/cjs/Calendar/Table.js +1 -1
- package/cjs/Calendar/TableHeaderRow.js +1 -1
- package/cjs/Calendar/TableRow.js +1 -1
- package/cjs/Calendar/index.d.ts +6 -5
- package/cjs/Calendar/index.js +8 -7
- package/cjs/Calendar/useCalendarState.d.ts +11 -0
- package/cjs/Calendar/useCalendarState.js +39 -0
- package/cjs/Carousel/index.js +0 -0
- package/cjs/Cascader/Cascader.d.ts +2 -2
- package/cjs/Cascader/DropdownMenu.js +5 -2
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/CheckPicker.d.ts +2 -2
- package/cjs/CheckPicker/CheckPicker.js +4 -1
- 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/DatePicker.js +10 -47
- package/cjs/DatePicker/index.js +0 -0
- package/cjs/DatePicker/utils.d.ts +1 -8
- package/cjs/DatePicker/utils.js +24 -64
- package/cjs/DateRangePicker/Calendar.d.ts +1 -1
- package/cjs/DateRangePicker/Calendar.js +2 -17
- package/cjs/DateRangePicker/DateRangePicker.js +3 -3
- package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
- package/cjs/DateRangePicker/utils.d.ts +1 -3
- package/cjs/DateRangePicker/utils.js +14 -42
- 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/InputPicker.js +4 -1
- package/cjs/InputPicker/index.js +0 -0
- package/cjs/List/ListItem.d.ts +1 -0
- package/cjs/List/ListItem.js +5 -2
- 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 +5 -2
- 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.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 +2 -1
- package/cjs/Picker/DropdownMenu.js +39 -33
- package/cjs/Picker/PickerOverlay.d.ts +2 -2
- package/cjs/Picker/PickerToggleTrigger.d.ts +2 -2
- package/cjs/Picker/index.d.ts +3 -3
- package/cjs/Picker/types.d.ts +7 -5
- package/cjs/Picker/utils.d.ts +11 -12
- package/cjs/Picker/utils.js +4 -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/SelectPicker/SelectPicker.d.ts +4 -5
- package/cjs/SelectPicker/SelectPicker.js +4 -1
- 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/Stack/Stack.js +1 -1
- 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 +2 -5
- 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 +14 -0
- package/cjs/Whisper/Whisper.d.ts +3 -3
- package/cjs/Whisper/index.js +0 -0
- package/cjs/Windowing/AutoSizer.d.ts +25 -0
- package/cjs/Windowing/AutoSizer.js +107 -0
- package/cjs/Windowing/List.d.ts +45 -0
- package/cjs/Windowing/List.js +72 -0
- package/cjs/Windowing/index.d.ts +5 -0
- package/cjs/Windowing/index.js +19 -0
- package/cjs/index.d.ts +2 -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 +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/BrowserDetection.d.ts +7 -0
- package/cjs/utils/BrowserDetection.js +52 -2
- package/cjs/utils/clone.js +0 -0
- package/cjs/utils/dateUtils.d.ts +4 -4
- package/cjs/utils/dateUtils.js +9 -9
- 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/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 +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 +43 -20
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +43 -20
- package/dist/rsuite.js +313 -551
- 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/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/Calendar.d.ts +20 -55
- package/esm/Calendar/Calendar.js +82 -154
- package/esm/Calendar/CalendarBody.d.ts +4 -0
- package/esm/Calendar/{View.js → CalendarBody.js} +5 -5
- package/esm/Calendar/CalendarContainer.d.ts +61 -0
- package/esm/Calendar/CalendarContainer.js +208 -0
- package/{cjs/Calendar/Header.d.ts → esm/Calendar/CalendarHeader.d.ts} +9 -7
- package/esm/Calendar/{Header.js → CalendarHeader.js} +4 -4
- package/esm/Calendar/MonthDropdown.d.ts +1 -0
- package/esm/Calendar/MonthDropdown.js +26 -41
- package/esm/Calendar/Table.js +1 -1
- package/esm/Calendar/TableHeaderRow.js +1 -1
- package/esm/Calendar/TableRow.js +1 -1
- package/esm/Calendar/index.d.ts +6 -5
- package/esm/Calendar/index.js +5 -4
- package/esm/Calendar/useCalendarState.d.ts +11 -0
- package/esm/Calendar/useCalendarState.js +31 -0
- package/esm/Carousel/index.js +0 -0
- package/esm/Cascader/Cascader.d.ts +2 -2
- package/esm/Cascader/DropdownMenu.js +5 -2
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/CheckPicker.d.ts +2 -2
- package/esm/CheckPicker/CheckPicker.js +4 -1
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +31 -30
- 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 +10 -46
- package/esm/DatePicker/index.js +0 -0
- package/esm/DatePicker/utils.d.ts +1 -8
- package/esm/DatePicker/utils.js +23 -57
- package/esm/DateRangePicker/Calendar.d.ts +1 -1
- package/esm/DateRangePicker/Calendar.js +2 -16
- package/esm/DateRangePicker/DateRangePicker.js +5 -5
- package/esm/DateRangePicker/disabledDateUtils.js +0 -0
- package/esm/DateRangePicker/utils.d.ts +1 -3
- package/esm/DateRangePicker/utils.js +13 -33
- 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/InputPicker.js +4 -1
- package/esm/InputPicker/index.js +0 -0
- package/esm/List/ListItem.d.ts +1 -0
- package/esm/List/ListItem.js +5 -2
- 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 +5 -2
- 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.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 +2 -1
- package/esm/Picker/DropdownMenu.js +39 -35
- package/esm/Picker/PickerOverlay.d.ts +2 -2
- package/esm/Picker/PickerToggleTrigger.d.ts +2 -2
- package/esm/Picker/index.d.ts +3 -3
- package/esm/Picker/types.d.ts +7 -5
- package/esm/Picker/utils.d.ts +11 -12
- package/esm/Picker/utils.js +4 -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/SelectPicker/SelectPicker.d.ts +4 -5
- package/esm/SelectPicker/SelectPicker.js +4 -1
- 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/Stack/Stack.js +2 -2
- 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 +2 -5
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/TreePicker.js +33 -32
- package/esm/TreePicker/index.js +0 -0
- package/esm/TreePicker/test/TreePicker.test.js +14 -0
- package/esm/Whisper/Whisper.d.ts +3 -3
- package/esm/Whisper/index.js +0 -0
- package/esm/Windowing/AutoSizer.d.ts +25 -0
- package/esm/Windowing/AutoSizer.js +92 -0
- package/esm/Windowing/List.d.ts +45 -0
- package/esm/Windowing/List.js +58 -0
- package/esm/Windowing/index.d.ts +5 -0
- package/esm/Windowing/index.js +3 -0
- package/esm/index.d.ts +2 -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 +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/BrowserDetection.d.ts +7 -0
- package/esm/utils/BrowserDetection.js +41 -0
- package/esm/utils/clone.js +0 -0
- package/esm/utils/dateUtils.d.ts +4 -4
- package/esm/utils/dateUtils.js +4 -4
- 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/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 +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 +4 -4
- 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/cjs/Calendar/CalendarPanel.d.ts +0 -26
- package/cjs/Calendar/CalendarPanel.js +0 -139
- package/cjs/Calendar/View.d.ts +0 -4
- package/cjs/Picker/VirtualizedList.d.ts +0 -37
- package/cjs/Picker/VirtualizedList.js +0 -15
- package/esm/Calendar/CalendarPanel.d.ts +0 -26
- package/esm/Calendar/CalendarPanel.js +0 -119
- package/esm/Calendar/View.d.ts +0 -4
- package/esm/Picker/VirtualizedList.d.ts +0 -37
- package/esm/Picker/VirtualizedList.js +0 -4
package/cjs/toaster/toaster.js
CHANGED
|
@@ -5,6 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
+
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
|
|
8
12
|
var _ToastContainer = _interopRequireDefault(require("./ToastContainer"));
|
|
9
13
|
|
|
10
14
|
var defaultContainerId = 'default';
|
|
@@ -15,12 +19,8 @@ var containers = new Map();
|
|
|
15
19
|
* @param options
|
|
16
20
|
*/
|
|
17
21
|
|
|
18
|
-
function createContainer(
|
|
19
|
-
|
|
20
|
-
container = _ToastContainer$getIn[0];
|
|
21
|
-
|
|
22
|
-
containers.set(containerId || defaultContainerId, container);
|
|
23
|
-
return container;
|
|
22
|
+
function createContainer(_x, _x2) {
|
|
23
|
+
return _createContainer.apply(this, arguments);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Get the container by ID. Use default ID when ID is not available.
|
|
@@ -28,6 +28,33 @@ function createContainer(containerId, props) {
|
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
|
|
31
|
+
function _createContainer() {
|
|
32
|
+
_createContainer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(containerId, props) {
|
|
33
|
+
var _yield$ToastContainer, container;
|
|
34
|
+
|
|
35
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
36
|
+
while (1) {
|
|
37
|
+
switch (_context.prev = _context.next) {
|
|
38
|
+
case 0:
|
|
39
|
+
_context.next = 2;
|
|
40
|
+
return _ToastContainer.default.getInstance(props);
|
|
41
|
+
|
|
42
|
+
case 2:
|
|
43
|
+
_yield$ToastContainer = _context.sent;
|
|
44
|
+
container = _yield$ToastContainer[0];
|
|
45
|
+
containers.set(containerId || defaultContainerId, container);
|
|
46
|
+
return _context.abrupt("return", container);
|
|
47
|
+
|
|
48
|
+
case 6:
|
|
49
|
+
case "end":
|
|
50
|
+
return _context.stop();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, _callee);
|
|
54
|
+
}));
|
|
55
|
+
return _createContainer.apply(this, arguments);
|
|
56
|
+
}
|
|
57
|
+
|
|
31
58
|
function getContainer(containerId) {
|
|
32
59
|
if (containers.size == 0) {
|
|
33
60
|
return null;
|
|
@@ -41,21 +68,24 @@ var toaster = function toaster(message) {
|
|
|
41
68
|
};
|
|
42
69
|
|
|
43
70
|
toaster.push = function (message, options) {
|
|
44
|
-
var
|
|
71
|
+
var _options;
|
|
45
72
|
|
|
46
73
|
if (options === void 0) {
|
|
47
74
|
options = {};
|
|
48
75
|
}
|
|
49
76
|
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
if (!container) {
|
|
53
|
-
var _options$placement;
|
|
77
|
+
var containerId = (_options = options) === null || _options === void 0 ? void 0 : _options.placement;
|
|
78
|
+
var container = getContainer(containerId);
|
|
54
79
|
|
|
55
|
-
|
|
80
|
+
if (container !== null && container !== void 0 && container.current) {
|
|
81
|
+
return container.current.push(message);
|
|
56
82
|
}
|
|
57
83
|
|
|
58
|
-
return (
|
|
84
|
+
return createContainer(containerId !== null && containerId !== void 0 ? containerId : '', options).then(function (ref) {
|
|
85
|
+
var _ref$current;
|
|
86
|
+
|
|
87
|
+
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.push(message);
|
|
88
|
+
});
|
|
59
89
|
};
|
|
60
90
|
|
|
61
91
|
toaster.remove = function (key) {
|
|
@@ -5,7 +5,7 @@ import { ToastContainerProps } from './ToastContainer';
|
|
|
5
5
|
* @returns toaster { push, remove, clear }
|
|
6
6
|
*/
|
|
7
7
|
declare const useToaster: () => {
|
|
8
|
-
push: (message: React.ReactNode, options?: ToastContainerProps) => string | undefined;
|
|
8
|
+
push: (message: React.ReactNode, options?: ToastContainerProps) => string | Promise<string | undefined> | undefined;
|
|
9
9
|
remove: (key: string) => void;
|
|
10
10
|
clear: () => void;
|
|
11
11
|
};
|
|
@@ -2,3 +2,10 @@ export declare const isIE: () => boolean;
|
|
|
2
2
|
export declare const isIE10: () => boolean;
|
|
3
3
|
export declare const isIE11: () => boolean;
|
|
4
4
|
export declare const isEdge: () => boolean;
|
|
5
|
+
export declare const getChromeVersion: () => number | false;
|
|
6
|
+
export declare const getSafariVersion: () => number | false;
|
|
7
|
+
/**
|
|
8
|
+
* flexbox-gap compatibility
|
|
9
|
+
* @see https://caniuse.com/flexbox-gap
|
|
10
|
+
*/
|
|
11
|
+
export declare const isSupportFlexGap: () => boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.isEdge = exports.isIE11 = exports.isIE10 = exports.isIE = void 0;
|
|
6
|
+
exports.isSupportFlexGap = exports.getSafariVersion = exports.getChromeVersion = exports.isEdge = exports.isIE11 = exports.isIE10 = exports.isIE = void 0;
|
|
7
7
|
|
|
8
8
|
var _canUseDOM = _interopRequireDefault(require("dom-lib/canUseDOM"));
|
|
9
9
|
|
|
@@ -32,4 +32,54 @@ var isEdge = function isEdge() {
|
|
|
32
32
|
return _canUseDOM.default && !isIE() && 'styleMedia' in window;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
exports.isEdge = isEdge;
|
|
35
|
+
exports.isEdge = isEdge;
|
|
36
|
+
|
|
37
|
+
var getChromeVersion = function getChromeVersion() {
|
|
38
|
+
if (_canUseDOM.default) {
|
|
39
|
+
var match = window.navigator.userAgent.match(/Chrom(e|ium)\/([\d\.]+)\./);
|
|
40
|
+
return match ? parseFloat(match[2]) : false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.getChromeVersion = getChromeVersion;
|
|
47
|
+
|
|
48
|
+
var getSafariVersion = function getSafariVersion() {
|
|
49
|
+
if (_canUseDOM.default) {
|
|
50
|
+
var match = window.navigator.userAgent.match(/Version\/([\d\.]+).*Safari/);
|
|
51
|
+
return match ? parseFloat(match[1]) : false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return false;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* flexbox-gap compatibility
|
|
58
|
+
* @see https://caniuse.com/flexbox-gap
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
exports.getSafariVersion = getSafariVersion;
|
|
63
|
+
|
|
64
|
+
var isSupportFlexGap = function isSupportFlexGap() {
|
|
65
|
+
if (isIE()) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var chromeVersion = getChromeVersion();
|
|
70
|
+
var safariVersion = getSafariVersion(); // edge consider as chrome
|
|
71
|
+
|
|
72
|
+
if (chromeVersion) {
|
|
73
|
+
// flex-gap is support in Chrome 84+
|
|
74
|
+
return chromeVersion >= 84;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (safariVersion) {
|
|
78
|
+
// flex-gap is support in Safari 14.1+
|
|
79
|
+
return safariVersion >= 14.1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return true;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.isSupportFlexGap = isSupportFlexGap;
|
package/cjs/utils/clone.js
CHANGED
|
File without changes
|
package/cjs/utils/dateUtils.d.ts
CHANGED
|
@@ -45,10 +45,10 @@ export declare const calendarOnlyProps: CalendarOnlyPropsType[];
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function disabledTime(props: any, date: Date): boolean;
|
|
47
47
|
export declare const omitHideDisabledProps: <T extends Record<string, any>>(props: T) => Partial<Omit<T, CalendarOnlyPropsType>>;
|
|
48
|
-
export declare const
|
|
49
|
-
export declare const
|
|
50
|
-
export declare const
|
|
51
|
-
export declare const
|
|
48
|
+
export declare const shouldRenderTime: (format: string) => boolean;
|
|
49
|
+
export declare const shouldRenderMonth: (format: string) => boolean;
|
|
50
|
+
export declare const shouldRenderDate: (format: string) => boolean;
|
|
51
|
+
export declare const shouldOnlyRenderTime: (format: string) => boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Get all weeks of this month
|
|
54
54
|
* @params monthDate
|
package/cjs/utils/dateUtils.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.__esModule = true;
|
|
|
6
6
|
exports.disabledTime = disabledTime;
|
|
7
7
|
exports.getMonthView = getMonthView;
|
|
8
8
|
exports.getDateMask = getDateMask;
|
|
9
|
-
exports.
|
|
9
|
+
exports.shouldOnlyRenderTime = exports.shouldRenderDate = exports.shouldRenderMonth = exports.shouldRenderTime = exports.omitHideDisabledProps = exports.calendarOnlyProps = exports.set = exports.isValid = exports.isMatch = exports.subDays = exports.startOfWeek = exports.startOfMonth = exports.startOfISOWeek = exports.startOfDay = exports.setYear = exports.setSeconds = exports.setMonth = exports.setMinutes = exports.setHours = exports.setDate = exports.parseISO = exports.parse = exports.isSameSecond = exports.isSameMonth = exports.isSameDay = exports.isEqual = exports.isBefore = exports.isAfter = exports.getYear = exports.getSeconds = exports.getMonth = exports.getMinutes = exports.getHours = exports.getDaysInMonth = exports.getDay = exports.getDate = exports.format = exports.endOfWeek = exports.endOfMonth = exports.endOfISOWeek = exports.endOfDay = exports.compareAsc = exports.addMonths = exports.addDays = void 0;
|
|
10
10
|
|
|
11
11
|
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
12
12
|
|
|
@@ -209,26 +209,26 @@ var omitHideDisabledProps = function omitHideDisabledProps(props) {
|
|
|
209
209
|
|
|
210
210
|
exports.omitHideDisabledProps = omitHideDisabledProps;
|
|
211
211
|
|
|
212
|
-
var
|
|
212
|
+
var shouldRenderTime = function shouldRenderTime(format) {
|
|
213
213
|
return /([Hhms])/.test(format);
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
exports.
|
|
216
|
+
exports.shouldRenderTime = shouldRenderTime;
|
|
217
217
|
|
|
218
|
-
var
|
|
218
|
+
var shouldRenderMonth = function shouldRenderMonth(format) {
|
|
219
219
|
return /[Yy]/.test(format) && /[ML]/.test(format);
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
-
exports.
|
|
222
|
+
exports.shouldRenderMonth = shouldRenderMonth;
|
|
223
223
|
|
|
224
|
-
var
|
|
224
|
+
var shouldRenderDate = function shouldRenderDate(format) {
|
|
225
225
|
return /[Yy]/.test(format) && /[ML]/.test(format) && /[Dd]/.test(format);
|
|
226
226
|
}; // for date-fns v1 and v2
|
|
227
227
|
|
|
228
228
|
|
|
229
|
-
exports.
|
|
229
|
+
exports.shouldRenderDate = shouldRenderDate;
|
|
230
230
|
|
|
231
|
-
var
|
|
231
|
+
var shouldOnlyRenderTime = function shouldOnlyRenderTime(format) {
|
|
232
232
|
return /([Hhms])/.test(format) && !/([YyMDd])/.test(format);
|
|
233
233
|
}; // for date-fns v1 and v2
|
|
234
234
|
|
|
@@ -239,7 +239,7 @@ var shouldOnlyTime = function shouldOnlyTime(format) {
|
|
|
239
239
|
*/
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
exports.
|
|
242
|
+
exports.shouldOnlyRenderTime = shouldOnlyRenderTime;
|
|
243
243
|
|
|
244
244
|
function getMonthView(monthDate, isoWeek) {
|
|
245
245
|
var firstDayOfMonth = (0, _getDay.default)(monthDate);
|
package/cjs/utils/events.js
CHANGED
|
File without changes
|
package/cjs/utils/getDOMNode.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/utils/guid.js
CHANGED
|
File without changes
|
|
File without changes
|
package/cjs/utils/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as composeFunctions } from './composeFunctions';
|
|
|
23
23
|
export { default as reactToString } from './reactToString';
|
|
24
24
|
export { default as scrollTopAnimation } from './scrollTopAnimation';
|
|
25
25
|
export { default as appendTooltip } from './appendTooltip';
|
|
26
|
+
export { default as render } from './render';
|
|
26
27
|
/** Hooks **/
|
|
27
28
|
export { default as useClassNames } from './useClassNames';
|
|
28
29
|
export { default as useEventListener } from './useEventListener';
|
package/cjs/utils/index.js
CHANGED
|
@@ -25,6 +25,7 @@ var _exportNames = {
|
|
|
25
25
|
reactToString: true,
|
|
26
26
|
scrollTopAnimation: true,
|
|
27
27
|
appendTooltip: true,
|
|
28
|
+
render: true,
|
|
28
29
|
useClassNames: true,
|
|
29
30
|
useEventListener: true,
|
|
30
31
|
useElementResize: true,
|
|
@@ -48,7 +49,7 @@ var _exportNames = {
|
|
|
48
49
|
DateUtils: true,
|
|
49
50
|
TypeChecker: true
|
|
50
51
|
};
|
|
51
|
-
exports.TypeChecker = exports.DateUtils = exports.globalKey = exports.getClassNamePrefix = exports.defaultClassPrefix = exports.useMount = exports.useIsMounted = exports.useUpdateEffect = exports.useWillUnmount = exports.useUpdatedRef = exports.useEventCallback = exports.stringToObject = exports.getSafeRegExpString = exports.useRootClose = exports.useControlled = exports.useTimeout = exports.createComponent = exports.usePortal = exports.useCustom = exports.useElementResize = exports.useEventListener = exports.useClassNames = exports.appendTooltip = exports.scrollTopAnimation = exports.reactToString = exports.composeFunctions = exports.shallowEqualArray = exports.shallowEqual = exports.mergeRefs = exports.getDOMNode = exports.placementPolyfill = exports.clone = exports.getDataGroupBy = exports.previewFile = exports.ajaxUpload = exports.tplTransform = exports.ReactChildren = exports.isOneOf = exports.createChainedFunction = exports.prefix = exports.guid = void 0;
|
|
52
|
+
exports.TypeChecker = exports.DateUtils = exports.globalKey = exports.getClassNamePrefix = exports.defaultClassPrefix = exports.useMount = exports.useIsMounted = exports.useUpdateEffect = exports.useWillUnmount = exports.useUpdatedRef = exports.useEventCallback = exports.stringToObject = exports.getSafeRegExpString = exports.useRootClose = exports.useControlled = exports.useTimeout = exports.createComponent = exports.usePortal = exports.useCustom = exports.useElementResize = exports.useEventListener = exports.useClassNames = exports.render = exports.appendTooltip = exports.scrollTopAnimation = exports.reactToString = exports.composeFunctions = exports.shallowEqualArray = exports.shallowEqual = exports.mergeRefs = exports.getDOMNode = exports.placementPolyfill = exports.clone = exports.getDataGroupBy = exports.previewFile = exports.ajaxUpload = exports.tplTransform = exports.ReactChildren = exports.isOneOf = exports.createChainedFunction = exports.prefix = exports.guid = void 0;
|
|
52
53
|
|
|
53
54
|
var _BrowserDetection = require("./BrowserDetection");
|
|
54
55
|
|
|
@@ -173,6 +174,10 @@ var _appendTooltip = _interopRequireDefault(require("./appendTooltip"));
|
|
|
173
174
|
|
|
174
175
|
exports.appendTooltip = _appendTooltip.default;
|
|
175
176
|
|
|
177
|
+
var _render = _interopRequireDefault(require("./render"));
|
|
178
|
+
|
|
179
|
+
exports.render = _render.default;
|
|
180
|
+
|
|
176
181
|
var _useClassNames = _interopRequireDefault(require("./useClassNames"));
|
|
177
182
|
|
|
178
183
|
exports.useClassNames = _useClassNames.default;
|
package/cjs/utils/isOneOf.js
CHANGED
|
File without changes
|
package/cjs/utils/prefix.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
exports.__esModule = true;
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
13
|
+
|
|
14
|
+
var majorVersion = parseInt(_react.default.version);
|
|
15
|
+
var SuperposedReactDOM = ReactDOM;
|
|
16
|
+
|
|
17
|
+
function render(element, container) {
|
|
18
|
+
var mountElement = document.createElement('div');
|
|
19
|
+
mountElement.className = 'rs-mount-element';
|
|
20
|
+
var containerElement = container || document.body; // Add the detached element to the root
|
|
21
|
+
|
|
22
|
+
containerElement.appendChild(mountElement);
|
|
23
|
+
|
|
24
|
+
if (majorVersion >= 18) {
|
|
25
|
+
/**
|
|
26
|
+
* ignore react 18 warnings
|
|
27
|
+
* Warning: You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".
|
|
28
|
+
*/
|
|
29
|
+
ReactDOM['__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED'].usingClientEntryPoint = true;
|
|
30
|
+
var createRoot = SuperposedReactDOM.createRoot;
|
|
31
|
+
var root = containerElement.__root || createRoot(mountElement, {
|
|
32
|
+
identifierPrefix: 'rs-root-'
|
|
33
|
+
});
|
|
34
|
+
root.render(element);
|
|
35
|
+
containerElement.__root = root;
|
|
36
|
+
return root;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
SuperposedReactDOM.render(element, mountElement);
|
|
40
|
+
return {
|
|
41
|
+
unmount: function unmount() {
|
|
42
|
+
SuperposedReactDOM.unmountComponentAtNode(mountElement);
|
|
43
|
+
containerElement.removeChild(mountElement);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var _default = render;
|
|
49
|
+
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
package/cjs/utils/statusIcons.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/utils/treeUtils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { TREE_NODE_DROP_POSITION } from '../utils';
|
|
|
4
4
|
import { CheckTreePickerProps } from '../CheckTreePicker/CheckTreePicker';
|
|
5
5
|
import { ItemDataType } from '../@types/common';
|
|
6
6
|
import { TreePickerProps } from '../TreePicker/TreePicker';
|
|
7
|
-
import {
|
|
7
|
+
import { ListHandle } from '../Windowing';
|
|
8
8
|
declare type PartialTreeProps = Partial<TreePickerProps | CheckTreePickerProps>;
|
|
9
9
|
/**
|
|
10
10
|
* according node parentNode expand state decide node whether to show
|
|
@@ -236,7 +236,7 @@ export interface FocusToTreeNodeProps {
|
|
|
236
236
|
activeNode: any;
|
|
237
237
|
virtualized: boolean;
|
|
238
238
|
container: HTMLElement | null;
|
|
239
|
-
list:
|
|
239
|
+
list: ListHandle;
|
|
240
240
|
formattedNodes: TreeNodeType[];
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cjs/utils/useUniqueId.js
CHANGED
|
@@ -2,20 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
+
|
|
5
7
|
exports.__esModule = true;
|
|
6
8
|
exports.default = useUniqueId;
|
|
7
9
|
|
|
8
|
-
var
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
|
|
11
13
|
|
|
14
|
+
var reactUseId = React['useId' + ''];
|
|
12
15
|
/**
|
|
13
16
|
* Used for generating unique ID for DOM elements
|
|
14
17
|
*
|
|
15
18
|
* @param idProp If id is provided, it will be used instead of generating a new one
|
|
16
19
|
*/
|
|
20
|
+
|
|
17
21
|
function useUniqueId(prefix, idProp) {
|
|
18
|
-
var idRef =
|
|
22
|
+
var idRef = React.useRef();
|
|
23
|
+
|
|
24
|
+
if (reactUseId !== undefined) {
|
|
25
|
+
return idProp !== null && idProp !== void 0 ? idProp : "" + prefix + reactUseId();
|
|
26
|
+
}
|
|
19
27
|
|
|
20
28
|
if (!idRef.current) {
|
|
21
29
|
idRef.current = (0, _uniqueId.default)(prefix);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/rsuite-rtl.css
CHANGED
|
@@ -2854,8 +2854,8 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
2854
2854
|
.rs-calendar-panel .rs-calendar-header-backward {
|
|
2855
2855
|
float: none !important;
|
|
2856
2856
|
}
|
|
2857
|
-
.rs-calendar-panel.rs-calendar-
|
|
2858
|
-
.rs-calendar-panel.rs-calendar-
|
|
2857
|
+
.rs-calendar-panel.rs-calendar-month-view .rs-calendar-header-forward,
|
|
2858
|
+
.rs-calendar-panel.rs-calendar-month-view .rs-calendar-header-backward {
|
|
2859
2859
|
display: inline-block;
|
|
2860
2860
|
visibility: hidden;
|
|
2861
2861
|
pointer-events: none;
|
|
@@ -2863,11 +2863,11 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
2863
2863
|
.rs-calendar-panel .rs-calendar-header-month-toolbar {
|
|
2864
2864
|
width: auto !important;
|
|
2865
2865
|
}
|
|
2866
|
-
.rs-calendar-panel.rs-calendar-
|
|
2866
|
+
.rs-calendar-panel.rs-calendar-month-view .rs-calendar-header-month-toolbar {
|
|
2867
2867
|
padding-right: 0;
|
|
2868
2868
|
padding-left: 0;
|
|
2869
2869
|
}
|
|
2870
|
-
.rs-calendar-panel .rs-calendar-
|
|
2870
|
+
.rs-calendar-panel .rs-calendar-month-view {
|
|
2871
2871
|
padding-right: 0;
|
|
2872
2872
|
padding-left: 0;
|
|
2873
2873
|
}
|
|
@@ -2941,37 +2941,59 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
2941
2941
|
.rs-calendar-panel.rs-calendar-compact .rs-calendar-table-row:not(.rs-calendar-table-header-row) .rs-calendar-table-cell-content {
|
|
2942
2942
|
height: 50px;
|
|
2943
2943
|
}
|
|
2944
|
-
.rs-calendar-
|
|
2944
|
+
.rs-calendar-btn-close {
|
|
2945
|
+
position: absolute;
|
|
2946
|
+
bottom: 0;
|
|
2947
|
+
right: 0;
|
|
2948
|
+
left: 0;
|
|
2949
|
+
height: 14px;
|
|
2950
|
+
padding: 0;
|
|
2951
|
+
border: 0;
|
|
2952
|
+
display: -webkit-box;
|
|
2953
|
+
display: -ms-flexbox;
|
|
2954
|
+
display: flex;
|
|
2955
|
+
-webkit-box-pack: center;
|
|
2956
|
+
-ms-flex-pack: center;
|
|
2957
|
+
justify-content: center;
|
|
2958
|
+
background: #fff;
|
|
2959
|
+
background: var(--rs-bg-overlay);
|
|
2960
|
+
z-index: 1;
|
|
2961
|
+
}
|
|
2962
|
+
.rs-calendar-panel .rs-calendar-btn-close {
|
|
2963
|
+
bottom: 11px;
|
|
2964
|
+
margin: 0 20px;
|
|
2965
|
+
}
|
|
2966
|
+
.rs-calendar-month-view .rs-calendar-header-month-toolbar {
|
|
2945
2967
|
padding-right: 24px;
|
|
2946
2968
|
padding-left: 24px;
|
|
2947
2969
|
}
|
|
2948
|
-
.rs-calendar-
|
|
2949
|
-
.rs-calendar-
|
|
2970
|
+
.rs-calendar-month-view .rs-calendar-header-backward,
|
|
2971
|
+
.rs-calendar-month-view .rs-calendar-header-forward {
|
|
2950
2972
|
display: none;
|
|
2951
2973
|
}
|
|
2952
|
-
.rs-calendar-
|
|
2974
|
+
.rs-calendar-month-view .rs-calendar-header-title-date {
|
|
2953
2975
|
color: #1675e0;
|
|
2954
2976
|
color: var(--rs-text-active);
|
|
2955
2977
|
background: transparent;
|
|
2956
2978
|
}
|
|
2957
|
-
.rs-calendar-
|
|
2979
|
+
.rs-calendar-month-view .rs-calendar-header-title-date.rs-calendar-header-error {
|
|
2958
2980
|
color: #f44336;
|
|
2959
2981
|
color: var(--rs-text-error);
|
|
2960
2982
|
}
|
|
2961
|
-
.rs-calendar-
|
|
2962
|
-
.rs-calendar-
|
|
2983
|
+
.rs-calendar-month-view .rs-calendar-header-title-date.rs-calendar-header-error:focus,
|
|
2984
|
+
.rs-calendar-month-view .rs-calendar-header-title-date.rs-calendar-header-error:hover:active {
|
|
2963
2985
|
color: #fff !important;
|
|
2964
2986
|
}
|
|
2965
|
-
.rs-calendar-
|
|
2987
|
+
.rs-calendar-time-view .rs-calendar-header-title-time {
|
|
2966
2988
|
color: #1675e0;
|
|
2967
2989
|
color: var(--rs-text-active);
|
|
2968
2990
|
background: transparent;
|
|
2969
2991
|
}
|
|
2970
|
-
.rs-calendar-
|
|
2992
|
+
.rs-calendar-time-view .rs-calendar-header-title-time.rs-calendar-header-error {
|
|
2971
2993
|
color: #f44336;
|
|
2972
2994
|
color: var(--rs-text-error);
|
|
2973
2995
|
}
|
|
2974
|
-
.rs-calendar-
|
|
2996
|
+
.rs-calendar-time-view .rs-calendar-header-title-time.rs-calendar-header-error:hover:active {
|
|
2975
2997
|
color: #fff;
|
|
2976
2998
|
}
|
|
2977
2999
|
.rs-calendar-table-cell-selected,
|
|
@@ -3124,7 +3146,7 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
3124
3146
|
-webkit-transform: rotate(180deg);
|
|
3125
3147
|
transform: rotate(180deg);
|
|
3126
3148
|
}
|
|
3127
|
-
.rs-calendar-
|
|
3149
|
+
.rs-calendar-body {
|
|
3128
3150
|
padding: 4px 12px 12px;
|
|
3129
3151
|
}
|
|
3130
3152
|
.rs-calendar-table {
|
|
@@ -3246,10 +3268,10 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
3246
3268
|
overflow: hidden;
|
|
3247
3269
|
z-index: 1;
|
|
3248
3270
|
}
|
|
3249
|
-
.rs-calendar-
|
|
3271
|
+
.rs-calendar-month-view .rs-calendar-month-dropdown {
|
|
3250
3272
|
display: block;
|
|
3251
3273
|
}
|
|
3252
|
-
.rs-calendar-
|
|
3274
|
+
.rs-calendar-month-view .rs-calendar-month-dropdown-content {
|
|
3253
3275
|
-webkit-animation: 0.3s linear slideDown;
|
|
3254
3276
|
animation: 0.3s linear slideDown;
|
|
3255
3277
|
}
|
|
@@ -3353,10 +3375,10 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
3353
3375
|
overflow: hidden;
|
|
3354
3376
|
z-index: 1;
|
|
3355
3377
|
}
|
|
3356
|
-
.rs-calendar-
|
|
3378
|
+
.rs-calendar-time-view .rs-calendar-time-dropdown {
|
|
3357
3379
|
display: block;
|
|
3358
3380
|
}
|
|
3359
|
-
.rs-calendar-
|
|
3381
|
+
.rs-calendar-time-view .rs-calendar-time-dropdown-content {
|
|
3360
3382
|
-webkit-animation: 0.3s linear slideDown;
|
|
3361
3383
|
animation: 0.3s linear slideDown;
|
|
3362
3384
|
}
|
|
@@ -4454,7 +4476,7 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner::before {
|
|
|
4454
4476
|
}
|
|
4455
4477
|
.rs-picker-daterange-menu .rs-calendar {
|
|
4456
4478
|
display: inline-block;
|
|
4457
|
-
height:
|
|
4479
|
+
height: 274px;
|
|
4458
4480
|
padding-bottom: 12px;
|
|
4459
4481
|
}
|
|
4460
4482
|
.rs-picker-daterange-menu .rs-calendar:first-child {
|
|
@@ -9513,6 +9535,7 @@ textarea.rs-picker-search-input {
|
|
|
9513
9535
|
}
|
|
9514
9536
|
.rs-nav .rs-dropdown > .rs-dropdown-toggle {
|
|
9515
9537
|
height: 36px;
|
|
9538
|
+
vertical-align: bottom;
|
|
9516
9539
|
}
|
|
9517
9540
|
.rs-nav-default .rs-nav-item,
|
|
9518
9541
|
.rs-nav-tabs .rs-nav-item {
|