rsuite 5.62.0 → 5.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoComplete/styles/index.css +84 -0
- package/Avatar/styles/index.css +21 -0
- package/Button/styles/index.css +147 -0
- package/CHANGELOG.md +9 -0
- package/Calendar/styles/index.css +84 -0
- package/Cascader/styles/index.css +84 -0
- package/CheckPicker/styles/index.css +84 -0
- package/CheckTree/styles/index.css +84 -0
- package/CheckTreePicker/styles/index.css +84 -0
- package/DatePicker/styles/index.css +84 -0
- package/DateRangePicker/styles/index.css +84 -0
- package/Dropdown/styles/index.css +105 -0
- package/IconButton/styles/index.css +63 -0
- package/InputGroup/styles/index.css +84 -0
- package/InputNumber/styles/index.css +84 -0
- package/InputPicker/styles/index.css +84 -0
- package/MultiCascadeTree/styles/index.css +84 -0
- package/MultiCascader/styles/index.css +84 -0
- package/Nav/styles/index.css +105 -0
- package/Navbar/styles/index.css +105 -0
- package/SelectPicker/styles/index.css +84 -0
- package/Tabs/styles/index.css +105 -0
- package/TagInput/styles/index.css +84 -0
- package/TagPicker/styles/index.css +84 -0
- package/Uploader/styles/index.css +84 -0
- package/cjs/Accordion/Accordion.d.ts +2 -2
- package/cjs/Accordion/Accordion.js +1 -2
- package/cjs/Accordion/index.js +1 -2
- package/cjs/Affix/Affix.d.ts +1 -1
- package/cjs/Affix/Affix.js +5 -4
- package/cjs/Affix/index.js +1 -2
- package/cjs/Animation/Bounce.d.ts +1 -1
- package/cjs/Animation/Bounce.js +3 -3
- package/cjs/Animation/Collapse.js +13 -12
- package/cjs/Animation/Fade.d.ts +1 -1
- package/cjs/Animation/Fade.js +3 -3
- package/cjs/Animation/Slide.js +3 -3
- package/cjs/Animation/Transition.d.ts +5 -5
- package/cjs/Animation/Transition.js +9 -11
- package/cjs/Animation/index.js +1 -2
- package/cjs/Animation/utils.js +3 -4
- package/cjs/AutoComplete/AutoComplete.d.ts +3 -3
- package/cjs/AutoComplete/AutoComplete.js +5 -4
- package/cjs/AutoComplete/Combobox.js +3 -3
- package/cjs/AutoComplete/index.js +1 -2
- package/cjs/AutoComplete/utils.js +3 -4
- package/cjs/Avatar/Avatar.d.ts +1 -1
- package/cjs/Avatar/Avatar.js +5 -4
- package/cjs/Avatar/AvatarIcon.d.ts +1 -1
- package/cjs/Avatar/AvatarIcon.js +1 -2
- package/cjs/Avatar/index.js +1 -2
- package/cjs/Avatar/useImage.d.ts +1 -1
- package/cjs/Avatar/useImage.js +1 -2
- package/cjs/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/cjs/AvatarGroup/AvatarGroup.js +6 -6
- package/cjs/AvatarGroup/index.js +1 -2
- package/cjs/Badge/Badge.d.ts +1 -1
- package/cjs/Badge/Badge.js +3 -3
- package/cjs/Badge/index.js +1 -2
- package/cjs/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/cjs/Breadcrumb/Breadcrumb.js +5 -4
- package/cjs/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/cjs/Breadcrumb/BreadcrumbItem.js +3 -3
- package/cjs/Breadcrumb/index.js +1 -2
- package/cjs/Button/Button.d.ts +1 -1
- package/cjs/Button/Button.js +5 -4
- package/cjs/Button/index.js +1 -2
- package/cjs/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/ButtonGroup/ButtonGroup.js +5 -4
- package/cjs/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/cjs/ButtonGroup/ButtonGroupContext.js +1 -2
- package/cjs/ButtonGroup/index.js +1 -2
- package/cjs/ButtonToolbar/ButtonToolbar.d.ts +1 -1
- package/cjs/ButtonToolbar/ButtonToolbar.js +3 -3
- package/cjs/ButtonToolbar/index.js +1 -2
- package/cjs/Calendar/Calendar.d.ts +1 -1
- package/cjs/Calendar/Calendar.js +5 -4
- package/cjs/Calendar/CalendarBody.d.ts +2 -2
- package/cjs/Calendar/CalendarBody.js +3 -3
- package/cjs/Calendar/CalendarContainer.d.ts +1 -1
- package/cjs/Calendar/CalendarContainer.js +5 -4
- package/cjs/Calendar/CalendarContext.js +7 -9
- package/cjs/Calendar/CalendarHeader.d.ts +1 -1
- package/cjs/Calendar/CalendarHeader.js +5 -4
- package/cjs/Calendar/MonthDropdown.d.ts +1 -1
- package/cjs/Calendar/MonthDropdown.js +6 -5
- package/cjs/Calendar/MonthDropdownItem.d.ts +1 -1
- package/cjs/Calendar/MonthDropdownItem.js +5 -4
- package/cjs/Calendar/Table.d.ts +1 -1
- package/cjs/Calendar/Table.js +3 -3
- package/cjs/Calendar/TableCell.d.ts +1 -1
- package/cjs/Calendar/TableCell.js +3 -3
- package/cjs/Calendar/TableHeaderRow.d.ts +2 -2
- package/cjs/Calendar/TableHeaderRow.js +3 -3
- package/cjs/Calendar/TableRow.d.ts +1 -1
- package/cjs/Calendar/TableRow.js +5 -4
- package/cjs/Calendar/TimeDropdown.d.ts +1 -1
- package/cjs/Calendar/TimeDropdown.js +7 -6
- package/cjs/Calendar/index.js +1 -2
- package/cjs/Calendar/types.js +3 -1
- package/cjs/Calendar/useCalendarDate.js +1 -2
- package/cjs/Calendar/useCalendarState.js +4 -6
- package/cjs/Carousel/Carousel.d.ts +1 -1
- package/cjs/Carousel/Carousel.js +5 -4
- package/cjs/Carousel/index.js +1 -2
- package/cjs/CascadeTree/CascadeTree.js +8 -5
- package/cjs/CascadeTree/SearchView.d.ts +2 -2
- package/cjs/CascadeTree/SearchView.js +3 -3
- package/cjs/CascadeTree/TreeView.d.ts +2 -2
- package/cjs/CascadeTree/TreeView.js +5 -4
- package/cjs/CascadeTree/hooks/index.js +1 -1
- package/cjs/CascadeTree/hooks/usePaths.d.ts +2 -2
- package/cjs/CascadeTree/hooks/usePaths.js +2 -3
- package/cjs/CascadeTree/hooks/useSearch.d.ts +1 -1
- package/cjs/CascadeTree/hooks/useSearch.js +1 -2
- 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/index.js +1 -2
- package/cjs/CascadeTree/types.d.ts +1 -1
- package/cjs/CascadeTree/types.js +3 -1
- package/cjs/CascadeTree/utils.d.ts +1 -1
- package/cjs/Cascader/Cascader.d.ts +2 -2
- package/cjs/Cascader/Cascader.js +8 -5
- package/cjs/Cascader/index.js +1 -2
- package/cjs/Cascader/useActive.js +3 -3
- package/cjs/CheckPicker/CheckPicker.d.ts +3 -3
- package/cjs/CheckPicker/CheckPicker.js +14 -7
- package/cjs/CheckPicker/index.js +1 -2
- package/cjs/CheckTree/CheckTree.d.ts +2 -2
- package/cjs/CheckTree/CheckTree.js +5 -4
- package/cjs/CheckTree/CheckTreeNode.d.ts +3 -3
- package/cjs/CheckTree/CheckTreeNode.js +5 -4
- package/cjs/CheckTree/CheckTreeView.d.ts +2 -2
- package/cjs/CheckTree/CheckTreeView.js +8 -5
- package/cjs/CheckTree/hooks/useTreeCheckState.d.ts +1 -1
- package/cjs/CheckTree/hooks/useTreeCheckState.js +1 -2
- package/cjs/CheckTree/hooks/useTreeNodeProps.d.ts +1 -1
- package/cjs/CheckTree/hooks/useTreeNodeProps.js +3 -3
- package/cjs/CheckTree/hooks/useTreeValue.js +1 -2
- package/cjs/CheckTree/index.js +1 -2
- package/cjs/CheckTree/utils.d.ts +2 -2
- package/cjs/CheckTree/utils.js +7 -7
- package/cjs/CheckTreePicker/CheckTreePicker.d.ts +4 -4
- package/cjs/CheckTreePicker/CheckTreePicker.js +5 -4
- package/cjs/CheckTreePicker/hooks/useFocusState.js +1 -2
- package/cjs/CheckTreePicker/index.js +1 -2
- package/cjs/Checkbox/Checkbox.d.ts +2 -2
- package/cjs/Checkbox/Checkbox.js +11 -6
- package/cjs/Checkbox/index.js +1 -2
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/cjs/CheckboxGroup/CheckboxGroup.js +5 -4
- package/cjs/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/cjs/CheckboxGroup/index.js +1 -2
- package/cjs/Col/Col.d.ts +1 -1
- package/cjs/Col/Col.js +3 -3
- package/cjs/Col/index.js +1 -2
- package/cjs/Container/Container.d.ts +2 -2
- package/cjs/Container/Container.js +6 -6
- package/cjs/Container/index.js +1 -2
- package/cjs/Content/Content.d.ts +2 -2
- package/cjs/Content/Content.js +1 -2
- package/cjs/Content/index.js +1 -2
- package/cjs/CustomProvider/CustomProvider.d.ts +1 -1
- package/cjs/CustomProvider/CustomProvider.js +6 -6
- package/cjs/CustomProvider/FormattedDate.d.ts +2 -2
- package/cjs/CustomProvider/FormattedDate.js +1 -2
- package/cjs/CustomProvider/index.js +3 -3
- package/cjs/DOMHelper/index.js +3 -3
- package/cjs/DOMHelper/isElement.js +1 -2
- package/cjs/DateInput/DateField.js +6 -9
- package/cjs/DateInput/DateInput.d.ts +1 -1
- package/cjs/DateInput/DateInput.js +5 -4
- package/cjs/DateInput/hooks/useDateInputState.d.ts +1 -1
- package/cjs/DateInput/hooks/useDateInputState.js +2 -3
- package/cjs/DateInput/hooks/useFieldCursor.js +2 -3
- package/cjs/DateInput/hooks/useIsFocused.js +2 -3
- package/cjs/DateInput/hooks/useKeyboardInputEvent.js +2 -3
- package/cjs/DateInput/hooks/useSelectedState.js +2 -3
- package/cjs/DateInput/index.js +2 -3
- package/cjs/DateInput/utils.js +3 -4
- package/cjs/DatePicker/DatePicker.d.ts +1 -1
- package/cjs/DatePicker/DatePicker.js +9 -5
- package/cjs/DatePicker/PredefinedRanges.js +7 -5
- package/cjs/DatePicker/Toolbar.d.ts +1 -1
- package/cjs/DatePicker/Toolbar.js +3 -3
- package/cjs/DatePicker/hooks/useCustomizedInput.js +1 -2
- package/cjs/DatePicker/hooks/useFocus.js +2 -2
- package/cjs/DatePicker/hooks/useMonthView.js +2 -2
- package/cjs/DatePicker/index.js +1 -2
- package/cjs/DatePicker/types.d.ts +1 -1
- package/cjs/DatePicker/types.js +3 -1
- package/cjs/DatePicker/utils.js +8 -9
- package/cjs/DateRangeInput/DateRangeInput.d.ts +2 -2
- package/cjs/DateRangeInput/DateRangeInput.js +5 -4
- package/cjs/DateRangeInput/index.js +1 -2
- package/cjs/DateRangeInput/utils.js +5 -6
- package/cjs/DateRangePicker/Calendar.d.ts +3 -3
- package/cjs/DateRangePicker/Calendar.js +3 -3
- package/cjs/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/cjs/DateRangePicker/DateRangePicker.js +29 -17
- package/cjs/DateRangePicker/DateRangePickerContext.js +5 -6
- package/cjs/DateRangePicker/Header.d.ts +2 -2
- package/cjs/DateRangePicker/Header.js +1 -2
- package/cjs/DateRangePicker/disabledDateUtils.js +5 -4
- package/cjs/DateRangePicker/hooks/useDateDisabled.d.ts +1 -1
- package/cjs/DateRangePicker/hooks/useDateDisabled.js +1 -2
- package/cjs/DateRangePicker/index.js +3 -3
- package/cjs/DateRangePicker/types.d.ts +5 -5
- package/cjs/DateRangePicker/types.js +3 -1
- package/cjs/DateRangePicker/utils.js +6 -8
- package/cjs/Divider/Divider.d.ts +1 -1
- package/cjs/Divider/Divider.js +3 -3
- package/cjs/Divider/index.js +1 -2
- package/cjs/Drawer/Drawer.d.ts +1 -1
- package/cjs/Drawer/Drawer.js +5 -4
- package/cjs/Drawer/DrawerContext.js +1 -2
- package/cjs/Drawer/index.js +1 -2
- package/cjs/Dropdown/Dropdown.d.ts +2 -2
- package/cjs/Dropdown/Dropdown.js +11 -7
- package/cjs/Dropdown/DropdownContext.js +1 -2
- package/cjs/Dropdown/DropdownItem.d.ts +1 -1
- package/cjs/Dropdown/DropdownItem.js +7 -5
- package/cjs/Dropdown/DropdownMenu.d.ts +1 -1
- package/cjs/Dropdown/DropdownMenu.js +15 -9
- package/cjs/Dropdown/DropdownSeparator.d.ts +1 -1
- package/cjs/Dropdown/DropdownSeparator.js +3 -3
- package/cjs/Dropdown/DropdownState.d.ts +1 -1
- package/cjs/Dropdown/DropdownState.js +5 -7
- package/cjs/Dropdown/DropdownToggle.d.ts +1 -1
- package/cjs/Dropdown/DropdownToggle.js +3 -3
- package/cjs/Dropdown/index.js +1 -2
- package/cjs/Dropdown/useRenderDropdownItem.d.ts +1 -1
- package/cjs/Dropdown/useRenderDropdownItem.js +2 -1
- package/cjs/FlexboxGrid/FlexboxGrid.d.ts +1 -1
- package/cjs/FlexboxGrid/FlexboxGrid.js +3 -3
- package/cjs/FlexboxGrid/FlexboxGridItem.d.ts +1 -1
- package/cjs/FlexboxGrid/FlexboxGridItem.js +3 -3
- package/cjs/FlexboxGrid/index.js +1 -2
- package/cjs/Footer/Footer.d.ts +2 -2
- package/cjs/Footer/Footer.js +1 -2
- package/cjs/Footer/index.js +1 -2
- package/cjs/Form/Form.d.ts +1 -1
- package/cjs/Form/Form.js +3 -3
- package/cjs/Form/FormContext.d.ts +5 -5
- package/cjs/Form/FormContext.js +8 -12
- package/cjs/Form/hooks/useFormValue.d.ts +1 -1
- package/cjs/Form/hooks/useSchemaModel.d.ts +1 -1
- package/cjs/Form/hooks/useSchemaModel.js +1 -2
- package/cjs/Form/index.js +2 -3
- package/cjs/FormControl/FormControl.d.ts +2 -2
- package/cjs/FormControl/FormControl.js +5 -4
- package/cjs/FormControl/hooks/useField.js +1 -2
- package/cjs/FormControl/hooks/useRegisterModel.js +1 -2
- package/cjs/FormControl/index.js +1 -2
- package/cjs/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/cjs/FormControlLabel/FormControlLabel.js +3 -3
- package/cjs/FormControlLabel/index.js +1 -2
- package/cjs/FormErrorMessage/FormErrorMessage.d.ts +1 -1
- package/cjs/FormErrorMessage/FormErrorMessage.js +3 -3
- package/cjs/FormErrorMessage/index.js +1 -2
- package/cjs/FormGroup/FormGroup.d.ts +1 -1
- package/cjs/FormGroup/FormGroup.js +7 -7
- package/cjs/FormGroup/index.js +4 -4
- package/cjs/FormHelpText/FormHelpText.d.ts +1 -1
- package/cjs/FormHelpText/FormHelpText.js +3 -3
- package/cjs/FormHelpText/index.js +1 -2
- package/cjs/Grid/Grid.d.ts +1 -1
- package/cjs/Grid/Grid.js +3 -3
- package/cjs/Grid/index.js +1 -2
- package/cjs/Header/Header.d.ts +2 -2
- package/cjs/Header/Header.js +1 -2
- package/cjs/Header/index.js +1 -2
- package/cjs/Heading/Heading.d.ts +1 -1
- package/cjs/Heading/Heading.js +3 -3
- package/cjs/Heading/index.js +1 -2
- package/cjs/HeadingGroup/HeadingGroup.d.ts +2 -2
- package/cjs/HeadingGroup/HeadingGroup.js +1 -2
- package/cjs/HeadingGroup/index.js +1 -2
- package/cjs/Highlight/Highlight.d.ts +1 -1
- package/cjs/Highlight/Highlight.js +3 -3
- package/cjs/Highlight/index.js +1 -2
- package/cjs/IconButton/IconButton.d.ts +1 -1
- package/cjs/IconButton/IconButton.js +3 -3
- package/cjs/IconButton/index.js +1 -2
- package/cjs/InlineEdit/EditableControls.js +3 -3
- package/cjs/InlineEdit/InlineEdit.d.ts +1 -1
- package/cjs/InlineEdit/InlineEdit.js +3 -3
- package/cjs/InlineEdit/index.js +1 -2
- package/cjs/InlineEdit/renderChildren.d.ts +1 -1
- package/cjs/InlineEdit/renderChildren.js +4 -1
- package/cjs/InlineEdit/useEditState.js +6 -4
- package/cjs/InlineEdit/useFocusEvent.d.ts +1 -1
- package/cjs/InlineEdit/useFocusEvent.js +1 -2
- package/cjs/Input/Input.d.ts +2 -2
- package/cjs/Input/Input.js +8 -5
- package/cjs/Input/index.js +1 -2
- package/cjs/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/InputGroup/InputGroup.js +6 -6
- package/cjs/InputGroup/InputGroupAddon.d.ts +1 -1
- package/cjs/InputGroup/InputGroupAddon.js +3 -3
- package/cjs/InputGroup/InputGroupButton.js +3 -3
- package/cjs/InputGroup/index.js +1 -2
- package/cjs/InputNumber/InputNumber.d.ts +1 -1
- package/cjs/InputNumber/InputNumber.js +5 -4
- package/cjs/InputNumber/index.js +1 -2
- package/cjs/InputPicker/InputAutosize.js +3 -3
- package/cjs/InputPicker/InputPicker.d.ts +3 -3
- package/cjs/InputPicker/InputPicker.js +10 -6
- package/cjs/InputPicker/InputPickerContext.d.ts +1 -1
- package/cjs/InputPicker/InputPickerContext.js +3 -5
- package/cjs/InputPicker/InputSearch.d.ts +1 -1
- package/cjs/InputPicker/InputSearch.js +3 -3
- package/cjs/InputPicker/TagList.js +3 -3
- package/cjs/InputPicker/TextBox.js +3 -3
- package/cjs/InputPicker/hooks/useData.d.ts +1 -1
- package/cjs/InputPicker/hooks/useData.js +1 -2
- package/cjs/InputPicker/hooks/useInput.d.ts +1 -1
- package/cjs/InputPicker/hooks/useInput.js +1 -2
- package/cjs/InputPicker/hooks/useMaxWidth.d.ts +1 -1
- package/cjs/InputPicker/hooks/useMaxWidth.js +1 -2
- package/cjs/InputPicker/index.js +1 -2
- package/cjs/InputPicker/utils.js +2 -3
- package/cjs/List/List.d.ts +1 -1
- package/cjs/List/List.js +5 -4
- package/cjs/List/ListContext.d.ts +1 -1
- package/cjs/List/ListContext.js +1 -2
- package/cjs/List/ListItem.d.ts +1 -1
- package/cjs/List/ListItem.js +5 -4
- package/cjs/List/helper/AutoScroller.d.ts +1 -1
- package/cjs/List/helper/AutoScroller.js +1 -2
- package/cjs/List/helper/useManager.d.ts +1 -1
- package/cjs/List/helper/useManager.js +1 -2
- package/cjs/List/helper/useSortHelper.d.ts +1 -1
- package/cjs/List/helper/useSortHelper.js +2 -3
- package/cjs/List/helper/utils.d.ts +2 -2
- package/cjs/List/helper/utils.js +4 -4
- package/cjs/List/index.js +1 -2
- package/cjs/Loader/Loader.d.ts +1 -1
- package/cjs/Loader/Loader.js +3 -3
- package/cjs/Loader/index.js +1 -2
- package/cjs/MaskedInput/MaskedInput.d.ts +2 -2
- package/cjs/MaskedInput/MaskedInput.js +1 -2
- package/cjs/MaskedInput/TextMask.d.ts +1 -1
- package/cjs/MaskedInput/TextMask.js +5 -4
- package/cjs/MaskedInput/conformToMask.js +7 -3
- package/cjs/MaskedInput/createTextMaskInputElement.js +6 -3
- package/cjs/MaskedInput/index.js +1 -2
- package/cjs/MaskedInput/types.d.ts +2 -2
- package/cjs/MaskedInput/types.js +3 -1
- package/cjs/MaskedInput/utilities.js +2 -3
- package/cjs/Message/Message.d.ts +1 -1
- package/cjs/Message/Message.js +8 -5
- package/cjs/Message/index.js +1 -2
- package/cjs/Modal/Modal.d.ts +2 -2
- package/cjs/Modal/Modal.js +12 -7
- package/cjs/Modal/ModalBody.d.ts +2 -2
- package/cjs/Modal/ModalBody.js +5 -4
- package/cjs/Modal/ModalContext.js +1 -2
- package/cjs/Modal/ModalDialog.d.ts +1 -1
- package/cjs/Modal/ModalDialog.js +5 -6
- package/cjs/Modal/ModalFooter.d.ts +2 -2
- package/cjs/Modal/ModalFooter.js +1 -2
- package/cjs/Modal/ModalHeader.d.ts +1 -1
- package/cjs/Modal/ModalHeader.js +5 -4
- package/cjs/Modal/ModalTitle.d.ts +3 -3
- package/cjs/Modal/ModalTitle.js +5 -4
- package/cjs/Modal/index.js +1 -2
- package/cjs/Modal/utils.d.ts +2 -2
- package/cjs/Modal/utils.js +2 -3
- package/cjs/MultiCascadeTree/MultiCascadeTree.d.ts +1 -1
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +3 -3
- package/cjs/MultiCascadeTree/SearchView.d.ts +2 -2
- package/cjs/MultiCascadeTree/SearchView.js +3 -3
- package/cjs/MultiCascadeTree/TreeView.d.ts +1 -1
- package/cjs/MultiCascadeTree/TreeView.js +3 -3
- package/cjs/MultiCascadeTree/hooks/index.js +1 -1
- package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +22 -21
- package/cjs/MultiCascadeTree/hooks/useColumnData.d.ts +1 -1
- package/cjs/MultiCascadeTree/hooks/useColumnData.js +2 -2
- package/cjs/MultiCascadeTree/hooks/useFlattenData.js +1 -2
- package/cjs/MultiCascadeTree/hooks/useSearch.d.ts +1 -1
- package/cjs/MultiCascadeTree/hooks/useSearch.js +1 -2
- package/cjs/MultiCascadeTree/hooks/useSelect.d.ts +1 -1
- package/cjs/MultiCascadeTree/hooks/useSelect.js +4 -3
- package/cjs/MultiCascadeTree/index.d.ts +1 -1
- package/cjs/MultiCascadeTree/index.js +1 -2
- package/cjs/MultiCascadeTree/types.d.ts +1 -1
- package/cjs/MultiCascadeTree/types.js +3 -1
- package/cjs/MultiCascadeTree/utils.d.ts +2 -2
- package/cjs/MultiCascadeTree/utils.js +6 -10
- package/cjs/MultiCascader/MultiCascader.d.ts +2 -2
- package/cjs/MultiCascader/MultiCascader.js +5 -4
- package/cjs/MultiCascader/index.js +1 -2
- package/cjs/Nav/Nav.d.ts +1 -1
- package/cjs/Nav/Nav.js +5 -4
- package/cjs/Nav/NavContext.js +1 -2
- package/cjs/Nav/NavDropdown.d.ts +2 -2
- package/cjs/Nav/NavDropdown.js +9 -6
- package/cjs/Nav/NavDropdownItem.d.ts +1 -1
- package/cjs/Nav/NavDropdownItem.js +7 -5
- package/cjs/Nav/NavDropdownMenu.d.ts +1 -1
- package/cjs/Nav/NavDropdownMenu.js +18 -10
- 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 +5 -4
- package/cjs/Nav/NavMenu.d.ts +3 -3
- package/cjs/Nav/NavMenu.js +8 -10
- package/cjs/Nav/index.js +1 -2
- package/cjs/Navbar/Navbar.d.ts +2 -2
- package/cjs/Navbar/Navbar.js +4 -5
- package/cjs/Navbar/NavbarBody.d.ts +2 -2
- package/cjs/Navbar/NavbarBody.js +1 -2
- package/cjs/Navbar/NavbarBrand.d.ts +2 -2
- package/cjs/Navbar/NavbarBrand.js +1 -2
- package/cjs/Navbar/NavbarDropdown.d.ts +2 -2
- package/cjs/Navbar/NavbarDropdown.js +7 -5
- package/cjs/Navbar/NavbarDropdownItem.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownItem.js +5 -4
- package/cjs/Navbar/NavbarDropdownMenu.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownMenu.js +14 -8
- package/cjs/Navbar/NavbarDropdownToggle.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdownToggle.js +3 -3
- package/cjs/Navbar/NavbarHeader.d.ts +2 -2
- package/cjs/Navbar/NavbarHeader.js +1 -2
- package/cjs/Navbar/NavbarItem.d.ts +1 -1
- package/cjs/Navbar/NavbarItem.js +5 -4
- package/cjs/Navbar/index.js +3 -3
- package/cjs/Notification/Notification.d.ts +2 -2
- package/cjs/Notification/Notification.js +11 -6
- package/cjs/Notification/index.js +1 -2
- package/cjs/Pagination/LimitPicker.d.ts +3 -3
- package/cjs/Pagination/LimitPicker.js +5 -4
- package/cjs/Pagination/Pagination.d.ts +1 -1
- package/cjs/Pagination/Pagination.js +5 -4
- package/cjs/Pagination/PaginationButton.d.ts +1 -1
- package/cjs/Pagination/PaginationButton.js +3 -3
- package/cjs/Pagination/PaginationGroup.d.ts +2 -2
- package/cjs/Pagination/PaginationGroup.js +3 -3
- package/cjs/Pagination/index.js +1 -2
- package/cjs/Panel/AccordionButton.d.ts +1 -1
- package/cjs/Panel/AccordionButton.js +3 -3
- package/cjs/Panel/Panel.d.ts +1 -1
- package/cjs/Panel/Panel.js +5 -4
- package/cjs/Panel/PanelBody.d.ts +2 -2
- package/cjs/Panel/PanelBody.js +5 -4
- package/cjs/Panel/PanelHeader.d.ts +2 -2
- package/cjs/Panel/PanelHeader.js +5 -4
- package/cjs/Panel/hooks/useExpanded.js +1 -2
- package/cjs/Panel/index.js +1 -2
- package/cjs/PanelGroup/PanelGroup.d.ts +2 -2
- package/cjs/PanelGroup/PanelGroup.js +6 -6
- package/cjs/PanelGroup/index.js +3 -3
- package/cjs/Placeholder/Placeholder.d.ts +1 -1
- package/cjs/Placeholder/Placeholder.js +1 -2
- package/cjs/Placeholder/PlaceholderGraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGraph.js +3 -3
- package/cjs/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGrid.js +3 -3
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderParagraph.js +5 -4
- package/cjs/Placeholder/index.js +1 -2
- package/cjs/Popover/Popover.d.ts +1 -1
- package/cjs/Popover/Popover.js +3 -3
- package/cjs/Popover/index.js +1 -2
- package/cjs/Progress/Progress.d.ts +1 -1
- package/cjs/Progress/Progress.js +1 -2
- package/cjs/Progress/ProgressCircle.d.ts +1 -1
- package/cjs/Progress/ProgressCircle.js +5 -4
- package/cjs/Progress/ProgressLine.d.ts +1 -1
- package/cjs/Progress/ProgressLine.js +3 -3
- package/cjs/Progress/index.js +1 -2
- package/cjs/Radio/Radio.d.ts +2 -2
- package/cjs/Radio/Radio.js +5 -4
- package/cjs/Radio/index.js +1 -2
- package/cjs/RadioGroup/RadioGroup.d.ts +1 -1
- package/cjs/RadioGroup/RadioGroup.js +6 -6
- package/cjs/RadioGroup/index.js +1 -2
- package/cjs/RadioTile/RadioTile.d.ts +2 -2
- package/cjs/RadioTile/RadioTile.js +5 -4
- package/cjs/RadioTile/index.js +1 -2
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +1 -1
- package/cjs/RadioTileGroup/RadioTileGroup.js +6 -6
- package/cjs/RadioTileGroup/index.js +1 -2
- package/cjs/RangeSlider/RangeSlider.d.ts +2 -2
- package/cjs/RangeSlider/RangeSlider.js +8 -5
- package/cjs/RangeSlider/index.js +1 -2
- package/cjs/Rate/Character.d.ts +1 -1
- package/cjs/Rate/Character.js +5 -4
- package/cjs/Rate/Rate.d.ts +1 -1
- package/cjs/Rate/Rate.js +5 -4
- package/cjs/Rate/index.js +1 -2
- package/cjs/Rate/utils.d.ts +1 -1
- package/cjs/Rate/utils.js +4 -6
- package/cjs/Row/Row.d.ts +1 -1
- package/cjs/Row/Row.js +3 -3
- package/cjs/Row/index.js +1 -2
- package/cjs/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/cjs/SafeAnchor/SafeAnchor.js +5 -4
- package/cjs/SafeAnchor/index.js +1 -2
- package/cjs/Schema/Schema.js +1 -2
- package/cjs/Schema/index.js +1 -2
- package/cjs/SelectPicker/SelectPicker.d.ts +3 -3
- package/cjs/SelectPicker/SelectPicker.js +14 -7
- package/cjs/SelectPicker/index.js +1 -2
- package/cjs/Sidebar/Sidebar.d.ts +1 -1
- package/cjs/Sidebar/Sidebar.js +5 -4
- package/cjs/Sidebar/index.js +1 -2
- package/cjs/Sidenav/ExpandedSidenavDropdown.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +5 -4
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +5 -4
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.d.ts +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +5 -4
- package/cjs/Sidenav/Node.js +3 -5
- package/cjs/Sidenav/Sidenav.d.ts +1 -1
- package/cjs/Sidenav/Sidenav.js +8 -7
- package/cjs/Sidenav/SidenavBody.d.ts +2 -2
- package/cjs/Sidenav/SidenavBody.js +1 -2
- package/cjs/Sidenav/SidenavDropdown.d.ts +2 -2
- package/cjs/Sidenav/SidenavDropdown.js +11 -7
- package/cjs/Sidenav/SidenavDropdownCollapse.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownCollapse.js +5 -4
- package/cjs/Sidenav/SidenavDropdownItem.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownItem.js +7 -5
- package/cjs/Sidenav/SidenavDropdownMenu.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownMenu.js +15 -9
- package/cjs/Sidenav/SidenavDropdownToggle.d.ts +1 -1
- package/cjs/Sidenav/SidenavDropdownToggle.js +3 -3
- package/cjs/Sidenav/SidenavHeader.d.ts +2 -2
- package/cjs/Sidenav/SidenavHeader.js +1 -2
- package/cjs/Sidenav/SidenavItem.d.ts +1 -1
- package/cjs/Sidenav/SidenavItem.js +7 -5
- package/cjs/Sidenav/SidenavToggle.d.ts +1 -1
- package/cjs/Sidenav/SidenavToggle.js +7 -4
- package/cjs/Sidenav/index.js +1 -2
- package/cjs/Slider/Graduated.d.ts +1 -1
- package/cjs/Slider/Graduated.js +4 -5
- package/cjs/Slider/Handle.d.ts +1 -1
- package/cjs/Slider/Handle.js +3 -3
- package/cjs/Slider/Input.js +3 -3
- package/cjs/Slider/Mark.d.ts +1 -1
- package/cjs/Slider/Mark.js +1 -2
- package/cjs/Slider/ProgressBar.d.ts +1 -1
- package/cjs/Slider/ProgressBar.js +1 -2
- package/cjs/Slider/Slider.d.ts +1 -1
- package/cjs/Slider/Slider.js +7 -7
- package/cjs/Slider/index.js +1 -2
- package/cjs/Slider/useDrag.js +1 -2
- package/cjs/Slider/utils.js +3 -4
- package/cjs/Stack/Stack.d.ts +1 -1
- package/cjs/Stack/Stack.js +5 -5
- package/cjs/Stack/StackItem.d.ts +3 -3
- package/cjs/Stack/StackItem.js +2 -1
- package/cjs/Stack/index.js +1 -2
- package/cjs/Steps/StepItem.d.ts +1 -1
- package/cjs/Steps/StepItem.js +3 -3
- package/cjs/Steps/Steps.d.ts +1 -1
- package/cjs/Steps/Steps.js +3 -3
- package/cjs/Steps/index.js +1 -2
- package/cjs/Table/Table.js +3 -3
- package/cjs/Table/index.js +1 -2
- package/cjs/Tabs/Tab.js +1 -2
- package/cjs/Tabs/TabPanel.d.ts +1 -1
- package/cjs/Tabs/TabPanel.js +3 -3
- package/cjs/Tabs/Tabs.d.ts +1 -1
- package/cjs/Tabs/Tabs.js +5 -5
- package/cjs/Tabs/index.js +1 -2
- package/cjs/Tag/Tag.d.ts +1 -1
- package/cjs/Tag/Tag.js +3 -3
- package/cjs/Tag/index.js +1 -2
- package/cjs/TagGroup/TagGroup.d.ts +2 -2
- package/cjs/TagGroup/TagGroup.js +1 -2
- package/cjs/TagGroup/index.js +1 -2
- package/cjs/TagInput/index.d.ts +2 -2
- package/cjs/TagInput/index.js +5 -4
- package/cjs/TagPicker/index.d.ts +1 -1
- package/cjs/TagPicker/index.js +5 -4
- package/cjs/Text/Text.d.ts +1 -1
- package/cjs/Text/Text.js +3 -3
- package/cjs/Text/index.js +1 -2
- package/cjs/Timeline/Timeline.d.ts +1 -1
- package/cjs/Timeline/Timeline.js +3 -3
- package/cjs/Timeline/TimelineItem.d.ts +1 -1
- package/cjs/Timeline/TimelineItem.js +3 -3
- package/cjs/Timeline/index.js +1 -2
- package/cjs/Toggle/Toggle.d.ts +1 -1
- package/cjs/Toggle/Toggle.js +5 -4
- package/cjs/Toggle/index.js +1 -2
- package/cjs/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/Tooltip/Tooltip.js +3 -3
- package/cjs/Tooltip/index.js +1 -2
- package/cjs/Tree/IndentLine.d.ts +2 -2
- package/cjs/Tree/IndentLine.js +1 -2
- package/cjs/Tree/Tree.d.ts +1 -1
- package/cjs/Tree/Tree.js +5 -4
- package/cjs/Tree/TreeNode.d.ts +3 -3
- package/cjs/Tree/TreeNode.js +5 -4
- package/cjs/Tree/TreeNodeToggle.d.ts +1 -1
- package/cjs/Tree/TreeNodeToggle.js +3 -3
- package/cjs/Tree/TreeView.d.ts +3 -3
- package/cjs/Tree/TreeView.js +6 -4
- package/cjs/Tree/hooks/useExpandTree.d.ts +1 -1
- package/cjs/Tree/hooks/useExpandTree.js +2 -3
- package/cjs/Tree/hooks/useFlattenTree.d.ts +1 -1
- package/cjs/Tree/hooks/useFlattenTree.js +1 -2
- package/cjs/Tree/hooks/useFocusTree.d.ts +1 -1
- package/cjs/Tree/hooks/useFocusTree.js +1 -2
- package/cjs/Tree/hooks/useForceUpdate.js +1 -2
- package/cjs/Tree/hooks/useTreeDrag.d.ts +1 -1
- package/cjs/Tree/hooks/useTreeDrag.js +6 -4
- package/cjs/Tree/hooks/useTreeNodeProps.d.ts +1 -1
- package/cjs/Tree/hooks/useTreeNodeProps.js +3 -3
- package/cjs/Tree/hooks/useTreeWithChildren.d.ts +1 -1
- package/cjs/Tree/hooks/useVirtualizedTreeData.d.ts +1 -1
- package/cjs/Tree/hooks/useVirtualizedTreeData.js +2 -2
- package/cjs/Tree/index.js +1 -2
- package/cjs/Tree/types.d.ts +3 -3
- package/cjs/Tree/types.js +3 -4
- package/cjs/Tree/utils/flattenTree.js +14 -15
- package/cjs/Tree/utils/focusableTree.d.ts +2 -2
- package/cjs/Tree/utils/focusableTree.js +8 -14
- package/cjs/Tree/utils/getNodeParentKeys.d.ts +1 -1
- package/cjs/Tree/utils/getTreeActiveNode.d.ts +2 -2
- package/cjs/Tree/utils/hasVisibleChildren.d.ts +1 -1
- package/cjs/Tree/utils/index.js +1 -1
- package/cjs/Tree/utils/treeKeyboardInteractions.d.ts +1 -1
- package/cjs/TreePicker/TreePicker.d.ts +3 -3
- package/cjs/TreePicker/TreePicker.js +5 -4
- package/cjs/TreePicker/hooks/useFocusState.js +1 -2
- package/cjs/TreePicker/index.js +1 -2
- package/cjs/Uploader/UploadFileItem.d.ts +1 -1
- package/cjs/Uploader/UploadFileItem.js +8 -7
- package/cjs/Uploader/UploadTrigger.js +6 -5
- package/cjs/Uploader/Uploader.d.ts +2 -2
- package/cjs/Uploader/Uploader.js +5 -4
- package/cjs/Uploader/index.js +1 -2
- package/cjs/Uploader/utils/previewFile.js +2 -3
- package/cjs/VisuallyHidden/VisuallyHidden.d.ts +2 -2
- package/cjs/VisuallyHidden/VisuallyHidden.js +1 -2
- package/cjs/VisuallyHidden/index.js +1 -2
- package/cjs/Whisper/Whisper.d.ts +3 -3
- package/cjs/Whisper/Whisper.js +5 -4
- package/cjs/Whisper/index.js +1 -2
- package/cjs/index.js +4 -3
- package/cjs/internals/CloseButton/CloseButton.d.ts +1 -1
- package/cjs/internals/CloseButton/CloseButton.js +3 -3
- package/cjs/internals/CloseButton/index.js +1 -2
- package/cjs/internals/Disclosure/Disclosure.d.ts +1 -1
- package/cjs/internals/Disclosure/Disclosure.js +3 -3
- package/cjs/internals/Disclosure/DisclosureButton.js +1 -2
- package/cjs/internals/Disclosure/DisclosureContent.js +1 -2
- package/cjs/internals/Disclosure/DisclosureContext.d.ts +2 -2
- package/cjs/internals/Disclosure/DisclosureContext.js +4 -6
- package/cjs/internals/Disclosure/index.js +1 -2
- package/cjs/internals/Menu/Menu.d.ts +1 -1
- package/cjs/internals/Menu/Menu.js +3 -3
- package/cjs/internals/Menu/MenuContext.d.ts +2 -2
- package/cjs/internals/Menu/MenuContext.js +7 -10
- package/cjs/internals/Menu/MenuItem.js +6 -4
- package/cjs/internals/Menu/Menubar.d.ts +1 -1
- package/cjs/internals/Menu/Menubar.js +2 -1
- package/cjs/internals/Menu/index.js +1 -2
- package/cjs/internals/Menu/useMenu.js +2 -3
- package/cjs/internals/Overlay/Modal.d.ts +2 -2
- package/cjs/internals/Overlay/Modal.js +9 -8
- package/cjs/internals/Overlay/ModalManager.js +1 -2
- package/cjs/internals/Overlay/Overlay.d.ts +1 -1
- package/cjs/internals/Overlay/Overlay.js +5 -6
- package/cjs/internals/Overlay/OverlayContext.js +1 -2
- package/cjs/internals/Overlay/OverlayTrigger.d.ts +2 -2
- package/cjs/internals/Overlay/OverlayTrigger.js +13 -11
- package/cjs/internals/Overlay/Position.d.ts +1 -1
- package/cjs/internals/Overlay/Position.js +3 -3
- package/cjs/internals/Overlay/index.js +1 -2
- package/cjs/internals/Overlay/positionUtils.d.ts +2 -2
- package/cjs/internals/Overlay/positionUtils.js +6 -6
- package/cjs/internals/Picker/ListCheckItem.d.ts +1 -1
- package/cjs/internals/Picker/ListCheckItem.js +3 -3
- 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 +3 -3
- package/cjs/internals/Picker/Listbox.d.ts +4 -4
- package/cjs/internals/Picker/Listbox.js +6 -4
- package/cjs/internals/Picker/PickerIndicator.d.ts +1 -1
- package/cjs/internals/Picker/PickerIndicator.js +1 -2
- package/cjs/internals/Picker/PickerLabel.d.ts +1 -1
- package/cjs/internals/Picker/PickerLabel.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 -4
- package/cjs/internals/Picker/PickerToggleTrigger.d.ts +3 -3
- package/cjs/internals/Picker/PickerToggleTrigger.js +7 -10
- package/cjs/internals/Picker/SelectedElement.d.ts +2 -2
- package/cjs/internals/Picker/SelectedElement.js +1 -2
- package/cjs/internals/Picker/ToggleButton.d.ts +1 -1
- package/cjs/internals/Picker/ToggleButton.js +1 -2
- package/cjs/internals/Picker/hooks/index.js +1 -1
- package/cjs/internals/Picker/hooks/useCombobox.js +1 -2
- package/cjs/internals/Picker/hooks/useFocusItemValue.js +1 -2
- package/cjs/internals/Picker/hooks/usePickerClassName.d.ts +1 -1
- package/cjs/internals/Picker/hooks/usePickerClassName.js +3 -3
- package/cjs/internals/Picker/hooks/usePickerRef.js +1 -2
- package/cjs/internals/Picker/hooks/useSearch.d.ts +1 -1
- package/cjs/internals/Picker/hooks/useSearch.js +4 -3
- package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +1 -2
- package/cjs/internals/Picker/index.js +4 -3
- package/cjs/internals/Picker/propTypes.js +4 -6
- package/cjs/internals/Picker/types.d.ts +4 -4
- package/cjs/internals/Picker/types.js +3 -1
- package/cjs/internals/Picker/utils.js +1 -1
- package/cjs/internals/Plaintext/Plaintext.d.ts +2 -2
- package/cjs/internals/Plaintext/Plaintext.js +3 -3
- package/cjs/internals/Plaintext/index.js +1 -2
- package/cjs/internals/Ripple/Ripple.d.ts +1 -1
- package/cjs/internals/Ripple/Ripple.js +7 -5
- package/cjs/internals/Ripple/index.js +1 -2
- package/cjs/internals/ScrollView/ScrollView.d.ts +1 -1
- package/cjs/internals/ScrollView/ScrollView.js +3 -3
- package/cjs/internals/ScrollView/index.js +1 -2
- package/cjs/internals/SearchBox/SearchBox.d.ts +1 -1
- package/cjs/internals/SearchBox/SearchBox.js +3 -3
- package/cjs/internals/SearchBox/index.js +1 -2
- package/cjs/internals/Tree/TreeProvider.d.ts +1 -1
- package/cjs/internals/Tree/TreeProvider.js +13 -19
- package/cjs/internals/Tree/TreeView.d.ts +1 -1
- package/cjs/internals/Tree/TreeView.js +6 -4
- package/cjs/internals/Tree/types.d.ts +1 -1
- package/cjs/internals/Tree/types.js +3 -1
- package/cjs/internals/Tree/utils/filterNodesOfTree.d.ts +1 -1
- package/cjs/internals/Tree/utils/filterNodesOfTree.js +3 -3
- package/cjs/internals/Tree/utils/getParentMap.js +8 -8
- package/cjs/internals/Tree/utils/getPathTowardsItem.d.ts +1 -1
- package/cjs/internals/Tree/utils/index.js +1 -1
- package/cjs/internals/Windowing/AutoSizer.js +5 -4
- package/cjs/internals/Windowing/List.d.ts +1 -1
- package/cjs/internals/Windowing/List.js +7 -7
- package/cjs/internals/Windowing/index.js +4 -3
- package/cjs/internals/constants/index.d.ts +1 -1
- package/cjs/internals/constants/index.js +22 -34
- package/cjs/internals/constants/statusIcons.d.ts +7 -7
- package/cjs/internals/constants/statusIcons.js +3 -5
- package/cjs/internals/hooks/index.js +1 -1
- package/cjs/internals/hooks/useClassNames.d.ts +8 -8
- package/cjs/internals/hooks/useClassNames.js +2 -3
- package/cjs/internals/hooks/useClickOutside.js +2 -3
- package/cjs/internals/hooks/useControlled.d.ts +1 -1
- package/cjs/internals/hooks/useControlled.js +5 -4
- package/cjs/internals/hooks/useCustom.js +2 -3
- package/cjs/internals/hooks/useElementResize.js +2 -3
- package/cjs/internals/hooks/useEnsuredRef.js +2 -3
- package/cjs/internals/hooks/useEventCallback.js +2 -3
- package/cjs/internals/hooks/useEventListener.js +2 -3
- package/cjs/internals/hooks/useFocus.js +2 -3
- package/cjs/internals/hooks/useFocusVirtualListItem.js +2 -3
- package/cjs/internals/hooks/useInternalId.js +2 -3
- package/cjs/internals/hooks/useIsMounted.js +2 -3
- package/cjs/internals/hooks/useIsomorphicLayoutEffect.js +3 -5
- package/cjs/internals/hooks/useMap.js +2 -3
- package/cjs/internals/hooks/useMount.js +3 -5
- package/cjs/internals/hooks/usePortal.d.ts +1 -1
- package/cjs/internals/hooks/usePortal.js +4 -4
- package/cjs/internals/hooks/useRootClose.d.ts +1 -1
- package/cjs/internals/hooks/useRootClose.js +2 -3
- package/cjs/internals/hooks/useTimeout.js +2 -3
- package/cjs/internals/hooks/useToggleCaret.d.ts +1 -1
- package/cjs/internals/hooks/useToggleCaret.js +2 -3
- package/cjs/internals/hooks/useUniqueId.js +4 -4
- package/cjs/internals/hooks/useUpdateEffect.js +3 -5
- package/cjs/internals/hooks/useUpdatedRef.js +2 -3
- package/cjs/internals/hooks/useWillUnmount.js +2 -3
- package/cjs/internals/propTypes/index.js +4 -4
- package/cjs/internals/propTypes/oneOf.js +1 -2
- package/cjs/internals/symbols.js +3 -5
- package/cjs/internals/types/index.d.ts +5 -5
- package/cjs/internals/types/index.js +3 -1
- package/cjs/internals/types/utils.d.ts +6 -6
- package/cjs/internals/types/utils.js +3 -1
- package/cjs/internals/utils/BrowserDetection.js +10 -18
- package/cjs/internals/utils/ReactChildren.js +5 -6
- package/cjs/internals/utils/attachParent.js +1 -2
- package/cjs/internals/utils/composeFunctions.js +1 -2
- package/cjs/internals/utils/createChainedFunction.js +1 -2
- package/cjs/internals/utils/createComponent.d.ts +2 -2
- package/cjs/internals/utils/createComponent.js +5 -4
- package/cjs/internals/utils/date/copyTime.js +1 -2
- package/cjs/internals/utils/date/disableTime.js +2 -3
- package/cjs/internals/utils/date/formatCheck.js +6 -10
- package/cjs/internals/utils/date/getReversedTimeMeridian.js +3 -5
- package/cjs/internals/utils/date/getWeekKeys.js +2 -3
- package/cjs/internals/utils/date/getWeekStartDates.js +2 -3
- package/cjs/internals/utils/date/index.js +1 -1
- package/cjs/internals/utils/date/omitHideDisabledProps.d.ts +1 -1
- package/cjs/internals/utils/date/omitHideDisabledProps.js +3 -5
- package/cjs/internals/utils/date/reverseDateRangeOmitTime.js +2 -3
- package/cjs/internals/utils/date/types.d.ts +1 -1
- package/cjs/internals/utils/date/types.js +4 -6
- package/cjs/internals/utils/deprecateComponent.js +2 -3
- package/cjs/internals/utils/getDOMNode.js +2 -3
- package/cjs/internals/utils/getDataGroupBy.js +3 -5
- package/cjs/internals/utils/getStringLength.js +2 -3
- package/cjs/internals/utils/guid.js +2 -3
- package/cjs/internals/utils/htmlPropsUtils.js +5 -9
- package/cjs/internals/utils/index.js +1 -1
- package/cjs/internals/utils/isOneOf.js +2 -3
- package/cjs/internals/utils/mergeRefs.d.ts +2 -2
- package/cjs/internals/utils/mergeRefs.js +2 -3
- package/cjs/internals/utils/placementPolyfill.js +2 -3
- package/cjs/internals/utils/prefix.js +5 -9
- package/cjs/internals/utils/render.js +4 -4
- package/cjs/internals/utils/safeSetSelection.js +4 -6
- package/cjs/internals/utils/scrollTopAnimation.js +2 -3
- package/cjs/internals/utils/shallowEqual.js +2 -3
- package/cjs/internals/utils/stringifyReactNode.js +2 -3
- package/cjs/internals/utils/tplTransform.d.ts +2 -2
- package/cjs/internals/utils/tplTransform.js +2 -3
- package/cjs/internals/utils/warnOnce.js +4 -5
- package/cjs/locales/ar_EG.js +2 -3
- package/cjs/locales/cs_CZ.js +2 -3
- package/cjs/locales/da_DK.js +2 -3
- package/cjs/locales/de_DE.js +2 -3
- package/cjs/locales/default.js +2 -3
- package/cjs/locales/en_GB.js +1 -2
- package/cjs/locales/en_US.js +2 -3
- package/cjs/locales/es_AR.js +2 -3
- package/cjs/locales/es_ES.js +2 -3
- package/cjs/locales/fa_IR.js +2 -3
- package/cjs/locales/fi_FI.js +2 -3
- package/cjs/locales/fr_FR.js +2 -3
- package/cjs/locales/hu_HU.js +2 -3
- package/cjs/locales/index.d.ts +15 -15
- package/cjs/locales/index.js +1 -1
- package/cjs/locales/it_IT.js +2 -3
- package/cjs/locales/ja_JP.js +2 -3
- package/cjs/locales/kk_KZ.js +2 -3
- package/cjs/locales/ko_KR.js +2 -3
- package/cjs/locales/ne_NP.js +2 -3
- package/cjs/locales/nl_NL.js +2 -3
- package/cjs/locales/pt_BR.js +2 -3
- package/cjs/locales/ru_RU.js +2 -3
- package/cjs/locales/sv_SE.js +2 -3
- package/cjs/locales/tr_TR.js +2 -3
- package/cjs/locales/zh_CN.js +2 -3
- package/cjs/locales/zh_TW.js +2 -3
- package/cjs/toaster/ToastContainer.d.ts +2 -2
- package/cjs/toaster/ToastContainer.js +11 -9
- package/cjs/toaster/ToastContext.js +1 -2
- package/cjs/toaster/index.js +1 -2
- package/cjs/toaster/toaster.js +15 -17
- package/cjs/useMediaQuery/index.js +1 -2
- package/cjs/useMediaQuery/useMediaQuery.js +6 -7
- package/cjs/useToaster/index.js +1 -2
- package/cjs/useToaster/useToaster.js +1 -2
- package/dist/rsuite.js +1092 -959
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +3 -3
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Accordion/Accordion.d.ts +2 -2
- 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 +4 -3
- package/esm/Affix/index.js +1 -1
- package/esm/Animation/Bounce.d.ts +1 -1
- package/esm/Animation/Bounce.js +4 -3
- package/esm/Animation/Collapse.js +10 -8
- package/esm/Animation/Fade.d.ts +1 -1
- package/esm/Animation/Fade.js +4 -3
- package/esm/Animation/Slide.js +4 -3
- package/esm/Animation/Transition.d.ts +5 -5
- package/esm/Animation/Transition.js +8 -7
- package/esm/Animation/index.js +5 -5
- package/esm/AutoComplete/AutoComplete.d.ts +3 -3
- package/esm/AutoComplete/AutoComplete.js +11 -10
- package/esm/AutoComplete/Combobox.js +4 -3
- package/esm/AutoComplete/index.js +1 -1
- package/esm/Avatar/Avatar.d.ts +1 -1
- package/esm/Avatar/Avatar.js +8 -7
- package/esm/Avatar/AvatarIcon.d.ts +1 -1
- package/esm/Avatar/index.js +1 -1
- package/esm/Avatar/useImage.d.ts +1 -1
- package/esm/Avatar/useImage.js +1 -1
- package/esm/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/esm/AvatarGroup/AvatarGroup.js +5 -4
- package/esm/AvatarGroup/index.js +1 -1
- package/esm/Badge/Badge.d.ts +1 -1
- package/esm/Badge/Badge.js +4 -3
- package/esm/Badge/index.js +1 -1
- package/esm/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/esm/Breadcrumb/Breadcrumb.js +4 -3
- package/esm/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/esm/Breadcrumb/BreadcrumbItem.js +4 -3
- package/esm/Breadcrumb/index.js +1 -1
- package/esm/Button/Button.d.ts +1 -1
- package/esm/Button/Button.js +8 -7
- package/esm/Button/index.js +1 -1
- package/esm/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/ButtonGroup/ButtonGroup.js +5 -4
- 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 +4 -3
- package/esm/ButtonToolbar/index.js +1 -1
- package/esm/Calendar/Calendar.d.ts +1 -1
- package/esm/Calendar/Calendar.js +7 -6
- package/esm/Calendar/CalendarBody.d.ts +2 -2
- package/esm/Calendar/CalendarBody.js +6 -5
- package/esm/Calendar/CalendarContainer.d.ts +1 -1
- package/esm/Calendar/CalendarContainer.js +10 -9
- package/esm/Calendar/CalendarHeader.d.ts +1 -1
- package/esm/Calendar/CalendarHeader.js +8 -7
- package/esm/Calendar/MonthDropdown.d.ts +1 -1
- package/esm/Calendar/MonthDropdown.js +7 -6
- package/esm/Calendar/MonthDropdownItem.d.ts +1 -1
- package/esm/Calendar/MonthDropdownItem.js +7 -6
- package/esm/Calendar/Table.d.ts +1 -1
- package/esm/Calendar/Table.js +6 -5
- package/esm/Calendar/TableCell.d.ts +1 -1
- package/esm/Calendar/TableCell.js +6 -5
- package/esm/Calendar/TableHeaderRow.d.ts +2 -2
- package/esm/Calendar/TableHeaderRow.js +5 -4
- package/esm/Calendar/TableRow.d.ts +1 -1
- package/esm/Calendar/TableRow.js +7 -6
- package/esm/Calendar/TimeDropdown.d.ts +1 -1
- package/esm/Calendar/TimeDropdown.js +6 -5
- package/esm/Calendar/index.js +4 -4
- package/esm/Calendar/types.js +1 -0
- package/esm/Calendar/useCalendarDate.js +1 -1
- package/esm/Calendar/useCalendarState.js +3 -3
- package/esm/Calendar/utils.js +1 -1
- package/esm/Carousel/Carousel.d.ts +1 -1
- package/esm/Carousel/Carousel.js +5 -4
- package/esm/Carousel/index.js +1 -1
- package/esm/CascadeTree/CascadeTree.js +11 -8
- package/esm/CascadeTree/SearchView.d.ts +2 -2
- package/esm/CascadeTree/SearchView.js +6 -5
- package/esm/CascadeTree/TreeView.d.ts +2 -2
- package/esm/CascadeTree/TreeView.js +5 -4
- package/esm/CascadeTree/hooks/index.js +3 -3
- package/esm/CascadeTree/hooks/usePaths.d.ts +2 -2
- 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 +5 -3
- 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/CascadeTree/types.js +1 -0
- package/esm/CascadeTree/utils.d.ts +1 -1
- package/esm/Cascader/Cascader.d.ts +2 -2
- package/esm/Cascader/Cascader.js +16 -13
- package/esm/Cascader/index.js +1 -1
- package/esm/Cascader/useActive.js +3 -2
- package/esm/CheckPicker/CheckPicker.d.ts +3 -3
- package/esm/CheckPicker/CheckPicker.js +17 -10
- package/esm/CheckPicker/index.js +1 -1
- package/esm/CheckTree/CheckTree.d.ts +2 -2
- package/esm/CheckTree/CheckTree.js +9 -8
- package/esm/CheckTree/CheckTreeNode.d.ts +3 -3
- package/esm/CheckTree/CheckTreeNode.js +9 -8
- package/esm/CheckTree/CheckTreeView.d.ts +2 -2
- package/esm/CheckTree/CheckTreeView.js +21 -18
- package/esm/CheckTree/hooks/useTreeCheckState.d.ts +1 -1
- package/esm/CheckTree/hooks/useTreeCheckState.js +3 -3
- package/esm/CheckTree/hooks/useTreeNodeProps.d.ts +1 -1
- 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 +3 -3
- package/esm/CheckTreePicker/CheckTreePicker.d.ts +4 -4
- package/esm/CheckTreePicker/CheckTreePicker.js +13 -12
- package/esm/CheckTreePicker/hooks/useFocusState.js +1 -1
- package/esm/CheckTreePicker/index.js +1 -1
- package/esm/Checkbox/Checkbox.d.ts +2 -2
- package/esm/Checkbox/Checkbox.js +12 -7
- package/esm/Checkbox/index.js +1 -1
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/esm/CheckboxGroup/CheckboxGroup.js +6 -5
- package/esm/CheckboxGroup/index.js +2 -2
- package/esm/Col/Col.d.ts +1 -1
- package/esm/Col/Col.js +4 -3
- package/esm/Col/index.js +1 -1
- package/esm/Container/Container.d.ts +2 -2
- package/esm/Container/Container.js +3 -2
- 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 +1 -1
- package/esm/CustomProvider/CustomProvider.js +6 -5
- package/esm/CustomProvider/FormattedDate.d.ts +2 -2
- 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 +2 -2
- package/esm/DateInput/DateInput.d.ts +1 -1
- package/esm/DateInput/DateInput.js +11 -10
- 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 -3
- package/esm/DatePicker/DatePicker.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +23 -19
- package/esm/DatePicker/PredefinedRanges.js +8 -6
- package/esm/DatePicker/Toolbar.d.ts +1 -1
- package/esm/DatePicker/Toolbar.js +6 -5
- package/esm/DatePicker/hooks/useCustomizedInput.js +4 -4
- package/esm/DatePicker/hooks/useFocus.js +4 -3
- package/esm/DatePicker/hooks/useMonthView.js +2 -1
- package/esm/DatePicker/index.js +1 -1
- package/esm/DatePicker/types.d.ts +1 -1
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.js +5 -4
- package/esm/DateRangeInput/DateRangeInput.d.ts +2 -2
- package/esm/DateRangeInput/DateRangeInput.js +7 -6
- package/esm/DateRangeInput/index.js +1 -1
- package/esm/DateRangeInput/utils.js +4 -4
- package/esm/DateRangePicker/Calendar.d.ts +3 -3
- package/esm/DateRangePicker/Calendar.js +6 -5
- package/esm/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/esm/DateRangePicker/DateRangePicker.js +43 -31
- package/esm/DateRangePicker/Header.d.ts +2 -2
- package/esm/DateRangePicker/Header.js +4 -4
- package/esm/DateRangePicker/disabledDateUtils.js +2 -2
- package/esm/DateRangePicker/hooks/useDateDisabled.d.ts +1 -1
- package/esm/DateRangePicker/index.js +2 -2
- package/esm/DateRangePicker/types.d.ts +5 -5
- package/esm/DateRangePicker/types.js +1 -0
- package/esm/DateRangePicker/utils.js +1 -1
- package/esm/Divider/Divider.d.ts +1 -1
- package/esm/Divider/Divider.js +3 -2
- package/esm/Divider/index.js +1 -1
- package/esm/Drawer/Drawer.d.ts +1 -1
- package/esm/Drawer/Drawer.js +8 -7
- package/esm/Drawer/index.js +1 -1
- package/esm/Dropdown/Dropdown.d.ts +2 -2
- package/esm/Dropdown/Dropdown.js +21 -17
- package/esm/Dropdown/DropdownItem.d.ts +1 -1
- package/esm/Dropdown/DropdownItem.js +15 -13
- package/esm/Dropdown/DropdownMenu.d.ts +1 -1
- package/esm/Dropdown/DropdownMenu.js +21 -15
- package/esm/Dropdown/DropdownSeparator.d.ts +1 -1
- package/esm/Dropdown/DropdownSeparator.js +3 -2
- package/esm/Dropdown/DropdownState.d.ts +1 -1
- package/esm/Dropdown/DropdownState.js +3 -3
- package/esm/Dropdown/DropdownToggle.d.ts +1 -1
- package/esm/Dropdown/DropdownToggle.js +5 -4
- package/esm/Dropdown/index.js +1 -1
- package/esm/Dropdown/useRenderDropdownItem.d.ts +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.d.ts +1 -1
- package/esm/FlexboxGrid/FlexboxGrid.js +5 -4
- package/esm/FlexboxGrid/FlexboxGridItem.d.ts +1 -1
- package/esm/FlexboxGrid/FlexboxGridItem.js +3 -2
- 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 +15 -14
- package/esm/Form/FormContext.d.ts +5 -5
- package/esm/Form/hooks/useFormClassNames.js +1 -1
- package/esm/Form/hooks/useFormValidate.js +2 -2
- package/esm/Form/hooks/useFormValue.d.ts +1 -1
- package/esm/Form/hooks/useFormValue.js +1 -1
- package/esm/Form/hooks/useSchemaModel.d.ts +1 -1
- package/esm/Form/index.js +2 -2
- package/esm/FormControl/FormControl.d.ts +2 -2
- package/esm/FormControl/FormControl.js +12 -11
- 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 +4 -3
- package/esm/FormControlLabel/index.js +1 -1
- package/esm/FormErrorMessage/FormErrorMessage.d.ts +1 -1
- package/esm/FormErrorMessage/FormErrorMessage.js +5 -4
- package/esm/FormErrorMessage/index.js +1 -1
- package/esm/FormGroup/FormGroup.d.ts +1 -1
- package/esm/FormGroup/FormGroup.js +3 -2
- package/esm/FormGroup/index.js +2 -2
- package/esm/FormHelpText/FormHelpText.d.ts +1 -1
- package/esm/FormHelpText/FormHelpText.js +6 -5
- package/esm/FormHelpText/index.js +1 -1
- package/esm/Grid/Grid.d.ts +1 -1
- package/esm/Grid/Grid.js +3 -2
- 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 +3 -2
- 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 +5 -4
- 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 +5 -4
- package/esm/IconButton/index.js +1 -1
- package/esm/InlineEdit/EditableControls.js +4 -3
- package/esm/InlineEdit/InlineEdit.d.ts +1 -1
- package/esm/InlineEdit/InlineEdit.js +9 -8
- package/esm/InlineEdit/index.js +1 -1
- package/esm/InlineEdit/renderChildren.d.ts +1 -1
- package/esm/InlineEdit/renderChildren.js +5 -2
- package/esm/InlineEdit/useEditState.js +6 -3
- 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 +12 -9
- package/esm/Input/index.js +1 -1
- package/esm/InputGroup/InputGroup.d.ts +1 -1
- package/esm/InputGroup/InputGroup.js +6 -5
- package/esm/InputGroup/InputGroupAddon.d.ts +1 -1
- package/esm/InputGroup/InputGroupAddon.js +3 -2
- package/esm/InputGroup/InputGroupButton.js +4 -3
- package/esm/InputGroup/index.js +1 -1
- package/esm/InputNumber/InputNumber.d.ts +1 -1
- package/esm/InputNumber/InputNumber.js +10 -9
- package/esm/InputNumber/index.js +1 -1
- package/esm/InputPicker/InputAutosize.js +1 -1
- package/esm/InputPicker/InputPicker.d.ts +3 -3
- package/esm/InputPicker/InputPicker.js +22 -18
- package/esm/InputPicker/InputPickerContext.d.ts +1 -1
- package/esm/InputPicker/InputSearch.d.ts +1 -1
- package/esm/InputPicker/InputSearch.js +3 -2
- package/esm/InputPicker/TagList.js +4 -3
- package/esm/InputPicker/TextBox.js +5 -4
- 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 +8 -7
- package/esm/List/ListContext.d.ts +1 -1
- package/esm/List/ListItem.d.ts +1 -1
- package/esm/List/ListItem.js +5 -4
- package/esm/List/helper/AutoScroller.d.ts +1 -1
- package/esm/List/helper/useManager.d.ts +1 -1
- package/esm/List/helper/useSortHelper.d.ts +1 -1
- package/esm/List/helper/useSortHelper.js +5 -5
- package/esm/List/helper/utils.d.ts +2 -2
- package/esm/List/index.js +1 -1
- package/esm/Loader/Loader.d.ts +1 -1
- package/esm/Loader/Loader.js +4 -3
- package/esm/Loader/index.js +1 -1
- package/esm/MaskedInput/MaskedInput.d.ts +2 -2
- package/esm/MaskedInput/MaskedInput.js +2 -2
- package/esm/MaskedInput/TextMask.d.ts +1 -1
- package/esm/MaskedInput/TextMask.js +4 -3
- package/esm/MaskedInput/conformToMask.js +7 -3
- package/esm/MaskedInput/createTextMaskInputElement.js +10 -7
- package/esm/MaskedInput/index.js +1 -1
- package/esm/MaskedInput/types.d.ts +2 -2
- package/esm/MaskedInput/types.js +1 -0
- package/esm/Message/Message.d.ts +1 -1
- package/esm/Message/Message.js +11 -8
- package/esm/Message/index.js +1 -1
- package/esm/Modal/Modal.d.ts +2 -2
- package/esm/Modal/Modal.js +22 -17
- package/esm/Modal/ModalBody.d.ts +2 -2
- package/esm/Modal/ModalBody.js +6 -5
- package/esm/Modal/ModalDialog.d.ts +1 -1
- package/esm/Modal/ModalDialog.js +5 -4
- 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 +8 -7
- package/esm/Modal/ModalTitle.d.ts +3 -3
- package/esm/Modal/ModalTitle.js +4 -3
- package/esm/Modal/index.js +1 -1
- package/esm/Modal/utils.d.ts +2 -2
- package/esm/MultiCascadeTree/MultiCascadeTree.d.ts +1 -1
- package/esm/MultiCascadeTree/MultiCascadeTree.js +6 -5
- package/esm/MultiCascadeTree/SearchView.d.ts +2 -2
- package/esm/MultiCascadeTree/SearchView.js +7 -6
- package/esm/MultiCascadeTree/TreeView.d.ts +1 -1
- package/esm/MultiCascadeTree/TreeView.js +6 -5
- package/esm/MultiCascadeTree/hooks/index.js +5 -5
- package/esm/MultiCascadeTree/hooks/useCascadeValue.js +23 -21
- package/esm/MultiCascadeTree/hooks/useColumnData.d.ts +1 -1
- package/esm/MultiCascadeTree/hooks/useColumnData.js +2 -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 +6 -4
- 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/types.js +1 -0
- package/esm/MultiCascadeTree/utils.d.ts +2 -2
- package/esm/MultiCascader/MultiCascader.d.ts +2 -2
- package/esm/MultiCascader/MultiCascader.js +13 -12
- package/esm/MultiCascader/index.js +1 -1
- package/esm/Nav/Nav.d.ts +1 -1
- package/esm/Nav/Nav.js +18 -17
- package/esm/Nav/NavDropdown.d.ts +2 -2
- package/esm/Nav/NavDropdown.js +16 -13
- package/esm/Nav/NavDropdownItem.d.ts +1 -1
- package/esm/Nav/NavDropdownItem.js +10 -8
- package/esm/Nav/NavDropdownMenu.d.ts +1 -1
- package/esm/Nav/NavDropdownMenu.js +21 -13
- package/esm/Nav/NavDropdownToggle.d.ts +1 -1
- package/esm/Nav/NavDropdownToggle.js +5 -4
- package/esm/Nav/NavItem.d.ts +1 -1
- package/esm/Nav/NavItem.js +7 -6
- package/esm/Nav/NavMenu.d.ts +3 -3
- package/esm/Nav/NavMenu.js +11 -11
- package/esm/Nav/index.js +1 -1
- package/esm/Navbar/Navbar.d.ts +2 -2
- package/esm/Navbar/Navbar.js +6 -5
- package/esm/Navbar/NavbarBody.d.ts +2 -2
- package/esm/Navbar/NavbarBody.js +1 -1
- package/esm/Navbar/NavbarBrand.d.ts +2 -2
- package/esm/Navbar/NavbarBrand.js +1 -1
- package/esm/Navbar/NavbarDropdown.d.ts +2 -2
- package/esm/Navbar/NavbarDropdown.js +12 -10
- package/esm/Navbar/NavbarDropdownItem.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownItem.js +9 -8
- package/esm/Navbar/NavbarDropdownMenu.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownMenu.js +16 -10
- package/esm/Navbar/NavbarDropdownToggle.d.ts +1 -1
- package/esm/Navbar/NavbarDropdownToggle.js +5 -4
- package/esm/Navbar/NavbarHeader.d.ts +2 -2
- package/esm/Navbar/NavbarHeader.js +1 -1
- package/esm/Navbar/NavbarItem.d.ts +1 -1
- package/esm/Navbar/NavbarItem.js +7 -6
- package/esm/Navbar/index.js +2 -2
- package/esm/Notification/Notification.d.ts +2 -2
- package/esm/Notification/Notification.js +13 -8
- package/esm/Notification/index.js +1 -1
- package/esm/Pagination/LimitPicker.d.ts +3 -3
- package/esm/Pagination/LimitPicker.js +4 -3
- package/esm/Pagination/Pagination.d.ts +1 -1
- package/esm/Pagination/Pagination.js +6 -4
- package/esm/Pagination/PaginationButton.d.ts +1 -1
- package/esm/Pagination/PaginationButton.js +5 -4
- package/esm/Pagination/PaginationGroup.d.ts +2 -2
- package/esm/Pagination/PaginationGroup.js +8 -7
- package/esm/Pagination/index.js +1 -1
- package/esm/Panel/AccordionButton.d.ts +1 -1
- package/esm/Panel/AccordionButton.js +3 -2
- package/esm/Panel/Panel.d.ts +1 -1
- package/esm/Panel/Panel.js +7 -6
- package/esm/Panel/PanelBody.d.ts +2 -2
- package/esm/Panel/PanelBody.js +7 -5
- package/esm/Panel/PanelHeader.d.ts +2 -2
- package/esm/Panel/PanelHeader.js +5 -4
- package/esm/Panel/hooks/useExpanded.js +2 -2
- package/esm/Panel/index.js +1 -1
- package/esm/PanelGroup/PanelGroup.d.ts +2 -2
- package/esm/PanelGroup/PanelGroup.js +3 -2
- 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 +3 -2
- package/esm/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGrid.js +3 -2
- package/esm/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/esm/Placeholder/PlaceholderParagraph.js +4 -3
- package/esm/Placeholder/index.js +1 -1
- package/esm/Popover/Popover.d.ts +1 -1
- package/esm/Popover/Popover.js +4 -3
- 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 +5 -4
- package/esm/Progress/ProgressLine.d.ts +1 -1
- package/esm/Progress/ProgressLine.js +5 -4
- package/esm/Progress/index.js +1 -1
- package/esm/Radio/Radio.d.ts +2 -2
- package/esm/Radio/Radio.js +6 -5
- package/esm/Radio/index.js +1 -1
- package/esm/RadioGroup/RadioGroup.d.ts +1 -1
- package/esm/RadioGroup/RadioGroup.js +5 -4
- package/esm/RadioGroup/index.js +1 -1
- package/esm/RadioTile/RadioTile.d.ts +2 -2
- package/esm/RadioTile/RadioTile.js +6 -5
- package/esm/RadioTile/index.js +1 -1
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +1 -1
- package/esm/RadioTileGroup/RadioTileGroup.js +4 -3
- package/esm/RadioTileGroup/index.js +1 -1
- package/esm/RangeSlider/RangeSlider.d.ts +2 -2
- package/esm/RangeSlider/RangeSlider.js +12 -9
- package/esm/RangeSlider/index.js +1 -1
- package/esm/Rate/Character.d.ts +1 -1
- package/esm/Rate/Character.js +3 -2
- package/esm/Rate/Rate.d.ts +1 -1
- package/esm/Rate/Rate.js +9 -8
- package/esm/Rate/index.js +1 -1
- package/esm/Rate/utils.d.ts +1 -1
- package/esm/Row/Row.d.ts +1 -1
- package/esm/Row/Row.js +4 -3
- package/esm/Row/index.js +1 -1
- package/esm/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/esm/SafeAnchor/SafeAnchor.js +2 -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 +16 -9
- package/esm/SelectPicker/index.js +1 -1
- package/esm/Sidebar/Sidebar.d.ts +1 -1
- package/esm/Sidebar/Sidebar.js +4 -3
- package/esm/Sidebar/index.js +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdown.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdown.js +12 -11
- package/esm/Sidenav/ExpandedSidenavDropdownItem.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +9 -8
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.d.ts +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +8 -7
- package/esm/Sidenav/Node.js +1 -2
- package/esm/Sidenav/Sidenav.d.ts +1 -1
- package/esm/Sidenav/Sidenav.js +11 -9
- package/esm/Sidenav/SidenavBody.d.ts +2 -2
- package/esm/Sidenav/SidenavBody.js +1 -1
- package/esm/Sidenav/SidenavDropdown.d.ts +2 -2
- package/esm/Sidenav/SidenavDropdown.js +21 -17
- package/esm/Sidenav/SidenavDropdownCollapse.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownCollapse.js +7 -5
- package/esm/Sidenav/SidenavDropdownItem.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownItem.js +12 -10
- package/esm/Sidenav/SidenavDropdownMenu.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownMenu.js +19 -13
- package/esm/Sidenav/SidenavDropdownToggle.d.ts +1 -1
- package/esm/Sidenav/SidenavDropdownToggle.js +5 -4
- 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 +13 -11
- package/esm/Sidenav/SidenavToggle.d.ts +1 -1
- package/esm/Sidenav/SidenavToggle.js +8 -5
- package/esm/Sidenav/index.js +1 -1
- package/esm/Slider/Graduated.d.ts +1 -1
- package/esm/Slider/Graduated.js +6 -6
- package/esm/Slider/Handle.d.ts +1 -1
- package/esm/Slider/Handle.js +7 -6
- package/esm/Slider/Input.js +2 -1
- 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 +8 -7
- package/esm/Slider/index.js +1 -1
- package/esm/Slider/useDrag.js +1 -1
- package/esm/Slider/utils.js +2 -2
- package/esm/Stack/Stack.d.ts +1 -1
- package/esm/Stack/Stack.js +8 -7
- package/esm/Stack/StackItem.d.ts +3 -3
- package/esm/Stack/StackItem.js +3 -2
- package/esm/Stack/index.js +1 -1
- package/esm/Steps/StepItem.d.ts +1 -1
- package/esm/Steps/StepItem.js +4 -3
- package/esm/Steps/Steps.d.ts +1 -1
- package/esm/Steps/Steps.js +6 -5
- package/esm/Steps/index.js +1 -1
- package/esm/Table/Table.js +3 -2
- package/esm/Table/index.js +1 -1
- package/esm/Tabs/TabPanel.d.ts +1 -1
- package/esm/Tabs/TabPanel.js +3 -2
- package/esm/Tabs/Tabs.d.ts +1 -1
- package/esm/Tabs/Tabs.js +9 -8
- package/esm/Tabs/index.js +1 -1
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/Tag.js +4 -3
- 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 +2 -2
- package/esm/TagInput/index.js +4 -3
- package/esm/TagPicker/index.d.ts +1 -1
- package/esm/TagPicker/index.js +4 -3
- package/esm/Text/Text.d.ts +1 -1
- package/esm/Text/Text.js +4 -3
- package/esm/Text/index.js +1 -1
- package/esm/Timeline/Timeline.d.ts +1 -1
- package/esm/Timeline/Timeline.js +6 -5
- package/esm/Timeline/TimelineItem.d.ts +1 -1
- package/esm/Timeline/TimelineItem.js +3 -2
- package/esm/Timeline/index.js +1 -1
- package/esm/Toggle/Toggle.d.ts +1 -1
- package/esm/Toggle/Toggle.js +7 -6
- package/esm/Toggle/index.js +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +3 -2
- package/esm/Tooltip/index.js +1 -1
- package/esm/Tree/IndentLine.d.ts +2 -2
- package/esm/Tree/IndentLine.js +1 -1
- package/esm/Tree/Tree.d.ts +1 -1
- package/esm/Tree/Tree.js +8 -7
- package/esm/Tree/TreeNode.d.ts +3 -3
- package/esm/Tree/TreeNode.js +7 -6
- package/esm/Tree/TreeNodeToggle.d.ts +1 -1
- package/esm/Tree/TreeNodeToggle.js +4 -3
- package/esm/Tree/TreeView.d.ts +3 -3
- package/esm/Tree/TreeView.js +18 -16
- 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 -6
- package/esm/Tree/hooks/useTreeDrag.d.ts +1 -1
- package/esm/Tree/hooks/useTreeDrag.js +10 -8
- package/esm/Tree/hooks/useTreeNodeProps.d.ts +1 -1
- package/esm/Tree/hooks/useTreeNodeProps.js +5 -5
- 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 +6 -5
- package/esm/Tree/index.js +1 -1
- package/esm/Tree/types.d.ts +3 -3
- package/esm/Tree/types.js +5 -3
- package/esm/Tree/utils/flattenTree.js +13 -13
- 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 +12 -11
- 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 +7 -5
- package/esm/Uploader/UploadTrigger.js +6 -5
- package/esm/Uploader/Uploader.d.ts +2 -2
- package/esm/Uploader/Uploader.js +9 -8
- package/esm/Uploader/index.js +1 -1
- 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 +3 -3
- package/esm/Whisper/Whisper.js +7 -6
- 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 +3 -2
- package/esm/internals/CloseButton/index.js +1 -1
- package/esm/internals/Disclosure/Disclosure.d.ts +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/DisclosureContext.d.ts +2 -2
- package/esm/internals/Disclosure/DisclosureContext.js +3 -3
- package/esm/internals/Disclosure/index.js +1 -1
- package/esm/internals/Disclosure/useDisclosureContext.js +1 -1
- package/esm/internals/Menu/Menu.d.ts +1 -1
- package/esm/internals/Menu/Menu.js +5 -5
- package/esm/internals/Menu/MenuContext.d.ts +2 -2
- package/esm/internals/Menu/MenuContext.js +6 -6
- package/esm/internals/Menu/MenuItem.js +5 -3
- package/esm/internals/Menu/Menubar.d.ts +1 -1
- 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 +2 -2
- package/esm/internals/Overlay/Modal.js +11 -9
- package/esm/internals/Overlay/Overlay.d.ts +1 -1
- package/esm/internals/Overlay/Overlay.js +5 -5
- package/esm/internals/Overlay/OverlayTrigger.d.ts +2 -2
- package/esm/internals/Overlay/OverlayTrigger.js +14 -11
- 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 +2 -2
- package/esm/internals/Overlay/positionUtils.js +3 -1
- package/esm/internals/Picker/ListCheckItem.d.ts +1 -1
- package/esm/internals/Picker/ListCheckItem.js +5 -4
- package/esm/internals/Picker/ListItem.d.ts +1 -1
- package/esm/internals/Picker/ListItem.js +4 -3
- package/esm/internals/Picker/ListItemGroup.d.ts +1 -1
- package/esm/internals/Picker/ListItemGroup.js +3 -2
- package/esm/internals/Picker/Listbox.d.ts +4 -4
- package/esm/internals/Picker/Listbox.js +11 -9
- package/esm/internals/Picker/PickerIndicator.d.ts +1 -1
- package/esm/internals/Picker/PickerIndicator.js +4 -4
- package/esm/internals/Picker/PickerLabel.d.ts +1 -1
- package/esm/internals/Picker/PickerLabel.js +3 -2
- package/esm/internals/Picker/PickerPopup.d.ts +1 -1
- package/esm/internals/Picker/PickerPopup.js +5 -4
- package/esm/internals/Picker/PickerToggle.d.ts +1 -1
- package/esm/internals/Picker/PickerToggle.js +10 -9
- package/esm/internals/Picker/PickerToggleTrigger.d.ts +3 -3
- package/esm/internals/Picker/PickerToggleTrigger.js +5 -4
- package/esm/internals/Picker/SelectedElement.d.ts +2 -2
- package/esm/internals/Picker/SelectedElement.js +1 -1
- package/esm/internals/Picker/ToggleButton.d.ts +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.js +1 -1
- package/esm/internals/Picker/hooks/useFocusItemValue.js +4 -4
- package/esm/internals/Picker/hooks/usePickerClassName.d.ts +1 -1
- package/esm/internals/Picker/hooks/usePickerClassName.js +4 -3
- package/esm/internals/Picker/hooks/usePickerRef.js +2 -2
- package/esm/internals/Picker/hooks/useSearch.d.ts +1 -1
- package/esm/internals/Picker/hooks/useSearch.js +4 -2
- package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +2 -2
- package/esm/internals/Picker/index.js +14 -14
- package/esm/internals/Picker/propTypes.js +3 -3
- package/esm/internals/Picker/types.d.ts +4 -4
- package/esm/internals/Picker/types.js +1 -0
- package/esm/internals/Picker/utils.js +3 -3
- package/esm/internals/Plaintext/Plaintext.d.ts +2 -2
- package/esm/internals/Plaintext/Plaintext.js +3 -2
- package/esm/internals/Plaintext/index.js +1 -1
- package/esm/internals/Ripple/Ripple.d.ts +1 -1
- package/esm/internals/Ripple/Ripple.js +7 -5
- package/esm/internals/Ripple/index.js +1 -1
- package/esm/internals/ScrollView/ScrollView.d.ts +1 -1
- package/esm/internals/ScrollView/ScrollView.js +5 -4
- package/esm/internals/ScrollView/hooks/useScrollState.js +1 -1
- package/esm/internals/ScrollView/index.js +1 -1
- package/esm/internals/SearchBox/SearchBox.d.ts +1 -1
- package/esm/internals/SearchBox/SearchBox.js +5 -4
- package/esm/internals/SearchBox/index.js +1 -1
- package/esm/internals/Tree/TreeProvider.d.ts +1 -1
- package/esm/internals/Tree/TreeProvider.js +5 -5
- package/esm/internals/Tree/TreeView.d.ts +1 -1
- package/esm/internals/Tree/TreeView.js +8 -5
- package/esm/internals/Tree/index.js +1 -1
- package/esm/internals/Tree/types.d.ts +1 -1
- package/esm/internals/Tree/types.js +1 -0
- package/esm/internals/Tree/utils/filterNodesOfTree.d.ts +1 -1
- package/esm/internals/Tree/utils/filterNodesOfTree.js +3 -3
- package/esm/internals/Tree/utils/getParentMap.js +7 -7
- package/esm/internals/Tree/utils/getPathTowardsItem.d.ts +1 -1
- package/esm/internals/Tree/utils/index.js +4 -4
- package/esm/internals/Windowing/AutoSizer.js +4 -3
- package/esm/internals/Windowing/List.d.ts +1 -1
- package/esm/internals/Windowing/List.js +4 -3
- package/esm/internals/Windowing/index.js +2 -2
- package/esm/internals/constants/index.d.ts +1 -1
- package/esm/internals/constants/index.js +12 -12
- package/esm/internals/constants/statusIcons.d.ts +7 -7
- package/esm/internals/hooks/index.js +23 -23
- package/esm/internals/hooks/useClassNames.d.ts +8 -8
- package/esm/internals/hooks/useClassNames.js +4 -2
- package/esm/internals/hooks/useControlled.d.ts +1 -1
- package/esm/internals/hooks/useControlled.js +3 -1
- package/esm/internals/hooks/useCustom.js +3 -3
- package/esm/internals/hooks/usePortal.d.ts +1 -1
- package/esm/internals/hooks/useRootClose.d.ts +1 -1
- package/esm/internals/hooks/useRootClose.js +2 -2
- package/esm/internals/hooks/useToggleCaret.d.ts +1 -1
- package/esm/internals/hooks/useToggleCaret.js +1 -1
- package/esm/internals/hooks/useWillUnmount.js +1 -1
- package/esm/internals/propTypes/deprecatePropType.js +1 -1
- package/esm/internals/propTypes/index.js +2 -2
- package/esm/internals/types/index.d.ts +5 -5
- package/esm/internals/types/index.js +1 -0
- package/esm/internals/types/utils.d.ts +6 -6
- package/esm/internals/types/utils.js +1 -0
- package/esm/internals/utils/createComponent.d.ts +2 -2
- package/esm/internals/utils/createComponent.js +5 -3
- package/esm/internals/utils/date/disableTime.js +1 -1
- package/esm/internals/utils/date/index.js +9 -9
- package/esm/internals/utils/date/omitHideDisabledProps.d.ts +1 -1
- package/esm/internals/utils/date/reverseDateRangeOmitTime.js +1 -1
- package/esm/internals/utils/date/types.d.ts +1 -1
- package/esm/internals/utils/date/types.js +3 -3
- package/esm/internals/utils/deprecateComponent.js +1 -1
- package/esm/internals/utils/getDataGroupBy.js +2 -2
- package/esm/internals/utils/index.js +26 -26
- package/esm/internals/utils/mergeRefs.d.ts +2 -2
- package/esm/internals/utils/safeSetSelection.js +3 -4
- package/esm/internals/utils/tplTransform.d.ts +2 -2
- package/esm/internals/utils/warnOnce.js +2 -2
- package/esm/locales/en_GB.js +1 -1
- package/esm/locales/index.d.ts +15 -15
- package/esm/locales/index.js +24 -24
- package/esm/toaster/ToastContainer.d.ts +2 -2
- package/esm/toaster/ToastContainer.js +10 -7
- package/esm/toaster/index.js +1 -1
- package/esm/toaster/toaster.js +15 -16
- package/esm/useMediaQuery/index.js +1 -1
- package/esm/useToaster/index.js +1 -1
- package/esm/useToaster/useToaster.js +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
// Typography
|
|
3
3
|
// --------------------------------------------------------
|
|
4
|
-
export { default as Text } from "./Text";
|
|
5
|
-
export { default as Heading } from "./Heading";
|
|
6
|
-
export { default as HeadingGroup } from "./HeadingGroup";
|
|
7
|
-
export { default as Highlight } from "./Highlight";
|
|
8
|
-
export { default as SafeAnchor } from "./SafeAnchor";
|
|
4
|
+
export { default as Text } from "./Text/index.js";
|
|
5
|
+
export { default as Heading } from "./Heading/index.js";
|
|
6
|
+
export { default as HeadingGroup } from "./HeadingGroup/index.js";
|
|
7
|
+
export { default as Highlight } from "./Highlight/index.js";
|
|
8
|
+
export { default as SafeAnchor } from "./SafeAnchor/index.js";
|
|
9
9
|
// Buttons
|
|
10
10
|
// --------------------------------------------------------
|
|
11
|
-
export { default as Button } from "./Button";
|
|
12
|
-
export { default as IconButton } from "./IconButton";
|
|
13
|
-
export { default as ButtonToolbar } from "./ButtonToolbar";
|
|
14
|
-
export { default as ButtonGroup } from "./ButtonGroup";
|
|
11
|
+
export { default as Button } from "./Button/index.js";
|
|
12
|
+
export { default as IconButton } from "./IconButton/index.js";
|
|
13
|
+
export { default as ButtonToolbar } from "./ButtonToolbar/index.js";
|
|
14
|
+
export { default as ButtonGroup } from "./ButtonGroup/index.js";
|
|
15
15
|
// Overlays
|
|
16
16
|
// --------------------------------------------------------
|
|
17
|
-
export { default as Whisper } from "./Whisper";
|
|
18
|
-
export { default as Tooltip } from "./Tooltip";
|
|
19
|
-
export { default as Popover } from "./Popover";
|
|
20
|
-
export { default as Modal } from "./Modal";
|
|
21
|
-
export { default as Drawer } from "./Drawer";
|
|
22
|
-
export { default as Dropdown } from "./Dropdown";
|
|
17
|
+
export { default as Whisper } from "./Whisper/index.js";
|
|
18
|
+
export { default as Tooltip } from "./Tooltip/index.js";
|
|
19
|
+
export { default as Popover } from "./Popover/index.js";
|
|
20
|
+
export { default as Modal } from "./Modal/index.js";
|
|
21
|
+
export { default as Drawer } from "./Drawer/index.js";
|
|
22
|
+
export { default as Dropdown } from "./Dropdown/index.js";
|
|
23
23
|
// Status
|
|
24
24
|
// --------------------------------------------------------
|
|
25
|
-
export { default as Notification } from "./Notification";
|
|
26
|
-
export { default as Message } from "./Message";
|
|
27
|
-
export { default as Loader } from "./Loader";
|
|
28
|
-
export { default as Placeholder } from "./Placeholder";
|
|
29
|
-
export { default as Badge } from "./Badge";
|
|
30
|
-
export { default as toaster } from "./toaster";
|
|
31
|
-
export { default as useToaster } from "./useToaster";
|
|
32
|
-
export { default as Progress } from "./Progress";
|
|
25
|
+
export { default as Notification } from "./Notification/index.js";
|
|
26
|
+
export { default as Message } from "./Message/index.js";
|
|
27
|
+
export { default as Loader } from "./Loader/index.js";
|
|
28
|
+
export { default as Placeholder } from "./Placeholder/index.js";
|
|
29
|
+
export { default as Badge } from "./Badge/index.js";
|
|
30
|
+
export { default as toaster } from "./toaster/index.js";
|
|
31
|
+
export { default as useToaster } from "./useToaster/index.js";
|
|
32
|
+
export { default as Progress } from "./Progress/index.js";
|
|
33
33
|
// Media
|
|
34
34
|
// --------------------------------------------------------
|
|
35
|
-
export { default as Avatar } from "./Avatar";
|
|
36
|
-
export { default as AvatarGroup } from "./AvatarGroup";
|
|
35
|
+
export { default as Avatar } from "./Avatar/index.js";
|
|
36
|
+
export { default as AvatarGroup } from "./AvatarGroup/index.js";
|
|
37
37
|
// Nav
|
|
38
38
|
// --------------------------------------------------------
|
|
39
|
-
export { default as Nav } from "./Nav";
|
|
40
|
-
export { default as Navbar } from "./Navbar";
|
|
41
|
-
export { default as Sidenav } from "./Sidenav";
|
|
42
|
-
export { default as Breadcrumb } from "./Breadcrumb";
|
|
43
|
-
export { default as Pagination } from "./Pagination";
|
|
44
|
-
export { default as Steps } from "./Steps";
|
|
39
|
+
export { default as Nav } from "./Nav/index.js";
|
|
40
|
+
export { default as Navbar } from "./Navbar/index.js";
|
|
41
|
+
export { default as Sidenav } from "./Sidenav/index.js";
|
|
42
|
+
export { default as Breadcrumb } from "./Breadcrumb/index.js";
|
|
43
|
+
export { default as Pagination } from "./Pagination/index.js";
|
|
44
|
+
export { default as Steps } from "./Steps/index.js";
|
|
45
45
|
// Form
|
|
46
46
|
// --------------------------------------------------------
|
|
47
|
-
export { default as Form, useFormClassNames } from "./Form";
|
|
47
|
+
export { default as Form, useFormClassNames } from "./Form/index.js";
|
|
48
48
|
// Data Entry
|
|
49
49
|
// --------------------------------------------------------
|
|
50
|
-
export { default as Toggle } from "./Toggle";
|
|
51
|
-
export { default as Input } from "./Input";
|
|
52
|
-
export { default as MaskedInput } from "./MaskedInput";
|
|
53
|
-
export { default as InputNumber } from "./InputNumber";
|
|
54
|
-
export { default as InputGroup } from "./InputGroup";
|
|
55
|
-
export { default as Checkbox } from "./Checkbox";
|
|
56
|
-
export { default as CheckboxGroup } from "./CheckboxGroup";
|
|
57
|
-
export { default as Radio } from "./Radio";
|
|
58
|
-
export { default as RadioGroup } from "./RadioGroup";
|
|
59
|
-
export { default as RadioTile } from "./RadioTile";
|
|
60
|
-
export { default as RadioTileGroup } from "./RadioTileGroup";
|
|
61
|
-
export { default as SelectPicker } from "./SelectPicker";
|
|
62
|
-
export { default as CheckPicker } from "./CheckPicker";
|
|
63
|
-
export { default as InputPicker } from "./InputPicker";
|
|
64
|
-
export { default as TagPicker } from "./TagPicker";
|
|
65
|
-
export { default as TagInput } from "./TagInput";
|
|
66
|
-
export { default as TreePicker } from "./TreePicker";
|
|
67
|
-
export { default as CheckTreePicker } from "./CheckTreePicker";
|
|
68
|
-
export { default as Cascader } from "./Cascader";
|
|
69
|
-
export { default as MultiCascader } from "./MultiCascader";
|
|
70
|
-
export { default as DateInput } from "./DateInput";
|
|
71
|
-
export { default as DatePicker } from "./DatePicker";
|
|
72
|
-
export { default as DateRangeInput } from "./DateRangeInput";
|
|
73
|
-
export { default as DateRangePicker } from "./DateRangePicker";
|
|
74
|
-
export { default as AutoComplete } from "./AutoComplete";
|
|
75
|
-
export { default as Uploader } from "./Uploader";
|
|
76
|
-
export { default as Slider } from "./Slider";
|
|
77
|
-
export { default as RangeSlider } from "./RangeSlider";
|
|
78
|
-
export { default as Rate } from "./Rate";
|
|
79
|
-
export { default as InlineEdit } from "./InlineEdit";
|
|
50
|
+
export { default as Toggle } from "./Toggle/index.js";
|
|
51
|
+
export { default as Input } from "./Input/index.js";
|
|
52
|
+
export { default as MaskedInput } from "./MaskedInput/index.js";
|
|
53
|
+
export { default as InputNumber } from "./InputNumber/index.js";
|
|
54
|
+
export { default as InputGroup } from "./InputGroup/index.js";
|
|
55
|
+
export { default as Checkbox } from "./Checkbox/index.js";
|
|
56
|
+
export { default as CheckboxGroup } from "./CheckboxGroup/index.js";
|
|
57
|
+
export { default as Radio } from "./Radio/index.js";
|
|
58
|
+
export { default as RadioGroup } from "./RadioGroup/index.js";
|
|
59
|
+
export { default as RadioTile } from "./RadioTile/index.js";
|
|
60
|
+
export { default as RadioTileGroup } from "./RadioTileGroup/index.js";
|
|
61
|
+
export { default as SelectPicker } from "./SelectPicker/index.js";
|
|
62
|
+
export { default as CheckPicker } from "./CheckPicker/index.js";
|
|
63
|
+
export { default as InputPicker } from "./InputPicker/index.js";
|
|
64
|
+
export { default as TagPicker } from "./TagPicker/index.js";
|
|
65
|
+
export { default as TagInput } from "./TagInput/index.js";
|
|
66
|
+
export { default as TreePicker } from "./TreePicker/index.js";
|
|
67
|
+
export { default as CheckTreePicker } from "./CheckTreePicker/index.js";
|
|
68
|
+
export { default as Cascader } from "./Cascader/index.js";
|
|
69
|
+
export { default as MultiCascader } from "./MultiCascader/index.js";
|
|
70
|
+
export { default as DateInput } from "./DateInput/index.js";
|
|
71
|
+
export { default as DatePicker } from "./DatePicker/index.js";
|
|
72
|
+
export { default as DateRangeInput } from "./DateRangeInput/index.js";
|
|
73
|
+
export { default as DateRangePicker } from "./DateRangePicker/index.js";
|
|
74
|
+
export { default as AutoComplete } from "./AutoComplete/index.js";
|
|
75
|
+
export { default as Uploader } from "./Uploader/index.js";
|
|
76
|
+
export { default as Slider } from "./Slider/index.js";
|
|
77
|
+
export { default as RangeSlider } from "./RangeSlider/index.js";
|
|
78
|
+
export { default as Rate } from "./Rate/index.js";
|
|
79
|
+
export { default as InlineEdit } from "./InlineEdit/index.js";
|
|
80
80
|
// Data Display
|
|
81
81
|
// --------------------------------------------------------
|
|
82
|
-
export { default as Tree } from "./Tree";
|
|
83
|
-
export { default as CheckTree } from "./CheckTree";
|
|
84
|
-
export { default as CascadeTree } from "./CascadeTree";
|
|
85
|
-
export { default as MultiCascadeTree } from "./MultiCascadeTree";
|
|
86
|
-
export { default as Panel } from "./Panel";
|
|
87
|
-
export { default as PanelGroup } from "./PanelGroup";
|
|
88
|
-
export { default as Table } from "./Table";
|
|
89
|
-
export { default as Timeline } from "./Timeline";
|
|
90
|
-
export { default as Tag } from "./Tag";
|
|
91
|
-
export { default as TagGroup } from "./TagGroup";
|
|
92
|
-
export { default as List } from "./List";
|
|
93
|
-
export { default as Calendar } from "./Calendar";
|
|
94
|
-
export { default as Carousel } from "./Carousel";
|
|
82
|
+
export { default as Tree } from "./Tree/index.js";
|
|
83
|
+
export { default as CheckTree } from "./CheckTree/index.js";
|
|
84
|
+
export { default as CascadeTree } from "./CascadeTree/index.js";
|
|
85
|
+
export { default as MultiCascadeTree } from "./MultiCascadeTree/index.js";
|
|
86
|
+
export { default as Panel } from "./Panel/index.js";
|
|
87
|
+
export { default as PanelGroup } from "./PanelGroup/index.js";
|
|
88
|
+
export { default as Table } from "./Table/index.js";
|
|
89
|
+
export { default as Timeline } from "./Timeline/index.js";
|
|
90
|
+
export { default as Tag } from "./Tag/index.js";
|
|
91
|
+
export { default as TagGroup } from "./TagGroup/index.js";
|
|
92
|
+
export { default as List } from "./List/index.js";
|
|
93
|
+
export { default as Calendar } from "./Calendar/index.js";
|
|
94
|
+
export { default as Carousel } from "./Carousel/index.js";
|
|
95
95
|
// Layout
|
|
96
96
|
// --------------------------------------------------------
|
|
97
|
-
export { default as Grid } from "./Grid";
|
|
98
|
-
export { default as Row } from "./Row";
|
|
99
|
-
export { default as Col } from "./Col";
|
|
100
|
-
export { default as FlexboxGrid } from "./FlexboxGrid";
|
|
101
|
-
export { default as Container } from "./Container";
|
|
102
|
-
export { default as Content } from "./Content";
|
|
103
|
-
export { default as Header } from "./Header";
|
|
104
|
-
export { default as Sidebar } from "./Sidebar";
|
|
105
|
-
export { default as Footer } from "./Footer";
|
|
106
|
-
export { default as Divider } from "./Divider";
|
|
107
|
-
export { default as Stack } from "./Stack";
|
|
97
|
+
export { default as Grid } from "./Grid/index.js";
|
|
98
|
+
export { default as Row } from "./Row/index.js";
|
|
99
|
+
export { default as Col } from "./Col/index.js";
|
|
100
|
+
export { default as FlexboxGrid } from "./FlexboxGrid/index.js";
|
|
101
|
+
export { default as Container } from "./Container/index.js";
|
|
102
|
+
export { default as Content } from "./Content/index.js";
|
|
103
|
+
export { default as Header } from "./Header/index.js";
|
|
104
|
+
export { default as Sidebar } from "./Sidebar/index.js";
|
|
105
|
+
export { default as Footer } from "./Footer/index.js";
|
|
106
|
+
export { default as Divider } from "./Divider/index.js";
|
|
107
|
+
export { default as Stack } from "./Stack/index.js";
|
|
108
108
|
// Utils and Hooks
|
|
109
109
|
// --------------------------------------------------------
|
|
110
|
-
export { default as Schema } from "./Schema";
|
|
111
|
-
export { default as Animation } from "./Animation";
|
|
112
|
-
export { default as DOMHelper } from "./DOMHelper";
|
|
113
|
-
export { default as Affix } from "./Affix";
|
|
114
|
-
export { default as CustomProvider } from "./CustomProvider";
|
|
115
|
-
export { default as useMediaQuery } from "./useMediaQuery";
|
|
110
|
+
export { default as Schema } from "./Schema/index.js";
|
|
111
|
+
export { default as Animation } from "./Animation/index.js";
|
|
112
|
+
export { default as DOMHelper } from "./DOMHelper/index.js";
|
|
113
|
+
export { default as Affix } from "./Affix/index.js";
|
|
114
|
+
export { default as CustomProvider } from "./CustomProvider/index.js";
|
|
115
|
+
export { default as useMediaQuery } from "./useMediaQuery/index.js";
|
|
116
116
|
|
|
117
117
|
// Disclosure
|
|
118
118
|
// --------------------------------------------------------
|
|
119
|
-
export { default as VisuallyHidden } from "./VisuallyHidden";
|
|
120
|
-
export { default as Tabs } from "./Tabs";
|
|
121
|
-
export { default as Accordion } from "./Accordion";
|
|
119
|
+
export { default as VisuallyHidden } from "./VisuallyHidden/index.js";
|
|
120
|
+
export { default as Tabs } from "./Tabs/index.js";
|
|
121
|
+
export { default as Accordion } from "./Accordion/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WithAsProps, RsRefForwardingComponent } from '
|
|
1
|
+
import { WithAsProps, RsRefForwardingComponent } from '../types';
|
|
2
2
|
import { CloseButtonLocale } from '../../locales';
|
|
3
3
|
export interface CloseButtonProps extends WithAsProps {
|
|
4
4
|
/** Custom locale */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["as", "classPrefix", "className", "locale"];
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import Close from '@rsuite/icons/Close';
|
|
6
|
-
import { useClassNames, useCustom } from "../hooks";
|
|
7
|
+
import { useClassNames, useCustom } from "../hooks/index.js";
|
|
7
8
|
/**
|
|
8
9
|
* Close button for components such as Message and Notification.
|
|
9
10
|
*/
|
|
@@ -14,7 +15,7 @@ var CloseButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
14
15
|
classPrefix = _props$classPrefix === void 0 ? 'btn-close' : _props$classPrefix,
|
|
15
16
|
className = props.className,
|
|
16
17
|
overrideLocale = props.locale,
|
|
17
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
18
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
18
19
|
var _useClassNames = useClassNames(classPrefix),
|
|
19
20
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
20
21
|
merge = _useClassNames.merge;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import DisclosureButton from './DisclosureButton';
|
|
3
3
|
import DisclosureContent from './DisclosureContent';
|
|
4
|
-
export
|
|
4
|
+
export type DisclosureTrigger = 'click' | 'hover';
|
|
5
5
|
export interface DisclosureRenderProps extends Pick<React.HTMLAttributes<HTMLElement>, 'onMouseEnter' | 'onMouseLeave'> {
|
|
6
6
|
open: boolean;
|
|
7
7
|
}
|
|
@@ -3,10 +3,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
// Headless Disclosure
|
|
4
4
|
// Ref: https://w3c.github.io/aria-practices/#disclosure
|
|
5
5
|
import React, { useMemo, useReducer, useRef, useCallback, useContext } from 'react';
|
|
6
|
-
import DisclosureContext, { DisclosureActionTypes } from "./DisclosureContext";
|
|
7
|
-
import DisclosureButton from "./DisclosureButton";
|
|
8
|
-
import DisclosureContent from "./DisclosureContent";
|
|
9
|
-
import useClickOutside from "../hooks/useClickOutside";
|
|
6
|
+
import DisclosureContext, { DisclosureActionTypes } from "./DisclosureContext.js";
|
|
7
|
+
import DisclosureButton from "./DisclosureButton.js";
|
|
8
|
+
import DisclosureContent from "./DisclosureContent.js";
|
|
9
|
+
import useClickOutside from "../hooks/useClickOutside.js";
|
|
10
10
|
var initialDisclosureState = {
|
|
11
11
|
open: false
|
|
12
12
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useCallback, useRef } from 'react';
|
|
3
|
-
import { DisclosureActionTypes } from "./DisclosureContext";
|
|
4
|
-
import { KEY_VALUES } from "../constants";
|
|
5
|
-
import useDisclosureContext from "./useDisclosureContext";
|
|
3
|
+
import { DisclosureActionTypes } from "./DisclosureContext.js";
|
|
4
|
+
import { KEY_VALUES } from "../constants/index.js";
|
|
5
|
+
import useDisclosureContext from "./useDisclosureContext.js";
|
|
6
6
|
function DisclosureButton(props) {
|
|
7
7
|
var children = props.children;
|
|
8
8
|
var buttonRef = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useRef } from 'react';
|
|
3
|
-
import useDisclosureContext from "./useDisclosureContext";
|
|
3
|
+
import useDisclosureContext from "./useDisclosureContext.js";
|
|
4
4
|
function DisclosureContent(props) {
|
|
5
5
|
var children = props.children;
|
|
6
6
|
var elementRef = useRef(null);
|
|
@@ -7,13 +7,13 @@ export declare enum DisclosureActionTypes {
|
|
|
7
7
|
Show = 0,
|
|
8
8
|
Hide = 1
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type DisclosureAction = {
|
|
11
11
|
type: DisclosureActionTypes.Show;
|
|
12
12
|
} | {
|
|
13
13
|
type: DisclosureActionTypes.Hide;
|
|
14
14
|
cascade?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type DisclosureContextProps = [
|
|
17
17
|
DisclosureState,
|
|
18
18
|
Dispatch<DisclosureAction>,
|
|
19
19
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export var DisclosureActionTypes
|
|
4
|
-
(function (DisclosureActionTypes) {
|
|
3
|
+
export var DisclosureActionTypes = /*#__PURE__*/function (DisclosureActionTypes) {
|
|
5
4
|
DisclosureActionTypes[DisclosureActionTypes["Show"] = 0] = "Show";
|
|
6
5
|
DisclosureActionTypes[DisclosureActionTypes["Hide"] = 1] = "Hide";
|
|
7
|
-
|
|
6
|
+
return DisclosureActionTypes;
|
|
7
|
+
}({});
|
|
8
8
|
var DisclosureContext = /*#__PURE__*/React.createContext(null);
|
|
9
9
|
DisclosureContext.displayName = 'Disclosure.Context';
|
|
10
10
|
export default DisclosureContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
-
import DisclosureContext from "./DisclosureContext";
|
|
3
|
+
import DisclosureContext from "./DisclosureContext.js";
|
|
4
4
|
export default function useDisclosureContext(component) {
|
|
5
5
|
var context = useContext(DisclosureContext);
|
|
6
6
|
if (!context) {
|
|
@@ -18,7 +18,7 @@ export interface MenuProps {
|
|
|
18
18
|
openMenuOn?: readonly MenuButtonTrigger[];
|
|
19
19
|
onToggleMenu?: (open: boolean, event: React.SyntheticEvent) => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type MenuButtonTrigger = 'mouseover' | 'click' | 'contextmenu';
|
|
22
22
|
export interface MenuRenderProps {
|
|
23
23
|
open: boolean;
|
|
24
24
|
}
|
|
@@ -3,11 +3,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useCallback, useContext, useRef, useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import isNil from 'lodash/isNil';
|
|
6
|
-
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext";
|
|
7
|
-
import { useCustom, useUniqueId, useFocus, useClickOutside } from "../hooks";
|
|
8
|
-
import { KEY_VALUES } from "../constants";
|
|
9
|
-
import useMenu from "./useMenu";
|
|
10
|
-
import { isFocusLeaving, isFocusableElement } from "../utils";
|
|
6
|
+
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
7
|
+
import { useCustom, useUniqueId, useFocus, useClickOutside } from "../hooks/index.js";
|
|
8
|
+
import { KEY_VALUES } from "../constants/index.js";
|
|
9
|
+
import useMenu from "./useMenu.js";
|
|
10
|
+
import { isFocusLeaving, isFocusableElement } from "../utils/index.js";
|
|
11
11
|
var defaultOpenMenuOn = ['click'];
|
|
12
12
|
function getMenuItemTarget(event) {
|
|
13
13
|
var _event$currentTarget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type MenuContextProps = [MenuState, Dispatch<MenuAction>];
|
|
3
3
|
export interface MenuState {
|
|
4
4
|
role: 'menu' | 'menubar';
|
|
5
5
|
open: boolean;
|
|
@@ -26,7 +26,7 @@ export declare enum MoveFocusTo {
|
|
|
26
26
|
Specific = 4,
|
|
27
27
|
None = 5
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type MenuAction = {
|
|
30
30
|
type: MenuActionTypes.RegisterItem;
|
|
31
31
|
element: HTMLLIElement;
|
|
32
32
|
props?: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export var MenuActionTypes
|
|
4
|
-
(function (MenuActionTypes) {
|
|
3
|
+
export var MenuActionTypes = /*#__PURE__*/function (MenuActionTypes) {
|
|
5
4
|
MenuActionTypes[MenuActionTypes["RegisterItem"] = 0] = "RegisterItem";
|
|
6
5
|
MenuActionTypes[MenuActionTypes["UnregisterItem"] = 1] = "UnregisterItem";
|
|
7
6
|
MenuActionTypes[MenuActionTypes["OpenMenu"] = 2] = "OpenMenu";
|
|
8
7
|
MenuActionTypes[MenuActionTypes["CloseMenu"] = 3] = "CloseMenu";
|
|
9
8
|
MenuActionTypes[MenuActionTypes["MoveFocus"] = 4] = "MoveFocus";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
return MenuActionTypes;
|
|
10
|
+
}({});
|
|
11
|
+
export var MoveFocusTo = /*#__PURE__*/function (MoveFocusTo) {
|
|
13
12
|
MoveFocusTo[MoveFocusTo["Next"] = 0] = "Next";
|
|
14
13
|
MoveFocusTo[MoveFocusTo["Prev"] = 1] = "Prev";
|
|
15
14
|
MoveFocusTo[MoveFocusTo["Last"] = 2] = "Last";
|
|
16
15
|
MoveFocusTo[MoveFocusTo["First"] = 3] = "First";
|
|
17
16
|
MoveFocusTo[MoveFocusTo["Specific"] = 4] = "Specific";
|
|
18
17
|
MoveFocusTo[MoveFocusTo["None"] = 5] = "None";
|
|
19
|
-
|
|
18
|
+
return MoveFocusTo;
|
|
19
|
+
}({});
|
|
20
20
|
// Defaults to null for checking whether a Menu is inside another menu
|
|
21
21
|
var MenuContext = /*#__PURE__*/React.createContext(null);
|
|
22
22
|
MenuContext.displayName = 'MenuContext';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { useCallback, useContext, useEffect, useRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import isNil from 'lodash/isNil';
|
|
5
|
-
import { useUniqueId } from "../hooks";
|
|
6
|
-
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext";
|
|
5
|
+
import { useUniqueId } from "../hooks/index.js";
|
|
6
|
+
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
7
7
|
/**
|
|
8
8
|
* Headless ARIA `menuitem`
|
|
9
9
|
* @private
|
|
@@ -23,7 +23,9 @@ function MenuItem(props) {
|
|
|
23
23
|
throw new Error('<MenuItem> must be rendered within a <Menu>');
|
|
24
24
|
}
|
|
25
25
|
var menuState = menu[0],
|
|
26
|
-
dispatch = menu[1];
|
|
26
|
+
dispatch = menu[1];
|
|
27
|
+
|
|
28
|
+
// Whether this menuitem has focus (indicated by `aria-activedescendant` from parent menu)
|
|
27
29
|
var hasFocus = !isNil(menuitemRef.current) && !isNil(menuState.activeItemIndex) && ((_menuState$items$menu = menuState.items[menuState.activeItemIndex]) === null || _menuState$items$menu === void 0 ? void 0 : _menuState$items$menu.element) === menuitemRef.current;
|
|
28
30
|
var handleClick = useCallback(function (event) {
|
|
29
31
|
if (disabled) {
|
|
@@ -10,4 +10,4 @@ export interface MenubarProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
13
|
-
export default function Menubar({ vertical, children, onActivateItem }: MenubarProps): JSX.Element;
|
|
13
|
+
export default function Menubar({ vertical, children, onActivateItem }: MenubarProps): React.JSX.Element;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Headless ARIA `menubar`
|
|
3
3
|
import React, { useCallback, useRef } from 'react';
|
|
4
4
|
import isNil from 'lodash/isNil';
|
|
5
|
-
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext";
|
|
6
|
-
import { KEY_VALUES } from "../constants";
|
|
7
|
-
import { useCustom } from "../hooks";
|
|
8
|
-
import { isFocusEntering, isFocusLeaving, isFocusableElement } from "../utils";
|
|
9
|
-
import useMenu from "./useMenu";
|
|
5
|
+
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
6
|
+
import { KEY_VALUES } from "../constants/index.js";
|
|
7
|
+
import { useCustom } from "../hooks/index.js";
|
|
8
|
+
import { isFocusEntering, isFocusLeaving, isFocusableElement } from "../utils/index.js";
|
|
9
|
+
import useMenu from "./useMenu.js";
|
|
10
10
|
/**
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
// Inspired by tailwindlabs/headlessui
|
|
4
4
|
import { useReducer } from 'react';
|
|
5
|
-
import { MenuActionTypes, MoveFocusTo } from "./MenuContext";
|
|
5
|
+
import { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
6
6
|
export var initialMenuState = {
|
|
7
7
|
role: 'menu',
|
|
8
8
|
open: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { WithAsProps, AnimationEventProps, RsRefForwardingComponent } from '
|
|
3
|
+
import { WithAsProps, AnimationEventProps, RsRefForwardingComponent } from '../types';
|
|
4
4
|
export interface BaseModalProps extends WithAsProps, AnimationEventProps {
|
|
5
5
|
/** Animation-related properties */
|
|
6
6
|
animationProps?: any;
|
|
@@ -53,7 +53,7 @@ export declare const modalPropTypes: {
|
|
|
53
53
|
style: PropTypes.Requireable<object>;
|
|
54
54
|
backdropStyle: PropTypes.Requireable<object>;
|
|
55
55
|
open: PropTypes.Requireable<boolean>;
|
|
56
|
-
backdrop: PropTypes.Requireable<string | boolean
|
|
56
|
+
backdrop: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
57
57
|
keyboard: PropTypes.Requireable<boolean>;
|
|
58
58
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
59
59
|
enforceFocus: PropTypes.Requireable<boolean>;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["as", "children", "transition", "dialogTransitionTimeout", "style", "className", "container", "animationProps", "containerClassName", "keyboard", "enforceFocus", "backdrop", "backdropTransitionTimeout", "backdropStyle", "backdropClassName", "open", "autoFocus", "onEsc", "onExit", "onExiting", "onExited", "onEnter", "onEntering", "onEntered", "onClose", "onOpen"],
|
|
5
|
+
_excluded2 = ["className"];
|
|
4
6
|
import React, { useRef, useEffect, useState, useCallback, useMemo } from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import classNames from 'classnames';
|
|
7
9
|
import contains from 'dom-lib/contains';
|
|
8
10
|
import on from 'dom-lib/on';
|
|
9
|
-
import { KEY_VALUES } from "../constants";
|
|
10
|
-
import { usePortal, useWillUnmount, useEventCallback } from "../hooks";
|
|
11
|
-
import { mergeRefs, createChainedFunction } from "../utils";
|
|
12
|
-
import ModalManager from "./ModalManager";
|
|
13
|
-
import Fade from "../../Animation/Fade";
|
|
14
|
-
import { animationPropTypes } from "../../Animation/utils";
|
|
15
|
-
import OverlayContext from "./OverlayContext";
|
|
11
|
+
import { KEY_VALUES } from "../constants/index.js";
|
|
12
|
+
import { usePortal, useWillUnmount, useEventCallback } from "../hooks/index.js";
|
|
13
|
+
import { mergeRefs, createChainedFunction } from "../utils/index.js";
|
|
14
|
+
import ModalManager from "./ModalManager.js";
|
|
15
|
+
import Fade from "../../Animation/Fade.js";
|
|
16
|
+
import { animationPropTypes } from "../../Animation/utils.js";
|
|
17
|
+
import OverlayContext from "./OverlayContext.js";
|
|
16
18
|
var manager;
|
|
17
19
|
function getManager() {
|
|
18
20
|
if (!manager) manager = new ModalManager();
|
|
@@ -78,7 +80,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
78
80
|
onEntered = props.onEntered,
|
|
79
81
|
onClose = props.onClose,
|
|
80
82
|
onOpen = props.onOpen,
|
|
81
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
83
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
82
84
|
var _useState = useState(!open),
|
|
83
85
|
exited = _useState[0],
|
|
84
86
|
setExited = _useState[1];
|
|
@@ -192,7 +194,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
192
194
|
timeout: backdropTransitionTimeout
|
|
193
195
|
}, function (fadeProps, ref) {
|
|
194
196
|
var className = fadeProps.className,
|
|
195
|
-
rest = _objectWithoutPropertiesLoose(fadeProps,
|
|
197
|
+
rest = _objectWithoutPropertiesLoose(fadeProps, _excluded2);
|
|
196
198
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
197
199
|
"aria-hidden": true,
|
|
198
200
|
"data-testid": "backdrop"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { PositionChildProps } from './Position';
|
|
4
|
-
import { TypeAttributes, AnimationEventProps, CursorPosition } from '
|
|
4
|
+
import { TypeAttributes, AnimationEventProps, CursorPosition } from '../types';
|
|
5
5
|
export interface OverlayProps extends AnimationEventProps {
|
|
6
6
|
container?: HTMLElement | (() => HTMLElement | null) | null;
|
|
7
7
|
children: React.ReactElement | ((props: PositionChildProps & React.HTMLAttributes<HTMLElement>, ref: React.RefCallback<HTMLElement>) => React.ReactElement);
|
|
@@ -3,11 +3,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useState, useRef, useCallback, useContext } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import Position from "./Position";
|
|
7
|
-
import { useRootClose } from "../hooks";
|
|
8
|
-
import { mergeRefs } from "../utils";
|
|
9
|
-
import Fade from "../../Animation/Fade";
|
|
10
|
-
import OverlayContext from "./OverlayContext";
|
|
6
|
+
import Position from "./Position.js";
|
|
7
|
+
import { useRootClose } from "../hooks/index.js";
|
|
8
|
+
import { mergeRefs } from "../utils/index.js";
|
|
9
|
+
import Fade from "../../Animation/Fade.js";
|
|
10
|
+
import OverlayContext from "./OverlayContext.js";
|
|
11
11
|
export var overlayPropTypes = {
|
|
12
12
|
container: PropTypes.any,
|
|
13
13
|
children: PropTypes.any,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AnimationEventProps, StandardProps, TypeAttributes } from '
|
|
3
|
+
import { AnimationEventProps, StandardProps, TypeAttributes } from '../types';
|
|
4
4
|
import { PositionChildProps } from './Position';
|
|
5
|
-
export
|
|
5
|
+
export type OverlayTriggerType = 'click' | 'hover' | 'focus' | 'active' | 'contextMenu' | 'none';
|
|
6
6
|
export interface OverlayTriggerProps extends Omit<StandardProps, 'children'>, AnimationEventProps {
|
|
7
7
|
/** Triggering events */
|
|
8
8
|
trigger?: OverlayTriggerType | OverlayTriggerType[];
|