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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.getPatternGroups = getPatternGroups;
|
|
7
|
+
exports.getInputSelectedState = getInputSelectedState;
|
|
8
|
+
exports.validateDateTime = validateDateTime;
|
|
9
|
+
exports.modifyDate = modifyDate;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _dateUtils = require("../utils/dateUtils");
|
|
12
|
+
function getPatternGroups(format, pattern) {
|
|
13
|
+
var _format$match;
|
|
14
|
+
return ((_format$match = format.match(new RegExp("(" + pattern + ")+"))) === null || _format$match === void 0 ? void 0 : _format$match[0]) || '';
|
|
15
|
+
}
|
|
16
|
+
function getInputSelectedState(options) {
|
|
17
|
+
var input = options.input,
|
|
18
|
+
direction = options.direction,
|
|
19
|
+
formatStr = options.formatStr,
|
|
20
|
+
localize = options.localize,
|
|
21
|
+
selectedMonth = options.selectedMonth,
|
|
22
|
+
dateString = options.dateString,
|
|
23
|
+
_options$valueOffset = options.valueOffset,
|
|
24
|
+
valueOffset = _options$valueOffset === void 0 ? 0 : _options$valueOffset;
|
|
25
|
+
var getSelectIndexGap = function getSelectIndexGap(pattern) {
|
|
26
|
+
var gap = 0;
|
|
27
|
+
var monthIsAbbreviated = formatStr.includes('MMM');
|
|
28
|
+
var monthIsFull = formatStr.includes('MMMM');
|
|
29
|
+
|
|
30
|
+
// If the month is abbreviated or full, the gap needs to be adjusted.
|
|
31
|
+
if (monthIsAbbreviated || monthIsFull) {
|
|
32
|
+
var isSelected = pattern === 'M';
|
|
33
|
+
if (selectedMonth === null && valueOffset === 0) {
|
|
34
|
+
return gap;
|
|
35
|
+
}
|
|
36
|
+
var month = selectedMonth ? selectedMonth + (isSelected ? valueOffset : 0) : 1;
|
|
37
|
+
if (month > 12) {
|
|
38
|
+
month = 1;
|
|
39
|
+
} else if (month === 0) {
|
|
40
|
+
month = 12;
|
|
41
|
+
}
|
|
42
|
+
var monthStr = localize === null || localize === void 0 ? void 0 : localize.month(month - 1, {
|
|
43
|
+
width: monthIsFull ? 'wide' : 'abbreviated'
|
|
44
|
+
});
|
|
45
|
+
gap = monthStr.length - (monthIsFull ? 4 : 3);
|
|
46
|
+
}
|
|
47
|
+
return gap;
|
|
48
|
+
};
|
|
49
|
+
var getDatePattern = function getDatePattern(selectionIndex, positionOffset) {
|
|
50
|
+
if (positionOffset === void 0) {
|
|
51
|
+
positionOffset = -1;
|
|
52
|
+
}
|
|
53
|
+
var pattern = formatStr.charAt((input === null || input === void 0 ? void 0 : input.selectionStart) || 0);
|
|
54
|
+
if (selectionIndex < 0 || selectionIndex > dateString.length - 1) {
|
|
55
|
+
pattern = formatStr.trim().charAt(0);
|
|
56
|
+
return pattern;
|
|
57
|
+
}
|
|
58
|
+
var gap = getSelectIndexGap(pattern);
|
|
59
|
+
pattern = formatStr.charAt(selectionIndex - gap);
|
|
60
|
+
|
|
61
|
+
// If the pattern is not a letter, then get the pattern from the previous or next letter.
|
|
62
|
+
if (!pattern.match(/[y|d|M|H|h|m|s|a]/)) {
|
|
63
|
+
var nextIndex = selectionIndex + positionOffset;
|
|
64
|
+
pattern = getDatePattern(nextIndex, positionOffset);
|
|
65
|
+
}
|
|
66
|
+
return pattern;
|
|
67
|
+
};
|
|
68
|
+
var getPatternSelectedIndexes = function getPatternSelectedIndexes(pattern) {
|
|
69
|
+
var selectionStart = formatStr.indexOf(pattern);
|
|
70
|
+
var selectionEnd = formatStr.lastIndexOf(pattern) + 1;
|
|
71
|
+
var gap = getSelectIndexGap(pattern);
|
|
72
|
+
if (pattern === 'M') {
|
|
73
|
+
return {
|
|
74
|
+
selectionStart: selectionStart,
|
|
75
|
+
selectionEnd: selectionEnd + gap
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
selectionStart: selectionStart + gap,
|
|
80
|
+
selectionEnd: selectionEnd + gap
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
if (typeof input.selectionEnd === 'number' && typeof input.selectionStart === 'number') {
|
|
84
|
+
var index = input.selectionStart;
|
|
85
|
+
var positionOffset = -1;
|
|
86
|
+
if (direction === 'left') {
|
|
87
|
+
index = input.selectionStart - 1;
|
|
88
|
+
} else if (direction === 'right') {
|
|
89
|
+
index = input.selectionEnd + 1;
|
|
90
|
+
positionOffset = 1;
|
|
91
|
+
}
|
|
92
|
+
var datePattern = getDatePattern(index, positionOffset);
|
|
93
|
+
var indexes = getPatternSelectedIndexes(datePattern);
|
|
94
|
+
return (0, _extends2.default)({
|
|
95
|
+
selectedPattern: datePattern
|
|
96
|
+
}, indexes);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
selectedPattern: 'y',
|
|
100
|
+
selectionStart: 0,
|
|
101
|
+
selectionEnd: 0
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function validateDateTime(type, value) {
|
|
105
|
+
switch (type) {
|
|
106
|
+
case 'year':
|
|
107
|
+
if (value < 1 || value > 9999) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case 'month':
|
|
112
|
+
if (value < 1 || value > 12) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
case 'day':
|
|
117
|
+
if (value < 1 || value > 31) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
case 'hour':
|
|
122
|
+
if (value < 0 || value > 23) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case 'minute':
|
|
127
|
+
if (value < 0 || value > 59) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case 'second':
|
|
132
|
+
if (value < 0 || value > 59) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
return false;
|
|
138
|
+
// Invalid type
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
function modifyDate(date, type, value) {
|
|
144
|
+
switch (type) {
|
|
145
|
+
case 'year':
|
|
146
|
+
return (0, _dateUtils.setYear)(date, value);
|
|
147
|
+
case 'month':
|
|
148
|
+
return (0, _dateUtils.setMonth)(date, value - 1);
|
|
149
|
+
case 'day':
|
|
150
|
+
return (0, _dateUtils.setDate)(date, value);
|
|
151
|
+
case 'hour':
|
|
152
|
+
return (0, _dateUtils.setHours)(date, value);
|
|
153
|
+
case 'minute':
|
|
154
|
+
return (0, _dateUtils.setMinutes)(date, value);
|
|
155
|
+
case 'second':
|
|
156
|
+
return (0, _dateUtils.setSeconds)(date, value);
|
|
157
|
+
}
|
|
158
|
+
return date;
|
|
159
|
+
}
|
|
@@ -101,5 +101,10 @@ export interface DatePickerProps extends PickerBaseProps<DatePickerLocale>, Form
|
|
|
101
101
|
/** Custom render value */
|
|
102
102
|
renderValue?: (value: Date, format: string) => string;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* A date picker allows users to select a date from a calendar.
|
|
106
|
+
*
|
|
107
|
+
* @see https://rsuitejs.com/components/date-picker
|
|
108
|
+
*/
|
|
104
109
|
declare const DatePicker: RsRefForwardingComponent<'div', DatePickerProps>;
|
|
105
110
|
export default DatePicker;
|
|
@@ -28,6 +28,11 @@ var _Picker = require("../Picker");
|
|
|
28
28
|
var _OverlayTrigger = require("../Overlay/OverlayTrigger");
|
|
29
29
|
var _deprecatePropType = require("../utils/deprecatePropType");
|
|
30
30
|
var _utils2 = require("../Calendar/utils");
|
|
31
|
+
/**
|
|
32
|
+
* A date picker allows users to select a date from a calendar.
|
|
33
|
+
*
|
|
34
|
+
* @see https://rsuitejs.com/components/date-picker
|
|
35
|
+
*/
|
|
31
36
|
var DatePicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
32
37
|
var _props$as = props.as,
|
|
33
38
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -70,5 +70,10 @@ export interface DateRangePicker extends PickerComponent<DateRangePickerProps> {
|
|
|
70
70
|
/** Used to combine multiple conditions */
|
|
71
71
|
combine?: (...args: any) => DisabledDateFunction;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* A date range picker allows you to select a date range from a calendar.
|
|
75
|
+
*
|
|
76
|
+
* @see https://rsuitejs.com/components/date-range-picker
|
|
77
|
+
*/
|
|
73
78
|
declare const DateRangePicker: DateRangePicker;
|
|
74
79
|
export default DateRangePicker;
|
|
@@ -27,6 +27,11 @@ var disabledDateUtils = _interopRequireWildcard(require("./disabledDateUtils"));
|
|
|
27
27
|
var _utils2 = require("./utils");
|
|
28
28
|
var _deprecatePropType = require("../utils/deprecatePropType");
|
|
29
29
|
var _DateRangePickerContext = _interopRequireDefault(require("./DateRangePickerContext"));
|
|
30
|
+
/**
|
|
31
|
+
* A date range picker allows you to select a date range from a calendar.
|
|
32
|
+
*
|
|
33
|
+
* @see https://rsuitejs.com/components/date-range-picker
|
|
34
|
+
*/
|
|
30
35
|
var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
31
36
|
var _ref, _ref2, _merge;
|
|
32
37
|
var _props$as = props.as,
|
package/cjs/Divider/Divider.d.ts
CHANGED
|
@@ -5,5 +5,9 @@ export interface DividerProps extends WithAsProps {
|
|
|
5
5
|
*/
|
|
6
6
|
vertical?: boolean;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Divider component is used to separate content.
|
|
10
|
+
* @see https://rsuitejs.com/components/divider
|
|
11
|
+
*/
|
|
8
12
|
declare const Divider: RsRefForwardingComponent<'div', DividerProps>;
|
|
9
13
|
export default Divider;
|
package/cjs/Divider/Divider.js
CHANGED
|
@@ -9,6 +9,10 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
|
+
/**
|
|
13
|
+
* The Divider component is used to separate content.
|
|
14
|
+
* @see https://rsuitejs.com/components/divider
|
|
15
|
+
*/
|
|
12
16
|
var Divider = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
13
17
|
var _props$as = props.as,
|
|
14
18
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/cjs/Drawer/Drawer.d.ts
CHANGED
|
@@ -22,5 +22,9 @@ interface DrawerComponent extends React.FC<DrawerProps> {
|
|
|
22
22
|
*/
|
|
23
23
|
Footer: typeof DrawerFooter;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* The Drawer component is used to display extra content from a main content.
|
|
27
|
+
* @see https://rsuitejs.com/components/drawer
|
|
28
|
+
*/
|
|
25
29
|
declare const Drawer: DrawerComponent;
|
|
26
30
|
export default Drawer;
|
package/cjs/Drawer/Drawer.js
CHANGED
|
@@ -49,6 +49,10 @@ var DrawerTitle = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
49
49
|
ref: ref
|
|
50
50
|
}));
|
|
51
51
|
});
|
|
52
|
+
/**
|
|
53
|
+
* The Drawer component is used to display extra content from a main content.
|
|
54
|
+
* @see https://rsuitejs.com/components/drawer
|
|
55
|
+
*/
|
|
52
56
|
var Drawer = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
53
57
|
var className = props.className,
|
|
54
58
|
_props$placement = props.placement,
|
|
@@ -62,9 +62,12 @@ export interface DropdownComponent extends RsRefForwardingComponent<'div', Dropd
|
|
|
62
62
|
Separator: typeof DropdownSeparator;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* The
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* The `Dropdown` component is used to select an option from a set of options.
|
|
66
|
+
* @see https://rsuitejs.com/components/dropdown
|
|
67
|
+
*
|
|
68
|
+
* The `<Dropdown>` API
|
|
69
|
+
* - When used inside `<Sidenav>`, renders a `<TreeviewRootItem>`;
|
|
70
|
+
* - Otherwise renders a `<MenuRoot>`
|
|
68
71
|
*/
|
|
69
72
|
declare const Dropdown: DropdownComponent;
|
|
70
73
|
export default Dropdown;
|
package/cjs/Dropdown/Dropdown.js
CHANGED
|
@@ -25,9 +25,12 @@ var _warnOnce = _interopRequireDefault(require("../utils/warnOnce"));
|
|
|
25
25
|
var _Nav = _interopRequireDefault(require("../Nav"));
|
|
26
26
|
var _DropdownSeparator = _interopRequireDefault(require("./DropdownSeparator"));
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* The `Dropdown` component is used to select an option from a set of options.
|
|
29
|
+
* @see https://rsuitejs.com/components/dropdown
|
|
30
|
+
*
|
|
31
|
+
* The `<Dropdown>` API
|
|
32
|
+
* - When used inside `<Sidenav>`, renders a `<TreeviewRootItem>`;
|
|
33
|
+
* - Otherwise renders a `<MenuRoot>`
|
|
31
34
|
*/
|
|
32
35
|
var Dropdown = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
33
36
|
var activeKey = props.activeKey,
|
|
@@ -39,9 +39,9 @@ export interface DropdownMenuItemProps<T = any> extends WithAsProps, Omit<React.
|
|
|
39
39
|
onSelect?: (eventKey: T, event: React.SyntheticEvent) => void;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* The
|
|
43
|
-
* When used inside
|
|
44
|
-
* Otherwise renders a
|
|
42
|
+
* The `<Dropdown.Item>` API
|
|
43
|
+
* - When used inside `<Sidenav>`, renders a `<TreeviewItem>`
|
|
44
|
+
* - Otherwise renders a `<MenuItem>`
|
|
45
45
|
*/
|
|
46
46
|
declare const DropdownItem: RsRefForwardingComponent<'li', DropdownMenuItemProps>;
|
|
47
47
|
export default DropdownItem;
|
|
@@ -23,9 +23,9 @@ var _warnOnce = _interopRequireDefault(require("../utils/warnOnce"));
|
|
|
23
23
|
var _Nav = _interopRequireDefault(require("../Nav"));
|
|
24
24
|
var _DropdownSeparator = _interopRequireDefault(require("./DropdownSeparator"));
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
27
|
-
* When used inside
|
|
28
|
-
* Otherwise renders a
|
|
26
|
+
* The `<Dropdown.Item>` API
|
|
27
|
+
* - When used inside `<Sidenav>`, renders a `<TreeviewItem>`
|
|
28
|
+
* - Otherwise renders a `<MenuItem>`
|
|
29
29
|
*/
|
|
30
30
|
var DropdownItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
31
31
|
var _props$classPrefix = props.classPrefix,
|
|
@@ -23,11 +23,11 @@ export interface DropdownMenuProps<T = string> extends StandardProps {
|
|
|
23
23
|
onToggle?: (eventKey: T | undefined, event: React.SyntheticEvent) => void;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The `<Dropdown.Menu>` API
|
|
27
27
|
*
|
|
28
28
|
* @description
|
|
29
|
-
* Note the difference between this component and
|
|
30
|
-
*
|
|
29
|
+
* Note the difference between this component and `<Menu>` component:
|
|
30
|
+
* `<Menu>` is used for ARIA menu control logic and is used internally only.
|
|
31
31
|
* This component is only used for supporting submenu syntax and is
|
|
32
32
|
* assigned to Dropdown.Menu
|
|
33
33
|
*
|
|
@@ -24,11 +24,11 @@ var _NavContext = _interopRequireDefault(require("../Nav/NavContext"));
|
|
|
24
24
|
var _warnOnce = _interopRequireDefault(require("../utils/warnOnce"));
|
|
25
25
|
var _templateObject, _templateObject2;
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
27
|
+
* The `<Dropdown.Menu>` API
|
|
28
28
|
*
|
|
29
29
|
* @description
|
|
30
|
-
* Note the difference between this component and
|
|
31
|
-
*
|
|
30
|
+
* Note the difference between this component and `<Menu>` component:
|
|
31
|
+
* `<Menu>` is used for ARIA menu control logic and is used internally only.
|
|
32
32
|
* This component is only used for supporting submenu syntax and is
|
|
33
33
|
* assigned to Dropdown.Menu
|
|
34
34
|
*
|
|
@@ -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/
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
13
|
+
* The `<Dropdown.Separator>` API
|
|
14
14
|
*
|
|
15
15
|
* Renders a non-focusable and non-interactive `separator`
|
|
16
16
|
* 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;
|
|
@@ -10,6 +10,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
12
|
var _FlexboxGridItem = _interopRequireDefault(require("./FlexboxGridItem"));
|
|
13
|
+
/**
|
|
14
|
+
* The FlexboxGrid component is a box that can be used to layout other components.
|
|
15
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
16
|
+
*/
|
|
13
17
|
var FlexboxGrid = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
14
18
|
var _props$as = props.as,
|
|
15
19
|
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;
|
|
@@ -9,6 +9,10 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
|
+
/**
|
|
13
|
+
* The `FlexboxGrid.Item` component is used to specify the layout of the child element in the `FlexboxGrid` component.
|
|
14
|
+
* @see https://rsuitejs.com/components/flexbox-grid
|
|
15
|
+
*/
|
|
12
16
|
var FlexboxGridItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
13
17
|
var _withClassPrefix;
|
|
14
18
|
var _props$as = props.as,
|
package/cjs/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/cjs/Footer/Footer.js
CHANGED
|
@@ -5,6 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _createComponent = _interopRequireDefault(require("../utils/createComponent"));
|
|
8
|
+
/**
|
|
9
|
+
* The `<Footer>` component is used to specify the footer of the page.
|
|
10
|
+
* @see https://rsuitejs.com/components/container/
|
|
11
|
+
*/
|
|
8
12
|
var Footer = (0, _createComponent.default)({
|
|
9
13
|
name: 'Footer',
|
|
10
14
|
componentAs: 'footer'
|
package/cjs/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/cjs/Form/Form.js
CHANGED
|
@@ -20,6 +20,10 @@ var _FormHelpText = _interopRequireDefault(require("../FormHelpText"));
|
|
|
20
20
|
var _useFormClassNames = require("./useFormClassNames");
|
|
21
21
|
var _useSchemaModel2 = _interopRequireDefault(require("./useSchemaModel"));
|
|
22
22
|
var _utils = require("../utils");
|
|
23
|
+
/**
|
|
24
|
+
* The `Form` component is a form interface for collecting and validating user input.
|
|
25
|
+
* @see https://rsuitejs.com/components/form
|
|
26
|
+
*/
|
|
23
27
|
var Form = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
24
28
|
var _props$checkTrigger = props.checkTrigger,
|
|
25
29
|
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;
|
|
@@ -23,6 +23,10 @@ var _templateObject;
|
|
|
23
23
|
* Props that FormControl passes to its accepter
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* The `<Form.Control>` component is used to wrap the components that need to be validated.
|
|
28
|
+
* @see https://rsuitejs.com/components/form/
|
|
29
|
+
*/
|
|
26
30
|
var FormControl = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
27
31
|
var _accepterProps;
|
|
28
32
|
var _useContext = (0, _react.useContext)(_FormContext.default),
|
|
@@ -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;
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _utils = require("../utils");
|
|
13
13
|
var _FormGroup = require("../FormGroup/FormGroup");
|
|
14
|
+
/**
|
|
15
|
+
* The `<Form.ControlLabel>` component renders a label with required indicator, for form controls.
|
|
16
|
+
* @see https://rsuitejs.com/components/form/
|
|
17
|
+
*/
|
|
14
18
|
var FormControlLabel = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
15
19
|
var _props$as = props.as,
|
|
16
20
|
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;
|
|
@@ -12,6 +12,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _kebabCase = _interopRequireDefault(require("lodash/kebabCase"));
|
|
13
13
|
var _utils = require("../utils");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
|
+
/**
|
|
16
|
+
* The `<Form.ErrorMessage>` component is used to display error messages in the form.
|
|
17
|
+
* @see https://rsuitejs.com/components/form/
|
|
18
|
+
*/
|
|
15
19
|
var FormErrorMessage = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
16
20
|
var _prefix;
|
|
17
21
|
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;
|
|
@@ -11,6 +11,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _utils = require("../utils");
|
|
13
13
|
var FormGroupContext = /*#__PURE__*/_react.default.createContext({});
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The `<Form.Group>` component is the easiest way to add some structure to forms.
|
|
17
|
+
* @see https://rsuitejs.com/components/form/
|
|
18
|
+
*/
|
|
14
19
|
exports.FormGroupContext = FormGroupContext;
|
|
15
20
|
var FormGroup = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
16
21
|
var _props$as = 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;
|
|
@@ -14,6 +14,10 @@ var _Whisper = _interopRequireDefault(require("../Whisper"));
|
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
var _FormGroup = require("../FormGroup/FormGroup");
|
|
16
16
|
var _HelpO = _interopRequireDefault(require("@rsuite/icons/legacy/HelpO"));
|
|
17
|
+
/**
|
|
18
|
+
* The `<Form.HelpText>` component is used to display help information in the form.
|
|
19
|
+
* @see https://rsuitejs.com/components/form/
|
|
20
|
+
*/
|
|
17
21
|
var FormHelpText = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
18
22
|
var _props$as = props.as,
|
|
19
23
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
package/cjs/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/cjs/Grid/Grid.js
CHANGED
|
@@ -9,6 +9,10 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("../utils");
|
|
12
|
+
/**
|
|
13
|
+
* The Grid component is used to specify the layout of child elements in rows and columns.
|
|
14
|
+
* @see https://rsuitejs.com/components/grid
|
|
15
|
+
*/
|
|
12
16
|
var Grid = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
13
17
|
var _props$as = props.as,
|
|
14
18
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
package/cjs/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/cjs/Header/Header.js
CHANGED
|
@@ -5,6 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _createComponent = _interopRequireDefault(require("../utils/createComponent"));
|
|
8
|
+
/**
|
|
9
|
+
* The `<Header>` component is used to specify the header of the page.
|
|
10
|
+
* @see https://rsuitejs.com/components/container/
|
|
11
|
+
*/
|
|
8
12
|
var Header = (0, _createComponent.default)({
|
|
9
13
|
name: 'Header',
|
|
10
14
|
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
|
}>;
|