rsuite 5.61.0 → 5.62.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/Accordion/styles/index.css +64 -1
- package/CHANGELOG.md +16 -0
- package/DateRangePicker/styles/index.css +4 -4
- package/DateRangePicker/styles/index.less +4 -4
- package/Panel/styles/index.css +64 -1
- package/Panel/styles/index.less +2 -1
- package/cjs/Accordion/Accordion.d.ts +1 -1
- package/cjs/Affix/Affix.d.ts +1 -1
- package/cjs/Affix/Affix.js +8 -7
- package/cjs/Animation/Bounce.js +2 -2
- package/cjs/Animation/Collapse.js +3 -2
- package/cjs/Animation/Fade.js +2 -2
- package/cjs/Animation/Slide.js +2 -2
- package/cjs/Animation/Transition.d.ts +1 -1
- package/cjs/Animation/Transition.js +1 -1
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -2
- package/cjs/AutoComplete/AutoComplete.js +14 -12
- package/cjs/Avatar/Avatar.d.ts +1 -1
- package/cjs/Avatar/Avatar.js +4 -3
- package/cjs/Avatar/useImage.js +2 -2
- package/cjs/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/cjs/AvatarGroup/AvatarGroup.js +3 -2
- package/cjs/Badge/Badge.d.ts +1 -1
- package/cjs/Badge/Badge.js +2 -2
- package/cjs/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/cjs/Breadcrumb/Breadcrumb.js +3 -3
- package/cjs/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/cjs/Breadcrumb/BreadcrumbItem.js +2 -2
- package/cjs/Button/Button.d.ts +1 -1
- package/cjs/Button/Button.js +5 -4
- package/cjs/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/ButtonGroup/ButtonGroup.js +3 -3
- package/cjs/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/cjs/ButtonToolbar/ButtonToolbar.d.ts +1 -1
- package/cjs/ButtonToolbar/ButtonToolbar.js +2 -2
- package/cjs/Calendar/Calendar.d.ts +37 -10
- package/cjs/Calendar/Calendar.js +8 -4
- package/cjs/Calendar/CalendarBody.d.ts +1 -1
- package/cjs/Calendar/CalendarBody.js +12 -12
- package/cjs/Calendar/CalendarContainer.d.ts +94 -27
- package/cjs/Calendar/CalendarContainer.js +24 -21
- package/cjs/Calendar/CalendarHeader.d.ts +1 -1
- package/cjs/Calendar/CalendarHeader.js +2 -2
- package/cjs/Calendar/MonthDropdown.d.ts +1 -1
- package/cjs/Calendar/MonthDropdown.js +8 -15
- package/cjs/Calendar/MonthDropdownItem.d.ts +1 -1
- package/cjs/Calendar/MonthDropdownItem.js +7 -15
- package/cjs/Calendar/Table.d.ts +1 -1
- package/cjs/Calendar/Table.js +2 -2
- package/cjs/Calendar/TableCell.d.ts +1 -1
- package/cjs/Calendar/TableCell.js +8 -8
- package/cjs/Calendar/TableHeaderRow.d.ts +1 -1
- package/cjs/Calendar/TableHeaderRow.js +7 -18
- package/cjs/Calendar/TableRow.d.ts +1 -1
- package/cjs/Calendar/TableRow.js +24 -25
- package/cjs/Calendar/TimeDropdown.d.ts +1 -1
- package/cjs/Calendar/TimeDropdown.js +11 -9
- package/cjs/Calendar/types.d.ts +6 -5
- package/cjs/Calendar/useCalendarDate.js +2 -2
- package/cjs/Calendar/utils.js +2 -2
- package/cjs/Carousel/Carousel.d.ts +1 -1
- package/cjs/Carousel/Carousel.js +7 -6
- package/cjs/CascadeTree/CascadeTree.js +9 -10
- package/cjs/CascadeTree/SearchView.d.ts +1 -1
- package/cjs/CascadeTree/SearchView.js +6 -6
- package/cjs/CascadeTree/TreeView.d.ts +1 -1
- package/cjs/CascadeTree/TreeView.js +5 -4
- package/cjs/CascadeTree/hooks/useSearch.d.ts +1 -1
- package/cjs/CascadeTree/hooks/useSearch.js +4 -4
- package/cjs/CascadeTree/hooks/useSelect.d.ts +1 -1
- package/cjs/CascadeTree/hooks/useSelect.js +4 -3
- package/cjs/CascadeTree/index.d.ts +1 -1
- package/cjs/CascadeTree/types.d.ts +1 -1
- package/cjs/Cascader/Cascader.d.ts +2 -2
- package/cjs/Cascader/Cascader.js +10 -10
- package/cjs/Cascader/useActive.js +3 -4
- package/cjs/CheckPicker/CheckPicker.d.ts +2 -2
- package/cjs/CheckPicker/CheckPicker.js +13 -13
- package/cjs/CheckTree/CheckTree.d.ts +5 -1
- package/cjs/CheckTree/CheckTree.js +7 -6
- package/cjs/CheckTree/CheckTreeNode.d.ts +3 -3
- package/cjs/CheckTree/CheckTreeNode.js +14 -14
- package/cjs/CheckTree/CheckTreeView.d.ts +3 -6
- package/cjs/CheckTree/CheckTreeView.js +28 -29
- package/cjs/CheckTree/hooks/useTreeCheckState.d.ts +1 -1
- package/cjs/CheckTree/hooks/useTreeCheckState.js +7 -7
- package/cjs/CheckTree/hooks/useTreeNodeProps.d.ts +2 -2
- package/cjs/CheckTree/hooks/useTreeNodeProps.js +1 -1
- package/cjs/CheckTree/hooks/useTreeValue.js +5 -5
- package/cjs/CheckTree/utils.d.ts +2 -2
- package/cjs/CheckTree/utils.js +9 -9
- package/cjs/CheckTreePicker/CheckTreePicker.d.ts +3 -3
- package/cjs/CheckTreePicker/CheckTreePicker.js +8 -8
- package/cjs/CheckTreePicker/hooks/useFocusState.js +4 -4
- package/cjs/Checkbox/Checkbox.d.ts +1 -1
- package/cjs/Checkbox/Checkbox.js +7 -6
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/cjs/CheckboxGroup/CheckboxGroup.js +4 -3
- package/cjs/Col/Col.d.ts +1 -1
- package/cjs/Col/Col.js +4 -3
- package/cjs/Container/Container.d.ts +1 -1
- package/cjs/Container/Container.js +2 -2
- package/cjs/Content/Content.d.ts +2 -2
- package/cjs/Content/Content.js +2 -3
- package/cjs/CustomProvider/CustomProvider.d.ts +2 -3
- package/cjs/CustomProvider/CustomProvider.js +4 -4
- package/cjs/CustomProvider/FormattedDate.js +2 -2
- package/cjs/DateInput/DateInput.d.ts +1 -1
- package/cjs/DateInput/DateInput.js +10 -9
- package/cjs/DateInput/hooks/useDateInputState.d.ts +1 -1
- package/cjs/DateInput/hooks/useDateInputState.js +12 -12
- package/cjs/DateInput/hooks/useFieldCursor.js +2 -3
- package/cjs/DateInput/utils.js +8 -8
- package/cjs/DatePicker/DatePicker.d.ts +89 -30
- package/cjs/DatePicker/DatePicker.js +59 -54
- package/cjs/DatePicker/PredefinedRanges.js +6 -6
- package/cjs/DatePicker/Toolbar.js +2 -2
- package/cjs/DatePicker/hooks/useCustomizedInput.d.ts +20 -0
- package/cjs/DatePicker/hooks/useCustomizedInput.js +60 -0
- package/cjs/DatePicker/hooks/useFocus.js +6 -7
- package/cjs/DatePicker/hooks/useMonthView.js +2 -3
- package/cjs/DatePicker/utils.js +6 -6
- package/cjs/DateRangeInput/DateRangeInput.d.ts +1 -1
- package/cjs/DateRangeInput/DateRangeInput.js +11 -10
- package/cjs/DateRangePicker/Calendar.d.ts +3 -2
- package/cjs/DateRangePicker/Calendar.js +15 -30
- package/cjs/DateRangePicker/DateRangePicker.d.ts +9 -2
- package/cjs/DateRangePicker/DateRangePicker.js +114 -92
- package/cjs/DateRangePicker/Header.js +4 -4
- package/cjs/DateRangePicker/disabledDateUtils.js +11 -9
- package/cjs/DateRangePicker/hooks/useDateDisabled.d.ts +1 -1
- package/cjs/DateRangePicker/types.d.ts +1 -1
- package/cjs/DateRangePicker/utils.d.ts +6 -1
- package/cjs/DateRangePicker/utils.js +24 -15
- package/cjs/Divider/Divider.d.ts +1 -1
- package/cjs/Divider/Divider.js +2 -2
- package/cjs/Drawer/Drawer.d.ts +1 -1
- package/cjs/Drawer/Drawer.js +4 -4
- package/cjs/Dropdown/Dropdown.d.ts +1 -1
- package/cjs/Dropdown/Dropdown.js +7 -6
- package/cjs/Dropdown/DropdownItem.d.ts +1 -1
- package/cjs/Dropdown/DropdownItem.js +5 -6
- package/cjs/Dropdown/DropdownMenu.d.ts +1 -1
- package/cjs/Dropdown/DropdownMenu.js +7 -8
- package/cjs/Dropdown/DropdownSeparator.d.ts +1 -1
- package/cjs/Dropdown/DropdownSeparator.js +2 -2
- package/cjs/Dropdown/DropdownToggle.d.ts +1 -1
- package/cjs/Dropdown/DropdownToggle.js +3 -4
- package/cjs/FlexboxGrid/FlexboxGrid.d.ts +1 -1
- package/cjs/FlexboxGrid/FlexboxGrid.js +2 -2
- package/cjs/FlexboxGrid/FlexboxGridItem.d.ts +1 -1
- package/cjs/FlexboxGrid/FlexboxGridItem.js +2 -2
- package/cjs/Footer/Footer.d.ts +2 -2
- package/cjs/Footer/Footer.js +2 -3
- package/cjs/Form/Form.d.ts +1 -1
- package/cjs/Form/Form.js +10 -10
- package/cjs/Form/FormContext.d.ts +1 -1
- package/cjs/Form/hooks/useFormClassNames.js +2 -2
- package/cjs/Form/hooks/useFormValidate.js +13 -14
- package/cjs/Form/hooks/useFormValue.js +2 -2
- package/cjs/FormControl/FormControl.d.ts +1 -1
- package/cjs/FormControl/FormControl.js +6 -6
- package/cjs/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/cjs/FormControlLabel/FormControlLabel.js +2 -2
- package/cjs/FormErrorMessage/FormErrorMessage.d.ts +1 -1
- package/cjs/FormErrorMessage/FormErrorMessage.js +3 -2
- package/cjs/FormGroup/FormGroup.d.ts +1 -1
- package/cjs/FormGroup/FormGroup.js +4 -4
- package/cjs/FormHelpText/FormHelpText.d.ts +1 -1
- package/cjs/FormHelpText/FormHelpText.js +2 -2
- package/cjs/Grid/Grid.d.ts +1 -1
- package/cjs/Grid/Grid.js +2 -2
- package/cjs/Header/Header.d.ts +2 -2
- package/cjs/Header/Header.js +2 -3
- package/cjs/Heading/Heading.d.ts +1 -1
- package/cjs/Heading/Heading.js +2 -2
- package/cjs/HeadingGroup/HeadingGroup.d.ts +2 -2
- package/cjs/HeadingGroup/HeadingGroup.js +2 -3
- package/cjs/Highlight/Highlight.d.ts +1 -1
- package/cjs/Highlight/Highlight.js +4 -4
- package/cjs/IconButton/IconButton.d.ts +1 -1
- package/cjs/IconButton/IconButton.js +2 -2
- package/cjs/InlineEdit/InlineEdit.d.ts +1 -1
- package/cjs/InlineEdit/InlineEdit.js +3 -2
- package/cjs/InlineEdit/useEditState.js +7 -7
- package/cjs/InlineEdit/useFocusEvent.d.ts +1 -1
- package/cjs/InlineEdit/useFocusEvent.js +4 -4
- package/cjs/Input/Input.d.ts +2 -2
- package/cjs/Input/Input.js +5 -3
- package/cjs/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/InputGroup/InputGroup.js +2 -2
- package/cjs/InputGroup/InputGroupAddon.d.ts +1 -1
- package/cjs/InputGroup/InputGroupAddon.js +2 -2
- package/cjs/InputGroup/InputGroupButton.js +3 -3
- package/cjs/InputNumber/InputNumber.d.ts +1 -1
- package/cjs/InputNumber/InputNumber.js +16 -14
- package/cjs/InputPicker/InputAutosize.js +1 -1
- package/cjs/InputPicker/InputPicker.d.ts +2 -2
- package/cjs/InputPicker/InputPicker.js +43 -43
- package/cjs/InputPicker/InputSearch.d.ts +1 -1
- package/cjs/InputPicker/InputSearch.js +3 -3
- package/cjs/InputPicker/TagList.js +2 -2
- package/cjs/InputPicker/TextBox.js +2 -2
- package/cjs/InputPicker/hooks/useData.d.ts +1 -1
- package/cjs/InputPicker/hooks/useData.js +2 -3
- package/cjs/InputPicker/hooks/useInput.d.ts +1 -1
- package/cjs/InputPicker/hooks/useMaxWidth.d.ts +1 -1
- package/cjs/List/List.d.ts +1 -1
- package/cjs/List/List.js +3 -2
- package/cjs/List/ListItem.d.ts +1 -1
- package/cjs/List/ListItem.js +3 -2
- package/cjs/List/helper/useSortHelper.js +2 -2
- package/cjs/List/helper/utils.d.ts +1 -1
- package/cjs/Loader/Loader.d.ts +1 -1
- package/cjs/Loader/Loader.js +3 -3
- package/cjs/MaskedInput/MaskedInput.d.ts +1 -1
- package/cjs/MaskedInput/TextMask.js +1 -1
- package/cjs/MaskedInput/createTextMaskInputElement.js +2 -2
- package/cjs/Message/Message.d.ts +1 -1
- package/cjs/Message/Message.js +9 -7
- package/cjs/Modal/Modal.d.ts +2 -2
- package/cjs/Modal/Modal.js +5 -5
- package/cjs/Modal/ModalBody.d.ts +1 -1
- package/cjs/Modal/ModalBody.js +2 -2
- package/cjs/Modal/ModalDialog.d.ts +1 -1
- package/cjs/Modal/ModalDialog.js +4 -3
- package/cjs/Modal/ModalFooter.d.ts +2 -2
- package/cjs/Modal/ModalFooter.js +2 -3
- package/cjs/Modal/ModalHeader.d.ts +1 -1
- package/cjs/Modal/ModalHeader.js +3 -2
- package/cjs/Modal/ModalTitle.d.ts +2 -2
- package/cjs/Modal/ModalTitle.js +2 -2
- package/cjs/Modal/utils.d.ts +1 -1
- package/cjs/MultiCascadeTree/MultiCascadeTree.d.ts +1 -1
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +3 -3
- package/cjs/MultiCascadeTree/SearchView.d.ts +1 -1
- package/cjs/MultiCascadeTree/SearchView.js +6 -6
- package/cjs/MultiCascadeTree/TreeView.d.ts +1 -1
- package/cjs/MultiCascadeTree/TreeView.js +5 -4
- package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +6 -6
- package/cjs/MultiCascadeTree/hooks/useFlattenData.js +2 -2
- package/cjs/MultiCascadeTree/hooks/useSearch.d.ts +1 -1
- package/cjs/MultiCascadeTree/hooks/useSearch.js +4 -4
- package/cjs/MultiCascadeTree/hooks/useSelect.d.ts +1 -1
- package/cjs/MultiCascadeTree/hooks/useSelect.js +4 -4
- package/cjs/MultiCascadeTree/index.d.ts +1 -1
- package/cjs/MultiCascadeTree/types.d.ts +1 -1
- package/cjs/MultiCascadeTree/utils.d.ts +1 -1
- package/cjs/MultiCascader/MultiCascader.d.ts +2 -2
- package/cjs/MultiCascader/MultiCascader.js +11 -10
- package/cjs/Nav/Nav.d.ts +1 -1
- package/cjs/Nav/Nav.js +9 -9
- package/cjs/Nav/NavDropdown.d.ts +1 -1
- package/cjs/Nav/NavDropdown.js +6 -4
- package/cjs/Nav/NavDropdownItem.d.ts +1 -1
- package/cjs/Nav/NavDropdownItem.js +3 -2
- package/cjs/Nav/NavDropdownMenu.d.ts +1 -1
- package/cjs/Nav/NavDropdownMenu.js +6 -6
- package/cjs/Nav/NavDropdownToggle.d.ts +1 -1
- package/cjs/Nav/NavDropdownToggle.js +3 -3
- package/cjs/Nav/NavItem.d.ts +1 -1
- package/cjs/Nav/NavItem.js +3 -2
- package/cjs/Navbar/Navbar.d.ts +1 -1
- package/cjs/Navbar/Navbar.js +2 -2
- package/cjs/Navbar/NavbarBody.d.ts +2 -2
- package/cjs/Navbar/NavbarBody.js +3 -5
- package/cjs/Navbar/NavbarBrand.d.ts +2 -2
- package/cjs/Navbar/NavbarBrand.js +2 -3
- package/cjs/Navbar/NavbarDropdown.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdown.js +6 -4
- package/cjs/Navbar/NavbarDropdownItem.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownItem.js +3 -2
- package/cjs/Navbar/NavbarDropdownMenu.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownMenu.js +6 -5
- package/cjs/Navbar/NavbarDropdownToggle.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownToggle.js +2 -2
- package/cjs/Navbar/NavbarHeader.d.ts +2 -2
- package/cjs/Navbar/NavbarHeader.js +3 -5
- package/cjs/Navbar/NavbarItem.d.ts +1 -1
- package/cjs/Navbar/NavbarItem.js +3 -2
- package/cjs/Notification/Notification.d.ts +1 -1
- package/cjs/Notification/Notification.js +7 -6
- package/cjs/Pagination/LimitPicker.d.ts +1 -1
- package/cjs/Pagination/LimitPicker.js +1 -1
- package/cjs/Pagination/Pagination.d.ts +1 -1
- package/cjs/Pagination/Pagination.js +3 -3
- package/cjs/Pagination/PaginationButton.d.ts +1 -1
- package/cjs/Pagination/PaginationButton.js +4 -3
- package/cjs/Pagination/PaginationGroup.d.ts +1 -1
- package/cjs/Pagination/PaginationGroup.js +9 -8
- package/cjs/Panel/AccordionButton.js +2 -2
- package/cjs/Panel/Panel.d.ts +47 -15
- package/cjs/Panel/Panel.js +45 -91
- package/cjs/Panel/PanelBody.d.ts +13 -0
- package/cjs/Panel/PanelBody.js +69 -0
- package/cjs/Panel/PanelHeader.d.ts +14 -0
- package/cjs/Panel/PanelHeader.js +59 -0
- package/cjs/Panel/hooks/useExpanded.d.ts +8 -0
- package/cjs/Panel/hooks/useExpanded.js +38 -0
- package/cjs/PanelGroup/PanelGroup.d.ts +1 -1
- package/cjs/PanelGroup/PanelGroup.js +4 -4
- package/cjs/Placeholder/Placeholder.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGraph.js +2 -2
- package/cjs/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGrid.js +2 -2
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderParagraph.js +2 -2
- package/cjs/Popover/Popover.d.ts +1 -1
- package/cjs/Popover/Popover.js +2 -2
- package/cjs/Progress/Progress.d.ts +1 -1
- package/cjs/Progress/ProgressCircle.d.ts +1 -1
- package/cjs/Progress/ProgressCircle.js +4 -3
- package/cjs/Progress/ProgressLine.d.ts +1 -1
- package/cjs/Progress/ProgressLine.js +4 -3
- package/cjs/Radio/Radio.d.ts +1 -1
- package/cjs/Radio/Radio.js +6 -5
- package/cjs/RadioGroup/RadioGroup.d.ts +1 -1
- package/cjs/RadioGroup/RadioGroup.js +4 -4
- package/cjs/RadioTile/RadioTile.d.ts +1 -1
- package/cjs/RadioTile/RadioTile.js +5 -5
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +1 -1
- package/cjs/RadioTileGroup/RadioTileGroup.js +3 -3
- package/cjs/RangeSlider/RangeSlider.js +14 -14
- package/cjs/Rate/Character.d.ts +1 -1
- package/cjs/Rate/Character.js +2 -2
- package/cjs/Rate/Rate.d.ts +1 -1
- package/cjs/Rate/Rate.js +9 -7
- package/cjs/Row/Row.d.ts +1 -1
- package/cjs/Row/Row.js +3 -2
- package/cjs/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/cjs/SelectPicker/SelectPicker.d.ts +3 -3
- package/cjs/SelectPicker/SelectPicker.js +14 -14
- package/cjs/Sidebar/Sidebar.d.ts +1 -1
- package/cjs/Sidebar/Sidebar.js +2 -2
- package/cjs/Sidenav/ExpandedSidenavDropdown.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +6 -5
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +3 -2
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +4 -4
- package/cjs/Sidenav/Sidenav.d.ts +1 -1
- package/cjs/Sidenav/Sidenav.js +5 -5
- package/cjs/Sidenav/SidenavBody.d.ts +2 -2
- package/cjs/Sidenav/SidenavBody.js +2 -3
- package/cjs/Sidenav/SidenavDropdown.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdown.js +7 -5
- package/cjs/Sidenav/SidenavDropdownCollapse.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownCollapse.js +3 -2
- package/cjs/Sidenav/SidenavDropdownItem.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownItem.js +3 -2
- package/cjs/Sidenav/SidenavDropdownMenu.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownMenu.js +6 -6
- package/cjs/Sidenav/SidenavDropdownToggle.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownToggle.js +2 -2
- package/cjs/Sidenav/SidenavHeader.d.ts +2 -2
- package/cjs/Sidenav/SidenavHeader.js +2 -3
- package/cjs/Sidenav/SidenavItem.d.ts +1 -1
- package/cjs/Sidenav/SidenavItem.js +3 -2
- package/cjs/Sidenav/SidenavToggle.d.ts +1 -1
- package/cjs/Sidenav/SidenavToggle.js +2 -2
- package/cjs/Slider/Graduated.d.ts +1 -1
- package/cjs/Slider/Graduated.js +10 -10
- package/cjs/Slider/Handle.d.ts +1 -1
- package/cjs/Slider/Handle.js +3 -2
- package/cjs/Slider/Mark.d.ts +1 -1
- package/cjs/Slider/Mark.js +2 -2
- package/cjs/Slider/ProgressBar.d.ts +1 -1
- package/cjs/Slider/ProgressBar.js +2 -2
- package/cjs/Slider/Slider.d.ts +1 -1
- package/cjs/Slider/Slider.js +14 -14
- package/cjs/Slider/useDrag.js +5 -5
- package/cjs/Stack/Stack.d.ts +1 -1
- package/cjs/Stack/Stack.js +4 -3
- package/cjs/Stack/StackItem.d.ts +1 -1
- package/cjs/Steps/StepItem.d.ts +1 -1
- package/cjs/Steps/StepItem.js +2 -2
- package/cjs/Steps/Steps.d.ts +1 -1
- package/cjs/Steps/Steps.js +3 -2
- package/cjs/Table/Table.js +2 -2
- package/cjs/Tabs/TabPanel.d.ts +1 -1
- package/cjs/Tabs/TabPanel.js +2 -2
- package/cjs/Tabs/Tabs.d.ts +1 -1
- package/cjs/Tabs/Tabs.js +8 -7
- package/cjs/Tag/Tag.d.ts +1 -1
- package/cjs/Tag/Tag.js +3 -3
- package/cjs/TagGroup/TagGroup.d.ts +2 -2
- package/cjs/TagGroup/TagGroup.js +2 -3
- package/cjs/TagInput/index.d.ts +1 -1
- package/cjs/TagPicker/index.d.ts +1 -1
- package/cjs/Text/Text.d.ts +1 -1
- package/cjs/Text/Text.js +2 -2
- package/cjs/Timeline/Timeline.d.ts +1 -1
- package/cjs/Timeline/Timeline.js +3 -2
- package/cjs/Timeline/TimelineItem.d.ts +1 -1
- package/cjs/Timeline/TimelineItem.js +2 -2
- package/cjs/Toggle/Toggle.d.ts +1 -1
- package/cjs/Toggle/Toggle.js +5 -4
- package/cjs/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/Tooltip/Tooltip.js +2 -2
- package/cjs/Tree/IndentLine.js +2 -2
- package/cjs/Tree/Tree.d.ts +8 -2
- package/cjs/Tree/Tree.js +8 -7
- package/cjs/Tree/TreeNode.d.ts +2 -2
- package/cjs/Tree/TreeNode.js +16 -17
- package/cjs/Tree/TreeNodeToggle.js +4 -4
- package/cjs/Tree/TreeView.d.ts +4 -7
- package/cjs/Tree/TreeView.js +22 -23
- package/cjs/Tree/hooks/useExpandTree.d.ts +1 -1
- package/cjs/Tree/hooks/useExpandTree.js +6 -6
- package/cjs/Tree/hooks/useFlattenTree.d.ts +1 -1
- package/cjs/Tree/hooks/useFlattenTree.js +6 -6
- package/cjs/Tree/hooks/useFocusTree.d.ts +1 -1
- package/cjs/Tree/hooks/useFocusTree.js +19 -19
- package/cjs/Tree/hooks/useTreeDrag.d.ts +1 -1
- package/cjs/Tree/hooks/useTreeDrag.js +17 -16
- package/cjs/Tree/hooks/useTreeNodeProps.d.ts +1 -1
- package/cjs/Tree/hooks/useTreeNodeProps.js +6 -5
- package/cjs/Tree/hooks/useTreeSearch.js +1 -1
- package/cjs/Tree/hooks/useTreeWithChildren.d.ts +1 -1
- package/cjs/Tree/hooks/useTreeWithChildren.js +5 -6
- package/cjs/Tree/hooks/useVirtualizedTreeData.d.ts +1 -1
- package/cjs/Tree/hooks/useVirtualizedTreeData.js +1 -1
- package/cjs/Tree/types.d.ts +3 -70
- package/cjs/Tree/types.js +0 -6
- package/cjs/Tree/utils/flattenTree.js +2 -2
- package/cjs/Tree/utils/focusableTree.d.ts +2 -2
- package/cjs/Tree/utils/focusableTree.js +1 -1
- package/cjs/Tree/utils/getNodeParentKeys.d.ts +1 -1
- package/cjs/Tree/utils/getTreeActiveNode.d.ts +2 -2
- package/cjs/Tree/utils/getTreeActiveNode.js +2 -3
- package/cjs/Tree/utils/hasVisibleChildren.d.ts +1 -1
- package/cjs/Tree/utils/treeKeyboardInteractions.d.ts +1 -1
- package/cjs/TreePicker/TreePicker.d.ts +3 -3
- package/cjs/TreePicker/TreePicker.js +11 -11
- package/cjs/TreePicker/hooks/useFocusState.js +5 -5
- package/cjs/Uploader/UploadFileItem.d.ts +1 -1
- package/cjs/Uploader/UploadFileItem.js +4 -3
- package/cjs/Uploader/UploadTrigger.js +3 -2
- package/cjs/Uploader/Uploader.d.ts +2 -2
- package/cjs/Uploader/Uploader.js +7 -5
- package/cjs/Uploader/utils/previewFile.d.ts +3 -0
- package/cjs/{utils → Uploader/utils}/previewFile.js +4 -2
- package/cjs/VisuallyHidden/VisuallyHidden.d.ts +2 -2
- package/cjs/VisuallyHidden/VisuallyHidden.js +2 -3
- package/cjs/Whisper/Whisper.d.ts +1 -2
- package/cjs/Whisper/Whisper.js +3 -2
- package/cjs/internals/CloseButton/CloseButton.d.ts +1 -1
- package/cjs/internals/CloseButton/CloseButton.js +3 -3
- package/cjs/internals/Disclosure/Disclosure.js +1 -1
- package/cjs/internals/Disclosure/DisclosureButton.js +3 -3
- package/cjs/internals/Menu/Menu.js +22 -25
- package/cjs/internals/Menu/MenuItem.js +2 -2
- package/cjs/internals/Menu/Menubar.js +20 -20
- package/cjs/internals/Overlay/Modal.d.ts +1 -1
- package/cjs/internals/Overlay/Modal.js +16 -14
- package/cjs/internals/Overlay/Overlay.d.ts +1 -1
- package/cjs/internals/Overlay/Overlay.js +3 -2
- package/cjs/internals/Overlay/OverlayTrigger.d.ts +1 -1
- package/cjs/internals/Overlay/OverlayTrigger.js +10 -10
- package/cjs/internals/Overlay/Position.d.ts +1 -1
- package/cjs/internals/Overlay/Position.js +3 -2
- package/cjs/internals/Overlay/positionUtils.d.ts +1 -1
- package/cjs/internals/Picker/ListCheckItem.d.ts +1 -1
- package/cjs/internals/Picker/ListCheckItem.js +5 -5
- package/cjs/internals/Picker/ListItem.d.ts +1 -1
- package/cjs/internals/Picker/ListItem.js +3 -3
- package/cjs/internals/Picker/ListItemGroup.d.ts +1 -1
- package/cjs/internals/Picker/ListItemGroup.js +2 -2
- package/cjs/internals/Picker/Listbox.d.ts +3 -3
- package/cjs/internals/Picker/Listbox.js +12 -12
- package/cjs/internals/Picker/PickerIndicator.js +3 -3
- package/cjs/internals/Picker/PickerPopup.d.ts +1 -1
- package/cjs/internals/Picker/PickerPopup.js +5 -4
- package/cjs/internals/Picker/PickerToggle.d.ts +1 -1
- package/cjs/internals/Picker/PickerToggle.js +5 -5
- package/cjs/internals/Picker/PickerToggleTrigger.d.ts +3 -3
- package/cjs/internals/Picker/PickerToggleTrigger.js +5 -4
- package/cjs/internals/Picker/SelectedElement.js +2 -2
- package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/cjs/internals/Picker/hooks/useFocusItemValue.js +11 -10
- package/cjs/internals/Picker/hooks/usePickerClassName.d.ts +1 -1
- package/cjs/internals/Picker/hooks/usePickerClassName.js +3 -2
- package/cjs/internals/Picker/hooks/usePickerRef.d.ts +1 -1
- package/cjs/internals/Picker/hooks/usePickerRef.js +5 -6
- package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +11 -10
- package/cjs/internals/Picker/propTypes.d.ts +2 -2
- package/cjs/internals/Picker/propTypes.js +4 -4
- package/cjs/internals/Picker/types.d.ts +3 -3
- package/cjs/internals/Picker/utils.js +10 -9
- package/cjs/internals/Plaintext/Plaintext.d.ts +1 -1
- package/cjs/internals/Plaintext/Plaintext.js +3 -3
- package/cjs/internals/Ripple/Ripple.d.ts +1 -1
- package/cjs/internals/Ripple/Ripple.js +4 -3
- package/cjs/internals/ScrollView/ScrollView.d.ts +27 -0
- package/cjs/internals/ScrollView/ScrollView.js +56 -0
- package/cjs/internals/ScrollView/hooks/useScrollState.d.ts +6 -0
- package/cjs/internals/ScrollView/hooks/useScrollState.js +62 -0
- package/cjs/internals/ScrollView/index.d.ts +3 -0
- package/cjs/internals/ScrollView/index.js +9 -0
- package/cjs/internals/SearchBox/SearchBox.d.ts +1 -1
- package/cjs/internals/SearchBox/SearchBox.js +3 -3
- package/cjs/{Tree → internals/Tree}/TreeProvider.d.ts +2 -0
- package/cjs/internals/Tree/TreeView.d.ts +3 -1
- package/cjs/internals/Tree/TreeView.js +27 -5
- package/cjs/internals/Tree/types.d.ts +69 -0
- package/cjs/internals/Windowing/AutoSizer.js +4 -3
- package/cjs/internals/Windowing/List.d.ts +5 -1
- package/cjs/internals/Windowing/List.js +16 -5
- package/cjs/internals/hooks/index.d.ts +23 -1
- package/cjs/internals/hooks/index.js +47 -4
- package/cjs/{utils → internals/hooks}/useClassNames.d.ts +1 -1
- package/cjs/{utils → internals/hooks}/useClassNames.js +5 -2
- package/{esm/utils → cjs/internals/hooks}/useClickOutside.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useClickOutside.js +5 -2
- package/cjs/{utils → internals/hooks}/useControlled.d.ts +1 -6
- package/cjs/{utils → internals/hooks}/useControlled.js +1 -0
- package/cjs/internals/hooks/useCustom.d.ts +7 -0
- package/cjs/{utils → internals/hooks}/useCustom.js +6 -5
- package/cjs/{utils → internals/hooks}/useElementResize.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useElementResize.js +5 -2
- package/{esm/utils → cjs/internals/hooks}/useEnsuredRef.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useEnsuredRef.js +5 -2
- package/{esm/utils → cjs/internals/hooks}/useEventCallback.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useEventCallback.js +5 -2
- package/cjs/{utils → internals/hooks}/useEventListener.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useEventListener.js +5 -2
- package/cjs/{utils → internals/hooks}/useFocus.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useFocus.js +5 -2
- package/cjs/internals/hooks/{useFoucsVirtualListItem.d.ts → useFocusVirtualListItem.d.ts} +2 -2
- package/cjs/internals/hooks/{useFoucsVirtualListItem.js → useFocusVirtualListItem.js} +3 -2
- package/cjs/internals/hooks/useInternalId.d.ts +5 -0
- package/cjs/{utils → internals/hooks}/useInternalId.js +5 -2
- package/cjs/internals/hooks/useIsMounted.d.ts +2 -0
- package/cjs/{utils → internals/hooks}/useIsMounted.js +1 -0
- package/cjs/internals/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/cjs/{utils → internals/hooks}/useIsomorphicLayoutEffect.js +2 -1
- package/cjs/{utils → internals/hooks}/useMap.d.ts +1 -0
- package/cjs/{utils → internals/hooks}/useMap.js +4 -1
- package/cjs/internals/hooks/useMount.d.ts +2 -0
- package/cjs/{utils → internals/hooks}/useMount.js +2 -1
- package/cjs/{utils → internals/hooks}/usePortal.d.ts +1 -1
- package/cjs/{utils → internals/hooks}/usePortal.js +1 -0
- package/cjs/{utils → internals/hooks}/useRootClose.d.ts +1 -1
- package/cjs/{utils → internals/hooks}/useRootClose.js +7 -5
- package/cjs/{utils → internals/hooks}/useTimeout.d.ts +1 -1
- package/cjs/{utils → internals/hooks}/useTimeout.js +1 -0
- package/cjs/internals/hooks/useToggleCaret.d.ts +4 -0
- package/cjs/{utils → internals/hooks}/useToggleCaret.js +1 -0
- package/{esm/utils → cjs/internals/hooks}/useUniqueId.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useUniqueId.js +5 -2
- package/cjs/{utils → internals/hooks}/useUpdateEffect.d.ts +1 -1
- package/cjs/{utils → internals/hooks}/useUpdateEffect.js +2 -1
- package/{esm/utils → cjs/internals/hooks}/useUpdatedRef.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useUpdatedRef.js +5 -2
- package/{esm/utils → cjs/internals/hooks}/useWillUnmount.d.ts +2 -1
- package/cjs/{utils → internals/hooks}/useWillUnmount.js +5 -2
- package/cjs/internals/propTypes/deprecatePropType.js +3 -4
- package/cjs/internals/types/index.js +2 -0
- package/{esm/@types → cjs/internals/types}/utils.d.ts +0 -1
- package/cjs/internals/types/utils.js +2 -0
- package/cjs/internals/utils/ReactChildren.d.ts +65 -0
- package/cjs/{utils → internals/utils}/ReactChildren.js +78 -2
- package/cjs/internals/utils/attachParent.d.ts +5 -0
- package/cjs/{utils → internals/utils}/attachParent.js +7 -1
- package/cjs/internals/utils/composeFunctions.d.ts +16 -0
- package/cjs/internals/utils/composeFunctions.js +32 -0
- package/{esm → cjs/internals}/utils/createChainedFunction.d.ts +1 -1
- package/cjs/{utils → internals/utils}/createChainedFunction.js +1 -0
- package/{esm → cjs/internals}/utils/createComponent.d.ts +2 -2
- package/cjs/{utils → internals/utils}/createComponent.js +3 -2
- package/cjs/internals/utils/date/copyTime.d.ts +12 -0
- package/cjs/internals/utils/date/copyTime.js +33 -0
- package/cjs/internals/utils/date/disableTime.d.ts +18 -0
- package/cjs/internals/utils/date/disableTime.js +48 -0
- package/cjs/internals/utils/date/formatCheck.d.ts +28 -0
- package/cjs/internals/utils/date/formatCheck.js +48 -0
- package/cjs/internals/utils/date/getReversedTimeMeridian.d.ts +8 -0
- package/cjs/internals/utils/date/getReversedTimeMeridian.js +23 -0
- package/cjs/internals/utils/date/getWeekKeys.d.ts +5 -0
- package/cjs/internals/utils/date/getWeekKeys.js +18 -0
- package/cjs/internals/utils/date/getWeekStartDates.d.ts +14 -0
- package/cjs/internals/utils/date/getWeekStartDates.js +34 -0
- package/cjs/internals/utils/date/index.d.ts +55 -0
- package/cjs/internals/utils/date/index.js +117 -0
- package/cjs/internals/utils/date/omitHideDisabledProps.d.ts +10 -0
- package/cjs/internals/utils/date/omitHideDisabledProps.js +21 -0
- package/cjs/internals/utils/date/reverseDateRangeOmitTime.d.ts +8 -0
- package/cjs/internals/utils/date/reverseDateRangeOmitTime.js +29 -0
- package/cjs/internals/utils/date/types.d.ts +13 -0
- package/cjs/internals/utils/date/types.js +20 -0
- package/cjs/{utils → internals/utils}/deprecateComponent.d.ts +2 -1
- package/cjs/{utils → internals/utils}/deprecateComponent.js +5 -2
- package/cjs/internals/utils/getDOMNode.d.ts +2 -0
- package/cjs/{utils → internals/utils}/getDOMNode.js +5 -2
- package/cjs/{utils → internals/utils}/getDataGroupBy.d.ts +1 -0
- package/cjs/{utils → internals/utils}/getDataGroupBy.js +6 -4
- package/cjs/internals/utils/getStringLength.d.ts +2 -0
- package/cjs/{utils → internals/utils}/getStringLength.js +1 -0
- package/cjs/internals/utils/guid.d.ts +5 -0
- package/cjs/internals/utils/guid.js +14 -0
- package/cjs/internals/utils/index.d.ts +26 -1
- package/cjs/internals/utils/index.js +96 -2
- package/cjs/internals/utils/isOneOf.d.ts +2 -0
- package/cjs/{utils → internals/utils}/isOneOf.js +5 -2
- package/{esm → cjs/internals}/utils/mergeRefs.d.ts +5 -2
- package/{esm → cjs/internals}/utils/mergeRefs.js +13 -2
- package/cjs/internals/utils/placementPolyfill.d.ts +10 -0
- package/cjs/{utils → internals/utils}/placementPolyfill.js +6 -2
- package/cjs/internals/utils/render.d.ts +7 -0
- package/cjs/{utils → internals/utils}/render.js +6 -0
- package/cjs/internals/utils/safeSetSelection.d.ts +5 -0
- package/cjs/{utils → internals/utils}/safeSetSelection.js +5 -0
- package/cjs/internals/utils/scrollTopAnimation.d.ts +5 -0
- package/cjs/{utils → internals/utils}/scrollTopAnimation.js +8 -2
- package/{esm → cjs/internals}/utils/shallowEqual.d.ts +5 -1
- package/cjs/{utils → internals/utils}/shallowEqual.js +19 -0
- package/cjs/internals/utils/stringifyReactNode.d.ts +12 -0
- package/cjs/internals/utils/stringifyReactNode.js +31 -3
- package/cjs/internals/utils/tplTransform.d.ts +10 -0
- package/cjs/{utils → internals/utils}/tplTransform.js +8 -4
- package/cjs/{utils → internals/utils}/warnOnce.d.ts +2 -2
- package/cjs/{utils → internals/utils}/warnOnce.js +5 -2
- package/cjs/toaster/ToastContainer.d.ts +1 -1
- package/cjs/toaster/ToastContainer.js +3 -2
- package/cjs/useToaster/useToaster.js +2 -2
- package/dist/rsuite-no-reset-rtl.css +68 -5
- 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 +68 -5
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +68 -5
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +68 -5
- package/dist/rsuite.js +784 -652
- 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/Accordion/Accordion.d.ts +1 -1
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/Accordion/index.js +1 -1
- package/esm/Affix/Affix.d.ts +1 -1
- package/esm/Affix/Affix.js +2 -1
- package/esm/Affix/index.js +1 -1
- package/esm/Animation/Bounce.js +2 -2
- package/esm/Animation/Collapse.js +3 -2
- package/esm/Animation/Fade.js +2 -2
- package/esm/Animation/Slide.js +2 -2
- package/esm/Animation/Transition.d.ts +1 -1
- package/esm/Animation/Transition.js +2 -2
- package/esm/Animation/index.js +5 -5
- package/esm/AutoComplete/AutoComplete.d.ts +2 -2
- package/esm/AutoComplete/AutoComplete.js +9 -7
- package/esm/AutoComplete/Combobox.js +2 -2
- package/esm/AutoComplete/index.js +1 -1
- package/esm/Avatar/Avatar.d.ts +1 -1
- package/esm/Avatar/Avatar.js +6 -5
- package/esm/Avatar/index.js +1 -1
- package/esm/Avatar/useImage.js +1 -1
- package/esm/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/esm/AvatarGroup/AvatarGroup.js +3 -2
- package/esm/AvatarGroup/index.js +1 -1
- package/esm/Badge/Badge.d.ts +1 -1
- package/esm/Badge/Badge.js +2 -2
- package/esm/Badge/index.js +1 -1
- package/esm/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/esm/Breadcrumb/Breadcrumb.js +2 -2
- package/esm/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/esm/Breadcrumb/BreadcrumbItem.js +2 -2
- package/esm/Breadcrumb/index.js +1 -1
- package/esm/Button/Button.d.ts +1 -1
- package/esm/Button/Button.js +6 -5
- package/esm/Button/index.js +1 -1
- package/esm/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/ButtonGroup/ButtonGroup.js +3 -3
- package/esm/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/esm/ButtonGroup/index.js +2 -2
- package/esm/ButtonToolbar/ButtonToolbar.d.ts +1 -1
- package/esm/ButtonToolbar/ButtonToolbar.js +2 -2
- package/esm/ButtonToolbar/index.js +1 -1
- package/esm/Calendar/Calendar.d.ts +37 -10
- package/esm/Calendar/Calendar.js +10 -6
- package/esm/Calendar/CalendarBody.d.ts +1 -1
- package/esm/Calendar/CalendarBody.js +12 -12
- package/esm/Calendar/CalendarContainer.d.ts +94 -27
- package/esm/Calendar/CalendarContainer.js +12 -9
- package/esm/Calendar/CalendarHeader.d.ts +1 -1
- package/esm/Calendar/CalendarHeader.js +6 -6
- package/esm/Calendar/MonthDropdown.d.ts +1 -1
- package/esm/Calendar/MonthDropdown.js +10 -17
- package/esm/Calendar/MonthDropdownItem.d.ts +1 -1
- package/esm/Calendar/MonthDropdownItem.js +5 -13
- package/esm/Calendar/Table.d.ts +1 -1
- package/esm/Calendar/Table.js +4 -4
- package/esm/Calendar/TableCell.d.ts +1 -1
- package/esm/Calendar/TableCell.js +4 -4
- package/esm/Calendar/TableHeaderRow.d.ts +1 -1
- package/esm/Calendar/TableHeaderRow.js +7 -18
- package/esm/Calendar/TableRow.d.ts +1 -1
- package/esm/Calendar/TableRow.js +14 -15
- package/esm/Calendar/TimeDropdown.d.ts +1 -1
- package/esm/Calendar/TimeDropdown.js +4 -2
- package/esm/Calendar/index.js +4 -4
- package/esm/Calendar/types.d.ts +6 -5
- package/esm/Calendar/useCalendarDate.js +1 -1
- package/esm/Calendar/utils.js +2 -2
- package/esm/Carousel/Carousel.d.ts +1 -1
- package/esm/Carousel/Carousel.js +3 -2
- package/esm/Carousel/index.js +1 -1
- package/esm/CascadeTree/CascadeTree.js +6 -7
- package/esm/CascadeTree/SearchView.d.ts +1 -1
- package/esm/CascadeTree/SearchView.js +4 -4
- package/esm/CascadeTree/TreeView.d.ts +1 -1
- package/esm/CascadeTree/TreeView.js +3 -2
- package/esm/CascadeTree/hooks/index.js +3 -3
- package/esm/CascadeTree/hooks/usePaths.js +2 -2
- package/esm/CascadeTree/hooks/useSearch.d.ts +1 -1
- package/esm/CascadeTree/hooks/useSearch.js +2 -2
- package/esm/CascadeTree/hooks/useSelect.d.ts +1 -1
- package/esm/CascadeTree/hooks/useSelect.js +2 -1
- package/esm/CascadeTree/index.d.ts +1 -1
- package/esm/CascadeTree/index.js +1 -1
- package/esm/CascadeTree/types.d.ts +1 -1
- package/esm/Cascader/Cascader.d.ts +2 -2
- package/esm/Cascader/Cascader.js +11 -11
- package/esm/Cascader/index.js +1 -1
- package/esm/Cascader/useActive.js +1 -1
- package/esm/CheckPicker/CheckPicker.d.ts +2 -2
- package/esm/CheckPicker/CheckPicker.js +6 -6
- package/esm/CheckPicker/index.js +1 -1
- package/esm/CheckTree/CheckTree.d.ts +5 -1
- package/esm/CheckTree/CheckTree.js +11 -10
- package/esm/CheckTree/CheckTreeNode.d.ts +3 -3
- package/esm/CheckTree/CheckTreeNode.js +8 -8
- package/esm/CheckTree/CheckTreeView.d.ts +3 -6
- package/esm/CheckTree/CheckTreeView.js +25 -26
- package/esm/CheckTree/hooks/useTreeCheckState.d.ts +1 -1
- package/esm/CheckTree/hooks/useTreeCheckState.js +3 -3
- package/esm/CheckTree/hooks/useTreeNodeProps.d.ts +2 -2
- package/esm/CheckTree/hooks/useTreeNodeProps.js +3 -3
- package/esm/CheckTree/hooks/useTreeValue.js +2 -2
- package/esm/CheckTree/index.js +1 -1
- package/esm/CheckTree/utils.d.ts +2 -2
- package/esm/CheckTree/utils.js +4 -3
- package/esm/CheckTreePicker/CheckTreePicker.d.ts +3 -3
- package/esm/CheckTreePicker/CheckTreePicker.js +11 -11
- package/esm/CheckTreePicker/hooks/useFocusState.js +1 -1
- package/esm/CheckTreePicker/index.js +1 -1
- package/esm/Checkbox/Checkbox.d.ts +1 -1
- package/esm/Checkbox/Checkbox.js +4 -3
- package/esm/Checkbox/index.js +1 -1
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/esm/CheckboxGroup/CheckboxGroup.js +4 -3
- package/esm/CheckboxGroup/index.js +2 -2
- package/esm/Col/Col.d.ts +1 -1
- package/esm/Col/Col.js +2 -1
- package/esm/Col/index.js +1 -1
- package/esm/Container/Container.d.ts +1 -1
- package/esm/Container/Container.js +1 -1
- package/esm/Container/index.js +1 -1
- package/esm/Content/Content.d.ts +2 -2
- package/esm/Content/Content.js +1 -1
- package/esm/Content/index.js +1 -1
- package/esm/CustomProvider/CustomProvider.d.ts +2 -3
- package/esm/CustomProvider/CustomProvider.js +4 -4
- package/esm/CustomProvider/FormattedDate.js +1 -1
- package/esm/CustomProvider/index.js +2 -2
- package/esm/DOMHelper/index.js +1 -1
- package/esm/DateInput/DateField.js +1 -1
- package/esm/DateInput/DateInput.d.ts +1 -1
- package/esm/DateInput/DateInput.js +9 -8
- package/esm/DateInput/hooks/useDateInputState.d.ts +1 -1
- package/esm/DateInput/hooks/useDateInputState.js +2 -2
- package/esm/DateInput/hooks/useFieldCursor.js +2 -2
- package/esm/DateInput/index.js +7 -7
- package/esm/DateInput/utils.js +2 -2
- package/esm/DatePicker/DatePicker.d.ts +89 -30
- package/esm/DatePicker/DatePicker.js +41 -36
- package/esm/DatePicker/PredefinedRanges.js +4 -4
- package/esm/DatePicker/Toolbar.js +4 -4
- package/esm/DatePicker/hooks/useCustomizedInput.d.ts +20 -0
- package/esm/DatePicker/hooks/useCustomizedInput.js +54 -0
- package/esm/DatePicker/hooks/useFocus.js +3 -4
- package/esm/DatePicker/hooks/useMonthView.js +1 -1
- package/esm/DatePicker/index.js +1 -1
- package/esm/DatePicker/utils.js +3 -3
- package/esm/DateRangeInput/DateRangeInput.d.ts +1 -1
- package/esm/DateRangeInput/DateRangeInput.js +5 -4
- package/esm/DateRangeInput/index.js +1 -1
- package/esm/DateRangeInput/utils.js +1 -1
- package/esm/DateRangePicker/Calendar.d.ts +3 -2
- package/esm/DateRangePicker/Calendar.js +4 -19
- package/esm/DateRangePicker/DateRangePicker.d.ts +9 -2
- package/esm/DateRangePicker/DateRangePicker.js +86 -64
- package/esm/DateRangePicker/Header.js +4 -4
- package/esm/DateRangePicker/disabledDateUtils.js +2 -1
- package/esm/DateRangePicker/hooks/useDateDisabled.d.ts +1 -1
- package/esm/DateRangePicker/index.js +2 -2
- package/esm/DateRangePicker/types.d.ts +1 -1
- package/esm/DateRangePicker/utils.d.ts +6 -1
- package/esm/DateRangePicker/utils.js +12 -3
- package/esm/Divider/Divider.d.ts +1 -1
- package/esm/Divider/Divider.js +1 -1
- package/esm/Divider/index.js +1 -1
- package/esm/Drawer/Drawer.d.ts +1 -1
- package/esm/Drawer/Drawer.js +6 -6
- package/esm/Drawer/index.js +1 -1
- package/esm/Dropdown/Dropdown.d.ts +1 -1
- package/esm/Dropdown/Dropdown.js +13 -12
- package/esm/Dropdown/DropdownItem.d.ts +1 -1
- package/esm/Dropdown/DropdownItem.js +11 -12
- package/esm/Dropdown/DropdownMenu.d.ts +1 -1
- package/esm/Dropdown/DropdownMenu.js +9 -10
- package/esm/Dropdown/DropdownSeparator.d.ts +1 -1
- package/esm/Dropdown/DropdownSeparator.js +1 -1
- package/esm/Dropdown/DropdownToggle.d.ts +1 -1
- package/esm/Dropdown/DropdownToggle.js +3 -4
- package/esm/Dropdown/index.js +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.d.ts +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.js +3 -3
- package/esm/FlexboxGrid/FlexboxGridItem.d.ts +1 -1
- package/esm/FlexboxGrid/FlexboxGridItem.js +1 -1
- package/esm/FlexboxGrid/index.js +1 -1
- package/esm/Footer/Footer.d.ts +2 -2
- package/esm/Footer/Footer.js +1 -1
- package/esm/Footer/index.js +1 -1
- package/esm/Form/Form.d.ts +1 -1
- package/esm/Form/Form.js +13 -13
- package/esm/Form/FormContext.d.ts +1 -1
- package/esm/Form/hooks/useFormClassNames.js +1 -1
- package/esm/Form/hooks/useFormValidate.js +2 -3
- package/esm/Form/hooks/useFormValue.js +1 -1
- package/esm/Form/index.js +2 -2
- package/esm/FormControl/FormControl.d.ts +1 -1
- package/esm/FormControl/FormControl.js +10 -10
- package/esm/FormControl/hooks/useField.js +1 -1
- package/esm/FormControl/hooks/useRegisterModel.js +1 -1
- package/esm/FormControl/index.js +1 -1
- package/esm/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/esm/FormControlLabel/FormControlLabel.js +2 -2
- package/esm/FormControlLabel/index.js +1 -1
- package/esm/FormErrorMessage/FormErrorMessage.d.ts +1 -1
- package/esm/FormErrorMessage/FormErrorMessage.js +3 -2
- package/esm/FormErrorMessage/index.js +1 -1
- package/esm/FormGroup/FormGroup.d.ts +1 -1
- package/esm/FormGroup/FormGroup.js +1 -1
- package/esm/FormGroup/index.js +2 -2
- package/esm/FormHelpText/FormHelpText.d.ts +1 -1
- package/esm/FormHelpText/FormHelpText.js +4 -4
- package/esm/FormHelpText/index.js +1 -1
- package/esm/Grid/Grid.d.ts +1 -1
- package/esm/Grid/Grid.js +1 -1
- package/esm/Grid/index.js +1 -1
- package/esm/Header/Header.d.ts +2 -2
- package/esm/Header/Header.js +1 -1
- package/esm/Header/index.js +1 -1
- package/esm/Heading/Heading.d.ts +1 -1
- package/esm/Heading/Heading.js +1 -1
- package/esm/Heading/index.js +1 -1
- package/esm/HeadingGroup/HeadingGroup.d.ts +2 -2
- package/esm/HeadingGroup/HeadingGroup.js +1 -1
- package/esm/HeadingGroup/index.js +1 -1
- package/esm/Highlight/Highlight.d.ts +1 -1
- package/esm/Highlight/Highlight.js +3 -3
- package/esm/Highlight/index.js +1 -1
- package/esm/Highlight/utils/highlightText.js +1 -1
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/IconButton.js +3 -3
- package/esm/IconButton/index.js +1 -1
- package/esm/InlineEdit/EditableControls.js +2 -2
- package/esm/InlineEdit/InlineEdit.d.ts +1 -1
- package/esm/InlineEdit/InlineEdit.js +7 -6
- package/esm/InlineEdit/index.js +1 -1
- package/esm/InlineEdit/renderChildren.js +1 -1
- package/esm/InlineEdit/useEditState.js +1 -1
- package/esm/InlineEdit/useFocusEvent.d.ts +1 -1
- package/esm/InlineEdit/useFocusEvent.js +2 -2
- package/esm/Input/Input.d.ts +2 -2
- package/esm/Input/Input.js +7 -5
- package/esm/Input/index.js +1 -1
- package/esm/InputGroup/InputGroup.d.ts +1 -1
- package/esm/InputGroup/InputGroup.js +4 -4
- package/esm/InputGroup/InputGroupAddon.d.ts +1 -1
- package/esm/InputGroup/InputGroupAddon.js +1 -1
- package/esm/InputGroup/InputGroupButton.js +2 -2
- package/esm/InputGroup/index.js +1 -1
- package/esm/InputNumber/InputNumber.d.ts +1 -1
- package/esm/InputNumber/InputNumber.js +8 -6
- package/esm/InputNumber/index.js +1 -1
- package/esm/InputPicker/InputAutosize.js +1 -1
- package/esm/InputPicker/InputPicker.d.ts +2 -2
- package/esm/InputPicker/InputPicker.js +15 -14
- package/esm/InputPicker/InputSearch.d.ts +1 -1
- package/esm/InputPicker/InputSearch.js +1 -1
- package/esm/InputPicker/TagList.js +2 -2
- package/esm/InputPicker/TextBox.js +3 -3
- package/esm/InputPicker/hooks/useData.d.ts +1 -1
- package/esm/InputPicker/hooks/useData.js +1 -1
- package/esm/InputPicker/hooks/useInput.d.ts +1 -1
- package/esm/InputPicker/hooks/useInput.js +2 -2
- package/esm/InputPicker/hooks/useMaxWidth.d.ts +1 -1
- package/esm/InputPicker/index.js +1 -1
- package/esm/List/List.d.ts +1 -1
- package/esm/List/List.js +6 -5
- package/esm/List/ListItem.d.ts +1 -1
- package/esm/List/ListItem.js +3 -2
- package/esm/List/helper/useSortHelper.js +4 -4
- package/esm/List/helper/utils.d.ts +1 -1
- package/esm/List/index.js +1 -1
- package/esm/Loader/Loader.d.ts +1 -1
- package/esm/Loader/Loader.js +2 -2
- package/esm/Loader/index.js +1 -1
- package/esm/MaskedInput/MaskedInput.d.ts +1 -1
- package/esm/MaskedInput/MaskedInput.js +2 -2
- package/esm/MaskedInput/TextMask.js +2 -2
- package/esm/MaskedInput/conformToMask.js +1 -1
- package/esm/MaskedInput/createTextMaskInputElement.js +4 -4
- package/esm/MaskedInput/index.js +1 -1
- package/esm/Message/Message.d.ts +1 -1
- package/esm/Message/Message.js +6 -4
- package/esm/Message/index.js +1 -1
- package/esm/Modal/Modal.d.ts +2 -2
- package/esm/Modal/Modal.js +13 -13
- package/esm/Modal/ModalBody.d.ts +1 -1
- package/esm/Modal/ModalBody.js +4 -4
- package/esm/Modal/ModalDialog.d.ts +1 -1
- package/esm/Modal/ModalDialog.js +3 -2
- package/esm/Modal/ModalFooter.d.ts +2 -2
- package/esm/Modal/ModalFooter.js +1 -1
- package/esm/Modal/ModalHeader.d.ts +1 -1
- package/esm/Modal/ModalHeader.js +6 -5
- package/esm/Modal/ModalTitle.d.ts +2 -2
- package/esm/Modal/ModalTitle.js +2 -2
- package/esm/Modal/index.js +1 -1
- package/esm/Modal/utils.d.ts +1 -1
- package/esm/MultiCascadeTree/MultiCascadeTree.d.ts +1 -1
- package/esm/MultiCascadeTree/MultiCascadeTree.js +4 -4
- package/esm/MultiCascadeTree/SearchView.d.ts +1 -1
- package/esm/MultiCascadeTree/SearchView.js +5 -5
- package/esm/MultiCascadeTree/TreeView.d.ts +1 -1
- package/esm/MultiCascadeTree/TreeView.js +4 -3
- package/esm/MultiCascadeTree/hooks/index.js +5 -5
- package/esm/MultiCascadeTree/hooks/useCascadeValue.js +2 -2
- package/esm/MultiCascadeTree/hooks/useColumnData.js +1 -1
- package/esm/MultiCascadeTree/hooks/useFlattenData.js +2 -2
- package/esm/MultiCascadeTree/hooks/useSearch.d.ts +1 -1
- package/esm/MultiCascadeTree/hooks/useSearch.js +2 -2
- package/esm/MultiCascadeTree/hooks/useSelect.d.ts +1 -1
- package/esm/MultiCascadeTree/hooks/useSelect.js +3 -3
- package/esm/MultiCascadeTree/index.d.ts +1 -1
- package/esm/MultiCascadeTree/index.js +1 -1
- package/esm/MultiCascadeTree/types.d.ts +1 -1
- package/esm/MultiCascadeTree/utils.d.ts +1 -1
- package/esm/MultiCascader/MultiCascader.d.ts +2 -2
- package/esm/MultiCascader/MultiCascader.js +11 -10
- package/esm/MultiCascader/index.js +1 -1
- package/esm/Nav/Nav.d.ts +1 -1
- package/esm/Nav/Nav.js +16 -16
- package/esm/Nav/NavDropdown.d.ts +1 -1
- package/esm/Nav/NavDropdown.js +10 -8
- package/esm/Nav/NavDropdownItem.d.ts +1 -1
- package/esm/Nav/NavDropdownItem.js +6 -5
- package/esm/Nav/NavDropdownMenu.d.ts +1 -1
- package/esm/Nav/NavDropdownMenu.js +6 -6
- package/esm/Nav/NavDropdownToggle.d.ts +1 -1
- package/esm/Nav/NavDropdownToggle.js +3 -3
- package/esm/Nav/NavItem.d.ts +1 -1
- package/esm/Nav/NavItem.js +5 -4
- package/esm/Nav/NavMenu.js +8 -8
- package/esm/Nav/index.js +1 -1
- package/esm/Navbar/Navbar.d.ts +1 -1
- package/esm/Navbar/Navbar.js +4 -4
- package/esm/Navbar/NavbarBody.d.ts +2 -2
- package/esm/Navbar/NavbarBody.js +1 -2
- package/esm/Navbar/NavbarBrand.d.ts +2 -2
- package/esm/Navbar/NavbarBrand.js +1 -1
- package/esm/Navbar/NavbarDropdown.d.ts +1 -1
- package/esm/Navbar/NavbarDropdown.js +8 -6
- package/esm/Navbar/NavbarDropdownItem.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownItem.js +7 -6
- package/esm/Navbar/NavbarDropdownMenu.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownMenu.js +5 -4
- package/esm/Navbar/NavbarDropdownToggle.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownToggle.js +3 -3
- package/esm/Navbar/NavbarHeader.d.ts +2 -2
- package/esm/Navbar/NavbarHeader.js +1 -2
- package/esm/Navbar/NavbarItem.d.ts +1 -1
- package/esm/Navbar/NavbarItem.js +5 -4
- package/esm/Navbar/index.js +2 -2
- package/esm/Notification/Notification.d.ts +1 -1
- package/esm/Notification/Notification.js +5 -4
- package/esm/Notification/index.js +1 -1
- package/esm/Pagination/LimitPicker.d.ts +1 -1
- package/esm/Pagination/LimitPicker.js +2 -2
- package/esm/Pagination/Pagination.d.ts +1 -1
- package/esm/Pagination/Pagination.js +2 -2
- package/esm/Pagination/PaginationButton.d.ts +1 -1
- package/esm/Pagination/PaginationButton.js +3 -2
- package/esm/Pagination/PaginationGroup.d.ts +1 -1
- package/esm/Pagination/PaginationGroup.js +6 -5
- package/esm/Pagination/index.js +1 -1
- package/esm/Panel/AccordionButton.js +1 -1
- package/esm/Panel/Panel.d.ts +47 -15
- package/esm/Panel/Panel.js +44 -90
- package/esm/Panel/PanelBody.d.ts +13 -0
- package/esm/Panel/PanelBody.js +63 -0
- package/esm/Panel/PanelHeader.d.ts +14 -0
- package/esm/Panel/PanelHeader.js +52 -0
- package/esm/Panel/hooks/useExpanded.d.ts +8 -0
- package/esm/Panel/hooks/useExpanded.js +33 -0
- package/esm/Panel/index.js +1 -1
- package/esm/PanelGroup/PanelGroup.d.ts +1 -1
- package/esm/PanelGroup/PanelGroup.js +1 -1
- package/esm/PanelGroup/index.js +2 -2
- package/esm/Placeholder/Placeholder.d.ts +1 -1
- package/esm/Placeholder/Placeholder.js +3 -3
- package/esm/Placeholder/PlaceholderGraph.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGraph.js +1 -1
- package/esm/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGrid.js +1 -1
- package/esm/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/esm/Placeholder/PlaceholderParagraph.js +2 -2
- package/esm/Placeholder/index.js +1 -1
- package/esm/Popover/Popover.d.ts +1 -1
- package/esm/Popover/Popover.js +2 -2
- package/esm/Popover/index.js +1 -1
- package/esm/Progress/Progress.d.ts +1 -1
- package/esm/Progress/Progress.js +2 -2
- package/esm/Progress/ProgressCircle.d.ts +1 -1
- package/esm/Progress/ProgressCircle.js +3 -2
- package/esm/Progress/ProgressLine.d.ts +1 -1
- package/esm/Progress/ProgressLine.js +3 -2
- package/esm/Progress/index.js +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/Radio.js +4 -3
- package/esm/Radio/index.js +1 -1
- package/esm/RadioGroup/RadioGroup.d.ts +1 -1
- package/esm/RadioGroup/RadioGroup.js +3 -3
- package/esm/RadioGroup/index.js +1 -1
- package/esm/RadioTile/RadioTile.d.ts +1 -1
- package/esm/RadioTile/RadioTile.js +4 -4
- package/esm/RadioTile/index.js +1 -1
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +1 -1
- package/esm/RadioTileGroup/RadioTileGroup.js +2 -2
- package/esm/RadioTileGroup/index.js +1 -1
- package/esm/RangeSlider/RangeSlider.js +7 -7
- package/esm/RangeSlider/index.js +1 -1
- package/esm/Rate/Character.d.ts +1 -1
- package/esm/Rate/Character.js +1 -1
- package/esm/Rate/Rate.d.ts +1 -1
- package/esm/Rate/Rate.js +7 -5
- package/esm/Rate/index.js +1 -1
- package/esm/Row/Row.d.ts +1 -1
- package/esm/Row/Row.js +2 -1
- package/esm/Row/index.js +1 -1
- package/esm/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/esm/SafeAnchor/index.js +1 -1
- package/esm/Schema/index.js +1 -1
- package/esm/SelectPicker/SelectPicker.d.ts +3 -3
- package/esm/SelectPicker/SelectPicker.js +5 -5
- package/esm/SelectPicker/index.js +1 -1
- package/esm/Sidebar/Sidebar.d.ts +1 -1
- package/esm/Sidebar/Sidebar.js +2 -2
- package/esm/Sidebar/index.js +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdown.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdown.js +10 -9
- package/esm/Sidenav/ExpandedSidenavDropdownItem.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +7 -6
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +6 -6
- package/esm/Sidenav/Sidenav.d.ts +1 -1
- package/esm/Sidenav/Sidenav.js +7 -7
- package/esm/Sidenav/SidenavBody.d.ts +2 -2
- package/esm/Sidenav/SidenavBody.js +1 -1
- package/esm/Sidenav/SidenavDropdown.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdown.js +13 -11
- package/esm/Sidenav/SidenavDropdownCollapse.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownCollapse.js +3 -2
- package/esm/Sidenav/SidenavDropdownItem.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownItem.js +8 -7
- package/esm/Sidenav/SidenavDropdownMenu.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownMenu.js +7 -7
- package/esm/Sidenav/SidenavDropdownToggle.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownToggle.js +3 -3
- package/esm/Sidenav/SidenavHeader.d.ts +2 -2
- package/esm/Sidenav/SidenavHeader.js +1 -1
- package/esm/Sidenav/SidenavItem.d.ts +1 -1
- package/esm/Sidenav/SidenavItem.js +9 -8
- package/esm/Sidenav/SidenavToggle.d.ts +1 -1
- package/esm/Sidenav/SidenavToggle.js +4 -4
- package/esm/Sidenav/index.js +1 -1
- package/esm/Slider/Graduated.d.ts +1 -1
- package/esm/Slider/Graduated.js +3 -3
- package/esm/Slider/Handle.d.ts +1 -1
- package/esm/Slider/Handle.js +5 -4
- package/esm/Slider/Mark.d.ts +1 -1
- package/esm/Slider/Mark.js +1 -1
- package/esm/Slider/ProgressBar.d.ts +1 -1
- package/esm/Slider/ProgressBar.js +1 -1
- package/esm/Slider/Slider.d.ts +1 -1
- package/esm/Slider/Slider.js +6 -6
- package/esm/Slider/index.js +1 -1
- package/esm/Slider/useDrag.js +1 -1
- package/esm/Stack/Stack.d.ts +1 -1
- package/esm/Stack/Stack.js +4 -3
- package/esm/Stack/StackItem.d.ts +1 -1
- package/esm/Stack/StackItem.js +1 -1
- package/esm/Stack/index.js +1 -1
- package/esm/Steps/StepItem.d.ts +1 -1
- package/esm/Steps/StepItem.js +2 -2
- package/esm/Steps/Steps.d.ts +1 -1
- package/esm/Steps/Steps.js +4 -3
- package/esm/Steps/index.js +1 -1
- package/esm/Table/Table.js +1 -1
- package/esm/Table/index.js +1 -1
- package/esm/Tabs/TabPanel.d.ts +1 -1
- package/esm/Tabs/TabPanel.js +1 -1
- package/esm/Tabs/Tabs.d.ts +1 -1
- package/esm/Tabs/Tabs.js +5 -4
- package/esm/Tabs/index.js +1 -1
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/Tag.js +2 -2
- package/esm/Tag/index.js +1 -1
- package/esm/TagGroup/TagGroup.d.ts +2 -2
- package/esm/TagGroup/TagGroup.js +1 -1
- package/esm/TagGroup/index.js +1 -1
- package/esm/TagInput/index.d.ts +1 -1
- package/esm/TagInput/index.js +2 -2
- package/esm/TagPicker/index.d.ts +1 -1
- package/esm/TagPicker/index.js +2 -2
- package/esm/Text/Text.d.ts +1 -1
- package/esm/Text/Text.js +2 -2
- package/esm/Text/index.js +1 -1
- package/esm/Timeline/Timeline.d.ts +1 -1
- package/esm/Timeline/Timeline.js +4 -3
- package/esm/Timeline/TimelineItem.d.ts +1 -1
- package/esm/Timeline/TimelineItem.js +1 -1
- package/esm/Timeline/index.js +1 -1
- package/esm/Toggle/Toggle.d.ts +1 -1
- package/esm/Toggle/Toggle.js +5 -4
- package/esm/Toggle/index.js +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +1 -1
- package/esm/Tooltip/index.js +1 -1
- package/esm/Tree/IndentLine.js +1 -1
- package/esm/Tree/Tree.d.ts +8 -2
- package/esm/Tree/Tree.js +10 -9
- package/esm/Tree/TreeNode.d.ts +2 -2
- package/esm/Tree/TreeNode.js +6 -7
- package/esm/Tree/TreeNodeToggle.js +2 -2
- package/esm/Tree/TreeView.d.ts +4 -7
- package/esm/Tree/TreeView.js +24 -25
- package/esm/Tree/hooks/useExpandTree.d.ts +1 -1
- package/esm/Tree/hooks/useExpandTree.js +3 -3
- package/esm/Tree/hooks/useFlattenTree.d.ts +1 -1
- package/esm/Tree/hooks/useFlattenTree.js +3 -3
- package/esm/Tree/hooks/useFocusTree.d.ts +1 -1
- package/esm/Tree/hooks/useFocusTree.js +6 -7
- package/esm/Tree/hooks/useTreeDrag.d.ts +1 -1
- package/esm/Tree/hooks/useTreeDrag.js +6 -6
- package/esm/Tree/hooks/useTreeNodeProps.d.ts +1 -1
- package/esm/Tree/hooks/useTreeNodeProps.js +5 -4
- package/esm/Tree/hooks/useTreeSearch.js +2 -2
- package/esm/Tree/hooks/useTreeWithChildren.d.ts +1 -1
- package/esm/Tree/hooks/useTreeWithChildren.js +2 -2
- package/esm/Tree/hooks/useVirtualizedTreeData.d.ts +1 -1
- package/esm/Tree/hooks/useVirtualizedTreeData.js +5 -6
- package/esm/Tree/index.js +1 -1
- package/esm/Tree/types.d.ts +3 -70
- package/esm/Tree/types.js +0 -8
- package/esm/Tree/utils/flattenTree.js +1 -1
- package/esm/Tree/utils/focusableTree.d.ts +2 -2
- package/esm/Tree/utils/focusableTree.js +1 -1
- package/esm/Tree/utils/getNodeParentKeys.d.ts +1 -1
- package/esm/Tree/utils/getTreeActiveNode.d.ts +2 -2
- package/esm/Tree/utils/getTreeActiveNode.js +1 -1
- package/esm/Tree/utils/hasVisibleChildren.d.ts +1 -1
- package/esm/Tree/utils/index.js +11 -11
- package/esm/Tree/utils/isExpand.js +1 -1
- package/esm/Tree/utils/treeKeyboardInteractions.d.ts +1 -1
- package/esm/TreePicker/TreePicker.d.ts +3 -3
- package/esm/TreePicker/TreePicker.js +10 -10
- package/esm/TreePicker/hooks/useFocusState.js +1 -1
- package/esm/TreePicker/index.js +1 -1
- package/esm/Uploader/UploadFileItem.d.ts +1 -1
- package/esm/Uploader/UploadFileItem.js +4 -3
- package/esm/Uploader/UploadTrigger.js +3 -2
- package/esm/Uploader/Uploader.d.ts +2 -2
- package/esm/Uploader/Uploader.js +7 -5
- package/esm/Uploader/index.js +1 -1
- package/esm/Uploader/utils/previewFile.d.ts +3 -0
- package/esm/{utils → Uploader/utils}/previewFile.js +3 -2
- package/esm/VisuallyHidden/VisuallyHidden.d.ts +2 -2
- package/esm/VisuallyHidden/VisuallyHidden.js +1 -1
- package/esm/VisuallyHidden/index.js +1 -1
- package/esm/Whisper/Whisper.d.ts +1 -2
- package/esm/Whisper/Whisper.js +5 -4
- package/esm/Whisper/index.js +1 -1
- package/esm/index.js +95 -95
- package/esm/internals/CloseButton/CloseButton.d.ts +1 -1
- package/esm/internals/CloseButton/CloseButton.js +1 -1
- package/esm/internals/CloseButton/index.js +1 -1
- package/esm/internals/Disclosure/Disclosure.js +4 -4
- package/esm/internals/Disclosure/DisclosureButton.js +3 -3
- package/esm/internals/Disclosure/DisclosureContent.js +1 -1
- package/esm/internals/Disclosure/index.js +1 -1
- package/esm/internals/Disclosure/useDisclosureContext.js +1 -1
- package/esm/internals/Menu/Menu.js +5 -8
- package/esm/internals/Menu/MenuItem.js +2 -2
- package/esm/internals/Menu/Menubar.js +5 -5
- package/esm/internals/Menu/index.js +1 -1
- package/esm/internals/Menu/useMenu.js +1 -1
- package/esm/internals/Overlay/Modal.d.ts +1 -1
- package/esm/internals/Overlay/Modal.js +7 -5
- package/esm/internals/Overlay/Overlay.d.ts +1 -1
- package/esm/internals/Overlay/Overlay.js +5 -4
- package/esm/internals/Overlay/OverlayTrigger.d.ts +1 -1
- package/esm/internals/Overlay/OverlayTrigger.js +4 -4
- package/esm/internals/Overlay/Position.d.ts +1 -1
- package/esm/internals/Overlay/Position.js +4 -4
- package/esm/internals/Overlay/index.js +1 -1
- package/esm/internals/Overlay/positionUtils.d.ts +1 -1
- package/esm/internals/Picker/ListCheckItem.d.ts +1 -1
- package/esm/internals/Picker/ListCheckItem.js +3 -3
- package/esm/internals/Picker/ListItem.d.ts +1 -1
- package/esm/internals/Picker/ListItem.js +2 -2
- package/esm/internals/Picker/ListItemGroup.d.ts +1 -1
- package/esm/internals/Picker/ListItemGroup.js +1 -1
- package/esm/internals/Picker/Listbox.d.ts +3 -3
- package/esm/internals/Picker/Listbox.js +8 -8
- package/esm/internals/Picker/PickerIndicator.js +4 -4
- package/esm/internals/Picker/PickerLabel.js +1 -1
- package/esm/internals/Picker/PickerPopup.d.ts +1 -1
- package/esm/internals/Picker/PickerPopup.js +3 -1
- package/esm/internals/Picker/PickerToggle.d.ts +1 -1
- package/esm/internals/Picker/PickerToggle.js +8 -8
- package/esm/internals/Picker/PickerToggleTrigger.d.ts +3 -3
- package/esm/internals/Picker/PickerToggleTrigger.js +3 -2
- package/esm/internals/Picker/SelectedElement.js +1 -1
- package/esm/internals/Picker/ToggleButton.js +1 -1
- package/esm/internals/Picker/hooks/index.js +6 -6
- package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/esm/internals/Picker/hooks/useCombobox.js +1 -1
- package/esm/internals/Picker/hooks/useFocusItemValue.js +4 -3
- package/esm/internals/Picker/hooks/usePickerClassName.d.ts +1 -1
- package/esm/internals/Picker/hooks/usePickerClassName.js +2 -1
- package/esm/internals/Picker/hooks/usePickerRef.d.ts +1 -1
- package/esm/internals/Picker/hooks/usePickerRef.js +2 -2
- package/esm/internals/Picker/hooks/useSearch.js +1 -1
- package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +2 -1
- package/esm/internals/Picker/index.js +14 -14
- package/esm/internals/Picker/propTypes.d.ts +2 -2
- package/esm/internals/Picker/propTypes.js +3 -3
- package/esm/internals/Picker/types.d.ts +3 -3
- package/esm/internals/Picker/utils.js +3 -2
- package/esm/internals/Plaintext/Plaintext.d.ts +1 -1
- package/esm/internals/Plaintext/Plaintext.js +1 -1
- package/esm/internals/Plaintext/index.js +1 -1
- package/esm/internals/Ripple/Ripple.d.ts +1 -1
- package/esm/internals/Ripple/Ripple.js +3 -2
- package/esm/internals/Ripple/index.js +1 -1
- package/esm/internals/ScrollView/ScrollView.d.ts +27 -0
- package/esm/internals/ScrollView/ScrollView.js +50 -0
- package/esm/internals/ScrollView/hooks/useScrollState.d.ts +6 -0
- package/esm/internals/ScrollView/hooks/useScrollState.js +58 -0
- package/esm/internals/ScrollView/index.d.ts +3 -0
- package/esm/internals/ScrollView/index.js +3 -0
- package/esm/internals/SearchBox/SearchBox.d.ts +1 -1
- package/esm/internals/SearchBox/SearchBox.js +3 -3
- package/esm/internals/SearchBox/index.js +1 -1
- package/esm/{Tree → internals/Tree}/TreeProvider.d.ts +2 -0
- package/esm/internals/Tree/TreeView.d.ts +3 -1
- package/esm/internals/Tree/TreeView.js +28 -6
- package/esm/internals/Tree/index.js +1 -1
- package/esm/internals/Tree/types.d.ts +69 -0
- package/esm/internals/Tree/utils/index.js +4 -4
- package/esm/internals/Windowing/AutoSizer.js +2 -1
- package/esm/internals/Windowing/List.d.ts +5 -1
- package/esm/internals/Windowing/List.js +15 -4
- package/esm/internals/Windowing/index.js +2 -2
- package/esm/internals/hooks/index.d.ts +23 -1
- package/esm/internals/hooks/index.js +23 -1
- package/esm/{utils → internals/hooks}/useClassNames.d.ts +1 -1
- package/esm/{utils → internals/hooks}/useClassNames.js +3 -3
- package/{cjs/utils → esm/internals/hooks}/useClickOutside.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useClickOutside.js +3 -2
- package/esm/{utils → internals/hooks}/useControlled.d.ts +1 -6
- package/esm/{utils → internals/hooks}/useControlled.js +1 -2
- package/esm/internals/hooks/useCustom.d.ts +7 -0
- package/esm/{utils → internals/hooks}/useCustom.js +4 -4
- package/esm/{utils → internals/hooks}/useElementResize.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useElementResize.js +3 -2
- package/{cjs/utils → esm/internals/hooks}/useEnsuredRef.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useEnsuredRef.js +3 -2
- package/{cjs/utils → esm/internals/hooks}/useEventCallback.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useEventCallback.js +3 -2
- package/esm/{utils → internals/hooks}/useEventListener.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useEventListener.js +3 -2
- package/esm/{utils → internals/hooks}/useFocus.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useFocus.js +3 -2
- package/esm/internals/hooks/{useFoucsVirtualListItem.d.ts → useFocusVirtualListItem.d.ts} +2 -2
- package/esm/internals/hooks/{useFoucsVirtualListItem.js → useFocusVirtualListItem.js} +2 -2
- package/esm/internals/hooks/useInternalId.d.ts +5 -0
- package/esm/{utils → internals/hooks}/useInternalId.js +3 -2
- package/esm/internals/hooks/useIsMounted.d.ts +2 -0
- package/esm/{utils → internals/hooks}/useIsMounted.js +1 -1
- package/esm/internals/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/esm/internals/hooks/useIsomorphicLayoutEffect.js +4 -0
- package/esm/{utils → internals/hooks}/useMap.d.ts +1 -0
- package/esm/{utils → internals/hooks}/useMap.js +2 -1
- package/esm/internals/hooks/useMount.d.ts +2 -0
- package/esm/{utils → internals/hooks}/useMount.js +1 -1
- package/esm/{utils → internals/hooks}/usePortal.d.ts +1 -1
- package/esm/{utils → internals/hooks}/usePortal.js +1 -1
- package/esm/{utils → internals/hooks}/useRootClose.d.ts +1 -1
- package/esm/{utils → internals/hooks}/useRootClose.js +3 -2
- package/esm/{utils → internals/hooks}/useTimeout.d.ts +1 -1
- package/esm/{utils → internals/hooks}/useTimeout.js +1 -1
- package/esm/internals/hooks/useToggleCaret.d.ts +4 -0
- package/esm/{utils → internals/hooks}/useToggleCaret.js +2 -2
- package/{cjs/utils → esm/internals/hooks}/useUniqueId.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useUniqueId.js +3 -2
- package/esm/{utils → internals/hooks}/useUpdateEffect.d.ts +1 -1
- package/esm/{utils → internals/hooks}/useUpdateEffect.js +1 -1
- package/{cjs/utils → esm/internals/hooks}/useUpdatedRef.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useUpdatedRef.js +3 -2
- package/{cjs/utils → esm/internals/hooks}/useWillUnmount.d.ts +2 -1
- package/esm/{utils → internals/hooks}/useWillUnmount.js +4 -3
- package/esm/internals/propTypes/deprecatePropType.js +1 -1
- package/esm/internals/propTypes/index.js +2 -2
- package/esm/internals/types/index.js +1 -0
- package/{cjs/@types → esm/internals/types}/utils.d.ts +0 -1
- package/esm/internals/types/utils.js +1 -0
- package/esm/internals/utils/ReactChildren.d.ts +65 -0
- package/esm/internals/utils/ReactChildren.js +156 -0
- package/esm/internals/utils/attachParent.d.ts +5 -0
- package/esm/{utils → internals/utils}/attachParent.js +5 -1
- package/esm/internals/utils/composeFunctions.d.ts +16 -0
- package/esm/internals/utils/composeFunctions.js +26 -0
- package/{cjs → esm/internals}/utils/createChainedFunction.d.ts +1 -1
- package/esm/{utils → internals/utils}/createChainedFunction.js +1 -1
- package/{cjs → esm/internals}/utils/createComponent.d.ts +2 -2
- package/esm/{utils → internals/utils}/createComponent.js +2 -2
- package/esm/internals/utils/date/copyTime.d.ts +12 -0
- package/esm/internals/utils/date/copyTime.js +27 -0
- package/esm/internals/utils/date/disableTime.d.ts +18 -0
- package/esm/internals/utils/date/disableTime.js +41 -0
- package/esm/internals/utils/date/formatCheck.d.ts +28 -0
- package/esm/internals/utils/date/formatCheck.js +40 -0
- package/esm/internals/utils/date/getReversedTimeMeridian.d.ts +8 -0
- package/esm/internals/utils/date/getReversedTimeMeridian.js +17 -0
- package/esm/internals/utils/date/getWeekKeys.d.ts +5 -0
- package/esm/internals/utils/date/getWeekKeys.js +12 -0
- package/esm/internals/utils/date/getWeekStartDates.d.ts +14 -0
- package/esm/internals/utils/date/getWeekStartDates.js +27 -0
- package/esm/internals/utils/date/index.d.ts +55 -0
- package/esm/internals/utils/date/index.js +61 -0
- package/esm/internals/utils/date/omitHideDisabledProps.d.ts +10 -0
- package/esm/internals/utils/date/omitHideDisabledProps.js +14 -0
- package/esm/internals/utils/date/reverseDateRangeOmitTime.d.ts +8 -0
- package/esm/internals/utils/date/reverseDateRangeOmitTime.js +23 -0
- package/esm/internals/utils/date/types.d.ts +13 -0
- package/esm/internals/utils/date/types.js +14 -0
- package/esm/{utils → internals/utils}/deprecateComponent.d.ts +2 -1
- package/esm/{utils → internals/utils}/deprecateComponent.js +4 -3
- package/esm/internals/utils/getDOMNode.d.ts +2 -0
- package/esm/{utils → internals/utils}/getDOMNode.js +3 -2
- package/esm/{utils → internals/utils}/getDataGroupBy.d.ts +1 -0
- package/esm/{utils → internals/utils}/getDataGroupBy.js +4 -3
- package/esm/internals/utils/getStringLength.d.ts +2 -0
- package/esm/{utils → internals/utils}/getStringLength.js +1 -1
- package/esm/internals/utils/guid.d.ts +5 -0
- package/esm/internals/utils/guid.js +8 -0
- package/esm/internals/utils/index.d.ts +26 -1
- package/esm/internals/utils/index.js +26 -2
- package/esm/internals/utils/isOneOf.d.ts +2 -0
- package/esm/{utils → internals/utils}/isOneOf.js +3 -2
- package/{cjs → esm/internals}/utils/mergeRefs.d.ts +5 -2
- package/{cjs → esm/internals}/utils/mergeRefs.js +7 -6
- package/esm/internals/utils/placementPolyfill.d.ts +10 -0
- package/esm/{utils → internals/utils}/placementPolyfill.js +6 -3
- package/esm/internals/utils/render.d.ts +7 -0
- package/esm/{utils → internals/utils}/render.js +6 -1
- package/esm/internals/utils/safeSetSelection.d.ts +5 -0
- package/esm/{utils → internals/utils}/safeSetSelection.js +6 -2
- package/esm/internals/utils/scrollTopAnimation.d.ts +5 -0
- package/esm/{utils → internals/utils}/scrollTopAnimation.js +7 -2
- package/{cjs → esm/internals}/utils/shallowEqual.d.ts +5 -1
- package/esm/{utils → internals/utils}/shallowEqual.js +18 -1
- package/esm/internals/utils/stringifyReactNode.d.ts +12 -0
- package/esm/internals/utils/stringifyReactNode.js +28 -2
- package/esm/internals/utils/tplTransform.d.ts +10 -0
- package/esm/{utils → internals/utils}/tplTransform.js +7 -4
- package/esm/{utils → internals/utils}/warnOnce.d.ts +2 -2
- package/esm/{utils → internals/utils}/warnOnce.js +3 -2
- package/esm/locales/en_GB.js +1 -1
- package/esm/locales/index.js +24 -24
- package/esm/toaster/ToastContainer.d.ts +1 -1
- package/esm/toaster/ToastContainer.js +4 -3
- package/esm/toaster/index.js +1 -1
- package/esm/toaster/toaster.js +1 -1
- package/esm/useMediaQuery/index.js +1 -1
- package/esm/useToaster/index.js +1 -1
- package/esm/useToaster/useToaster.js +2 -3
- package/internals/ScrollView/styles/index.less +73 -0
- package/package.json +1 -1
- package/styles/color-modes/dark.less +3 -0
- package/styles/color-modes/high-contrast.less +3 -0
- package/styles/color-modes/light.less +3 -0
- package/cjs/@types/utils.js +0 -24
- package/cjs/utils/ReactChildren.d.ts +0 -14
- package/cjs/utils/attachParent.d.ts +0 -1
- package/cjs/utils/clone.d.ts +0 -1
- package/cjs/utils/clone.js +0 -11
- package/cjs/utils/composeFunctions.d.ts +0 -2
- package/cjs/utils/composeFunctions.js +0 -16
- package/cjs/utils/dateUtils.d.ts +0 -142
- package/cjs/utils/dateUtils.js +0 -288
- package/cjs/utils/getDOMNode.d.ts +0 -1
- package/cjs/utils/getStringLength.d.ts +0 -2
- package/cjs/utils/guid.d.ts +0 -1
- package/cjs/utils/guid.js +0 -8
- package/cjs/utils/index.d.ts +0 -46
- package/cjs/utils/index.js +0 -166
- package/cjs/utils/isOneOf.d.ts +0 -1
- package/cjs/utils/placementPolyfill.d.ts +0 -6
- package/cjs/utils/previewFile.d.ts +0 -3
- package/cjs/utils/reactToString.d.ts +0 -2
- package/cjs/utils/reactToString.js +0 -21
- package/cjs/utils/render.d.ts +0 -3
- package/cjs/utils/safeSetSelection.d.ts +0 -2
- package/cjs/utils/scrollTopAnimation.d.ts +0 -1
- package/cjs/utils/shallowEqualArray.d.ts +0 -2
- package/cjs/utils/shallowEqualArray.js +0 -23
- package/cjs/utils/tplTransform.d.ts +0 -8
- package/cjs/utils/useCustom.d.ts +0 -7
- package/cjs/utils/useInternalId.d.ts +0 -4
- package/cjs/utils/useIsMounted.d.ts +0 -2
- package/cjs/utils/useIsomorphicLayoutEffect.d.ts +0 -3
- package/cjs/utils/useMount.d.ts +0 -2
- package/cjs/utils/useToggleCaret.d.ts +0 -4
- package/esm/@types/utils.js +0 -19
- package/esm/utils/ReactChildren.d.ts +0 -14
- package/esm/utils/ReactChildren.js +0 -80
- package/esm/utils/attachParent.d.ts +0 -1
- package/esm/utils/clone.d.ts +0 -1
- package/esm/utils/clone.js +0 -7
- package/esm/utils/composeFunctions.d.ts +0 -2
- package/esm/utils/composeFunctions.js +0 -11
- package/esm/utils/dateUtils.d.ts +0 -142
- package/esm/utils/dateUtils.js +0 -235
- package/esm/utils/getDOMNode.d.ts +0 -1
- package/esm/utils/getStringLength.d.ts +0 -2
- package/esm/utils/guid.d.ts +0 -1
- package/esm/utils/guid.js +0 -4
- package/esm/utils/index.d.ts +0 -46
- package/esm/utils/index.js +0 -49
- package/esm/utils/isOneOf.d.ts +0 -1
- package/esm/utils/placementPolyfill.d.ts +0 -6
- package/esm/utils/previewFile.d.ts +0 -3
- package/esm/utils/reactToString.d.ts +0 -2
- package/esm/utils/reactToString.js +0 -16
- package/esm/utils/render.d.ts +0 -3
- package/esm/utils/safeSetSelection.d.ts +0 -2
- package/esm/utils/scrollTopAnimation.d.ts +0 -1
- package/esm/utils/shallowEqualArray.d.ts +0 -2
- package/esm/utils/shallowEqualArray.js +0 -17
- package/esm/utils/tplTransform.d.ts +0 -8
- package/esm/utils/useCustom.d.ts +0 -7
- package/esm/utils/useInternalId.d.ts +0 -4
- package/esm/utils/useIsMounted.d.ts +0 -2
- package/esm/utils/useIsomorphicLayoutEffect.d.ts +0 -3
- package/esm/utils/useIsomorphicLayoutEffect.js +0 -4
- package/esm/utils/useMount.d.ts +0 -2
- package/esm/utils/useToggleCaret.d.ts +0 -4
- package/utils/package.json +0 -7
- /package/cjs/{utils → Uploader/utils}/ajaxUpload.d.ts +0 -0
- /package/cjs/{utils → Uploader/utils}/ajaxUpload.js +0 -0
- /package/cjs/{@types/global.d.ts → global.d.ts} +0 -0
- /package/cjs/{Tree → internals/Tree}/TreeProvider.js +0 -0
- /package/cjs/{@types/common.js → internals/Tree/types.js} +0 -0
- /package/cjs/{utils/constants.d.ts → internals/constants/index.d.ts} +0 -0
- /package/cjs/{utils/constants.js → internals/constants/index.js} +0 -0
- /package/cjs/{utils → internals/constants}/statusIcons.d.ts +0 -0
- /package/cjs/{utils → internals/constants}/statusIcons.js +0 -0
- /package/cjs/{@types/common.d.ts → internals/types/index.d.ts} +0 -0
- /package/cjs/{utils → internals/utils}/BrowserDetection.d.ts +0 -0
- /package/cjs/{utils → internals/utils}/BrowserDetection.js +0 -0
- /package/cjs/{utils → internals/utils}/dom.d.ts +0 -0
- /package/cjs/{utils → internals/utils}/dom.js +0 -0
- /package/cjs/{utils → internals/utils}/events.d.ts +0 -0
- /package/cjs/{utils → internals/utils}/events.js +0 -0
- /package/cjs/{utils → internals/utils}/htmlPropsUtils.d.ts +0 -0
- /package/cjs/{utils → internals/utils}/htmlPropsUtils.js +0 -0
- /package/cjs/{utils → internals/utils}/prefix.d.ts +0 -0
- /package/cjs/{utils → internals/utils}/prefix.js +0 -0
- /package/esm/{utils → Uploader/utils}/ajaxUpload.d.ts +0 -0
- /package/esm/{utils → Uploader/utils}/ajaxUpload.js +0 -0
- /package/esm/{@types/global.d.ts → global.d.ts} +0 -0
- /package/esm/{Tree → internals/Tree}/TreeProvider.js +0 -0
- /package/esm/{@types/common.js → internals/Tree/types.js} +0 -0
- /package/esm/{utils/constants.d.ts → internals/constants/index.d.ts} +0 -0
- /package/esm/{utils/constants.js → internals/constants/index.js} +0 -0
- /package/esm/{utils → internals/constants}/statusIcons.d.ts +0 -0
- /package/esm/{utils → internals/constants}/statusIcons.js +0 -0
- /package/esm/{@types/common.d.ts → internals/types/index.d.ts} +0 -0
- /package/esm/{utils → internals/utils}/BrowserDetection.d.ts +0 -0
- /package/esm/{utils → internals/utils}/BrowserDetection.js +0 -0
- /package/esm/{utils → internals/utils}/dom.d.ts +0 -0
- /package/esm/{utils → internals/utils}/dom.js +0 -0
- /package/esm/{utils → internals/utils}/events.d.ts +0 -0
- /package/esm/{utils → internals/utils}/events.js +0 -0
- /package/esm/{utils → internals/utils}/htmlPropsUtils.d.ts +0 -0
- /package/esm/{utils → internals/utils}/htmlPropsUtils.js +0 -0
- /package/esm/{utils → internals/utils}/prefix.d.ts +0 -0
- /package/esm/{utils → internals/utils}/prefix.js +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Finds the first child that satisfies the given condition.
|
|
4
|
+
* @param children - The children to search.
|
|
5
|
+
* @param func - The condition function.
|
|
6
|
+
* @param context - The context to use for the condition function.
|
|
7
|
+
* @returns The first child that satisfies the condition, or undefined if no child is found.
|
|
8
|
+
*/
|
|
9
|
+
export declare function find(children: React.ReactNode, func: any, context?: any): React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Maps over the children and applies the given function to each child.
|
|
12
|
+
* @param children - The children to map over.
|
|
13
|
+
* @param func - The function to apply to each child.
|
|
14
|
+
* @param context - The context to use for the function.
|
|
15
|
+
* @returns An array of the results of applying the function to each child.
|
|
16
|
+
*/
|
|
17
|
+
export declare function map(children: React.ReactNode, func: any, context?: any): any[];
|
|
18
|
+
/**
|
|
19
|
+
* Maps over the children and clones each child element with the provided props.
|
|
20
|
+
* @param children - The children to clone and map over.
|
|
21
|
+
* @param func - The function to apply to each child element.
|
|
22
|
+
* @param context - The context to use for the function.
|
|
23
|
+
* @returns An array of the cloned and modified child elements.
|
|
24
|
+
*/
|
|
25
|
+
export declare function mapCloneElement(children: React.ReactNode, func: any, context?: any): any[];
|
|
26
|
+
/**
|
|
27
|
+
* Returns the number of children.
|
|
28
|
+
* @param children - The children to count.
|
|
29
|
+
* @returns The number of children.
|
|
30
|
+
*/
|
|
31
|
+
export declare function count(children: React.ReactNode): number;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if any child satisfies the given condition.
|
|
34
|
+
* @param children - The children to check.
|
|
35
|
+
* @param func - The condition function.
|
|
36
|
+
* @param context - The context to use for the condition function.
|
|
37
|
+
* @returns True if any child satisfies the condition, false otherwise.
|
|
38
|
+
*/
|
|
39
|
+
declare function some(children: React.ReactNode, func: any, context?: any): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Utility functions for working with React children.
|
|
42
|
+
*/
|
|
43
|
+
export declare const ReactChildren: {
|
|
44
|
+
/**
|
|
45
|
+
* Maps over the children and clones each child element with the provided props.
|
|
46
|
+
*/
|
|
47
|
+
mapCloneElement: typeof mapCloneElement;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the number of children.
|
|
50
|
+
*/
|
|
51
|
+
count: typeof count;
|
|
52
|
+
/**
|
|
53
|
+
* Checks if any child satisfies the given condition.
|
|
54
|
+
*/
|
|
55
|
+
some: typeof some;
|
|
56
|
+
/**
|
|
57
|
+
* Maps over the children and applies the given function to each child.
|
|
58
|
+
*/
|
|
59
|
+
map: typeof map;
|
|
60
|
+
/**
|
|
61
|
+
* Finds the first child that satisfies the given condition.
|
|
62
|
+
*/
|
|
63
|
+
find: typeof find;
|
|
64
|
+
};
|
|
65
|
+
export default ReactChildren;
|
|
@@ -7,17 +7,34 @@ exports.find = find;
|
|
|
7
7
|
exports.map = map;
|
|
8
8
|
exports.mapCloneElement = mapCloneElement;
|
|
9
9
|
exports.count = count;
|
|
10
|
-
exports.default = void 0;
|
|
10
|
+
exports.default = exports.ReactChildren = void 0;
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
/**
|
|
14
|
+
* Returns the type of the given object.
|
|
15
|
+
* @param object - The object to check.
|
|
16
|
+
* @returns The type of the object.
|
|
17
|
+
*/
|
|
13
18
|
function typeOf(object) {
|
|
14
19
|
if (typeof object === 'object' && object !== null) {
|
|
15
20
|
return object.type || object.$$typeof;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Checks if the given children is a React fragment.
|
|
26
|
+
* @param children - The children to check.
|
|
27
|
+
* @returns True if the children is a React fragment, false otherwise.
|
|
28
|
+
*/
|
|
18
29
|
function isFragment(children) {
|
|
19
30
|
return _react.default.Children.count(children) === 1 && typeOf(children) === Symbol.for('react.fragment');
|
|
20
31
|
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Flattens the given children into an array.
|
|
35
|
+
* @param children - The children to flatten.
|
|
36
|
+
* @returns The flattened array of children.
|
|
37
|
+
*/
|
|
21
38
|
function flatChildren(children) {
|
|
22
39
|
return _react.default.Children.toArray(_react.default.Children.map(children, function (child) {
|
|
23
40
|
if (isFragment(child)) {
|
|
@@ -27,6 +44,14 @@ function flatChildren(children) {
|
|
|
27
44
|
return child;
|
|
28
45
|
}));
|
|
29
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Finds the first child that satisfies the given condition.
|
|
50
|
+
* @param children - The children to search.
|
|
51
|
+
* @param func - The condition function.
|
|
52
|
+
* @param context - The context to use for the condition function.
|
|
53
|
+
* @returns The first child that satisfies the condition, or undefined if no child is found.
|
|
54
|
+
*/
|
|
30
55
|
function find(children, func, context) {
|
|
31
56
|
var index = 0;
|
|
32
57
|
var result;
|
|
@@ -41,6 +66,14 @@ function find(children, func, context) {
|
|
|
41
66
|
});
|
|
42
67
|
return result;
|
|
43
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Maps over the children and applies the given function to each child.
|
|
72
|
+
* @param children - The children to map over.
|
|
73
|
+
* @param func - The function to apply to each child.
|
|
74
|
+
* @param context - The context to use for the function.
|
|
75
|
+
* @returns An array of the results of applying the function to each child.
|
|
76
|
+
*/
|
|
44
77
|
function map(children, func, context) {
|
|
45
78
|
var index = 0;
|
|
46
79
|
return _react.default.Children.map(flatChildren(children), function (child) {
|
|
@@ -52,6 +85,14 @@ function map(children, func, context) {
|
|
|
52
85
|
return handle;
|
|
53
86
|
});
|
|
54
87
|
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Maps over the children and clones each child element with the provided props.
|
|
91
|
+
* @param children - The children to clone and map over.
|
|
92
|
+
* @param func - The function to apply to each child element.
|
|
93
|
+
* @param context - The context to use for the function.
|
|
94
|
+
* @returns An array of the cloned and modified child elements.
|
|
95
|
+
*/
|
|
55
96
|
function mapCloneElement(children, func, context) {
|
|
56
97
|
return map(children, function (child, index) {
|
|
57
98
|
return /*#__PURE__*/_react.default.cloneElement(child, (0, _extends2.default)({
|
|
@@ -59,9 +100,23 @@ function mapCloneElement(children, func, context) {
|
|
|
59
100
|
}, func(child, index)));
|
|
60
101
|
}, context);
|
|
61
102
|
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Returns the number of children.
|
|
106
|
+
* @param children - The children to count.
|
|
107
|
+
* @returns The number of children.
|
|
108
|
+
*/
|
|
62
109
|
function count(children) {
|
|
63
110
|
return _react.default.Children.count(flatChildren(children));
|
|
64
111
|
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Checks if any child satisfies the given condition.
|
|
115
|
+
* @param children - The children to check.
|
|
116
|
+
* @param func - The condition function.
|
|
117
|
+
* @param context - The context to use for the condition function.
|
|
118
|
+
* @returns True if any child satisfies the condition, false otherwise.
|
|
119
|
+
*/
|
|
65
120
|
function some(children, func, context) {
|
|
66
121
|
var index = 0;
|
|
67
122
|
var result = false;
|
|
@@ -80,11 +135,32 @@ function some(children, func, context) {
|
|
|
80
135
|
});
|
|
81
136
|
return result;
|
|
82
137
|
}
|
|
83
|
-
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Utility functions for working with React children.
|
|
141
|
+
*/
|
|
142
|
+
var ReactChildren = {
|
|
143
|
+
/**
|
|
144
|
+
* Maps over the children and clones each child element with the provided props.
|
|
145
|
+
*/
|
|
84
146
|
mapCloneElement: mapCloneElement,
|
|
147
|
+
/**
|
|
148
|
+
* Returns the number of children.
|
|
149
|
+
*/
|
|
85
150
|
count: count,
|
|
151
|
+
/**
|
|
152
|
+
* Checks if any child satisfies the given condition.
|
|
153
|
+
*/
|
|
86
154
|
some: some,
|
|
155
|
+
/**
|
|
156
|
+
* Maps over the children and applies the given function to each child.
|
|
157
|
+
*/
|
|
87
158
|
map: map,
|
|
159
|
+
/**
|
|
160
|
+
* Finds the first child that satisfies the given condition.
|
|
161
|
+
*/
|
|
88
162
|
find: find
|
|
89
163
|
};
|
|
164
|
+
exports.ReactChildren = ReactChildren;
|
|
165
|
+
var _default = ReactChildren;
|
|
90
166
|
exports.default = _default;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.attachParent = attachParent;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Attaches a parent object to the given data object.
|
|
9
|
+
*/
|
|
6
10
|
function attachParent(data, parent) {
|
|
7
11
|
// mark "parent" unenumable
|
|
8
12
|
Object.defineProperty(data, 'parent', {
|
|
@@ -12,4 +16,6 @@ function attachParent(data, parent) {
|
|
|
12
16
|
configurable: true
|
|
13
17
|
});
|
|
14
18
|
return data;
|
|
15
|
-
}
|
|
19
|
+
}
|
|
20
|
+
var _default = attachParent;
|
|
21
|
+
exports.default = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composes multiple functions into a single function.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```
|
|
6
|
+
* const a = () => console.log('a');
|
|
7
|
+
* const b = () => console.log('b');
|
|
8
|
+
* const c = () => console.log('c');
|
|
9
|
+
*
|
|
10
|
+
* const d = composeFunctions(a, b, c);
|
|
11
|
+
*
|
|
12
|
+
* d(); // a b c
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function composeFunctions(...fns: any[]): (first: any) => any;
|
|
16
|
+
export default composeFunctions;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.composeFunctions = composeFunctions;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Composes multiple functions into a single function.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* const a = () => console.log('a');
|
|
13
|
+
* const b = () => console.log('b');
|
|
14
|
+
* const c = () => console.log('c');
|
|
15
|
+
*
|
|
16
|
+
* const d = composeFunctions(a, b, c);
|
|
17
|
+
*
|
|
18
|
+
* d(); // a b c
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
function composeFunctions() {
|
|
22
|
+
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
|
+
fns[_key] = arguments[_key];
|
|
24
|
+
}
|
|
25
|
+
return function (first) {
|
|
26
|
+
return fns.reduce(function (previousValue, fn) {
|
|
27
|
+
return fn(previousValue);
|
|
28
|
+
}, first);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var _default = composeFunctions;
|
|
32
|
+
exports.default = _default;
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* @param {function} functions to chain
|
|
12
12
|
* @returns {function|undefined}
|
|
13
13
|
*/
|
|
14
|
-
declare function createChainedFunction<T = any>(...funcs: (T | null)[]): T;
|
|
14
|
+
export declare function createChainedFunction<T = any>(...funcs: (T | null)[]): T;
|
|
15
15
|
export default createChainedFunction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithAsProps, RsRefForwardingComponent } from '
|
|
2
|
+
import { WithAsProps, RsRefForwardingComponent } from '@/internals/types';
|
|
3
3
|
export declare type ComponentProps = WithAsProps & React.HTMLAttributes<HTMLDivElement>;
|
|
4
4
|
interface Props<TElement extends React.ElementType> extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
name: string;
|
|
@@ -9,5 +9,5 @@ interface Props<TElement extends React.ElementType> extends React.HTMLAttributes
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a component with `classPrefix` and `as` attributes.
|
|
11
11
|
*/
|
|
12
|
-
declare function createComponent<TElement extends React.ElementType = 'div'>({ name, componentAs, componentClassPrefix, ...defaultProps }: Props<TElement>): RsRefForwardingComponent<TElement, ComponentProps>;
|
|
12
|
+
export declare function createComponent<TElement extends React.ElementType = 'div'>({ name, componentAs, componentClassPrefix, ...defaultProps }: Props<TElement>): RsRefForwardingComponent<TElement, ComponentProps>;
|
|
13
13
|
export default createComponent;
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
+
exports.createComponent = createComponent;
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
|
10
11
|
var _kebabCase = _interopRequireDefault(require("lodash/kebabCase"));
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
-
var
|
|
13
|
+
var _hooks = require("../hooks");
|
|
13
14
|
/**
|
|
14
15
|
* Create a component with `classPrefix` and `as` attributes.
|
|
15
16
|
*/
|
|
@@ -26,7 +27,7 @@ function createComponent(_ref) {
|
|
|
26
27
|
className = props.className,
|
|
27
28
|
role = props.role,
|
|
28
29
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "classPrefix", "className", "role"]);
|
|
29
|
-
var _useClassNames = (0,
|
|
30
|
+
var _useClassNames = (0, _hooks.useClassNames)(classPrefix),
|
|
30
31
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
31
32
|
merge = _useClassNames.merge;
|
|
32
33
|
var classes = merge(className, withClassPrefix());
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy the time from one date to another.
|
|
3
|
+
*
|
|
4
|
+
* @param from - The source date.
|
|
5
|
+
* @param to - The target date.
|
|
6
|
+
* @returns The target date with the time copied from the source date.
|
|
7
|
+
*/
|
|
8
|
+
export declare function copyTime({ from, to }: {
|
|
9
|
+
from: Date;
|
|
10
|
+
to: Date;
|
|
11
|
+
}): Date;
|
|
12
|
+
export default copyTime;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.copyTime = copyTime;
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _getHours = _interopRequireDefault(require("date-fns/getHours"));
|
|
9
|
+
var _getMinutes = _interopRequireDefault(require("date-fns/getMinutes"));
|
|
10
|
+
var _getSeconds = _interopRequireDefault(require("date-fns/getSeconds"));
|
|
11
|
+
var _set = _interopRequireDefault(require("date-fns/set"));
|
|
12
|
+
var _isValid = _interopRequireDefault(require("date-fns/isValid"));
|
|
13
|
+
/**
|
|
14
|
+
* Copy the time from one date to another.
|
|
15
|
+
*
|
|
16
|
+
* @param from - The source date.
|
|
17
|
+
* @param to - The target date.
|
|
18
|
+
* @returns The target date with the time copied from the source date.
|
|
19
|
+
*/
|
|
20
|
+
function copyTime(_ref) {
|
|
21
|
+
var from = _ref.from,
|
|
22
|
+
to = _ref.to;
|
|
23
|
+
if (!(0, _isValid.default)(from) || !(0, _isValid.default)(to)) {
|
|
24
|
+
return to;
|
|
25
|
+
}
|
|
26
|
+
return (0, _set.default)(to, {
|
|
27
|
+
hours: (0, _getHours.default)(from),
|
|
28
|
+
minutes: (0, _getMinutes.default)(from),
|
|
29
|
+
seconds: (0, _getSeconds.default)(from)
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
var _default = copyTime;
|
|
33
|
+
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TimeProp } from './types';
|
|
2
|
+
interface CalendarProps {
|
|
3
|
+
[TimeProp.DisabledHours]?: (hours: number, date: Date) => boolean;
|
|
4
|
+
[TimeProp.DisabledMinutes]?: (minutes: number, date: Date) => boolean;
|
|
5
|
+
[TimeProp.DisabledSeconds]?: (seconds: number, date: Date) => boolean;
|
|
6
|
+
[TimeProp.HideHours]?: (hours: number, date: Date) => boolean;
|
|
7
|
+
[TimeProp.HideMinutes]?: (minutes: number, date: Date) => boolean;
|
|
8
|
+
[TimeProp.HideSeconds]?: (seconds: number, date: Date) => boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Verify that the time is valid.
|
|
12
|
+
*
|
|
13
|
+
* @param props - The calendar props.
|
|
14
|
+
* @param date - The date to check.
|
|
15
|
+
* @returns Whether the time is disabled.
|
|
16
|
+
*/
|
|
17
|
+
export declare function disableTime(props: CalendarProps, date: Date): boolean;
|
|
18
|
+
export default disableTime;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.disableTime = disableTime;
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
9
|
+
var _getHours = _interopRequireDefault(require("date-fns/getHours"));
|
|
10
|
+
var _getMinutes = _interopRequireDefault(require("date-fns/getMinutes"));
|
|
11
|
+
var _getSeconds = _interopRequireDefault(require("date-fns/getSeconds"));
|
|
12
|
+
var _types = require("./types");
|
|
13
|
+
var HOURS_PATTERN = /(Hours?)/;
|
|
14
|
+
var MINUTES_PATTERN = /(Minutes?)/;
|
|
15
|
+
var SECONDS_PATTERN = /(Seconds?)/;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Verify that the time is valid.
|
|
19
|
+
*
|
|
20
|
+
* @param props - The calendar props.
|
|
21
|
+
* @param date - The date to check.
|
|
22
|
+
* @returns Whether the time is disabled.
|
|
23
|
+
*/
|
|
24
|
+
function disableTime(props, date) {
|
|
25
|
+
if (!date) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
var disabledTimeProps = [_types.TimeProp.DisabledHours, _types.TimeProp.DisabledMinutes, _types.TimeProp.DisabledSeconds, _types.TimeProp.ShouldDisableHour, _types.TimeProp.ShouldDisableMinute, _types.TimeProp.ShouldDisableSecond];
|
|
29
|
+
var calendarProps = (0, _pick.default)(props, disabledTimeProps);
|
|
30
|
+
var mapProps = new Map(Object.entries(calendarProps));
|
|
31
|
+
return Array.from(mapProps.keys()).some(function (key) {
|
|
32
|
+
if (HOURS_PATTERN.test(key)) {
|
|
33
|
+
var _mapProps$get;
|
|
34
|
+
return (_mapProps$get = mapProps.get(key)) === null || _mapProps$get === void 0 ? void 0 : _mapProps$get((0, _getHours.default)(date), date);
|
|
35
|
+
}
|
|
36
|
+
if (MINUTES_PATTERN.test(key)) {
|
|
37
|
+
var _mapProps$get2;
|
|
38
|
+
return (_mapProps$get2 = mapProps.get(key)) === null || _mapProps$get2 === void 0 ? void 0 : _mapProps$get2((0, _getMinutes.default)(date), date);
|
|
39
|
+
}
|
|
40
|
+
if (SECONDS_PATTERN.test(key)) {
|
|
41
|
+
var _mapProps$get3;
|
|
42
|
+
return (_mapProps$get3 = mapProps.get(key)) === null || _mapProps$get3 === void 0 ? void 0 : _mapProps$get3((0, _getSeconds.default)(date), date);
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
var _default = disableTime;
|
|
48
|
+
exports.default = _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the time should be rendered based on the format.
|
|
3
|
+
*
|
|
4
|
+
* @param format - The format string.
|
|
5
|
+
* @returns Whether the time should be rendered.
|
|
6
|
+
*/
|
|
7
|
+
export declare const shouldRenderTime: (format: string) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Check if the month should be rendered based on the format.
|
|
10
|
+
*
|
|
11
|
+
* @param format - The format string.
|
|
12
|
+
* @returns Whether the month should be rendered.
|
|
13
|
+
*/
|
|
14
|
+
export declare const shouldRenderMonth: (format: string) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Check if the date should be rendered based on the format.
|
|
17
|
+
*
|
|
18
|
+
* @param format - The format string.
|
|
19
|
+
* @returns Whether the date should be rendered.
|
|
20
|
+
*/
|
|
21
|
+
export declare const shouldRenderDate: (format: string) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Check if only the time should be rendered based on the format.
|
|
24
|
+
*
|
|
25
|
+
* @param format - The format string.
|
|
26
|
+
* @returns Whether only the time should be rendered.
|
|
27
|
+
*/
|
|
28
|
+
export declare const shouldOnlyRenderTime: (format: string) => boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.shouldOnlyRenderTime = exports.shouldRenderDate = exports.shouldRenderMonth = exports.shouldRenderTime = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Check if the time should be rendered based on the format.
|
|
8
|
+
*
|
|
9
|
+
* @param format - The format string.
|
|
10
|
+
* @returns Whether the time should be rendered.
|
|
11
|
+
*/
|
|
12
|
+
var shouldRenderTime = function shouldRenderTime(format) {
|
|
13
|
+
return /([Hhms])/.test(format);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Check if the month should be rendered based on the format.
|
|
18
|
+
*
|
|
19
|
+
* @param format - The format string.
|
|
20
|
+
* @returns Whether the month should be rendered.
|
|
21
|
+
*/
|
|
22
|
+
exports.shouldRenderTime = shouldRenderTime;
|
|
23
|
+
var shouldRenderMonth = function shouldRenderMonth(format) {
|
|
24
|
+
return /[Yy]/.test(format) && /[ML]/.test(format);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Check if the date should be rendered based on the format.
|
|
29
|
+
*
|
|
30
|
+
* @param format - The format string.
|
|
31
|
+
* @returns Whether the date should be rendered.
|
|
32
|
+
*/
|
|
33
|
+
exports.shouldRenderMonth = shouldRenderMonth;
|
|
34
|
+
var shouldRenderDate = function shouldRenderDate(format) {
|
|
35
|
+
return /[Yy]/.test(format) && /[ML]/.test(format) && /[Dd]/.test(format);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if only the time should be rendered based on the format.
|
|
40
|
+
*
|
|
41
|
+
* @param format - The format string.
|
|
42
|
+
* @returns Whether only the time should be rendered.
|
|
43
|
+
*/
|
|
44
|
+
exports.shouldRenderDate = shouldRenderDate;
|
|
45
|
+
var shouldOnlyRenderTime = function shouldOnlyRenderTime(format) {
|
|
46
|
+
return /([Hhms])/.test(format) && !/([YyMDd])/.test(format);
|
|
47
|
+
};
|
|
48
|
+
exports.shouldOnlyRenderTime = shouldOnlyRenderTime;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the time with AM and PM reversed.
|
|
3
|
+
*
|
|
4
|
+
* @param date - The date to reverse the time meridian.
|
|
5
|
+
* @returns The date with the time meridian reversed.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getReversedTimeMeridian: (date: Date) => Date;
|
|
8
|
+
export default getReversedTimeMeridian;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = exports.getReversedTimeMeridian = void 0;
|
|
7
|
+
var _setHours = _interopRequireDefault(require("date-fns/setHours"));
|
|
8
|
+
var _getHours = _interopRequireDefault(require("date-fns/getHours"));
|
|
9
|
+
/**
|
|
10
|
+
* Get the time with AM and PM reversed.
|
|
11
|
+
*
|
|
12
|
+
* @param date - The date to reverse the time meridian.
|
|
13
|
+
* @returns The date with the time meridian reversed.
|
|
14
|
+
*/
|
|
15
|
+
var getReversedTimeMeridian = function getReversedTimeMeridian(date) {
|
|
16
|
+
var clonedDate = new Date(date.valueOf());
|
|
17
|
+
var hours = (0, _getHours.default)(clonedDate);
|
|
18
|
+
var nextHours = hours >= 12 ? hours - 12 : hours + 12;
|
|
19
|
+
return (0, _setHours.default)(clonedDate, nextHours);
|
|
20
|
+
};
|
|
21
|
+
exports.getReversedTimeMeridian = getReversedTimeMeridian;
|
|
22
|
+
var _default = getReversedTimeMeridian;
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.getWeekKeys = getWeekKeys;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves an array of week keys starting from the specified weekday.
|
|
9
|
+
*/
|
|
10
|
+
function getWeekKeys(weekStart) {
|
|
11
|
+
var weekKeys = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
|
|
12
|
+
if (typeof weekStart === 'undefined') {
|
|
13
|
+
return weekKeys;
|
|
14
|
+
}
|
|
15
|
+
return weekKeys.slice(weekStart).concat(weekKeys.slice(0, weekStart));
|
|
16
|
+
}
|
|
17
|
+
var _default = getWeekKeys;
|
|
18
|
+
exports.default = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
/**
|
|
3
|
+
* Get the first days of weeks in a month。
|
|
4
|
+
* @param firstDayOfMonth The first day of the month
|
|
5
|
+
* @param options.weekStart the index of the first day of the week (0 - Sunday)
|
|
6
|
+
* @param options.isoWeek Whether to use ISO week
|
|
7
|
+
* @returns A list of first days of weeks in a month
|
|
8
|
+
*/
|
|
9
|
+
export declare function getWeekStartDates(firstDayOfMonth: Date, options: {
|
|
10
|
+
weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
11
|
+
isoWeek?: boolean;
|
|
12
|
+
locale?: Locale;
|
|
13
|
+
}): Date[];
|
|
14
|
+
export default getWeekStartDates;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.getWeekStartDates = getWeekStartDates;
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _addDays = _interopRequireDefault(require("date-fns/addDays"));
|
|
9
|
+
var _startOfWeek = _interopRequireDefault(require("date-fns/startOfWeek"));
|
|
10
|
+
/**
|
|
11
|
+
* Get the first days of weeks in a month。
|
|
12
|
+
* @param firstDayOfMonth The first day of the month
|
|
13
|
+
* @param options.weekStart the index of the first day of the week (0 - Sunday)
|
|
14
|
+
* @param options.isoWeek Whether to use ISO week
|
|
15
|
+
* @returns A list of first days of weeks in a month
|
|
16
|
+
*/
|
|
17
|
+
function getWeekStartDates(firstDayOfMonth, options) {
|
|
18
|
+
var _options$weekStart = options.weekStart,
|
|
19
|
+
weekStart = _options$weekStart === void 0 ? 0 : _options$weekStart,
|
|
20
|
+
isoWeek = options.isoWeek,
|
|
21
|
+
locale = options.locale;
|
|
22
|
+
var weekStartsOn = isoWeek ? 1 : weekStart;
|
|
23
|
+
var firstDay = (0, _startOfWeek.default)(firstDayOfMonth, {
|
|
24
|
+
weekStartsOn: weekStartsOn,
|
|
25
|
+
locale: locale
|
|
26
|
+
});
|
|
27
|
+
var days = [firstDay];
|
|
28
|
+
for (var i = 1; i < 6; i++) {
|
|
29
|
+
days.push((0, _addDays.default)(firstDay, i * 7));
|
|
30
|
+
}
|
|
31
|
+
return days;
|
|
32
|
+
}
|
|
33
|
+
var _default = getWeekStartDates;
|
|
34
|
+
exports.default = _default;
|