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/Steps/StepItem.d.ts
CHANGED
|
@@ -15,5 +15,10 @@ export interface StepItemProps extends WithAsProps {
|
|
|
15
15
|
/** The title of Steps item */
|
|
16
16
|
title?: React.ReactNode;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The `Step.Item` component is used to set the layout of the child element in the `Steps` component.
|
|
20
|
+
*
|
|
21
|
+
* @see https://rsuitejs.com/components/steps
|
|
22
|
+
*/
|
|
18
23
|
declare const StepItem: RsRefForwardingComponent<'div', StepItemProps>;
|
|
19
24
|
export default StepItem;
|
package/esm/Steps/StepItem.js
CHANGED
|
@@ -12,6 +12,11 @@ var STEP_STATUS_ICON = {
|
|
|
12
12
|
process: null,
|
|
13
13
|
error: /*#__PURE__*/React.createElement(Close, null)
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* The `Step.Item` component is used to set the layout of the child element in the `Steps` component.
|
|
17
|
+
*
|
|
18
|
+
* @see https://rsuitejs.com/components/steps
|
|
19
|
+
*/
|
|
15
20
|
var StepItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
21
|
var _withClassPrefix, _STEP_STATUS_ICON$sta;
|
|
17
22
|
var _props$as = props.as,
|
package/esm/Steps/Steps.d.ts
CHANGED
|
@@ -16,5 +16,10 @@ export interface StepsProps extends WithAsProps {
|
|
|
16
16
|
interface StepsComponent extends RsRefForwardingComponent<'div', StepsProps> {
|
|
17
17
|
Item: typeof StepItem;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The `Steps` component is used to guide users to complete tasks in accordance with the process.
|
|
21
|
+
*
|
|
22
|
+
* @see https://rsuitejs.com/components/steps
|
|
23
|
+
*/
|
|
19
24
|
declare const Steps: StepsComponent;
|
|
20
25
|
export default Steps;
|
package/esm/Steps/Steps.js
CHANGED
|
@@ -5,6 +5,11 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames, ReactChildren } from '../utils';
|
|
7
7
|
import StepItem from './StepItem';
|
|
8
|
+
/**
|
|
9
|
+
* The `Steps` component is used to guide users to complete tasks in accordance with the process.
|
|
10
|
+
*
|
|
11
|
+
* @see https://rsuitejs.com/components/steps
|
|
12
|
+
*/
|
|
8
13
|
var Steps = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
14
|
var _props$as = props.as,
|
|
10
15
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Table/Table.d.ts
CHANGED
|
@@ -6,10 +6,27 @@ export interface CellProps<Row extends RowDataType> extends Omit<TableCellProps<
|
|
|
6
6
|
/** Row Data */
|
|
7
7
|
rowData?: Row;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The `Table` component is used to display data in a table.
|
|
11
|
+
*
|
|
12
|
+
* @see https://rsuitejs.com/components/table/
|
|
13
|
+
*/
|
|
14
|
+
declare const Table: (<Row extends RowDataType<any>, Key extends RowKeyType>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement) & {
|
|
15
|
+
/**
|
|
16
|
+
* The `Table.Cell` component is used to display data in a table cell.
|
|
17
|
+
*/
|
|
10
18
|
Cell: <Row_1 extends RowDataType<any>, Key_1 extends RowKeyType>(props: import("rsuite-table/lib/Cell").InnerCellProps<Row_1, Key_1> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
+
/**
|
|
20
|
+
* The `Table.Column` component is used to define a column in a table.
|
|
21
|
+
*/
|
|
11
22
|
Column: typeof Column;
|
|
23
|
+
/**
|
|
24
|
+
* The `Table.HeaderCell` component is used to define a header cell in a table.
|
|
25
|
+
*/
|
|
12
26
|
HeaderCell: <Row_2 extends RowDataType<any>, Key_2 extends RowKeyType>(props: import("rsuite-table").HeaderCellProps<Row_2, Key_2> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
27
|
+
/**
|
|
28
|
+
* The `Table.ColumnGroup` component is used to define a column group in a table.
|
|
29
|
+
*/
|
|
13
30
|
ColumnGroup: React.ForwardRefExoticComponent<import("rsuite-table").ColumnGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
31
|
};
|
|
15
|
-
export default
|
|
32
|
+
export default Table;
|
package/esm/Table/Table.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Table, Column, Cell, HeaderCell, ColumnGroup } from 'rsuite-table';
|
|
5
|
+
import { Table as RsTable, Column, Cell, HeaderCell, ColumnGroup } from 'rsuite-table';
|
|
6
6
|
import { useCustom } from '../utils';
|
|
7
7
|
var CustomTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
8
|
var localeProp = props.locale,
|
|
@@ -12,16 +12,35 @@ var CustomTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
12
12
|
var _useCustom = useCustom('Table', localeProp),
|
|
13
13
|
locale = _useCustom.locale,
|
|
14
14
|
rtl = _useCustom.rtl;
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
15
|
+
return /*#__PURE__*/React.createElement(RsTable, _extends({}, rest, {
|
|
16
16
|
rtl: rtl,
|
|
17
17
|
ref: ref,
|
|
18
18
|
locale: locale,
|
|
19
19
|
loadAnimation: loadAnimation
|
|
20
20
|
}));
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The `Table` component is used to display data in a table.
|
|
25
|
+
*
|
|
26
|
+
* @see https://rsuitejs.com/components/table/
|
|
27
|
+
*/
|
|
28
|
+
var Table = Object.assign(CustomTable, {
|
|
29
|
+
/**
|
|
30
|
+
* The `Table.Cell` component is used to display data in a table cell.
|
|
31
|
+
*/
|
|
23
32
|
Cell: Cell,
|
|
33
|
+
/**
|
|
34
|
+
* The `Table.Column` component is used to define a column in a table.
|
|
35
|
+
*/
|
|
24
36
|
Column: Column,
|
|
37
|
+
/**
|
|
38
|
+
* The `Table.HeaderCell` component is used to define a header cell in a table.
|
|
39
|
+
*/
|
|
25
40
|
HeaderCell: HeaderCell,
|
|
41
|
+
/**
|
|
42
|
+
* The `Table.ColumnGroup` component is used to define a column group in a table.
|
|
43
|
+
*/
|
|
26
44
|
ColumnGroup: ColumnGroup
|
|
27
|
-
});
|
|
45
|
+
});
|
|
46
|
+
export default Table;
|
package/esm/Tag/Tag.d.ts
CHANGED
|
@@ -12,5 +12,11 @@ export interface TagProps extends WithAsProps {
|
|
|
12
12
|
/** Click the callback function for the Close button */
|
|
13
13
|
onClose?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The `Tag` component is used to label and categorize.
|
|
17
|
+
* It can be used to mark the status of an object or classify it into different categories.
|
|
18
|
+
*
|
|
19
|
+
* @see https://rsuitejs.com/components/tag
|
|
20
|
+
*/
|
|
15
21
|
declare const Tag: RsRefForwardingComponent<'div', TagProps>;
|
|
16
22
|
export default Tag;
|
package/esm/Tag/Tag.js
CHANGED
|
@@ -5,8 +5,14 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
var _templateObject, _templateObject2;
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { useClassNames } from '../utils';
|
|
8
|
+
import { useClassNames, useCustom } from '../utils';
|
|
9
9
|
import CloseButton from '../CloseButton';
|
|
10
|
+
/**
|
|
11
|
+
* The `Tag` component is used to label and categorize.
|
|
12
|
+
* It can be used to mark the status of an object or classify it into different categories.
|
|
13
|
+
*
|
|
14
|
+
* @see https://rsuitejs.com/components/tag
|
|
15
|
+
*/
|
|
10
16
|
var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
17
|
var _props$as = props.as,
|
|
12
18
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -28,6 +34,8 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
28
34
|
var classes = merge(className, withClassPrefix(size, color, {
|
|
29
35
|
closable: closable
|
|
30
36
|
}));
|
|
37
|
+
var _useCustom = useCustom(),
|
|
38
|
+
locale = _useCustom.locale;
|
|
31
39
|
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
32
40
|
ref: ref,
|
|
33
41
|
className: classes
|
|
@@ -35,7 +43,11 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
35
43
|
className: prefix(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["text"])))
|
|
36
44
|
}, children), closable && /*#__PURE__*/React.createElement(CloseButton, {
|
|
37
45
|
className: prefix(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["icon-close"]))),
|
|
38
|
-
onClick: onClose
|
|
46
|
+
onClick: onClose,
|
|
47
|
+
tabIndex: -1,
|
|
48
|
+
locale: {
|
|
49
|
+
closeLabel: locale === null || locale === void 0 ? void 0 : locale.remove
|
|
50
|
+
}
|
|
39
51
|
}));
|
|
40
52
|
});
|
|
41
53
|
Tag.displayName = 'Tag';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type TagGroupProps = ComponentProps;
|
|
3
|
+
/**
|
|
4
|
+
* The `TagGroup` component for use with the `Tag` component.
|
|
5
|
+
*
|
|
6
|
+
* @see https://rsuitejs.com/components/tag/
|
|
7
|
+
*/
|
|
3
8
|
declare const TagGroup: import("../@types/common").RsRefForwardingComponent<"div", ComponentProps>;
|
|
4
9
|
export default TagGroup;
|
package/esm/TagGroup/TagGroup.js
CHANGED
package/esm/TagInput/index.d.ts
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { InputPickerProps } from '../InputPicker/InputPicker';
|
|
2
|
+
import { TagOnlyProps } from '../InputPicker/InputPickerContext';
|
|
3
3
|
import type { PickerComponent } from '../Picker/types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* @todo Declare as readonly array
|
|
12
|
-
*/
|
|
13
|
-
trigger?: TriggerType | TriggerType[];
|
|
14
|
-
/** Callback fired when a tag is removed. */
|
|
15
|
-
onTagRemove?: (tag: string, event: React.MouseEvent) => void;
|
|
16
|
-
}
|
|
4
|
+
export declare type TagInputProps = Omit<InputPickerProps<readonly string[]>, 'data'> & Partial<TagOnlyProps>;
|
|
5
|
+
/**
|
|
6
|
+
* The `TagInput` component is an enhancement of Input and supports input tags and management tags.
|
|
7
|
+
*
|
|
8
|
+
* @see https://rsuitejs.com/components/tag-input
|
|
9
|
+
*/
|
|
17
10
|
declare const TagInput: PickerComponent<TagInputProps>;
|
|
18
11
|
export default TagInput;
|
package/esm/TagInput/index.js
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import InputPicker
|
|
5
|
+
import InputPicker from '../InputPicker/InputPicker';
|
|
6
|
+
import InputPickerContext from '../InputPicker/InputPickerContext';
|
|
7
|
+
/**
|
|
8
|
+
* The `TagInput` component is an enhancement of Input and supports input tags and management tags.
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/components/tag-input
|
|
11
|
+
*/
|
|
6
12
|
var TagInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
13
|
var _props$tagProps = props.tagProps,
|
|
8
14
|
tagProps = _props$tagProps === void 0 ? {} : _props$tagProps,
|
package/esm/TagPicker/index.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InputPickerProps
|
|
2
|
+
import { InputPickerProps } from '../InputPicker/InputPicker';
|
|
3
|
+
import { TagOnlyProps } from '../InputPicker/InputPickerContext';
|
|
3
4
|
import type { PickerComponent } from '../Picker/types';
|
|
4
|
-
import type {
|
|
5
|
-
export interface TagPickerProps extends InputPickerProps {
|
|
6
|
-
/** Tag related props. */
|
|
7
|
-
tagProps?: TagProps;
|
|
5
|
+
import type { CheckboxProps } from '../Checkbox';
|
|
6
|
+
export interface TagPickerProps extends InputPickerProps, Partial<TagOnlyProps> {
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onTagRemove?: (tag: string, event: React.MouseEvent) => void;
|
|
8
|
+
* Custom render checkbox on menu item
|
|
9
|
+
* @version 5.47.0
|
|
10
|
+
**/
|
|
11
|
+
renderMenuItemCheckbox?: (checkboxProps: CheckboxProps) => React.ReactNode;
|
|
14
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* `TagPicker` component enables multi-selection by tags and supports new options.
|
|
15
|
+
*
|
|
16
|
+
* @see https://rsuitejs.com/components/tag-picker/
|
|
17
|
+
*/
|
|
15
18
|
declare const TagPicker: PickerComponent<TagPickerProps>;
|
|
16
19
|
export default TagPicker;
|
package/esm/TagPicker/index.js
CHANGED
|
@@ -2,22 +2,30 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import InputPicker
|
|
5
|
+
import InputPicker from '../InputPicker/InputPicker';
|
|
6
|
+
import InputPickerContext from '../InputPicker/InputPickerContext';
|
|
7
|
+
/**
|
|
8
|
+
* `TagPicker` component enables multi-selection by tags and supports new options.
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/components/tag-picker/
|
|
11
|
+
*/
|
|
6
12
|
var TagPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
13
|
var _props$tagProps = props.tagProps,
|
|
8
14
|
tagProps = _props$tagProps === void 0 ? {} : _props$tagProps,
|
|
9
15
|
_props$trigger = props.trigger,
|
|
10
16
|
trigger = _props$trigger === void 0 ? 'Enter' : _props$trigger,
|
|
11
17
|
onTagRemove = props.onTagRemove,
|
|
12
|
-
|
|
18
|
+
renderMenuItemCheckbox = props.renderMenuItemCheckbox,
|
|
19
|
+
rest = _objectWithoutPropertiesLoose(props, ["tagProps", "trigger", "onTagRemove", "renderMenuItemCheckbox"]);
|
|
13
20
|
var contextValue = useMemo(function () {
|
|
14
21
|
return {
|
|
15
22
|
multi: true,
|
|
16
23
|
trigger: trigger,
|
|
17
24
|
tagProps: tagProps,
|
|
18
|
-
onTagRemove: onTagRemove
|
|
25
|
+
onTagRemove: onTagRemove,
|
|
26
|
+
renderMenuItemCheckbox: renderMenuItemCheckbox
|
|
19
27
|
};
|
|
20
|
-
}, [onTagRemove, tagProps, trigger]);
|
|
28
|
+
}, [onTagRemove, renderMenuItemCheckbox, tagProps, trigger]);
|
|
21
29
|
return /*#__PURE__*/React.createElement(InputPickerContext.Provider, {
|
|
22
30
|
value: contextValue
|
|
23
31
|
}, /*#__PURE__*/React.createElement(InputPicker, _extends({}, rest, {
|
|
@@ -21,5 +21,10 @@ interface TimelineComponent extends RsRefForwardingComponent<'div', TimelineProp
|
|
|
21
21
|
ACTIVE_FIRST: (index: number, totalItemsCount: number) => boolean;
|
|
22
22
|
ACTIVE_LAST: (index: number, totalItemsCount: number) => boolean;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The `Timeline` component is used to display a list of items in chronological order.
|
|
26
|
+
*
|
|
27
|
+
* @see https://rsuitejs.com/components/timeline
|
|
28
|
+
*/
|
|
24
29
|
declare const Timeline: TimelineComponent;
|
|
25
30
|
export default Timeline;
|
package/esm/Timeline/Timeline.js
CHANGED
|
@@ -6,6 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import some from 'lodash/some';
|
|
7
7
|
import TimelineItem from './TimelineItem';
|
|
8
8
|
import { useClassNames, ReactChildren } from '../utils';
|
|
9
|
+
/**
|
|
10
|
+
* The `Timeline` component is used to display a list of items in chronological order.
|
|
11
|
+
*
|
|
12
|
+
* @see https://rsuitejs.com/components/timeline
|
|
13
|
+
*/
|
|
9
14
|
var Timeline = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
15
|
var children = props.children,
|
|
11
16
|
_props$as = props.as,
|
|
@@ -29,5 +29,10 @@ export interface TimelineItemProps extends WithAsProps {
|
|
|
29
29
|
*/
|
|
30
30
|
INTERNAL_active?: boolean;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The `Timeline.Item` component is used to set the layout of the child element in the `Timeline` component.
|
|
34
|
+
*
|
|
35
|
+
* @see https://rsuitejs.com/compo◊nents/timeline
|
|
36
|
+
*/
|
|
32
37
|
declare const TimelineItem: RsRefForwardingComponent<'div', TimelineItemProps>;
|
|
33
38
|
export default TimelineItem;
|
|
@@ -4,6 +4,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Timeline.Item` component is used to set the layout of the child element in the `Timeline` component.
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/compo◊nents/timeline
|
|
11
|
+
*/
|
|
7
12
|
var TimelineItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
13
|
var _props$as = props.as,
|
|
9
14
|
Component = _props$as === void 0 ? 'li' : _props$as,
|
package/esm/Toggle/Toggle.d.ts
CHANGED
|
@@ -25,5 +25,10 @@ export interface ToggleProps extends WithAsProps {
|
|
|
25
25
|
/** Callback function when state changes */
|
|
26
26
|
onChange?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* The `Toggle` component is used to activate or deactivate an element.
|
|
30
|
+
*
|
|
31
|
+
* @see https://rsuitejs.com/components/toggle
|
|
32
|
+
*/
|
|
28
33
|
declare const Toggle: RsRefForwardingComponent<'label', ToggleProps>;
|
|
29
34
|
export default Toggle;
|
package/esm/Toggle/Toggle.js
CHANGED
|
@@ -6,6 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { partitionHTMLProps, useClassNames, useControlled, useCustom } from '../utils';
|
|
7
7
|
import Plaintext from '../Plaintext';
|
|
8
8
|
import Loader from '../Loader';
|
|
9
|
+
/**
|
|
10
|
+
* The `Toggle` component is used to activate or deactivate an element.
|
|
11
|
+
*
|
|
12
|
+
* @see https://rsuitejs.com/components/toggle
|
|
13
|
+
*/
|
|
9
14
|
var Toggle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
15
|
var _props$as = props.as,
|
|
11
16
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
package/esm/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -10,5 +10,10 @@ export interface TooltipProps extends WithAsProps {
|
|
|
10
10
|
/** Whether show the arrow indicator */
|
|
11
11
|
arrow?: boolean;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The `Tooltip` component is used to describe a element.
|
|
15
|
+
*
|
|
16
|
+
* @see https://rsuitejs.com/components/tooltip
|
|
17
|
+
*/
|
|
13
18
|
declare const Tooltip: RsRefForwardingComponent<'div', TooltipProps>;
|
|
14
19
|
export default Tooltip;
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -4,6 +4,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Tooltip` component is used to describe a element.
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/components/tooltip
|
|
11
|
+
*/
|
|
7
12
|
var Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
13
|
var _props$as = props.as,
|
|
9
14
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Tree/Tree.d.ts
CHANGED
|
@@ -93,5 +93,10 @@ export interface TreeProps<ValueType = string | number> extends TreeBaseProps<Va
|
|
|
93
93
|
/** Default selected Value */
|
|
94
94
|
defaultValue?: ValueType;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* The `Tree` component is used to display hierarchical data.
|
|
98
|
+
*
|
|
99
|
+
* @see https://rsuitejs.com/components/tree
|
|
100
|
+
*/
|
|
96
101
|
declare const Tree: RsRefForwardingComponent<'div', TreeProps>;
|
|
97
102
|
export default Tree;
|
package/esm/Tree/Tree.js
CHANGED
|
@@ -12,6 +12,11 @@ export var TREE_NODE_DROP_POSITION;
|
|
|
12
12
|
TREE_NODE_DROP_POSITION[TREE_NODE_DROP_POSITION["DRAG_OVER_TOP"] = 1] = "DRAG_OVER_TOP";
|
|
13
13
|
TREE_NODE_DROP_POSITION[TREE_NODE_DROP_POSITION["DRAG_OVER_BOTTOM"] = 2] = "DRAG_OVER_BOTTOM";
|
|
14
14
|
})(TREE_NODE_DROP_POSITION || (TREE_NODE_DROP_POSITION = {}));
|
|
15
|
+
/**
|
|
16
|
+
* The `Tree` component is used to display hierarchical data.
|
|
17
|
+
*
|
|
18
|
+
* @see https://rsuitejs.com/components/tree
|
|
19
|
+
*/
|
|
15
20
|
var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
21
|
var contextValue = useMemo(function () {
|
|
17
22
|
return {
|
|
@@ -23,5 +23,10 @@ export interface TreePickerProps<T = number | string> extends TreeBaseProps<T, I
|
|
|
23
23
|
/** Called when scrolling */
|
|
24
24
|
onScroll?: (event: React.SyntheticEvent) => void;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* The `TreePicker` component is used for selecting single options which are organized in a tree structure.
|
|
28
|
+
*
|
|
29
|
+
* @see https://rsuitejs.com/components/tree-picker/
|
|
30
|
+
*/
|
|
26
31
|
declare const TreePicker: PickerComponent<TreePickerProps>;
|
|
27
32
|
export default TreePicker;
|
|
@@ -19,6 +19,12 @@ var emptyArray = [];
|
|
|
19
19
|
var itemSize = function itemSize() {
|
|
20
20
|
return 36;
|
|
21
21
|
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The `TreePicker` component is used for selecting single options which are organized in a tree structure.
|
|
25
|
+
*
|
|
26
|
+
* @see https://rsuitejs.com/components/tree-picker/
|
|
27
|
+
*/
|
|
22
28
|
var TreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
23
29
|
var _props$as = props.as,
|
|
24
30
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -132,7 +132,8 @@ var UploadFileItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
132
132
|
role: "presentation",
|
|
133
133
|
src: previewImage,
|
|
134
134
|
alt: file.name,
|
|
135
|
-
onClick: handlePreview
|
|
135
|
+
onClick: handlePreview,
|
|
136
|
+
"aria-label": "Preview: " + file.name
|
|
136
137
|
}) : /*#__PURE__*/React.createElement(Attachment, {
|
|
137
138
|
className: prefix('icon')
|
|
138
139
|
});
|
|
@@ -153,7 +154,8 @@ var UploadFileItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
153
154
|
return /*#__PURE__*/React.createElement("div", {
|
|
154
155
|
className: classes
|
|
155
156
|
}, /*#__PURE__*/React.createElement("i", {
|
|
156
|
-
className: prefix('icon')
|
|
157
|
+
className: prefix('icon'),
|
|
158
|
+
"aria-label": "Uploading"
|
|
157
159
|
}));
|
|
158
160
|
}
|
|
159
161
|
if (listType === 'picture' || listType === 'picture-text') {
|
|
@@ -173,9 +175,18 @@ var UploadFileItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
173
175
|
if (!removable) {
|
|
174
176
|
return null;
|
|
175
177
|
}
|
|
178
|
+
var closeLabel = 'Remove file';
|
|
179
|
+
if (locale !== null && locale !== void 0 && locale.removeFile) {
|
|
180
|
+
closeLabel = (locale === null || locale === void 0 ? void 0 : locale.removeFile) + (file !== null && file !== void 0 && file.name ? ": " + (file === null || file === void 0 ? void 0 : file.name) : '');
|
|
181
|
+
}
|
|
176
182
|
return /*#__PURE__*/React.createElement(CloseButton, {
|
|
177
183
|
className: prefix('btn-remove'),
|
|
178
|
-
onClick: handleRemove
|
|
184
|
+
onClick: handleRemove,
|
|
185
|
+
tabIndex: -1,
|
|
186
|
+
locale: {
|
|
187
|
+
closeLabel: closeLabel
|
|
188
|
+
},
|
|
189
|
+
"aria-hidden": disabled
|
|
179
190
|
});
|
|
180
191
|
};
|
|
181
192
|
|
|
@@ -189,7 +200,8 @@ var UploadFileItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
189
200
|
}, /*#__PURE__*/React.createElement("span", null, locale === null || locale === void 0 ? void 0 : locale.error), allowReupload && /*#__PURE__*/React.createElement("a", {
|
|
190
201
|
role: "button",
|
|
191
202
|
tabIndex: -1,
|
|
192
|
-
onClick: handleReupload
|
|
203
|
+
onClick: handleReupload,
|
|
204
|
+
"aria-label": "Retry"
|
|
193
205
|
}, /*#__PURE__*/React.createElement(Reload, {
|
|
194
206
|
className: prefix('icon-reupload')
|
|
195
207
|
})));
|
|
@@ -216,7 +228,9 @@ var UploadFileItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
216
228
|
var renderFilePanel = function renderFilePanel() {
|
|
217
229
|
var fileElement = /*#__PURE__*/React.createElement("div", {
|
|
218
230
|
className: prefix('title'),
|
|
219
|
-
|
|
231
|
+
tabIndex: -1,
|
|
232
|
+
onClick: handlePreview,
|
|
233
|
+
"aria-label": "Preview: " + file.name
|
|
220
234
|
}, file.name);
|
|
221
235
|
return /*#__PURE__*/React.createElement("div", {
|
|
222
236
|
className: prefix('panel')
|
|
@@ -105,5 +105,10 @@ export interface FileProgressType {
|
|
|
105
105
|
status?: FileStatusType;
|
|
106
106
|
progress?: number;
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* The `Uploader` component is used to upload files.
|
|
110
|
+
*
|
|
111
|
+
* @see https://rsuitejs.com/components/uploader
|
|
112
|
+
*/
|
|
108
113
|
declare const Uploader: React.ForwardRefExoticComponent<UploaderProps & React.RefAttributes<unknown>>;
|
|
109
114
|
export default Uploader;
|
package/esm/Uploader/Uploader.js
CHANGED
|
@@ -83,6 +83,12 @@ var useFileList = function useFileList(defaultFileList) {
|
|
|
83
83
|
}, []);
|
|
84
84
|
return [fileListRef, dispatchCallback];
|
|
85
85
|
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The `Uploader` component is used to upload files.
|
|
89
|
+
*
|
|
90
|
+
* @see https://rsuitejs.com/components/uploader
|
|
91
|
+
*/
|
|
86
92
|
var Uploader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
87
93
|
var _props$as = props.as,
|
|
88
94
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Whisper/Whisper.d.ts
CHANGED
|
@@ -3,5 +3,11 @@ import { OverlayTriggerHandle } from '../Overlay/OverlayTrigger';
|
|
|
3
3
|
import { OverlayTriggerProps } from '../Overlay/OverlayTrigger';
|
|
4
4
|
export declare type WhisperProps = OverlayTriggerProps;
|
|
5
5
|
export declare type WhisperInstance = OverlayTriggerHandle;
|
|
6
|
+
/**
|
|
7
|
+
* The `Whisper` component is used to display a floating element.
|
|
8
|
+
* It is usually used with the `Tooltip` and `Popover` components.
|
|
9
|
+
*
|
|
10
|
+
* @see https://rsuitejs.com/components/whisper
|
|
11
|
+
*/
|
|
6
12
|
declare const Whisper: React.ForwardRefExoticComponent<OverlayTriggerProps & React.RefAttributes<OverlayTriggerHandle>>;
|
|
7
13
|
export default Whisper;
|
package/esm/Whisper/Whisper.js
CHANGED
|
@@ -6,6 +6,12 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import OverlayTrigger from '../Overlay/OverlayTrigger';
|
|
7
7
|
import { createChainedFunction, placementPolyfill, PLACEMENT } from '../utils';
|
|
8
8
|
import { CustomContext } from '../CustomProvider';
|
|
9
|
+
/**
|
|
10
|
+
* The `Whisper` component is used to display a floating element.
|
|
11
|
+
* It is usually used with the `Tooltip` and `Popover` components.
|
|
12
|
+
*
|
|
13
|
+
* @see https://rsuitejs.com/components/whisper
|
|
14
|
+
*/
|
|
9
15
|
var Whisper = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
16
|
var onOpen = props.onOpen,
|
|
11
17
|
onClose = props.onClose,
|
|
@@ -21,5 +21,10 @@ export interface AutoSizerProps {
|
|
|
21
21
|
/** Callback to be invoked on-resize */
|
|
22
22
|
onResize?: ((size: Size) => void) | undefined;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* High-order component that automatically adjusts the width and height of a single child.
|
|
26
|
+
*
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
24
29
|
declare const AutoSizer: React.ForwardRefExoticComponent<AutoSizerProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
30
|
export default AutoSizer;
|
|
@@ -5,6 +5,11 @@ import React, { useState, useRef } from 'react';
|
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import getStyle from 'dom-lib/getStyle';
|
|
7
7
|
import { mergeRefs, useElementResize, useMount } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* High-order component that automatically adjusts the width and height of a single child.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
8
13
|
var AutoSizer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
14
|
var children = props.children,
|
|
10
15
|
className = props.className,
|
package/esm/Windowing/List.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface ListProps<T = any> extends WithAsProps {
|
|
|
5
5
|
* @deprecated use itemSize instead
|
|
6
6
|
* Either a fixed row height (number) or a function that returns the height of a row given its index: ({ index: number }): number
|
|
7
7
|
*/
|
|
8
|
-
rowHeight?: number | (({ index
|
|
8
|
+
rowHeight?: number | (({ index }: {
|
|
9
9
|
index: any;
|
|
10
10
|
}) => number);
|
|
11
11
|
/**
|
|
@@ -41,5 +41,10 @@ export interface ListHandle extends Partial<VariableSizeList> {
|
|
|
41
41
|
*/
|
|
42
42
|
scrollToRow?: (index: number) => void;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* This component renders a virtualized list of elements with either fixed or dynamic heights.
|
|
46
|
+
*
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
44
49
|
declare const List: RsRefForwardingComponent<'div', ListProps>;
|
|
45
50
|
export default List;
|
package/esm/Windowing/List.js
CHANGED
|
@@ -4,6 +4,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React, { useRef, useImperativeHandle, useCallback, useMemo } from 'react';
|
|
5
5
|
import { VariableSizeList } from 'react-window';
|
|
6
6
|
import { useCustom } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* This component renders a virtualized list of elements with either fixed or dynamic heights.
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
7
12
|
var List = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
13
|
var rowHeight = props.rowHeight,
|
|
9
14
|
_props$as = props.as,
|