rsuite 5.46.1 → 5.48.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/CHANGELOG.md +23 -0
- package/CloseButton/styles/index.less +13 -7
- package/DateInput/package.json +7 -0
- package/Message/styles/mixin.less +8 -0
- package/Notification/styles/index.less +8 -0
- package/Picker/styles/index.less +0 -9
- package/Tag/styles/index.less +2 -5
- package/Uploader/styles/index.less +1 -2
- package/cjs/Affix/Affix.d.ts +6 -0
- package/cjs/Affix/Affix.js +7 -0
- package/cjs/Animation/Bounce.d.ts +4 -0
- package/cjs/Animation/Bounce.js +4 -0
- package/cjs/Animation/Collapse.d.ts +4 -0
- package/cjs/Animation/Collapse.js +5 -0
- package/cjs/Animation/Fade.d.ts +4 -0
- package/cjs/Animation/Fade.js +4 -0
- package/cjs/Animation/Slide.d.ts +4 -0
- package/cjs/Animation/Slide.js +4 -0
- package/cjs/Animation/Transition.d.ts +4 -0
- package/cjs/Animation/Transition.js +4 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +3 -0
- package/cjs/AutoComplete/AutoComplete.js +3 -0
- package/cjs/Avatar/Avatar.d.ts +4 -0
- package/cjs/Avatar/Avatar.js +4 -0
- package/cjs/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/cjs/AvatarGroup/AvatarGroup.js +5 -0
- package/cjs/Badge/Badge.d.ts +4 -0
- package/cjs/Badge/Badge.js +4 -0
- package/cjs/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/cjs/Breadcrumb/Breadcrumb.js +4 -0
- package/cjs/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/cjs/Breadcrumb/BreadcrumbItem.js +4 -0
- package/cjs/Button/Button.d.ts +4 -0
- package/cjs/Button/Button.js +4 -0
- package/cjs/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/cjs/ButtonGroup/ButtonGroup.js +4 -0
- package/cjs/ButtonToolbar/ButtonToolbar.d.ts +4 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +4 -0
- package/cjs/Calendar/Calendar.d.ts +4 -0
- package/cjs/Calendar/Calendar.js +4 -0
- package/cjs/Carousel/Carousel.d.ts +4 -0
- package/cjs/Carousel/Carousel.js +4 -0
- package/cjs/Cascader/Cascader.d.ts +4 -0
- package/cjs/Cascader/Cascader.js +5 -0
- package/cjs/CheckPicker/CheckPicker.d.ts +4 -0
- package/cjs/CheckPicker/CheckPicker.js +4 -0
- package/cjs/CheckTree/index.d.ts +4 -0
- package/cjs/CheckTree/index.js +4 -0
- package/cjs/CheckTreePicker/CheckTreePicker.d.ts +5 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +6 -0
- package/cjs/Checkbox/Checkbox.d.ts +6 -0
- package/cjs/Checkbox/Checkbox.js +4 -0
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/cjs/CheckboxGroup/CheckboxGroup.js +4 -0
- package/cjs/CloseButton/CloseButton.js +3 -5
- package/cjs/Col/Col.d.ts +4 -0
- package/cjs/Col/Col.js +4 -0
- package/cjs/Container/Container.d.ts +4 -0
- package/cjs/Container/Container.js +4 -0
- package/cjs/Content/Content.d.ts +3 -0
- package/cjs/Content/Content.js +3 -0
- package/cjs/CustomProvider/CustomProvider.d.ts +8 -3
- package/cjs/CustomProvider/CustomProvider.js +6 -0
- package/cjs/DOMHelper/index.d.ts +4 -0
- package/cjs/DOMHelper/index.js +4 -0
- package/cjs/DateInput/DateField.d.ts +180 -0
- package/cjs/DateInput/DateField.js +151 -0
- package/cjs/DateInput/DateInput.d.ts +18 -0
- package/cjs/DateInput/DateInput.js +222 -0
- package/cjs/DateInput/index.d.ts +3 -0
- package/cjs/DateInput/index.js +9 -0
- package/cjs/DateInput/useDateInputState.d.ts +165 -0
- package/cjs/DateInput/useDateInputState.js +105 -0
- package/cjs/DateInput/utils.d.ts +41 -0
- package/cjs/DateInput/utils.js +159 -0
- package/cjs/DatePicker/DatePicker.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.js +5 -0
- package/cjs/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/cjs/DateRangePicker/DateRangePicker.js +5 -0
- package/cjs/Divider/Divider.d.ts +4 -0
- package/cjs/Divider/Divider.js +4 -0
- package/cjs/Drawer/Drawer.d.ts +4 -0
- package/cjs/Drawer/Drawer.js +4 -0
- package/cjs/Dropdown/Dropdown.d.ts +6 -3
- package/cjs/Dropdown/Dropdown.js +6 -3
- package/cjs/Dropdown/DropdownItem.d.ts +3 -3
- package/cjs/Dropdown/DropdownItem.js +3 -3
- package/cjs/Dropdown/DropdownMenu.d.ts +3 -3
- package/cjs/Dropdown/DropdownMenu.js +3 -3
- package/cjs/Dropdown/DropdownSeparator.d.ts +1 -1
- package/cjs/Dropdown/DropdownSeparator.js +1 -1
- package/cjs/FlexboxGrid/FlexboxGrid.d.ts +4 -0
- package/cjs/FlexboxGrid/FlexboxGrid.js +4 -0
- package/cjs/FlexboxGrid/FlexboxGridItem.d.ts +4 -0
- package/cjs/FlexboxGrid/FlexboxGridItem.js +4 -0
- package/cjs/Footer/Footer.d.ts +4 -0
- package/cjs/Footer/Footer.js +4 -0
- package/cjs/Form/Form.d.ts +4 -0
- package/cjs/Form/Form.js +4 -0
- package/cjs/FormControl/FormControl.d.ts +4 -0
- package/cjs/FormControl/FormControl.js +4 -0
- package/cjs/FormControlLabel/FormControlLabel.d.ts +4 -0
- package/cjs/FormControlLabel/FormControlLabel.js +4 -0
- package/cjs/FormErrorMessage/FormErrorMessage.d.ts +4 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +4 -0
- package/cjs/FormGroup/FormGroup.d.ts +4 -0
- package/cjs/FormGroup/FormGroup.js +5 -0
- package/cjs/FormHelpText/FormHelpText.d.ts +4 -0
- package/cjs/FormHelpText/FormHelpText.js +4 -0
- package/cjs/Grid/Grid.d.ts +4 -0
- package/cjs/Grid/Grid.js +4 -0
- package/cjs/Header/Header.d.ts +4 -0
- package/cjs/Header/Header.js +4 -0
- package/cjs/IconButton/IconButton.d.ts +4 -0
- package/cjs/IconButton/IconButton.js +4 -0
- package/cjs/Input/Input.d.ts +4 -0
- package/cjs/Input/Input.js +4 -0
- package/cjs/InputGroup/InputGroup.d.ts +4 -0
- package/cjs/InputGroup/InputGroup.js +4 -0
- package/cjs/InputGroup/InputGroupAddon.d.ts +4 -0
- package/cjs/InputGroup/InputGroupAddon.js +4 -0
- package/cjs/InputGroup/InputGroupButton.d.ts +4 -0
- package/cjs/InputGroup/InputGroupButton.js +4 -0
- package/cjs/InputNumber/InputNumber.d.ts +4 -0
- package/cjs/InputNumber/InputNumber.js +5 -0
- package/cjs/InputPicker/InputPicker.d.ts +8 -22
- package/cjs/InputPicker/InputPicker.js +13 -8
- package/cjs/InputPicker/InputPickerContext.d.ts +26 -0
- package/cjs/InputPicker/InputPickerContext.js +13 -0
- package/cjs/List/List.d.ts +4 -0
- package/cjs/List/List.js +4 -0
- package/cjs/List/ListItem.d.ts +4 -0
- package/cjs/List/ListItem.js +4 -0
- package/cjs/Loader/Loader.d.ts +4 -0
- package/cjs/Loader/Loader.js +4 -0
- package/cjs/MaskedInput/TextMask.d.ts +4 -0
- package/cjs/MaskedInput/TextMask.js +5 -0
- package/cjs/MaskedInput/createTextMaskInputElement.js +6 -16
- package/cjs/Message/Message.d.ts +4 -0
- package/cjs/Message/Message.js +4 -0
- package/cjs/Modal/Modal.d.ts +4 -0
- package/cjs/Modal/Modal.js +4 -0
- package/cjs/MultiCascader/MultiCascader.d.ts +4 -0
- package/cjs/MultiCascader/MultiCascader.js +5 -0
- package/cjs/Nav/Nav.d.ts +4 -0
- package/cjs/Nav/Nav.js +4 -0
- package/cjs/Nav/NavDropdown.d.ts +2 -1
- package/cjs/Nav/NavDropdown.js +2 -1
- package/cjs/Nav/NavItem.d.ts +6 -3
- package/cjs/Nav/NavItem.js +6 -3
- package/cjs/Nav/NavMenu.d.ts +6 -3
- package/cjs/Nav/NavMenu.js +6 -3
- package/cjs/Navbar/Navbar.d.ts +4 -0
- package/cjs/Navbar/Navbar.js +4 -0
- package/cjs/Notification/Notification.d.ts +5 -0
- package/cjs/Notification/Notification.js +5 -0
- package/cjs/Overlay/Overlay.d.ts +4 -0
- package/cjs/Overlay/Overlay.js +5 -0
- package/cjs/Overlay/OverlayTrigger.d.ts +4 -0
- package/cjs/Overlay/OverlayTrigger.js +16 -11
- package/cjs/Overlay/Position.d.ts +4 -0
- package/cjs/Overlay/Position.js +4 -0
- package/cjs/Pagination/Pagination.d.ts +5 -0
- package/cjs/Pagination/Pagination.js +5 -0
- package/cjs/Panel/Panel.d.ts +4 -0
- package/cjs/Panel/Panel.js +4 -0
- package/cjs/PanelGroup/PanelGroup.d.ts +4 -0
- package/cjs/PanelGroup/PanelGroup.js +5 -0
- package/cjs/Picker/DropdownMenu.d.ts +1 -0
- package/cjs/Picker/DropdownMenu.js +7 -3
- package/cjs/Picker/DropdownMenuCheckItem.d.ts +2 -0
- package/cjs/Picker/DropdownMenuCheckItem.js +18 -14
- package/cjs/Picker/PickerToggle.js +3 -1
- package/cjs/Placeholder/Placeholder.d.ts +4 -0
- package/cjs/Placeholder/Placeholder.js +4 -0
- package/cjs/Placeholder/PlaceholderGraph.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderGraph.js +4 -0
- package/cjs/Placeholder/PlaceholderGrid.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderGrid.js +4 -0
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderParagraph.js +4 -0
- package/cjs/Plaintext/Plaintext.d.ts +2 -1
- package/cjs/Plaintext/Plaintext.js +5 -2
- package/cjs/Popover/Popover.d.ts +4 -0
- package/cjs/Popover/Popover.js +4 -0
- package/cjs/Progress/Progress.d.ts +4 -0
- package/cjs/Progress/Progress.js +4 -0
- package/cjs/Progress/ProgressCircle.d.ts +4 -0
- package/cjs/Progress/ProgressCircle.js +4 -0
- package/cjs/Progress/ProgressLine.d.ts +4 -0
- package/cjs/Progress/ProgressLine.js +4 -0
- package/cjs/Radio/Radio.d.ts +4 -0
- package/cjs/Radio/Radio.js +4 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +4 -0
- package/cjs/RadioGroup/RadioGroup.js +5 -0
- package/cjs/RadioTile/RadioTile.d.ts +5 -0
- package/cjs/RadioTile/RadioTile.js +5 -0
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +5 -0
- package/cjs/RadioTileGroup/RadioTileGroup.js +6 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +4 -0
- package/cjs/RangeSlider/RangeSlider.js +5 -0
- package/cjs/Rate/Rate.d.ts +4 -0
- package/cjs/Rate/Rate.js +4 -0
- package/cjs/Ripple/Ripple.d.ts +4 -0
- package/cjs/Ripple/Ripple.js +5 -0
- package/cjs/Row/Row.d.ts +4 -0
- package/cjs/Row/Row.js +4 -0
- package/cjs/SafeAnchor/SafeAnchor.d.ts +4 -0
- package/cjs/SafeAnchor/SafeAnchor.js +5 -0
- package/cjs/Schema/Schema.d.ts +6 -0
- package/cjs/Schema/Schema.js +6 -0
- package/cjs/SelectPicker/SelectPicker.d.ts +4 -0
- package/cjs/SelectPicker/SelectPicker.js +4 -0
- package/cjs/Sidebar/Sidebar.d.ts +4 -0
- package/cjs/Sidebar/Sidebar.js +4 -0
- package/cjs/Sidenav/Sidenav.d.ts +4 -0
- package/cjs/Sidenav/Sidenav.js +5 -0
- package/cjs/Sidenav/SidenavBody.d.ts +5 -0
- package/cjs/Sidenav/SidenavBody.js +5 -0
- package/cjs/Sidenav/SidenavHeader.d.ts +5 -0
- package/cjs/Sidenav/SidenavHeader.js +5 -0
- package/cjs/Slider/Slider.d.ts +5 -0
- package/cjs/Slider/Slider.js +6 -0
- package/cjs/Stack/Stack.d.ts +6 -0
- package/cjs/Stack/Stack.js +6 -0
- package/cjs/Stack/StackItem.d.ts +5 -0
- package/cjs/Stack/StackItem.js +5 -0
- package/cjs/Steps/StepItem.d.ts +5 -0
- package/cjs/Steps/StepItem.js +5 -0
- package/cjs/Steps/Steps.d.ts +5 -0
- package/cjs/Steps/Steps.js +5 -0
- package/cjs/Table/Table.d.ts +19 -2
- package/cjs/Table/Table.js +20 -1
- package/cjs/Tag/Tag.d.ts +6 -0
- package/cjs/Tag/Tag.js +13 -1
- package/cjs/TagGroup/TagGroup.d.ts +5 -0
- package/cjs/TagGroup/TagGroup.js +5 -0
- package/cjs/TagInput/index.d.ts +8 -15
- package/cjs/TagInput/index.js +8 -2
- package/cjs/TagPicker/index.d.ts +13 -10
- package/cjs/TagPicker/index.js +13 -5
- package/cjs/Timeline/Timeline.d.ts +5 -0
- package/cjs/Timeline/Timeline.js +5 -0
- package/cjs/Timeline/TimelineItem.d.ts +5 -0
- package/cjs/Timeline/TimelineItem.js +5 -0
- package/cjs/Toggle/Toggle.d.ts +5 -0
- package/cjs/Toggle/Toggle.js +5 -0
- package/cjs/Tooltip/Tooltip.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.js +5 -0
- package/cjs/Tree/Tree.d.ts +5 -0
- package/cjs/Tree/Tree.js +5 -0
- package/cjs/TreePicker/TreePicker.d.ts +5 -0
- package/cjs/TreePicker/TreePicker.js +6 -0
- package/cjs/Uploader/UploadFileItem.js +19 -5
- package/cjs/Uploader/Uploader.d.ts +5 -0
- package/cjs/Uploader/Uploader.js +6 -0
- package/cjs/Whisper/Whisper.d.ts +6 -0
- package/cjs/Whisper/Whisper.js +6 -0
- package/cjs/Windowing/AutoSizer.d.ts +5 -0
- package/cjs/Windowing/AutoSizer.js +5 -0
- package/cjs/Windowing/List.d.ts +6 -1
- package/cjs/Windowing/List.js +5 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +6 -2
- package/cjs/locales/ar_EG.d.ts +3 -0
- package/cjs/locales/ar_EG.js +5 -2
- package/cjs/locales/da_DK.d.ts +3 -0
- package/cjs/locales/da_DK.js +5 -2
- package/cjs/locales/de_DE.d.ts +3 -0
- package/cjs/locales/de_DE.js +5 -2
- package/cjs/locales/default.d.ts +3 -0
- package/cjs/locales/default.js +5 -2
- package/cjs/locales/en_US.d.ts +3 -0
- package/cjs/locales/en_US.js +5 -2
- package/cjs/locales/es_AR.d.ts +3 -0
- package/cjs/locales/es_AR.js +5 -2
- package/cjs/locales/es_ES.d.ts +3 -0
- package/cjs/locales/es_ES.js +5 -2
- package/cjs/locales/fa_IR.d.ts +3 -0
- package/cjs/locales/fa_IR.js +5 -2
- package/cjs/locales/fi_FI.d.ts +3 -0
- package/cjs/locales/fi_FI.js +5 -2
- package/cjs/locales/fr_FR.d.ts +3 -0
- package/cjs/locales/fr_FR.js +5 -2
- package/cjs/locales/hu_HU.d.ts +3 -0
- package/cjs/locales/hu_HU.js +5 -2
- package/cjs/locales/index.d.ts +1 -1
- package/cjs/locales/it_IT.d.ts +3 -0
- package/cjs/locales/it_IT.js +5 -2
- package/cjs/locales/ja_JP.d.ts +3 -0
- package/cjs/locales/ja_JP.js +5 -2
- package/cjs/locales/kk_KZ.d.ts +3 -0
- package/cjs/locales/kk_KZ.js +5 -2
- package/cjs/locales/ko_KR.d.ts +3 -0
- package/cjs/locales/ko_KR.js +5 -2
- package/cjs/locales/ne_NP.d.ts +3 -0
- package/cjs/locales/ne_NP.js +5 -2
- package/cjs/locales/nl_NL.d.ts +3 -0
- package/cjs/locales/nl_NL.js +5 -2
- package/cjs/locales/pt_BR.d.ts +3 -0
- package/cjs/locales/pt_BR.js +5 -2
- package/cjs/locales/ru_RU.d.ts +3 -0
- package/cjs/locales/ru_RU.js +6 -3
- package/cjs/locales/sv_SE.d.ts +3 -0
- package/cjs/locales/sv_SE.js +5 -2
- package/cjs/locales/tr_TR.d.ts +3 -0
- package/cjs/locales/tr_TR.js +5 -2
- package/cjs/locales/zh_CN.d.ts +3 -0
- package/cjs/locales/zh_CN.js +5 -2
- package/cjs/locales/zh_TW.d.ts +3 -0
- package/cjs/locales/zh_TW.js +5 -2
- package/cjs/toaster/toaster.d.ts +9 -7
- package/cjs/toaster/useToaster.d.ts +19 -1
- package/cjs/toaster/useToaster.js +19 -1
- package/cjs/useMediaQuery/index.d.ts +2 -0
- package/cjs/useMediaQuery/index.js +9 -0
- package/cjs/useMediaQuery/useMediaQuery.d.ts +23 -0
- package/cjs/useMediaQuery/useMediaQuery.js +123 -0
- package/cjs/utils/BrowserDetection.d.ts +1 -0
- package/cjs/utils/BrowserDetection.js +5 -1
- package/cjs/utils/dateUtils.d.ts +6 -0
- package/cjs/utils/dateUtils.js +13 -1
- package/cjs/utils/index.d.ts +1 -0
- package/cjs/utils/index.js +4 -1
- package/cjs/utils/safeSetSelection.d.ts +2 -0
- package/cjs/utils/safeSetSelection.js +21 -0
- package/cjs/utils/treeUtils.d.ts +2 -2
- package/dist/rsuite-no-reset-rtl.css +54 -25
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +54 -25
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +54 -25
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +54 -25
- package/dist/rsuite.js +354 -129
- 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.map +1 -1
- package/esm/Affix/Affix.d.ts +6 -0
- package/esm/Affix/Affix.js +7 -0
- package/esm/Animation/Bounce.d.ts +4 -0
- package/esm/Animation/Bounce.js +4 -0
- package/esm/Animation/Collapse.d.ts +4 -0
- package/esm/Animation/Collapse.js +5 -0
- package/esm/Animation/Fade.d.ts +4 -0
- package/esm/Animation/Fade.js +4 -0
- package/esm/Animation/Slide.d.ts +4 -0
- package/esm/Animation/Slide.js +4 -0
- package/esm/Animation/Transition.d.ts +4 -0
- package/esm/Animation/Transition.js +4 -0
- package/esm/AutoComplete/AutoComplete.d.ts +3 -0
- package/esm/AutoComplete/AutoComplete.js +3 -0
- package/esm/Avatar/Avatar.d.ts +4 -0
- package/esm/Avatar/Avatar.js +4 -0
- package/esm/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/esm/AvatarGroup/AvatarGroup.js +5 -0
- package/esm/Badge/Badge.d.ts +4 -0
- package/esm/Badge/Badge.js +4 -0
- package/esm/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/esm/Breadcrumb/Breadcrumb.js +4 -0
- package/esm/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/esm/Breadcrumb/BreadcrumbItem.js +4 -0
- package/esm/Button/Button.d.ts +4 -0
- package/esm/Button/Button.js +4 -0
- package/esm/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/esm/ButtonGroup/ButtonGroup.js +4 -0
- package/esm/ButtonToolbar/ButtonToolbar.d.ts +4 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +4 -0
- package/esm/Calendar/Calendar.d.ts +4 -0
- package/esm/Calendar/Calendar.js +4 -0
- package/esm/Carousel/Carousel.d.ts +4 -0
- package/esm/Carousel/Carousel.js +4 -0
- package/esm/Cascader/Cascader.d.ts +4 -0
- package/esm/Cascader/Cascader.js +5 -0
- package/esm/CheckPicker/CheckPicker.d.ts +4 -0
- package/esm/CheckPicker/CheckPicker.js +4 -0
- package/esm/CheckTree/index.d.ts +4 -0
- package/esm/CheckTree/index.js +4 -0
- package/esm/CheckTreePicker/CheckTreePicker.d.ts +5 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +6 -0
- package/esm/Checkbox/Checkbox.d.ts +6 -0
- package/esm/Checkbox/Checkbox.js +4 -0
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/esm/CheckboxGroup/CheckboxGroup.js +4 -0
- package/esm/CloseButton/CloseButton.js +3 -5
- package/esm/Col/Col.d.ts +4 -0
- package/esm/Col/Col.js +4 -0
- package/esm/Container/Container.d.ts +4 -0
- package/esm/Container/Container.js +4 -0
- package/esm/Content/Content.d.ts +3 -0
- package/esm/Content/Content.js +3 -0
- package/esm/CustomProvider/CustomProvider.d.ts +8 -3
- package/esm/CustomProvider/CustomProvider.js +6 -0
- package/esm/DOMHelper/index.d.ts +4 -0
- package/esm/DOMHelper/index.js +5 -0
- package/esm/DateInput/DateField.d.ts +180 -0
- package/esm/DateInput/DateField.js +144 -0
- package/esm/DateInput/DateInput.d.ts +18 -0
- package/esm/DateInput/DateInput.js +215 -0
- package/esm/DateInput/index.d.ts +3 -0
- package/esm/DateInput/index.js +3 -0
- package/esm/DateInput/useDateInputState.d.ts +165 -0
- package/esm/DateInput/useDateInputState.js +99 -0
- package/esm/DateInput/utils.d.ts +41 -0
- package/esm/DateInput/utils.js +151 -0
- package/esm/DatePicker/DatePicker.d.ts +5 -0
- package/esm/DatePicker/DatePicker.js +5 -0
- package/esm/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/esm/DateRangePicker/DateRangePicker.js +5 -0
- package/esm/Divider/Divider.d.ts +4 -0
- package/esm/Divider/Divider.js +4 -0
- package/esm/Drawer/Drawer.d.ts +4 -0
- package/esm/Drawer/Drawer.js +4 -0
- package/esm/Dropdown/Dropdown.d.ts +6 -3
- package/esm/Dropdown/Dropdown.js +6 -3
- package/esm/Dropdown/DropdownItem.d.ts +3 -3
- package/esm/Dropdown/DropdownItem.js +3 -3
- package/esm/Dropdown/DropdownMenu.d.ts +3 -3
- package/esm/Dropdown/DropdownMenu.js +3 -3
- package/esm/Dropdown/DropdownSeparator.d.ts +1 -1
- package/esm/Dropdown/DropdownSeparator.js +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.d.ts +4 -0
- package/esm/FlexboxGrid/FlexboxGrid.js +4 -0
- package/esm/FlexboxGrid/FlexboxGridItem.d.ts +4 -0
- package/esm/FlexboxGrid/FlexboxGridItem.js +4 -0
- package/esm/Footer/Footer.d.ts +4 -0
- package/esm/Footer/Footer.js +4 -0
- package/esm/Form/Form.d.ts +4 -0
- package/esm/Form/Form.js +4 -0
- package/esm/FormControl/FormControl.d.ts +4 -0
- package/esm/FormControl/FormControl.js +4 -0
- package/esm/FormControlLabel/FormControlLabel.d.ts +4 -0
- package/esm/FormControlLabel/FormControlLabel.js +4 -0
- package/esm/FormErrorMessage/FormErrorMessage.d.ts +4 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +4 -0
- package/esm/FormGroup/FormGroup.d.ts +4 -0
- package/esm/FormGroup/FormGroup.js +5 -0
- package/esm/FormHelpText/FormHelpText.d.ts +4 -0
- package/esm/FormHelpText/FormHelpText.js +4 -0
- package/esm/Grid/Grid.d.ts +4 -0
- package/esm/Grid/Grid.js +4 -0
- package/esm/Header/Header.d.ts +4 -0
- package/esm/Header/Header.js +4 -0
- package/esm/IconButton/IconButton.d.ts +4 -0
- package/esm/IconButton/IconButton.js +4 -0
- package/esm/Input/Input.d.ts +4 -0
- package/esm/Input/Input.js +4 -0
- package/esm/InputGroup/InputGroup.d.ts +4 -0
- package/esm/InputGroup/InputGroup.js +4 -0
- package/esm/InputGroup/InputGroupAddon.d.ts +4 -0
- package/esm/InputGroup/InputGroupAddon.js +4 -0
- package/esm/InputGroup/InputGroupButton.d.ts +4 -0
- package/esm/InputGroup/InputGroupButton.js +5 -0
- package/esm/InputNumber/InputNumber.d.ts +4 -0
- package/esm/InputNumber/InputNumber.js +5 -0
- package/esm/InputPicker/InputPicker.d.ts +8 -22
- package/esm/InputPicker/InputPicker.js +11 -5
- package/esm/InputPicker/InputPickerContext.d.ts +26 -0
- package/esm/InputPicker/InputPickerContext.js +7 -0
- package/esm/List/List.d.ts +4 -0
- package/esm/List/List.js +4 -0
- package/esm/List/ListItem.d.ts +4 -0
- package/esm/List/ListItem.js +4 -0
- package/esm/Loader/Loader.d.ts +4 -0
- package/esm/Loader/Loader.js +4 -0
- package/esm/MaskedInput/TextMask.d.ts +4 -0
- package/esm/MaskedInput/TextMask.js +5 -0
- package/esm/MaskedInput/createTextMaskInputElement.js +6 -16
- package/esm/Message/Message.d.ts +4 -0
- package/esm/Message/Message.js +4 -0
- package/esm/Modal/Modal.d.ts +4 -0
- package/esm/Modal/Modal.js +4 -0
- package/esm/MultiCascader/MultiCascader.d.ts +4 -0
- package/esm/MultiCascader/MultiCascader.js +5 -0
- package/esm/Nav/Nav.d.ts +4 -0
- package/esm/Nav/Nav.js +4 -0
- package/esm/Nav/NavDropdown.d.ts +2 -1
- package/esm/Nav/NavDropdown.js +2 -1
- package/esm/Nav/NavItem.d.ts +6 -3
- package/esm/Nav/NavItem.js +6 -3
- package/esm/Nav/NavMenu.d.ts +6 -3
- package/esm/Nav/NavMenu.js +6 -3
- package/esm/Navbar/Navbar.d.ts +4 -0
- package/esm/Navbar/Navbar.js +4 -0
- package/esm/Notification/Notification.d.ts +5 -0
- package/esm/Notification/Notification.js +5 -0
- package/esm/Overlay/Overlay.d.ts +4 -0
- package/esm/Overlay/Overlay.js +5 -0
- package/esm/Overlay/OverlayTrigger.d.ts +4 -0
- package/esm/Overlay/OverlayTrigger.js +16 -11
- package/esm/Overlay/Position.d.ts +4 -0
- package/esm/Overlay/Position.js +4 -0
- package/esm/Pagination/Pagination.d.ts +5 -0
- package/esm/Pagination/Pagination.js +5 -0
- package/esm/Panel/Panel.d.ts +4 -0
- package/esm/Panel/Panel.js +4 -0
- package/esm/PanelGroup/PanelGroup.d.ts +4 -0
- package/esm/PanelGroup/PanelGroup.js +5 -0
- package/esm/Picker/DropdownMenu.d.ts +1 -0
- package/esm/Picker/DropdownMenu.js +7 -3
- package/esm/Picker/DropdownMenuCheckItem.d.ts +2 -0
- package/esm/Picker/DropdownMenuCheckItem.js +18 -14
- package/esm/Picker/PickerToggle.js +4 -2
- package/esm/Placeholder/Placeholder.d.ts +4 -0
- package/esm/Placeholder/Placeholder.js +4 -0
- package/esm/Placeholder/PlaceholderGraph.d.ts +4 -0
- package/esm/Placeholder/PlaceholderGraph.js +4 -0
- package/esm/Placeholder/PlaceholderGrid.d.ts +4 -0
- package/esm/Placeholder/PlaceholderGrid.js +4 -0
- package/esm/Placeholder/PlaceholderParagraph.d.ts +4 -0
- package/esm/Placeholder/PlaceholderParagraph.js +4 -0
- package/esm/Plaintext/Plaintext.d.ts +2 -1
- package/esm/Plaintext/Plaintext.js +5 -2
- package/esm/Popover/Popover.d.ts +4 -0
- package/esm/Popover/Popover.js +4 -0
- package/esm/Progress/Progress.d.ts +4 -0
- package/esm/Progress/Progress.js +4 -0
- package/esm/Progress/ProgressCircle.d.ts +4 -0
- package/esm/Progress/ProgressCircle.js +4 -0
- package/esm/Progress/ProgressLine.d.ts +4 -0
- package/esm/Progress/ProgressLine.js +4 -0
- package/esm/Radio/Radio.d.ts +4 -0
- package/esm/Radio/Radio.js +4 -0
- package/esm/RadioGroup/RadioGroup.d.ts +4 -0
- package/esm/RadioGroup/RadioGroup.js +5 -0
- package/esm/RadioTile/RadioTile.d.ts +5 -0
- package/esm/RadioTile/RadioTile.js +5 -0
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +5 -0
- package/esm/RadioTileGroup/RadioTileGroup.js +6 -0
- package/esm/RangeSlider/RangeSlider.d.ts +4 -0
- package/esm/RangeSlider/RangeSlider.js +5 -0
- package/esm/Rate/Rate.d.ts +4 -0
- package/esm/Rate/Rate.js +4 -0
- package/esm/Ripple/Ripple.d.ts +4 -0
- package/esm/Ripple/Ripple.js +5 -0
- package/esm/Row/Row.d.ts +4 -0
- package/esm/Row/Row.js +4 -0
- package/esm/SafeAnchor/SafeAnchor.d.ts +4 -0
- package/esm/SafeAnchor/SafeAnchor.js +5 -0
- package/esm/Schema/Schema.d.ts +6 -0
- package/esm/Schema/Schema.js +7 -0
- package/esm/SelectPicker/SelectPicker.d.ts +4 -0
- package/esm/SelectPicker/SelectPicker.js +4 -0
- package/esm/Sidebar/Sidebar.d.ts +4 -0
- package/esm/Sidebar/Sidebar.js +4 -0
- package/esm/Sidenav/Sidenav.d.ts +4 -0
- package/esm/Sidenav/Sidenav.js +5 -0
- package/esm/Sidenav/SidenavBody.d.ts +5 -0
- package/esm/Sidenav/SidenavBody.js +5 -0
- package/esm/Sidenav/SidenavHeader.d.ts +5 -0
- package/esm/Sidenav/SidenavHeader.js +5 -0
- package/esm/Slider/Slider.d.ts +5 -0
- package/esm/Slider/Slider.js +6 -0
- package/esm/Stack/Stack.d.ts +6 -0
- package/esm/Stack/Stack.js +6 -0
- package/esm/Stack/StackItem.d.ts +5 -0
- package/esm/Stack/StackItem.js +5 -0
- package/esm/Steps/StepItem.d.ts +5 -0
- package/esm/Steps/StepItem.js +5 -0
- package/esm/Steps/Steps.d.ts +5 -0
- package/esm/Steps/Steps.js +5 -0
- package/esm/Table/Table.d.ts +19 -2
- package/esm/Table/Table.js +23 -4
- package/esm/Tag/Tag.d.ts +6 -0
- package/esm/Tag/Tag.js +14 -2
- package/esm/TagGroup/TagGroup.d.ts +5 -0
- package/esm/TagGroup/TagGroup.js +5 -0
- package/esm/TagInput/index.d.ts +8 -15
- package/esm/TagInput/index.js +7 -1
- package/esm/TagPicker/index.d.ts +13 -10
- package/esm/TagPicker/index.js +12 -4
- package/esm/Timeline/Timeline.d.ts +5 -0
- package/esm/Timeline/Timeline.js +5 -0
- package/esm/Timeline/TimelineItem.d.ts +5 -0
- package/esm/Timeline/TimelineItem.js +5 -0
- package/esm/Toggle/Toggle.d.ts +5 -0
- package/esm/Toggle/Toggle.js +5 -0
- package/esm/Tooltip/Tooltip.d.ts +5 -0
- package/esm/Tooltip/Tooltip.js +5 -0
- package/esm/Tree/Tree.d.ts +5 -0
- package/esm/Tree/Tree.js +5 -0
- package/esm/TreePicker/TreePicker.d.ts +5 -0
- package/esm/TreePicker/TreePicker.js +6 -0
- package/esm/Uploader/UploadFileItem.js +19 -5
- package/esm/Uploader/Uploader.d.ts +5 -0
- package/esm/Uploader/Uploader.js +6 -0
- package/esm/Whisper/Whisper.d.ts +6 -0
- package/esm/Whisper/Whisper.js +6 -0
- package/esm/Windowing/AutoSizer.d.ts +5 -0
- package/esm/Windowing/AutoSizer.js +5 -0
- package/esm/Windowing/List.d.ts +6 -1
- package/esm/Windowing/List.js +5 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -1
- package/esm/locales/ar_EG.d.ts +3 -0
- package/esm/locales/ar_EG.js +5 -2
- package/esm/locales/da_DK.d.ts +3 -0
- package/esm/locales/da_DK.js +5 -2
- package/esm/locales/de_DE.d.ts +3 -0
- package/esm/locales/de_DE.js +5 -2
- package/esm/locales/default.d.ts +3 -0
- package/esm/locales/default.js +5 -2
- package/esm/locales/en_US.d.ts +3 -0
- package/esm/locales/en_US.js +5 -2
- package/esm/locales/es_AR.d.ts +3 -0
- package/esm/locales/es_AR.js +5 -2
- package/esm/locales/es_ES.d.ts +3 -0
- package/esm/locales/es_ES.js +5 -2
- package/esm/locales/fa_IR.d.ts +3 -0
- package/esm/locales/fa_IR.js +5 -2
- package/esm/locales/fi_FI.d.ts +3 -0
- package/esm/locales/fi_FI.js +5 -2
- package/esm/locales/fr_FR.d.ts +3 -0
- package/esm/locales/fr_FR.js +5 -2
- package/esm/locales/hu_HU.d.ts +3 -0
- package/esm/locales/hu_HU.js +5 -2
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/it_IT.d.ts +3 -0
- package/esm/locales/it_IT.js +5 -2
- package/esm/locales/ja_JP.d.ts +3 -0
- package/esm/locales/ja_JP.js +5 -2
- package/esm/locales/kk_KZ.d.ts +3 -0
- package/esm/locales/kk_KZ.js +5 -2
- package/esm/locales/ko_KR.d.ts +3 -0
- package/esm/locales/ko_KR.js +5 -2
- package/esm/locales/ne_NP.d.ts +3 -0
- package/esm/locales/ne_NP.js +5 -2
- package/esm/locales/nl_NL.d.ts +3 -0
- package/esm/locales/nl_NL.js +5 -2
- package/esm/locales/pt_BR.d.ts +3 -0
- package/esm/locales/pt_BR.js +5 -2
- package/esm/locales/ru_RU.d.ts +3 -0
- package/esm/locales/ru_RU.js +6 -3
- package/esm/locales/sv_SE.d.ts +3 -0
- package/esm/locales/sv_SE.js +5 -2
- package/esm/locales/tr_TR.d.ts +3 -0
- package/esm/locales/tr_TR.js +5 -2
- package/esm/locales/zh_CN.d.ts +3 -0
- package/esm/locales/zh_CN.js +5 -2
- package/esm/locales/zh_TW.d.ts +3 -0
- package/esm/locales/zh_TW.js +5 -2
- package/esm/toaster/toaster.d.ts +9 -7
- package/esm/toaster/useToaster.d.ts +19 -1
- package/esm/toaster/useToaster.js +19 -1
- package/esm/useMediaQuery/index.d.ts +2 -0
- package/esm/useMediaQuery/index.js +3 -0
- package/esm/useMediaQuery/useMediaQuery.d.ts +23 -0
- package/esm/useMediaQuery/useMediaQuery.js +113 -0
- package/esm/utils/BrowserDetection.d.ts +1 -0
- package/esm/utils/BrowserDetection.js +3 -0
- package/esm/utils/dateUtils.d.ts +6 -0
- package/esm/utils/dateUtils.js +6 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.js +1 -0
- package/esm/utils/safeSetSelection.d.ts +2 -0
- package/esm/utils/safeSetSelection.js +16 -0
- package/esm/utils/treeUtils.d.ts +2 -2
- package/package.json +1 -1
- package/styles/color-modes/dark.less +3 -1
- package/styles/color-modes/high-contrast.less +3 -1
- package/styles/color-modes/light.less +3 -1
- package/useMediaQuery/package.json +7 -0
package/esm/locales/nl_NL.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/nl_NL.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: 'Laden...',
|
|
25
|
-
emptyMessage: 'Geen data gevonden'
|
|
25
|
+
emptyMessage: 'Geen data gevonden',
|
|
26
|
+
remove: 'Verwijderen',
|
|
27
|
+
clear: 'Duidelijk'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: 'Ongevuld',
|
|
@@ -60,7 +62,8 @@ export default {
|
|
|
60
62
|
error: 'Error',
|
|
61
63
|
complete: 'Voltooid',
|
|
62
64
|
emptyFile: 'Leeg',
|
|
63
|
-
upload: 'Upload'
|
|
65
|
+
upload: 'Upload',
|
|
66
|
+
removeFile: 'Verwijder bestand'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
69
|
closeLabel: 'Sluiten'
|
package/esm/locales/pt_BR.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/pt_BR.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: 'Carregando...',
|
|
25
|
-
emptyMessage: 'Nenhum dado encontrado'
|
|
25
|
+
emptyMessage: 'Nenhum dado encontrado',
|
|
26
|
+
remove: 'Remover',
|
|
27
|
+
clear: 'Claro'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: 'sin llenar',
|
|
@@ -60,7 +62,8 @@ export default {
|
|
|
60
62
|
error: 'Erro',
|
|
61
63
|
complete: 'Finalizado',
|
|
62
64
|
emptyFile: 'Em branco',
|
|
63
|
-
upload: 'Upload'
|
|
65
|
+
upload: 'Upload',
|
|
66
|
+
removeFile: 'Remover arquivo'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
69
|
closeLabel: 'Apagar'
|
package/esm/locales/ru_RU.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/ru_RU.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: 'Загрузка...',
|
|
25
|
-
emptyMessage: 'Данные не найдены'
|
|
25
|
+
emptyMessage: 'Данные не найдены',
|
|
26
|
+
remove: 'Удалять',
|
|
27
|
+
clear: 'Прозрачный'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: 'незаполненной',
|
|
@@ -60,10 +62,11 @@ export default {
|
|
|
60
62
|
error: 'Ошибка',
|
|
61
63
|
complete: 'Завершено',
|
|
62
64
|
emptyFile: 'Пусто',
|
|
63
|
-
upload: 'Загрузить'
|
|
65
|
+
upload: 'Загрузить',
|
|
66
|
+
removeFile: 'Удалить файл'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
|
-
closeLabel: '
|
|
69
|
+
closeLabel: 'Закрыть'
|
|
67
70
|
},
|
|
68
71
|
Breadcrumb: {
|
|
69
72
|
expandText: 'Показать путь'
|
package/esm/locales/sv_SE.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -102,6 +104,7 @@ declare const _default: {
|
|
|
102
104
|
complete: string;
|
|
103
105
|
emptyFile: string;
|
|
104
106
|
upload: string;
|
|
107
|
+
removeFile: string;
|
|
105
108
|
};
|
|
106
109
|
CloseButton: {
|
|
107
110
|
closeLabel: string;
|
package/esm/locales/sv_SE.js
CHANGED
|
@@ -26,7 +26,9 @@ var Calendar = {
|
|
|
26
26
|
export default {
|
|
27
27
|
common: {
|
|
28
28
|
loading: 'Laddar...',
|
|
29
|
-
emptyMessage: 'Kunde inte hitta data'
|
|
29
|
+
emptyMessage: 'Kunde inte hitta data',
|
|
30
|
+
remove: 'Ta bort',
|
|
31
|
+
clear: 'Rensa'
|
|
30
32
|
},
|
|
31
33
|
Plaintext: {
|
|
32
34
|
unfilled: 'Ofylld',
|
|
@@ -64,7 +66,8 @@ export default {
|
|
|
64
66
|
error: 'Fel',
|
|
65
67
|
complete: 'Färdig',
|
|
66
68
|
emptyFile: 'Tom',
|
|
67
|
-
upload: 'Ladda upp'
|
|
69
|
+
upload: 'Ladda upp',
|
|
70
|
+
removeFile: 'Radera filer'
|
|
68
71
|
},
|
|
69
72
|
CloseButton: {
|
|
70
73
|
closeLabel: 'Stänga av'
|
package/esm/locales/tr_TR.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/tr_TR.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: 'Yükleniyor...',
|
|
25
|
-
emptyMessage: 'Veri bulunamadı'
|
|
25
|
+
emptyMessage: 'Veri bulunamadı',
|
|
26
|
+
remove: 'Kaldır',
|
|
27
|
+
clear: 'Temizlemek'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: 'Doldurulmadı',
|
|
@@ -60,7 +62,8 @@ export default {
|
|
|
60
62
|
error: 'Hata',
|
|
61
63
|
complete: 'Tamamlandı',
|
|
62
64
|
emptyFile: 'Boş',
|
|
63
|
-
upload: 'Yükle'
|
|
65
|
+
upload: 'Yükle',
|
|
66
|
+
removeFile: 'Dosyayı kaldır'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
69
|
closeLabel: 'Kapat'
|
package/esm/locales/zh_CN.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/zh_CN.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: '加载中...',
|
|
25
|
-
emptyMessage: '数据为空'
|
|
25
|
+
emptyMessage: '数据为空',
|
|
26
|
+
remove: '移除',
|
|
27
|
+
clear: '清除'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: '未填写',
|
|
@@ -60,7 +62,8 @@ export default {
|
|
|
60
62
|
error: '上传出错',
|
|
61
63
|
complete: '上传完成',
|
|
62
64
|
emptyFile: '无文件',
|
|
63
|
-
upload: '上传'
|
|
65
|
+
upload: '上传',
|
|
66
|
+
removeFile: '删除文件'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
69
|
closeLabel: '关闭'
|
package/esm/locales/zh_TW.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ declare const _default: {
|
|
|
2
2
|
common: {
|
|
3
3
|
loading: string;
|
|
4
4
|
emptyMessage: string;
|
|
5
|
+
remove: string;
|
|
6
|
+
clear: string;
|
|
5
7
|
};
|
|
6
8
|
Plaintext: {
|
|
7
9
|
unfilled: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: {
|
|
|
90
92
|
complete: string;
|
|
91
93
|
emptyFile: string;
|
|
92
94
|
upload: string;
|
|
95
|
+
removeFile: string;
|
|
93
96
|
};
|
|
94
97
|
CloseButton: {
|
|
95
98
|
closeLabel: string;
|
package/esm/locales/zh_TW.js
CHANGED
|
@@ -22,7 +22,9 @@ var Calendar = {
|
|
|
22
22
|
export default {
|
|
23
23
|
common: {
|
|
24
24
|
loading: '讀取中...',
|
|
25
|
-
emptyMessage: '沒有資料'
|
|
25
|
+
emptyMessage: '沒有資料',
|
|
26
|
+
remove: '移除',
|
|
27
|
+
clear: '清除'
|
|
26
28
|
},
|
|
27
29
|
Plaintext: {
|
|
28
30
|
unfilled: '未填寫',
|
|
@@ -60,7 +62,8 @@ export default {
|
|
|
60
62
|
error: '上傳出錯',
|
|
61
63
|
complete: '上傳完成',
|
|
62
64
|
emptyFile: '無文件',
|
|
63
|
-
upload: '上傳'
|
|
65
|
+
upload: '上傳',
|
|
66
|
+
removeFile: '刪除文件'
|
|
64
67
|
},
|
|
65
68
|
CloseButton: {
|
|
66
69
|
closeLabel: '關閉'
|
package/esm/toaster/toaster.d.ts
CHANGED
|
@@ -2,19 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { ToastContainerProps } from './ToastContainer';
|
|
3
3
|
export interface Toaster {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param options
|
|
5
|
+
* Push a toast message.
|
|
6
|
+
* @param message The message to be displayed.
|
|
7
|
+
* eg: `<Message type="success" description="Success" />` or `<Notification type="success" closable>Success</Notification>`
|
|
8
|
+
* @param options The options of the toast message. (optional)
|
|
9
|
+
* eg: `{ placement: 'topCenter', duration: 5000 }`
|
|
10
|
+
* @returns The key of the toast message.
|
|
9
11
|
*/
|
|
10
12
|
push(message: React.ReactNode, options?: ToastContainerProps): string | undefined | Promise<string | undefined>;
|
|
11
13
|
/**
|
|
12
|
-
* Remove a message
|
|
13
|
-
* @param key
|
|
14
|
+
* Remove a toast message.
|
|
15
|
+
* @param key The key of the toast message.
|
|
14
16
|
*/
|
|
15
17
|
remove(key: string): void;
|
|
16
18
|
/**
|
|
17
|
-
* Clear all messages
|
|
19
|
+
* Clear all toast messages.
|
|
18
20
|
*/
|
|
19
21
|
clear(): void;
|
|
20
22
|
}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToastContainerProps } from './ToastContainer';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* The 'useToaster' hook is a wrapper for the 'toaster' module.
|
|
5
5
|
* @returns toaster { push, remove, clear }
|
|
6
|
+
*
|
|
7
|
+
* @see https://rsuitejs.com/components/message/
|
|
8
|
+
* @see https://rsuitejs.com/components/notification/
|
|
6
9
|
*/
|
|
7
10
|
declare const useToaster: () => {
|
|
11
|
+
/**
|
|
12
|
+
* Push a toast message.
|
|
13
|
+
* @param message The message to be displayed.
|
|
14
|
+
* eg: `<Message type="success" description="Success" />` or `<Notification type="success" closable>Success</Notification>`
|
|
15
|
+
* @param options The options of the toast message. (optional)
|
|
16
|
+
* eg: `{ placement: 'topCenter', duration: 5000 }`
|
|
17
|
+
* @returns The key of the toast message.
|
|
18
|
+
*/
|
|
8
19
|
push: (message: React.ReactNode, options?: ToastContainerProps) => string | Promise<string | undefined> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Remove a toast message.
|
|
22
|
+
* @param key The key of the toast message.
|
|
23
|
+
*/
|
|
9
24
|
remove: (key: string) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Clear all toast messages.
|
|
27
|
+
*/
|
|
10
28
|
clear: () => void;
|
|
11
29
|
};
|
|
12
30
|
export default useToaster;
|
|
@@ -4,25 +4,43 @@ import toaster from './toaster';
|
|
|
4
4
|
import { useCustom } from '../utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* The 'useToaster' hook is a wrapper for the 'toaster' module.
|
|
8
8
|
* @returns toaster { push, remove, clear }
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/components/message/
|
|
11
|
+
* @see https://rsuitejs.com/components/notification/
|
|
9
12
|
*/
|
|
10
13
|
var useToaster = function useToaster() {
|
|
11
14
|
var _useCustom = useCustom(),
|
|
12
15
|
toasters = _useCustom.toasters;
|
|
13
16
|
return useMemo(function () {
|
|
14
17
|
return {
|
|
18
|
+
/**
|
|
19
|
+
* Push a toast message.
|
|
20
|
+
* @param message The message to be displayed.
|
|
21
|
+
* eg: `<Message type="success" description="Success" />` or `<Notification type="success" closable>Success</Notification>`
|
|
22
|
+
* @param options The options of the toast message. (optional)
|
|
23
|
+
* eg: `{ placement: 'topCenter', duration: 5000 }`
|
|
24
|
+
* @returns The key of the toast message.
|
|
25
|
+
*/
|
|
15
26
|
push: function push(message, options) {
|
|
16
27
|
var _toasters$current;
|
|
17
28
|
var customToaster = toasters === null || toasters === void 0 ? void 0 : (_toasters$current = toasters.current) === null || _toasters$current === void 0 ? void 0 : _toasters$current.get((options === null || options === void 0 ? void 0 : options.placement) || 'topCenter');
|
|
18
29
|
return customToaster ? customToaster.push(message, options) : toaster.push(message, options);
|
|
19
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* Remove a toast message.
|
|
33
|
+
* @param key The key of the toast message.
|
|
34
|
+
*/
|
|
20
35
|
remove: function remove(key) {
|
|
21
36
|
toasters ? Array.from(toasters.current).forEach(function (_ref) {
|
|
22
37
|
var c = _ref[1];
|
|
23
38
|
return c === null || c === void 0 ? void 0 : c.remove(key);
|
|
24
39
|
}) : toaster.remove(key);
|
|
25
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* Clear all toast messages.
|
|
43
|
+
*/
|
|
26
44
|
clear: function clear() {
|
|
27
45
|
toasters ? Array.from(toasters.current).forEach(function (_ref2) {
|
|
28
46
|
var c = _ref2[1];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const mediaQuerySizeMap: {
|
|
2
|
+
xs: string;
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
xxl: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* React hook that tracks state of a CSS media query.
|
|
11
|
+
* @deprecated Use useMediaQuery instead.
|
|
12
|
+
*
|
|
13
|
+
* @see https://rsuitejs.com/components/use-media-query
|
|
14
|
+
*/
|
|
15
|
+
export declare function useMediaQueryLegacy(query: string | keyof typeof mediaQuerySizeMap | (string | keyof typeof mediaQuerySizeMap)[]): boolean[];
|
|
16
|
+
/**
|
|
17
|
+
* React hook that tracks state of a CSS media query
|
|
18
|
+
* @version 5.48.0
|
|
19
|
+
* @see https://rsuitejs.com/components/use-media-query
|
|
20
|
+
*/
|
|
21
|
+
export declare function useMediaQuery(query: string | keyof typeof mediaQuerySizeMap | (string | keyof typeof mediaQuerySizeMap)[]): boolean[];
|
|
22
|
+
declare const _default: typeof useMediaQuery;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React, { useEffect, useState, useCallback, useRef } from 'react';
|
|
4
|
+
import canUseDOM from 'dom-lib/canUseDOM';
|
|
5
|
+
export var mediaQuerySizeMap = {
|
|
6
|
+
xs: '(max-width: 575px)',
|
|
7
|
+
sm: '(min-width: 576px)',
|
|
8
|
+
md: '(min-width: 768px)',
|
|
9
|
+
lg: '(min-width: 992px)',
|
|
10
|
+
xl: '(min-width: 1200px)',
|
|
11
|
+
xxl: '(min-width: 1400px)'
|
|
12
|
+
};
|
|
13
|
+
var matchMedia = function matchMedia(query) {
|
|
14
|
+
if (canUseDOM) {
|
|
15
|
+
return window.matchMedia(query);
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
matches: false,
|
|
19
|
+
media: query
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* React hook that tracks state of a CSS media query.
|
|
25
|
+
* @deprecated Use useMediaQuery instead.
|
|
26
|
+
*
|
|
27
|
+
* @see https://rsuitejs.com/components/use-media-query
|
|
28
|
+
*/
|
|
29
|
+
export function useMediaQueryLegacy(query) {
|
|
30
|
+
var queries = Array.isArray(query) ? query : [query];
|
|
31
|
+
var mediaQueries = queries.map(function (query) {
|
|
32
|
+
return mediaQuerySizeMap[query] || query;
|
|
33
|
+
});
|
|
34
|
+
var _useState = useState(function () {
|
|
35
|
+
return mediaQueries.map(function (query) {
|
|
36
|
+
return matchMedia(query);
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
mediaQueryArray = _useState[0],
|
|
40
|
+
setMediaQueryArray = _useState[1];
|
|
41
|
+
function handleChange(event) {
|
|
42
|
+
setMediaQueryArray(function (prevMediaQueryArray) {
|
|
43
|
+
return prevMediaQueryArray.map(function (item) {
|
|
44
|
+
return item.media === event.media ? _extends({}, item, {
|
|
45
|
+
matches: event.matches
|
|
46
|
+
}) : item;
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
useEffect(function () {
|
|
51
|
+
var mediaQueryList = mediaQueries.map(function (query) {
|
|
52
|
+
return matchMedia(query);
|
|
53
|
+
});
|
|
54
|
+
mediaQueryList.forEach(function (query) {
|
|
55
|
+
query.addEventListener('change', handleChange);
|
|
56
|
+
});
|
|
57
|
+
return function () {
|
|
58
|
+
mediaQueryList.forEach(function (query) {
|
|
59
|
+
query.removeEventListener('change', handleChange);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
|
+
}, [mediaQueries]);
|
|
64
|
+
return mediaQueryArray.map(function (query) {
|
|
65
|
+
return query.matches;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* React hook that tracks state of a CSS media query
|
|
71
|
+
* @version 5.48.0
|
|
72
|
+
* @see https://rsuitejs.com/components/use-media-query
|
|
73
|
+
*/
|
|
74
|
+
export function useMediaQuery(query) {
|
|
75
|
+
var _React$useSyncExterna;
|
|
76
|
+
var queries = Array.isArray(query) ? query : [query];
|
|
77
|
+
var mediaQueries = queries.map(function (query) {
|
|
78
|
+
return mediaQuerySizeMap[query] || query;
|
|
79
|
+
});
|
|
80
|
+
var mediaQueryArray = useRef(mediaQueries.map(function (query) {
|
|
81
|
+
return matchMedia(query).matches;
|
|
82
|
+
}));
|
|
83
|
+
var subscribe = useCallback(function (callback) {
|
|
84
|
+
var list = mediaQueries.map(function (query) {
|
|
85
|
+
return matchMedia(query);
|
|
86
|
+
});
|
|
87
|
+
var handleChange = function handleChange(event) {
|
|
88
|
+
var index = list.findIndex(function (item) {
|
|
89
|
+
return item.media === event.media;
|
|
90
|
+
});
|
|
91
|
+
if (index !== -1) {
|
|
92
|
+
mediaQueryArray.current[index] = event.matches;
|
|
93
|
+
}
|
|
94
|
+
callback();
|
|
95
|
+
};
|
|
96
|
+
list.forEach(function (query) {
|
|
97
|
+
query.addEventListener('change', handleChange);
|
|
98
|
+
});
|
|
99
|
+
return function () {
|
|
100
|
+
list.forEach(function (query) {
|
|
101
|
+
query.removeEventListener('change', handleChange);
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
}, [mediaQueries]);
|
|
105
|
+
var getSnapshot = function getSnapshot() {
|
|
106
|
+
return mediaQueryArray.current;
|
|
107
|
+
};
|
|
108
|
+
var getServerSnapshot = function getServerSnapshot() {
|
|
109
|
+
throw Error('useMediaQuery is a client-only hook');
|
|
110
|
+
};
|
|
111
|
+
return (_React$useSyncExterna = React['useSyncExternalStore']) === null || _React$useSyncExterna === void 0 ? void 0 : _React$useSyncExterna.call(React, subscribe, getSnapshot, getServerSnapshot);
|
|
112
|
+
}
|
|
113
|
+
export default typeof React['useSyncExternalStore'] === 'function' ? useMediaQuery : useMediaQueryLegacy;
|
|
@@ -2,6 +2,7 @@ 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 isAndroid: () => boolean;
|
|
5
6
|
export declare const getChromeVersion: () => number | false;
|
|
6
7
|
export declare const getSafariVersion: () => number | false;
|
|
7
8
|
/**
|
|
@@ -18,6 +18,9 @@ export var isIE11 = function isIE11() {
|
|
|
18
18
|
export var isEdge = function isEdge() {
|
|
19
19
|
return canUseDOM && !isIE() && 'styleMedia' in window;
|
|
20
20
|
};
|
|
21
|
+
export var isAndroid = function isAndroid() {
|
|
22
|
+
return canUseDOM && /Android/i.test(navigator.userAgent);
|
|
23
|
+
};
|
|
21
24
|
export var getChromeVersion = function getChromeVersion() {
|
|
22
25
|
if (canUseDOM) {
|
|
23
26
|
var match = window.navigator.userAgent.match(/Chrom(e|ium)\/([\d\.]+)\./);
|
package/esm/utils/dateUtils.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { default as addDays } from 'date-fns/addDays';
|
|
2
2
|
export { default as addMonths } from 'date-fns/addMonths';
|
|
3
|
+
export { default as addYears } from 'date-fns/addYears';
|
|
4
|
+
export { default as addSeconds } from 'date-fns/addSeconds';
|
|
5
|
+
export { default as addMinutes } from 'date-fns/addMinutes';
|
|
6
|
+
export { default as addHours } from 'date-fns/addHours';
|
|
3
7
|
export { default as compareAsc } from 'date-fns/compareAsc';
|
|
4
8
|
export { default as endOfDay } from 'date-fns/endOfDay';
|
|
5
9
|
export { default as endOfISOWeek } from 'date-fns/endOfISOWeek';
|
|
@@ -37,6 +41,8 @@ export { default as isMatch } from 'date-fns/isMatch';
|
|
|
37
41
|
export { default as isValid } from 'date-fns/isValid';
|
|
38
42
|
export { default as set } from 'date-fns/set';
|
|
39
43
|
export { default as differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
|
|
44
|
+
export { default as isLastDayOfMonth } from 'date-fns/isLastDayOfMonth';
|
|
45
|
+
export { default as lastDayOfMonth } from 'date-fns/lastDayOfMonth';
|
|
40
46
|
export declare type CalendarOnlyPropsType = 'disabledHours' | 'disabledMinutes' | 'disabledSeconds' | 'hideHours' | 'hideMinutes' | 'hideSeconds';
|
|
41
47
|
export declare const calendarOnlyProps: CalendarOnlyPropsType[];
|
|
42
48
|
/**
|
package/esm/utils/dateUtils.js
CHANGED
|
@@ -10,6 +10,10 @@ import addDays from 'date-fns/addDays';
|
|
|
10
10
|
import set from 'date-fns/set';
|
|
11
11
|
export { default as addDays } from 'date-fns/addDays';
|
|
12
12
|
export { default as addMonths } from 'date-fns/addMonths';
|
|
13
|
+
export { default as addYears } from 'date-fns/addYears';
|
|
14
|
+
export { default as addSeconds } from 'date-fns/addSeconds';
|
|
15
|
+
export { default as addMinutes } from 'date-fns/addMinutes';
|
|
16
|
+
export { default as addHours } from 'date-fns/addHours';
|
|
13
17
|
export { default as compareAsc } from 'date-fns/compareAsc';
|
|
14
18
|
export { default as endOfDay } from 'date-fns/endOfDay';
|
|
15
19
|
export { default as endOfISOWeek } from 'date-fns/endOfISOWeek';
|
|
@@ -47,6 +51,8 @@ export { default as isMatch } from 'date-fns/isMatch';
|
|
|
47
51
|
export { default as isValid } from 'date-fns/isValid';
|
|
48
52
|
export { default as set } from 'date-fns/set';
|
|
49
53
|
export { default as differenceInCalendarMonths } from 'date-fns/differenceInCalendarMonths';
|
|
54
|
+
export { default as isLastDayOfMonth } from 'date-fns/isLastDayOfMonth';
|
|
55
|
+
export { default as lastDayOfMonth } from 'date-fns/lastDayOfMonth';
|
|
50
56
|
var disabledTimeProps = ['disabledHours', 'disabledMinutes', 'disabledSeconds'];
|
|
51
57
|
var hideTimeProps = ['hideHours', 'hideMinutes', 'hideSeconds'];
|
|
52
58
|
export var calendarOnlyProps = disabledTimeProps.concat(hideTimeProps);
|
package/esm/utils/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as reactToString } from './reactToString';
|
|
|
23
23
|
export { default as scrollTopAnimation } from './scrollTopAnimation';
|
|
24
24
|
export { default as appendTooltip } from './appendTooltip';
|
|
25
25
|
export { default as render } from './render';
|
|
26
|
+
export { default as safeSetSelection } from './safeSetSelection';
|
|
26
27
|
/** Hooks **/
|
|
27
28
|
export { default as useClassNames } from './useClassNames';
|
|
28
29
|
export { default as useEventListener } from './useEventListener';
|
package/esm/utils/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export { default as reactToString } from './reactToString';
|
|
|
26
26
|
export { default as scrollTopAnimation } from './scrollTopAnimation';
|
|
27
27
|
export { default as appendTooltip } from './appendTooltip';
|
|
28
28
|
export { default as render } from './render';
|
|
29
|
+
export { default as safeSetSelection } from './safeSetSelection';
|
|
29
30
|
|
|
30
31
|
/** Hooks **/
|
|
31
32
|
export { default as useClassNames } from './useClassNames';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { isAndroid } from './BrowserDetection';
|
|
3
|
+
var defer = typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame : setTimeout;
|
|
4
|
+
var strNone = 'none';
|
|
5
|
+
function safeSetSelection(element, selectionStart, selectionEnd) {
|
|
6
|
+
if (document.activeElement === element) {
|
|
7
|
+
if (isAndroid()) {
|
|
8
|
+
defer(function () {
|
|
9
|
+
return element.setSelectionRange(selectionStart, selectionEnd, strNone);
|
|
10
|
+
}, 0);
|
|
11
|
+
} else {
|
|
12
|
+
element.setSelectionRange(selectionStart, selectionEnd, strNone);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default safeSetSelection;
|
package/esm/utils/treeUtils.d.ts
CHANGED
|
@@ -180,11 +180,11 @@ export declare function useTreeDrag<T>(): {
|
|
|
180
180
|
dragNode: T | null;
|
|
181
181
|
dragOverNodeKey: null;
|
|
182
182
|
dragNodeKeys: (string | number)[];
|
|
183
|
-
dropNodePosition: TREE_NODE_DROP_POSITION | null;
|
|
183
|
+
dropNodePosition: -1 | TREE_NODE_DROP_POSITION | null;
|
|
184
184
|
setDragNode: (node: T | null) => void;
|
|
185
185
|
setDragOverNodeKey: React.Dispatch<React.SetStateAction<null>>;
|
|
186
186
|
setDragNodeKeys: React.Dispatch<React.SetStateAction<(string | number)[]>>;
|
|
187
|
-
setDropNodePosition: React.Dispatch<React.SetStateAction
|
|
187
|
+
setDropNodePosition: React.Dispatch<React.SetStateAction<-1 | TREE_NODE_DROP_POSITION | null>>;
|
|
188
188
|
};
|
|
189
189
|
interface FlattenTreeDataProps {
|
|
190
190
|
data: TreeNodeType[];
|