rsuite 6.0.0-canary-20250416 → 6.0.0-canary-20250507
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 +32 -71
- package/Button/styles/index.css +4 -6
- package/CHANGELOG.md +15 -0
- package/Calendar/styles/index.css +8 -16
- package/CascadeTree/styles/index.css +8 -16
- package/Cascader/styles/index.css +36 -79
- package/CheckPicker/styles/index.css +32 -66
- package/CheckTree/styles/index.css +34 -70
- package/CheckTreePicker/styles/index.css +34 -70
- package/Checkbox/styles/index.css +7 -9
- package/Checkbox/styles/index.less +1 -1
- package/DateInput/styles/index.css +6 -9
- package/DatePicker/styles/index.css +38 -81
- package/DateRangeInput/styles/index.css +6 -9
- package/DateRangePicker/styles/index.css +38 -81
- package/Dropdown/styles/index.css +6 -10
- package/FormControl/styles/index.css +2 -2
- package/FormControl/styles/index.less +2 -2
- package/IconButton/styles/index.css +4 -6
- package/Input/styles/index.css +6 -9
- package/Input/styles/mixin.less +2 -3
- package/InputGroup/styles/index.css +7 -13
- package/InputGroup/styles/index.less +3 -4
- package/InputNumber/styles/index.css +36 -35
- package/InputNumber/styles/index.less +1 -67
- package/InputPicker/styles/index.css +32 -71
- package/Message/styles/index.css +5 -15
- package/Message/styles/index.less +4 -3
- package/MultiCascadeTree/styles/index.css +38 -80
- package/MultiCascader/styles/index.css +38 -80
- package/Nav/styles/index.css +8 -14
- package/Navbar/styles/index.css +16 -40
- package/NumberInput/package.json +7 -0
- package/NumberInput/styles/index.css +1402 -0
- package/NumberInput/styles/index.less +74 -0
- package/{InputNumber → NumberInput}/styles/mixin.less +0 -0
- package/Pagination/styles/index.css +34 -75
- package/PasswordInput/styles/index.css +6 -9
- package/PinInput/package.json +7 -0
- package/PinInput/styles/index.css +212 -0
- package/PinInput/styles/index.less +66 -0
- package/Radio/styles/index.css +7 -9
- package/Radio/styles/index.less +1 -1
- package/RangeSlider/styles/index.css +2 -0
- package/SelectPicker/styles/index.css +32 -71
- package/Sidenav/styles/index.css +30 -67
- package/Slider/styles/index.css +2 -0
- package/Slider/styles/index.less +2 -0
- package/Stat/styles/index.css +4 -6
- package/Tabs/styles/index.css +8 -14
- package/Tag/styles/index.css +0 -15
- package/TagInput/styles/index.css +34 -72
- package/TagPicker/styles/index.css +34 -72
- package/TimePicker/styles/index.css +38 -81
- package/TimeRangePicker/styles/index.css +38 -81
- package/Toggle/styles/index.css +9 -13
- package/Toggle/styles/index.less +3 -4
- package/Tree/styles/index.css +34 -75
- package/TreePicker/styles/index.css +34 -75
- package/Uploader/styles/index.css +6 -10
- package/cjs/Accordion/Accordion.js +2 -2
- package/cjs/Affix/Affix.js +1 -2
- package/cjs/Animation/Bounce.js +1 -2
- package/cjs/Animation/Collapse.js +1 -2
- package/cjs/Animation/Fade.js +1 -2
- package/cjs/Animation/Slide.js +1 -2
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -2
- package/cjs/AutoComplete/AutoComplete.js +1 -2
- package/cjs/Avatar/Avatar.js +1 -2
- package/cjs/AvatarGroup/AvatarGroup.js +1 -2
- package/cjs/Badge/Badge.js +1 -2
- package/cjs/Breadcrumb/Breadcrumb.js +1 -2
- package/cjs/Button/Button.d.ts +2 -2
- package/cjs/Button/Button.js +1 -2
- package/cjs/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/cjs/ButtonGroup/ButtonGroup.js +1 -2
- package/cjs/ButtonToolbar/ButtonToolbar.js +1 -2
- package/cjs/Calendar/Calendar.js +4 -4
- package/cjs/Calendar/CalendarBody.js +1 -4
- package/cjs/Calendar/CalendarContainer.js +1 -1
- package/cjs/Calendar/CalendarHeader.js +3 -3
- package/cjs/Calendar/CalendarProvider.d.ts +1 -1
- package/cjs/Calendar/Grid/GridCell.js +1 -2
- package/cjs/Calendar/Grid/GridHeaderRow.js +1 -2
- package/cjs/Calendar/Grid/GridRow.d.ts +2 -0
- package/cjs/Calendar/Grid/GridRow.js +5 -4
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
- package/cjs/Calendar/hooks/useCalendar.d.ts +24 -2
- package/cjs/Calendar/hooks/useCalendar.js +34 -1
- package/cjs/Card/Card.js +1 -2
- package/cjs/CardGroup/CardGroup.js +1 -2
- package/cjs/Carousel/Carousel.js +1 -2
- package/cjs/CascadeTree/CascadeTree.js +1 -2
- package/cjs/CascadeTree/SearchView.js +1 -2
- package/cjs/CascadeTree/TreeView.js +1 -2
- package/cjs/Cascader/Cascader.js +1 -2
- package/cjs/CheckPicker/CheckPicker.js +1 -2
- package/cjs/CheckTree/CheckTree.js +1 -2
- package/cjs/CheckTree/CheckTreeNode.js +1 -2
- package/cjs/CheckTree/CheckTreeView.js +1 -2
- package/cjs/CheckTreePicker/CheckTreePicker.js +1 -2
- package/cjs/Checkbox/Checkbox.js +1 -2
- package/cjs/CheckboxGroup/CheckboxGroup.js +1 -2
- package/cjs/Container/Container.js +1 -2
- package/cjs/CustomProvider/CustomProvider.d.ts +1 -271
- package/cjs/CustomProvider/CustomProvider.js +2 -3
- package/cjs/CustomProvider/index.d.ts +1 -6
- package/cjs/CustomProvider/index.js +3 -12
- package/cjs/DateInput/DateInput.js +1 -2
- package/cjs/DateInput/hooks/useDateInputState.js +2 -2
- package/cjs/DatePicker/DatePicker.js +2 -3
- package/cjs/DatePicker/hooks/useFocus.js +1 -2
- package/cjs/DateRangeInput/DateRangeInput.js +1 -2
- package/cjs/DateRangePicker/DateRangePicker.js +2 -3
- package/cjs/DateRangePicker/Header.js +3 -3
- package/cjs/DateRangePicker/utils.d.ts +1 -1
- package/cjs/DateRangePicker/utils.js +1 -1
- package/cjs/Divider/Divider.js +1 -2
- package/cjs/Drawer/Drawer.js +1 -2
- package/cjs/Dropdown/Dropdown.js +1 -2
- package/cjs/Dropdown/DropdownMenu.js +1 -2
- package/cjs/FlexboxGrid/FlexboxGrid.js +1 -2
- package/cjs/Form/Form.js +1 -2
- package/cjs/Form/FormContext.d.ts +1 -1
- package/cjs/Form/hooks/useFormValidate.js +5 -5
- package/cjs/FormControl/FormControl.js +54 -86
- package/cjs/FormControlLabel/FormControlLabel.js +1 -2
- package/cjs/FormErrorMessage/FormErrorMessage.js +1 -2
- package/cjs/FormGroup/FormGroup.js +1 -2
- package/cjs/FormHelpText/FormHelpText.js +1 -2
- package/cjs/FormStack/FormStack.js +1 -2
- package/cjs/Grid/Col.js +1 -2
- package/cjs/Grid/Grid.js +1 -2
- package/cjs/Grid/Row.js +1 -2
- package/cjs/Heading/Heading.js +1 -2
- package/cjs/Highlight/Highlight.js +2 -3
- package/cjs/IconButton/IconButton.js +1 -2
- package/cjs/Image/Image.js +2 -3
- package/cjs/InlineEdit/InlineEdit.js +1 -2
- package/cjs/Input/Input.js +3 -3
- package/cjs/InputGroup/InputGroup.js +1 -2
- package/cjs/InputNumber/index.d.ts +12 -2
- package/cjs/InputNumber/index.js +11 -4
- package/cjs/InputPicker/InputPicker.js +1 -2
- package/cjs/InputPicker/utils.d.ts +1 -1
- package/cjs/Kbd/Kbd.js +1 -2
- package/cjs/Link/Link.js +1 -2
- package/cjs/List/List.js +1 -2
- package/cjs/Loader/Loader.js +1 -2
- package/cjs/MaskedInput/MaskedInput.js +2 -2
- package/cjs/Message/Message.js +1 -2
- package/cjs/Modal/Modal.js +1 -2
- package/cjs/Modal/ModalHeader.js +1 -2
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +1 -2
- package/cjs/MultiCascadeTree/SearchView.js +1 -2
- package/cjs/MultiCascadeTree/TreeView.js +1 -2
- package/cjs/MultiCascader/MultiCascader.js +1 -2
- package/cjs/Nav/Nav.js +1 -2
- package/cjs/Nav/NavDropdownMenu.js +1 -2
- package/cjs/Navbar/Navbar.d.ts +1 -1
- package/cjs/Navbar/Navbar.js +1 -2
- package/cjs/Navbar/NavbarDropdownMenu.js +1 -2
- package/cjs/Navbar/NavbarToggle.d.ts +8 -3
- package/cjs/Navbar/NavbarToggle.js +9 -14
- package/cjs/Notification/Notification.js +1 -2
- package/{esm/InputNumber/InputNumber.d.ts → cjs/NumberInput/NumberInput.d.ts} +20 -8
- package/cjs/NumberInput/NumberInput.js +162 -0
- package/cjs/NumberInput/hooks/useEvents.d.ts +22 -0
- package/cjs/NumberInput/hooks/useEvents.js +114 -0
- package/cjs/NumberInput/hooks/useNumberInputValue.d.ts +7 -0
- package/cjs/NumberInput/hooks/useNumberInputValue.js +34 -0
- package/cjs/NumberInput/hooks/useWheelHandler.d.ts +5 -0
- package/cjs/NumberInput/hooks/useWheelHandler.js +25 -0
- package/cjs/NumberInput/index.d.ts +4 -0
- package/cjs/NumberInput/index.js +11 -0
- package/cjs/NumberInput/utils/number.d.ts +17 -0
- package/cjs/NumberInput/utils/number.js +67 -0
- package/cjs/Pagination/LimitPicker.d.ts +2 -2
- package/cjs/Pagination/Pagination.d.ts +2 -2
- package/cjs/Pagination/Pagination.js +1 -2
- package/cjs/Pagination/PaginationGroup.js +1 -2
- package/cjs/Panel/Panel.js +1 -2
- package/cjs/PanelGroup/PanelGroup.js +1 -2
- package/cjs/PasswordInput/PasswordInput.d.ts +4 -0
- package/cjs/PasswordInput/PasswordInput.js +5 -4
- package/cjs/PasswordStrengthMeter/PasswordStrengthMeter.js +1 -2
- package/cjs/PinInput/PinInput.d.ts +36 -0
- package/cjs/PinInput/PinInput.js +224 -0
- package/cjs/PinInput/hooks/usePinInputRefs.d.ts +12 -0
- package/cjs/PinInput/hooks/usePinInputRefs.js +62 -0
- package/cjs/PinInput/hooks/usePinValue.d.ts +14 -0
- package/cjs/PinInput/hooks/usePinValue.js +73 -0
- package/cjs/PinInput/index.d.ts +4 -0
- package/cjs/PinInput/index.js +9 -0
- package/cjs/Placeholder/PlaceholderGraph.js +1 -2
- package/cjs/Placeholder/PlaceholderGrid.js +1 -2
- package/cjs/Placeholder/PlaceholderParagraph.js +1 -2
- package/cjs/Popover/Popover.js +1 -2
- package/cjs/Progress/ProgressCircle.js +1 -2
- package/cjs/Progress/ProgressLine.js +1 -2
- package/cjs/Radio/Radio.js +1 -2
- package/cjs/RadioGroup/RadioGroup.js +1 -2
- package/cjs/RadioTile/RadioTile.js +1 -2
- package/cjs/RadioTileGroup/RadioTileGroup.js +1 -2
- package/cjs/RangeSlider/RangeSlider.js +2 -3
- package/cjs/Rate/Rate.js +1 -2
- package/cjs/SelectPicker/SelectPicker.js +1 -2
- package/cjs/Sidebar/Sidebar.js +1 -2
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
- package/cjs/Sidenav/Sidenav.js +1 -2
- package/cjs/Sidenav/SidenavDropdownMenu.js +1 -2
- package/cjs/Slider/Slider.d.ts +5 -1
- package/cjs/Slider/Slider.js +13 -14
- package/cjs/Stack/Stack.js +1 -2
- package/cjs/Stat/Stat.js +1 -2
- package/cjs/Stat/StatValue.js +2 -2
- package/cjs/StatGroup/StatGroup.js +1 -2
- package/cjs/Steps/Steps.js +1 -2
- package/cjs/Table/Table.js +2 -2
- package/cjs/Tabs/Tabs.js +1 -2
- package/cjs/Tag/Tag.js +1 -2
- package/cjs/TagInput/TagInput.js +2 -2
- package/cjs/TagPicker/TagPicker.js +2 -2
- package/cjs/Text/Text.js +1 -2
- package/cjs/Textarea/Textarea.js +1 -2
- package/cjs/TimePicker/TimePicker.d.ts +1 -2
- package/cjs/TimePicker/TimePicker.js +2 -2
- package/cjs/TimeRangePicker/TimeRangePicker.js +2 -2
- package/cjs/Timeline/Timeline.js +1 -2
- package/cjs/Toggle/Toggle.js +1 -2
- package/cjs/Tooltip/Tooltip.js +1 -2
- package/cjs/Tree/Tree.js +1 -2
- package/cjs/Tree/TreeNode.js +1 -2
- package/cjs/Tree/TreeNodeToggle.js +1 -2
- package/cjs/Tree/TreeView.js +1 -2
- package/cjs/Tree/hooks/useFocusTree.js +1 -2
- package/cjs/TreePicker/TreePicker.js +1 -2
- package/cjs/Uploader/Uploader.js +1 -2
- package/cjs/Whisper/Whisper.js +2 -2
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +18 -0
- package/cjs/internals/Box/index.d.ts +1 -0
- package/cjs/internals/Box/index.js +1 -0
- package/cjs/internals/Burger/Burger.d.ts +16 -0
- package/cjs/internals/Burger/Burger.js +46 -0
- package/cjs/internals/Burger/index.d.ts +4 -0
- package/cjs/internals/Burger/index.js +11 -0
- package/cjs/internals/CloseButton/CloseButton.js +1 -2
- package/cjs/internals/Menu/Menu.js +1 -2
- package/cjs/internals/Menu/Menubar.js +2 -2
- package/cjs/internals/Picker/PickerIndicator.js +1 -2
- package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/cjs/internals/Plaintext/Plaintext.js +1 -2
- package/cjs/internals/Provider/CustomContext.d.ts +253 -0
- package/cjs/internals/Provider/CustomContext.js +8 -0
- package/cjs/internals/Provider/types.d.ts +236 -0
- package/cjs/internals/Ripple/Ripple.js +1 -2
- package/cjs/internals/SafeAnchor/SafeAnchor.js +2 -2
- package/cjs/internals/Windowing/List.js +2 -2
- package/cjs/internals/hooks/index.d.ts +1 -0
- package/cjs/internals/hooks/index.js +3 -1
- package/cjs/{CustomProvider → internals/hooks}/useCustom.d.ts +4 -4
- package/cjs/{CustomProvider → internals/hooks}/useCustom.js +5 -5
- package/cjs/internals/hooks/useStyles.js +2 -2
- package/cjs/internals/hooks/useToggleCaret.js +2 -2
- package/cjs/{CustomProvider → internals/intl}/FormattedDate.js +2 -2
- package/cjs/{CustomProvider → internals/intl}/FormattedNumber.js +2 -2
- package/cjs/internals/types/picker.d.ts +2 -2
- package/cjs/internals/types/sizes.d.ts +2 -0
- package/cjs/internals/types/sizes.js +2 -1
- package/cjs/internals/utils/date/getWeekStartDates.d.ts +0 -1
- package/cjs/internals/utils/date/getWeekStartDates.js +2 -4
- package/cjs/internals/utils/react/createComponent.js +15 -4
- package/cjs/{FormControl → useFormControl}/hooks/useField.d.ts +3 -3
- package/cjs/{FormControl → useFormControl}/hooks/useField.js +5 -6
- package/cjs/useFormControl/hooks/useRegisterModel.d.ts +2 -0
- package/cjs/{FormControl → useFormControl}/hooks/useRegisterModel.js +2 -3
- package/cjs/useFormControl/index.d.ts +4 -0
- package/cjs/useFormControl/index.js +11 -0
- package/cjs/useFormControl/useFormControl.d.ts +38 -0
- package/cjs/useFormControl/useFormControl.js +138 -0
- package/cjs/{FormControl/utils.js → useFormControl/utils/nameToPath.js} +0 -0
- package/cjs/useToaster/useToaster.js +2 -5
- package/dist/rsuite-no-reset-rtl.css +246 -265
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +246 -265
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +246 -265
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +246 -265
- package/dist/rsuite.js +389 -257
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Accordion/Accordion.js +1 -1
- package/esm/Affix/Affix.js +1 -2
- package/esm/Animation/Bounce.js +1 -2
- package/esm/Animation/Collapse.js +1 -2
- package/esm/Animation/Fade.js +1 -2
- package/esm/Animation/Slide.js +1 -2
- package/esm/AutoComplete/AutoComplete.d.ts +2 -2
- package/esm/AutoComplete/AutoComplete.js +1 -2
- package/esm/Avatar/Avatar.js +1 -2
- package/esm/AvatarGroup/AvatarGroup.js +1 -2
- package/esm/Badge/Badge.js +1 -2
- package/esm/Breadcrumb/Breadcrumb.js +1 -2
- package/esm/Button/Button.d.ts +2 -2
- package/esm/Button/Button.js +1 -2
- package/esm/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/esm/ButtonGroup/ButtonGroup.js +1 -2
- package/esm/ButtonToolbar/ButtonToolbar.js +1 -2
- package/esm/Calendar/Calendar.js +3 -4
- package/esm/Calendar/CalendarBody.js +1 -4
- package/esm/Calendar/CalendarContainer.js +1 -1
- package/esm/Calendar/CalendarHeader.js +1 -1
- package/esm/Calendar/CalendarProvider.d.ts +1 -1
- package/esm/Calendar/Grid/GridCell.js +1 -2
- package/esm/Calendar/Grid/GridHeaderRow.js +1 -2
- package/esm/Calendar/Grid/GridRow.d.ts +2 -0
- package/esm/Calendar/Grid/GridRow.js +5 -4
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
- package/esm/Calendar/hooks/useCalendar.d.ts +24 -2
- package/esm/Calendar/hooks/useCalendar.js +35 -2
- package/esm/Card/Card.js +1 -2
- package/esm/CardGroup/CardGroup.js +1 -2
- package/esm/Carousel/Carousel.js +1 -2
- package/esm/CascadeTree/CascadeTree.js +1 -2
- package/esm/CascadeTree/SearchView.js +1 -2
- package/esm/CascadeTree/TreeView.js +1 -2
- package/esm/Cascader/Cascader.js +1 -2
- package/esm/CheckPicker/CheckPicker.js +1 -2
- package/esm/CheckTree/CheckTree.js +1 -2
- package/esm/CheckTree/CheckTreeNode.js +1 -2
- package/esm/CheckTree/CheckTreeView.js +1 -2
- package/esm/CheckTreePicker/CheckTreePicker.js +1 -2
- package/esm/Checkbox/Checkbox.js +1 -2
- package/esm/CheckboxGroup/CheckboxGroup.js +1 -2
- package/esm/Container/Container.js +1 -2
- package/esm/CustomProvider/CustomProvider.d.ts +1 -271
- package/esm/CustomProvider/CustomProvider.js +1 -1
- package/esm/CustomProvider/index.d.ts +1 -6
- package/esm/CustomProvider/index.js +0 -6
- package/esm/DateInput/DateInput.js +1 -2
- package/esm/DateInput/hooks/useDateInputState.js +1 -1
- package/esm/DatePicker/DatePicker.js +2 -3
- package/esm/DatePicker/hooks/useFocus.js +1 -2
- package/esm/DateRangeInput/DateRangeInput.js +1 -2
- package/esm/DateRangePicker/DateRangePicker.js +2 -3
- package/esm/DateRangePicker/Header.js +1 -1
- package/esm/DateRangePicker/utils.d.ts +1 -1
- package/esm/DateRangePicker/utils.js +1 -1
- package/esm/Divider/Divider.js +1 -2
- package/esm/Drawer/Drawer.js +1 -2
- package/esm/Dropdown/Dropdown.js +1 -2
- package/esm/Dropdown/DropdownMenu.js +1 -2
- package/esm/FlexboxGrid/FlexboxGrid.js +1 -2
- package/esm/Form/Form.js +1 -2
- package/esm/Form/FormContext.d.ts +1 -1
- package/esm/Form/hooks/useFormValidate.js +1 -1
- package/esm/FormControl/FormControl.js +54 -85
- package/esm/FormControlLabel/FormControlLabel.js +1 -2
- package/esm/FormErrorMessage/FormErrorMessage.js +1 -2
- package/esm/FormGroup/FormGroup.js +1 -2
- package/esm/FormHelpText/FormHelpText.js +1 -2
- package/esm/FormStack/FormStack.js +1 -2
- package/esm/Grid/Col.js +1 -2
- package/esm/Grid/Grid.js +1 -2
- package/esm/Grid/Row.js +1 -2
- package/esm/Heading/Heading.js +1 -2
- package/esm/Highlight/Highlight.js +2 -3
- package/esm/IconButton/IconButton.js +1 -2
- package/esm/Image/Image.js +2 -3
- package/esm/InlineEdit/InlineEdit.js +1 -2
- package/esm/Input/Input.js +2 -2
- package/esm/InputGroup/InputGroup.js +1 -2
- package/esm/InputNumber/index.d.ts +12 -2
- package/esm/InputNumber/index.js +8 -1
- package/esm/InputPicker/InputPicker.js +1 -2
- package/esm/InputPicker/utils.d.ts +1 -1
- package/esm/Kbd/Kbd.js +1 -2
- package/esm/Link/Link.js +1 -2
- package/esm/List/List.js +1 -2
- package/esm/Loader/Loader.js +1 -2
- package/esm/MaskedInput/MaskedInput.js +1 -1
- package/esm/Message/Message.js +1 -2
- package/esm/Modal/Modal.js +1 -2
- package/esm/Modal/ModalHeader.js +1 -2
- package/esm/MultiCascadeTree/MultiCascadeTree.js +1 -2
- package/esm/MultiCascadeTree/SearchView.js +1 -2
- package/esm/MultiCascadeTree/TreeView.js +1 -2
- package/esm/MultiCascader/MultiCascader.js +1 -2
- package/esm/Nav/Nav.js +1 -2
- package/esm/Nav/NavDropdownMenu.js +1 -2
- package/esm/Navbar/Navbar.d.ts +1 -1
- package/esm/Navbar/Navbar.js +1 -2
- package/esm/Navbar/NavbarDropdownMenu.js +1 -2
- package/esm/Navbar/NavbarToggle.d.ts +8 -3
- package/esm/Navbar/NavbarToggle.js +10 -15
- package/esm/Notification/Notification.js +1 -2
- package/{cjs/InputNumber/InputNumber.d.ts → esm/NumberInput/NumberInput.d.ts} +20 -8
- package/esm/NumberInput/NumberInput.js +157 -0
- package/esm/NumberInput/hooks/useEvents.d.ts +22 -0
- package/esm/NumberInput/hooks/useEvents.js +110 -0
- package/esm/NumberInput/hooks/useNumberInputValue.d.ts +7 -0
- package/esm/NumberInput/hooks/useNumberInputValue.js +29 -0
- package/esm/NumberInput/hooks/useWheelHandler.d.ts +5 -0
- package/esm/NumberInput/hooks/useWheelHandler.js +21 -0
- package/esm/NumberInput/index.d.ts +4 -0
- package/esm/NumberInput/index.js +8 -0
- package/esm/NumberInput/utils/number.d.ts +17 -0
- package/esm/NumberInput/utils/number.js +59 -0
- package/esm/Pagination/LimitPicker.d.ts +2 -2
- package/esm/Pagination/Pagination.d.ts +2 -2
- package/esm/Pagination/Pagination.js +1 -2
- package/esm/Pagination/PaginationGroup.js +1 -2
- package/esm/Panel/Panel.js +1 -2
- package/esm/PanelGroup/PanelGroup.js +1 -2
- package/esm/PasswordInput/PasswordInput.d.ts +4 -0
- package/esm/PasswordInput/PasswordInput.js +5 -4
- package/esm/PasswordStrengthMeter/PasswordStrengthMeter.js +1 -2
- package/esm/PinInput/PinInput.d.ts +36 -0
- package/esm/PinInput/PinInput.js +219 -0
- package/esm/PinInput/hooks/usePinInputRefs.d.ts +12 -0
- package/esm/PinInput/hooks/usePinInputRefs.js +58 -0
- package/esm/PinInput/hooks/usePinValue.d.ts +14 -0
- package/esm/PinInput/hooks/usePinValue.js +69 -0
- package/esm/PinInput/index.d.ts +4 -0
- package/esm/PinInput/index.js +4 -0
- package/esm/Placeholder/PlaceholderGraph.js +1 -2
- package/esm/Placeholder/PlaceholderGrid.js +1 -2
- package/esm/Placeholder/PlaceholderParagraph.js +1 -2
- package/esm/Popover/Popover.js +1 -2
- package/esm/Progress/ProgressCircle.js +1 -2
- package/esm/Progress/ProgressLine.js +1 -2
- package/esm/Radio/Radio.js +1 -2
- package/esm/RadioGroup/RadioGroup.js +1 -2
- package/esm/RadioTile/RadioTile.js +1 -2
- package/esm/RadioTileGroup/RadioTileGroup.js +1 -2
- package/esm/RangeSlider/RangeSlider.js +1 -2
- package/esm/Rate/Rate.js +1 -2
- package/esm/SelectPicker/SelectPicker.js +1 -2
- package/esm/Sidebar/Sidebar.js +1 -2
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
- package/esm/Sidenav/Sidenav.js +1 -2
- package/esm/Sidenav/SidenavDropdownMenu.js +1 -2
- package/esm/Slider/Slider.d.ts +5 -1
- package/esm/Slider/Slider.js +12 -13
- package/esm/Stack/Stack.js +1 -2
- package/esm/Stat/Stat.js +1 -2
- package/esm/Stat/StatValue.js +1 -1
- package/esm/StatGroup/StatGroup.js +1 -2
- package/esm/Steps/Steps.js +1 -2
- package/esm/Table/Table.js +1 -1
- package/esm/Tabs/Tabs.js +1 -2
- package/esm/Tag/Tag.js +1 -2
- package/esm/TagInput/TagInput.js +1 -1
- package/esm/TagPicker/TagPicker.js +1 -1
- package/esm/Text/Text.js +1 -2
- package/esm/Textarea/Textarea.js +1 -2
- package/esm/TimePicker/TimePicker.d.ts +1 -2
- package/esm/TimePicker/TimePicker.js +1 -1
- package/esm/TimeRangePicker/TimeRangePicker.js +1 -1
- package/esm/Timeline/Timeline.js +1 -2
- package/esm/Toggle/Toggle.js +1 -2
- package/esm/Tooltip/Tooltip.js +1 -2
- package/esm/Tree/Tree.js +1 -2
- package/esm/Tree/TreeNode.js +1 -2
- package/esm/Tree/TreeNodeToggle.js +1 -2
- package/esm/Tree/TreeView.js +1 -2
- package/esm/Tree/hooks/useFocusTree.js +1 -2
- package/esm/TreePicker/TreePicker.js +1 -2
- package/esm/Uploader/Uploader.js +1 -2
- package/esm/Whisper/Whisper.js +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/internals/Box/index.d.ts +1 -0
- package/esm/internals/Box/index.js +1 -0
- package/esm/internals/Burger/Burger.d.ts +16 -0
- package/esm/internals/Burger/Burger.js +41 -0
- package/esm/internals/Burger/index.d.ts +4 -0
- package/esm/internals/Burger/index.js +8 -0
- package/esm/internals/CloseButton/CloseButton.js +1 -2
- package/esm/internals/Menu/Menu.js +1 -1
- package/esm/internals/Menu/Menubar.js +1 -1
- package/esm/internals/Picker/PickerIndicator.js +1 -2
- package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/esm/internals/Plaintext/Plaintext.js +1 -2
- package/esm/internals/Provider/CustomContext.d.ts +253 -0
- package/esm/internals/Provider/CustomContext.js +3 -0
- package/esm/internals/Provider/types.d.ts +236 -0
- package/esm/internals/Ripple/Ripple.js +1 -2
- package/esm/internals/SafeAnchor/SafeAnchor.js +1 -1
- package/esm/internals/Windowing/List.js +1 -1
- package/esm/internals/hooks/index.d.ts +1 -0
- package/esm/internals/hooks/index.js +1 -0
- package/esm/{CustomProvider → internals/hooks}/useCustom.d.ts +4 -4
- package/esm/{CustomProvider → internals/hooks}/useCustom.js +4 -4
- package/esm/internals/hooks/useStyles.js +1 -1
- package/esm/internals/hooks/useToggleCaret.js +1 -1
- package/esm/{CustomProvider → internals/intl}/FormattedDate.js +1 -1
- package/esm/{CustomProvider → internals/intl}/FormattedNumber.js +1 -1
- package/esm/internals/types/picker.d.ts +2 -2
- package/esm/internals/types/sizes.d.ts +2 -0
- package/esm/internals/types/sizes.js +3 -1
- package/esm/internals/utils/date/getWeekStartDates.d.ts +0 -1
- package/esm/internals/utils/date/getWeekStartDates.js +2 -4
- package/esm/internals/utils/react/createComponent.js +12 -2
- package/esm/{FormControl → useFormControl}/hooks/useField.d.ts +3 -3
- package/esm/{FormControl → useFormControl}/hooks/useField.js +4 -5
- package/esm/useFormControl/hooks/useRegisterModel.d.ts +2 -0
- package/esm/{FormControl → useFormControl}/hooks/useRegisterModel.js +2 -3
- package/esm/useFormControl/index.d.ts +4 -0
- package/esm/useFormControl/index.js +8 -0
- package/esm/useFormControl/useFormControl.d.ts +38 -0
- package/esm/useFormControl/useFormControl.js +133 -0
- package/esm/{FormControl/utils.js → useFormControl/utils/nameToPath.js} +0 -0
- package/esm/useToaster/useToaster.js +1 -3
- package/internals/Burger/styles/index.less +67 -0
- package/internals/CloseButton/styles/index.less +0 -10
- package/internals/Picker/styles/index.less +13 -10
- package/internals/Picker/styles/mixin.less +3 -3
- package/package.json +3 -3
- package/styles/color-modes/dark.less +7 -10
- package/styles/color-modes/high-contrast.less +3 -6
- package/styles/color-modes/light.less +5 -8
- package/styles/index.less +3 -1
- package/styles/mixins/utilities.less +2 -5
- package/useFormControl/package.json +7 -0
- package/cjs/CustomProvider/types.d.ts +0 -234
- package/cjs/FormControl/hooks/useRegisterModel.d.ts +0 -3
- package/cjs/InputNumber/InputNumber.js +0 -300
- package/esm/CustomProvider/types.d.ts +0 -234
- package/esm/FormControl/hooks/useRegisterModel.d.ts +0 -3
- package/esm/InputNumber/InputNumber.js +0 -293
- /package/cjs/{CustomProvider → internals/Provider}/types.js +0 -0
- /package/cjs/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
- /package/cjs/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
- /package/cjs/{FormControl/utils.d.ts → useFormControl/utils/nameToPath.d.ts} +0 -0
- /package/esm/{CustomProvider → internals/Provider}/types.js +0 -0
- /package/esm/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
- /package/esm/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
- /package/esm/{FormControl/utils.d.ts → useFormControl/utils/nameToPath.d.ts} +0 -0
package/esm/Sidebar/Sidebar.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React, { useContext, useEffect } from 'react';
|
|
4
4
|
import Box from "../internals/Box/index.js";
|
|
5
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
5
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
6
6
|
import { forwardRef } from "../internals/utils/index.js";
|
|
7
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
8
7
|
import { ContainerContext } from "../Container/Container.js";
|
|
9
8
|
/**
|
|
10
9
|
* The `Sidebar` component for use with the `Container` component.
|
|
@@ -10,9 +10,8 @@ import ArrowLeftLine from '@rsuite/icons/ArrowLeftLine';
|
|
|
10
10
|
import ArrowRightLine from '@rsuite/icons/ArrowRightLine';
|
|
11
11
|
import Box from "../internals/Box/index.js";
|
|
12
12
|
import { forwardRef, createChainedFunction } from "../internals/utils/index.js";
|
|
13
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
13
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
14
14
|
import { SidenavContext } from "./Sidenav.js";
|
|
15
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
16
15
|
/**
|
|
17
16
|
* Tree View Node
|
|
18
17
|
* @see https://www.w3.org/TR/wai-aria-practices-1.2/#TreeView
|
package/esm/Sidenav/Sidenav.js
CHANGED
|
@@ -10,8 +10,7 @@ import SidenavToggle from "./SidenavToggle.js";
|
|
|
10
10
|
import SidenavGroupLabel from "./SidenavGroupLabel.js";
|
|
11
11
|
import Box from "../internals/Box/index.js";
|
|
12
12
|
import { forwardRef, mergeRefs, shallowEqual } from "../internals/utils/index.js";
|
|
13
|
-
import { useStyles, useControlled } from "../internals/hooks/index.js";
|
|
14
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
13
|
+
import { useStyles, useCustom, useControlled } from "../internals/hooks/index.js";
|
|
15
14
|
export const SidenavContext = /*#__PURE__*/React.createContext(null);
|
|
16
15
|
const emptyArray = [];
|
|
17
16
|
const Subcomponents = {
|
|
@@ -8,10 +8,9 @@ import ArrowLeftLine from '@rsuite/icons/ArrowLeftLine';
|
|
|
8
8
|
import ArrowRightLine from '@rsuite/icons/ArrowRightLine';
|
|
9
9
|
import NavContext from "../Nav/NavContext.js";
|
|
10
10
|
import ExpandedSidenavDropdownMenu from "./ExpandedSidenavDropdownMenu.js";
|
|
11
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
11
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
12
12
|
import { mergeRefs } from "../internals/utils/index.js";
|
|
13
13
|
import { SidenavContext } from "./Sidenav.js";
|
|
14
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
15
14
|
/**
|
|
16
15
|
* @private this component is not supposed to be used directly
|
|
17
16
|
* Instead it's rendered by a <Nav.Menu> within a <Sidenav>
|
package/esm/Slider/Slider.d.ts
CHANGED
|
@@ -44,16 +44,20 @@ export interface SliderProps<T = number> extends BoxProps, FormControlBaseProps<
|
|
|
44
44
|
placeholder?: React.ReactNode;
|
|
45
45
|
/** Vertical Slide */
|
|
46
46
|
vertical?: boolean;
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* If true, tooltip will always be visible even without hover
|
|
49
|
+
*/
|
|
48
50
|
keepTooltipOpen?: boolean;
|
|
49
51
|
/**
|
|
50
52
|
* A slider can have different sizes.
|
|
51
53
|
*
|
|
52
54
|
* @default 'sm'
|
|
55
|
+
* @version 6.0.0
|
|
53
56
|
*/
|
|
54
57
|
size?: Size;
|
|
55
58
|
/**
|
|
56
59
|
* Custom marks on the ruler
|
|
60
|
+
* @version 6.0.0
|
|
57
61
|
*/
|
|
58
62
|
marks?: {
|
|
59
63
|
value: number;
|
package/esm/Slider/Slider.js
CHANGED
|
@@ -9,8 +9,7 @@ import Handle from "./Handle.js";
|
|
|
9
9
|
import Graduated from "./Graduated.js";
|
|
10
10
|
import Plaintext from "../internals/Plaintext/index.js";
|
|
11
11
|
import Box from "../internals/Box/index.js";
|
|
12
|
-
import { useStyles, useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
13
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
12
|
+
import { useStyles, useCustom, useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
14
13
|
import { forwardRef } from "../internals/utils/index.js";
|
|
15
14
|
import { precisionMath, checkValue, getPosition } from "./utils.js";
|
|
16
15
|
/**
|
|
@@ -27,33 +26,33 @@ const Slider = forwardRef((props, ref) => {
|
|
|
27
26
|
'aria-labelledby': ariaLabelledby,
|
|
28
27
|
'aria-valuetext': ariaValuetext,
|
|
29
28
|
as,
|
|
30
|
-
graduated,
|
|
31
29
|
className,
|
|
30
|
+
classPrefix = 'slider',
|
|
32
31
|
barClassName,
|
|
33
|
-
|
|
34
|
-
vertical,
|
|
32
|
+
defaultValue = 0,
|
|
35
33
|
disabled,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
classPrefix = 'slider',
|
|
39
|
-
min = 0,
|
|
34
|
+
progress,
|
|
35
|
+
graduated,
|
|
40
36
|
handleClassName,
|
|
41
37
|
handleStyle,
|
|
42
38
|
handleTitle,
|
|
43
|
-
|
|
39
|
+
keepTooltipOpen,
|
|
40
|
+
readOnly,
|
|
44
41
|
step = 1,
|
|
45
42
|
size = 'sm',
|
|
46
|
-
|
|
47
|
-
value: valueProp,
|
|
43
|
+
tooltip = true,
|
|
48
44
|
max: maxProp = 100,
|
|
49
45
|
placeholder,
|
|
46
|
+
plaintext,
|
|
50
47
|
marks,
|
|
48
|
+
min = 0,
|
|
49
|
+
vertical,
|
|
50
|
+
value: valueProp,
|
|
51
51
|
getAriaValueText,
|
|
52
52
|
renderTooltip,
|
|
53
53
|
renderMark,
|
|
54
54
|
onChange,
|
|
55
55
|
onChangeCommitted,
|
|
56
|
-
keepTooltipOpen,
|
|
57
56
|
...rest
|
|
58
57
|
} = propsWithDefaults;
|
|
59
58
|
const barRef = useRef(null);
|
package/esm/Stack/Stack.js
CHANGED
|
@@ -4,8 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import StackItem from "./StackItem.js";
|
|
5
5
|
import Box from "../internals/Box/index.js";
|
|
6
6
|
import { forwardRef, mergeStyles, getCssValue } from "../internals/utils/index.js";
|
|
7
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
8
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
9
8
|
const Subcomponents = {
|
|
10
9
|
Item: StackItem
|
|
11
10
|
};
|
package/esm/Stat/Stat.js
CHANGED
|
@@ -8,8 +8,7 @@ import StatHelpText from "./StatHelpText.js";
|
|
|
8
8
|
import StatTrend from "./StatTrend.js";
|
|
9
9
|
import Box from "../internals/Box/index.js";
|
|
10
10
|
import { forwardRef } from "../internals/utils/index.js";
|
|
11
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
12
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
11
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
13
12
|
const Subcomponents = {
|
|
14
13
|
Label: StatLabel,
|
|
15
14
|
Value: StatValue,
|
package/esm/Stat/StatValue.js
CHANGED
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import Box from "../internals/Box/index.js";
|
|
5
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
6
6
|
import { useStyles } from "../internals/hooks/index.js";
|
|
7
|
-
import { FormattedNumber } from "../
|
|
7
|
+
import { FormattedNumber } from "../internals/intl/FormattedNumber.js";
|
|
8
8
|
const StatValue = forwardRef((props, ref) => {
|
|
9
9
|
const {
|
|
10
10
|
as = 'dd',
|
|
@@ -3,8 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Box from "../internals/Box/index.js";
|
|
5
5
|
import { forwardRef, getCssValue, mergeStyles } from "../internals/utils/index.js";
|
|
6
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
7
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
6
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
8
7
|
const StatGroup = forwardRef((props, ref) => {
|
|
9
8
|
const {
|
|
10
9
|
propsWithDefaults
|
package/esm/Steps/Steps.js
CHANGED
|
@@ -4,8 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import StepItem from "./StepItem.js";
|
|
5
5
|
import Box from "../internals/Box/index.js";
|
|
6
6
|
import { forwardRef, rch } from "../internals/utils/index.js";
|
|
7
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
8
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
9
8
|
const Subcomponents = {
|
|
10
9
|
Item: StepItem
|
|
11
10
|
};
|
package/esm/Table/Table.js
CHANGED
|
@@ -5,7 +5,7 @@ import TableCell from "./TableCell.js";
|
|
|
5
5
|
import TableHeaderCell from "./TableHeaderCell.js";
|
|
6
6
|
import TableColumn from "./TableColumn.js";
|
|
7
7
|
import TableColumnGroup from "./TableColumnGroup.js";
|
|
8
|
-
import { useCustom } from "../
|
|
8
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
9
9
|
import { Table as RsTable } from 'rsuite-table';
|
|
10
10
|
const CustomTable = /*#__PURE__*/React.forwardRef(function Table(props, ref) {
|
|
11
11
|
const {
|
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -6,8 +6,7 @@ import Tab from "./Tab.js";
|
|
|
6
6
|
import TabPanel from "./TabPanel.js";
|
|
7
7
|
import Box from "../internals/Box/index.js";
|
|
8
8
|
import { forwardRef, rch } from "../internals/utils/index.js";
|
|
9
|
-
import { useStyles, useControlled, useEventCallback, useUniqueId } from "../internals/hooks/index.js";
|
|
10
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
9
|
+
import { useStyles, useCustom, useControlled, useEventCallback, useUniqueId } from "../internals/hooks/index.js";
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Props for the Tabs component.
|
package/esm/Tag/Tag.js
CHANGED
|
@@ -3,8 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import CloseButton from "../internals/CloseButton/index.js";
|
|
5
5
|
import Box from "../internals/Box/index.js";
|
|
6
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
7
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
6
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
8
7
|
import { forwardRef, mergeStyles, isPresetColor, createColorVariables } from "../internals/utils/index.js";
|
|
9
8
|
/**
|
|
10
9
|
* The `Tag` component is used to label and categorize.
|
package/esm/TagInput/TagInput.js
CHANGED
|
@@ -4,7 +4,7 @@ import React, { useMemo } from 'react';
|
|
|
4
4
|
import InputPicker from "../InputPicker/InputPicker.js";
|
|
5
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
6
6
|
import { TagProvider } from "../InputPicker/InputPickerContext.js";
|
|
7
|
-
import { useCustom } from "../
|
|
7
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* The `TagInput` component is an enhancement of Input and supports input tags and management tags.
|
|
10
10
|
*
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import InputPicker from "../InputPicker/InputPicker.js";
|
|
5
5
|
import { TagProvider } from "../InputPicker/InputPickerContext.js";
|
|
6
|
-
import { useCustom } from "../
|
|
6
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
7
7
|
import { forwardRef } from "../internals/utils/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* `TagPicker` component enables multi-selection by tags and supports new options.
|
package/esm/Text/Text.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Box from "../internals/Box/index.js";
|
|
5
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
6
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
5
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
7
6
|
import { forwardRef, mergeStyles, getSizeStyle } from "../internals/utils/index.js";
|
|
8
7
|
/**
|
|
9
8
|
*
|
package/esm/Textarea/Textarea.js
CHANGED
|
@@ -4,8 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import ReactTextareaAutosize from 'react-textarea-autosize';
|
|
5
5
|
import InputBase from "../internals/InputBase/index.js";
|
|
6
6
|
import { forwardRef, mergeStyles } from "../internals/utils/index.js";
|
|
7
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
8
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
9
8
|
const Textarea = forwardRef((props, ref) => {
|
|
10
9
|
const {
|
|
11
10
|
propsWithDefaults
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DateOptionPreset } from '../internals/types';
|
|
3
|
-
import type { FormControlBaseProps, PickerBaseProps } from '../internals/types';
|
|
2
|
+
import type { DateOptionPreset, FormControlBaseProps, PickerBaseProps } from '../internals/types';
|
|
4
3
|
import type { DatePickerLocale } from '../locales';
|
|
5
4
|
export interface TimePickerProps extends PickerBaseProps<DatePickerLocale>, FormControlBaseProps<Date | null> {
|
|
6
5
|
/**
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import DatePicker from "../DatePicker/index.js";
|
|
5
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
6
|
-
import { useCustom } from "../
|
|
6
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
7
7
|
const TimePicker = forwardRef((props, ref) => {
|
|
8
8
|
const {
|
|
9
9
|
propsWithDefaults,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import DateRangePicker from "../DateRangePicker/index.js";
|
|
5
|
-
import { useCustom } from "../
|
|
5
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
6
6
|
import { forwardRef } from "../internals/utils/index.js";
|
|
7
7
|
const defaultRanges = [];
|
|
8
8
|
const TimeRangePicker = forwardRef((props, ref) => {
|
package/esm/Timeline/Timeline.js
CHANGED
|
@@ -4,8 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import some from 'lodash/some';
|
|
5
5
|
import TimelineItem from "./TimelineItem.js";
|
|
6
6
|
import Box from "../internals/Box/index.js";
|
|
7
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
8
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
9
8
|
import { forwardRef, rch } from "../internals/utils/index.js";
|
|
10
9
|
const ACTIVE_FIRST = index => index === 0;
|
|
11
10
|
const ACTIVE_LAST = (index, totalItemsCount) => index === totalItemsCount - 1;
|
package/esm/Toggle/Toggle.js
CHANGED
|
@@ -4,9 +4,8 @@ import React, { useRef } from 'react';
|
|
|
4
4
|
import Plaintext from "../internals/Plaintext/index.js";
|
|
5
5
|
import Loader from "../Loader/index.js";
|
|
6
6
|
import Box from "../internals/Box/index.js";
|
|
7
|
-
import { useStyles, useControlled, useUniqueId, useEventCallback } from "../internals/hooks/index.js";
|
|
7
|
+
import { useStyles, useControlled, useUniqueId, useEventCallback, useCustom } from "../internals/hooks/index.js";
|
|
8
8
|
import { forwardRef, partitionHTMLProps } from "../internals/utils/index.js";
|
|
9
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
10
9
|
/**
|
|
11
10
|
* The `Toggle` component is used to activate or deactivate an element.
|
|
12
11
|
*
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -3,8 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import Box from "../internals/Box/index.js";
|
|
5
5
|
import { forwardRef, mergeStyles } from "../internals/utils/index.js";
|
|
6
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
7
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
6
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
8
7
|
/**
|
|
9
8
|
* The `Tooltip` component is used to describe a element.
|
|
10
9
|
*
|
package/esm/Tree/Tree.js
CHANGED
|
@@ -6,9 +6,8 @@ import useTreeWithChildren from "./hooks/useTreeWithChildren.js";
|
|
|
6
6
|
import useExpandTree from "./hooks/useExpandTree.js";
|
|
7
7
|
import TreeView from "./TreeView.js";
|
|
8
8
|
import { forwardRef } from "../internals/utils/index.js";
|
|
9
|
-
import { useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
9
|
+
import { useControlled, useEventCallback, useCustom } from "../internals/hooks/index.js";
|
|
10
10
|
import { TreeProvider } from "../internals/Tree/TreeProvider.js";
|
|
11
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
12
11
|
/**
|
|
13
12
|
* The `Tree` component is used to display hierarchical data.
|
|
14
13
|
*
|
package/esm/Tree/TreeNode.js
CHANGED
|
@@ -4,10 +4,9 @@ import React, { useMemo } from 'react';
|
|
|
4
4
|
import TreeNodeToggle from "./TreeNodeToggle.js";
|
|
5
5
|
import Box from "../internals/Box/index.js";
|
|
6
6
|
import { forwardRef, mergeRefs, stringifyReactNode, mergeStyles } from "../internals/utils/index.js";
|
|
7
|
-
import { useFocusVirtualListItem, useStyles, useEventCallback } from "../internals/hooks/index.js";
|
|
7
|
+
import { useFocusVirtualListItem, useStyles, useCustom, useEventCallback } from "../internals/hooks/index.js";
|
|
8
8
|
import { useTreeContextProps } from "../internals/Tree/TreeProvider.js";
|
|
9
9
|
import { indentTreeNode } from "./utils/index.js";
|
|
10
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Props for the TreeNode component.
|
|
@@ -5,9 +5,8 @@ import ArrowDownIcon from '@rsuite/icons/ArrowDown';
|
|
|
5
5
|
import ArrowRightIcon from '@rsuite/icons/ArrowRight';
|
|
6
6
|
import ArrowLeftIcon from '@rsuite/icons/ArrowLeft';
|
|
7
7
|
import Spinner from '@rsuite/icons/Spinner';
|
|
8
|
-
import { useStyles } from "../internals/hooks/index.js";
|
|
8
|
+
import { useStyles, useCustom } from "../internals/hooks/index.js";
|
|
9
9
|
import { useTreeCustomRenderer } from "../internals/Tree/TreeProvider.js";
|
|
10
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
11
10
|
function TreeNodeToggle(props) {
|
|
12
11
|
const {
|
|
13
12
|
data,
|
package/esm/Tree/TreeView.js
CHANGED
|
@@ -14,12 +14,11 @@ import Box from "../internals/Box/index.js";
|
|
|
14
14
|
import { List, AutoSizer, defaultItemSize } from "../internals/Windowing/index.js";
|
|
15
15
|
import { forwardRef } from "../internals/utils/index.js";
|
|
16
16
|
import { getPathTowardsItem, getKeyParentMap } from "../internals/Tree/utils/index.js";
|
|
17
|
-
import { useStyles, useEventCallback } from "../internals/hooks/index.js";
|
|
17
|
+
import { useStyles, useCustom, useEventCallback } from "../internals/hooks/index.js";
|
|
18
18
|
import { isExpand, hasVisibleChildren, getActiveItem } from "./utils/index.js";
|
|
19
19
|
import { onMenuKeyDown } from "../internals/Picker/index.js";
|
|
20
20
|
import { TreeView as BaseTreeView } from "../internals/Tree/index.js";
|
|
21
21
|
import { useTreeContextProps } from "../internals/Tree/TreeProvider.js";
|
|
22
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
24
|
* Props for the TreeViewInner component.
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import isNil from 'lodash/isNil';
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { KEY_VALUES } from "../../internals/constants/index.js";
|
|
5
|
-
import { useEventCallback } from "../../internals/hooks/index.js";
|
|
5
|
+
import { useEventCallback, useCustom } from "../../internals/hooks/index.js";
|
|
6
6
|
import { onMenuKeyDown } from "../../internals/Picker/index.js";
|
|
7
7
|
import { useItemDataKeys, useRegisterTreeMethods } from "../../internals/Tree/TreeProvider.js";
|
|
8
8
|
import { isSearching, focusNextItem, getFocusableItems, getActiveItem, focusPreviousItem, focusCurrentItem, focusTreeNode, handleLeftArrow, handleRightArrow } from "../utils/index.js";
|
|
9
|
-
import { useCustom } from "../../CustomProvider/index.js";
|
|
10
9
|
import useTreeNodeRefs from "./useTreeNodeRefs.js";
|
|
11
10
|
/**
|
|
12
11
|
* Custom hook that manages the focus behavior of a tree component.
|
|
@@ -9,12 +9,11 @@ import useFlattenTree from "../Tree/hooks/useFlattenTree.js";
|
|
|
9
9
|
import useFocusState from "./hooks/useFocusState.js";
|
|
10
10
|
import useExpandTree from "../Tree/hooks/useExpandTree.js";
|
|
11
11
|
import TreeView from "../Tree/TreeView.js";
|
|
12
|
-
import { useStyles, useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
12
|
+
import { useStyles, useCustom, useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
13
13
|
import { forwardRef, createChainedFunction, mergeRefs } from "../internals/utils/index.js";
|
|
14
14
|
import { getActiveItem, getTreeActiveNode } from "../Tree/utils/index.js";
|
|
15
15
|
import { PickerToggle, PickerPopup, PickerToggleTrigger, usePickerRef, onMenuKeyDown, triggerPropKeys, useToggleKeyDownEvent } from "../internals/Picker/index.js";
|
|
16
16
|
import { TreeProvider, useTreeImperativeHandle } from "../internals/Tree/TreeProvider.js";
|
|
17
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
18
17
|
/**
|
|
19
18
|
* The `TreePicker` component is used for selecting single options which are organized in a tree structure.
|
|
20
19
|
*
|
package/esm/Uploader/Uploader.js
CHANGED
|
@@ -8,8 +8,7 @@ import ajaxUpload from "./utils/ajaxUpload.js";
|
|
|
8
8
|
import UploadTrigger from "./UploadTrigger.js";
|
|
9
9
|
import Box from "../internals/Box/index.js";
|
|
10
10
|
import { forwardRef, guid } from "../internals/utils/index.js";
|
|
11
|
-
import { useStyles, useWillUnmount, useEventCallback } from "../internals/hooks/index.js";
|
|
12
|
-
import { useCustom } from "../CustomProvider/index.js";
|
|
11
|
+
import { useStyles, useCustom, useWillUnmount, useEventCallback } from "../internals/hooks/index.js";
|
|
13
12
|
|
|
14
13
|
// Define several states of the file during the upload process.
|
|
15
14
|
|
package/esm/Whisper/Whisper.js
CHANGED
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import OverlayTrigger from "../internals/Overlay/OverlayTrigger.js";
|
|
5
5
|
import { createChainedFunction, placementPolyfill } from "../internals/utils/index.js";
|
|
6
|
-
import { useCustom } from "../
|
|
6
|
+
import { useCustom } from "../internals/hooks/index.js";
|
|
7
7
|
/**
|
|
8
8
|
* The `Whisper` component is used to display a floating element.
|
|
9
9
|
* It is usually used with the `Tooltip` and `Popover` components.
|
package/esm/index.d.ts
CHANGED
|
@@ -44,9 +44,11 @@ export * from './Input';
|
|
|
44
44
|
export * from './Textarea';
|
|
45
45
|
export * from './MaskedInput';
|
|
46
46
|
export * from './InputNumber';
|
|
47
|
+
export * from './NumberInput';
|
|
47
48
|
export * from './InputGroup';
|
|
48
49
|
export * from './PasswordInput';
|
|
49
50
|
export * from './PasswordStrengthMeter';
|
|
51
|
+
export * from './PinInput';
|
|
50
52
|
export * from './Checkbox';
|
|
51
53
|
export * from './CheckboxGroup';
|
|
52
54
|
export * from './Radio';
|
|
@@ -109,6 +111,7 @@ export * from './Affix';
|
|
|
109
111
|
export * from './CustomProvider';
|
|
110
112
|
export * from './useMediaQuery';
|
|
111
113
|
export * from './useBreakpointValue';
|
|
114
|
+
export * from './useFormControl';
|
|
112
115
|
export * from './VisuallyHidden';
|
|
113
116
|
export * from './Tabs';
|
|
114
117
|
export * from './Accordion';
|
package/esm/index.js
CHANGED
|
@@ -68,9 +68,11 @@ export * from "./Input/index.js";
|
|
|
68
68
|
export * from "./Textarea/index.js";
|
|
69
69
|
export * from "./MaskedInput/index.js";
|
|
70
70
|
export * from "./InputNumber/index.js";
|
|
71
|
+
export * from "./NumberInput/index.js";
|
|
71
72
|
export * from "./InputGroup/index.js";
|
|
72
73
|
export * from "./PasswordInput/index.js";
|
|
73
74
|
export * from "./PasswordStrengthMeter/index.js";
|
|
75
|
+
export * from "./PinInput/index.js";
|
|
74
76
|
export * from "./Checkbox/index.js";
|
|
75
77
|
export * from "./CheckboxGroup/index.js";
|
|
76
78
|
export * from "./Radio/index.js";
|
|
@@ -145,6 +147,7 @@ export * from "./CustomProvider/index.js";
|
|
|
145
147
|
// --------------------------------------------------------
|
|
146
148
|
export * from "./useMediaQuery/index.js";
|
|
147
149
|
export * from "./useBreakpointValue/index.js";
|
|
150
|
+
export * from "./useFormControl/index.js";
|
|
148
151
|
|
|
149
152
|
// Disclosure
|
|
150
153
|
// --------------------------------------------------------
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import type { Color } from '../types';
|
|
4
|
+
export interface BurgerProps extends BoxProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
/** Color of the Box */
|
|
6
|
+
color?: Color | React.CSSProperties['color'];
|
|
7
|
+
/** If true, burger is in open (X) state */
|
|
8
|
+
open?: boolean;
|
|
9
|
+
/** Thickness of the burger lines (px) */
|
|
10
|
+
lineThickness?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Burger (hamburger menu) button for toggling navigation menus.
|
|
14
|
+
*/
|
|
15
|
+
declare const Burger: import("../types").InternalRefForwardingComponent<"button", BurgerProps, never> & Record<string, never>;
|
|
16
|
+
export default Burger;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Box from "../Box/index.js";
|
|
5
|
+
import { forwardRef, mergeStyles, getCssValue, getColorStyle } from "../utils/index.js";
|
|
6
|
+
import { useStyles } from "../hooks/index.js";
|
|
7
|
+
/**
|
|
8
|
+
* Burger (hamburger menu) button for toggling navigation menus.
|
|
9
|
+
*/
|
|
10
|
+
const Burger = forwardRef((props, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
as = 'button',
|
|
13
|
+
classPrefix = 'burger',
|
|
14
|
+
className,
|
|
15
|
+
color,
|
|
16
|
+
open = false,
|
|
17
|
+
lineThickness,
|
|
18
|
+
style,
|
|
19
|
+
...rest
|
|
20
|
+
} = props;
|
|
21
|
+
const {
|
|
22
|
+
withPrefix,
|
|
23
|
+
merge,
|
|
24
|
+
cssVar,
|
|
25
|
+
prefix
|
|
26
|
+
} = useStyles(classPrefix);
|
|
27
|
+
const classes = merge(className, withPrefix());
|
|
28
|
+
const mergedStyle = mergeStyles(style, cssVar('thickness', getCssValue(lineThickness)), getColorStyle(color, 'burger'));
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
30
|
+
as: as,
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: classes,
|
|
33
|
+
"aria-pressed": open,
|
|
34
|
+
"data-opened": open,
|
|
35
|
+
style: mergedStyle
|
|
36
|
+
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: prefix('line')
|
|
38
|
+
}));
|
|
39
|
+
});
|
|
40
|
+
Burger.displayName = 'Burger';
|
|
41
|
+
export default Burger;
|
|
@@ -4,8 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import Close from '@rsuite/icons/Close';
|
|
5
5
|
import IconButton from "../../IconButton/index.js";
|
|
6
6
|
import { forwardRef } from "../utils/index.js";
|
|
7
|
-
import { useStyles } from "../hooks/index.js";
|
|
8
|
-
import { useCustom } from "../../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../hooks/index.js";
|
|
9
8
|
/**
|
|
10
9
|
* Close button for components such as Message and Notification.
|
|
11
10
|
*/
|
|
@@ -6,7 +6,7 @@ import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
|
6
6
|
import useMenu from "./useMenu.js";
|
|
7
7
|
import { useUniqueId, useFocus, useClickOutside } from "../hooks/index.js";
|
|
8
8
|
import { KEY_VALUES } from "../constants/index.js";
|
|
9
|
-
import { useCustom } from "
|
|
9
|
+
import { useCustom } from "../hooks/index.js";
|
|
10
10
|
import { isFocusLeaving, isFocusableElement } from "../utils/index.js";
|
|
11
11
|
const defaultOpenMenuOn = ['click'];
|
|
12
12
|
function getMenuItemTarget(event) {
|
|
@@ -5,7 +5,7 @@ import isNil from 'lodash/isNil';
|
|
|
5
5
|
import useMenu from "./useMenu.js";
|
|
6
6
|
import MenuContext, { MenuActionTypes, MoveFocusTo } from "./MenuContext.js";
|
|
7
7
|
import { KEY_VALUES } from "../constants/index.js";
|
|
8
|
-
import { useCustom } from "
|
|
8
|
+
import { useCustom } from "../hooks/index.js";
|
|
9
9
|
import { isFocusEntering, isFocusLeaving, isFocusableElement } from "../utils/index.js";
|
|
10
10
|
/**
|
|
11
11
|
* @private
|
|
@@ -4,8 +4,7 @@ import Icon from '@rsuite/icons/Icon';
|
|
|
4
4
|
import InputGroup from "../../InputGroup/index.js";
|
|
5
5
|
import CloseButton from "../CloseButton/index.js";
|
|
6
6
|
import Loader from "../../Loader/index.js";
|
|
7
|
-
import { useStyles } from "../hooks/index.js";
|
|
8
|
-
import { useCustom } from "../../CustomProvider/index.js";
|
|
7
|
+
import { useStyles, useCustom } from "../hooks/index.js";
|
|
9
8
|
const PickerIndicator = _ref => {
|
|
10
9
|
let {
|
|
11
10
|
loading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare function useCombobox(): {
|
|
2
2
|
id: string | undefined;
|
|
3
|
-
popupType: "dialog" | "menu" | "
|
|
3
|
+
popupType: "dialog" | "menu" | "listbox" | "grid" | "tree" | undefined;
|
|
4
4
|
multiple: boolean | undefined;
|
|
5
5
|
placement: import("../../types").Placement | undefined;
|
|
6
6
|
breakpoint: string | undefined;
|
|
@@ -3,8 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Box from "../Box/index.js";
|
|
5
5
|
import { forwardRef } from "../utils/index.js";
|
|
6
|
-
import { useStyles } from "../hooks/index.js";
|
|
7
|
-
import { useCustom } from "../../CustomProvider/index.js";
|
|
6
|
+
import { useStyles, useCustom } from "../hooks/index.js";
|
|
8
7
|
/**
|
|
9
8
|
* Make the component display in plain text, and display default characters when there is no children.
|
|
10
9
|
* @private
|