rsuite 5.47.0 → 5.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/DateInput/package.json +7 -0
- package/README.md +2 -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 +4 -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/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 +5 -0
- 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 +11 -5
- 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 +6 -1
- 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 +5 -0
- package/cjs/InputPicker/InputPicker.js +5 -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 +8 -1
- 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/PickerToggle.js +2 -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/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 +6 -0
- package/cjs/TagGroup/TagGroup.d.ts +5 -0
- package/cjs/TagGroup/TagGroup.js +5 -0
- package/cjs/TagInput/index.d.ts +5 -0
- package/cjs/TagInput/index.js +5 -0
- package/cjs/TagPicker/index.d.ts +2 -1
- package/cjs/TagPicker/index.js +2 -1
- 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/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/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.js +337 -123
- package/dist/rsuite.js.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 +4 -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/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 +5 -0
- 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 +11 -5
- 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 +6 -1
- 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 +5 -0
- package/esm/InputPicker/InputPicker.js +5 -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 +9 -2
- 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/PickerToggle.js +2 -1
- 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/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 +6 -0
- package/esm/TagGroup/TagGroup.d.ts +5 -0
- package/esm/TagGroup/TagGroup.js +5 -0
- package/esm/TagInput/index.d.ts +5 -0
- package/esm/TagInput/index.js +5 -0
- package/esm/TagPicker/index.d.ts +2 -1
- package/esm/TagPicker/index.js +2 -1
- 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/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/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/useMediaQuery/package.json +7 -0
package/esm/Affix/Affix.d.ts
CHANGED
|
@@ -9,5 +9,11 @@ export interface AffixProps extends WithAsProps {
|
|
|
9
9
|
/** Callback after the offset changes. */
|
|
10
10
|
onOffsetChange?: (offset?: Offset) => void;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Components such as navigation, buttons, etc. can be fixed in the visible range.
|
|
14
|
+
* Commonly used for pages with long content, fixed the specified elements in the visible range of the page to assist in quick operation.
|
|
15
|
+
*
|
|
16
|
+
* @see https://rsuitejs.com/components/affix/
|
|
17
|
+
*/
|
|
12
18
|
declare const Affix: RsRefForwardingComponent<'div', AffixProps>;
|
|
13
19
|
export default Affix;
|
package/esm/Affix/Affix.js
CHANGED
|
@@ -93,6 +93,13 @@ function useFixed(offset, containerOffset, props) {
|
|
|
93
93
|
useEventListener(window, 'scroll', handleScroll, false);
|
|
94
94
|
return fixed;
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Components such as navigation, buttons, etc. can be fixed in the visible range.
|
|
99
|
+
* Commonly used for pages with long content, fixed the specified elements in the visible range of the page to assist in quick operation.
|
|
100
|
+
*
|
|
101
|
+
* @see https://rsuitejs.com/components/affix/
|
|
102
|
+
*/
|
|
96
103
|
var Affix = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
97
104
|
var _merge;
|
|
98
105
|
var _props$as = props.as,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TransitionProps } from './Transition';
|
|
3
3
|
export declare type BounceProps = TransitionProps;
|
|
4
|
+
/**
|
|
5
|
+
* Bounce animation component
|
|
6
|
+
* @see https://rsuitejs.com/components/animation/#bounce
|
|
7
|
+
*/
|
|
4
8
|
declare const Bounce: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<any>>;
|
|
5
9
|
export default Bounce;
|
package/esm/Animation/Bounce.js
CHANGED
|
@@ -4,6 +4,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Transition from './Transition';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* Bounce animation component
|
|
9
|
+
* @see https://rsuitejs.com/components/animation/#bounce
|
|
10
|
+
*/
|
|
7
11
|
var Bounce = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8
12
|
var _ref$timeout = _ref.timeout,
|
|
9
13
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
@@ -10,5 +10,9 @@ export interface CollapseProps extends TransitionProps {
|
|
|
10
10
|
/** Function that returns the height or width of the animating DOM node */
|
|
11
11
|
getDimensionValue?: (dimension: DIMENSION, elem: Element) => number;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A Collapse animation component.
|
|
15
|
+
* @see https://rsuitejs.com/components/animation/#collapse
|
|
16
|
+
*/
|
|
13
17
|
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<any>>;
|
|
14
18
|
export default Collapse;
|
|
@@ -30,6 +30,11 @@ function getScrollDimensionValue(elem, dimension) {
|
|
|
30
30
|
var value = get(elem, "scroll" + capitalize(dimension));
|
|
31
31
|
return value + "px";
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A Collapse animation component.
|
|
36
|
+
* @see https://rsuitejs.com/components/animation/#collapse
|
|
37
|
+
*/
|
|
33
38
|
var Collapse = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
34
39
|
var className = props.className,
|
|
35
40
|
_props$timeout = props.timeout,
|
package/esm/Animation/Fade.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TransitionProps } from './Transition';
|
|
3
3
|
export declare type FadeProps = TransitionProps;
|
|
4
|
+
/**
|
|
5
|
+
* Fade animation component
|
|
6
|
+
* @see https://rsuitejs.com/components/animation/#fade
|
|
7
|
+
*/
|
|
4
8
|
declare const Fade: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<any>>;
|
|
5
9
|
export default Fade;
|
package/esm/Animation/Fade.js
CHANGED
|
@@ -4,6 +4,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Transition from './Transition';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* Fade animation component
|
|
9
|
+
* @see https://rsuitejs.com/components/animation/#fade
|
|
10
|
+
*/
|
|
7
11
|
var Fade = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8
12
|
var _ref$timeout = _ref.timeout,
|
|
9
13
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
package/esm/Animation/Slide.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import { TransitionProps } from './Transition';
|
|
|
3
3
|
export interface SlideProps extends TransitionProps {
|
|
4
4
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Slide animation component
|
|
8
|
+
* @see https://rsuitejs.com/components/animation/#slide
|
|
9
|
+
*/
|
|
6
10
|
declare const Slide: React.ForwardRefExoticComponent<SlideProps & React.RefAttributes<any>>;
|
|
7
11
|
export default Slide;
|
package/esm/Animation/Slide.js
CHANGED
|
@@ -4,6 +4,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Transition from './Transition';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* Slide animation component
|
|
9
|
+
* @see https://rsuitejs.com/components/animation/#slide
|
|
10
|
+
*/
|
|
7
11
|
var Slide = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8
12
|
var _ref$timeout = _ref.timeout,
|
|
9
13
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
@@ -56,6 +56,10 @@ export declare const transitionPropTypes: {
|
|
|
56
56
|
declare type EventToken = {
|
|
57
57
|
off: () => void;
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* A Transition component for animation.
|
|
61
|
+
* @see https://rsuitejs.com/components/animation/#transition
|
|
62
|
+
*/
|
|
59
63
|
declare class Transition extends React.Component<TransitionProps, TransitionState> {
|
|
60
64
|
static propTypes: {
|
|
61
65
|
animation: PropTypes.Requireable<boolean>;
|
|
@@ -32,6 +32,10 @@ export var transitionPropTypes = _extends({}, animationPropTypes, {
|
|
|
32
32
|
enteredClassName: PropTypes.string,
|
|
33
33
|
enteringClassName: PropTypes.string
|
|
34
34
|
});
|
|
35
|
+
/**
|
|
36
|
+
* A Transition component for animation.
|
|
37
|
+
* @see https://rsuitejs.com/components/animation/#transition
|
|
38
|
+
*/
|
|
35
39
|
var Transition = /*#__PURE__*/function (_React$Component) {
|
|
36
40
|
_inheritsLoose(Transition, _React$Component);
|
|
37
41
|
function Transition(props) {
|
|
@@ -41,6 +41,9 @@ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormContr
|
|
|
41
41
|
renderMenuItem?: (label: React.ReactNode, item: ItemDataType) => React.ReactNode;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
+
* Autocomplete function of input field.
|
|
45
|
+
* @see https://rsuitejs.com/components/auto-complete
|
|
46
|
+
*
|
|
44
47
|
* TODO: Remove unnecessary .rs-auto-complete element
|
|
45
48
|
* TODO: role=combobox and aria-autocomplete on input element
|
|
46
49
|
*/
|
|
@@ -12,6 +12,9 @@ import { PickerToggleTrigger, onMenuKeyDown, DropdownMenu, DropdownMenuItem, Pic
|
|
|
12
12
|
import { transformData, shouldDisplay } from './utils';
|
|
13
13
|
import Plaintext from '../Plaintext';
|
|
14
14
|
/**
|
|
15
|
+
* Autocomplete function of input field.
|
|
16
|
+
* @see https://rsuitejs.com/components/auto-complete
|
|
17
|
+
*
|
|
15
18
|
* TODO: Remove unnecessary .rs-auto-complete element
|
|
16
19
|
* TODO: role=combobox and aria-autocomplete on input element
|
|
17
20
|
*/
|
package/esm/Avatar/Avatar.d.ts
CHANGED
|
@@ -26,5 +26,9 @@ export interface AvatarProps extends WithAsProps {
|
|
|
26
26
|
/** This attribute defines an alternative text description of the image */
|
|
27
27
|
alt?: string;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* The Avatar component is used to represent user or brand.
|
|
31
|
+
* @see https://rsuitejs.com/components/avatar
|
|
32
|
+
*/
|
|
29
33
|
declare const Avatar: RsRefForwardingComponent<'div', AvatarProps>;
|
|
30
34
|
export default Avatar;
|
package/esm/Avatar/Avatar.js
CHANGED
|
@@ -7,6 +7,10 @@ import React, { useContext } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useClassNames } from '../utils';
|
|
9
9
|
import { AvatarGroupContext } from '../AvatarGroup/AvatarGroup';
|
|
10
|
+
/**
|
|
11
|
+
* The Avatar component is used to represent user or brand.
|
|
12
|
+
* @see https://rsuitejs.com/components/avatar
|
|
13
|
+
*/
|
|
10
14
|
var Avatar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var _props$classPrefix = props.classPrefix,
|
|
12
16
|
classPrefix = _props$classPrefix === void 0 ? 'avatar' : _props$classPrefix,
|
|
@@ -11,5 +11,9 @@ export interface AvatarGroupProps extends WithAsProps {
|
|
|
11
11
|
export declare const AvatarGroupContext: React.Context<{
|
|
12
12
|
size?: TypeAttributes.Size | undefined;
|
|
13
13
|
}>;
|
|
14
|
+
/**
|
|
15
|
+
* The AvatarGroup component is used to represent a collection of avatars.
|
|
16
|
+
* @see https://rsuitejs.com/components/avatar
|
|
17
|
+
*/
|
|
14
18
|
declare const AvatarGroup: RsRefForwardingComponent<'div', AvatarGroupProps>;
|
|
15
19
|
export default AvatarGroup;
|
|
@@ -5,6 +5,11 @@ import React, { useMemo } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames, useCustom } from '../utils';
|
|
7
7
|
export var AvatarGroupContext = /*#__PURE__*/React.createContext({});
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The AvatarGroup component is used to represent a collection of avatars.
|
|
11
|
+
* @see https://rsuitejs.com/components/avatar
|
|
12
|
+
*/
|
|
8
13
|
var AvatarGroup = /*#__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/Badge/Badge.d.ts
CHANGED
|
@@ -8,5 +8,9 @@ export interface BadgeProps extends WithAsProps {
|
|
|
8
8
|
/** A badge can have different colors */
|
|
9
9
|
color?: TypeAttributes.Color;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The Badge component is usually used to mark or highlight the status or quantity of an object.
|
|
13
|
+
* @see https://rsuitejs.com/components/badge
|
|
14
|
+
*/
|
|
11
15
|
declare const Badge: RsRefForwardingComponent<'div', BadgeProps>;
|
|
12
16
|
export default Badge;
|
package/esm/Badge/Badge.js
CHANGED
|
@@ -4,6 +4,10 @@ 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 Badge component is usually used to mark or highlight the status or quantity of an object.
|
|
9
|
+
* @see https://rsuitejs.com/components/badge
|
|
10
|
+
*/
|
|
7
11
|
var Badge = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -19,5 +19,9 @@ export interface BreadcrumbProps extends WithAsProps {
|
|
|
19
19
|
export interface BreadcrumbComponent extends RsRefForwardingComponent<'ol', BreadcrumbProps> {
|
|
20
20
|
Item: typeof BreadcrumbItem;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* The Breadcrumb component is used to indicate the current page location and navigate.
|
|
24
|
+
* @see https://rsuitejs.com/components/breadcrumb
|
|
25
|
+
*/
|
|
22
26
|
declare const Breadcrumb: BreadcrumbComponent;
|
|
23
27
|
export default Breadcrumb;
|
|
@@ -7,6 +7,10 @@ import React, { useState, useCallback } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useClassNames, useCustom } from '../utils';
|
|
9
9
|
import BreadcrumbItem from './BreadcrumbItem';
|
|
10
|
+
/**
|
|
11
|
+
* The Breadcrumb component is used to indicate the current page location and navigate.
|
|
12
|
+
* @see https://rsuitejs.com/components/breadcrumb
|
|
13
|
+
*/
|
|
10
14
|
var Breadcrumb = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var _props$as = props.as,
|
|
12
16
|
Component = _props$as === void 0 ? 'nav' : _props$as,
|
|
@@ -6,5 +6,9 @@ export interface BreadcrumbItemProps extends WithAsProps<React.ElementType | str
|
|
|
6
6
|
title?: string;
|
|
7
7
|
target?: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* The `<Breadcrumb.Item>` component is used to specify each section of the Breadcrumb.
|
|
11
|
+
* @see https://rsuitejs.com/components/breadcrumb
|
|
12
|
+
*/
|
|
9
13
|
declare const BreadcrumbItem: RsRefForwardingComponent<'a', BreadcrumbItemProps>;
|
|
10
14
|
export default BreadcrumbItem;
|
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import SafeAnchor from '../SafeAnchor';
|
|
7
7
|
import { useClassNames } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* The `<Breadcrumb.Item>` component is used to specify each section of the Breadcrumb.
|
|
10
|
+
* @see https://rsuitejs.com/components/breadcrumb
|
|
11
|
+
*/
|
|
8
12
|
var BreadcrumbItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? props.href ? SafeAnchor : 'span' : _props$as,
|
package/esm/Button/Button.d.ts
CHANGED
|
@@ -28,5 +28,9 @@ export interface ButtonProps extends WithAsProps, React.HTMLAttributes<HTMLEleme
|
|
|
28
28
|
/** Defines HTML button type attribute */
|
|
29
29
|
type?: 'button' | 'reset' | 'submit';
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The Button component is used to trigger a custom action.
|
|
33
|
+
* @see https://rsuitejs.com/components/button
|
|
34
|
+
*/
|
|
31
35
|
declare const Button: RsRefForwardingComponent<'button', ButtonProps>;
|
|
32
36
|
export default Button;
|
package/esm/Button/Button.js
CHANGED
|
@@ -9,6 +9,10 @@ import { ButtonGroupContext } from '../ButtonGroup';
|
|
|
9
9
|
import SafeAnchor from '../SafeAnchor';
|
|
10
10
|
import Ripple from '../Ripple';
|
|
11
11
|
import { isOneOf, useClassNames } from '../utils';
|
|
12
|
+
/**
|
|
13
|
+
* The Button component is used to trigger a custom action.
|
|
14
|
+
* @see https://rsuitejs.com/components/button
|
|
15
|
+
*/
|
|
12
16
|
var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
17
|
var as = props.as,
|
|
14
18
|
active = props.active,
|
|
@@ -17,5 +17,9 @@ export interface ButtonGroupProps extends WithAsProps {
|
|
|
17
17
|
/** A button group can have different sizes */
|
|
18
18
|
size?: TypeAttributes.Size;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The ButtonGroup component is used to group a series of buttons together in a single line or column.
|
|
22
|
+
* @see https://rsuitejs.com/components/button/#button-group
|
|
23
|
+
*/
|
|
20
24
|
declare const ButtonGroup: RsRefForwardingComponent<'div', ButtonGroupProps>;
|
|
21
25
|
export default ButtonGroup;
|
|
@@ -5,6 +5,10 @@ import React, { useMemo } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import ButtonGroupContext from './ButtonGroupContext';
|
|
8
|
+
/**
|
|
9
|
+
* The ButtonGroup component is used to group a series of buttons together in a single line or column.
|
|
10
|
+
* @see https://rsuitejs.com/components/button/#button-group
|
|
11
|
+
*/
|
|
8
12
|
var ButtonGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -8,5 +8,9 @@ export interface ButtonToolbarProps extends WithAsProps {
|
|
|
8
8
|
*/
|
|
9
9
|
role?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The ButtonToolbar component is used to group a series of buttons together in a single line.
|
|
13
|
+
* @see https://rsuitejs.com/components/button/#button-toolbar
|
|
14
|
+
*/
|
|
11
15
|
declare const ButtonToolbar: RsRefForwardingComponent<typeof Stack, ButtonToolbarProps>;
|
|
12
16
|
export default ButtonToolbar;
|
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import Stack from '../Stack';
|
|
8
|
+
/**
|
|
9
|
+
* The ButtonToolbar component is used to group a series of buttons together in a single line.
|
|
10
|
+
* @see https://rsuitejs.com/components/button/#button-toolbar
|
|
11
|
+
*/
|
|
8
12
|
var ButtonToolbar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var className = props.className,
|
|
10
14
|
_props$classPrefix = props.classPrefix,
|
|
@@ -29,5 +29,9 @@ export interface CalendarProps extends WithAsProps {
|
|
|
29
29
|
/** Custom cell classes base on it's date */
|
|
30
30
|
cellClassName?: (date: Date) => string | undefined;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The Calendar component is used to select dates.
|
|
34
|
+
* @see https://rsuitejs.com/components/calendar
|
|
35
|
+
*/
|
|
32
36
|
declare const Calendar: RsRefForwardingComponent<typeof CalendarContainer, CalendarProps>;
|
|
33
37
|
export default Calendar;
|
package/esm/Calendar/Calendar.js
CHANGED
|
@@ -9,6 +9,10 @@ import Button from '../Button';
|
|
|
9
9
|
import { FormattedDate } from '../CustomProvider';
|
|
10
10
|
import { useClassNames, useCustom } from '../utils';
|
|
11
11
|
import useCalendarDate from './useCalendarDate';
|
|
12
|
+
/**
|
|
13
|
+
* The Calendar component is used to select dates.
|
|
14
|
+
* @see https://rsuitejs.com/components/calendar
|
|
15
|
+
*/
|
|
12
16
|
var Calendar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
17
|
var _props$as = props.as,
|
|
14
18
|
Component = _props$as === void 0 ? CalendarContainer : _props$as,
|
|
@@ -20,5 +20,9 @@ export interface CarouselProps extends WithAsProps {
|
|
|
20
20
|
/** Callback fired when a slide transition ends */
|
|
21
21
|
onSlideEnd?: (index: number, event: React.TransitionEvent<HTMLDivElement>) => void;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* The Carousel component is used to display a series of content.
|
|
25
|
+
* @see https://rsuitejs.com/components/carousel
|
|
26
|
+
*/
|
|
23
27
|
declare const Carousel: RsRefForwardingComponent<'div', CarouselProps>;
|
|
24
28
|
export default Carousel;
|
package/esm/Carousel/Carousel.js
CHANGED
|
@@ -5,6 +5,10 @@ import React, { useState, useMemo, useCallback, useRef } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useClassNames, useCustom, guid, ReactChildren, useTimeout, mergeRefs, useControlled, useUpdateEffect } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* The Carousel component is used to display a series of content.
|
|
10
|
+
* @see https://rsuitejs.com/components/carousel
|
|
11
|
+
*/
|
|
8
12
|
var Carousel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _sliderStyles, _ref;
|
|
10
14
|
var _props$as = props.as,
|
|
@@ -38,5 +38,9 @@ export interface CascaderComponent {
|
|
|
38
38
|
displayName?: string;
|
|
39
39
|
propTypes?: React.WeakValidationMap<CascaderProps<any>>;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* The `Cascader` component displays a hierarchical list of options.
|
|
43
|
+
* @see https://rsuitejs.com/components/cascader
|
|
44
|
+
*/
|
|
41
45
|
declare const Cascader: CascaderComponent;
|
|
42
46
|
export default Cascader;
|
package/esm/Cascader/Cascader.js
CHANGED
|
@@ -16,6 +16,11 @@ import { getSafeRegExpString, createChainedFunction, mergeRefs, useControlled, u
|
|
|
16
16
|
import { PickerToggle, PickerOverlay, SearchBar, PickerToggleTrigger, usePickerClassName, usePublicMethods, useToggleKeyDownEvent, useFocusItemValue, pickTriggerPropKeys, omitTriggerPropKeys, listPickerPropTypes } from '../Picker';
|
|
17
17
|
import { useMap } from '../utils/useMap';
|
|
18
18
|
var emptyArray = [];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The `Cascader` component displays a hierarchical list of options.
|
|
22
|
+
* @see https://rsuitejs.com/components/cascader
|
|
23
|
+
*/
|
|
19
24
|
var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
20
25
|
var _props$as = props.as,
|
|
21
26
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -17,5 +17,9 @@ export interface CheckPickerComponent {
|
|
|
17
17
|
displayName?: string;
|
|
18
18
|
propTypes?: React.WeakValidationMap<CheckPickerProps<any>>;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* A component for selecting checkable items in a dropdown list.
|
|
22
|
+
* @see https://rsuitejs.com/components/check-picker
|
|
23
|
+
*/
|
|
20
24
|
declare const CheckPicker: CheckPickerComponent;
|
|
21
25
|
export default CheckPicker;
|
|
@@ -17,6 +17,10 @@ import { createChainedFunction, useClassNames, shallowEqual, useCustom, useContr
|
|
|
17
17
|
import { getDataGroupBy } from '../utils/getDataGroupBy';
|
|
18
18
|
import { DropdownMenu, DropdownMenuCheckItem as DropdownMenuItem, PickerToggle, PickerOverlay, SearchBar, SelectedElement, PickerToggleTrigger, useFocusItemValue, usePickerClassName, useSearch, usePublicMethods, useToggleKeyDownEvent, pickTriggerPropKeys, omitTriggerPropKeys, listPickerPropTypes } from '../Picker';
|
|
19
19
|
var emptyArray = [];
|
|
20
|
+
/**
|
|
21
|
+
* A component for selecting checkable items in a dropdown list.
|
|
22
|
+
* @see https://rsuitejs.com/components/check-picker
|
|
23
|
+
*/
|
|
20
24
|
var CheckPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
21
25
|
var _props$as = props.as,
|
|
22
26
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/CheckTree/index.d.ts
CHANGED
|
@@ -7,5 +7,9 @@ export interface CheckTreeProps extends TreeBaseProps<ValueType>, FormControlPic
|
|
|
7
7
|
/** Set the option value for the check box not to be rendered */
|
|
8
8
|
uncheckableItemValues?: ValueType;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The `CheckTree` component is used for selecting multiple options which are organized in a tree structure.
|
|
12
|
+
* @see https://rsuitejs.com/components/check-tree
|
|
13
|
+
*/
|
|
10
14
|
declare const CheckTree: RsRefForwardingComponent<'div', CheckTreeProps>;
|
|
11
15
|
export default CheckTree;
|
package/esm/CheckTree/index.js
CHANGED
|
@@ -3,6 +3,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import CheckTreePicker from '../CheckTreePicker';
|
|
5
5
|
import TreeContext from '../Tree/TreeContext';
|
|
6
|
+
/**
|
|
7
|
+
* The `CheckTree` component is used for selecting multiple options which are organized in a tree structure.
|
|
8
|
+
* @see https://rsuitejs.com/components/check-tree
|
|
9
|
+
*/
|
|
6
10
|
var CheckTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
11
|
var contextValue = useMemo(function () {
|
|
8
12
|
return {
|
|
@@ -16,5 +16,10 @@ export interface CheckTreePickerProps<T = ValueType> extends TreeBaseProps<T, It
|
|
|
16
16
|
/** Called when scrolling */
|
|
17
17
|
onScroll?: (event: React.SyntheticEvent) => void;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The `CheckTreePicker` component is used for selecting multiple options which are organized in a tree structure.
|
|
21
|
+
*
|
|
22
|
+
* @see https://rsuitejs.com/components/check-tree-picker
|
|
23
|
+
*/
|
|
19
24
|
declare const CheckTreePicker: PickerComponent<CheckTreePickerProps>;
|
|
20
25
|
export default CheckTreePicker;
|
|
@@ -22,6 +22,12 @@ var emptyArray = [];
|
|
|
22
22
|
var itemSize = function itemSize() {
|
|
23
23
|
return 36;
|
|
24
24
|
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The `CheckTreePicker` component is used for selecting multiple options which are organized in a tree structure.
|
|
28
|
+
*
|
|
29
|
+
* @see https://rsuitejs.com/components/check-tree-picker
|
|
30
|
+
*/
|
|
25
31
|
var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26
32
|
var _props$as = props.as,
|
|
27
33
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -39,5 +39,9 @@ export interface CheckboxProps<V = ValueType> extends WithAsProps {
|
|
|
39
39
|
/** Called when the user presses down a key. */
|
|
40
40
|
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The Checkbox component is used for selecting multiple options from a set.
|
|
44
|
+
* @see https://rsuitejs.com/components/checkbox
|
|
45
|
+
*/
|
|
42
46
|
declare const Checkbox: RsRefForwardingComponent<'div', CheckboxProps>;
|
|
43
47
|
export default Checkbox;
|
package/esm/Checkbox/Checkbox.js
CHANGED
|
@@ -7,6 +7,10 @@ import React, { useContext, useCallback, useMemo } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useControlled, partitionHTMLProps, useClassNames, TypeChecker } from '../utils';
|
|
9
9
|
import { CheckboxGroupContext } from '../CheckboxGroup';
|
|
10
|
+
/**
|
|
11
|
+
* The Checkbox component is used for selecting multiple options from a set.
|
|
12
|
+
* @see https://rsuitejs.com/components/checkbox
|
|
13
|
+
*/
|
|
10
14
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var checkboxGroupContext = useContext(CheckboxGroupContext);
|
|
12
16
|
var _ref = checkboxGroupContext !== null && checkboxGroupContext !== void 0 ? checkboxGroupContext : {},
|
|
@@ -9,5 +9,9 @@ export interface CheckboxGroupProps<V = ValueType[]> extends WithAsProps, FormCo
|
|
|
9
9
|
/** Inline layout */
|
|
10
10
|
inline?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The `CheckboxGroup` component is used for selecting multiple options which are unrelated.
|
|
14
|
+
* @see https://rsuitejs.com/components/checkbox/#checkbox-group
|
|
15
|
+
*/
|
|
12
16
|
declare const CheckboxGroup: RsRefForwardingComponent<'div', CheckboxGroupProps>;
|
|
13
17
|
export default CheckboxGroup;
|
|
@@ -8,6 +8,10 @@ import remove from 'lodash/remove';
|
|
|
8
8
|
import { useClassNames, useControlled, shallowEqual } from '../utils';
|
|
9
9
|
import Plaintext from '../Plaintext';
|
|
10
10
|
import { CheckboxGroupContext } from './CheckboxGroupContext';
|
|
11
|
+
/**
|
|
12
|
+
* The `CheckboxGroup` component is used for selecting multiple options which are unrelated.
|
|
13
|
+
* @see https://rsuitejs.com/components/checkbox/#checkbox-group
|
|
14
|
+
*/
|
|
11
15
|
var CheckboxGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
16
|
var _props$as = props.as,
|
|
13
17
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Col/Col.d.ts
CHANGED
|
@@ -61,5 +61,9 @@ export interface ColProps extends WithAsProps {
|
|
|
61
61
|
/** Hide column on Ultra large devices Desktops */
|
|
62
62
|
xxlHidden?: boolean;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* The `Col` component is used for layout and grids.
|
|
66
|
+
* @see https://rsuitejs.com/en/components/grid
|
|
67
|
+
*/
|
|
64
68
|
declare const Col: RsRefForwardingComponent<'div', ColProps>;
|
|
65
69
|
export default Col;
|
package/esm/Col/Col.js
CHANGED
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import omit from 'lodash/omit';
|
|
7
7
|
import { useClassNames, COLUMN_SIZE } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* The `Col` component is used for layout and grids.
|
|
10
|
+
* @see https://rsuitejs.com/en/components/grid
|
|
11
|
+
*/
|
|
8
12
|
var Col = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -5,5 +5,9 @@ export declare const ContainerContext: React.Context<ContainerContextValue>;
|
|
|
5
5
|
interface ContainerContextValue {
|
|
6
6
|
setHasSidebar?: (value: boolean) => void;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Container component is used to wrap content in a themed container with a max-width.
|
|
10
|
+
* @see https://rsuitejs.com/components/container
|
|
11
|
+
*/
|
|
8
12
|
declare const Container: React.ForwardRefExoticComponent<WithAsProps<React.ElementType<any>> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
13
|
export default Container;
|
|
@@ -5,6 +5,10 @@ import React, { useState, useMemo } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
export var ContainerContext = /*#__PURE__*/React.createContext({});
|
|
8
|
+
/**
|
|
9
|
+
* The Container component is used to wrap content in a themed container with a max-width.
|
|
10
|
+
* @see https://rsuitejs.com/components/container
|
|
11
|
+
*/
|
|
8
12
|
var Container = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'section' : _props$as,
|
package/esm/Content/Content.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type ContentProps = ComponentProps;
|
|
3
3
|
/**
|
|
4
|
+
* The Content component is used to wrap content in a themed container with a max-width.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*
|
|
4
7
|
* For Internet Explorer 11 and lower, it's suggested that an ARIA role of "main"
|
|
5
8
|
* be added to the <main> element to ensure it is accessible
|
|
6
9
|
*/
|
package/esm/Content/Content.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import createComponent from '../utils/createComponent';
|
|
3
3
|
/**
|
|
4
|
+
* The Content component is used to wrap content in a themed container with a max-width.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*
|
|
4
7
|
* For Internet Explorer 11 and lower, it's suggested that an ARIA role of "main"
|
|
5
8
|
* be added to the <main> element to ensure it is accessible
|
|
6
9
|
*/
|
|
@@ -158,6 +158,11 @@ declare const CustomContext: React.Context<CustomProviderProps<{
|
|
|
158
158
|
off: string;
|
|
159
159
|
} | undefined;
|
|
160
160
|
}>>;
|
|
161
|
+
/**
|
|
162
|
+
* CustomProvider is used to provide global configuration, such as language, theme, etc.
|
|
163
|
+
*
|
|
164
|
+
* @see https://rsuitejs.com/components/custom-provider
|
|
165
|
+
*/
|
|
161
166
|
declare const CustomProvider: (props: Omit<CustomProviderProps, 'toasters'>) => JSX.Element;
|
|
162
167
|
export { CustomContext };
|
|
163
168
|
export default CustomProvider;
|