rsuite 6.0.0-canary-2025032014 → 6.0.0-canary-20250403
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 +112 -55
- package/AutoComplete/styles/index.less +1 -1
- 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 +12 -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 +0 -0
- 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 +24 -0
- package/Calendar/styles/index.css +11 -9
- package/Calendar/styles/index.less +3 -1
- 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 +0 -0
- package/CascadeTree/styles/index.less +0 -0
- package/Cascader/styles/index.css +112 -55
- package/Center/styles/index.css +0 -0
- package/Center/styles/index.less +0 -0
- package/CheckPicker/styles/index.css +112 -55
- package/CheckPicker/styles/index.less +1 -1
- package/CheckTree/styles/index.css +113 -56
- package/CheckTree/styles/index.less +1 -1
- package/CheckTreePicker/styles/index.css +113 -56
- package/CheckTreePicker/styles/index.less +0 -0
- package/Checkbox/styles/index.css +0 -0
- package/Checkbox/styles/index.less +0 -0
- 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/DatePicker/styles/index.css +122 -67
- package/DatePicker/styles/index.less +5 -11
- package/DateRangePicker/styles/index.css +132 -71
- package/DateRangePicker/styles/index.less +10 -4
- package/Divider/styles/index.css +0 -0
- package/Divider/styles/index.less +0 -0
- package/Drawer/styles/index.css +0 -0
- package/Drawer/styles/index.less +0 -0
- package/Dropdown/styles/index.css +0 -0
- 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 +0 -0
- package/FormControl/styles/index.less +0 -0
- 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 +1 -2
- package/Grid/styles/grid-framework.less +1 -0
- package/Grid/styles/index.css +9 -4
- package/Grid/styles/index.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Grid/styles/row.less +2 -2
- 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 +0 -0
- 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 +0 -0
- package/Input/styles/index.less +0 -0
- package/Input/styles/mixin.less +0 -0
- package/Input/styles/variables.less +0 -0
- package/InputGroup/styles/index.css +1 -1
- package/InputGroup/styles/index.less +1 -1
- package/InputNumber/styles/index.css +1 -1
- package/InputNumber/styles/index.less +0 -0
- package/InputPicker/styles/index.css +121 -63
- package/InputPicker/styles/index.less +4 -4
- 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/package.json +7 -0
- package/Link/styles/index.css +32 -0
- package/Link/styles/index.less +39 -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 +9 -0
- package/Message/styles/index.less +11 -0
- package/Modal/styles/index.css +0 -0
- package/Modal/styles/index.less +0 -0
- package/MultiCascadeTree/styles/index.css +112 -55
- package/MultiCascadeTree/styles/index.less +0 -0
- package/MultiCascader/styles/index.css +112 -55
- package/MultiCascader/styles/index.less +0 -0
- package/Nav/styles/index.css +1 -0
- package/Nav/styles/index.less +1 -0
- package/Navbar/styles/index.css +0 -0
- package/Navbar/styles/index.less +0 -0
- package/Notification/styles/index.css +0 -0
- package/Notification/styles/index.less +0 -0
- package/Pagination/styles/index.css +112 -55
- 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/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 +3 -3
- package/Radio/styles/index.css +0 -0
- package/Radio/styles/index.less +0 -0
- package/Radio/styles/mixin.less +0 -0
- package/RadioGroup/styles/index.css +1 -0
- package/RadioGroup/styles/index.less +1 -0
- package/RadioTile/styles/index.css +0 -0
- package/RadioTile/styles/index.less +0 -0
- package/RangeSlider/styles/index.css +76 -43
- package/Rate/styles/index.css +0 -0
- package/Rate/styles/index.less +0 -0
- package/Row/styles/index.css +0 -0
- package/Row/styles/index.less +0 -0
- package/SelectPicker/styles/index.css +112 -55
- package/SelectPicker/styles/index.less +1 -1
- package/Sidebar/styles/index.css +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/index.css +0 -0
- package/Sidenav/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Slider/styles/index.css +76 -43
- package/Slider/styles/index.less +95 -48
- package/Stack/styles/index.css +0 -0
- package/Stack/styles/index.less +0 -0
- package/Stat/styles/index.css +0 -0
- 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 +1 -0
- package/Tag/styles/index.css +0 -0
- 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 +152 -84
- package/TagInput/styles/index.less +1 -1
- package/TagPicker/styles/index.css +151 -83
- package/TagPicker/styles/index.less +52 -41
- package/Text/styles/index.css +0 -0
- package/Text/styles/index.less +0 -0
- package/Text/styles/variables.less +0 -0
- package/TimePicker/styles/index.css +122 -67
- package/TimeRangePicker/styles/index.css +132 -71
- 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 +146 -87
- package/Toggle/styles/index.less +66 -38
- 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 +113 -56
- package/Tree/styles/index.less +1 -1
- package/Tree/styles/toggle.less +0 -0
- package/TreePicker/styles/index.css +113 -56
- package/Uploader/styles/index.css +0 -0
- package/Uploader/styles/index.less +0 -0
- package/cjs/Accordion/Accordion.js +0 -0
- package/cjs/Accordion/AccordionPanel.js +0 -0
- package/cjs/Accordion/index.js +0 -0
- package/cjs/Affix/Affix.js +0 -0
- package/cjs/Affix/index.js +0 -0
- package/cjs/Animation/Bounce.js +0 -0
- package/cjs/Animation/Collapse.js +0 -0
- package/cjs/Animation/Fade.js +0 -0
- package/cjs/Animation/Slide.js +0 -0
- 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 +1 -1
- package/cjs/AutoComplete/AutoComplete.js +13 -11
- package/cjs/AutoComplete/Combobox.js +0 -0
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/Avatar/Avatar.d.ts +3 -4
- package/cjs/Avatar/Avatar.js +0 -0
- package/cjs/Avatar/index.js +0 -0
- package/cjs/AvatarGroup/AvatarGroup.js +0 -0
- package/cjs/AvatarGroup/index.js +0 -0
- package/cjs/Badge/Badge.js +0 -0
- package/cjs/Badge/index.js +0 -0
- package/cjs/Box/index.js +0 -0
- package/cjs/Breadcrumb/Breadcrumb.js +2 -2
- package/cjs/Breadcrumb/BreadcrumbItem.js +1 -1
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/Button.js +9 -10
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonGroup/ButtonGroup.js +0 -0
- package/cjs/ButtonGroup/ButtonGroupContext.js +0 -0
- package/cjs/ButtonGroup/index.js +0 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +0 -0
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Calendar/Calendar.js +0 -0
- package/cjs/Calendar/CalendarBody.js +0 -0
- package/cjs/Calendar/CalendarContainer.js +0 -0
- package/cjs/Calendar/CalendarHeader.js +0 -0
- package/cjs/Calendar/Grid/Grid.js +0 -0
- package/cjs/Calendar/Grid/GridCell.js +0 -0
- package/cjs/Calendar/Grid/GridHeaderRow.js +0 -0
- package/cjs/Calendar/Grid/GridRow.js +0 -0
- package/cjs/Calendar/MonthDropdown/MonthDropdown.js +0 -0
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +0 -0
- package/cjs/Calendar/TimeDropdown/TimeDropdown.js +0 -0
- package/cjs/Calendar/index.js +0 -0
- package/cjs/Card/Card.js +0 -0
- 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 +0 -0
- package/cjs/CardGroup/index.js +0 -0
- package/cjs/Carousel/Carousel.js +2 -2
- package/cjs/Carousel/index.js +0 -0
- package/cjs/CascadeTree/CascadeTree.js +0 -0
- package/cjs/CascadeTree/SearchView.js +0 -0
- package/cjs/CascadeTree/TreeView.js +0 -0
- 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 +42 -45
- package/cjs/Cascader/index.js +0 -0
- package/cjs/Cascader/useActive.d.ts +6 -4
- package/cjs/Cascader/useActive.js +10 -8
- package/cjs/Center/Center.js +0 -0
- package/cjs/Center/index.js +0 -0
- package/cjs/CheckPicker/CheckPicker.js +38 -41
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTree/CheckTree.js +0 -0
- package/cjs/CheckTree/CheckTreeNode.js +0 -0
- package/cjs/CheckTree/CheckTreeView.js +0 -0
- package/cjs/CheckTree/index.js +0 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +20 -22
- package/cjs/CheckTreePicker/hooks/useFocusState.js +0 -0
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/Checkbox.js +0 -0
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CheckboxGroup/CheckboxGroup.js +0 -0
- 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 +0 -0
- 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 -4
- package/cjs/CustomProvider/CustomProvider.js +0 -0
- package/cjs/CustomProvider/index.js +0 -0
- package/cjs/CustomProvider/types.d.ts +4 -2
- package/cjs/CustomProvider/types.js +0 -0
- package/cjs/CustomProvider/useCustom.js +0 -0
- package/cjs/DOMHelper/index.js +0 -0
- package/cjs/DateInput/DateField.js +0 -0
- package/cjs/DateInput/DateInput.js +0 -0
- package/cjs/DateInput/hooks/useDateInputState.js +0 -0
- 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.d.ts +1 -1
- package/cjs/DatePicker/DatePicker.js +28 -25
- package/cjs/DatePicker/PredefinedRanges.js +0 -0
- package/cjs/DatePicker/Toolbar.js +0 -0
- package/cjs/DatePicker/hooks/useFocus.js +0 -0
- package/cjs/DatePicker/index.js +0 -0
- package/cjs/DatePicker/types.js +0 -0
- package/cjs/DatePicker/utils.d.ts +3 -3
- package/cjs/DatePicker/utils.js +3 -3
- package/cjs/DateRangeInput/DateRangeInput.js +0 -0
- package/cjs/DateRangeInput/index.js +0 -0
- package/cjs/DateRangePicker/Calendar.js +0 -0
- package/cjs/DateRangePicker/DateRangePicker.js +39 -33
- package/cjs/DateRangePicker/Header.js +0 -0
- package/cjs/DateRangePicker/hooks/useDateDisabled.js +0 -0
- package/cjs/DateRangePicker/index.js +0 -0
- package/cjs/DateRangePicker/types.js +0 -0
- package/cjs/Divider/Divider.js +0 -0
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/Drawer.js +0 -0
- 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 +0 -0
- package/cjs/Dropdown/DropdownContext.js +0 -0
- package/cjs/Dropdown/DropdownItem.js +0 -0
- package/cjs/Dropdown/DropdownMenu.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/cjs/Form/FormContext.js +0 -0
- package/cjs/Form/hooks/useFormValidate.js +0 -0
- package/cjs/Form/hooks/useSchemaModel.js +2 -54
- package/cjs/Form/index.js +0 -0
- package/cjs/Form/utils/constructFlatSchema.d.ts +4 -0
- package/cjs/Form/utils/constructFlatSchema.js +41 -0
- package/cjs/FormControl/FormControl.js +0 -0
- package/cjs/FormControl/hooks/useField.js +0 -0
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControl/utils.js +0 -0
- package/cjs/FormControlLabel/FormControlLabel.js +0 -0
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +0 -0
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormGroup/FormGroup.js +0 -0
- package/cjs/FormGroup/index.js +0 -0
- package/cjs/FormHelpText/FormHelpText.js +0 -0
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/FormStack/FormStack.js +0 -0
- package/cjs/FormStack/index.js +0 -0
- package/cjs/Grid/Col.js +0 -0
- package/cjs/Grid/Grid.js +0 -0
- package/cjs/Grid/Row.d.ts +2 -2
- package/cjs/Grid/Row.js +2 -20
- package/cjs/Grid/index.js +0 -0
- package/cjs/Grid/types.d.ts +1 -0
- package/cjs/Grid/types.js +0 -0
- package/cjs/Grid/utils/styles.d.ts +6 -0
- package/cjs/Grid/utils/styles.js +43 -0
- package/cjs/Header/Header.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/Heading/Heading.js +0 -0
- 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 +0 -0
- package/cjs/Highlight/index.js +0 -0
- package/cjs/IconButton/IconButton.js +0 -0
- package/cjs/IconButton/index.js +0 -0
- package/cjs/Image/Image.js +0 -0
- package/cjs/Image/ImageWrapper.js +0 -0
- package/cjs/Image/index.js +0 -0
- package/cjs/InlineEdit/EditableControls.js +0 -0
- package/cjs/InlineEdit/InlineEdit.js +0 -0
- package/cjs/InlineEdit/index.js +0 -0
- package/cjs/InlineEdit/renderChildren.js +0 -0
- package/cjs/Input/Input.js +0 -0
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/InputGroup.js +0 -0
- package/cjs/InputGroup/InputGroupAddon.js +0 -0
- package/cjs/InputGroup/InputGroupButton.js +0 -0
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/InputNumber.js +0 -0
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/InputPicker/InputAutosize.js +0 -0
- package/cjs/InputPicker/InputPicker.js +27 -28
- 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/Kbd/Kbd.js +0 -0
- package/cjs/Kbd/index.js +0 -0
- package/cjs/Link/ExternalLinkIcon.d.ts +3 -0
- package/cjs/Link/ExternalLinkIcon.js +23 -0
- package/cjs/Link/Link.d.ts +14 -0
- package/cjs/Link/Link.js +52 -0
- package/cjs/Link/index.d.ts +4 -0
- package/cjs/Link/index.js +11 -0
- package/cjs/List/List.js +6 -2
- package/cjs/List/ListItem.js +0 -0
- package/cjs/List/helper/useSortHelper.d.ts +7 -5
- package/cjs/List/helper/useSortHelper.js +109 -16
- package/cjs/List/helper/utils.js +14 -6
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/Loader.js +0 -0
- package/cjs/Loader/index.js +0 -0
- package/cjs/MaskedInput/MaskedInput.js +0 -0
- 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 +0 -0
- package/cjs/Message/index.js +0 -0
- package/cjs/Modal/Modal.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/cjs/MultiCascadeTree/SearchView.js +0 -0
- package/cjs/MultiCascadeTree/TreeView.js +0 -0
- 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 +40 -43
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/AdaptiveNavItem.js +0 -0
- package/cjs/Nav/Nav.js +0 -0
- package/cjs/Nav/NavDropdown.js +0 -0
- package/cjs/Nav/NavDropdownItem.js +0 -0
- package/cjs/Nav/NavDropdownMenu.js +0 -0
- package/cjs/Nav/NavDropdownToggle.js +0 -0
- package/cjs/Nav/NavItem.js +1 -1
- package/cjs/Nav/NavMegaMenu.js +0 -0
- package/cjs/Nav/NavMenu.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/Navbar.js +0 -0
- 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 +0 -0
- package/cjs/Navbar/NavbarDropdownToggle.js +0 -0
- package/cjs/Navbar/NavbarItem.js +1 -1
- package/cjs/Navbar/NavbarMegaMenu.js +1 -1
- package/cjs/Navbar/NavbarToggle.js +0 -0
- package/cjs/Navbar/index.js +0 -0
- package/cjs/Notification/Notification.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Pagination/LimitPicker.js +0 -0
- package/cjs/Pagination/Pagination.js +0 -0
- package/cjs/Pagination/PaginationButton.js +0 -0
- package/cjs/Pagination/PaginationGroup.js +0 -0
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/AccordionButton.js +0 -0
- package/cjs/Panel/Panel.js +0 -0
- 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 +0 -0
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Placeholder/Placeholder.js +0 -0
- package/cjs/Placeholder/PlaceholderGraph.js +0 -0
- package/cjs/Placeholder/PlaceholderGrid.js +0 -0
- package/cjs/Placeholder/PlaceholderParagraph.js +0 -0
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Popover/Popover.js +0 -0
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/Progress.js +0 -0
- package/cjs/Progress/ProgressCircle.js +0 -0
- package/cjs/Progress/ProgressLine.js +0 -0
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/Radio.js +0 -0
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/RadioGroup.js +0 -0
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RadioTile/RadioTile.js +0 -0
- package/cjs/RadioTile/index.js +0 -0
- package/cjs/RadioTileGroup/RadioTileGroup.js +0 -0
- package/cjs/RadioTileGroup/index.js +0 -0
- package/cjs/RangeSlider/RangeSlider.js +18 -3
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/Character.js +0 -0
- package/cjs/Rate/Rate.js +0 -0
- package/cjs/Rate/index.js +0 -0
- 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 +45 -46
- package/cjs/SelectPicker/index.js +0 -0
- package/cjs/Sidebar/Sidebar.js +0 -0
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +0 -0
- package/cjs/Sidenav/Sidenav.js +0 -0
- 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 +0 -0
- 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 +1 -1
- package/cjs/Sidenav/SidenavToggle.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/Graduated.d.ts +4 -0
- package/cjs/Slider/Graduated.js +43 -20
- package/cjs/Slider/Handle.d.ts +1 -1
- package/cjs/Slider/Handle.js +12 -12
- 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 +16 -1
- package/cjs/Slider/Slider.js +7 -2
- package/cjs/Slider/index.js +0 -0
- package/cjs/Slider/useDrag.d.ts +1 -0
- package/cjs/Slider/useDrag.js +8 -3
- package/cjs/Stack/HStack.js +0 -0
- package/cjs/Stack/Stack.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/cjs/Stat/StatValueUnit.js +0 -0
- package/cjs/Stat/index.js +0 -0
- package/cjs/StatGroup/StatGroup.js +0 -0
- package/cjs/StatGroup/index.js +0 -0
- package/cjs/Steps/StepItem.js +0 -0
- package/cjs/Steps/Steps.js +2 -2
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/Table.js +0 -0
- 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 +2 -2
- package/cjs/Tabs/index.js +0 -0
- package/cjs/Tag/Tag.js +0 -0
- 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 +0 -0
- package/cjs/TagInput/index.js +0 -0
- package/cjs/TagPicker/TagPicker.js +0 -0
- package/cjs/TagPicker/index.js +0 -0
- package/cjs/Text/Text.js +0 -0
- package/cjs/Text/index.js +0 -0
- package/cjs/TimePicker/TimePicker.js +0 -0
- package/cjs/TimePicker/index.js +0 -0
- package/cjs/TimeRangePicker/TimeRangePicker.js +0 -0
- package/cjs/TimeRangePicker/index.js +0 -0
- package/cjs/Timeline/Timeline.js +2 -2
- package/cjs/Timeline/TimelineItem.js +0 -0
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/Toggle.d.ts +9 -1
- package/cjs/Toggle/Toggle.js +12 -9
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/Tooltip.js +0 -0
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/IndentLine.js +0 -0
- package/cjs/Tree/Tree.js +0 -0
- package/cjs/Tree/TreeNode.js +0 -0
- package/cjs/Tree/TreeNodeToggle.js +0 -0
- package/cjs/Tree/TreeView.js +0 -0
- package/cjs/Tree/hooks/useFlattenTree.js +0 -0
- package/cjs/Tree/hooks/useFocusTree.js +0 -0
- 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 +18 -19
- 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 +0 -0
- 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 +0 -0
- package/cjs/Whisper/index.js +0 -0
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -6
- package/cjs/internals/Box/Box.d.ts +4 -0
- package/cjs/internals/Box/Box.js +1 -1
- package/cjs/internals/Box/index.js +0 -0
- package/cjs/internals/Box/utils.js +5 -1
- package/cjs/internals/CloseButton/CloseButton.js +0 -0
- package/cjs/internals/Disclosure/Disclosure.js +0 -0
- package/cjs/internals/Menu/Menu.js +0 -0
- package/cjs/internals/Menu/MenuItem.js +0 -0
- package/cjs/internals/Menu/Menubar.js +0 -0
- package/cjs/internals/Menu/useMenu.js +0 -0
- package/cjs/internals/Menu/useRenderMenuItem.js +0 -0
- package/cjs/internals/Overlay/Modal.d.ts +1 -1
- 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.d.ts +4 -3
- package/cjs/internals/Overlay/OverlayTrigger.js +8 -3
- 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 +7 -9
- package/cjs/internals/Picker/PickerDrawer.d.ts +8 -0
- package/cjs/internals/Picker/PickerDrawer.js +31 -0
- package/cjs/internals/Picker/PickerIndicator.js +0 -0
- package/cjs/internals/Picker/PickerPopup.js +5 -3
- package/cjs/internals/Picker/PickerToggle.d.ts +1 -0
- package/cjs/internals/Picker/PickerToggle.js +10 -3
- package/cjs/internals/Picker/PickerToggleTrigger.d.ts +51 -11
- package/cjs/internals/Picker/PickerToggleTrigger.js +59 -13
- package/cjs/internals/Picker/SelectedElement.js +0 -0
- package/cjs/internals/Picker/ToggleButton.js +0 -0
- package/cjs/internals/Picker/hooks/index.d.ts +0 -1
- package/cjs/internals/Picker/hooks/index.js +2 -4
- package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -0
- package/cjs/internals/Picker/hooks/useCombobox.js +3 -1
- package/cjs/internals/Picker/hooks/useFocusItemValue.js +0 -0
- package/cjs/internals/Picker/hooks/usePickerRef.js +0 -0
- package/cjs/internals/Picker/index.d.ts +1 -2
- package/cjs/internals/Picker/index.js +10 -12
- package/cjs/internals/Picker/types.js +0 -0
- package/cjs/internals/Plaintext/Plaintext.js +0 -0
- package/cjs/internals/Ripple/Ripple.js +0 -0
- package/{esm → cjs/internals}/SafeAnchor/SafeAnchor.d.ts +2 -2
- package/cjs/{SafeAnchor → internals/SafeAnchor}/SafeAnchor.js +3 -3
- package/cjs/{SafeAnchor → 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 +3 -4
- package/cjs/internals/Tree/utils/getPathTowardsItem.js +0 -0
- package/cjs/internals/Windowing/AutoSizer.js +0 -0
- package/cjs/internals/Windowing/List.js +0 -0
- package/cjs/internals/constants/index.js +0 -0
- package/cjs/internals/hooks/index.js +0 -0
- 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 +4 -4
- package/cjs/internals/hooks/useStyles.js +0 -0
- package/cjs/internals/hooks/useTimeout.js +0 -0
- package/cjs/internals/hooks/useToggleCaret.js +0 -0
- 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/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.js +0 -0
- package/cjs/internals/types/index.js +0 -0
- 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.js +0 -0
- 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.js +0 -0
- package/cjs/internals/utils/date/index.js +0 -0
- package/cjs/internals/utils/{dom.d.ts → html/dom.d.ts} +1 -0
- package/cjs/internals/utils/{dom.js → html/dom.js} +8 -0
- package/cjs/internals/utils/html/index.d.ts +4 -0
- package/cjs/internals/utils/html/index.js +28 -0
- package/cjs/internals/utils/{safeSetSelection.js → html/safeSetSelection.js} +1 -1
- package/cjs/internals/utils/index.d.ts +3 -15
- package/cjs/internals/utils/index.js +20 -49
- package/cjs/internals/utils/placement.js +0 -0
- package/cjs/internals/utils/{ReactChildren.d.ts → react/ReactChildren.d.ts} +2 -8
- package/cjs/internals/utils/{ReactChildren.js → react/ReactChildren.js} +5 -25
- package/cjs/internals/utils/react/ReactIs.d.ts +7 -0
- package/cjs/internals/utils/react/ReactIs.js +26 -0
- package/{esm/internals/utils → cjs/internals/utils/react}/createComponent.d.ts +2 -2
- package/cjs/internals/utils/{createComponent.js → react/createComponent.js} +3 -3
- package/cjs/internals/utils/{deprecateComponent.js → react/deprecateComponent.js} +1 -1
- package/cjs/internals/utils/{forwardRef.d.ts → react/forwardRef.d.ts} +1 -1
- package/cjs/internals/utils/{forwardRef.js → react/forwardRef.js} +0 -0
- package/cjs/internals/utils/{getDOMNode.js → react/getDOMNode.js} +0 -0
- package/cjs/internals/utils/react/index.d.ts +7 -0
- package/cjs/internals/utils/react/index.js +46 -0
- package/cjs/internals/utils/sizes.js +0 -0
- package/cjs/internals/utils/{getSafeRegExpString.js → string/getSafeRegExpString.js} +0 -0
- package/cjs/internals/utils/{getStringLength.d.ts → string/getStringLength.d.ts} +0 -1
- package/cjs/internals/utils/{getStringLength.js → string/getStringLength.js} +1 -3
- package/cjs/internals/utils/string/index.d.ts +4 -0
- package/cjs/internals/utils/string/index.js +28 -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 +2 -2
- package/cjs/locales/en_US.js +2 -2
- 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/index.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 +2 -3
- 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 +5 -1
- package/cjs/useBreakpointValue/useBreakpointValue.js +8 -3
- package/cjs/useMediaQuery/breakpoints.d.ts +24 -0
- package/cjs/useMediaQuery/breakpoints.js +248 -0
- package/cjs/useMediaQuery/index.d.ts +1 -1
- package/cjs/useMediaQuery/index.js +0 -0
- package/cjs/useMediaQuery/types.d.ts +45 -0
- package/cjs/useMediaQuery/types.js +4 -0
- package/cjs/useMediaQuery/useMediaQuery.d.ts +4 -13
- package/cjs/useMediaQuery/useMediaQuery.js +30 -12
- package/cjs/useToaster/index.js +0 -0
- package/cjs/useToaster/useToaster.d.ts +1 -1
- package/cjs/useToaster/useToaster.js +1 -1
- package/dist/rsuite-no-reset-rtl.css +477 -233
- 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 +477 -233
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +477 -233
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +477 -233
- package/dist/rsuite.js +316 -206
- 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 +0 -0
- package/esm/Accordion/AccordionPanel.js +0 -0
- package/esm/Accordion/index.js +0 -0
- package/esm/Affix/Affix.js +0 -0
- package/esm/Affix/index.js +0 -0
- package/esm/Animation/Bounce.js +0 -0
- package/esm/Animation/Collapse.js +0 -0
- package/esm/Animation/Fade.js +0 -0
- package/esm/Animation/Slide.js +0 -0
- 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 +1 -1
- package/esm/AutoComplete/AutoComplete.js +13 -11
- package/esm/AutoComplete/Combobox.js +0 -0
- package/esm/AutoComplete/index.js +0 -0
- package/esm/Avatar/Avatar.d.ts +3 -4
- package/esm/Avatar/Avatar.js +0 -0
- package/esm/Avatar/index.js +0 -0
- package/esm/AvatarGroup/AvatarGroup.js +0 -0
- package/esm/AvatarGroup/index.js +0 -0
- package/esm/Badge/Badge.js +0 -0
- package/esm/Badge/index.js +0 -0
- package/esm/Box/index.js +0 -0
- package/esm/Breadcrumb/Breadcrumb.js +3 -3
- package/esm/Breadcrumb/BreadcrumbItem.js +1 -1
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/Button.js +10 -11
- package/esm/Button/index.js +0 -0
- package/esm/ButtonGroup/ButtonGroup.js +0 -0
- package/esm/ButtonGroup/ButtonGroupContext.js +0 -0
- package/esm/ButtonGroup/index.js +0 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +0 -0
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Calendar/Calendar.js +0 -0
- package/esm/Calendar/CalendarBody.js +0 -0
- package/esm/Calendar/CalendarContainer.js +0 -0
- package/esm/Calendar/CalendarHeader.js +0 -0
- package/esm/Calendar/Grid/Grid.js +0 -0
- package/esm/Calendar/Grid/GridCell.js +0 -0
- package/esm/Calendar/Grid/GridHeaderRow.js +0 -0
- package/esm/Calendar/Grid/GridRow.js +0 -0
- package/esm/Calendar/MonthDropdown/MonthDropdown.js +0 -0
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +0 -0
- package/esm/Calendar/TimeDropdown/TimeDropdown.js +0 -0
- package/esm/Calendar/index.js +0 -0
- package/esm/Card/Card.js +0 -0
- 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 +0 -0
- package/esm/CardGroup/index.js +0 -0
- package/esm/Carousel/Carousel.js +3 -3
- package/esm/Carousel/index.js +0 -0
- package/esm/CascadeTree/CascadeTree.js +0 -0
- package/esm/CascadeTree/SearchView.js +0 -0
- package/esm/CascadeTree/TreeView.js +0 -0
- 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 +43 -46
- package/esm/Cascader/index.js +0 -0
- package/esm/Cascader/useActive.d.ts +6 -4
- package/esm/Cascader/useActive.js +10 -8
- package/esm/Center/Center.js +0 -0
- package/esm/Center/index.js +0 -0
- package/esm/CheckPicker/CheckPicker.js +39 -42
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTree/CheckTree.js +0 -0
- package/esm/CheckTree/CheckTreeNode.js +0 -0
- package/esm/CheckTree/CheckTreeView.js +0 -0
- package/esm/CheckTree/index.js +0 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +21 -23
- package/esm/CheckTreePicker/hooks/useFocusState.js +0 -0
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/Checkbox.js +0 -0
- package/esm/Checkbox/index.js +0 -0
- package/esm/CheckboxGroup/CheckboxGroup.js +0 -0
- 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 +0 -0
- 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 -4
- package/esm/CustomProvider/CustomProvider.js +0 -0
- package/esm/CustomProvider/index.js +0 -0
- package/esm/CustomProvider/types.d.ts +4 -2
- package/esm/CustomProvider/types.js +0 -0
- package/esm/CustomProvider/useCustom.js +0 -0
- package/esm/DOMHelper/index.js +0 -0
- package/esm/DateInput/DateField.js +0 -0
- package/esm/DateInput/DateInput.js +0 -0
- package/esm/DateInput/hooks/useDateInputState.js +0 -0
- 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.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +29 -26
- package/esm/DatePicker/PredefinedRanges.js +0 -0
- package/esm/DatePicker/Toolbar.js +0 -0
- package/esm/DatePicker/hooks/useFocus.js +0 -0
- package/esm/DatePicker/index.js +0 -0
- package/esm/DatePicker/types.js +0 -0
- package/esm/DatePicker/utils.d.ts +3 -3
- package/esm/DatePicker/utils.js +4 -4
- package/esm/DateRangeInput/DateRangeInput.js +0 -0
- package/esm/DateRangeInput/index.js +0 -0
- package/esm/DateRangePicker/Calendar.js +0 -0
- package/esm/DateRangePicker/DateRangePicker.js +35 -29
- package/esm/DateRangePicker/Header.js +0 -0
- package/esm/DateRangePicker/hooks/useDateDisabled.js +0 -0
- package/esm/DateRangePicker/index.js +0 -0
- package/esm/DateRangePicker/types.js +0 -0
- package/esm/Divider/Divider.js +0 -0
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/Drawer.js +0 -0
- 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 +0 -0
- package/esm/Dropdown/DropdownContext.js +0 -0
- package/esm/Dropdown/DropdownItem.js +0 -0
- package/esm/Dropdown/DropdownMenu.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/esm/Form/FormContext.js +0 -0
- package/esm/Form/hooks/useFormValidate.js +0 -0
- package/esm/Form/hooks/useSchemaModel.js +3 -55
- package/esm/Form/index.js +0 -0
- package/esm/Form/utils/constructFlatSchema.d.ts +4 -0
- package/esm/Form/utils/constructFlatSchema.js +37 -0
- package/esm/FormControl/FormControl.js +0 -0
- package/esm/FormControl/hooks/useField.js +0 -0
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControl/utils.js +0 -0
- package/esm/FormControlLabel/FormControlLabel.js +0 -0
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +0 -0
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormGroup/FormGroup.js +0 -0
- package/esm/FormGroup/index.js +0 -0
- package/esm/FormHelpText/FormHelpText.js +0 -0
- package/esm/FormHelpText/index.js +0 -0
- package/esm/FormStack/FormStack.js +0 -0
- package/esm/FormStack/index.js +0 -0
- package/esm/Grid/Col.js +0 -0
- package/esm/Grid/Grid.js +0 -0
- package/esm/Grid/Row.d.ts +2 -2
- package/esm/Grid/Row.js +2 -20
- package/esm/Grid/index.js +0 -0
- package/esm/Grid/types.d.ts +1 -0
- package/esm/Grid/types.js +0 -0
- package/esm/Grid/utils/styles.d.ts +6 -0
- package/esm/Grid/utils/styles.js +37 -0
- package/esm/Header/Header.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/Heading/Heading.js +0 -0
- 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 +0 -0
- package/esm/Highlight/index.js +0 -0
- package/esm/IconButton/IconButton.js +0 -0
- package/esm/IconButton/index.js +0 -0
- package/esm/Image/Image.js +0 -0
- package/esm/Image/ImageWrapper.js +0 -0
- package/esm/Image/index.js +0 -0
- package/esm/InlineEdit/EditableControls.js +0 -0
- package/esm/InlineEdit/InlineEdit.js +0 -0
- package/esm/InlineEdit/index.js +0 -0
- package/esm/InlineEdit/renderChildren.js +0 -0
- package/esm/Input/Input.js +0 -0
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/InputGroup.js +0 -0
- package/esm/InputGroup/InputGroupAddon.js +0 -0
- package/esm/InputGroup/InputGroupButton.js +0 -0
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/InputNumber.js +0 -0
- package/esm/InputNumber/index.js +0 -0
- package/esm/InputPicker/InputAutosize.js +0 -0
- package/esm/InputPicker/InputPicker.js +28 -29
- 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/Kbd/Kbd.js +0 -0
- package/esm/Kbd/index.js +0 -0
- package/esm/Link/ExternalLinkIcon.d.ts +3 -0
- package/esm/Link/ExternalLinkIcon.js +18 -0
- package/esm/Link/Link.d.ts +14 -0
- package/esm/Link/Link.js +47 -0
- package/esm/Link/index.d.ts +4 -0
- package/esm/Link/index.js +8 -0
- package/esm/List/List.js +6 -2
- package/esm/List/ListItem.js +0 -0
- package/esm/List/helper/useSortHelper.d.ts +7 -5
- package/esm/List/helper/useSortHelper.js +109 -16
- package/esm/List/helper/utils.js +14 -6
- package/esm/List/index.js +0 -0
- package/esm/Loader/Loader.js +0 -0
- package/esm/Loader/index.js +0 -0
- package/esm/MaskedInput/MaskedInput.js +0 -0
- 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 +0 -0
- package/esm/Message/index.js +0 -0
- package/esm/Modal/Modal.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/esm/MultiCascadeTree/SearchView.js +0 -0
- package/esm/MultiCascadeTree/TreeView.js +0 -0
- 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 +41 -44
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/AdaptiveNavItem.js +0 -0
- package/esm/Nav/Nav.js +0 -0
- package/esm/Nav/NavDropdown.js +0 -0
- package/esm/Nav/NavDropdownItem.js +0 -0
- package/esm/Nav/NavDropdownMenu.js +0 -0
- package/esm/Nav/NavDropdownToggle.js +0 -0
- package/esm/Nav/NavItem.js +1 -1
- package/esm/Nav/NavMegaMenu.js +0 -0
- package/esm/Nav/NavMenu.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/Navbar.js +0 -0
- 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 +0 -0
- package/esm/Navbar/NavbarDropdownToggle.js +0 -0
- package/esm/Navbar/NavbarItem.js +1 -1
- package/esm/Navbar/NavbarMegaMenu.js +1 -1
- package/esm/Navbar/NavbarToggle.js +0 -0
- package/esm/Navbar/index.js +0 -0
- package/esm/Notification/Notification.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Pagination/LimitPicker.js +0 -0
- package/esm/Pagination/Pagination.js +0 -0
- package/esm/Pagination/PaginationButton.js +0 -0
- package/esm/Pagination/PaginationGroup.js +0 -0
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/AccordionButton.js +0 -0
- package/esm/Panel/Panel.js +0 -0
- 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 +0 -0
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Placeholder/Placeholder.js +0 -0
- package/esm/Placeholder/PlaceholderGraph.js +0 -0
- package/esm/Placeholder/PlaceholderGrid.js +0 -0
- package/esm/Placeholder/PlaceholderParagraph.js +0 -0
- package/esm/Placeholder/index.js +0 -0
- package/esm/Popover/Popover.js +0 -0
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/Progress.js +0 -0
- package/esm/Progress/ProgressCircle.js +0 -0
- package/esm/Progress/ProgressLine.js +0 -0
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/Radio.js +0 -0
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/RadioGroup.js +0 -0
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RadioTile/RadioTile.js +0 -0
- package/esm/RadioTile/index.js +0 -0
- package/esm/RadioTileGroup/RadioTileGroup.js +0 -0
- package/esm/RadioTileGroup/index.js +0 -0
- package/esm/RangeSlider/RangeSlider.js +18 -3
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/Character.js +0 -0
- package/esm/Rate/Rate.js +0 -0
- package/esm/Rate/index.js +0 -0
- 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 +46 -47
- package/esm/SelectPicker/index.js +0 -0
- package/esm/Sidebar/Sidebar.js +0 -0
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdown.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +0 -0
- package/esm/Sidenav/Sidenav.js +0 -0
- 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 +0 -0
- 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 +1 -1
- package/esm/Sidenav/SidenavToggle.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/Graduated.d.ts +4 -0
- package/esm/Slider/Graduated.js +43 -20
- package/esm/Slider/Handle.d.ts +1 -1
- package/esm/Slider/Handle.js +12 -12
- 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 +16 -1
- package/esm/Slider/Slider.js +7 -2
- package/esm/Slider/index.js +0 -0
- package/esm/Slider/useDrag.d.ts +1 -0
- package/esm/Slider/useDrag.js +8 -3
- package/esm/Stack/HStack.js +0 -0
- package/esm/Stack/Stack.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/esm/Stat/StatValueUnit.js +0 -0
- package/esm/Stat/index.js +0 -0
- package/esm/StatGroup/StatGroup.js +0 -0
- package/esm/StatGroup/index.js +0 -0
- package/esm/Steps/StepItem.js +0 -0
- package/esm/Steps/Steps.js +3 -3
- package/esm/Steps/index.js +0 -0
- package/esm/Table/Table.js +0 -0
- 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 +3 -3
- package/esm/Tabs/index.js +0 -0
- package/esm/Tag/Tag.js +0 -0
- 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 +0 -0
- package/esm/TagInput/index.js +0 -0
- package/esm/TagPicker/TagPicker.js +0 -0
- package/esm/TagPicker/index.js +0 -0
- package/esm/Text/Text.js +0 -0
- package/esm/Text/index.js +0 -0
- package/esm/TimePicker/TimePicker.js +0 -0
- package/esm/TimePicker/index.js +0 -0
- package/esm/TimeRangePicker/TimeRangePicker.js +0 -0
- package/esm/TimeRangePicker/index.js +0 -0
- package/esm/Timeline/Timeline.js +3 -3
- package/esm/Timeline/TimelineItem.js +0 -0
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/Toggle.d.ts +9 -1
- package/esm/Toggle/Toggle.js +12 -9
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/Tooltip.js +0 -0
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/IndentLine.js +0 -0
- package/esm/Tree/Tree.js +0 -0
- package/esm/Tree/TreeNode.js +0 -0
- package/esm/Tree/TreeNodeToggle.js +0 -0
- package/esm/Tree/TreeView.js +0 -0
- package/esm/Tree/hooks/useFlattenTree.js +0 -0
- package/esm/Tree/hooks/useFocusTree.js +0 -0
- 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 +19 -20
- 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 +0 -0
- 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 +0 -0
- package/esm/Whisper/index.js +0 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/Box/Box.d.ts +4 -0
- package/esm/internals/Box/Box.js +1 -1
- package/esm/internals/Box/index.js +0 -0
- package/esm/internals/Box/utils.js +5 -1
- package/esm/internals/CloseButton/CloseButton.js +0 -0
- package/esm/internals/Disclosure/Disclosure.js +0 -0
- package/esm/internals/Menu/Menu.js +0 -0
- package/esm/internals/Menu/MenuItem.js +0 -0
- package/esm/internals/Menu/Menubar.js +0 -0
- package/esm/internals/Menu/useMenu.js +0 -0
- package/esm/internals/Menu/useRenderMenuItem.js +0 -0
- package/esm/internals/Overlay/Modal.d.ts +1 -1
- 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.d.ts +4 -3
- package/esm/internals/Overlay/OverlayTrigger.js +8 -2
- 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 +8 -10
- package/esm/internals/Picker/PickerDrawer.d.ts +8 -0
- package/esm/internals/Picker/PickerDrawer.js +26 -0
- package/esm/internals/Picker/PickerIndicator.js +0 -0
- package/esm/internals/Picker/PickerPopup.js +5 -3
- package/esm/internals/Picker/PickerToggle.d.ts +1 -0
- package/esm/internals/Picker/PickerToggle.js +10 -3
- package/esm/internals/Picker/PickerToggleTrigger.d.ts +51 -11
- package/esm/internals/Picker/PickerToggleTrigger.js +59 -12
- package/esm/internals/Picker/SelectedElement.js +0 -0
- package/esm/internals/Picker/ToggleButton.js +0 -0
- package/esm/internals/Picker/hooks/index.d.ts +0 -1
- package/esm/internals/Picker/hooks/index.js +1 -2
- package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -0
- package/esm/internals/Picker/hooks/useCombobox.js +3 -1
- package/esm/internals/Picker/hooks/useFocusItemValue.js +0 -0
- package/esm/internals/Picker/hooks/usePickerRef.js +0 -0
- package/esm/internals/Picker/index.d.ts +1 -2
- package/esm/internals/Picker/index.js +1 -2
- package/esm/internals/Picker/types.js +0 -0
- package/esm/internals/Plaintext/Plaintext.js +0 -0
- package/esm/internals/Ripple/Ripple.js +0 -0
- package/{cjs → esm/internals}/SafeAnchor/SafeAnchor.d.ts +2 -2
- package/esm/{SafeAnchor → internals/SafeAnchor}/SafeAnchor.js +3 -3
- package/esm/{SafeAnchor → 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 +4 -5
- package/esm/internals/Tree/utils/getPathTowardsItem.js +0 -0
- package/esm/internals/Windowing/AutoSizer.js +0 -0
- package/esm/internals/Windowing/List.js +0 -0
- package/esm/internals/constants/index.js +0 -0
- package/esm/internals/hooks/index.js +0 -0
- 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 +1 -1
- package/esm/internals/hooks/useStyles.js +0 -0
- package/esm/internals/hooks/useTimeout.js +0 -0
- package/esm/internals/hooks/useToggleCaret.js +0 -0
- 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/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.js +0 -0
- package/esm/internals/types/index.js +0 -0
- 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.js +0 -0
- 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.js +0 -0
- package/esm/internals/utils/date/index.js +0 -0
- package/esm/internals/utils/{dom.d.ts → html/dom.d.ts} +1 -0
- package/esm/internals/utils/{dom.js → html/dom.js} +7 -0
- package/esm/internals/utils/html/index.d.ts +4 -0
- package/esm/internals/utils/html/index.js +5 -0
- package/esm/internals/utils/{safeSetSelection.js → html/safeSetSelection.js} +1 -1
- package/esm/internals/utils/index.d.ts +3 -15
- package/esm/internals/utils/index.js +3 -14
- package/esm/internals/utils/placement.js +0 -0
- package/esm/internals/utils/{ReactChildren.d.ts → react/ReactChildren.d.ts} +2 -8
- package/esm/internals/utils/{ReactChildren.js → react/ReactChildren.js} +3 -21
- package/esm/internals/utils/react/ReactIs.d.ts +7 -0
- package/esm/internals/utils/react/ReactIs.js +22 -0
- package/{cjs/internals/utils → esm/internals/utils/react}/createComponent.d.ts +2 -2
- package/esm/internals/utils/{createComponent.js → react/createComponent.js} +3 -3
- package/esm/internals/utils/{deprecateComponent.js → react/deprecateComponent.js} +1 -1
- package/esm/internals/utils/{forwardRef.d.ts → react/forwardRef.d.ts} +1 -1
- package/esm/internals/utils/{forwardRef.js → react/forwardRef.js} +0 -0
- package/esm/internals/utils/{getDOMNode.js → react/getDOMNode.js} +0 -0
- package/esm/internals/utils/react/index.d.ts +7 -0
- package/esm/internals/utils/react/index.js +8 -0
- package/esm/internals/utils/sizes.js +0 -0
- package/esm/internals/utils/{getSafeRegExpString.js → string/getSafeRegExpString.js} +0 -0
- package/esm/internals/utils/{getStringLength.d.ts → string/getStringLength.d.ts} +0 -1
- package/esm/internals/utils/{getStringLength.js → string/getStringLength.js} +1 -2
- package/esm/internals/utils/string/index.d.ts +4 -0
- package/esm/internals/utils/string/index.js +5 -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 +2 -2
- package/esm/locales/en_US.js +2 -2
- 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/index.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 +1 -1
- 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 +5 -1
- package/esm/useBreakpointValue/useBreakpointValue.js +8 -3
- package/esm/useMediaQuery/breakpoints.d.ts +24 -0
- package/esm/useMediaQuery/breakpoints.js +244 -0
- package/esm/useMediaQuery/index.d.ts +1 -1
- package/esm/useMediaQuery/index.js +0 -0
- package/esm/useMediaQuery/types.d.ts +45 -0
- package/esm/useMediaQuery/types.js +2 -0
- package/esm/useMediaQuery/useMediaQuery.d.ts +4 -13
- package/esm/useMediaQuery/useMediaQuery.js +29 -11
- package/esm/useToaster/index.js +0 -0
- package/esm/useToaster/useToaster.d.ts +1 -1
- package/esm/useToaster/useToaster.js +1 -1
- package/internals/Box/styles/index.less +4 -0
- package/internals/Picker/styles/index.less +105 -23
- package/internals/Picker/styles/mixin.less +6 -6
- package/internals/Ripple/styles/index.less +0 -0
- package/internals/ScrollView/styles/index.less +0 -0
- package/package.json +2 -2
- package/styles/color-modes/dark.less +1 -1
- package/styles/color-modes/high-contrast.less +0 -0
- package/styles/color-modes/light.less +1 -1
- package/styles/common.less +0 -0
- package/styles/index.less +1 -0
- 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 +0 -0
- package/styles/normalize.less +0 -0
- package/styles/root.less +2 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/styles/variables.less +0 -24
- package/toaster/styles/index.css +0 -0
- package/toaster/styles/index.less +0 -0
- package/SafeAnchor/package.json +0 -7
- package/cjs/Form/hooks/useFormClassNames.d.ts +0 -5
- package/cjs/Form/hooks/useFormClassNames.js +0 -29
- package/cjs/internals/Picker/hooks/usePickerClassName.d.ts +0 -19
- package/cjs/internals/Picker/hooks/usePickerClassName.js +0 -45
- package/esm/Form/hooks/useFormClassNames.d.ts +0 -5
- package/esm/Form/hooks/useFormClassNames.js +0 -25
- package/esm/internals/Picker/hooks/usePickerClassName.d.ts +0 -19
- package/esm/internals/Picker/hooks/usePickerClassName.js +0 -40
- /package/cjs/{SafeAnchor → internals/SafeAnchor}/index.d.ts +0 -0
- /package/cjs/internals/utils/{events.d.ts → html/events.d.ts} +0 -0
- /package/cjs/internals/utils/{events.js → html/events.js} +0 -0
- /package/cjs/internals/utils/{htmlPropsUtils.d.ts → html/htmlPropsUtils.d.ts} +0 -0
- /package/cjs/internals/utils/{htmlPropsUtils.js → html/htmlPropsUtils.js} +0 -0
- /package/cjs/internals/utils/{safeSetSelection.d.ts → html/safeSetSelection.d.ts} +0 -0
- /package/cjs/internals/utils/{deprecateComponent.d.ts → react/deprecateComponent.d.ts} +0 -0
- /package/cjs/internals/utils/{getDOMNode.d.ts → react/getDOMNode.d.ts} +0 -0
- /package/cjs/internals/utils/{mergeRefs.d.ts → react/mergeRefs.d.ts} +0 -0
- /package/cjs/internals/utils/{mergeRefs.js → react/mergeRefs.js} +0 -0
- /package/cjs/internals/utils/{getSafeRegExpString.d.ts → string/getSafeRegExpString.d.ts} +0 -0
- /package/cjs/internals/utils/{stringifyReactNode.d.ts → string/stringifyReactNode.d.ts} +0 -0
- /package/cjs/internals/utils/{stringifyReactNode.js → string/stringifyReactNode.js} +0 -0
- /package/cjs/internals/utils/{tplTransform.d.ts → string/tplTransform.d.ts} +0 -0
- /package/cjs/internals/utils/{tplTransform.js → string/tplTransform.js} +0 -0
- /package/esm/{SafeAnchor → internals/SafeAnchor}/index.d.ts +0 -0
- /package/esm/internals/utils/{events.d.ts → html/events.d.ts} +0 -0
- /package/esm/internals/utils/{events.js → html/events.js} +0 -0
- /package/esm/internals/utils/{htmlPropsUtils.d.ts → html/htmlPropsUtils.d.ts} +0 -0
- /package/esm/internals/utils/{htmlPropsUtils.js → html/htmlPropsUtils.js} +0 -0
- /package/esm/internals/utils/{safeSetSelection.d.ts → html/safeSetSelection.d.ts} +0 -0
- /package/esm/internals/utils/{deprecateComponent.d.ts → react/deprecateComponent.d.ts} +0 -0
- /package/esm/internals/utils/{getDOMNode.d.ts → react/getDOMNode.d.ts} +0 -0
- /package/esm/internals/utils/{mergeRefs.d.ts → react/mergeRefs.d.ts} +0 -0
- /package/esm/internals/utils/{mergeRefs.js → react/mergeRefs.js} +0 -0
- /package/esm/internals/utils/{getSafeRegExpString.d.ts → string/getSafeRegExpString.d.ts} +0 -0
- /package/esm/internals/utils/{stringifyReactNode.d.ts → string/stringifyReactNode.d.ts} +0 -0
- /package/esm/internals/utils/{stringifyReactNode.js → string/stringifyReactNode.js} +0 -0
- /package/esm/internals/utils/{tplTransform.d.ts → string/tplTransform.d.ts} +0 -0
- /package/esm/internals/utils/{tplTransform.js → string/tplTransform.js} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
export * from "./getDOMNode.js";
|
|
3
|
+
export * from "./ReactChildren.js";
|
|
4
|
+
export * from "./deprecateComponent.js";
|
|
5
|
+
export * from "./createComponent.js";
|
|
6
|
+
export * from "./forwardRef.js";
|
|
7
|
+
export * from "./mergeRefs.js";
|
|
8
|
+
export * from "./ReactIs.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/locales/ar_EG.js
CHANGED
|
File without changes
|
package/esm/locales/ca_ES.js
CHANGED
|
File without changes
|
package/esm/locales/cs_CZ.js
CHANGED
|
File without changes
|
package/esm/locales/da_DK.js
CHANGED
|
File without changes
|
package/esm/locales/de_DE.js
CHANGED
|
File without changes
|
package/esm/locales/en_GB.js
CHANGED
package/esm/locales/en_US.js
CHANGED
package/esm/locales/es_AR.js
CHANGED
|
File without changes
|
package/esm/locales/es_ES.js
CHANGED
|
File without changes
|
package/esm/locales/fa_IR.js
CHANGED
|
File without changes
|
package/esm/locales/fi_FI.js
CHANGED
|
File without changes
|
package/esm/locales/fr_FR.js
CHANGED
|
File without changes
|
package/esm/locales/hu_HU.js
CHANGED
|
File without changes
|
package/esm/locales/index.js
CHANGED
|
File without changes
|
package/esm/locales/it_IT.js
CHANGED
|
File without changes
|
package/esm/locales/ja_JP.js
CHANGED
|
File without changes
|
package/esm/locales/kk_KZ.js
CHANGED
|
File without changes
|
package/esm/locales/ko_KR.js
CHANGED
|
File without changes
|
package/esm/locales/ne_NP.js
CHANGED
|
File without changes
|
package/esm/locales/nl_NL.js
CHANGED
|
File without changes
|
package/esm/locales/pl_PL.js
CHANGED
package/esm/locales/pt_BR.js
CHANGED
|
File without changes
|
package/esm/locales/ru_RU.js
CHANGED
|
File without changes
|
package/esm/locales/sv_SE.js
CHANGED
|
File without changes
|
package/esm/locales/tr_TR.js
CHANGED
|
File without changes
|
package/esm/locales/zh_CN.js
CHANGED
|
File without changes
|
package/esm/locales/zh_TW.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/toaster/index.js
CHANGED
|
File without changes
|
package/esm/toaster/render.js
CHANGED
|
File without changes
|
package/esm/toaster/toaster.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,11 @@ interface UseBreakpointValueOptions<T = any> {
|
|
|
3
3
|
/**
|
|
4
4
|
* The default value to return if no screen size matches.
|
|
5
5
|
*/
|
|
6
|
-
defaultValue
|
|
6
|
+
defaultValue?: T;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to enable the media query, defaults to true
|
|
9
|
+
*/
|
|
10
|
+
enabled?: boolean;
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* A React Hook that returns different values based on different screen sizes in responsive design.
|
|
@@ -15,12 +15,17 @@ import useMediaQuery from "../useMediaQuery/index.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export function useBreakpointValue(breakpoints, options) {
|
|
17
17
|
const {
|
|
18
|
-
defaultValue
|
|
18
|
+
defaultValue,
|
|
19
|
+
enabled = true
|
|
19
20
|
} = options || {};
|
|
20
21
|
const keys = Object.keys(breakpoints);
|
|
21
22
|
const values = Object.values(breakpoints);
|
|
22
|
-
const matches = useMediaQuery(keys);
|
|
23
|
-
|
|
23
|
+
const matches = useMediaQuery(keys, enabled);
|
|
24
|
+
|
|
25
|
+
// Use lastIndexOf instead of indexOf to return the value of the last matching breakpoint
|
|
26
|
+
// Due to how media queries work, multiple breakpoints may match simultaneously on larger screens
|
|
27
|
+
// Using lastIndexOf ensures we return the value for the largest matching breakpoint
|
|
28
|
+
const index = matches.lastIndexOf(true);
|
|
24
29
|
return index !== -1 ? values[index] : defaultValue;
|
|
25
30
|
}
|
|
26
31
|
export default useBreakpointValue;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BreakpointMap, BreakpointSystem } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Create breakpoint system
|
|
4
|
+
*
|
|
5
|
+
* This function takes a breakpoint map and returns an enhanced breakpoint system
|
|
6
|
+
* that provides various media queries for responsive design.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const breakpoints = createBreakpoints({
|
|
11
|
+
* xs: '0px',
|
|
12
|
+
* sm: '576px',
|
|
13
|
+
* md: '768px',
|
|
14
|
+
* lg: '992px',
|
|
15
|
+
* xl: '1200px'
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* // Using breakpoints
|
|
19
|
+
* breakpoints.up('md'); // '(min-width: 768px)'
|
|
20
|
+
* breakpoints.down('lg'); // '(max-width: 991.99px)'
|
|
21
|
+
* breakpoints.between('sm', 'lg'); // '(min-width: 576px) and (max-width: 991.99px)'
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function createBreakpoints(breakpoints: BreakpointMap): BreakpointSystem;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
/**
|
|
3
|
+
* Capitalize the first letter of a string
|
|
4
|
+
*/
|
|
5
|
+
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1);
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Adjust max-width value to avoid breakpoint overlapping
|
|
9
|
+
*/
|
|
10
|
+
function adjustMaxWidth(value) {
|
|
11
|
+
// Extract numeric part and unit
|
|
12
|
+
const match = value.match(/^([\d.]+)(\w+)$/);
|
|
13
|
+
if (!match) return value;
|
|
14
|
+
const [, numStr, unit] = match;
|
|
15
|
+
const num = parseFloat(numStr);
|
|
16
|
+
|
|
17
|
+
// If value is 0, don't adjust
|
|
18
|
+
if (num === 0) return value;
|
|
19
|
+
|
|
20
|
+
// Subtract a small value to avoid overlap
|
|
21
|
+
const adjustedNum = num - 0.01;
|
|
22
|
+
return `${adjustedNum}${unit}`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Create media query string
|
|
27
|
+
*/
|
|
28
|
+
function createMediaQuery(options) {
|
|
29
|
+
const {
|
|
30
|
+
min,
|
|
31
|
+
max
|
|
32
|
+
} = options;
|
|
33
|
+
if (!min && !max) return '';
|
|
34
|
+
const conditions = [];
|
|
35
|
+
if (min) conditions.push(`(min-width: ${min})`);
|
|
36
|
+
if (max) conditions.push(`(max-width: ${max})`);
|
|
37
|
+
return conditions.join(' and ');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Create traditional media query map compatible with previous versions
|
|
42
|
+
*/
|
|
43
|
+
function createLegacyMediaQueryMap(breakpoints) {
|
|
44
|
+
const entries = Object.entries(breakpoints);
|
|
45
|
+
const result = {};
|
|
46
|
+
|
|
47
|
+
// Special case for xs
|
|
48
|
+
const xsValue = breakpoints.xs;
|
|
49
|
+
if (xsValue) {
|
|
50
|
+
// For xs, use max-width of the next breakpoint minus 0.01
|
|
51
|
+
const nextBreakpoint = entries.find(_ref => {
|
|
52
|
+
let [key] = _ref;
|
|
53
|
+
return key === 'sm';
|
|
54
|
+
});
|
|
55
|
+
if (nextBreakpoint) {
|
|
56
|
+
result.xs = `(max-width: ${adjustMaxWidth(nextBreakpoint[1])})`;
|
|
57
|
+
} else {
|
|
58
|
+
result.xs = `(min-width: ${xsValue})`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// For all other breakpoints, use min-width
|
|
63
|
+
entries.forEach(_ref2 => {
|
|
64
|
+
let [key, value] = _ref2;
|
|
65
|
+
if (key !== 'xs') {
|
|
66
|
+
result[key] = `(min-width: ${value})`;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Create breakpoint system
|
|
74
|
+
*
|
|
75
|
+
* This function takes a breakpoint map and returns an enhanced breakpoint system
|
|
76
|
+
* that provides various media queries for responsive design.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const breakpoints = createBreakpoints({
|
|
81
|
+
* xs: '0px',
|
|
82
|
+
* sm: '576px',
|
|
83
|
+
* md: '768px',
|
|
84
|
+
* lg: '992px',
|
|
85
|
+
* xl: '1200px'
|
|
86
|
+
* });
|
|
87
|
+
*
|
|
88
|
+
* // Using breakpoints
|
|
89
|
+
* breakpoints.up('md'); // '(min-width: 768px)'
|
|
90
|
+
* breakpoints.down('lg'); // '(max-width: 991.99px)'
|
|
91
|
+
* breakpoints.between('sm', 'lg'); // '(min-width: 576px) and (max-width: 991.99px)'
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export function createBreakpoints(breakpoints) {
|
|
95
|
+
// Sort breakpoints by value
|
|
96
|
+
const sortedEntries = Object.entries(breakpoints).sort((a, b) => {
|
|
97
|
+
const valueA = parseInt(a[1].replace(/[^\d]/g, ''), 10);
|
|
98
|
+
const valueB = parseInt(b[1].replace(/[^\d]/g, ''), 10);
|
|
99
|
+
return valueA - valueB;
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Create breakpoint entries with min and max values
|
|
103
|
+
const breakpointEntries = sortedEntries.map((_ref3, index) => {
|
|
104
|
+
let [name, value] = _ref3;
|
|
105
|
+
let max = null;
|
|
106
|
+
|
|
107
|
+
// If not the last breakpoint, use the next breakpoint's value minus 0.01 as the current max
|
|
108
|
+
if (index < sortedEntries.length - 1) {
|
|
109
|
+
max = adjustMaxWidth(sortedEntries[index + 1][1]);
|
|
110
|
+
}
|
|
111
|
+
return [name, {
|
|
112
|
+
name,
|
|
113
|
+
min: value,
|
|
114
|
+
max
|
|
115
|
+
}];
|
|
116
|
+
});
|
|
117
|
+
const entries = Object.fromEntries(breakpointEntries);
|
|
118
|
+
|
|
119
|
+
// Get breakpoint entry by name
|
|
120
|
+
function getEntry(name) {
|
|
121
|
+
return entries[name];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Generate all possible breakpoint conditions
|
|
125
|
+
function generateConditions() {
|
|
126
|
+
const conditions = {};
|
|
127
|
+
const breakpointNames = Object.keys(entries);
|
|
128
|
+
|
|
129
|
+
// Create basic conditions for each breakpoint
|
|
130
|
+
breakpointNames.forEach(name => {
|
|
131
|
+
const entry = getEntry(name);
|
|
132
|
+
|
|
133
|
+
// Up condition (min-width)
|
|
134
|
+
conditions[name] = createMediaQuery({
|
|
135
|
+
min: entry.min === null ? undefined : entry.min
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// Down condition (max-width)
|
|
139
|
+
conditions[`${name}Down`] = createMediaQuery({
|
|
140
|
+
max: entry.min !== null ? entry.min === '0px' ? entry.min : adjustMaxWidth(entry.min) : undefined
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// Only condition (min-width and max-width)
|
|
144
|
+
conditions[`${name}Only`] = createMediaQuery({
|
|
145
|
+
min: entry.min === null ? undefined : entry.min,
|
|
146
|
+
max: entry.max === null ? undefined : entry.max
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
// Create range conditions
|
|
151
|
+
for (let i = 0; i < breakpointNames.length; i++) {
|
|
152
|
+
for (let j = i + 1; j < breakpointNames.length; j++) {
|
|
153
|
+
const minName = breakpointNames[i];
|
|
154
|
+
const maxName = breakpointNames[j];
|
|
155
|
+
const minEntry = getEntry(minName);
|
|
156
|
+
const maxEntry = getEntry(maxName);
|
|
157
|
+
conditions[`${minName}To${capitalize(maxName)}`] = createMediaQuery({
|
|
158
|
+
min: minEntry.min === null ? undefined : minEntry.min,
|
|
159
|
+
max: maxEntry.min !== null ? maxEntry.min === '0px' ? maxEntry.min : adjustMaxWidth(maxEntry.min) : undefined
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return conditions;
|
|
164
|
+
}
|
|
165
|
+
const conditions = generateConditions();
|
|
166
|
+
|
|
167
|
+
// Create legacy media query map for backward compatibility
|
|
168
|
+
const legacyMap = createLegacyMediaQueryMap(breakpoints);
|
|
169
|
+
|
|
170
|
+
// Get condition by key
|
|
171
|
+
function getCondition(key) {
|
|
172
|
+
return conditions[key] || '';
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Get all breakpoint keys
|
|
176
|
+
function keys() {
|
|
177
|
+
return ['base', ...Object.keys(entries)];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Create up media query (min-width)
|
|
181
|
+
function up(name) {
|
|
182
|
+
const entry = getEntry(name);
|
|
183
|
+
return createMediaQuery({
|
|
184
|
+
min: entry.min === null ? undefined : entry.min
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Create down media query (max-width)
|
|
189
|
+
function down(name) {
|
|
190
|
+
const entry = getEntry(name);
|
|
191
|
+
return createMediaQuery({
|
|
192
|
+
max: entry.min !== null ? entry.min === '0px' ? entry.min : adjustMaxWidth(entry.min) : undefined
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Create only media query (min-width and max-width)
|
|
197
|
+
function only(name) {
|
|
198
|
+
const entry = getEntry(name);
|
|
199
|
+
return createMediaQuery({
|
|
200
|
+
min: entry.min === null ? undefined : entry.min,
|
|
201
|
+
max: entry.max === null ? undefined : entry.max
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Create between media query
|
|
206
|
+
function between(minName, maxName) {
|
|
207
|
+
const minEntry = getEntry(minName);
|
|
208
|
+
const maxEntry = getEntry(maxName);
|
|
209
|
+
return createMediaQuery({
|
|
210
|
+
min: minEntry.min === null ? undefined : minEntry.min,
|
|
211
|
+
max: maxEntry.min !== null ? maxEntry.min === '0px' ? maxEntry.min : adjustMaxWidth(maxEntry.min) : undefined
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Create a combined media query map that merges legacy map with enhanced conditions
|
|
216
|
+
function createMediaQueryMap() {
|
|
217
|
+
// Start with legacy map for backward compatibility
|
|
218
|
+
const mediaQueryMap = {
|
|
219
|
+
...legacyMap
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// Add enhanced conditions, excluding any keys that would override legacy map
|
|
223
|
+
const breakpointKeys = Object.keys(legacyMap);
|
|
224
|
+
Object.entries(conditions).forEach(_ref4 => {
|
|
225
|
+
let [key, value] = _ref4;
|
|
226
|
+
if (!breakpointKeys.includes(key)) {
|
|
227
|
+
mediaQueryMap[key] = value;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
return mediaQueryMap;
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
values: Object.values(entries),
|
|
234
|
+
only,
|
|
235
|
+
keys,
|
|
236
|
+
conditions,
|
|
237
|
+
getCondition,
|
|
238
|
+
up,
|
|
239
|
+
down,
|
|
240
|
+
between,
|
|
241
|
+
legacyMap,
|
|
242
|
+
createMediaQueryMap
|
|
243
|
+
};
|
|
244
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoint map with breakpoint names as keys and size values as values
|
|
3
|
+
*/
|
|
4
|
+
export interface BreakpointMap {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Media query map with breakpoint names as keys and media query strings as values
|
|
9
|
+
*/
|
|
10
|
+
export interface MediaQueryMap {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The type of the query parameter.
|
|
15
|
+
*/
|
|
16
|
+
export type Query = string;
|
|
17
|
+
/**
|
|
18
|
+
* Breakpoint entry with name, min and max values
|
|
19
|
+
*/
|
|
20
|
+
export interface BreakpointEntry {
|
|
21
|
+
name: string;
|
|
22
|
+
min: string | null;
|
|
23
|
+
max: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Map of breakpoint condition names to media query strings
|
|
27
|
+
*/
|
|
28
|
+
export interface BreakpointConditions {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Result of createBreakpoints function
|
|
33
|
+
*/
|
|
34
|
+
export interface BreakpointSystem {
|
|
35
|
+
values: BreakpointEntry[];
|
|
36
|
+
only: (name: string) => string;
|
|
37
|
+
keys: () => string[];
|
|
38
|
+
conditions: BreakpointConditions;
|
|
39
|
+
getCondition: (key: string) => string;
|
|
40
|
+
up: (name: string) => string;
|
|
41
|
+
down: (name: string) => string;
|
|
42
|
+
between: (minName: string, maxName: string) => string;
|
|
43
|
+
legacyMap: MediaQueryMap;
|
|
44
|
+
createMediaQueryMap: () => MediaQueryMap;
|
|
45
|
+
}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
xs: string;
|
|
3
|
-
sm: string;
|
|
4
|
-
md: string;
|
|
5
|
-
lg: string;
|
|
6
|
-
xl: string;
|
|
7
|
-
xxl: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The type of the query parameter.
|
|
11
|
-
*/
|
|
12
|
-
export type Query = string | keyof typeof mediaQuerySizeMap;
|
|
1
|
+
import type { Query } from './types';
|
|
13
2
|
/**
|
|
14
3
|
* React hook that tracks state of a CSS media query
|
|
15
4
|
* @version 5.48.0
|
|
16
5
|
* @unstable Please note that this API is not stable and may change in the future.
|
|
17
6
|
* @see https://rsuitejs.com/components/use-media-query
|
|
7
|
+
* @param query - The media query string or array of query strings
|
|
8
|
+
* @param enabled - Whether to enable the media query, defaults to true
|
|
18
9
|
*/
|
|
19
|
-
export declare function useMediaQuery(query: Query | Query[]): boolean[];
|
|
10
|
+
export declare function useMediaQuery(query: Query | Query[], enabled?: boolean): boolean[];
|
|
20
11
|
export default useMediaQuery;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
|
|
3
2
|
import canUseDOM from 'dom-lib/canUseDOM';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
|
|
4
|
+
import { createBreakpoints } from "./breakpoints.js";
|
|
5
|
+
// Basic breakpoint values definition
|
|
6
|
+
const breakpointValues = {
|
|
7
|
+
xs: '0px',
|
|
8
|
+
sm: '576px',
|
|
9
|
+
md: '768px',
|
|
10
|
+
lg: '992px',
|
|
11
|
+
xl: '1200px',
|
|
12
|
+
xxl: '1400px',
|
|
13
|
+
'2xl': '1400px'
|
|
11
14
|
};
|
|
12
15
|
|
|
16
|
+
// Create enhanced breakpoint system
|
|
17
|
+
const breakpointSystem = createBreakpoints(breakpointValues);
|
|
18
|
+
|
|
19
|
+
// Create media query map that combines legacy breakpoints with enhanced conditions
|
|
20
|
+
const mediaQuerySizeMap = breakpointSystem.createMediaQueryMap();
|
|
21
|
+
|
|
13
22
|
/**
|
|
14
|
-
*
|
|
23
|
+
* Create a MediaQueryList object or a mock for server-side rendering
|
|
15
24
|
*/
|
|
16
|
-
|
|
17
25
|
const matchMedia = query => {
|
|
18
26
|
if (canUseDOM) {
|
|
19
27
|
return window.matchMedia(query);
|
|
@@ -29,10 +37,20 @@ const matchMedia = query => {
|
|
|
29
37
|
* @version 5.48.0
|
|
30
38
|
* @unstable Please note that this API is not stable and may change in the future.
|
|
31
39
|
* @see https://rsuitejs.com/components/use-media-query
|
|
40
|
+
* @param query - The media query string or array of query strings
|
|
41
|
+
* @param enabled - Whether to enable the media query, defaults to true
|
|
32
42
|
*/
|
|
33
|
-
export function useMediaQuery(query) {
|
|
43
|
+
export function useMediaQuery(query, enabled) {
|
|
44
|
+
if (enabled === void 0) {
|
|
45
|
+
enabled = true;
|
|
46
|
+
}
|
|
34
47
|
const queries = Array.isArray(query) ? query : [query];
|
|
35
48
|
const mediaQueries = useMemo(() => queries.map(query => mediaQuerySizeMap[query] || query), [...queries]);
|
|
49
|
+
|
|
50
|
+
// If not enabled, we don't need to set up any media queries
|
|
51
|
+
if (!enabled) {
|
|
52
|
+
return queries.map(() => false);
|
|
53
|
+
}
|
|
36
54
|
const mediaQueryArray = useRef(mediaQueries.map(query => matchMedia(query).matches));
|
|
37
55
|
const subscribe = useCallback(callback => {
|
|
38
56
|
const list = mediaQueries.map(query => matchMedia(query));
|
package/esm/useToaster/index.js
CHANGED
|
File without changes
|
|
@@ -5,7 +5,7 @@ import { ToastContainerProps } from '../toaster/ToastContainer';
|
|
|
5
5
|
* It is often used with the Message and Notification components.
|
|
6
6
|
* @returns toaster { push, remove, clear }
|
|
7
7
|
*
|
|
8
|
-
* @see https://rsuitejs.com/components/
|
|
8
|
+
* @see https://rsuitejs.com/components/toaster/
|
|
9
9
|
*/
|
|
10
10
|
declare const useToaster: () => {
|
|
11
11
|
/**
|
|
@@ -9,7 +9,7 @@ import { CustomContext } from "../CustomProvider/CustomProvider.js";
|
|
|
9
9
|
* It is often used with the Message and Notification components.
|
|
10
10
|
* @returns toaster { push, remove, clear }
|
|
11
11
|
*
|
|
12
|
-
* @see https://rsuitejs.com/components/
|
|
12
|
+
* @see https://rsuitejs.com/components/toaster/
|
|
13
13
|
*/
|
|
14
14
|
const useToaster = () => {
|
|
15
15
|
const {
|