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
|
@@ -18,11 +18,11 @@ import Nav from '../Nav';
|
|
|
18
18
|
import NavContext from '../Nav/NavContext';
|
|
19
19
|
import warnOnce from '../utils/warnOnce';
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The `<Dropdown.Menu>` API
|
|
22
22
|
*
|
|
23
23
|
* @description
|
|
24
|
-
* Note the difference between this component and
|
|
25
|
-
*
|
|
24
|
+
* Note the difference between this component and `<Menu>` component:
|
|
25
|
+
* `<Menu>` is used for ARIA menu control logic and is used internally only.
|
|
26
26
|
* This component is only used for supporting submenu syntax and is
|
|
27
27
|
* assigned to Dropdown.Menu
|
|
28
28
|
*
|
|
@@ -5,7 +5,7 @@ export interface DropdownSeparatorProps extends WithAsProps, React.HTMLAttribute
|
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
8
|
+
* The `<Dropdown.Separator>` API
|
|
9
9
|
*
|
|
10
10
|
* Renders a non-focusable and non-interactive `separator`
|
|
11
11
|
* Per ARIA APG https://www.w3.org/WAI/ARIA/apg/patterns/menu/
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
8
|
+
* The `<Dropdown.Separator>` API
|
|
9
9
|
*
|
|
10
10
|
* Renders a non-focusable and non-interactive `separator`
|
|
11
11
|
* Per ARIA APG https://www.w3.org/WAI/ARIA/apg/patterns/menu/
|
|
@@ -9,5 +9,9 @@ export interface FlexboxGridProps extends WithAsProps {
|
|
|
9
9
|
interface FlexboxGridCompont extends RsRefForwardingComponent<'div', FlexboxGridProps> {
|
|
10
10
|
Item: typeof FlexboxGridItem;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The FlexboxGrid component is a box that can be used to layout other components.
|
|
14
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
15
|
+
*/
|
|
12
16
|
declare const FlexboxGrid: FlexboxGridCompont;
|
|
13
17
|
export default FlexboxGrid;
|
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import FlexboxGridItem from './FlexboxGridItem';
|
|
8
|
+
/**
|
|
9
|
+
* The FlexboxGrid component is a box that can be used to layout other components.
|
|
10
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
11
|
+
*/
|
|
8
12
|
var FlexboxGrid = /*#__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 interface FlexboxGridItemProps extends WithAsProps {
|
|
|
5
5
|
/** grid orders for sorting */
|
|
6
6
|
order?: number;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The `FlexboxGrid.Item` component is used to specify the layout of the child element in the `FlexboxGrid` component.
|
|
10
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
11
|
+
*/
|
|
8
12
|
declare const FlexboxGridItem: RsRefForwardingComponent<'div', FlexboxGridItemProps>;
|
|
9
13
|
export default FlexboxGridItem;
|
|
@@ -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 `FlexboxGrid.Item` component is used to specify the layout of the child element in the `FlexboxGrid` component.
|
|
9
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
10
|
+
*/
|
|
7
11
|
var FlexboxGridItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _withClassPrefix;
|
|
9
13
|
var _props$as = props.as,
|
package/esm/Footer/Footer.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type FooterProps = ComponentProps;
|
|
3
|
+
/**
|
|
4
|
+
* The `<Footer>` component is used to specify the footer of the page.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*/
|
|
3
7
|
declare const Footer: import("../@types/common").RsRefForwardingComponent<"footer", ComponentProps>;
|
|
4
8
|
export default Footer;
|
package/esm/Footer/Footer.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import createComponent from '../utils/createComponent';
|
|
3
|
+
/**
|
|
4
|
+
* The `<Footer>` component is used to specify the footer of the page.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*/
|
|
3
7
|
var Footer = createComponent({
|
|
4
8
|
name: 'Footer',
|
|
5
9
|
componentAs: 'footer'
|
package/esm/Form/Form.d.ts
CHANGED
|
@@ -69,5 +69,9 @@ export interface FormComponent extends RsRefForwardingComponent<'form', FormProp
|
|
|
69
69
|
Group: typeof FormGroup;
|
|
70
70
|
HelpText: typeof FormHelpText;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* The `Form` component is a form interface for collecting and validating user input.
|
|
74
|
+
* @see https://rsuitejs.com/components/form
|
|
75
|
+
*/
|
|
72
76
|
declare const Form: FormComponent;
|
|
73
77
|
export default Form;
|
package/esm/Form/Form.js
CHANGED
|
@@ -14,6 +14,10 @@ import FormHelpText from '../FormHelpText';
|
|
|
14
14
|
import { useFormClassNames } from './useFormClassNames';
|
|
15
15
|
import useSchemaModel from './useSchemaModel';
|
|
16
16
|
import { useControlled } from '../utils';
|
|
17
|
+
/**
|
|
18
|
+
* The `Form` component is a form interface for collecting and validating user input.
|
|
19
|
+
* @see https://rsuitejs.com/components/form
|
|
20
|
+
*/
|
|
17
21
|
var Form = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
22
|
var _props$checkTrigger = props.checkTrigger,
|
|
19
23
|
checkTrigger = _props$checkTrigger === void 0 ? 'change' : _props$checkTrigger,
|
|
@@ -39,5 +39,9 @@ interface FormControlComponent extends React.FC<FormControlProps> {
|
|
|
39
39
|
accepter?: Accepter;
|
|
40
40
|
} & React.ComponentPropsWithRef<Accepter>): React.ReactElement | null;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The `<Form.Control>` component is used to wrap the components that need to be validated.
|
|
44
|
+
* @see https://rsuitejs.com/components/form/
|
|
45
|
+
*/
|
|
42
46
|
declare const FormControl: FormControlComponent;
|
|
43
47
|
export default FormControl;
|
|
@@ -19,6 +19,10 @@ import Toggle from '../Toggle';
|
|
|
19
19
|
* Props that FormControl passes to its accepter
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* The `<Form.Control>` component is used to wrap the components that need to be validated.
|
|
24
|
+
* @see https://rsuitejs.com/components/form/
|
|
25
|
+
*/
|
|
22
26
|
var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
23
27
|
var _accepterProps;
|
|
24
28
|
var _useContext = useContext(FormContext),
|
|
@@ -133,7 +137,8 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
133
137
|
var accepterProps = (_accepterProps = {}, _accepterProps[valueKey] = val === undefined ? defaultValue : val, _accepterProps);
|
|
134
138
|
return /*#__PURE__*/React.createElement(Component, {
|
|
135
139
|
className: classes,
|
|
136
|
-
ref: ref
|
|
140
|
+
ref: ref,
|
|
141
|
+
"data-testid": "form-control-wrapper"
|
|
137
142
|
}, /*#__PURE__*/React.createElement(AccepterComponent, _extends({
|
|
138
143
|
id: controlId,
|
|
139
144
|
"aria-labelledby": controlId ? controlId + "-control-label" : null,
|
|
@@ -4,5 +4,9 @@ export interface FormControlLabelProps extends WithAsProps, React.LabelHTMLAttri
|
|
|
4
4
|
/** Attribute of the html label tag, defaults to the controlId of the FormGroup */
|
|
5
5
|
htmlFor?: string;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The `<Form.ControlLabel>` component renders a label with required indicator, for form controls.
|
|
9
|
+
* @see https://rsuitejs.com/components/form/
|
|
10
|
+
*/
|
|
7
11
|
declare const FormControlLabel: RsRefForwardingComponent<'label', FormControlLabelProps>;
|
|
8
12
|
export default FormControlLabel;
|
|
@@ -5,6 +5,10 @@ import React, { useContext } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import { FormGroupContext } from '../FormGroup/FormGroup';
|
|
8
|
+
/**
|
|
9
|
+
* The `<Form.ControlLabel>` component renders a label with required indicator, for form controls.
|
|
10
|
+
* @see https://rsuitejs.com/components/form/
|
|
11
|
+
*/
|
|
8
12
|
var FormControlLabel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'label' : _props$as,
|
|
@@ -5,5 +5,9 @@ export interface FormErrorMessageProps extends WithAsProps {
|
|
|
5
5
|
/** The placement of error messages */
|
|
6
6
|
placement?: TypeAttributes.Placement8;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The `<Form.ErrorMessage>` component is used to display error messages in the form.
|
|
10
|
+
* @see https://rsuitejs.com/components/form/
|
|
11
|
+
*/
|
|
8
12
|
declare const FormErrorMessage: RsRefForwardingComponent<'div', FormErrorMessageProps>;
|
|
9
13
|
export default FormErrorMessage;
|
|
@@ -7,6 +7,10 @@ import React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import kebabCase from 'lodash/kebabCase';
|
|
9
9
|
import { placementPolyfill, useClassNames } from '../utils';
|
|
10
|
+
/**
|
|
11
|
+
* The `<Form.ErrorMessage>` component is used to display error messages in the form.
|
|
12
|
+
* @see https://rsuitejs.com/components/form/
|
|
13
|
+
*/
|
|
10
14
|
var FormErrorMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var _prefix;
|
|
12
16
|
var _props$as = props.as,
|
|
@@ -10,5 +10,9 @@ export interface FormGroupProps extends WithAsProps {
|
|
|
10
10
|
export declare const FormGroupContext: React.Context<{
|
|
11
11
|
controlId?: string | undefined;
|
|
12
12
|
}>;
|
|
13
|
+
/**
|
|
14
|
+
* The `<Form.Group>` component is the easiest way to add some structure to forms.
|
|
15
|
+
* @see https://rsuitejs.com/components/form/
|
|
16
|
+
*/
|
|
13
17
|
declare const FormGroup: RsRefForwardingComponent<'div', FormGroupProps>;
|
|
14
18
|
export default FormGroup;
|
|
@@ -5,6 +5,11 @@ import React, { useMemo } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
export var FormGroupContext = /*#__PURE__*/React.createContext({});
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The `<Form.Group>` component is the easiest way to add some structure to forms.
|
|
11
|
+
* @see https://rsuitejs.com/components/form/
|
|
12
|
+
*/
|
|
8
13
|
var FormGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
14
|
var _props$as = props.as,
|
|
10
15
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -3,5 +3,9 @@ export interface FormHelpTextProps extends WithAsProps {
|
|
|
3
3
|
/** Whether to show through the Tooltip component */
|
|
4
4
|
tooltip?: boolean;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The `<Form.HelpText>` component is used to display help information in the form.
|
|
8
|
+
* @see https://rsuitejs.com/components/form/
|
|
9
|
+
*/
|
|
6
10
|
declare const FormHelpText: RsRefForwardingComponent<'span', FormHelpTextProps>;
|
|
7
11
|
export default FormHelpText;
|
|
@@ -8,6 +8,10 @@ import Whisper from '../Whisper';
|
|
|
8
8
|
import { useClassNames } from '../utils';
|
|
9
9
|
import { FormGroupContext } from '../FormGroup/FormGroup';
|
|
10
10
|
import HelpO from '@rsuite/icons/legacy/HelpO';
|
|
11
|
+
/**
|
|
12
|
+
* The `<Form.HelpText>` component is used to display help information in the form.
|
|
13
|
+
* @see https://rsuitejs.com/components/form/
|
|
14
|
+
*/
|
|
11
15
|
var FormHelpText = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
16
|
var _props$as = props.as,
|
|
13
17
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
package/esm/Grid/Grid.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ export interface GridProps extends WithAsProps {
|
|
|
3
3
|
/** Fluid layout */
|
|
4
4
|
fluid?: boolean;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The Grid component is used to specify the layout of child elements in rows and columns.
|
|
8
|
+
* @see https://rsuitejs.com/components/grid
|
|
9
|
+
*/
|
|
6
10
|
declare const Grid: RsRefForwardingComponent<'div', GridProps>;
|
|
7
11
|
export default Grid;
|
package/esm/Grid/Grid.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 Grid component is used to specify the layout of child elements in rows and columns.
|
|
9
|
+
* @see https://rsuitejs.com/components/grid
|
|
10
|
+
*/
|
|
7
11
|
var Grid = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Header/Header.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type HeaderProps = ComponentProps;
|
|
3
|
+
/**
|
|
4
|
+
* The `<Header>` component is used to specify the header of the page.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*/
|
|
3
7
|
declare const Header: import("../@types/common").RsRefForwardingComponent<"header", ComponentProps>;
|
|
4
8
|
export default Header;
|
package/esm/Header/Header.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import createComponent from '../utils/createComponent';
|
|
3
|
+
/**
|
|
4
|
+
* The `<Header>` component is used to specify the header of the page.
|
|
5
|
+
* @see https://rsuitejs.com/components/container/
|
|
6
|
+
*/
|
|
3
7
|
var Header = createComponent({
|
|
4
8
|
name: 'Header',
|
|
5
9
|
componentAs: 'header'
|
|
@@ -10,6 +10,10 @@ export interface IconButtonProps extends ButtonProps {
|
|
|
10
10
|
/** The placement of icon */
|
|
11
11
|
placement?: 'left' | 'right';
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The `IconButton` component is used to specify a button with icon.
|
|
15
|
+
* @see https://rsuitejs.com/components/button
|
|
16
|
+
*/
|
|
13
17
|
declare const IconButton: RsRefForwardingComponent<typeof Button, IconButtonProps & {
|
|
14
18
|
ref?: React.Ref<HTMLElement>;
|
|
15
19
|
}>;
|
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import Button from '../Button';
|
|
8
|
+
/**
|
|
9
|
+
* The `IconButton` component is used to specify a button with icon.
|
|
10
|
+
* @see https://rsuitejs.com/components/button
|
|
11
|
+
*/
|
|
8
12
|
var IconButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var icon = props.icon,
|
|
10
14
|
_props$placement = props.placement,
|
package/esm/Input/Input.d.ts
CHANGED
|
@@ -17,5 +17,9 @@ export interface InputProps extends WithAsProps, Omit<React.InputHTMLAttributes<
|
|
|
17
17
|
/** Called on press enter */
|
|
18
18
|
onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The `<Input>` component is used to get user input in a text field.
|
|
22
|
+
* @see https://rsuitejs.com/components/input
|
|
23
|
+
*/
|
|
20
24
|
declare const Input: RsRefForwardingComponent<'input', InputProps>;
|
|
21
25
|
export default Input;
|
package/esm/Input/Input.js
CHANGED
|
@@ -7,6 +7,10 @@ import { FormGroupContext } from '../FormGroup/FormGroup';
|
|
|
7
7
|
import { InputGroupContext } from '../InputGroup/InputGroup';
|
|
8
8
|
import Plaintext from '../Plaintext';
|
|
9
9
|
import { createChainedFunction, TypeChecker, mergeRefs, useClassNames, KEY_VALUES } from '../utils';
|
|
10
|
+
/**
|
|
11
|
+
* The `<Input>` component is used to get user input in a text field.
|
|
12
|
+
* @see https://rsuitejs.com/components/input
|
|
13
|
+
*/
|
|
10
14
|
var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var className = props.className,
|
|
12
16
|
_props$classPrefix = props.classPrefix,
|
|
@@ -20,5 +20,9 @@ export interface InputGroupComponent extends RsRefForwardingComponent<'div', Inp
|
|
|
20
20
|
Addon: typeof InputGroupAddon;
|
|
21
21
|
Button: typeof InputGroupButton;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* The `InputGroup` component is used to specify an input field with an add-on.
|
|
25
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
26
|
+
*/
|
|
23
27
|
declare const InputGroup: InputGroupComponent;
|
|
24
28
|
export default InputGroup;
|
|
@@ -7,6 +7,10 @@ import InputGroupAddon from './InputGroupAddon';
|
|
|
7
7
|
import InputGroupButton from './InputGroupButton';
|
|
8
8
|
import { useClassNames } from '../utils';
|
|
9
9
|
export var InputGroupContext = /*#__PURE__*/React.createContext(null);
|
|
10
|
+
/**
|
|
11
|
+
* The `InputGroup` component is used to specify an input field with an add-on.
|
|
12
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
13
|
+
*/
|
|
10
14
|
var InputGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var _props$as = props.as,
|
|
12
16
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -4,5 +4,9 @@ export interface InputGroupAddonProps extends WithAsProps, React.HTMLAttributes<
|
|
|
4
4
|
/** An Input group addon can show that it is disabled */
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The `InputGroup.Addon` component is used to specify an input field with an add-on.
|
|
9
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
10
|
+
*/
|
|
7
11
|
declare const InputGroupAddon: RsRefForwardingComponent<'span', InputGroupAddonProps>;
|
|
8
12
|
export default InputGroupAddon;
|
|
@@ -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 `InputGroup.Addon` component is used to specify an input field with an add-on.
|
|
9
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
10
|
+
*/
|
|
7
11
|
var InputGroupAddon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
|
+
/**
|
|
4
|
+
* The `InputGroup.Button` component is used to specify an input field with an add-on.
|
|
5
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
6
|
+
*/
|
|
3
7
|
declare const InputGroupButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<any>>;
|
|
4
8
|
export default InputGroupButton;
|
|
@@ -4,6 +4,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useClassNames } from '../utils';
|
|
6
6
|
import Button from '../Button';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The `InputGroup.Button` component is used to specify an input field with an add-on.
|
|
10
|
+
* @see https://rsuitejs.com/components/input/#input-group
|
|
11
|
+
*/
|
|
7
12
|
var InputGroupButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
13
|
var _props$classPrefix = props.classPrefix,
|
|
9
14
|
classPrefix = _props$classPrefix === void 0 ? 'input-group-btn' : _props$classPrefix,
|
|
@@ -21,5 +21,9 @@ export interface InputNumberProps<T = number | string> extends Omit<React.InputH
|
|
|
21
21
|
scrollable?: boolean;
|
|
22
22
|
onWheel?: (event: React.WheelEvent) => void;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The `InputNumber` component is used to enter a numerical value.
|
|
26
|
+
* @see https://rsuitejs.com/components/input-number
|
|
27
|
+
*/
|
|
24
28
|
declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps<string | number> & React.RefAttributes<unknown>>;
|
|
25
29
|
export default InputNumber;
|
|
@@ -66,6 +66,11 @@ function valueReachesMin(value, min) {
|
|
|
66
66
|
}
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The `InputNumber` component is used to enter a numerical value.
|
|
72
|
+
* @see https://rsuitejs.com/components/input-number
|
|
73
|
+
*/
|
|
69
74
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
70
75
|
var _props$as = props.as,
|
|
71
76
|
Component = _props$as === void 0 ? InputGroup : _props$as,
|
|
@@ -29,5 +29,10 @@ export interface InputPickerProps<T = ValueType> extends FormControlPickerProps<
|
|
|
29
29
|
*/
|
|
30
30
|
shouldDisplayCreateOption?: (searchKeyword: string, filteredData: InputItemDataType[]) => boolean;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Single item selector with text box input.
|
|
34
|
+
*
|
|
35
|
+
* @see https://rsuitejs.com/components/input-picker
|
|
36
|
+
*/
|
|
32
37
|
declare const InputPicker: PickerComponent<InputPickerProps>;
|
|
33
38
|
export default InputPicker;
|
|
@@ -24,6 +24,11 @@ import Tag from '../Tag';
|
|
|
24
24
|
import InputAutosize from './InputAutosize';
|
|
25
25
|
import InputSearch from './InputSearch';
|
|
26
26
|
import InputPickerContext from './InputPickerContext';
|
|
27
|
+
/**
|
|
28
|
+
* Single item selector with text box input.
|
|
29
|
+
*
|
|
30
|
+
* @see https://rsuitejs.com/components/input-picker
|
|
31
|
+
*/
|
|
27
32
|
var InputPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
28
33
|
var _merge;
|
|
29
34
|
var _props$as = props.as,
|
package/esm/List/List.d.ts
CHANGED
|
@@ -10,5 +10,9 @@ export interface ListProps extends WithAsProps, SortConfig {
|
|
|
10
10
|
export interface ListComponent extends RsRefForwardingComponent<'div', ListProps> {
|
|
11
11
|
Item: typeof ListItem;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The `List` component is used to specify the layout of the list.
|
|
15
|
+
* @see https://rsuitejs.com/components/list
|
|
16
|
+
*/
|
|
13
17
|
declare const List: ListComponent;
|
|
14
18
|
export default List;
|
package/esm/List/List.js
CHANGED
|
@@ -7,6 +7,10 @@ import useSortHelper from './helper/useSortHelper';
|
|
|
7
7
|
import { mergeRefs, useClassNames } from '../utils';
|
|
8
8
|
import ListContext from './ListContext';
|
|
9
9
|
import ListItem from './ListItem';
|
|
10
|
+
/**
|
|
11
|
+
* The `List` component is used to specify the layout of the list.
|
|
12
|
+
* @see https://rsuitejs.com/components/list
|
|
13
|
+
*/
|
|
10
14
|
var List = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
15
|
var _props$as = props.as,
|
|
12
16
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/List/ListItem.d.ts
CHANGED
|
@@ -7,5 +7,9 @@ export interface ListItemProps extends WithAsProps, React.HTMLAttributes<HTMLEle
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
size?: 'lg' | 'md' | 'sm';
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The `List.Item` component is used to specify the layout of the list item.
|
|
12
|
+
* @see https://rsuitejs.com/components/list
|
|
13
|
+
*/
|
|
10
14
|
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
15
|
export default ListItem;
|
package/esm/List/ListItem.js
CHANGED
|
@@ -6,6 +6,10 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useContext, useEffect, useRef } from 'react';
|
|
7
7
|
import { mergeRefs, useClassNames } from '../utils';
|
|
8
8
|
import ListContext from './ListContext';
|
|
9
|
+
/**
|
|
10
|
+
* The `List.Item` component is used to specify the layout of the list item.
|
|
11
|
+
* @see https://rsuitejs.com/components/list
|
|
12
|
+
*/
|
|
9
13
|
var ListItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
14
|
var _props$as = props.as,
|
|
11
15
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Loader/Loader.d.ts
CHANGED
|
@@ -16,5 +16,9 @@ export interface LoaderProps extends WithAsProps {
|
|
|
16
16
|
/** A loader can have different sizes */
|
|
17
17
|
size?: TypeAttributes.Size;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The `Loader` component is used to indicate the loading state of a page or a section.
|
|
21
|
+
* @see https://rsuitejs.com/components/loader
|
|
22
|
+
*/
|
|
19
23
|
declare const Loader: RsRefForwardingComponent<'div', LoaderProps>;
|
|
20
24
|
export default Loader;
|
package/esm/Loader/Loader.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 `Loader` component is used to indicate the loading state of a page or a section.
|
|
9
|
+
* @see https://rsuitejs.com/components/loader
|
|
10
|
+
*/
|
|
7
11
|
var Loader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -32,6 +32,10 @@ export declare type TextMaskProps = TextMaskBaseProps & React.HTMLAttributes<HTM
|
|
|
32
32
|
readOnly?: boolean;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The `TextMask` component is used to format the user input data.
|
|
37
|
+
* @see https://rsuitejs.com/components/input/#masked-input
|
|
38
|
+
*/
|
|
35
39
|
declare const TextMask: React.ForwardRefExoticComponent<TextMaskBaseProps & React.HTMLAttributes<HTMLInputElement> & {
|
|
36
40
|
/** Custom rendering DOM */
|
|
37
41
|
render?: ((ref: React.Ref<HTMLInputElement>, props: React.HTMLAttributes<HTMLInputElement>) => any) | undefined;
|
|
@@ -16,6 +16,11 @@ var defaultRender = function defaultRender(ref, props) {
|
|
|
16
16
|
ref: ref
|
|
17
17
|
}, props));
|
|
18
18
|
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The `TextMask` component is used to format the user input data.
|
|
22
|
+
* @see https://rsuitejs.com/components/input/#masked-input
|
|
23
|
+
*/
|
|
19
24
|
var TextMask = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
20
25
|
var mask = props.mask,
|
|
21
26
|
_props$guide = props.guide,
|
|
@@ -5,11 +5,9 @@ import isNumber from 'lodash/isNumber';
|
|
|
5
5
|
import adjustCaretPosition from './adjustCaretPosition';
|
|
6
6
|
import conformToMask from './conformToMask';
|
|
7
7
|
import { convertMaskToPlaceholder, processCaretTraps, defaultPlaceholderChar } from './utilities';
|
|
8
|
+
import safeSetSelection from '../utils/safeSetSelection';
|
|
8
9
|
var emptyString = '';
|
|
9
|
-
var strNone = 'none';
|
|
10
10
|
var strObject = 'object';
|
|
11
|
-
var isAndroid = typeof navigator !== 'undefined' && /Android/i.test(navigator.userAgent);
|
|
12
|
-
var defer = typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame : setTimeout;
|
|
13
11
|
export default function createTextMaskInputElement(config) {
|
|
14
12
|
// Anything that we will need to keep between `update` calls, we will store in this `state` object.
|
|
15
13
|
var state = {
|
|
@@ -141,7 +139,7 @@ export default function createTextMaskInputElement(config) {
|
|
|
141
139
|
// indicate rejection. Or return just a string when there are no piped characters.
|
|
142
140
|
// If the `pipe` returns `false` or a string, the block below turns it into an object that the rest
|
|
143
141
|
// of the code can work with.
|
|
144
|
-
if (pipeResults === false) {
|
|
142
|
+
if (typeof pipeResults === 'boolean' && pipeResults === false) {
|
|
145
143
|
// If the `pipe` rejects `conformedValue`, we use the `previousConformedValue`, and set `rejected` to `true`.
|
|
146
144
|
pipeResults = {
|
|
147
145
|
value: previousConformedValue,
|
|
@@ -186,22 +184,14 @@ export default function createTextMaskInputElement(config) {
|
|
|
186
184
|
return;
|
|
187
185
|
}
|
|
188
186
|
inputElement.value = inputElementValue; // set the input value
|
|
189
|
-
|
|
187
|
+
|
|
188
|
+
if (typeof adjustedCaretPosition === 'number') {
|
|
189
|
+
safeSetSelection(inputElement, adjustedCaretPosition, adjustedCaretPosition); // adjust caret position
|
|
190
|
+
}
|
|
190
191
|
}
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
194
|
|
|
194
|
-
function safeSetSelection(element, selectionPosition) {
|
|
195
|
-
if (document.activeElement === element) {
|
|
196
|
-
if (isAndroid) {
|
|
197
|
-
defer(function () {
|
|
198
|
-
return element.setSelectionRange(selectionPosition, selectionPosition, strNone);
|
|
199
|
-
}, 0);
|
|
200
|
-
} else {
|
|
201
|
-
element.setSelectionRange(selectionPosition, selectionPosition, strNone);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
195
|
function getSafeRawValue(inputValue) {
|
|
206
196
|
if (isString(inputValue)) {
|
|
207
197
|
return inputValue;
|
package/esm/Message/Message.d.ts
CHANGED
|
@@ -24,5 +24,9 @@ export interface MessageProps extends WithAsProps {
|
|
|
24
24
|
/** Callback after the message is removed */
|
|
25
25
|
onClose?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The `Message` component is used to display important messages to users.
|
|
29
|
+
* @see https://rsuitejs.com/components/message
|
|
30
|
+
*/
|
|
27
31
|
declare const Message: RsRefForwardingComponent<'div', MessageProps>;
|
|
28
32
|
export default Message;
|
package/esm/Message/Message.js
CHANGED
|
@@ -8,6 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { useClassNames, useTimeout, MESSAGE_STATUS_ICONS, STATUS, useIsMounted } from '../utils';
|
|
9
9
|
import CloseButton from '../CloseButton';
|
|
10
10
|
import ToastContext from '../toaster/ToastContext';
|
|
11
|
+
/**
|
|
12
|
+
* The `Message` component is used to display important messages to users.
|
|
13
|
+
* @see https://rsuitejs.com/components/message
|
|
14
|
+
*/
|
|
11
15
|
var Message = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
16
|
var _withClassPrefix;
|
|
13
17
|
var _props$as = props.as,
|