rsuite 6.0.0-canary-20250403 → 6.0.0-canary-20250424
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 -78
- package/AutoComplete/styles/index.less +0 -0
- package/Avatar/styles/index.css +0 -0
- package/Avatar/styles/index.less +0 -0
- package/AvatarGroup/styles/index.css +0 -0
- package/AvatarGroup/styles/index.less +0 -0
- package/Badge/styles/index.css +0 -0
- package/Badge/styles/index.less +0 -0
- package/Badge/styles/variables.less +0 -0
- package/Box/styles/index.css +0 -0
- package/Box/styles/index.less +0 -0
- package/Breadcrumb/styles/index.css +0 -0
- package/Breadcrumb/styles/index.less +0 -0
- package/Button/styles/index.css +4 -6
- package/Button/styles/index.less +0 -0
- package/Button/styles/mixin.less +0 -0
- package/Button/styles/variables.less +0 -0
- package/ButtonGroup/styles/index.css +0 -0
- package/ButtonGroup/styles/index.less +0 -0
- package/ButtonToolbar/styles/index.css +0 -0
- package/ButtonToolbar/styles/index.less +0 -0
- package/CHANGELOG.md +15 -0
- package/Calendar/styles/index.css +8 -16
- package/Calendar/styles/index.less +0 -0
- package/Card/styles/index.css +0 -0
- package/Card/styles/index.less +0 -0
- package/CardGroup/styles/index.css +0 -0
- package/CardGroup/styles/index.less +0 -0
- package/Carousel/styles/index.css +0 -0
- package/Carousel/styles/index.less +0 -0
- package/CascadeTree/styles/index.css +8 -16
- package/CascadeTree/styles/index.less +0 -0
- package/Cascader/styles/index.css +36 -86
- package/Center/styles/index.css +0 -0
- package/Center/styles/index.less +0 -0
- package/CheckPicker/styles/index.css +32 -73
- package/CheckPicker/styles/index.less +0 -0
- package/CheckTree/styles/index.css +34 -77
- package/CheckTree/styles/index.less +0 -0
- package/CheckTreePicker/styles/index.css +34 -77
- package/CheckTreePicker/styles/index.less +0 -0
- package/Checkbox/styles/index.css +7 -9
- package/Checkbox/styles/index.less +1 -1
- package/Checkbox/styles/mixin.less +0 -0
- package/CheckboxGroup/styles/index.css +0 -0
- package/CheckboxGroup/styles/index.less +0 -0
- package/Col/styles/index.css +0 -0
- package/Col/styles/index.less +0 -0
- package/DateInput/styles/index.css +6 -16
- package/DatePicker/styles/index.css +38 -88
- package/DatePicker/styles/index.less +0 -0
- package/DateRangeInput/styles/index.css +6 -16
- package/DateRangePicker/styles/index.css +38 -88
- package/DateRangePicker/styles/index.less +0 -0
- package/Divider/styles/index.css +2 -2
- package/Divider/styles/index.less +2 -2
- package/Drawer/styles/index.css +0 -0
- package/Drawer/styles/index.less +0 -0
- package/Dropdown/styles/index.css +6 -10
- package/Dropdown/styles/index.less +0 -0
- package/Dropdown/styles/mixin.less +0 -0
- package/FlexboxGrid/styles/index.css +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/Form/styles/index.css +0 -0
- package/Form/styles/index.less +0 -0
- package/FormControl/styles/index.css +2 -2
- package/FormControl/styles/index.less +2 -2
- package/FormControlLabel/styles/index.css +0 -0
- package/FormControlLabel/styles/index.less +0 -0
- package/FormErrorMessage/styles/animation.less +0 -0
- package/FormErrorMessage/styles/index.css +0 -0
- package/FormErrorMessage/styles/index.less +0 -0
- package/FormGroup/styles/index.css +0 -0
- package/FormGroup/styles/index.less +0 -0
- package/FormHelpText/styles/index.css +0 -0
- package/FormHelpText/styles/index.less +0 -0
- package/FormStack/styles/index.css +0 -0
- package/FormStack/styles/index.less +0 -0
- package/Grid/styles/columns.less +0 -0
- package/Grid/styles/grid-framework.less +0 -0
- package/Grid/styles/index.css +0 -0
- package/Grid/styles/index.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Grid/styles/row.less +0 -0
- package/Grid/styles/variables.less +0 -0
- package/Heading/styles/index.css +0 -0
- package/Heading/styles/index.less +0 -0
- package/Heading/styles/variables.less +0 -0
- package/Highlight/styles/index.css +0 -0
- package/Highlight/styles/index.less +0 -0
- package/IconButton/styles/index.css +4 -6
- package/IconButton/styles/index.less +0 -0
- package/Image/styles/index.css +0 -0
- package/Image/styles/index.less +0 -0
- package/InlineEdit/styles/index.css +0 -0
- package/InlineEdit/styles/index.less +0 -0
- package/Input/styles/index.css +6 -16
- package/Input/styles/index.less +0 -6
- package/Input/styles/mixin.less +2 -7
- package/Input/styles/variables.less +0 -0
- package/InputGroup/styles/index.css +7 -13
- package/InputGroup/styles/index.less +3 -4
- package/InputNumber/styles/index.css +36 -42
- package/InputNumber/styles/index.less +1 -67
- package/InputPicker/styles/index.css +32 -78
- package/InputPicker/styles/index.less +0 -0
- package/Kbd/styles/index.css +0 -0
- package/Kbd/styles/index.less +0 -0
- package/Kbd/styles/mixin.less +0 -0
- package/Kbd/styles/variables.less +0 -0
- package/Link/styles/index.css +0 -0
- package/Link/styles/index.less +0 -0
- package/List/styles/index.css +0 -0
- package/List/styles/index.less +0 -0
- package/Loader/styles/index.css +0 -0
- package/Loader/styles/index.less +0 -0
- package/Loader/styles/mixin.less +0 -0
- package/Loader/styles/variables.less +0 -0
- package/Menu/styles/index.css +0 -0
- package/Menu/styles/index.less +0 -0
- package/Message/styles/index.css +5 -15
- package/Message/styles/index.less +4 -3
- package/Modal/styles/index.css +0 -0
- package/Modal/styles/index.less +0 -0
- package/MultiCascadeTree/styles/index.css +38 -87
- package/MultiCascadeTree/styles/index.less +0 -0
- package/MultiCascader/styles/index.css +38 -87
- package/MultiCascader/styles/index.less +0 -0
- package/Nav/styles/index.css +8 -14
- package/Nav/styles/index.less +0 -0
- package/Navbar/styles/index.css +16 -40
- package/Navbar/styles/index.less +0 -0
- package/Notification/styles/index.css +0 -0
- package/Notification/styles/index.less +0 -0
- 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 +36 -84
- package/Pagination/styles/index.less +0 -0
- package/Pagination/styles/pagination-group.less +0 -0
- package/Panel/styles/index.css +0 -0
- package/Panel/styles/index.less +0 -0
- package/PanelGroup/styles/index.css +0 -0
- package/PanelGroup/styles/index.less +0 -0
- package/PasswordInput/package.json +7 -0
- package/PasswordInput/styles/index.css +169 -0
- package/PasswordInput/styles/index.less +1 -0
- package/PasswordStrengthMeter/package.json +7 -0
- package/PasswordStrengthMeter/styles/index.css +33 -0
- package/PasswordStrengthMeter/styles/index.less +39 -0
- package/PinInput/package.json +7 -0
- package/PinInput/styles/index.css +212 -0
- package/PinInput/styles/index.less +66 -0
- package/Placeholder/styles/index.css +0 -0
- package/Placeholder/styles/index.less +0 -0
- package/Popover/styles/index.css +0 -0
- package/Popover/styles/index.less +0 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/index.css +0 -0
- package/Progress/styles/index.less +0 -0
- package/README.md +0 -0
- package/Radio/styles/index.css +7 -9
- package/Radio/styles/index.less +1 -1
- package/Radio/styles/mixin.less +0 -0
- package/RadioGroup/styles/index.css +0 -0
- package/RadioGroup/styles/index.less +0 -0
- package/RadioTile/styles/index.css +0 -0
- package/RadioTile/styles/index.less +0 -0
- package/RangeSlider/styles/index.css +2 -0
- package/Rate/styles/index.css +48 -34
- package/Rate/styles/index.less +32 -21
- package/Row/styles/index.css +0 -0
- package/Row/styles/index.less +0 -0
- package/SelectPicker/styles/index.css +32 -78
- package/SelectPicker/styles/index.less +0 -0
- package/Sidebar/styles/index.css +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/index.css +30 -67
- package/Sidenav/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Slider/styles/index.css +2 -0
- package/Slider/styles/index.less +2 -0
- package/Stack/styles/index.css +0 -0
- package/Stack/styles/index.less +0 -0
- package/Stat/styles/index.css +4 -6
- package/Stat/styles/index.less +0 -0
- package/StatGroup/styles/index.css +0 -0
- package/StatGroup/styles/index.less +0 -0
- package/Steps/styles/index.css +0 -0
- package/Steps/styles/index.less +0 -0
- package/Table/styles/index.css +0 -0
- package/Table/styles/index.less +0 -0
- package/Tabs/styles/index.css +8 -14
- package/Tag/styles/index.css +0 -15
- package/Tag/styles/index.less +0 -0
- package/TagGroup/styles/index.css +0 -0
- package/TagGroup/styles/index.less +0 -0
- package/TagInput/styles/index.css +34 -79
- package/TagInput/styles/index.less +0 -0
- package/TagPicker/styles/index.css +34 -79
- package/TagPicker/styles/index.less +0 -0
- package/Text/styles/index.css +0 -0
- package/Text/styles/index.less +0 -0
- package/Text/styles/variables.less +0 -0
- package/Textarea/package.json +7 -0
- package/Textarea/styles/index.css +6 -0
- package/Textarea/styles/index.less +7 -0
- package/TimePicker/styles/index.css +38 -88
- package/TimeRangePicker/styles/index.css +38 -88
- package/Timeline/stories/styles.less +0 -0
- package/Timeline/styles/index.css +0 -0
- package/Timeline/styles/index.less +0 -0
- package/Toggle/styles/index.css +9 -13
- package/Toggle/styles/index.less +3 -4
- package/Tooltip/styles/index.css +0 -0
- package/Tooltip/styles/index.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/Tree/styles/indent-line.less +0 -0
- package/Tree/styles/index.css +34 -82
- package/Tree/styles/index.less +0 -0
- package/Tree/styles/toggle.less +0 -0
- package/TreePicker/styles/index.css +34 -82
- package/Uploader/styles/index.css +6 -10
- package/Uploader/styles/index.less +0 -0
- package/cjs/Accordion/Accordion.js +2 -2
- package/cjs/Accordion/AccordionPanel.js +0 -0
- package/cjs/Accordion/index.js +0 -0
- package/cjs/Affix/Affix.js +1 -2
- package/cjs/Affix/index.js +0 -0
- 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/Animation/Transition.js +0 -0
- package/cjs/Animation/index.js +0 -0
- package/cjs/Animation/utils.js +0 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -2
- package/cjs/AutoComplete/AutoComplete.js +1 -2
- package/cjs/AutoComplete/Combobox.js +0 -0
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/Avatar/Avatar.js +1 -2
- package/cjs/Avatar/index.js +0 -0
- package/cjs/AvatarGroup/AvatarGroup.js +1 -2
- package/cjs/AvatarGroup/index.js +0 -0
- package/cjs/Badge/Badge.js +1 -2
- package/cjs/Badge/index.js +0 -0
- package/cjs/Box/index.js +0 -0
- package/cjs/Breadcrumb/Breadcrumb.js +1 -2
- package/cjs/Breadcrumb/BreadcrumbItem.js +0 -0
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/Button.d.ts +2 -2
- package/cjs/Button/Button.js +1 -2
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/cjs/ButtonGroup/ButtonGroup.js +1 -2
- package/cjs/ButtonGroup/ButtonGroupContext.js +0 -0
- package/cjs/ButtonGroup/index.js +0 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +1 -2
- package/cjs/ButtonToolbar/index.js +0 -0
- 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/CalendarProvider.js +0 -0
- package/cjs/Calendar/Grid/Grid.js +0 -0
- 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/MonthDropdown.js +0 -0
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
- package/cjs/Calendar/TimeDropdown/TimeDropdown.js +0 -0
- package/cjs/Calendar/hooks/useCalendar.d.ts +24 -2
- package/cjs/Calendar/hooks/useCalendar.js +34 -1
- package/cjs/Calendar/index.js +0 -0
- package/cjs/Card/Card.js +1 -2
- package/cjs/Card/CardBody.js +0 -0
- package/cjs/Card/CardFooter.js +0 -0
- package/cjs/Card/CardHeader.js +0 -0
- package/cjs/Card/index.js +0 -0
- package/cjs/CardGroup/CardGroup.js +1 -2
- package/cjs/CardGroup/index.js +0 -0
- package/cjs/Carousel/Carousel.js +1 -2
- package/cjs/Carousel/index.js +0 -0
- package/cjs/CascadeTree/CascadeTree.js +1 -2
- package/cjs/CascadeTree/SearchView.js +1 -2
- package/cjs/CascadeTree/TreeView.js +1 -2
- package/cjs/CascadeTree/hooks/useSearch.js +0 -0
- package/cjs/CascadeTree/hooks/useSelect.js +0 -0
- package/cjs/CascadeTree/index.js +0 -0
- package/cjs/CascadeTree/types.js +0 -0
- package/cjs/CascadeTree/utils.js +0 -0
- package/cjs/Cascader/Cascader.js +1 -2
- package/cjs/Cascader/index.js +0 -0
- package/cjs/Cascader/useActive.js +0 -0
- package/cjs/Center/Center.js +0 -0
- package/cjs/Center/index.js +0 -0
- package/cjs/CheckPicker/CheckPicker.js +1 -2
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTree/CheckTree.js +1 -2
- package/cjs/CheckTree/CheckTreeNode.js +1 -2
- package/cjs/CheckTree/CheckTreeView.js +1 -2
- package/cjs/CheckTree/index.js +0 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +1 -2
- package/cjs/CheckTreePicker/hooks/useFocusState.js +0 -0
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/Checkbox.js +1 -2
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CheckboxGroup/CheckboxGroup.js +1 -2
- package/cjs/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/cjs/CheckboxGroup/index.js +0 -0
- package/cjs/Col/index.js +0 -0
- package/cjs/Container/Container.js +1 -2
- package/cjs/Container/index.js +0 -0
- package/cjs/Content/Content.js +0 -0
- package/cjs/Content/index.js +0 -0
- 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/DOMHelper/index.js +0 -0
- package/cjs/DateInput/DateField.js +0 -0
- package/cjs/DateInput/DateInput.js +1 -2
- package/cjs/DateInput/hooks/useDateInputState.js +2 -2
- package/cjs/DateInput/hooks/useKeyboardInputEvent.js +0 -0
- package/cjs/DateInput/index.js +0 -0
- package/cjs/DateInput/utils.js +0 -0
- package/cjs/DatePicker/DatePicker.js +2 -3
- package/cjs/DatePicker/PredefinedRanges.js +0 -0
- package/cjs/DatePicker/Toolbar.js +0 -0
- package/cjs/DatePicker/hooks/useFocus.js +1 -2
- package/cjs/DatePicker/index.js +0 -0
- package/cjs/DatePicker/types.js +0 -0
- package/cjs/DatePicker/utils.js +0 -0
- package/cjs/DateRangeInput/DateRangeInput.js +1 -2
- package/cjs/DateRangeInput/index.js +0 -0
- package/cjs/DateRangePicker/Calendar.js +0 -0
- package/cjs/DateRangePicker/DateRangePicker.js +2 -3
- package/cjs/DateRangePicker/Header.js +3 -3
- package/cjs/DateRangePicker/hooks/useDateDisabled.js +0 -0
- package/cjs/DateRangePicker/index.js +0 -0
- package/cjs/DateRangePicker/types.js +0 -0
- package/cjs/DateRangePicker/utils.d.ts +1 -1
- package/cjs/DateRangePicker/utils.js +1 -1
- package/cjs/Divider/Divider.d.ts +3 -2
- package/cjs/Divider/Divider.js +3 -4
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/Drawer.js +1 -2
- package/cjs/Drawer/DrawerActions.js +0 -0
- package/cjs/Drawer/DrawerBody.js +0 -0
- package/cjs/Drawer/DrawerFooter.js +0 -0
- package/cjs/Drawer/DrawerHeader.js +0 -0
- package/cjs/Drawer/DrawerTitle.js +0 -0
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/Dropdown.js +1 -2
- package/cjs/Dropdown/DropdownContext.js +0 -0
- package/cjs/Dropdown/DropdownItem.js +0 -0
- package/cjs/Dropdown/DropdownMenu.js +1 -2
- package/cjs/Dropdown/DropdownSeparator.js +0 -0
- package/cjs/Dropdown/DropdownToggle.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/Dropdown/types.js +0 -0
- package/cjs/FlexboxGrid/FlexboxGrid.js +1 -2
- package/cjs/FlexboxGrid/FlexboxGridItem.js +0 -0
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/Footer.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/Form/Form.js +1 -2
- package/cjs/Form/FormContext.js +0 -0
- package/cjs/Form/index.js +0 -0
- package/cjs/FormControl/FormControl.js +1 -2
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/FormControlLabel.js +1 -2
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +1 -2
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormGroup/FormGroup.js +1 -2
- package/cjs/FormGroup/index.js +0 -0
- package/cjs/FormHelpText/FormHelpText.js +1 -2
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/FormStack/FormStack.js +1 -2
- package/cjs/FormStack/index.js +0 -0
- package/cjs/Grid/Col.js +1 -2
- package/cjs/Grid/Grid.js +1 -2
- package/cjs/Grid/Row.js +1 -2
- package/cjs/Grid/index.js +0 -0
- package/cjs/Grid/types.js +0 -0
- package/cjs/Grid/utils/styles.js +0 -0
- package/cjs/Header/Header.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/Heading/Heading.js +1 -2
- package/cjs/Heading/index.js +0 -0
- package/cjs/HeadingGroup/HeadingGroup.js +0 -0
- package/cjs/HeadingGroup/index.js +0 -0
- package/cjs/Highlight/Highlight.js +2 -3
- package/cjs/Highlight/index.js +0 -0
- package/cjs/IconButton/IconButton.js +1 -2
- package/cjs/IconButton/index.js +0 -0
- package/cjs/Image/Image.js +14 -14
- package/cjs/Image/ImageWrapper.js +0 -0
- package/cjs/Image/hooks/useImage.d.ts +2 -0
- package/cjs/Image/hooks/useImage.js +19 -43
- package/cjs/Image/index.js +0 -0
- package/cjs/InlineEdit/EditableControls.js +0 -0
- package/cjs/InlineEdit/InlineEdit.js +4 -3
- package/cjs/InlineEdit/index.js +0 -0
- package/cjs/InlineEdit/renderChildren.js +0 -0
- package/cjs/InlineEdit/useEditState.d.ts +2 -0
- package/cjs/InlineEdit/useEditState.js +8 -0
- package/cjs/Input/Input.d.ts +3 -12
- package/cjs/Input/Input.js +13 -74
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/InputGroup.js +1 -2
- package/cjs/InputGroup/InputGroupAddon.js +0 -0
- package/cjs/InputGroup/InputGroupButton.js +0 -0
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/index.d.ts +12 -2
- package/cjs/InputNumber/index.js +11 -4
- package/cjs/InputPicker/InputAutosize.js +0 -0
- package/cjs/InputPicker/InputPicker.js +1 -2
- package/cjs/InputPicker/InputSearch.js +0 -0
- package/cjs/InputPicker/TagList.js +0 -0
- package/cjs/InputPicker/TextBox.js +0 -0
- package/cjs/InputPicker/hooks/useData.js +0 -0
- package/cjs/InputPicker/hooks/useInput.js +0 -0
- package/cjs/InputPicker/hooks/useMaxWidth.js +0 -0
- package/cjs/InputPicker/index.js +0 -0
- package/cjs/InputPicker/utils.d.ts +1 -1
- package/cjs/Kbd/Kbd.js +1 -2
- package/cjs/Kbd/index.js +0 -0
- package/cjs/Link/ExternalLinkIcon.js +0 -0
- package/cjs/Link/Link.js +1 -2
- package/cjs/Link/index.js +0 -0
- package/cjs/List/List.js +1 -2
- package/cjs/List/ListItem.js +0 -0
- package/cjs/List/helper/useSortHelper.js +0 -0
- package/cjs/List/helper/utils.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/Loader.js +1 -2
- package/cjs/Loader/index.js +0 -0
- package/cjs/MaskedInput/MaskedInput.js +2 -2
- package/cjs/MaskedInput/TextMask.js +0 -0
- package/cjs/MaskedInput/conformToMask.js +0 -0
- package/cjs/MaskedInput/index.js +0 -0
- package/cjs/Menu/Menu.js +0 -0
- package/cjs/Menu/MenuContext.js +0 -0
- package/cjs/Menu/MenuItem.js +0 -0
- package/cjs/Menu/MenuSeparator.js +0 -0
- package/cjs/Menu/index.js +0 -0
- package/cjs/Message/Message.js +1 -2
- package/cjs/Message/index.js +0 -0
- package/cjs/Modal/Modal.js +1 -2
- package/cjs/Modal/ModalBody.js +0 -0
- package/cjs/Modal/ModalDialog.js +0 -0
- package/cjs/Modal/ModalFooter.js +0 -0
- package/cjs/Modal/ModalHeader.js +1 -2
- package/cjs/Modal/ModalTitle.js +0 -0
- package/cjs/Modal/index.js +0 -0
- package/cjs/Modal/utils.js +0 -0
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +1 -2
- package/cjs/MultiCascadeTree/SearchView.js +1 -2
- package/cjs/MultiCascadeTree/TreeView.js +1 -2
- package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +0 -0
- package/cjs/MultiCascadeTree/hooks/useSearch.js +0 -0
- package/cjs/MultiCascadeTree/hooks/useSelect.js +0 -0
- package/cjs/MultiCascadeTree/index.js +0 -0
- package/cjs/MultiCascadeTree/types.js +0 -0
- package/cjs/MultiCascadeTree/utils.js +0 -0
- package/cjs/MultiCascader/MultiCascader.js +1 -2
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/AdaptiveNavItem.js +0 -0
- package/cjs/Nav/Nav.js +1 -2
- package/cjs/Nav/NavDropdown.js +0 -0
- package/cjs/Nav/NavDropdownItem.js +0 -0
- package/cjs/Nav/NavDropdownMenu.js +1 -2
- package/cjs/Nav/NavDropdownToggle.js +0 -0
- package/cjs/Nav/NavItem.js +0 -0
- package/cjs/Nav/NavMegaMenu.d.ts +5 -0
- package/cjs/Nav/NavMegaMenu.js +5 -0
- package/cjs/Nav/NavMenu.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/Navbar.d.ts +1 -1
- package/cjs/Navbar/Navbar.js +1 -2
- package/cjs/Navbar/NavbarBrand.js +0 -0
- package/cjs/Navbar/NavbarContent.js +0 -0
- package/cjs/Navbar/NavbarContext.js +0 -0
- package/cjs/Navbar/NavbarDrawer.js +0 -0
- package/cjs/Navbar/NavbarDropdown.js +0 -0
- package/cjs/Navbar/NavbarDropdownItem.js +0 -0
- package/cjs/Navbar/NavbarDropdownMenu.js +1 -2
- package/cjs/Navbar/NavbarDropdownToggle.js +0 -0
- package/cjs/Navbar/NavbarItem.js +0 -0
- package/cjs/Navbar/NavbarMegaMenu.js +0 -0
- package/cjs/Navbar/NavbarToggle.d.ts +8 -3
- package/cjs/Navbar/NavbarToggle.js +9 -14
- package/cjs/Navbar/index.js +0 -0
- package/cjs/Notification/Notification.js +1 -2
- package/cjs/Notification/index.js +0 -0
- package/cjs/{InputNumber/InputNumber.d.ts → 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/LimitPicker.js +0 -0
- package/cjs/Pagination/Pagination.d.ts +2 -2
- package/cjs/Pagination/Pagination.js +1 -2
- package/cjs/Pagination/PaginationButton.js +0 -0
- package/cjs/Pagination/PaginationGroup.js +1 -2
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/AccordionButton.js +0 -0
- package/cjs/Panel/Panel.js +1 -2
- package/cjs/Panel/PanelBody.js +0 -0
- package/cjs/Panel/PanelHeader.js +0 -0
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/PanelGroup.js +1 -2
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/PasswordInput/PasswordInput.d.ts +18 -0
- package/cjs/PasswordInput/PasswordInput.js +72 -0
- package/cjs/PasswordInput/index.d.ts +4 -0
- package/cjs/PasswordInput/index.js +11 -0
- package/cjs/PasswordStrengthMeter/PasswordStrengthMeter.d.ts +12 -0
- package/cjs/PasswordStrengthMeter/PasswordStrengthMeter.js +49 -0
- package/cjs/PasswordStrengthMeter/index.d.ts +4 -0
- package/cjs/PasswordStrengthMeter/index.js +11 -0
- 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/Placeholder.js +0 -0
- package/cjs/Placeholder/PlaceholderGraph.js +1 -2
- package/cjs/Placeholder/PlaceholderGrid.js +1 -2
- package/cjs/Placeholder/PlaceholderParagraph.js +1 -2
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Popover/Popover.js +1 -2
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/Progress.js +0 -0
- package/cjs/Progress/ProgressCircle.js +1 -2
- package/cjs/Progress/ProgressLine.js +1 -2
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/Radio.js +1 -2
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/RadioGroup.js +1 -2
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RadioTile/RadioTile.js +1 -2
- package/cjs/RadioTile/index.js +0 -0
- package/cjs/RadioTileGroup/RadioTileGroup.js +1 -2
- package/cjs/RadioTileGroup/index.js +0 -0
- package/cjs/RangeSlider/RangeSlider.js +2 -3
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/Character.d.ts +4 -3
- package/cjs/Rate/Character.js +19 -15
- package/cjs/Rate/Rate.d.ts +10 -2
- package/cjs/Rate/Rate.js +48 -44
- package/cjs/Rate/index.js +0 -0
- package/cjs/Rate/types.d.ts +8 -0
- package/cjs/{CustomProvider → Rate}/types.js +0 -0
- package/cjs/Rate/useRatingStates.d.ts +20 -0
- package/cjs/Rate/useRatingStates.js +48 -0
- package/cjs/Rate/utils.d.ts +14 -3
- package/cjs/Rate/utils.js +50 -9
- package/cjs/Row/index.js +0 -0
- package/cjs/Schema/Schema.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/SelectPicker/SelectPicker.js +1 -2
- package/cjs/SelectPicker/index.js +0 -0
- package/cjs/Sidebar/Sidebar.js +1 -2
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
- package/cjs/Sidenav/Sidenav.js +1 -2
- package/cjs/Sidenav/SidenavBody.js +0 -0
- package/cjs/Sidenav/SidenavDropdown.js +0 -0
- package/cjs/Sidenav/SidenavDropdownCollapse.js +0 -0
- package/cjs/Sidenav/SidenavDropdownItem.js +0 -0
- package/cjs/Sidenav/SidenavDropdownMenu.js +1 -2
- package/cjs/Sidenav/SidenavDropdownToggle.js +0 -0
- package/cjs/Sidenav/SidenavFooter.js +0 -0
- package/cjs/Sidenav/SidenavGroupLabel.js +0 -0
- package/cjs/Sidenav/SidenavHeader.js +0 -0
- package/cjs/Sidenav/SidenavItem.js +0 -0
- package/cjs/Sidenav/SidenavToggle.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/Graduated.js +0 -0
- package/cjs/Slider/Handle.js +0 -0
- package/cjs/Slider/Input.js +0 -0
- package/cjs/Slider/Mark.js +0 -0
- package/cjs/Slider/ProgressBar.js +0 -0
- package/cjs/Slider/Slider.d.ts +5 -1
- package/cjs/Slider/Slider.js +13 -14
- package/cjs/Slider/index.js +0 -0
- package/cjs/Slider/useDrag.js +0 -0
- package/cjs/Stack/HStack.js +0 -0
- package/cjs/Stack/Stack.js +1 -2
- package/cjs/Stack/StackItem.js +0 -0
- package/cjs/Stack/VStack.js +0 -0
- package/cjs/Stack/index.js +0 -0
- package/cjs/Stat/Stat.js +1 -2
- package/cjs/Stat/StatHelpText.js +0 -0
- package/cjs/Stat/StatLabel.js +0 -0
- package/cjs/Stat/StatTrend.js +0 -0
- package/cjs/Stat/StatValue.js +2 -2
- package/cjs/Stat/StatValueUnit.js +0 -0
- package/cjs/Stat/index.js +0 -0
- package/cjs/StatGroup/StatGroup.js +1 -2
- package/cjs/StatGroup/index.js +0 -0
- package/cjs/Steps/StepItem.js +0 -0
- package/cjs/Steps/Steps.js +1 -2
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/Table.js +2 -2
- package/cjs/Table/index.js +0 -0
- package/cjs/Tabs/Tab.js +0 -0
- package/cjs/Tabs/TabPanel.js +0 -0
- package/cjs/Tabs/Tabs.js +1 -2
- package/cjs/Tabs/index.js +0 -0
- package/cjs/Tag/Tag.js +1 -2
- package/cjs/Tag/index.js +0 -0
- package/cjs/TagGroup/TagGroup.js +0 -0
- package/cjs/TagGroup/index.js +0 -0
- package/cjs/TagInput/TagInput.js +2 -2
- package/cjs/TagInput/index.js +0 -0
- package/cjs/TagPicker/TagPicker.js +2 -2
- package/cjs/TagPicker/index.js +0 -0
- package/cjs/Text/Text.js +1 -2
- package/cjs/Text/index.js +0 -0
- package/cjs/Textarea/Textarea.d.ts +32 -0
- package/cjs/Textarea/Textarea.js +50 -0
- package/cjs/Textarea/index.d.ts +4 -0
- package/cjs/Textarea/index.js +11 -0
- package/cjs/TimePicker/TimePicker.d.ts +1 -2
- package/cjs/TimePicker/TimePicker.js +2 -2
- package/cjs/TimePicker/index.js +0 -0
- package/cjs/TimeRangePicker/TimeRangePicker.js +2 -2
- package/cjs/TimeRangePicker/index.js +0 -0
- package/cjs/Timeline/Timeline.js +1 -2
- package/cjs/Timeline/TimelineItem.js +0 -0
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/Toggle.d.ts +1 -0
- package/cjs/Toggle/Toggle.js +1 -2
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/Tooltip.js +1 -2
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/IndentLine.js +0 -0
- 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/useFlattenTree.js +0 -0
- package/cjs/Tree/hooks/useFocusTree.js +1 -2
- package/cjs/Tree/hooks/useTreeNodeRefs.js +0 -0
- package/cjs/Tree/hooks/useTreeSearch.js +0 -0
- package/cjs/Tree/index.js +0 -0
- package/cjs/Tree/types.js +0 -0
- package/cjs/TreePicker/TreePicker.js +1 -2
- package/cjs/TreePicker/hooks/useFocusState.js +0 -0
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Uploader/UploadFileItem.js +0 -0
- package/cjs/Uploader/UploadTrigger.js +0 -0
- package/cjs/Uploader/Uploader.js +1 -2
- package/cjs/Uploader/index.js +0 -0
- package/cjs/Uploader/utils/ajaxUpload.js +0 -0
- package/cjs/VisuallyHidden/VisuallyHidden.js +0 -0
- package/cjs/VisuallyHidden/index.js +0 -0
- package/cjs/Whisper/Whisper.js +2 -2
- package/cjs/Whisper/index.js +0 -0
- package/cjs/index.d.ts +5 -0
- package/cjs/index.js +30 -0
- package/cjs/internals/Box/Box.js +0 -0
- package/cjs/internals/Box/index.d.ts +1 -0
- package/cjs/internals/Box/index.js +1 -0
- package/cjs/internals/Box/utils.js +0 -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/Disclosure/Disclosure.js +0 -0
- package/cjs/internals/InputBase/InputBase.d.ts +45 -0
- package/cjs/internals/InputBase/InputBase.js +96 -0
- package/cjs/internals/InputBase/index.d.ts +3 -0
- package/cjs/internals/InputBase/index.js +8 -0
- package/cjs/internals/Menu/Menu.js +1 -2
- package/cjs/internals/Menu/MenuItem.js +0 -0
- package/cjs/internals/Menu/Menubar.js +2 -2
- package/cjs/internals/Menu/useMenu.js +0 -0
- package/cjs/internals/Menu/useRenderMenuItem.js +0 -0
- package/cjs/internals/Overlay/Modal.js +0 -0
- package/cjs/internals/Overlay/Overlay.js +0 -0
- package/cjs/internals/Overlay/OverlayProvider.js +0 -0
- package/cjs/internals/Overlay/OverlayTrigger.js +0 -0
- package/cjs/internals/Overlay/Position.js +0 -0
- package/cjs/internals/Overlay/index.js +0 -0
- package/cjs/internals/Overlay/positionUtils.js +0 -0
- package/cjs/internals/Overlay/types.js +0 -0
- package/cjs/internals/Picker/ListCheckItem.js +0 -0
- package/cjs/internals/Picker/ListItem.js +0 -0
- package/cjs/internals/Picker/ListItemGroup.js +0 -0
- package/cjs/internals/Picker/Listbox.js +0 -0
- package/cjs/internals/Picker/PickerDrawer.js +0 -0
- package/cjs/internals/Picker/PickerIndicator.js +1 -2
- package/cjs/internals/Picker/PickerPopup.js +0 -0
- package/cjs/internals/Picker/PickerToggle.js +0 -0
- package/cjs/internals/Picker/PickerToggleTrigger.js +0 -0
- package/cjs/internals/Picker/SelectedElement.js +0 -0
- package/cjs/internals/Picker/ToggleButton.js +0 -0
- package/cjs/internals/Picker/hooks/index.js +0 -0
- package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/cjs/internals/Picker/hooks/useCombobox.js +0 -0
- package/cjs/internals/Picker/hooks/useFocusItemValue.js +0 -0
- package/cjs/internals/Picker/hooks/usePickerRef.js +0 -0
- package/cjs/internals/Picker/index.js +0 -0
- package/cjs/internals/Picker/types.js +0 -0
- 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/Provider/types.js +4 -0
- package/cjs/internals/Ripple/Ripple.js +1 -2
- package/cjs/internals/SafeAnchor/SafeAnchor.js +2 -2
- package/cjs/internals/SafeAnchor/index.js +0 -0
- package/cjs/internals/ScrollView/ScrollView.js +0 -0
- package/cjs/internals/SearchBox/SearchBox.js +0 -0
- package/cjs/internals/StyledBox/StyledBox.js +0 -0
- package/cjs/internals/StyledBox/index.js +0 -0
- package/cjs/internals/Tree/TreeView.js +0 -0
- package/cjs/internals/Tree/utils/getPathTowardsItem.js +0 -0
- package/cjs/internals/Windowing/AutoSizer.js +0 -0
- package/cjs/internals/Windowing/List.js +2 -2
- package/cjs/internals/constants/index.js +0 -0
- 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/useElementResize.js +0 -0
- package/cjs/internals/hooks/useEnsuredRef.js +0 -0
- package/cjs/internals/hooks/useFocus.js +0 -0
- package/cjs/internals/hooks/useInternalId.js +0 -0
- package/cjs/internals/hooks/usePortal.js +0 -0
- package/cjs/internals/hooks/useRootClose.js +0 -0
- package/cjs/internals/hooks/useStyles.js +2 -2
- package/cjs/internals/hooks/useTimeout.js +0 -0
- package/cjs/internals/hooks/useToggleCaret.js +2 -2
- package/cjs/internals/hooks/useUniqueId.js +0 -0
- package/cjs/internals/hooks/useUpdateEffect.js +0 -0
- package/cjs/internals/hooks/useWillUnmount.js +0 -0
- package/cjs/internals/index.d.ts +4 -0
- package/cjs/internals/index.js +13 -1
- package/cjs/{CustomProvider → internals/intl}/FormattedDate.js +2 -2
- package/cjs/{CustomProvider → internals/intl}/FormattedNumber.js +2 -2
- package/cjs/internals/symbols.js +0 -0
- package/cjs/internals/types/animation.js +0 -0
- package/cjs/internals/types/colours.js +0 -0
- package/cjs/internals/types/date.js +0 -0
- package/cjs/internals/types/dom.js +0 -0
- package/cjs/internals/types/form.js +0 -0
- package/cjs/internals/types/html.d.ts +2 -0
- package/cjs/internals/types/html.js +0 -0
- package/cjs/internals/types/index.js +0 -0
- package/cjs/internals/types/picker.d.ts +2 -2
- package/cjs/internals/types/picker.js +0 -0
- package/cjs/internals/types/placement.js +0 -0
- package/cjs/internals/types/shared.js +0 -0
- package/cjs/internals/types/sizes.d.ts +2 -0
- package/cjs/internals/types/sizes.js +2 -1
- package/cjs/internals/types/utils.js +0 -0
- package/cjs/internals/utils/BrowserDetection.js +0 -0
- package/cjs/internals/utils/colours.js +0 -0
- package/cjs/internals/utils/date/copyTime.js +0 -0
- package/cjs/internals/utils/date/disableTime.js +0 -0
- package/cjs/internals/utils/date/getWeekStartDates.d.ts +0 -1
- package/cjs/internals/utils/date/getWeekStartDates.js +2 -4
- package/cjs/internals/utils/date/index.js +0 -0
- package/cjs/internals/utils/html/dom.js +0 -0
- package/cjs/internals/utils/html/events.js +0 -0
- package/cjs/internals/utils/html/htmlPropsUtils.js +0 -0
- package/cjs/internals/utils/html/index.js +0 -0
- package/cjs/internals/utils/html/safeSetSelection.js +0 -0
- package/cjs/internals/utils/index.js +0 -0
- package/cjs/internals/utils/placement.js +0 -0
- package/cjs/internals/utils/react/ReactChildren.js +0 -0
- package/cjs/internals/utils/react/ReactIs.js +0 -0
- package/cjs/internals/utils/react/createComponent.js +15 -4
- package/cjs/internals/utils/react/deprecateComponent.js +0 -0
- package/cjs/internals/utils/react/forwardRef.js +0 -0
- package/cjs/internals/utils/react/getDOMNode.js +0 -0
- package/cjs/internals/utils/react/index.js +0 -0
- package/cjs/internals/utils/react/mergeRefs.js +0 -0
- package/cjs/internals/utils/sizes.js +0 -0
- package/cjs/internals/utils/string/getSafeRegExpString.js +0 -0
- package/cjs/internals/utils/string/getStringLength.js +0 -0
- package/cjs/internals/utils/string/index.js +0 -0
- package/cjs/internals/utils/string/stringifyReactNode.js +0 -0
- package/cjs/internals/utils/string/tplTransform.js +0 -0
- package/cjs/internals/utils/style-sheet/css.js +0 -0
- package/cjs/internals/utils/style-sheet/index.js +0 -0
- package/cjs/internals/utils/style-sheet/prefix.js +0 -0
- package/cjs/internals/utils/style-sheet/responsive.js +0 -0
- package/cjs/internals/utils/style-sheet/styles.js +0 -0
- package/cjs/locales/ar_EG.js +0 -0
- package/cjs/locales/ca_ES.js +0 -0
- package/cjs/locales/cs_CZ.js +0 -0
- package/cjs/locales/da_DK.js +0 -0
- package/cjs/locales/de_DE.js +0 -0
- package/cjs/locales/en_GB.js +0 -0
- package/cjs/locales/en_US.js +0 -0
- package/cjs/locales/es_AR.js +0 -0
- package/cjs/locales/es_ES.js +0 -0
- package/cjs/locales/fa_IR.js +0 -0
- package/cjs/locales/fi_FI.js +0 -0
- package/cjs/locales/fr_FR.js +0 -0
- package/cjs/locales/hu_HU.js +0 -0
- package/cjs/locales/it_IT.js +0 -0
- package/cjs/locales/ja_JP.js +0 -0
- package/cjs/locales/kk_KZ.js +0 -0
- package/cjs/locales/ko_KR.js +0 -0
- package/cjs/locales/ne_NP.js +0 -0
- package/cjs/locales/nl_NL.js +0 -0
- package/cjs/locales/pl_PL.js +0 -0
- package/cjs/locales/pt_BR.js +0 -0
- package/cjs/locales/ru_RU.js +0 -0
- package/cjs/locales/sv_SE.js +0 -0
- package/cjs/locales/tr_TR.js +0 -0
- package/cjs/locales/zh_CN.js +0 -0
- package/cjs/locales/zh_TW.js +0 -0
- package/cjs/toaster/ToastContainer.js +0 -0
- package/cjs/toaster/hooks/useDelayedClosure.js +0 -0
- package/cjs/toaster/index.js +0 -0
- package/cjs/toaster/render.js +0 -0
- package/cjs/toaster/toaster.js +0 -0
- package/cjs/useBreakpointValue/index.js +0 -0
- package/cjs/useBreakpointValue/useBreakpointValue.d.ts +1 -1
- package/cjs/useBreakpointValue/useBreakpointValue.js +1 -1
- package/cjs/useMediaQuery/breakpoints.js +0 -0
- package/cjs/useMediaQuery/index.js +0 -0
- package/cjs/useMediaQuery/types.js +0 -0
- package/cjs/useMediaQuery/useMediaQuery.js +0 -0
- package/cjs/useToaster/index.js +0 -0
- package/cjs/useToaster/useToaster.js +2 -5
- package/dist/rsuite-no-reset-rtl.css +334 -308
- 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 +334 -308
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +334 -308
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +334 -308
- package/dist/rsuite.js +527 -230
- 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/Accordion/AccordionPanel.js +0 -0
- package/esm/Accordion/index.js +0 -0
- package/esm/Affix/Affix.js +1 -2
- package/esm/Affix/index.js +0 -0
- 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/Animation/Transition.js +0 -0
- package/esm/Animation/index.js +0 -0
- package/esm/Animation/utils.js +0 -0
- package/esm/AutoComplete/AutoComplete.d.ts +2 -2
- package/esm/AutoComplete/AutoComplete.js +1 -2
- package/esm/AutoComplete/Combobox.js +0 -0
- package/esm/AutoComplete/index.js +0 -0
- package/esm/Avatar/Avatar.js +1 -2
- package/esm/Avatar/index.js +0 -0
- package/esm/AvatarGroup/AvatarGroup.js +1 -2
- package/esm/AvatarGroup/index.js +0 -0
- package/esm/Badge/Badge.js +1 -2
- package/esm/Badge/index.js +0 -0
- package/esm/Box/index.js +0 -0
- package/esm/Breadcrumb/Breadcrumb.js +1 -2
- package/esm/Breadcrumb/BreadcrumbItem.js +0 -0
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/Button.d.ts +2 -2
- package/esm/Button/Button.js +1 -2
- package/esm/Button/index.js +0 -0
- package/esm/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/esm/ButtonGroup/ButtonGroup.js +1 -2
- package/esm/ButtonGroup/ButtonGroupContext.js +0 -0
- package/esm/ButtonGroup/index.js +0 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +1 -2
- package/esm/ButtonToolbar/index.js +0 -0
- 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/CalendarProvider.js +0 -0
- package/esm/Calendar/Grid/Grid.js +0 -0
- 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/MonthDropdown.js +0 -0
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
- package/esm/Calendar/TimeDropdown/TimeDropdown.js +0 -0
- package/esm/Calendar/hooks/useCalendar.d.ts +24 -2
- package/esm/Calendar/hooks/useCalendar.js +35 -2
- package/esm/Calendar/index.js +0 -0
- package/esm/Card/Card.js +1 -2
- package/esm/Card/CardBody.js +0 -0
- package/esm/Card/CardFooter.js +0 -0
- package/esm/Card/CardHeader.js +0 -0
- package/esm/Card/index.js +0 -0
- package/esm/CardGroup/CardGroup.js +1 -2
- package/esm/CardGroup/index.js +0 -0
- package/esm/Carousel/Carousel.js +1 -2
- package/esm/Carousel/index.js +0 -0
- package/esm/CascadeTree/CascadeTree.js +1 -2
- package/esm/CascadeTree/SearchView.js +1 -2
- package/esm/CascadeTree/TreeView.js +1 -2
- package/esm/CascadeTree/hooks/useSearch.js +0 -0
- package/esm/CascadeTree/hooks/useSelect.js +0 -0
- package/esm/CascadeTree/index.js +0 -0
- package/esm/CascadeTree/types.js +0 -0
- package/esm/CascadeTree/utils.js +0 -0
- package/esm/Cascader/Cascader.js +1 -2
- package/esm/Cascader/index.js +0 -0
- package/esm/Cascader/useActive.js +0 -0
- package/esm/Center/Center.js +0 -0
- package/esm/Center/index.js +0 -0
- package/esm/CheckPicker/CheckPicker.js +1 -2
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTree/CheckTree.js +1 -2
- package/esm/CheckTree/CheckTreeNode.js +1 -2
- package/esm/CheckTree/CheckTreeView.js +1 -2
- package/esm/CheckTree/index.js +0 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +1 -2
- package/esm/CheckTreePicker/hooks/useFocusState.js +0 -0
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/Checkbox.js +1 -2
- package/esm/Checkbox/index.js +0 -0
- package/esm/CheckboxGroup/CheckboxGroup.js +1 -2
- package/esm/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/esm/CheckboxGroup/index.js +0 -0
- package/esm/Col/index.js +0 -0
- package/esm/Container/Container.js +1 -2
- package/esm/Container/index.js +0 -0
- package/esm/Content/Content.js +0 -0
- package/esm/Content/index.js +0 -0
- 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/DOMHelper/index.js +0 -0
- package/esm/DateInput/DateField.js +0 -0
- package/esm/DateInput/DateInput.js +1 -2
- package/esm/DateInput/hooks/useDateInputState.js +1 -1
- package/esm/DateInput/hooks/useKeyboardInputEvent.js +0 -0
- package/esm/DateInput/index.js +0 -0
- package/esm/DateInput/utils.js +0 -0
- package/esm/DatePicker/DatePicker.js +2 -3
- package/esm/DatePicker/PredefinedRanges.js +0 -0
- package/esm/DatePicker/Toolbar.js +0 -0
- package/esm/DatePicker/hooks/useFocus.js +1 -2
- package/esm/DatePicker/index.js +0 -0
- package/esm/DatePicker/types.js +0 -0
- package/esm/DatePicker/utils.js +0 -0
- package/esm/DateRangeInput/DateRangeInput.js +1 -2
- package/esm/DateRangeInput/index.js +0 -0
- package/esm/DateRangePicker/Calendar.js +0 -0
- package/esm/DateRangePicker/DateRangePicker.js +2 -3
- package/esm/DateRangePicker/Header.js +1 -1
- package/esm/DateRangePicker/hooks/useDateDisabled.js +0 -0
- package/esm/DateRangePicker/index.js +0 -0
- package/esm/DateRangePicker/types.js +0 -0
- package/esm/DateRangePicker/utils.d.ts +1 -1
- package/esm/DateRangePicker/utils.js +1 -1
- package/esm/Divider/Divider.d.ts +3 -2
- package/esm/Divider/Divider.js +3 -4
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/Drawer.js +1 -2
- package/esm/Drawer/DrawerActions.js +0 -0
- package/esm/Drawer/DrawerBody.js +0 -0
- package/esm/Drawer/DrawerFooter.js +0 -0
- package/esm/Drawer/DrawerHeader.js +0 -0
- package/esm/Drawer/DrawerTitle.js +0 -0
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/Dropdown.js +1 -2
- package/esm/Dropdown/DropdownContext.js +0 -0
- package/esm/Dropdown/DropdownItem.js +0 -0
- package/esm/Dropdown/DropdownMenu.js +1 -2
- package/esm/Dropdown/DropdownSeparator.js +0 -0
- package/esm/Dropdown/DropdownToggle.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/Dropdown/types.js +0 -0
- package/esm/FlexboxGrid/FlexboxGrid.js +1 -2
- package/esm/FlexboxGrid/FlexboxGridItem.js +0 -0
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/Footer.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/Form/Form.js +1 -2
- package/esm/Form/FormContext.js +0 -0
- package/esm/Form/index.js +0 -0
- package/esm/FormControl/FormControl.js +1 -2
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/FormControlLabel.js +1 -2
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +1 -2
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormGroup/FormGroup.js +1 -2
- package/esm/FormGroup/index.js +0 -0
- package/esm/FormHelpText/FormHelpText.js +1 -2
- package/esm/FormHelpText/index.js +0 -0
- package/esm/FormStack/FormStack.js +1 -2
- package/esm/FormStack/index.js +0 -0
- package/esm/Grid/Col.js +1 -2
- package/esm/Grid/Grid.js +1 -2
- package/esm/Grid/Row.js +1 -2
- package/esm/Grid/index.js +0 -0
- package/esm/Grid/types.js +0 -0
- package/esm/Grid/utils/styles.js +0 -0
- package/esm/Header/Header.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/Heading/Heading.js +1 -2
- package/esm/Heading/index.js +0 -0
- package/esm/HeadingGroup/HeadingGroup.js +0 -0
- package/esm/HeadingGroup/index.js +0 -0
- package/esm/Highlight/Highlight.js +2 -3
- package/esm/Highlight/index.js +0 -0
- package/esm/IconButton/IconButton.js +1 -2
- package/esm/IconButton/index.js +0 -0
- package/esm/Image/Image.js +14 -14
- package/esm/Image/ImageWrapper.js +0 -0
- package/esm/Image/hooks/useImage.d.ts +2 -0
- package/esm/Image/hooks/useImage.js +20 -43
- package/esm/Image/index.js +0 -0
- package/esm/InlineEdit/EditableControls.js +0 -0
- package/esm/InlineEdit/InlineEdit.js +4 -3
- package/esm/InlineEdit/index.js +0 -0
- package/esm/InlineEdit/renderChildren.js +0 -0
- package/esm/InlineEdit/useEditState.d.ts +2 -0
- package/esm/InlineEdit/useEditState.js +8 -0
- package/esm/Input/Input.d.ts +3 -12
- package/esm/Input/Input.js +13 -75
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/InputGroup.js +1 -2
- package/esm/InputGroup/InputGroupAddon.js +0 -0
- package/esm/InputGroup/InputGroupButton.js +0 -0
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/index.d.ts +12 -2
- package/esm/InputNumber/index.js +8 -1
- package/esm/InputPicker/InputAutosize.js +0 -0
- package/esm/InputPicker/InputPicker.js +1 -2
- package/esm/InputPicker/InputSearch.js +0 -0
- package/esm/InputPicker/TagList.js +0 -0
- package/esm/InputPicker/TextBox.js +0 -0
- package/esm/InputPicker/hooks/useData.js +0 -0
- package/esm/InputPicker/hooks/useInput.js +0 -0
- package/esm/InputPicker/hooks/useMaxWidth.js +0 -0
- package/esm/InputPicker/index.js +0 -0
- package/esm/InputPicker/utils.d.ts +1 -1
- package/esm/Kbd/Kbd.js +1 -2
- package/esm/Kbd/index.js +0 -0
- package/esm/Link/ExternalLinkIcon.js +0 -0
- package/esm/Link/Link.js +1 -2
- package/esm/Link/index.js +0 -0
- package/esm/List/List.js +1 -2
- package/esm/List/ListItem.js +0 -0
- package/esm/List/helper/useSortHelper.js +0 -0
- package/esm/List/helper/utils.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/Loader.js +1 -2
- package/esm/Loader/index.js +0 -0
- package/esm/MaskedInput/MaskedInput.js +1 -1
- package/esm/MaskedInput/TextMask.js +0 -0
- package/esm/MaskedInput/conformToMask.js +0 -0
- package/esm/MaskedInput/index.js +0 -0
- package/esm/Menu/Menu.js +0 -0
- package/esm/Menu/MenuContext.js +0 -0
- package/esm/Menu/MenuItem.js +0 -0
- package/esm/Menu/MenuSeparator.js +0 -0
- package/esm/Menu/index.js +0 -0
- package/esm/Message/Message.js +1 -2
- package/esm/Message/index.js +0 -0
- package/esm/Modal/Modal.js +1 -2
- package/esm/Modal/ModalBody.js +0 -0
- package/esm/Modal/ModalDialog.js +0 -0
- package/esm/Modal/ModalFooter.js +0 -0
- package/esm/Modal/ModalHeader.js +1 -2
- package/esm/Modal/ModalTitle.js +0 -0
- package/esm/Modal/index.js +0 -0
- package/esm/Modal/utils.js +0 -0
- package/esm/MultiCascadeTree/MultiCascadeTree.js +1 -2
- package/esm/MultiCascadeTree/SearchView.js +1 -2
- package/esm/MultiCascadeTree/TreeView.js +1 -2
- package/esm/MultiCascadeTree/hooks/useCascadeValue.js +0 -0
- package/esm/MultiCascadeTree/hooks/useSearch.js +0 -0
- package/esm/MultiCascadeTree/hooks/useSelect.js +0 -0
- package/esm/MultiCascadeTree/index.js +0 -0
- package/esm/MultiCascadeTree/types.js +0 -0
- package/esm/MultiCascadeTree/utils.js +0 -0
- package/esm/MultiCascader/MultiCascader.js +1 -2
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/AdaptiveNavItem.js +0 -0
- package/esm/Nav/Nav.js +1 -2
- package/esm/Nav/NavDropdown.js +0 -0
- package/esm/Nav/NavDropdownItem.js +0 -0
- package/esm/Nav/NavDropdownMenu.js +1 -2
- package/esm/Nav/NavDropdownToggle.js +0 -0
- package/esm/Nav/NavItem.js +0 -0
- package/esm/Nav/NavMegaMenu.d.ts +5 -0
- package/esm/Nav/NavMegaMenu.js +5 -0
- package/esm/Nav/NavMenu.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/Navbar.d.ts +1 -1
- package/esm/Navbar/Navbar.js +1 -2
- package/esm/Navbar/NavbarBrand.js +0 -0
- package/esm/Navbar/NavbarContent.js +0 -0
- package/esm/Navbar/NavbarContext.js +0 -0
- package/esm/Navbar/NavbarDrawer.js +0 -0
- package/esm/Navbar/NavbarDropdown.js +0 -0
- package/esm/Navbar/NavbarDropdownItem.js +0 -0
- package/esm/Navbar/NavbarDropdownMenu.js +1 -2
- package/esm/Navbar/NavbarDropdownToggle.js +0 -0
- package/esm/Navbar/NavbarItem.js +0 -0
- package/esm/Navbar/NavbarMegaMenu.js +0 -0
- package/esm/Navbar/NavbarToggle.d.ts +8 -3
- package/esm/Navbar/NavbarToggle.js +10 -15
- package/esm/Navbar/index.js +0 -0
- package/esm/Notification/Notification.js +1 -2
- package/esm/Notification/index.js +0 -0
- package/esm/{InputNumber/InputNumber.d.ts → 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/LimitPicker.js +0 -0
- package/esm/Pagination/Pagination.d.ts +2 -2
- package/esm/Pagination/Pagination.js +1 -2
- package/esm/Pagination/PaginationButton.js +0 -0
- package/esm/Pagination/PaginationGroup.js +1 -2
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/AccordionButton.js +0 -0
- package/esm/Panel/Panel.js +1 -2
- package/esm/Panel/PanelBody.js +0 -0
- package/esm/Panel/PanelHeader.js +0 -0
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/PanelGroup.js +1 -2
- package/esm/PanelGroup/index.js +0 -0
- package/esm/PasswordInput/PasswordInput.d.ts +18 -0
- package/esm/PasswordInput/PasswordInput.js +67 -0
- package/esm/PasswordInput/index.d.ts +4 -0
- package/esm/PasswordInput/index.js +8 -0
- package/esm/PasswordStrengthMeter/PasswordStrengthMeter.d.ts +12 -0
- package/esm/PasswordStrengthMeter/PasswordStrengthMeter.js +44 -0
- package/esm/PasswordStrengthMeter/index.d.ts +4 -0
- package/esm/PasswordStrengthMeter/index.js +8 -0
- 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/Placeholder.js +0 -0
- package/esm/Placeholder/PlaceholderGraph.js +1 -2
- package/esm/Placeholder/PlaceholderGrid.js +1 -2
- package/esm/Placeholder/PlaceholderParagraph.js +1 -2
- package/esm/Placeholder/index.js +0 -0
- package/esm/Popover/Popover.js +1 -2
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/Progress.js +0 -0
- package/esm/Progress/ProgressCircle.js +1 -2
- package/esm/Progress/ProgressLine.js +1 -2
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/Radio.js +1 -2
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/RadioGroup.js +1 -2
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RadioTile/RadioTile.js +1 -2
- package/esm/RadioTile/index.js +0 -0
- package/esm/RadioTileGroup/RadioTileGroup.js +1 -2
- package/esm/RadioTileGroup/index.js +0 -0
- package/esm/RangeSlider/RangeSlider.js +1 -2
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/Character.d.ts +4 -3
- package/esm/Rate/Character.js +20 -16
- package/esm/Rate/Rate.d.ts +10 -2
- package/esm/Rate/Rate.js +50 -44
- package/esm/Rate/index.js +0 -0
- package/esm/Rate/types.d.ts +8 -0
- package/esm/{CustomProvider → Rate}/types.js +0 -0
- package/esm/Rate/useRatingStates.d.ts +20 -0
- package/esm/Rate/useRatingStates.js +43 -0
- package/esm/Rate/utils.d.ts +14 -3
- package/esm/Rate/utils.js +46 -7
- package/esm/Row/index.js +0 -0
- package/esm/Schema/Schema.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/SelectPicker/SelectPicker.js +1 -2
- package/esm/SelectPicker/index.js +0 -0
- package/esm/Sidebar/Sidebar.js +1 -2
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdown.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
- package/esm/Sidenav/Sidenav.js +1 -2
- package/esm/Sidenav/SidenavBody.js +0 -0
- package/esm/Sidenav/SidenavDropdown.js +0 -0
- package/esm/Sidenav/SidenavDropdownCollapse.js +0 -0
- package/esm/Sidenav/SidenavDropdownItem.js +0 -0
- package/esm/Sidenav/SidenavDropdownMenu.js +1 -2
- package/esm/Sidenav/SidenavDropdownToggle.js +0 -0
- package/esm/Sidenav/SidenavFooter.js +0 -0
- package/esm/Sidenav/SidenavGroupLabel.js +0 -0
- package/esm/Sidenav/SidenavHeader.js +0 -0
- package/esm/Sidenav/SidenavItem.js +0 -0
- package/esm/Sidenav/SidenavToggle.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/Graduated.js +0 -0
- package/esm/Slider/Handle.js +0 -0
- package/esm/Slider/Input.js +0 -0
- package/esm/Slider/Mark.js +0 -0
- package/esm/Slider/ProgressBar.js +0 -0
- package/esm/Slider/Slider.d.ts +5 -1
- package/esm/Slider/Slider.js +12 -13
- package/esm/Slider/index.js +0 -0
- package/esm/Slider/useDrag.js +0 -0
- package/esm/Stack/HStack.js +0 -0
- package/esm/Stack/Stack.js +1 -2
- package/esm/Stack/StackItem.js +0 -0
- package/esm/Stack/VStack.js +0 -0
- package/esm/Stack/index.js +0 -0
- package/esm/Stat/Stat.js +1 -2
- package/esm/Stat/StatHelpText.js +0 -0
- package/esm/Stat/StatLabel.js +0 -0
- package/esm/Stat/StatTrend.js +0 -0
- package/esm/Stat/StatValue.js +1 -1
- package/esm/Stat/StatValueUnit.js +0 -0
- package/esm/Stat/index.js +0 -0
- package/esm/StatGroup/StatGroup.js +1 -2
- package/esm/StatGroup/index.js +0 -0
- package/esm/Steps/StepItem.js +0 -0
- package/esm/Steps/Steps.js +1 -2
- package/esm/Steps/index.js +0 -0
- package/esm/Table/Table.js +1 -1
- package/esm/Table/index.js +0 -0
- package/esm/Tabs/Tab.js +0 -0
- package/esm/Tabs/TabPanel.js +0 -0
- package/esm/Tabs/Tabs.js +1 -2
- package/esm/Tabs/index.js +0 -0
- package/esm/Tag/Tag.js +1 -2
- package/esm/Tag/index.js +0 -0
- package/esm/TagGroup/TagGroup.js +0 -0
- package/esm/TagGroup/index.js +0 -0
- package/esm/TagInput/TagInput.js +1 -1
- package/esm/TagInput/index.js +0 -0
- package/esm/TagPicker/TagPicker.js +1 -1
- package/esm/TagPicker/index.js +0 -0
- package/esm/Text/Text.js +1 -2
- package/esm/Text/index.js +0 -0
- package/esm/Textarea/Textarea.d.ts +32 -0
- package/esm/Textarea/Textarea.js +45 -0
- package/esm/Textarea/index.d.ts +4 -0
- package/esm/Textarea/index.js +8 -0
- package/esm/TimePicker/TimePicker.d.ts +1 -2
- package/esm/TimePicker/TimePicker.js +1 -1
- package/esm/TimePicker/index.js +0 -0
- package/esm/TimeRangePicker/TimeRangePicker.js +1 -1
- package/esm/TimeRangePicker/index.js +0 -0
- package/esm/Timeline/Timeline.js +1 -2
- package/esm/Timeline/TimelineItem.js +0 -0
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/Toggle.d.ts +1 -0
- package/esm/Toggle/Toggle.js +1 -2
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/Tooltip.js +1 -2
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/IndentLine.js +0 -0
- 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/useFlattenTree.js +0 -0
- package/esm/Tree/hooks/useFocusTree.js +1 -2
- package/esm/Tree/hooks/useTreeNodeRefs.js +0 -0
- package/esm/Tree/hooks/useTreeSearch.js +0 -0
- package/esm/Tree/index.js +0 -0
- package/esm/Tree/types.js +0 -0
- package/esm/TreePicker/TreePicker.js +1 -2
- package/esm/TreePicker/hooks/useFocusState.js +0 -0
- package/esm/TreePicker/index.js +0 -0
- package/esm/Uploader/UploadFileItem.js +0 -0
- package/esm/Uploader/UploadTrigger.js +0 -0
- package/esm/Uploader/Uploader.js +1 -2
- package/esm/Uploader/index.js +0 -0
- package/esm/Uploader/utils/ajaxUpload.js +0 -0
- package/esm/VisuallyHidden/VisuallyHidden.js +0 -0
- package/esm/VisuallyHidden/index.js +0 -0
- package/esm/Whisper/Whisper.js +1 -1
- package/esm/Whisper/index.js +0 -0
- package/esm/index.d.ts +5 -0
- package/esm/index.js +5 -0
- package/esm/internals/Box/Box.js +0 -0
- package/esm/internals/Box/index.d.ts +1 -0
- package/esm/internals/Box/index.js +1 -0
- package/esm/internals/Box/utils.js +0 -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/Disclosure/Disclosure.js +0 -0
- package/esm/internals/InputBase/InputBase.d.ts +45 -0
- package/esm/internals/InputBase/InputBase.js +89 -0
- package/esm/internals/InputBase/index.d.ts +3 -0
- package/esm/internals/InputBase/index.js +3 -0
- package/esm/internals/Menu/Menu.js +1 -1
- package/esm/internals/Menu/MenuItem.js +0 -0
- package/esm/internals/Menu/Menubar.js +1 -1
- package/esm/internals/Menu/useMenu.js +0 -0
- package/esm/internals/Menu/useRenderMenuItem.js +0 -0
- package/esm/internals/Overlay/Modal.js +0 -0
- package/esm/internals/Overlay/Overlay.js +0 -0
- package/esm/internals/Overlay/OverlayProvider.js +0 -0
- package/esm/internals/Overlay/OverlayTrigger.js +0 -0
- package/esm/internals/Overlay/Position.js +0 -0
- package/esm/internals/Overlay/index.js +0 -0
- package/esm/internals/Overlay/positionUtils.js +0 -0
- package/esm/internals/Overlay/types.js +0 -0
- package/esm/internals/Picker/ListCheckItem.js +0 -0
- package/esm/internals/Picker/ListItem.js +0 -0
- package/esm/internals/Picker/ListItemGroup.js +0 -0
- package/esm/internals/Picker/Listbox.js +0 -0
- package/esm/internals/Picker/PickerDrawer.js +0 -0
- package/esm/internals/Picker/PickerIndicator.js +1 -2
- package/esm/internals/Picker/PickerPopup.js +0 -0
- package/esm/internals/Picker/PickerToggle.js +0 -0
- package/esm/internals/Picker/PickerToggleTrigger.js +0 -0
- package/esm/internals/Picker/SelectedElement.js +0 -0
- package/esm/internals/Picker/ToggleButton.js +0 -0
- package/esm/internals/Picker/hooks/index.js +0 -0
- package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/esm/internals/Picker/hooks/useCombobox.js +0 -0
- package/esm/internals/Picker/hooks/useFocusItemValue.js +0 -0
- package/esm/internals/Picker/hooks/usePickerRef.js +0 -0
- package/esm/internals/Picker/index.js +0 -0
- package/esm/internals/Picker/types.js +0 -0
- 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/Provider/types.js +2 -0
- package/esm/internals/Ripple/Ripple.js +1 -2
- package/esm/internals/SafeAnchor/SafeAnchor.js +1 -1
- package/esm/internals/SafeAnchor/index.js +0 -0
- package/esm/internals/ScrollView/ScrollView.js +0 -0
- package/esm/internals/SearchBox/SearchBox.js +0 -0
- package/esm/internals/StyledBox/StyledBox.js +0 -0
- package/esm/internals/StyledBox/index.js +0 -0
- package/esm/internals/Tree/TreeView.js +0 -0
- package/esm/internals/Tree/utils/getPathTowardsItem.js +0 -0
- package/esm/internals/Windowing/AutoSizer.js +0 -0
- package/esm/internals/Windowing/List.js +1 -1
- package/esm/internals/constants/index.js +0 -0
- 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/useElementResize.js +0 -0
- package/esm/internals/hooks/useEnsuredRef.js +0 -0
- package/esm/internals/hooks/useFocus.js +0 -0
- package/esm/internals/hooks/useInternalId.js +0 -0
- package/esm/internals/hooks/usePortal.js +0 -0
- package/esm/internals/hooks/useRootClose.js +0 -0
- package/esm/internals/hooks/useStyles.js +1 -1
- package/esm/internals/hooks/useTimeout.js +0 -0
- package/esm/internals/hooks/useToggleCaret.js +1 -1
- package/esm/internals/hooks/useUniqueId.js +0 -0
- package/esm/internals/hooks/useUpdateEffect.js +0 -0
- package/esm/internals/hooks/useWillUnmount.js +0 -0
- package/esm/internals/index.d.ts +4 -0
- package/esm/internals/index.js +5 -0
- package/esm/{CustomProvider → internals/intl}/FormattedDate.js +1 -1
- package/esm/{CustomProvider → internals/intl}/FormattedNumber.js +1 -1
- package/esm/internals/symbols.js +0 -0
- package/esm/internals/types/animation.js +0 -0
- package/esm/internals/types/colours.js +0 -0
- package/esm/internals/types/date.js +0 -0
- package/esm/internals/types/dom.js +0 -0
- package/esm/internals/types/form.js +0 -0
- package/esm/internals/types/html.d.ts +2 -0
- package/esm/internals/types/html.js +0 -0
- package/esm/internals/types/index.js +0 -0
- package/esm/internals/types/picker.d.ts +2 -2
- package/esm/internals/types/picker.js +0 -0
- package/esm/internals/types/placement.js +0 -0
- package/esm/internals/types/shared.js +0 -0
- package/esm/internals/types/sizes.d.ts +2 -0
- package/esm/internals/types/sizes.js +3 -1
- package/esm/internals/types/utils.js +0 -0
- package/esm/internals/utils/BrowserDetection.js +0 -0
- package/esm/internals/utils/colours.js +0 -0
- package/esm/internals/utils/date/copyTime.js +0 -0
- package/esm/internals/utils/date/disableTime.js +0 -0
- package/esm/internals/utils/date/getWeekStartDates.d.ts +0 -1
- package/esm/internals/utils/date/getWeekStartDates.js +2 -4
- package/esm/internals/utils/date/index.js +0 -0
- package/esm/internals/utils/html/dom.js +0 -0
- package/esm/internals/utils/html/events.js +0 -0
- package/esm/internals/utils/html/htmlPropsUtils.js +0 -0
- package/esm/internals/utils/html/index.js +0 -0
- package/esm/internals/utils/html/safeSetSelection.js +0 -0
- package/esm/internals/utils/index.js +0 -0
- package/esm/internals/utils/placement.js +0 -0
- package/esm/internals/utils/react/ReactChildren.js +0 -0
- package/esm/internals/utils/react/ReactIs.js +0 -0
- package/esm/internals/utils/react/createComponent.js +12 -2
- package/esm/internals/utils/react/deprecateComponent.js +0 -0
- package/esm/internals/utils/react/forwardRef.js +0 -0
- package/esm/internals/utils/react/getDOMNode.js +0 -0
- package/esm/internals/utils/react/index.js +0 -0
- package/esm/internals/utils/react/mergeRefs.js +0 -0
- package/esm/internals/utils/sizes.js +0 -0
- package/esm/internals/utils/string/getSafeRegExpString.js +0 -0
- package/esm/internals/utils/string/getStringLength.js +0 -0
- package/esm/internals/utils/string/index.js +0 -0
- package/esm/internals/utils/string/stringifyReactNode.js +0 -0
- package/esm/internals/utils/string/tplTransform.js +0 -0
- package/esm/internals/utils/style-sheet/css.js +0 -0
- package/esm/internals/utils/style-sheet/index.js +0 -0
- package/esm/internals/utils/style-sheet/prefix.js +0 -0
- package/esm/internals/utils/style-sheet/responsive.js +0 -0
- package/esm/internals/utils/style-sheet/styles.js +0 -0
- package/esm/locales/ar_EG.js +0 -0
- package/esm/locales/ca_ES.js +0 -0
- package/esm/locales/cs_CZ.js +0 -0
- package/esm/locales/da_DK.js +0 -0
- package/esm/locales/de_DE.js +0 -0
- package/esm/locales/en_GB.js +0 -0
- package/esm/locales/en_US.js +0 -0
- package/esm/locales/es_AR.js +0 -0
- package/esm/locales/es_ES.js +0 -0
- package/esm/locales/fa_IR.js +0 -0
- package/esm/locales/fi_FI.js +0 -0
- package/esm/locales/fr_FR.js +0 -0
- package/esm/locales/hu_HU.js +0 -0
- package/esm/locales/it_IT.js +0 -0
- package/esm/locales/ja_JP.js +0 -0
- package/esm/locales/kk_KZ.js +0 -0
- package/esm/locales/ko_KR.js +0 -0
- package/esm/locales/ne_NP.js +0 -0
- package/esm/locales/nl_NL.js +0 -0
- package/esm/locales/pl_PL.js +0 -0
- package/esm/locales/pt_BR.js +0 -0
- package/esm/locales/ru_RU.js +0 -0
- package/esm/locales/sv_SE.js +0 -0
- package/esm/locales/tr_TR.js +0 -0
- package/esm/locales/zh_CN.js +0 -0
- package/esm/locales/zh_TW.js +0 -0
- package/esm/toaster/ToastContainer.js +0 -0
- package/esm/toaster/hooks/useDelayedClosure.js +0 -0
- package/esm/toaster/index.js +0 -0
- package/esm/toaster/render.js +0 -0
- package/esm/toaster/toaster.js +0 -0
- package/esm/useBreakpointValue/index.js +0 -0
- package/esm/useBreakpointValue/useBreakpointValue.d.ts +1 -1
- package/esm/useBreakpointValue/useBreakpointValue.js +1 -1
- package/esm/useMediaQuery/breakpoints.js +0 -0
- package/esm/useMediaQuery/index.js +0 -0
- package/esm/useMediaQuery/types.js +0 -0
- package/esm/useMediaQuery/useMediaQuery.js +0 -0
- package/esm/useToaster/index.js +0 -0
- package/esm/useToaster/useToaster.js +1 -3
- package/internals/Box/styles/index.less +0 -0
- 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/internals/Ripple/styles/index.less +0 -0
- package/internals/ScrollView/styles/index.less +0 -0
- package/package.json +4 -3
- package/styles/color-modes/dark.less +8 -11
- package/styles/color-modes/high-contrast.less +5 -8
- package/styles/color-modes/light.less +6 -9
- package/styles/common.less +0 -0
- package/styles/index.less +5 -1
- package/styles/mixins/combobox.less +0 -0
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/listbox.less +0 -0
- package/styles/mixins/utilities.less +2 -5
- package/styles/normalize.less +0 -0
- package/styles/root.less +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/styles/variables.less +0 -0
- package/toaster/styles/index.css +0 -0
- package/toaster/styles/index.less +0 -0
- package/cjs/CustomProvider/types.d.ts +0 -228
- package/cjs/InputNumber/InputNumber.js +0 -300
- package/esm/CustomProvider/types.d.ts +0 -228
- package/esm/InputNumber/InputNumber.js +0 -293
- /package/cjs/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
- /package/cjs/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
- /package/esm/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
- /package/esm/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.usePinValue = exports.default = void 0;
|
|
6
|
+
var _react = require("react");
|
|
7
|
+
var _hooks = require("../../internals/hooks");
|
|
8
|
+
/**
|
|
9
|
+
* Hook for managing pin input value
|
|
10
|
+
* - Handles controlled/uncontrolled value
|
|
11
|
+
* - Normalizes value to array format
|
|
12
|
+
* - Manages array updates and modifications
|
|
13
|
+
*/
|
|
14
|
+
const usePinValue = (controlValue, defaultValue, length, onChange, onComplete) => {
|
|
15
|
+
// Use controlled pattern for value management
|
|
16
|
+
const [value, setValue] = (0, _hooks.useControlled)(controlValue, defaultValue);
|
|
17
|
+
|
|
18
|
+
// Convert string value to array of characters
|
|
19
|
+
const valueArray = (0, _react.useMemo)(() => {
|
|
20
|
+
// Ensure value is a string and split it into an array of characters
|
|
21
|
+
const valueString = value || '';
|
|
22
|
+
const chars = valueString.split('');
|
|
23
|
+
|
|
24
|
+
// Pad the array with empty strings if needed
|
|
25
|
+
while (chars.length < length) {
|
|
26
|
+
chars.push('');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Trim the array if it's too long
|
|
30
|
+
if (chars.length > length) {
|
|
31
|
+
chars.length = length;
|
|
32
|
+
}
|
|
33
|
+
return chars;
|
|
34
|
+
}, [value, length]);
|
|
35
|
+
|
|
36
|
+
// Update specific digit at index
|
|
37
|
+
const setDigit = (index, digit) => {
|
|
38
|
+
if (index < 0 || index >= length) return;
|
|
39
|
+
const newValueArray = [...valueArray];
|
|
40
|
+
newValueArray[index] = digit;
|
|
41
|
+
updateValue(newValueArray.join(''));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Clear specific digit at index
|
|
45
|
+
const clearDigit = index => {
|
|
46
|
+
if (index < 0 || index >= length) return;
|
|
47
|
+
const newValueArray = [...valueArray];
|
|
48
|
+
newValueArray[index] = '';
|
|
49
|
+
updateValue(newValueArray.join(''));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Set entire value at once
|
|
53
|
+
const updateValue = newValue => {
|
|
54
|
+
// Filter out any extra characters beyond length
|
|
55
|
+
const filteredValue = newValue.slice(0, length);
|
|
56
|
+
setValue(filteredValue);
|
|
57
|
+
onChange === null || onChange === void 0 || onChange(filteredValue);
|
|
58
|
+
|
|
59
|
+
// Call onComplete if the value is complete
|
|
60
|
+
if (filteredValue.length === length) {
|
|
61
|
+
onComplete === null || onComplete === void 0 || onComplete(filteredValue);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
value,
|
|
66
|
+
valueArray,
|
|
67
|
+
setDigit,
|
|
68
|
+
clearDigit,
|
|
69
|
+
updateValue
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
exports.usePinValue = usePinValue;
|
|
73
|
+
var _default = exports.default = usePinValue;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _PinInput = _interopRequireDefault(require("./PinInput"));
|
|
8
|
+
exports.PinInput = _PinInput.default;
|
|
9
|
+
var _default = exports.default = _PinInput.default;
|
|
File without changes
|
|
@@ -8,7 +8,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
10
10
|
var _hooks = require("../internals/hooks");
|
|
11
|
-
var _CustomProvider = require("../CustomProvider");
|
|
12
11
|
var _utils = require("../internals/utils");
|
|
13
12
|
/**
|
|
14
13
|
* The `Placeholder.Graph` component is used to display the loading state of the block.
|
|
@@ -17,7 +16,7 @@ var _utils = require("../internals/utils");
|
|
|
17
16
|
const PlaceholderGraph = (0, _utils.forwardRef)((props, ref) => {
|
|
18
17
|
const {
|
|
19
18
|
propsWithDefaults
|
|
20
|
-
} = (0,
|
|
19
|
+
} = (0, _hooks.useCustom)('PlaceholderGraph', props);
|
|
21
20
|
const {
|
|
22
21
|
as,
|
|
23
22
|
className,
|
|
@@ -8,7 +8,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
10
10
|
var _hooks = require("../internals/hooks");
|
|
11
|
-
var _CustomProvider = require("../CustomProvider");
|
|
12
11
|
var _utils = require("../internals/utils");
|
|
13
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -19,7 +18,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
19
18
|
const PlaceholderGrid = (0, _utils.forwardRef)((props, ref) => {
|
|
20
19
|
const {
|
|
21
20
|
propsWithDefaults
|
|
22
|
-
} = (0,
|
|
21
|
+
} = (0, _hooks.useCustom)('PlaceholderGrid', props);
|
|
23
22
|
const {
|
|
24
23
|
as,
|
|
25
24
|
className,
|
|
@@ -8,7 +8,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
10
10
|
var _hooks = require("../internals/hooks");
|
|
11
|
-
var _CustomProvider = require("../CustomProvider");
|
|
12
11
|
var _utils = require("../internals/utils");
|
|
13
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -19,7 +18,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
19
18
|
const PlaceholderParagraph = (0, _utils.forwardRef)((props, ref) => {
|
|
20
19
|
const {
|
|
21
20
|
propsWithDefaults
|
|
22
|
-
} = (0,
|
|
21
|
+
} = (0, _hooks.useCustom)('PlaceholderParagraph', props);
|
|
23
22
|
const {
|
|
24
23
|
as,
|
|
25
24
|
className,
|
package/cjs/Placeholder/index.js
CHANGED
|
File without changes
|
package/cjs/Popover/Popover.js
CHANGED
|
@@ -10,7 +10,6 @@ var _Heading = _interopRequireDefault(require("../Heading"));
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
11
11
|
var _utils = require("../internals/utils");
|
|
12
12
|
var _hooks = require("../internals/hooks");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
/**
|
|
@@ -20,7 +19,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
20
19
|
const Popover = (0, _utils.forwardRef)((props, ref) => {
|
|
21
20
|
const {
|
|
22
21
|
propsWithDefaults
|
|
23
|
-
} = (0,
|
|
22
|
+
} = (0, _hooks.useCustom)('Popover', props);
|
|
24
23
|
const {
|
|
25
24
|
as,
|
|
26
25
|
classPrefix = 'popover',
|
package/cjs/Popover/index.js
CHANGED
|
File without changes
|
package/cjs/Progress/Progress.js
CHANGED
|
File without changes
|
|
@@ -10,7 +10,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
10
10
|
var _statusIcons = require("../internals/constants/statusIcons");
|
|
11
11
|
var _utils = require("../internals/utils");
|
|
12
12
|
var _hooks = require("../internals/hooks");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
/**
|
|
@@ -20,7 +19,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
20
19
|
const ProgressCircle = (0, _utils.forwardRef)((props, ref) => {
|
|
21
20
|
const {
|
|
22
21
|
propsWithDefaults
|
|
23
|
-
} = (0,
|
|
22
|
+
} = (0, _hooks.useCustom)('ProgressCircle', props);
|
|
24
23
|
const {
|
|
25
24
|
as,
|
|
26
25
|
strokeWidth = 6,
|
|
@@ -10,7 +10,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
10
10
|
var _statusIcons = require("../internals/constants/statusIcons");
|
|
11
11
|
var _utils = require("../internals/utils");
|
|
12
12
|
var _hooks = require("../internals/hooks");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
/**
|
|
15
14
|
* The `Progress.Line` component is used to display the progress of current operation.
|
|
16
15
|
* @see https://rsuitejs.com/components/progress/#line
|
|
@@ -18,7 +17,7 @@ var _CustomProvider = require("../CustomProvider");
|
|
|
18
17
|
const ProgressLine = (0, _utils.forwardRef)((props, ref) => {
|
|
19
18
|
const {
|
|
20
19
|
propsWithDefaults
|
|
21
|
-
} = (0,
|
|
20
|
+
} = (0, _hooks.useCustom)('ProgressLine', props);
|
|
22
21
|
const {
|
|
23
22
|
as,
|
|
24
23
|
className,
|
package/cjs/Progress/index.js
CHANGED
|
File without changes
|
package/cjs/Radio/Radio.js
CHANGED
|
@@ -10,7 +10,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
10
10
|
var _RadioGroup = require("../RadioGroup/RadioGroup");
|
|
11
11
|
var _hooks = require("../internals/hooks");
|
|
12
12
|
var _utils = require("../internals/utils");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
/**
|
|
@@ -21,7 +20,7 @@ const Radio = (0, _utils.forwardRef)((props, ref) => {
|
|
|
21
20
|
const radioContext = (0, _react.useContext)(_RadioGroup.RadioContext);
|
|
22
21
|
const {
|
|
23
22
|
propsWithDefaults
|
|
24
|
-
} = (0,
|
|
23
|
+
} = (0, _hooks.useCustom)('Radio', props);
|
|
25
24
|
const {
|
|
26
25
|
value: groupValue,
|
|
27
26
|
inline: inlineContext,
|
package/cjs/Radio/index.js
CHANGED
|
File without changes
|
|
@@ -10,7 +10,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
10
10
|
var _Plaintext = _interopRequireDefault(require("../internals/Plaintext"));
|
|
11
11
|
var _utils = require("../internals/utils");
|
|
12
12
|
var _hooks = require("../internals/hooks");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
const RadioContext = exports.RadioContext = /*#__PURE__*/_react.default.createContext(void 0);
|
|
@@ -22,7 +21,7 @@ const RadioContext = exports.RadioContext = /*#__PURE__*/_react.default.createCo
|
|
|
22
21
|
const RadioGroup = (0, _utils.forwardRef)((props, ref) => {
|
|
23
22
|
const {
|
|
24
23
|
propsWithDefaults
|
|
25
|
-
} = (0,
|
|
24
|
+
} = (0, _hooks.useCustom)('RadioGroup', props);
|
|
26
25
|
const {
|
|
27
26
|
as,
|
|
28
27
|
className,
|
package/cjs/RadioGroup/index.js
CHANGED
|
File without changes
|
|
@@ -11,7 +11,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
11
11
|
var _RadioTileGroup = require("../RadioTileGroup/RadioTileGroup");
|
|
12
12
|
var _utils = require("../internals/utils");
|
|
13
13
|
var _hooks = require("../internals/hooks");
|
|
14
|
-
var _CustomProvider = require("../CustomProvider");
|
|
15
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
16
|
/**
|
|
@@ -22,7 +21,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
22
21
|
const RadioTile = (0, _utils.forwardRef)((props, ref) => {
|
|
23
22
|
const {
|
|
24
23
|
propsWithDefaults
|
|
25
|
-
} = (0,
|
|
24
|
+
} = (0, _hooks.useCustom)('RadioTile', props);
|
|
26
25
|
const {
|
|
27
26
|
value: groupValue,
|
|
28
27
|
name: nameContext,
|
package/cjs/RadioTile/index.js
CHANGED
|
File without changes
|
|
@@ -10,7 +10,6 @@ var _Stack = _interopRequireDefault(require("../Stack"));
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
11
11
|
var _hooks = require("../internals/hooks");
|
|
12
12
|
var _utils = require("../internals/utils");
|
|
13
|
-
var _CustomProvider = require("../CustomProvider");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
15
|
const RadioTileContext = exports.RadioTileContext = /*#__PURE__*/_react.default.createContext({});
|
|
@@ -23,7 +22,7 @@ const RadioTileContext = exports.RadioTileContext = /*#__PURE__*/_react.default.
|
|
|
23
22
|
const RadioTileGroup = (0, _utils.forwardRef)((props, ref) => {
|
|
24
23
|
const {
|
|
25
24
|
propsWithDefaults
|
|
26
|
-
} = (0,
|
|
25
|
+
} = (0, _hooks.useCustom)('RadioTileGroup', props);
|
|
27
26
|
const {
|
|
28
27
|
as = _Stack.default,
|
|
29
28
|
className,
|
|
File without changes
|
|
@@ -17,7 +17,6 @@ var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
|
17
17
|
var _utils = require("../internals/utils");
|
|
18
18
|
var _hooks = require("../internals/hooks");
|
|
19
19
|
var _utils2 = require("../Slider/utils");
|
|
20
|
-
var _CustomProvider = require("../CustomProvider");
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
22
|
const defaultDefaultValue = [0, 0];
|
|
@@ -29,7 +28,7 @@ const defaultDefaultValue = [0, 0];
|
|
|
29
28
|
const RangeSlider = (0, _utils.forwardRef)((props, ref) => {
|
|
30
29
|
const {
|
|
31
30
|
propsWithDefaults
|
|
32
|
-
} = (0,
|
|
31
|
+
} = (0, _hooks.useCustom)('RangeSlider', props);
|
|
33
32
|
const {
|
|
34
33
|
'aria-label': ariaLabel,
|
|
35
34
|
'aria-labelledby': ariaLabelledby,
|
|
@@ -76,7 +75,7 @@ const RangeSlider = (0, _utils.forwardRef)((props, ref) => {
|
|
|
76
75
|
} = (0, _hooks.useStyles)(classPrefix);
|
|
77
76
|
const {
|
|
78
77
|
rtl
|
|
79
|
-
} = (0,
|
|
78
|
+
} = (0, _hooks.useCustom)('RangeSlider');
|
|
80
79
|
const classes = merge(className, withPrefix({
|
|
81
80
|
vertical,
|
|
82
81
|
disabled,
|
package/cjs/RangeSlider/index.js
CHANGED
|
File without changes
|
package/cjs/Rate/Character.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '../internals/Box';
|
|
3
|
+
import type { StarStatus } from './types';
|
|
3
4
|
interface CharacterProps extends BoxProps {
|
|
4
5
|
vertical?: boolean;
|
|
5
|
-
status?:
|
|
6
|
+
status?: StarStatus;
|
|
6
7
|
disabled?: boolean;
|
|
7
|
-
onMouseMove?: (key:
|
|
8
|
-
onClick?: (key:
|
|
8
|
+
onMouseMove?: (key: 'before' | 'after', event: React.MouseEvent) => void;
|
|
9
|
+
onClick?: (key: 'before' | 'after', event: React.MouseEvent) => void;
|
|
9
10
|
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
10
11
|
}
|
|
11
12
|
declare const Character: import("../internals/types").InternalRefForwardingComponent<"li", CharacterProps, never> & Record<string, never>;
|
package/cjs/Rate/Character.js
CHANGED
|
@@ -7,18 +7,15 @@ exports.default = void 0;
|
|
|
7
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _contains = _interopRequireDefault(require("dom-lib/contains"));
|
|
10
|
-
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
11
10
|
var _Box = _interopRequireDefault(require("../internals/Box"));
|
|
12
11
|
var _utils = require("../internals/utils");
|
|
12
|
+
var _utils2 = require("./utils");
|
|
13
13
|
var _hooks = require("../internals/hooks");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
[0.5]: 'half',
|
|
19
|
-
[1]: 'full'
|
|
16
|
+
const getKey = (element, target) => {
|
|
17
|
+
return element && target && (0, _contains.default)(element, target) ? 'before' : 'after';
|
|
20
18
|
};
|
|
21
|
-
const getKey = (a, b) => (0, _contains.default)(a, b) ? 'before' : 'after';
|
|
22
19
|
const Character = (0, _utils.forwardRef)((props, ref) => {
|
|
23
20
|
const {
|
|
24
21
|
as = 'li',
|
|
@@ -34,27 +31,34 @@ const Character = (0, _utils.forwardRef)((props, ref) => {
|
|
|
34
31
|
...rest
|
|
35
32
|
} = props;
|
|
36
33
|
const {
|
|
37
|
-
merge,
|
|
38
34
|
prefix,
|
|
39
|
-
withPrefix
|
|
35
|
+
withPrefix,
|
|
36
|
+
merge
|
|
40
37
|
} = (0, _hooks.useStyles)(classPrefix);
|
|
41
38
|
const beforeRef = (0, _react.useRef)(null);
|
|
42
|
-
const classes = merge(className, withPrefix(!(0, _isNil.default)(status) && characterStatus[status]));
|
|
43
39
|
const handleMouseMove = (0, _hooks.useEventCallback)(event => {
|
|
44
40
|
onMouseMove === null || onMouseMove === void 0 || onMouseMove(getKey(beforeRef.current, event.target), event);
|
|
45
41
|
});
|
|
46
42
|
const handleClick = (0, _hooks.useEventCallback)(event => {
|
|
47
43
|
onClick === null || onClick === void 0 || onClick(getKey(beforeRef.current, event.target), event);
|
|
48
44
|
});
|
|
45
|
+
const eventHandlers = (0, _react.useMemo)(() => {
|
|
46
|
+
if (disabled) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
onClick: handleClick,
|
|
51
|
+
onKeyDown,
|
|
52
|
+
onMouseMove: handleMouseMove
|
|
53
|
+
};
|
|
54
|
+
}, [disabled, handleClick, onKeyDown, handleMouseMove]);
|
|
49
55
|
return /*#__PURE__*/_react.default.createElement(_Box.default, (0, _extends2.default)({
|
|
50
56
|
as: as,
|
|
51
57
|
ref: ref,
|
|
52
|
-
className:
|
|
53
|
-
tabIndex: 0,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
onMouseMove: disabled ? null : handleMouseMove
|
|
57
|
-
}, rest), /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: merge(className, withPrefix()),
|
|
59
|
+
tabIndex: disabled ? -1 : 0,
|
|
60
|
+
"data-status": (0, _utils2.getStarStatus)(status)
|
|
61
|
+
}, eventHandlers, rest), /*#__PURE__*/_react.default.createElement("div", {
|
|
58
62
|
ref: beforeRef,
|
|
59
63
|
className: prefix('before', {
|
|
60
64
|
vertical
|
package/cjs/Rate/Rate.d.ts
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StyledBoxProps } from '../internals/StyledBox';
|
|
3
3
|
import type { Color, FormControlBaseProps, Size } from '../internals/types';
|
|
4
|
-
export interface RateProps<T = number> extends
|
|
4
|
+
export interface RateProps<T = number> extends Omit<StyledBoxProps, 'name'>, FormControlBaseProps<T> {
|
|
5
|
+
/** Whether to allow semi selection */
|
|
5
6
|
allowHalf?: boolean;
|
|
7
|
+
/** Custom character of rate */
|
|
6
8
|
character?: React.ReactNode;
|
|
9
|
+
/** The prefix of the component CSS class */
|
|
7
10
|
classPrefix?: string;
|
|
11
|
+
/** Whether to allow cancel selection */
|
|
8
12
|
cleanable?: boolean;
|
|
9
13
|
/** A rate can have different sizes */
|
|
10
14
|
size?: Size;
|
|
11
15
|
/** A rate can have different colors */
|
|
12
16
|
color?: Color | React.CSSProperties['color'];
|
|
17
|
+
/** Maximum rate */
|
|
13
18
|
max?: number;
|
|
19
|
+
/** Vertical Rate half */
|
|
14
20
|
vertical?: boolean;
|
|
21
|
+
/** Render custom character */
|
|
15
22
|
renderCharacter?: (value: number, index: number) => React.ReactNode;
|
|
23
|
+
/** Callback function when hover state changes */
|
|
16
24
|
onChangeActive?: (value: T, event: React.SyntheticEvent) => void;
|
|
17
25
|
}
|
|
18
26
|
/**
|
package/cjs/Rate/Rate.js
CHANGED
|
@@ -5,19 +5,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
10
10
|
var _Star = _interopRequireDefault(require("@rsuite/icons/Star"));
|
|
11
11
|
var _Character = _interopRequireDefault(require("./Character"));
|
|
12
12
|
var _Plaintext = _interopRequireDefault(require("../internals/Plaintext"));
|
|
13
|
-
var
|
|
13
|
+
var _StyledBox = _interopRequireDefault(require("../internals/StyledBox"));
|
|
14
14
|
var _constants = require("../internals/constants");
|
|
15
15
|
var _hooks = require("../internals/hooks");
|
|
16
16
|
var _utils = require("../internals/utils");
|
|
17
17
|
var _utils2 = require("./utils");
|
|
18
|
-
var
|
|
19
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
var _useRatingStates = require("./useRatingStates");
|
|
21
19
|
/**
|
|
22
20
|
* The `Rate` component is used for rating. It can be used to evaluate the quality of the content.
|
|
23
21
|
* @see https://rsuitejs.com/components/rate/
|
|
@@ -25,7 +23,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
23
|
const Rate = (0, _utils.forwardRef)((props, ref) => {
|
|
26
24
|
const {
|
|
27
25
|
propsWithDefaults
|
|
28
|
-
} = (0,
|
|
26
|
+
} = (0, _hooks.useCustom)('Rate', props);
|
|
29
27
|
const {
|
|
30
28
|
as = 'ul',
|
|
31
29
|
character = /*#__PURE__*/_react.default.createElement(_Star.default, null),
|
|
@@ -35,7 +33,7 @@ const Rate = (0, _utils.forwardRef)((props, ref) => {
|
|
|
35
33
|
max = 5,
|
|
36
34
|
readOnly,
|
|
37
35
|
vertical,
|
|
38
|
-
size
|
|
36
|
+
size,
|
|
39
37
|
color,
|
|
40
38
|
allowHalf = false,
|
|
41
39
|
value: valueProp,
|
|
@@ -49,39 +47,37 @@ const Rate = (0, _utils.forwardRef)((props, ref) => {
|
|
|
49
47
|
...rest
|
|
50
48
|
} = propsWithDefaults;
|
|
51
49
|
const [value, setValue] = (0, _hooks.useControlled)(valueProp, defaultValue);
|
|
52
|
-
const getCharacterMap = (0, _react.useCallback)(v => {
|
|
53
|
-
return (0, _utils2.transformValueToCharacterMap)(typeof v !== 'undefined' ? v : value, max, allowHalf);
|
|
54
|
-
}, [allowHalf, max, value]);
|
|
55
|
-
const [characterMap, setCharacterMap] = (0, _react.useState)(getCharacterMap());
|
|
56
|
-
const hoverValue = (0, _utils2.transformCharacterMapToValue)(characterMap);
|
|
57
50
|
const {
|
|
58
51
|
merge,
|
|
59
52
|
withPrefix
|
|
60
53
|
} = (0, _hooks.useStyles)(classPrefix);
|
|
61
|
-
const classes = merge(className, withPrefix(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
const classes = merge(className, withPrefix());
|
|
55
|
+
|
|
56
|
+
// Use the custom hook to manage rating star states
|
|
57
|
+
const {
|
|
58
|
+
starStates,
|
|
59
|
+
setStarStates,
|
|
60
|
+
resetStarStates,
|
|
61
|
+
hoverValue,
|
|
62
|
+
getStarStates
|
|
63
|
+
} = (0, _useRatingStates.useRatingStates)({
|
|
64
|
+
value,
|
|
65
|
+
max,
|
|
66
|
+
allowHalf,
|
|
67
|
+
valueProp
|
|
68
|
+
});
|
|
73
69
|
const handleMouseLeave = (0, _hooks.useEventCallback)(event => {
|
|
74
|
-
|
|
70
|
+
resetStarStates();
|
|
75
71
|
onChangeActive === null || onChangeActive === void 0 || onChangeActive(value, event);
|
|
76
72
|
});
|
|
77
73
|
const handleChangeValue = (0, _hooks.useEventCallback)((index, event) => {
|
|
78
|
-
let nextValue = (0, _utils2.
|
|
79
|
-
if (cleanable && value === nextValue &&
|
|
74
|
+
let nextValue = (0, _utils2.transformStarStatusToValue)(starStates);
|
|
75
|
+
if (cleanable && value === nextValue && getStarStates(value)[index] === starStates[index]) {
|
|
80
76
|
nextValue = 0;
|
|
81
77
|
}
|
|
82
78
|
if (nextValue !== value) {
|
|
83
79
|
setValue(nextValue);
|
|
84
|
-
|
|
80
|
+
setStarStates(getStarStates(nextValue));
|
|
85
81
|
onChange === null || onChange === void 0 || onChange(nextValue, event);
|
|
86
82
|
}
|
|
87
83
|
});
|
|
@@ -89,59 +85,67 @@ const Rate = (0, _utils.forwardRef)((props, ref) => {
|
|
|
89
85
|
const {
|
|
90
86
|
key
|
|
91
87
|
} = event;
|
|
92
|
-
let nextValue = (0, _utils2.
|
|
88
|
+
let nextValue = (0, _utils2.transformStarStatusToValue)(starStates);
|
|
93
89
|
if (key === _constants.KEY_VALUES.RIGHT && nextValue < max) {
|
|
94
90
|
nextValue = allowHalf ? nextValue + 0.5 : nextValue + 1;
|
|
95
91
|
} else if (key === _constants.KEY_VALUES.LEFT && nextValue > 0) {
|
|
96
92
|
nextValue = allowHalf ? nextValue - 0.5 : nextValue - 1;
|
|
97
93
|
}
|
|
98
|
-
|
|
94
|
+
setStarStates(getStarStates(nextValue));
|
|
99
95
|
if (key === _constants.KEY_VALUES.ENTER) {
|
|
100
96
|
handleChangeValue(index, event);
|
|
101
97
|
}
|
|
102
98
|
});
|
|
103
|
-
const
|
|
104
|
-
const
|
|
99
|
+
const handleChangeStarStates = (0, _hooks.useEventCallback)((index, key, event) => {
|
|
100
|
+
const nextStarStates = starStates.map((_item, i) => {
|
|
105
101
|
if (i === index && key === 'before' && allowHalf) {
|
|
106
102
|
return 0.5;
|
|
107
103
|
}
|
|
108
104
|
return index >= i ? 1 : 0;
|
|
109
105
|
});
|
|
110
|
-
if (!(0, _utils.shallowEqualArray)(
|
|
111
|
-
|
|
112
|
-
onChangeActive === null || onChangeActive === void 0 || onChangeActive((0, _utils2.
|
|
106
|
+
if (!(0, _utils.shallowEqualArray)(starStates, nextStarStates)) {
|
|
107
|
+
setStarStates(nextStarStates);
|
|
108
|
+
onChangeActive === null || onChangeActive === void 0 || onChangeActive((0, _utils2.transformStarStatusToValue)(nextStarStates), event);
|
|
113
109
|
}
|
|
114
110
|
});
|
|
115
111
|
const handleClick = (0, _hooks.useEventCallback)((index, key, event) => {
|
|
116
|
-
|
|
112
|
+
handleChangeStarStates(index, key, event);
|
|
117
113
|
handleChangeValue(index, event);
|
|
118
114
|
});
|
|
119
115
|
if (plaintext) {
|
|
120
116
|
return /*#__PURE__*/_react.default.createElement(_Plaintext.default, {
|
|
121
117
|
localeKey: "notSelected",
|
|
122
118
|
className: className
|
|
123
|
-
}, !(0, _isNil.default)(value) ? `${value}
|
|
119
|
+
}, !(0, _isNil.default)(value) ? `${value}/${max}` : null);
|
|
124
120
|
}
|
|
125
|
-
|
|
121
|
+
const mergedStyle = (0, _utils.mergeStyles)(style, {
|
|
122
|
+
'--rs-rate-before-size': (0, _utils2.getFractionalValue)(value)
|
|
123
|
+
});
|
|
124
|
+
return /*#__PURE__*/_react.default.createElement(_StyledBox.default, (0, _extends2.default)({
|
|
126
125
|
as: as,
|
|
126
|
+
name: "rate",
|
|
127
|
+
size: size,
|
|
128
|
+
color: color,
|
|
127
129
|
role: "radiogroup",
|
|
128
|
-
tabIndex: 0,
|
|
130
|
+
tabIndex: disabled ? -1 : 0,
|
|
129
131
|
ref: ref,
|
|
130
132
|
className: classes,
|
|
131
|
-
style:
|
|
132
|
-
onMouseLeave: handleMouseLeave
|
|
133
|
-
|
|
133
|
+
style: mergedStyle,
|
|
134
|
+
onMouseLeave: handleMouseLeave,
|
|
135
|
+
"data-disabled": disabled,
|
|
136
|
+
"data-readonly": readOnly
|
|
137
|
+
}, rest), starStates.map((status, index) => /*#__PURE__*/_react.default.createElement(_Character.default, {
|
|
134
138
|
role: "radio",
|
|
135
139
|
"aria-posinset": index + 1,
|
|
136
140
|
"aria-setsize": max,
|
|
137
141
|
"aria-checked": value === index + 1,
|
|
138
142
|
key: index,
|
|
139
|
-
status:
|
|
143
|
+
status: status,
|
|
140
144
|
disabled: disabled || readOnly,
|
|
141
145
|
vertical: vertical,
|
|
142
146
|
onClick: (key, event) => handleClick(index, key, event),
|
|
143
147
|
onKeyDown: event => handleKeyDown(index, event),
|
|
144
|
-
onMouseMove: (key, event) =>
|
|
148
|
+
onMouseMove: (key, event) => handleChangeStarStates(index, key, event)
|
|
145
149
|
}, renderCharacter ? renderCharacter(hoverValue, index) : character)));
|
|
146
150
|
});
|
|
147
151
|
Rate.displayName = 'Rate';
|
package/cjs/Rate/index.js
CHANGED
|
File without changes
|
|
File without changes
|