rsuite 5.46.1 → 5.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/CloseButton/styles/index.less +13 -7
- package/DateInput/package.json +7 -0
- package/Message/styles/mixin.less +8 -0
- package/Notification/styles/index.less +8 -0
- package/Picker/styles/index.less +0 -9
- package/Tag/styles/index.less +2 -5
- package/Uploader/styles/index.less +1 -2
- package/cjs/Affix/Affix.d.ts +6 -0
- package/cjs/Affix/Affix.js +7 -0
- package/cjs/Animation/Bounce.d.ts +4 -0
- package/cjs/Animation/Bounce.js +4 -0
- package/cjs/Animation/Collapse.d.ts +4 -0
- package/cjs/Animation/Collapse.js +5 -0
- package/cjs/Animation/Fade.d.ts +4 -0
- package/cjs/Animation/Fade.js +4 -0
- package/cjs/Animation/Slide.d.ts +4 -0
- package/cjs/Animation/Slide.js +4 -0
- package/cjs/Animation/Transition.d.ts +4 -0
- package/cjs/Animation/Transition.js +4 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +3 -0
- package/cjs/AutoComplete/AutoComplete.js +3 -0
- package/cjs/Avatar/Avatar.d.ts +4 -0
- package/cjs/Avatar/Avatar.js +4 -0
- package/cjs/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/cjs/AvatarGroup/AvatarGroup.js +5 -0
- package/cjs/Badge/Badge.d.ts +4 -0
- package/cjs/Badge/Badge.js +4 -0
- package/cjs/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/cjs/Breadcrumb/Breadcrumb.js +4 -0
- package/cjs/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/cjs/Breadcrumb/BreadcrumbItem.js +4 -0
- package/cjs/Button/Button.d.ts +4 -0
- package/cjs/Button/Button.js +4 -0
- package/cjs/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/cjs/ButtonGroup/ButtonGroup.js +4 -0
- package/cjs/ButtonToolbar/ButtonToolbar.d.ts +4 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +4 -0
- package/cjs/Calendar/Calendar.d.ts +4 -0
- package/cjs/Calendar/Calendar.js +4 -0
- package/cjs/Carousel/Carousel.d.ts +4 -0
- package/cjs/Carousel/Carousel.js +4 -0
- package/cjs/Cascader/Cascader.d.ts +4 -0
- package/cjs/Cascader/Cascader.js +5 -0
- package/cjs/CheckPicker/CheckPicker.d.ts +4 -0
- package/cjs/CheckPicker/CheckPicker.js +4 -0
- package/cjs/CheckTree/index.d.ts +4 -0
- package/cjs/CheckTree/index.js +4 -0
- package/cjs/CheckTreePicker/CheckTreePicker.d.ts +5 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +6 -0
- package/cjs/Checkbox/Checkbox.d.ts +6 -0
- package/cjs/Checkbox/Checkbox.js +4 -0
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/cjs/CheckboxGroup/CheckboxGroup.js +4 -0
- package/cjs/CloseButton/CloseButton.js +3 -5
- package/cjs/Col/Col.d.ts +4 -0
- package/cjs/Col/Col.js +4 -0
- package/cjs/Container/Container.d.ts +4 -0
- package/cjs/Container/Container.js +4 -0
- package/cjs/Content/Content.d.ts +3 -0
- package/cjs/Content/Content.js +3 -0
- package/cjs/CustomProvider/CustomProvider.d.ts +8 -3
- package/cjs/CustomProvider/CustomProvider.js +6 -0
- package/cjs/DOMHelper/index.d.ts +4 -0
- package/cjs/DOMHelper/index.js +4 -0
- package/cjs/DateInput/DateField.d.ts +180 -0
- package/cjs/DateInput/DateField.js +151 -0
- package/cjs/DateInput/DateInput.d.ts +18 -0
- package/cjs/DateInput/DateInput.js +222 -0
- package/cjs/DateInput/index.d.ts +3 -0
- package/cjs/DateInput/index.js +9 -0
- package/cjs/DateInput/useDateInputState.d.ts +165 -0
- package/cjs/DateInput/useDateInputState.js +105 -0
- package/cjs/DateInput/utils.d.ts +41 -0
- package/cjs/DateInput/utils.js +159 -0
- package/cjs/DatePicker/DatePicker.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.js +5 -0
- package/cjs/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/cjs/DateRangePicker/DateRangePicker.js +5 -0
- package/cjs/Divider/Divider.d.ts +4 -0
- package/cjs/Divider/Divider.js +4 -0
- package/cjs/Drawer/Drawer.d.ts +4 -0
- package/cjs/Drawer/Drawer.js +4 -0
- package/cjs/Dropdown/Dropdown.d.ts +6 -3
- package/cjs/Dropdown/Dropdown.js +6 -3
- package/cjs/Dropdown/DropdownItem.d.ts +3 -3
- package/cjs/Dropdown/DropdownItem.js +3 -3
- package/cjs/Dropdown/DropdownMenu.d.ts +3 -3
- package/cjs/Dropdown/DropdownMenu.js +3 -3
- package/cjs/Dropdown/DropdownSeparator.d.ts +1 -1
- package/cjs/Dropdown/DropdownSeparator.js +1 -1
- package/cjs/FlexboxGrid/FlexboxGrid.d.ts +4 -0
- package/cjs/FlexboxGrid/FlexboxGrid.js +4 -0
- package/cjs/FlexboxGrid/FlexboxGridItem.d.ts +4 -0
- package/cjs/FlexboxGrid/FlexboxGridItem.js +4 -0
- package/cjs/Footer/Footer.d.ts +4 -0
- package/cjs/Footer/Footer.js +4 -0
- package/cjs/Form/Form.d.ts +4 -0
- package/cjs/Form/Form.js +4 -0
- package/cjs/FormControl/FormControl.d.ts +4 -0
- package/cjs/FormControl/FormControl.js +4 -0
- package/cjs/FormControlLabel/FormControlLabel.d.ts +4 -0
- package/cjs/FormControlLabel/FormControlLabel.js +4 -0
- package/cjs/FormErrorMessage/FormErrorMessage.d.ts +4 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +4 -0
- package/cjs/FormGroup/FormGroup.d.ts +4 -0
- package/cjs/FormGroup/FormGroup.js +5 -0
- package/cjs/FormHelpText/FormHelpText.d.ts +4 -0
- package/cjs/FormHelpText/FormHelpText.js +4 -0
- package/cjs/Grid/Grid.d.ts +4 -0
- package/cjs/Grid/Grid.js +4 -0
- package/cjs/Header/Header.d.ts +4 -0
- package/cjs/Header/Header.js +4 -0
- package/cjs/IconButton/IconButton.d.ts +4 -0
- package/cjs/IconButton/IconButton.js +4 -0
- package/cjs/Input/Input.d.ts +4 -0
- package/cjs/Input/Input.js +4 -0
- package/cjs/InputGroup/InputGroup.d.ts +4 -0
- package/cjs/InputGroup/InputGroup.js +4 -0
- package/cjs/InputGroup/InputGroupAddon.d.ts +4 -0
- package/cjs/InputGroup/InputGroupAddon.js +4 -0
- package/cjs/InputGroup/InputGroupButton.d.ts +4 -0
- package/cjs/InputGroup/InputGroupButton.js +4 -0
- package/cjs/InputNumber/InputNumber.d.ts +4 -0
- package/cjs/InputNumber/InputNumber.js +5 -0
- package/cjs/InputPicker/InputPicker.d.ts +8 -22
- package/cjs/InputPicker/InputPicker.js +13 -8
- package/cjs/InputPicker/InputPickerContext.d.ts +26 -0
- package/cjs/InputPicker/InputPickerContext.js +13 -0
- package/cjs/List/List.d.ts +4 -0
- package/cjs/List/List.js +4 -0
- package/cjs/List/ListItem.d.ts +4 -0
- package/cjs/List/ListItem.js +4 -0
- package/cjs/Loader/Loader.d.ts +4 -0
- package/cjs/Loader/Loader.js +4 -0
- package/cjs/MaskedInput/TextMask.d.ts +4 -0
- package/cjs/MaskedInput/TextMask.js +5 -0
- package/cjs/MaskedInput/createTextMaskInputElement.js +6 -16
- package/cjs/Message/Message.d.ts +4 -0
- package/cjs/Message/Message.js +4 -0
- package/cjs/Modal/Modal.d.ts +4 -0
- package/cjs/Modal/Modal.js +4 -0
- package/cjs/MultiCascader/MultiCascader.d.ts +4 -0
- package/cjs/MultiCascader/MultiCascader.js +5 -0
- package/cjs/Nav/Nav.d.ts +4 -0
- package/cjs/Nav/Nav.js +4 -0
- package/cjs/Nav/NavDropdown.d.ts +2 -1
- package/cjs/Nav/NavDropdown.js +2 -1
- package/cjs/Nav/NavItem.d.ts +6 -3
- package/cjs/Nav/NavItem.js +6 -3
- package/cjs/Nav/NavMenu.d.ts +6 -3
- package/cjs/Nav/NavMenu.js +6 -3
- package/cjs/Navbar/Navbar.d.ts +4 -0
- package/cjs/Navbar/Navbar.js +4 -0
- package/cjs/Notification/Notification.d.ts +5 -0
- package/cjs/Notification/Notification.js +5 -0
- package/cjs/Overlay/Overlay.d.ts +4 -0
- package/cjs/Overlay/Overlay.js +5 -0
- package/cjs/Overlay/OverlayTrigger.d.ts +4 -0
- package/cjs/Overlay/OverlayTrigger.js +16 -11
- package/cjs/Overlay/Position.d.ts +4 -0
- package/cjs/Overlay/Position.js +4 -0
- package/cjs/Pagination/Pagination.d.ts +5 -0
- package/cjs/Pagination/Pagination.js +5 -0
- package/cjs/Panel/Panel.d.ts +4 -0
- package/cjs/Panel/Panel.js +4 -0
- package/cjs/PanelGroup/PanelGroup.d.ts +4 -0
- package/cjs/PanelGroup/PanelGroup.js +5 -0
- package/cjs/Picker/DropdownMenu.d.ts +1 -0
- package/cjs/Picker/DropdownMenu.js +7 -3
- package/cjs/Picker/DropdownMenuCheckItem.d.ts +2 -0
- package/cjs/Picker/DropdownMenuCheckItem.js +18 -14
- package/cjs/Picker/PickerToggle.js +3 -1
- package/cjs/Placeholder/Placeholder.d.ts +4 -0
- package/cjs/Placeholder/Placeholder.js +4 -0
- package/cjs/Placeholder/PlaceholderGraph.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderGraph.js +4 -0
- package/cjs/Placeholder/PlaceholderGrid.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderGrid.js +4 -0
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +4 -0
- package/cjs/Placeholder/PlaceholderParagraph.js +4 -0
- package/cjs/Plaintext/Plaintext.d.ts +2 -1
- package/cjs/Plaintext/Plaintext.js +5 -2
- package/cjs/Popover/Popover.d.ts +4 -0
- package/cjs/Popover/Popover.js +4 -0
- package/cjs/Progress/Progress.d.ts +4 -0
- package/cjs/Progress/Progress.js +4 -0
- package/cjs/Progress/ProgressCircle.d.ts +4 -0
- package/cjs/Progress/ProgressCircle.js +4 -0
- package/cjs/Progress/ProgressLine.d.ts +4 -0
- package/cjs/Progress/ProgressLine.js +4 -0
- package/cjs/Radio/Radio.d.ts +4 -0
- package/cjs/Radio/Radio.js +4 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +4 -0
- package/cjs/RadioGroup/RadioGroup.js +5 -0
- package/cjs/RadioTile/RadioTile.d.ts +5 -0
- package/cjs/RadioTile/RadioTile.js +5 -0
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +5 -0
- package/cjs/RadioTileGroup/RadioTileGroup.js +6 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +4 -0
- package/cjs/RangeSlider/RangeSlider.js +5 -0
- package/cjs/Rate/Rate.d.ts +4 -0
- package/cjs/Rate/Rate.js +4 -0
- package/cjs/Ripple/Ripple.d.ts +4 -0
- package/cjs/Ripple/Ripple.js +5 -0
- package/cjs/Row/Row.d.ts +4 -0
- package/cjs/Row/Row.js +4 -0
- package/cjs/SafeAnchor/SafeAnchor.d.ts +4 -0
- package/cjs/SafeAnchor/SafeAnchor.js +5 -0
- package/cjs/Schema/Schema.d.ts +6 -0
- package/cjs/Schema/Schema.js +6 -0
- package/cjs/SelectPicker/SelectPicker.d.ts +4 -0
- package/cjs/SelectPicker/SelectPicker.js +4 -0
- package/cjs/Sidebar/Sidebar.d.ts +4 -0
- package/cjs/Sidebar/Sidebar.js +4 -0
- package/cjs/Sidenav/Sidenav.d.ts +4 -0
- package/cjs/Sidenav/Sidenav.js +5 -0
- package/cjs/Sidenav/SidenavBody.d.ts +5 -0
- package/cjs/Sidenav/SidenavBody.js +5 -0
- package/cjs/Sidenav/SidenavHeader.d.ts +5 -0
- package/cjs/Sidenav/SidenavHeader.js +5 -0
- package/cjs/Slider/Slider.d.ts +5 -0
- package/cjs/Slider/Slider.js +6 -0
- package/cjs/Stack/Stack.d.ts +6 -0
- package/cjs/Stack/Stack.js +6 -0
- package/cjs/Stack/StackItem.d.ts +5 -0
- package/cjs/Stack/StackItem.js +5 -0
- package/cjs/Steps/StepItem.d.ts +5 -0
- package/cjs/Steps/StepItem.js +5 -0
- package/cjs/Steps/Steps.d.ts +5 -0
- package/cjs/Steps/Steps.js +5 -0
- package/cjs/Table/Table.d.ts +19 -2
- package/cjs/Table/Table.js +20 -1
- package/cjs/Tag/Tag.d.ts +6 -0
- package/cjs/Tag/Tag.js +13 -1
- package/cjs/TagGroup/TagGroup.d.ts +5 -0
- package/cjs/TagGroup/TagGroup.js +5 -0
- package/cjs/TagInput/index.d.ts +8 -15
- package/cjs/TagInput/index.js +8 -2
- package/cjs/TagPicker/index.d.ts +13 -10
- package/cjs/TagPicker/index.js +13 -5
- package/cjs/Timeline/Timeline.d.ts +5 -0
- package/cjs/Timeline/Timeline.js +5 -0
- package/cjs/Timeline/TimelineItem.d.ts +5 -0
- package/cjs/Timeline/TimelineItem.js +5 -0
- package/cjs/Toggle/Toggle.d.ts +5 -0
- package/cjs/Toggle/Toggle.js +5 -0
- package/cjs/Tooltip/Tooltip.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.js +5 -0
- package/cjs/Tree/Tree.d.ts +5 -0
- package/cjs/Tree/Tree.js +5 -0
- package/cjs/TreePicker/TreePicker.d.ts +5 -0
- package/cjs/TreePicker/TreePicker.js +6 -0
- package/cjs/Uploader/UploadFileItem.js +19 -5
- package/cjs/Uploader/Uploader.d.ts +5 -0
- package/cjs/Uploader/Uploader.js +6 -0
- package/cjs/Whisper/Whisper.d.ts +6 -0
- package/cjs/Whisper/Whisper.js +6 -0
- package/cjs/Windowing/AutoSizer.d.ts +5 -0
- package/cjs/Windowing/AutoSizer.js +5 -0
- package/cjs/Windowing/List.d.ts +6 -1
- package/cjs/Windowing/List.js +5 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +6 -2
- package/cjs/locales/ar_EG.d.ts +3 -0
- package/cjs/locales/ar_EG.js +5 -2
- package/cjs/locales/da_DK.d.ts +3 -0
- package/cjs/locales/da_DK.js +5 -2
- package/cjs/locales/de_DE.d.ts +3 -0
- package/cjs/locales/de_DE.js +5 -2
- package/cjs/locales/default.d.ts +3 -0
- package/cjs/locales/default.js +5 -2
- package/cjs/locales/en_US.d.ts +3 -0
- package/cjs/locales/en_US.js +5 -2
- package/cjs/locales/es_AR.d.ts +3 -0
- package/cjs/locales/es_AR.js +5 -2
- package/cjs/locales/es_ES.d.ts +3 -0
- package/cjs/locales/es_ES.js +5 -2
- package/cjs/locales/fa_IR.d.ts +3 -0
- package/cjs/locales/fa_IR.js +5 -2
- package/cjs/locales/fi_FI.d.ts +3 -0
- package/cjs/locales/fi_FI.js +5 -2
- package/cjs/locales/fr_FR.d.ts +3 -0
- package/cjs/locales/fr_FR.js +5 -2
- package/cjs/locales/hu_HU.d.ts +3 -0
- package/cjs/locales/hu_HU.js +5 -2
- package/cjs/locales/index.d.ts +1 -1
- package/cjs/locales/it_IT.d.ts +3 -0
- package/cjs/locales/it_IT.js +5 -2
- package/cjs/locales/ja_JP.d.ts +3 -0
- package/cjs/locales/ja_JP.js +5 -2
- package/cjs/locales/kk_KZ.d.ts +3 -0
- package/cjs/locales/kk_KZ.js +5 -2
- package/cjs/locales/ko_KR.d.ts +3 -0
- package/cjs/locales/ko_KR.js +5 -2
- package/cjs/locales/ne_NP.d.ts +3 -0
- package/cjs/locales/ne_NP.js +5 -2
- package/cjs/locales/nl_NL.d.ts +3 -0
- package/cjs/locales/nl_NL.js +5 -2
- package/cjs/locales/pt_BR.d.ts +3 -0
- package/cjs/locales/pt_BR.js +5 -2
- package/cjs/locales/ru_RU.d.ts +3 -0
- package/cjs/locales/ru_RU.js +6 -3
- package/cjs/locales/sv_SE.d.ts +3 -0
- package/cjs/locales/sv_SE.js +5 -2
- package/cjs/locales/tr_TR.d.ts +3 -0
- package/cjs/locales/tr_TR.js +5 -2
- package/cjs/locales/zh_CN.d.ts +3 -0
- package/cjs/locales/zh_CN.js +5 -2
- package/cjs/locales/zh_TW.d.ts +3 -0
- package/cjs/locales/zh_TW.js +5 -2
- package/cjs/toaster/toaster.d.ts +9 -7
- package/cjs/toaster/useToaster.d.ts +19 -1
- package/cjs/toaster/useToaster.js +19 -1
- package/cjs/useMediaQuery/index.d.ts +2 -0
- package/cjs/useMediaQuery/index.js +9 -0
- package/cjs/useMediaQuery/useMediaQuery.d.ts +23 -0
- package/cjs/useMediaQuery/useMediaQuery.js +123 -0
- package/cjs/utils/BrowserDetection.d.ts +1 -0
- package/cjs/utils/BrowserDetection.js +5 -1
- package/cjs/utils/dateUtils.d.ts +6 -0
- package/cjs/utils/dateUtils.js +13 -1
- package/cjs/utils/index.d.ts +1 -0
- package/cjs/utils/index.js +4 -1
- package/cjs/utils/safeSetSelection.d.ts +2 -0
- package/cjs/utils/safeSetSelection.js +21 -0
- package/cjs/utils/treeUtils.d.ts +2 -2
- package/dist/rsuite-no-reset-rtl.css +54 -25
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +54 -25
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +54 -25
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +54 -25
- package/dist/rsuite.js +354 -129
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Affix/Affix.d.ts +6 -0
- package/esm/Affix/Affix.js +7 -0
- package/esm/Animation/Bounce.d.ts +4 -0
- package/esm/Animation/Bounce.js +4 -0
- package/esm/Animation/Collapse.d.ts +4 -0
- package/esm/Animation/Collapse.js +5 -0
- package/esm/Animation/Fade.d.ts +4 -0
- package/esm/Animation/Fade.js +4 -0
- package/esm/Animation/Slide.d.ts +4 -0
- package/esm/Animation/Slide.js +4 -0
- package/esm/Animation/Transition.d.ts +4 -0
- package/esm/Animation/Transition.js +4 -0
- package/esm/AutoComplete/AutoComplete.d.ts +3 -0
- package/esm/AutoComplete/AutoComplete.js +3 -0
- package/esm/Avatar/Avatar.d.ts +4 -0
- package/esm/Avatar/Avatar.js +4 -0
- package/esm/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/esm/AvatarGroup/AvatarGroup.js +5 -0
- package/esm/Badge/Badge.d.ts +4 -0
- package/esm/Badge/Badge.js +4 -0
- package/esm/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/esm/Breadcrumb/Breadcrumb.js +4 -0
- package/esm/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/esm/Breadcrumb/BreadcrumbItem.js +4 -0
- package/esm/Button/Button.d.ts +4 -0
- package/esm/Button/Button.js +4 -0
- package/esm/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/esm/ButtonGroup/ButtonGroup.js +4 -0
- package/esm/ButtonToolbar/ButtonToolbar.d.ts +4 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +4 -0
- package/esm/Calendar/Calendar.d.ts +4 -0
- package/esm/Calendar/Calendar.js +4 -0
- package/esm/Carousel/Carousel.d.ts +4 -0
- package/esm/Carousel/Carousel.js +4 -0
- package/esm/Cascader/Cascader.d.ts +4 -0
- package/esm/Cascader/Cascader.js +5 -0
- package/esm/CheckPicker/CheckPicker.d.ts +4 -0
- package/esm/CheckPicker/CheckPicker.js +4 -0
- package/esm/CheckTree/index.d.ts +4 -0
- package/esm/CheckTree/index.js +4 -0
- package/esm/CheckTreePicker/CheckTreePicker.d.ts +5 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +6 -0
- package/esm/Checkbox/Checkbox.d.ts +6 -0
- package/esm/Checkbox/Checkbox.js +4 -0
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/esm/CheckboxGroup/CheckboxGroup.js +4 -0
- package/esm/CloseButton/CloseButton.js +3 -5
- package/esm/Col/Col.d.ts +4 -0
- package/esm/Col/Col.js +4 -0
- package/esm/Container/Container.d.ts +4 -0
- package/esm/Container/Container.js +4 -0
- package/esm/Content/Content.d.ts +3 -0
- package/esm/Content/Content.js +3 -0
- package/esm/CustomProvider/CustomProvider.d.ts +8 -3
- package/esm/CustomProvider/CustomProvider.js +6 -0
- package/esm/DOMHelper/index.d.ts +4 -0
- package/esm/DOMHelper/index.js +5 -0
- package/esm/DateInput/DateField.d.ts +180 -0
- package/esm/DateInput/DateField.js +144 -0
- package/esm/DateInput/DateInput.d.ts +18 -0
- package/esm/DateInput/DateInput.js +215 -0
- package/esm/DateInput/index.d.ts +3 -0
- package/esm/DateInput/index.js +3 -0
- package/esm/DateInput/useDateInputState.d.ts +165 -0
- package/esm/DateInput/useDateInputState.js +99 -0
- package/esm/DateInput/utils.d.ts +41 -0
- package/esm/DateInput/utils.js +151 -0
- package/esm/DatePicker/DatePicker.d.ts +5 -0
- package/esm/DatePicker/DatePicker.js +5 -0
- package/esm/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/esm/DateRangePicker/DateRangePicker.js +5 -0
- package/esm/Divider/Divider.d.ts +4 -0
- package/esm/Divider/Divider.js +4 -0
- package/esm/Drawer/Drawer.d.ts +4 -0
- package/esm/Drawer/Drawer.js +4 -0
- package/esm/Dropdown/Dropdown.d.ts +6 -3
- package/esm/Dropdown/Dropdown.js +6 -3
- package/esm/Dropdown/DropdownItem.d.ts +3 -3
- package/esm/Dropdown/DropdownItem.js +3 -3
- package/esm/Dropdown/DropdownMenu.d.ts +3 -3
- package/esm/Dropdown/DropdownMenu.js +3 -3
- package/esm/Dropdown/DropdownSeparator.d.ts +1 -1
- package/esm/Dropdown/DropdownSeparator.js +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.d.ts +4 -0
- package/esm/FlexboxGrid/FlexboxGrid.js +4 -0
- package/esm/FlexboxGrid/FlexboxGridItem.d.ts +4 -0
- package/esm/FlexboxGrid/FlexboxGridItem.js +4 -0
- package/esm/Footer/Footer.d.ts +4 -0
- package/esm/Footer/Footer.js +4 -0
- package/esm/Form/Form.d.ts +4 -0
- package/esm/Form/Form.js +4 -0
- package/esm/FormControl/FormControl.d.ts +4 -0
- package/esm/FormControl/FormControl.js +4 -0
- package/esm/FormControlLabel/FormControlLabel.d.ts +4 -0
- package/esm/FormControlLabel/FormControlLabel.js +4 -0
- package/esm/FormErrorMessage/FormErrorMessage.d.ts +4 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +4 -0
- package/esm/FormGroup/FormGroup.d.ts +4 -0
- package/esm/FormGroup/FormGroup.js +5 -0
- package/esm/FormHelpText/FormHelpText.d.ts +4 -0
- package/esm/FormHelpText/FormHelpText.js +4 -0
- package/esm/Grid/Grid.d.ts +4 -0
- package/esm/Grid/Grid.js +4 -0
- package/esm/Header/Header.d.ts +4 -0
- package/esm/Header/Header.js +4 -0
- package/esm/IconButton/IconButton.d.ts +4 -0
- package/esm/IconButton/IconButton.js +4 -0
- package/esm/Input/Input.d.ts +4 -0
- package/esm/Input/Input.js +4 -0
- package/esm/InputGroup/InputGroup.d.ts +4 -0
- package/esm/InputGroup/InputGroup.js +4 -0
- package/esm/InputGroup/InputGroupAddon.d.ts +4 -0
- package/esm/InputGroup/InputGroupAddon.js +4 -0
- package/esm/InputGroup/InputGroupButton.d.ts +4 -0
- package/esm/InputGroup/InputGroupButton.js +5 -0
- package/esm/InputNumber/InputNumber.d.ts +4 -0
- package/esm/InputNumber/InputNumber.js +5 -0
- package/esm/InputPicker/InputPicker.d.ts +8 -22
- package/esm/InputPicker/InputPicker.js +11 -5
- package/esm/InputPicker/InputPickerContext.d.ts +26 -0
- package/esm/InputPicker/InputPickerContext.js +7 -0
- package/esm/List/List.d.ts +4 -0
- package/esm/List/List.js +4 -0
- package/esm/List/ListItem.d.ts +4 -0
- package/esm/List/ListItem.js +4 -0
- package/esm/Loader/Loader.d.ts +4 -0
- package/esm/Loader/Loader.js +4 -0
- package/esm/MaskedInput/TextMask.d.ts +4 -0
- package/esm/MaskedInput/TextMask.js +5 -0
- package/esm/MaskedInput/createTextMaskInputElement.js +6 -16
- package/esm/Message/Message.d.ts +4 -0
- package/esm/Message/Message.js +4 -0
- package/esm/Modal/Modal.d.ts +4 -0
- package/esm/Modal/Modal.js +4 -0
- package/esm/MultiCascader/MultiCascader.d.ts +4 -0
- package/esm/MultiCascader/MultiCascader.js +5 -0
- package/esm/Nav/Nav.d.ts +4 -0
- package/esm/Nav/Nav.js +4 -0
- package/esm/Nav/NavDropdown.d.ts +2 -1
- package/esm/Nav/NavDropdown.js +2 -1
- package/esm/Nav/NavItem.d.ts +6 -3
- package/esm/Nav/NavItem.js +6 -3
- package/esm/Nav/NavMenu.d.ts +6 -3
- package/esm/Nav/NavMenu.js +6 -3
- package/esm/Navbar/Navbar.d.ts +4 -0
- package/esm/Navbar/Navbar.js +4 -0
- package/esm/Notification/Notification.d.ts +5 -0
- package/esm/Notification/Notification.js +5 -0
- package/esm/Overlay/Overlay.d.ts +4 -0
- package/esm/Overlay/Overlay.js +5 -0
- package/esm/Overlay/OverlayTrigger.d.ts +4 -0
- package/esm/Overlay/OverlayTrigger.js +16 -11
- package/esm/Overlay/Position.d.ts +4 -0
- package/esm/Overlay/Position.js +4 -0
- package/esm/Pagination/Pagination.d.ts +5 -0
- package/esm/Pagination/Pagination.js +5 -0
- package/esm/Panel/Panel.d.ts +4 -0
- package/esm/Panel/Panel.js +4 -0
- package/esm/PanelGroup/PanelGroup.d.ts +4 -0
- package/esm/PanelGroup/PanelGroup.js +5 -0
- package/esm/Picker/DropdownMenu.d.ts +1 -0
- package/esm/Picker/DropdownMenu.js +7 -3
- package/esm/Picker/DropdownMenuCheckItem.d.ts +2 -0
- package/esm/Picker/DropdownMenuCheckItem.js +18 -14
- package/esm/Picker/PickerToggle.js +4 -2
- package/esm/Placeholder/Placeholder.d.ts +4 -0
- package/esm/Placeholder/Placeholder.js +4 -0
- package/esm/Placeholder/PlaceholderGraph.d.ts +4 -0
- package/esm/Placeholder/PlaceholderGraph.js +4 -0
- package/esm/Placeholder/PlaceholderGrid.d.ts +4 -0
- package/esm/Placeholder/PlaceholderGrid.js +4 -0
- package/esm/Placeholder/PlaceholderParagraph.d.ts +4 -0
- package/esm/Placeholder/PlaceholderParagraph.js +4 -0
- package/esm/Plaintext/Plaintext.d.ts +2 -1
- package/esm/Plaintext/Plaintext.js +5 -2
- package/esm/Popover/Popover.d.ts +4 -0
- package/esm/Popover/Popover.js +4 -0
- package/esm/Progress/Progress.d.ts +4 -0
- package/esm/Progress/Progress.js +4 -0
- package/esm/Progress/ProgressCircle.d.ts +4 -0
- package/esm/Progress/ProgressCircle.js +4 -0
- package/esm/Progress/ProgressLine.d.ts +4 -0
- package/esm/Progress/ProgressLine.js +4 -0
- package/esm/Radio/Radio.d.ts +4 -0
- package/esm/Radio/Radio.js +4 -0
- package/esm/RadioGroup/RadioGroup.d.ts +4 -0
- package/esm/RadioGroup/RadioGroup.js +5 -0
- package/esm/RadioTile/RadioTile.d.ts +5 -0
- package/esm/RadioTile/RadioTile.js +5 -0
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +5 -0
- package/esm/RadioTileGroup/RadioTileGroup.js +6 -0
- package/esm/RangeSlider/RangeSlider.d.ts +4 -0
- package/esm/RangeSlider/RangeSlider.js +5 -0
- package/esm/Rate/Rate.d.ts +4 -0
- package/esm/Rate/Rate.js +4 -0
- package/esm/Ripple/Ripple.d.ts +4 -0
- package/esm/Ripple/Ripple.js +5 -0
- package/esm/Row/Row.d.ts +4 -0
- package/esm/Row/Row.js +4 -0
- package/esm/SafeAnchor/SafeAnchor.d.ts +4 -0
- package/esm/SafeAnchor/SafeAnchor.js +5 -0
- package/esm/Schema/Schema.d.ts +6 -0
- package/esm/Schema/Schema.js +7 -0
- package/esm/SelectPicker/SelectPicker.d.ts +4 -0
- package/esm/SelectPicker/SelectPicker.js +4 -0
- package/esm/Sidebar/Sidebar.d.ts +4 -0
- package/esm/Sidebar/Sidebar.js +4 -0
- package/esm/Sidenav/Sidenav.d.ts +4 -0
- package/esm/Sidenav/Sidenav.js +5 -0
- package/esm/Sidenav/SidenavBody.d.ts +5 -0
- package/esm/Sidenav/SidenavBody.js +5 -0
- package/esm/Sidenav/SidenavHeader.d.ts +5 -0
- package/esm/Sidenav/SidenavHeader.js +5 -0
- package/esm/Slider/Slider.d.ts +5 -0
- package/esm/Slider/Slider.js +6 -0
- package/esm/Stack/Stack.d.ts +6 -0
- package/esm/Stack/Stack.js +6 -0
- package/esm/Stack/StackItem.d.ts +5 -0
- package/esm/Stack/StackItem.js +5 -0
- package/esm/Steps/StepItem.d.ts +5 -0
- package/esm/Steps/StepItem.js +5 -0
- package/esm/Steps/Steps.d.ts +5 -0
- package/esm/Steps/Steps.js +5 -0
- package/esm/Table/Table.d.ts +19 -2
- package/esm/Table/Table.js +23 -4
- package/esm/Tag/Tag.d.ts +6 -0
- package/esm/Tag/Tag.js +14 -2
- package/esm/TagGroup/TagGroup.d.ts +5 -0
- package/esm/TagGroup/TagGroup.js +5 -0
- package/esm/TagInput/index.d.ts +8 -15
- package/esm/TagInput/index.js +7 -1
- package/esm/TagPicker/index.d.ts +13 -10
- package/esm/TagPicker/index.js +12 -4
- package/esm/Timeline/Timeline.d.ts +5 -0
- package/esm/Timeline/Timeline.js +5 -0
- package/esm/Timeline/TimelineItem.d.ts +5 -0
- package/esm/Timeline/TimelineItem.js +5 -0
- package/esm/Toggle/Toggle.d.ts +5 -0
- package/esm/Toggle/Toggle.js +5 -0
- package/esm/Tooltip/Tooltip.d.ts +5 -0
- package/esm/Tooltip/Tooltip.js +5 -0
- package/esm/Tree/Tree.d.ts +5 -0
- package/esm/Tree/Tree.js +5 -0
- package/esm/TreePicker/TreePicker.d.ts +5 -0
- package/esm/TreePicker/TreePicker.js +6 -0
- package/esm/Uploader/UploadFileItem.js +19 -5
- package/esm/Uploader/Uploader.d.ts +5 -0
- package/esm/Uploader/Uploader.js +6 -0
- package/esm/Whisper/Whisper.d.ts +6 -0
- package/esm/Whisper/Whisper.js +6 -0
- package/esm/Windowing/AutoSizer.d.ts +5 -0
- package/esm/Windowing/AutoSizer.js +5 -0
- package/esm/Windowing/List.d.ts +6 -1
- package/esm/Windowing/List.js +5 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -1
- package/esm/locales/ar_EG.d.ts +3 -0
- package/esm/locales/ar_EG.js +5 -2
- package/esm/locales/da_DK.d.ts +3 -0
- package/esm/locales/da_DK.js +5 -2
- package/esm/locales/de_DE.d.ts +3 -0
- package/esm/locales/de_DE.js +5 -2
- package/esm/locales/default.d.ts +3 -0
- package/esm/locales/default.js +5 -2
- package/esm/locales/en_US.d.ts +3 -0
- package/esm/locales/en_US.js +5 -2
- package/esm/locales/es_AR.d.ts +3 -0
- package/esm/locales/es_AR.js +5 -2
- package/esm/locales/es_ES.d.ts +3 -0
- package/esm/locales/es_ES.js +5 -2
- package/esm/locales/fa_IR.d.ts +3 -0
- package/esm/locales/fa_IR.js +5 -2
- package/esm/locales/fi_FI.d.ts +3 -0
- package/esm/locales/fi_FI.js +5 -2
- package/esm/locales/fr_FR.d.ts +3 -0
- package/esm/locales/fr_FR.js +5 -2
- package/esm/locales/hu_HU.d.ts +3 -0
- package/esm/locales/hu_HU.js +5 -2
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/it_IT.d.ts +3 -0
- package/esm/locales/it_IT.js +5 -2
- package/esm/locales/ja_JP.d.ts +3 -0
- package/esm/locales/ja_JP.js +5 -2
- package/esm/locales/kk_KZ.d.ts +3 -0
- package/esm/locales/kk_KZ.js +5 -2
- package/esm/locales/ko_KR.d.ts +3 -0
- package/esm/locales/ko_KR.js +5 -2
- package/esm/locales/ne_NP.d.ts +3 -0
- package/esm/locales/ne_NP.js +5 -2
- package/esm/locales/nl_NL.d.ts +3 -0
- package/esm/locales/nl_NL.js +5 -2
- package/esm/locales/pt_BR.d.ts +3 -0
- package/esm/locales/pt_BR.js +5 -2
- package/esm/locales/ru_RU.d.ts +3 -0
- package/esm/locales/ru_RU.js +6 -3
- package/esm/locales/sv_SE.d.ts +3 -0
- package/esm/locales/sv_SE.js +5 -2
- package/esm/locales/tr_TR.d.ts +3 -0
- package/esm/locales/tr_TR.js +5 -2
- package/esm/locales/zh_CN.d.ts +3 -0
- package/esm/locales/zh_CN.js +5 -2
- package/esm/locales/zh_TW.d.ts +3 -0
- package/esm/locales/zh_TW.js +5 -2
- package/esm/toaster/toaster.d.ts +9 -7
- package/esm/toaster/useToaster.d.ts +19 -1
- package/esm/toaster/useToaster.js +19 -1
- package/esm/useMediaQuery/index.d.ts +2 -0
- package/esm/useMediaQuery/index.js +3 -0
- package/esm/useMediaQuery/useMediaQuery.d.ts +23 -0
- package/esm/useMediaQuery/useMediaQuery.js +113 -0
- package/esm/utils/BrowserDetection.d.ts +1 -0
- package/esm/utils/BrowserDetection.js +3 -0
- package/esm/utils/dateUtils.d.ts +6 -0
- package/esm/utils/dateUtils.js +6 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.js +1 -0
- package/esm/utils/safeSetSelection.d.ts +2 -0
- package/esm/utils/safeSetSelection.js +16 -0
- package/esm/utils/treeUtils.d.ts +2 -2
- package/package.json +1 -1
- package/styles/color-modes/dark.less +3 -1
- package/styles/color-modes/high-contrast.less +3 -1
- package/styles/color-modes/light.less +3 -1
- package/useMediaQuery/package.json +7 -0
|
@@ -5,5 +5,9 @@ export interface PlaceholderGraphProps extends WithAsProps {
|
|
|
5
5
|
/** Placeholder status */
|
|
6
6
|
active?: boolean;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The `Placeholder.Graph` component is used to display the loading state of the block.
|
|
10
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
11
|
+
*/
|
|
8
12
|
declare const PlaceholderGraph: RsRefForwardingComponent<'div', PlaceholderGraphProps>;
|
|
9
13
|
export default PlaceholderGraph;
|
|
@@ -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 `Placeholder.Graph` component is used to display the loading state of the block.
|
|
9
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
10
|
+
*/
|
|
7
11
|
var PlaceholderGraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -7,5 +7,9 @@ export interface PlaceholderGridProps extends WithAsProps {
|
|
|
7
7
|
/** Placeholder status */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The `Placeholder.Grid` component is used to display the loading state of the block.
|
|
12
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
13
|
+
*/
|
|
10
14
|
declare const PlaceholderGrid: RsRefForwardingComponent<'div', PlaceholderGridProps>;
|
|
11
15
|
export default PlaceholderGrid;
|
|
@@ -5,6 +5,10 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useClassNames } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* The `Placeholder.Grid` component is used to display the loading state of the block.
|
|
10
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
11
|
+
*/
|
|
8
12
|
var PlaceholderGrid = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -7,5 +7,9 @@ export interface PlaceholderParagraphProps extends WithAsProps {
|
|
|
7
7
|
/** Placeholder status */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The `Placeholder.Paragraph` component is used to display the loading state of the block.
|
|
12
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
13
|
+
*/
|
|
10
14
|
declare const PlaceholderParagraph: RsRefForwardingComponent<'div', PlaceholderParagraphProps>;
|
|
11
15
|
export default PlaceholderParagraph;
|
|
@@ -4,6 +4,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Placeholder.Paragraph` component is used to display the loading state of the block.
|
|
9
|
+
* @see https://rsuitejs.com/components/placeholder
|
|
10
|
+
*/
|
|
7
11
|
var PlaceholderParagraph = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -6,7 +6,8 @@ export interface PlaintextProps extends WithAsProps {
|
|
|
6
6
|
localeKey?: LocaleKey;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Make the component display in plain text, and display default characters when there is no children.
|
|
10
|
+
* @private
|
|
10
11
|
*/
|
|
11
12
|
declare const Plaintext: React.ForwardRefExoticComponent<PlaintextProps & React.RefAttributes<unknown>>;
|
|
12
13
|
export default Plaintext;
|
|
@@ -4,7 +4,8 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useClassNames, useCustom } from '../utils';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Make the component display in plain text, and display default characters when there is no children.
|
|
8
|
+
* @private
|
|
8
9
|
*/
|
|
9
10
|
var Plaintext = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
11
|
var _useCustom = useCustom('Plaintext'),
|
|
@@ -26,7 +27,9 @@ var Plaintext = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
26
27
|
var classes = merge(className, withClassPrefix({
|
|
27
28
|
empty: !children
|
|
28
29
|
}));
|
|
29
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
30
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
31
|
+
role: "text"
|
|
32
|
+
}, rest, {
|
|
30
33
|
ref: ref,
|
|
31
34
|
className: classes
|
|
32
35
|
}), children ? children : placeholder);
|
package/esm/Popover/Popover.d.ts
CHANGED
|
@@ -10,5 +10,9 @@ export interface PopoverProps extends WithAsProps {
|
|
|
10
10
|
/** Whether show the arrow indicator */
|
|
11
11
|
arrow?: boolean;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The `Popover` component is used to display a popup window for a target component.
|
|
15
|
+
* @see https://rsuitejs.com/components/popover
|
|
16
|
+
*/
|
|
13
17
|
declare const Popover: RsRefForwardingComponent<'div', PopoverProps>;
|
|
14
18
|
export default Popover;
|
package/esm/Popover/Popover.js
CHANGED
|
@@ -6,6 +6,10 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useClassNames } from '../utils';
|
|
9
|
+
/**
|
|
10
|
+
* The `Popover` component is used to display a popup window for a target component.
|
|
11
|
+
* @see https://rsuitejs.com/components/popover
|
|
12
|
+
*/
|
|
9
13
|
var Popover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
14
|
var _props$as = props.as,
|
|
11
15
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -5,5 +5,9 @@ export interface Progress extends RsRefForwardingComponent<'div', ProgressLinePr
|
|
|
5
5
|
Line: typeof ProgressLine;
|
|
6
6
|
Circle: typeof ProgressCircle;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The `Progress` component is used to display the progress of current operation.
|
|
10
|
+
* @see https://rsuitejs.com/components/progress
|
|
11
|
+
*/
|
|
8
12
|
declare const Progress: Progress;
|
|
9
13
|
export default Progress;
|
package/esm/Progress/Progress.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import ProgressCircle from './ProgressCircle';
|
|
3
3
|
import ProgressLine from './ProgressLine';
|
|
4
|
+
/**
|
|
5
|
+
* The `Progress` component is used to display the progress of current operation.
|
|
6
|
+
* @see https://rsuitejs.com/components/progress
|
|
7
|
+
*/
|
|
4
8
|
var Progress = ProgressLine;
|
|
5
9
|
Progress.Line = ProgressLine;
|
|
6
10
|
Progress.Circle = ProgressCircle;
|
|
@@ -21,5 +21,9 @@ export interface ProgressCircleProps extends WithAsProps {
|
|
|
21
21
|
/** Progress status */
|
|
22
22
|
status?: 'success' | 'fail' | 'active';
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The `Progress.Circle` component is used to display the progress of current operation.
|
|
26
|
+
* @see https://rsuitejs.com/components/progress/#circle
|
|
27
|
+
*/
|
|
24
28
|
declare const ProgressCircle: RsRefForwardingComponent<'div', ProgressCircleProps>;
|
|
25
29
|
export default ProgressCircle;
|
|
@@ -4,6 +4,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames, PROGRESS_STATUS_ICON } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Progress.Circle` component is used to display the progress of current operation.
|
|
9
|
+
* @see https://rsuitejs.com/components/progress/#circle
|
|
10
|
+
*/
|
|
7
11
|
var ProgressCircle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _withClassPrefix;
|
|
9
13
|
var _props$as = props.as,
|
|
@@ -17,5 +17,9 @@ export interface ProgressLineProps extends WithAsProps {
|
|
|
17
17
|
/** The progress bar is displayed vertically */
|
|
18
18
|
vertical?: boolean;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The `Progress.Line` component is used to display the progress of current operation.
|
|
22
|
+
* @see https://rsuitejs.com/components/progress/#line
|
|
23
|
+
*/
|
|
20
24
|
declare const ProgressLine: RsRefForwardingComponent<'div', ProgressLineProps>;
|
|
21
25
|
export default ProgressLine;
|
|
@@ -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, PROGRESS_STATUS_ICON } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Progress.Line` component is used to display the progress of current operation.
|
|
9
|
+
* @see https://rsuitejs.com/components/progress/#line
|
|
10
|
+
*/
|
|
7
11
|
var ProgressLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _lineInnerStyle, _percentStyle, _withClassPrefix;
|
|
9
13
|
var _props$as = props.as,
|
package/esm/Radio/Radio.d.ts
CHANGED
|
@@ -29,5 +29,9 @@ export interface RadioProps<T = ValueType> extends WithAsProps, Omit<React.HTMLA
|
|
|
29
29
|
/** Callback function with value changed */
|
|
30
30
|
onChange?: (value: T | undefined, checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The `Radio` component is a simple radio button.
|
|
34
|
+
* @see https://rsuitejs.com/components/radio
|
|
35
|
+
*/
|
|
32
36
|
declare const Radio: React.ForwardRefExoticComponent<RadioProps<ValueType> & React.RefAttributes<unknown>>;
|
|
33
37
|
export default Radio;
|
package/esm/Radio/Radio.js
CHANGED
|
@@ -5,6 +5,10 @@ import React, { useCallback, useContext } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { RadioContext } from '../RadioGroup/RadioGroup';
|
|
7
7
|
import { useClassNames, useControlled, partitionHTMLProps, TypeChecker } from '../utils';
|
|
8
|
+
/**
|
|
9
|
+
* The `Radio` component is a simple radio button.
|
|
10
|
+
* @see https://rsuitejs.com/components/radio
|
|
11
|
+
*/
|
|
8
12
|
var Radio = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _useContext = useContext(RadioContext),
|
|
10
14
|
groupValue = _useContext.value,
|
|
@@ -22,5 +22,9 @@ export interface RadioGroupProps<T = ValueType> extends WithAsProps, FormControl
|
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export declare const RadioContext: React.Context<RadioContextProps>;
|
|
25
|
+
/**
|
|
26
|
+
* The `RadioGroup` component is used to group a collection of `Radio` components.
|
|
27
|
+
* @see https://rsuitejs.com/components/radio/#radio-group
|
|
28
|
+
*/
|
|
25
29
|
declare const RadioGroup: RsRefForwardingComponent<'div', RadioGroupProps>;
|
|
26
30
|
export default RadioGroup;
|
|
@@ -6,6 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useClassNames, useControlled } from '../utils';
|
|
7
7
|
import Plaintext from '../Plaintext';
|
|
8
8
|
export var RadioContext = /*#__PURE__*/React.createContext({});
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The `RadioGroup` component is used to group a collection of `Radio` components.
|
|
12
|
+
* @see https://rsuitejs.com/components/radio/#radio-group
|
|
13
|
+
*/
|
|
9
14
|
var RadioGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
15
|
var _props$as = props.as,
|
|
11
16
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -21,5 +21,10 @@ export interface RadioTileProps<T = ValueType> extends WithAsProps, Omit<React.H
|
|
|
21
21
|
/** Callback function with value changed */
|
|
22
22
|
onChange?: (value?: T, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* A series of selectable tile components that behave like Radio.
|
|
26
|
+
* @version 5.35.0
|
|
27
|
+
* @see https://rsuitejs.com/components/radio-tile/
|
|
28
|
+
*/
|
|
24
29
|
declare const RadioTile: React.ForwardRefExoticComponent<RadioTileProps<ValueType> & React.RefAttributes<unknown>>;
|
|
25
30
|
export default RadioTile;
|
|
@@ -8,6 +8,11 @@ import Stack from '../Stack';
|
|
|
8
8
|
import { RadioTileContext } from '../RadioTileGroup/RadioTileGroup';
|
|
9
9
|
import { useClassNames, useControlled, partitionHTMLProps } from '../utils';
|
|
10
10
|
import useUniqueId from '../utils/useUniqueId';
|
|
11
|
+
/**
|
|
12
|
+
* A series of selectable tile components that behave like Radio.
|
|
13
|
+
* @version 5.35.0
|
|
14
|
+
* @see https://rsuitejs.com/components/radio-tile/
|
|
15
|
+
*/
|
|
11
16
|
var RadioTile = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
17
|
var _useContext = useContext(RadioTileContext),
|
|
13
18
|
groupValue = _useContext.value,
|
|
@@ -19,5 +19,10 @@ export interface RadioTileGroupProps<T = ValueType> extends WithAsProps, FormCon
|
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
}
|
|
21
21
|
export declare const RadioTileContext: React.Context<RadioTileContextProps>;
|
|
22
|
+
/**
|
|
23
|
+
* The `RadioTileGroup` component is used to group a collection of `RadioTile` components.
|
|
24
|
+
* @version 5.35.0
|
|
25
|
+
* @see https://rsuitejs.com/components/radio-tile/
|
|
26
|
+
*/
|
|
22
27
|
declare const RadioTileGroup: RsRefForwardingComponent<'div', RadioTileGroupProps>;
|
|
23
28
|
export default RadioTileGroup;
|
|
@@ -6,6 +6,12 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { useClassNames, useControlled } from '../utils';
|
|
7
7
|
import Stack from '../Stack';
|
|
8
8
|
export var RadioTileContext = /*#__PURE__*/React.createContext({});
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The `RadioTileGroup` component is used to group a collection of `RadioTile` components.
|
|
12
|
+
* @version 5.35.0
|
|
13
|
+
* @see https://rsuitejs.com/components/radio-tile/
|
|
14
|
+
*/
|
|
9
15
|
var RadioTileGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
16
|
var _props$as = props.as,
|
|
11
17
|
Component = _props$as === void 0 ? Stack : _props$as,
|
|
@@ -7,6 +7,10 @@ export declare type RangeSliderProps = SliderProps<Range> & {
|
|
|
7
7
|
*/
|
|
8
8
|
constraint?: (range: Range) => boolean;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* The `RangeSlider` component is used to select a range from a given numerical range.
|
|
12
|
+
* @see https://rsuitejs.com/components/slider/
|
|
13
|
+
*/
|
|
10
14
|
declare const RangeSlider: React.ForwardRefExoticComponent<SliderProps<Range> & {
|
|
11
15
|
/**
|
|
12
16
|
* Add constraint to validate before onChange is dispatched
|
|
@@ -14,6 +14,11 @@ import Graduated from '../Slider/Graduated';
|
|
|
14
14
|
import { precisionMath, checkValue } from '../Slider/utils';
|
|
15
15
|
import { tupleType } from '../utils/propTypeChecker';
|
|
16
16
|
var defaultDefaultValue = [0, 0];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The `RangeSlider` component is used to select a range from a given numerical range.
|
|
20
|
+
* @see https://rsuitejs.com/components/slider/
|
|
21
|
+
*/
|
|
17
22
|
var RangeSlider = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
23
|
var ariaLabel = props['aria-label'],
|
|
19
24
|
ariaLabelledby = props['aria-labelledby'],
|
package/esm/Rate/Rate.d.ts
CHANGED
|
@@ -14,5 +14,9 @@ export interface RateProps<T = number> extends WithAsProps, FormControlBaseProps
|
|
|
14
14
|
renderCharacter?: (value: number, index: number) => React.ReactNode;
|
|
15
15
|
onChangeActive?: (value: T, event: React.SyntheticEvent) => void;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* The `Rate` component is used for rating. It can be used to evaluate the quality of the content.
|
|
19
|
+
* @see https://rsuitejs.com/components/rate/
|
|
20
|
+
*/
|
|
17
21
|
declare const Rate: RsRefForwardingComponent<'ul', RateProps>;
|
|
18
22
|
export default Rate;
|
package/esm/Rate/Rate.js
CHANGED
|
@@ -9,6 +9,10 @@ import { useClassNames, useControlled, shallowEqualArray, SIZE, KEY_VALUES } fro
|
|
|
9
9
|
import { transformValueToCharacterMap, transformCharacterMapToValue } from './utils';
|
|
10
10
|
import Character from './Character';
|
|
11
11
|
import Plaintext from '../Plaintext';
|
|
12
|
+
/**
|
|
13
|
+
* The `Rate` component is used for rating. It can be used to evaluate the quality of the content.
|
|
14
|
+
* @see https://rsuitejs.com/components/rate/
|
|
15
|
+
*/
|
|
12
16
|
var Rate = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
17
|
var _props$as = props.as,
|
|
14
18
|
Component = _props$as === void 0 ? 'ul' : _props$as,
|
package/esm/Ripple/Ripple.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import { WithAsProps } from '../@types/common';
|
|
|
3
3
|
export interface RippleProps extends WithAsProps {
|
|
4
4
|
onMouseDown?: (position: any, event: React.MouseEvent) => void;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The `Ripple` component is used to implement the ripple effect.
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
6
10
|
declare const Ripple: React.ForwardRefExoticComponent<RippleProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
11
|
export default Ripple;
|
package/esm/Ripple/Ripple.js
CHANGED
|
@@ -21,6 +21,11 @@ var getPosition = function getPosition(target, event) {
|
|
|
21
21
|
top: offsetY - radius
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The `Ripple` component is used to implement the ripple effect.
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
24
29
|
var Ripple = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
25
30
|
var _useCustom = useCustom(),
|
|
26
31
|
disableRipple = _useCustom.disableRipple;
|
package/esm/Row/Row.d.ts
CHANGED
|
@@ -2,5 +2,9 @@ import { WithAsProps, RsRefForwardingComponent } from '../@types/common';
|
|
|
2
2
|
export interface RowProps extends WithAsProps {
|
|
3
3
|
gutter?: number;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* The `Row` component is used for layout and grids.
|
|
7
|
+
* @see https://rsuitejs.com/components/grid
|
|
8
|
+
*/
|
|
5
9
|
declare const Row: RsRefForwardingComponent<'div', RowProps>;
|
|
6
10
|
export default Row;
|
package/esm/Row/Row.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 { ReactChildren, useClassNames } from '../utils';
|
|
7
|
+
/**
|
|
8
|
+
* The `Row` component is used for layout and grids.
|
|
9
|
+
* @see https://rsuitejs.com/components/grid
|
|
10
|
+
*/
|
|
7
11
|
var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
12
|
var _props$as = props.as,
|
|
9
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -6,5 +6,9 @@ export interface SafeAnchorProps extends WithAsProps, React.HTMLAttributes<HTMLE
|
|
|
6
6
|
/** A link can show it is currently unable to be interacted with */
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* A SafeAnchor is a wrapper around the `<a>` HTML element.
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
9
13
|
declare const SafeAnchor: RsRefForwardingComponent<'a', SafeAnchorProps>;
|
|
10
14
|
export default SafeAnchor;
|
|
@@ -6,6 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
function isTrivialHref(href) {
|
|
7
7
|
return !href || href.trim() === '#';
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A SafeAnchor is a wrapper around the `<a>` HTML element.
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
9
14
|
var SafeAnchor = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
15
|
var _props$as = props.as,
|
|
11
16
|
Component = _props$as === void 0 ? 'a' : _props$as,
|
package/esm/Schema/Schema.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { SchemaModel, StringType, NumberType, ArrayType, DateType, ObjectType, BooleanType, MixedType } from 'schema-typed';
|
|
2
|
+
/**
|
|
3
|
+
* SchemaTyped is a wrapper of schema-typed library to provide a more friendly API.
|
|
4
|
+
* It is used to validate the data of the model.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/rsuite/schema-typed#schema-typed
|
|
7
|
+
*/
|
|
2
8
|
declare const SchemaTyped: {
|
|
3
9
|
Model: typeof SchemaModel;
|
|
4
10
|
Types: {
|
package/esm/Schema/Schema.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { SchemaModel, StringType, NumberType, ArrayType, DateType, ObjectType, BooleanType, MixedType } from 'schema-typed';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* SchemaTyped is a wrapper of schema-typed library to provide a more friendly API.
|
|
6
|
+
* It is used to validate the data of the model.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/rsuite/schema-typed#schema-typed
|
|
9
|
+
*/
|
|
3
10
|
var SchemaTyped = {
|
|
4
11
|
Model: SchemaModel,
|
|
5
12
|
Types: {
|
|
@@ -54,5 +54,9 @@ export interface SelectPickerComponent {
|
|
|
54
54
|
displayName?: string;
|
|
55
55
|
propTypes?: React.WeakValidationMap<SelectPickerProps<any>>;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* The `SelectPicker` component is used to select an item from a list of data.
|
|
59
|
+
* @see https://rsuitejs.com/components/select-picker/
|
|
60
|
+
*/
|
|
57
61
|
declare const SelectPicker: SelectPickerComponent;
|
|
58
62
|
export default SelectPicker;
|
|
@@ -14,6 +14,10 @@ import { createChainedFunction, useCustom, useClassNames, useControlled, mergeRe
|
|
|
14
14
|
import { getDataGroupBy } from '../utils/getDataGroupBy';
|
|
15
15
|
import { DropdownMenu, DropdownMenuItem, PickerToggle, PickerToggleTrigger, PickerOverlay, SearchBar, useFocusItemValue, usePickerClassName, useSearch, usePublicMethods, useToggleKeyDownEvent, pickTriggerPropKeys, omitTriggerPropKeys, listPickerPropTypes } from '../Picker';
|
|
16
16
|
var emptyArray = [];
|
|
17
|
+
/**
|
|
18
|
+
* The `SelectPicker` component is used to select an item from a list of data.
|
|
19
|
+
* @see https://rsuitejs.com/components/select-picker/
|
|
20
|
+
*/
|
|
17
21
|
var SelectPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
22
|
var _props$as = props.as,
|
|
19
23
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/esm/Sidebar/Sidebar.d.ts
CHANGED
|
@@ -5,5 +5,9 @@ export interface SidebarProps extends WithAsProps {
|
|
|
5
5
|
/** Sidebar can be collapsed */
|
|
6
6
|
collapsible?: boolean;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The `Sidebar` component for use with the `Container` component.
|
|
10
|
+
* @see https://rsuitejs.com/components/container/
|
|
11
|
+
*/
|
|
8
12
|
declare const Sidebar: RsRefForwardingComponent<'aside', SidebarProps>;
|
|
9
13
|
export default Sidebar;
|
package/esm/Sidebar/Sidebar.js
CHANGED
|
@@ -5,6 +5,10 @@ import React, { useContext, useEffect } from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames } from '../utils';
|
|
7
7
|
import { ContainerContext } from '../Container/Container';
|
|
8
|
+
/**
|
|
9
|
+
* The `Sidebar` component for use with the `Container` component.
|
|
10
|
+
* @see https://rsuitejs.com/components/container/
|
|
11
|
+
*/
|
|
8
12
|
var Sidebar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var _props$as = props.as,
|
|
10
14
|
Component = _props$as === void 0 ? 'aside' : _props$as,
|
package/esm/Sidenav/Sidenav.d.ts
CHANGED
|
@@ -45,5 +45,9 @@ export interface SidenavComponent extends RsRefForwardingComponent<'div', Sidena
|
|
|
45
45
|
Body: typeof SidenavBody;
|
|
46
46
|
Toggle: typeof SidenavToggle;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* The `Sidenav` component is an encapsulation of the page sidebar `Nav`.
|
|
50
|
+
* @see https://rsuitejs.com/components/sidenav/
|
|
51
|
+
*/
|
|
48
52
|
declare const Sidenav: SidenavComponent;
|
|
49
53
|
export default Sidenav;
|
package/esm/Sidenav/Sidenav.js
CHANGED
|
@@ -13,6 +13,11 @@ import { useClassNames, useControlled, mergeRefs } from '../utils';
|
|
|
13
13
|
import deprecatePropType from '../utils/deprecatePropType';
|
|
14
14
|
export var SidenavContext = /*#__PURE__*/React.createContext(null);
|
|
15
15
|
var emptyArray = [];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The `Sidenav` component is an encapsulation of the page sidebar `Nav`.
|
|
19
|
+
* @see https://rsuitejs.com/components/sidenav/
|
|
20
|
+
*/
|
|
16
21
|
var Sidenav = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17
22
|
var _props$as = props.as,
|
|
18
23
|
Component = _props$as === void 0 ? 'nav' : _props$as,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type SidenavBodyProps = ComponentProps;
|
|
3
|
+
/**
|
|
4
|
+
* The `Sidenav.Body` component for use with the `Sidenav` component.
|
|
5
|
+
*
|
|
6
|
+
* @see https://rsuitejs.com/components/sidenav
|
|
7
|
+
*/
|
|
3
8
|
declare const SidenavBody: import("../@types/common").RsRefForwardingComponent<"div", ComponentProps>;
|
|
4
9
|
export default SidenavBody;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import createComponent from '../utils/createComponent';
|
|
3
|
+
/**
|
|
4
|
+
* The `Sidenav.Body` component for use with the `Sidenav` component.
|
|
5
|
+
*
|
|
6
|
+
* @see https://rsuitejs.com/components/sidenav
|
|
7
|
+
*/
|
|
3
8
|
var SidenavBody = createComponent({
|
|
4
9
|
name: 'SidenavBody'
|
|
5
10
|
});
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from '../utils/createComponent';
|
|
2
2
|
export declare type SidenavHeaderProps = ComponentProps;
|
|
3
|
+
/**
|
|
4
|
+
* The `Sidenav.Header` component for use with the `Sidenav` component.
|
|
5
|
+
*
|
|
6
|
+
* @see https://rsuitejs.com/components/sidenav
|
|
7
|
+
*/
|
|
3
8
|
declare const SidenavHeader: import("../@types/common").RsRefForwardingComponent<"div", ComponentProps>;
|
|
4
9
|
export default SidenavHeader;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import createComponent from '../utils/createComponent';
|
|
3
|
+
/**
|
|
4
|
+
* The `Sidenav.Header` component for use with the `Sidenav` component.
|
|
5
|
+
*
|
|
6
|
+
* @see https://rsuitejs.com/components/sidenav
|
|
7
|
+
*/
|
|
3
8
|
var SidenavHeader = createComponent({
|
|
4
9
|
name: 'SidenavHeader'
|
|
5
10
|
});
|
package/esm/Slider/Slider.d.ts
CHANGED
|
@@ -76,5 +76,10 @@ export declare const sliderPropTypes: {
|
|
|
76
76
|
renderTooltip: PropTypes.Requireable<(...args: any[]) => any>;
|
|
77
77
|
getAriaValueText: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* A Slider is an interface for users to adjust a value in a specific range.
|
|
81
|
+
*
|
|
82
|
+
* @see https://rsuitejs.com/components/slider
|
|
83
|
+
*/
|
|
79
84
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps<number> & React.RefAttributes<unknown>>;
|
|
80
85
|
export default Slider;
|
package/esm/Slider/Slider.js
CHANGED
|
@@ -37,6 +37,12 @@ export var sliderPropTypes = {
|
|
|
37
37
|
renderTooltip: PropTypes.func,
|
|
38
38
|
getAriaValueText: PropTypes.func
|
|
39
39
|
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A Slider is an interface for users to adjust a value in a specific range.
|
|
43
|
+
*
|
|
44
|
+
* @see https://rsuitejs.com/components/slider
|
|
45
|
+
*/
|
|
40
46
|
var Slider = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
41
47
|
var ariaLabel = props['aria-label'],
|
|
42
48
|
ariaLabelledby = props['aria-labelledby'],
|
package/esm/Stack/Stack.d.ts
CHANGED
|
@@ -30,5 +30,11 @@ export interface StackProps extends WithAsProps {
|
|
|
30
30
|
export interface StackComponent extends RsRefForwardingComponent<'div', StackProps> {
|
|
31
31
|
Item: typeof StackItem;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The `Stack` component is a quick layout component through Flexbox,
|
|
35
|
+
* supporting vertical and horizontal stacking, custom spacing and line wrapping.
|
|
36
|
+
*
|
|
37
|
+
* @see https://rsuitejs.com/components/stack
|
|
38
|
+
*/
|
|
33
39
|
declare const Stack: StackComponent;
|
|
34
40
|
export default Stack;
|
package/esm/Stack/Stack.js
CHANGED
|
@@ -5,6 +5,12 @@ import React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useClassNames, useCustom, isSupportFlexGap } from '../utils';
|
|
7
7
|
import StackItem from './StackItem';
|
|
8
|
+
/**
|
|
9
|
+
* The `Stack` component is a quick layout component through Flexbox,
|
|
10
|
+
* supporting vertical and horizontal stacking, custom spacing and line wrapping.
|
|
11
|
+
*
|
|
12
|
+
* @see https://rsuitejs.com/components/stack
|
|
13
|
+
*/
|
|
8
14
|
var Stack = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
15
|
var _itemStyles;
|
|
10
16
|
var _props$as = props.as,
|
package/esm/Stack/StackItem.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ export interface StackItemProps extends WithAsProps {
|
|
|
9
9
|
basis?: React.CSSProperties['flexBasis'];
|
|
10
10
|
order?: React.CSSProperties['order'];
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The `Stack.Item` component is used to set the layout of the child element in the `Stack` component.
|
|
14
|
+
*
|
|
15
|
+
* @see https://rsuitejs.com/components/stack
|
|
16
|
+
*/
|
|
12
17
|
declare function StackItem(props: StackItemProps): JSX.Element;
|
|
13
18
|
declare namespace StackItem {
|
|
14
19
|
var displayName: string;
|
package/esm/Stack/StackItem.js
CHANGED
|
@@ -3,6 +3,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
/**
|
|
7
|
+
* The `Stack.Item` component is used to set the layout of the child element in the `Stack` component.
|
|
8
|
+
*
|
|
9
|
+
* @see https://rsuitejs.com/components/stack
|
|
10
|
+
*/
|
|
6
11
|
export default function StackItem(props) {
|
|
7
12
|
var _props$as = props.as,
|
|
8
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|