rsuite 6.0.0-canary-20250315 → 6.0.0-canary-20250319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/styles/index.css +2 -1
- package/AutoComplete/styles/index.css +2 -1
- package/Box/styles/index.css +40 -40
- package/ButtonToolbar/styles/index.css +4 -0
- package/ButtonToolbar/styles/index.less +5 -0
- package/Card/styles/index.css +2 -1
- package/Cascader/styles/index.css +2 -1
- package/CheckPicker/styles/index.css +2 -1
- package/CheckTree/styles/index.css +4 -3
- package/CheckTree/styles/index.less +1 -1
- package/CheckTreePicker/styles/index.css +4 -3
- package/DatePicker/styles/index.css +2 -1
- package/DateRangePicker/styles/index.css +2 -1
- package/Drawer/styles/index.css +2 -1
- package/Dropdown/styles/index.css +2 -1
- package/InlineEdit/styles/index.css +2 -1
- package/InputPicker/styles/index.css +2 -1
- package/List/styles/index.css +2 -1
- package/Modal/styles/index.css +2 -1
- package/MultiCascadeTree/styles/index.css +2 -1
- package/MultiCascader/styles/index.css +2 -1
- package/Nav/styles/index.css +3 -2
- package/Navbar/styles/index.css +2 -1
- package/Notification/styles/index.css +2 -1
- package/Pagination/styles/index.css +2 -1
- package/Panel/styles/index.css +2 -1
- package/RadioTile/styles/index.css +4 -0
- package/RadioTile/styles/index.less +4 -1
- package/SelectPicker/styles/index.css +2 -1
- package/Sidebar/styles/index.css +4 -0
- package/Sidebar/styles/index.less +8 -1
- package/Tabs/styles/index.css +3 -2
- package/TagInput/styles/index.css +2 -1
- package/TagPicker/styles/index.css +2 -1
- package/Text/styles/index.css +12 -31
- package/Text/styles/index.less +5 -7
- package/TimePicker/styles/index.css +2 -1
- package/TimeRangePicker/styles/index.css +2 -1
- package/Tree/styles/indent-line.less +1 -1
- package/Tree/styles/index.css +4 -3
- package/TreePicker/styles/index.css +4 -3
- package/cjs/Affix/Affix.d.ts +3 -2
- package/cjs/Affix/Affix.js +5 -2
- package/cjs/AutoComplete/AutoComplete.d.ts +3 -2
- package/cjs/AutoComplete/AutoComplete.js +4 -2
- package/cjs/Avatar/Avatar.d.ts +3 -2
- package/cjs/AvatarGroup/AvatarGroup.d.ts +3 -2
- package/cjs/AvatarGroup/AvatarGroup.js +4 -2
- package/cjs/Badge/Badge.d.ts +3 -2
- package/cjs/Badge/Badge.js +6 -3
- package/cjs/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/cjs/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/cjs/Breadcrumb/BreadcrumbItem.js +4 -2
- package/cjs/Button/Button.d.ts +3 -2
- package/cjs/Button/Button.js +8 -14
- package/cjs/ButtonGroup/ButtonGroup.d.ts +3 -2
- package/cjs/ButtonGroup/ButtonGroup.js +5 -2
- package/cjs/ButtonToolbar/ButtonToolbar.d.ts +1 -2
- package/cjs/ButtonToolbar/ButtonToolbar.js +4 -7
- package/cjs/Calendar/Calendar.d.ts +2 -2
- package/cjs/Calendar/Calendar.js +7 -6
- package/cjs/Card/Card.d.ts +5 -14
- package/cjs/Card/Card.js +4 -2
- package/cjs/Card/CardBody.d.ts +1 -4
- package/cjs/Card/CardBody.js +0 -0
- package/cjs/Card/CardFooter.d.ts +1 -4
- package/cjs/Card/CardFooter.js +0 -0
- package/cjs/Card/CardHeader.d.ts +1 -4
- package/cjs/Card/CardHeader.js +0 -0
- package/cjs/CardGroup/CardGroup.d.ts +2 -2
- package/cjs/CardGroup/CardGroup.js +4 -2
- package/cjs/Carousel/Carousel.d.ts +2 -2
- package/cjs/Carousel/Carousel.js +5 -2
- package/cjs/CascadeTree/CascadeTree.js +4 -2
- package/cjs/CascadeTree/types.d.ts +3 -2
- package/cjs/Cascader/Cascader.d.ts +1 -1
- package/cjs/Cascader/Cascader.js +4 -2
- package/cjs/CheckPicker/CheckPicker.js +4 -2
- package/cjs/CheckTree/CheckTreeView.js +4 -2
- package/cjs/CheckTreePicker/CheckTreePicker.js +4 -2
- package/cjs/Checkbox/Checkbox.d.ts +3 -2
- package/cjs/Checkbox/Checkbox.js +8 -3
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +3 -2
- package/cjs/CheckboxGroup/CheckboxGroup.js +5 -2
- package/cjs/Container/Container.d.ts +2 -2
- package/cjs/Container/Container.js +5 -2
- package/cjs/Content/Content.d.ts +1 -4
- package/cjs/Content/Content.js +0 -0
- package/cjs/DatePicker/DatePicker.js +4 -2
- package/cjs/DateRangePicker/DateRangePicker.js +4 -2
- package/cjs/Divider/Divider.d.ts +3 -2
- package/cjs/Drawer/Drawer.d.ts +2 -4
- package/cjs/Drawer/DrawerActions.d.ts +1 -3
- package/cjs/Drawer/DrawerActions.js +0 -0
- package/cjs/Drawer/DrawerBody.d.ts +1 -1
- package/cjs/Dropdown/DropdownItem.d.ts +3 -2
- package/cjs/Dropdown/DropdownItem.js +2 -2
- package/cjs/Footer/Footer.d.ts +1 -4
- package/cjs/Footer/Footer.js +0 -0
- package/cjs/Grid/Col.d.ts +3 -2
- package/cjs/Grid/Col.js +5 -2
- package/cjs/Grid/Grid.d.ts +2 -2
- package/cjs/Grid/Grid.js +5 -2
- package/cjs/Grid/Row.d.ts +3 -2
- package/cjs/Grid/Row.js +8 -4
- package/cjs/Header/Header.d.ts +1 -4
- package/cjs/Header/Header.js +0 -0
- package/cjs/Heading/Heading.d.ts +2 -2
- package/cjs/Heading/Heading.js +4 -2
- package/cjs/HeadingGroup/HeadingGroup.d.ts +1 -4
- package/cjs/HeadingGroup/HeadingGroup.js +0 -0
- package/cjs/Highlight/Highlight.d.ts +2 -2
- package/cjs/Highlight/Highlight.js +4 -2
- package/cjs/Image/Image.d.ts +2 -2
- package/cjs/Image/Image.js +8 -8
- package/cjs/Image/ImageWrapper.d.ts +3 -4
- package/cjs/Image/ImageWrapper.js +0 -0
- package/cjs/InlineEdit/InlineEdit.d.ts +2 -2
- package/cjs/InlineEdit/InlineEdit.js +4 -2
- package/cjs/Input/Input.d.ts +3 -2
- package/cjs/Input/Input.js +5 -2
- package/cjs/InputGroup/InputGroup.d.ts +3 -2
- package/cjs/InputGroup/InputGroup.js +5 -2
- package/cjs/InputGroup/InputGroupAddon.d.ts +2 -2
- package/cjs/InputGroup/InputGroupAddon.js +5 -2
- package/cjs/InputNumber/InputNumber.d.ts +3 -2
- package/cjs/InputNumber/InputNumber.js +5 -2
- package/cjs/InputPicker/InputPicker.d.ts +2 -2
- package/cjs/InputPicker/InputPicker.js +14 -5
- package/cjs/Kbd/Kbd.d.ts +3 -2
- package/cjs/Kbd/Kbd.js +5 -2
- package/cjs/List/List.d.ts +2 -2
- package/cjs/List/List.js +6 -5
- package/cjs/List/ListItem.d.ts +2 -2
- package/cjs/List/ListItem.js +6 -5
- package/cjs/Loader/Loader.d.ts +3 -2
- package/cjs/Loader/Loader.js +6 -5
- package/cjs/Menu/Menu.d.ts +3 -2
- package/cjs/Menu/Menu.js +5 -1
- package/cjs/Menu/MenuItem.d.ts +3 -2
- package/cjs/Menu/MenuItem.js +2 -2
- package/cjs/Menu/MenuSeparator.d.ts +2 -2
- package/cjs/Menu/MenuSeparator.js +6 -4
- package/cjs/Message/Message.d.ts +3 -2
- package/cjs/Message/Message.js +4 -2
- package/cjs/Modal/Modal.d.ts +2 -4
- package/cjs/Modal/ModalBody.d.ts +3 -3
- package/cjs/Modal/ModalBody.js +5 -2
- package/cjs/Modal/ModalDialog.d.ts +3 -2
- package/cjs/Modal/ModalDialog.js +4 -2
- package/cjs/Modal/ModalFooter.d.ts +1 -3
- package/cjs/Modal/ModalHeader.d.ts +2 -2
- package/cjs/Modal/ModalHeader.js +5 -2
- package/cjs/Modal/ModalTitle.js +4 -2
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +4 -2
- package/cjs/MultiCascadeTree/types.d.ts +2 -2
- package/cjs/MultiCascader/MultiCascader.js +4 -2
- package/cjs/Nav/Nav.d.ts +3 -2
- package/cjs/Nav/Nav.js +7 -3
- package/cjs/Nav/NavDropdown.d.ts +4 -3
- package/cjs/Nav/NavDropdown.js +4 -2
- package/cjs/Nav/NavDropdownItem.d.ts +3 -2
- package/cjs/Nav/NavDropdownItem.js +4 -4
- package/cjs/Nav/NavDropdownToggle.d.ts +4 -3
- package/cjs/Nav/NavDropdownToggle.js +5 -2
- package/cjs/Nav/NavItem.d.ts +3 -2
- package/cjs/Nav/NavItem.js +4 -2
- package/cjs/Navbar/Navbar.d.ts +4 -8
- package/cjs/Navbar/Navbar.js +5 -2
- package/cjs/Navbar/NavbarBrand.d.ts +1 -5
- package/cjs/Navbar/NavbarBrand.js +0 -0
- package/cjs/Navbar/NavbarContent.d.ts +1 -1
- package/cjs/Navbar/NavbarDropdown.d.ts +2 -1
- package/cjs/Navbar/NavbarDropdown.js +4 -2
- package/cjs/Navbar/NavbarDropdownItem.d.ts +4 -3
- package/cjs/Navbar/NavbarDropdownItem.js +7 -7
- package/cjs/Navbar/NavbarDropdownToggle.d.ts +4 -3
- package/cjs/Navbar/NavbarDropdownToggle.js +5 -2
- package/cjs/Navbar/NavbarItem.d.ts +3 -2
- package/cjs/Navbar/NavbarItem.js +5 -3
- package/cjs/Notification/Notification.d.ts +3 -2
- package/cjs/Notification/Notification.js +4 -2
- package/cjs/Pagination/Pagination.d.ts +3 -2
- package/cjs/Pagination/Pagination.js +5 -3
- package/cjs/Pagination/PaginationGroup.js +4 -2
- package/cjs/Panel/Panel.d.ts +3 -2
- package/cjs/Panel/Panel.js +5 -3
- package/cjs/Panel/PanelBody.d.ts +1 -1
- package/cjs/Panel/PanelBody.js +1 -1
- package/cjs/Panel/PanelHeader.d.ts +2 -2
- package/cjs/Panel/PanelHeader.js +4 -2
- package/cjs/PanelGroup/PanelGroup.d.ts +2 -2
- package/cjs/PanelGroup/PanelGroup.js +5 -2
- package/cjs/Placeholder/PlaceholderGraph.d.ts +2 -2
- package/cjs/Placeholder/PlaceholderGraph.js +8 -8
- package/cjs/Placeholder/PlaceholderGrid.d.ts +2 -2
- package/cjs/Placeholder/PlaceholderGrid.js +8 -8
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +2 -2
- package/cjs/Placeholder/PlaceholderParagraph.js +8 -8
- package/cjs/Popover/Popover.d.ts +2 -2
- package/cjs/Popover/Popover.js +6 -5
- package/cjs/Progress/ProgressCircle.d.ts +2 -2
- package/cjs/Progress/ProgressCircle.js +4 -2
- package/cjs/Progress/ProgressLine.d.ts +2 -2
- package/cjs/Progress/ProgressLine.js +4 -2
- package/cjs/Radio/Radio.d.ts +3 -2
- package/cjs/Radio/Radio.js +8 -5
- package/cjs/RadioGroup/RadioGroup.d.ts +3 -2
- package/cjs/RadioGroup/RadioGroup.js +4 -2
- package/cjs/RadioTile/RadioTile.d.ts +4 -5
- package/cjs/RadioTile/RadioTile.js +6 -8
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +3 -2
- package/cjs/RadioTileGroup/RadioTileGroup.js +6 -5
- package/cjs/RangeSlider/RangeSlider.js +5 -3
- package/cjs/Rate/Character.d.ts +2 -2
- package/cjs/Rate/Character.js +5 -3
- package/cjs/Rate/Rate.d.ts +3 -2
- package/cjs/Rate/Rate.js +4 -2
- package/cjs/SafeAnchor/SafeAnchor.d.ts +2 -2
- package/cjs/SafeAnchor/SafeAnchor.js +4 -2
- package/cjs/SelectPicker/SelectPicker.js +4 -2
- package/cjs/Sidebar/Sidebar.d.ts +2 -2
- package/cjs/Sidebar/Sidebar.js +7 -10
- package/cjs/Sidenav/ExpandedSidenavDropdown.d.ts +4 -3
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +6 -6
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.d.ts +3 -2
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +2 -2
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.d.ts +3 -2
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +6 -5
- package/cjs/Sidenav/Sidenav.d.ts +6 -14
- package/cjs/Sidenav/Sidenav.js +5 -2
- package/cjs/Sidenav/SidenavBody.d.ts +1 -3
- package/cjs/Sidenav/SidenavBody.js +0 -0
- package/cjs/Sidenav/SidenavDropdown.d.ts +4 -7
- package/cjs/Sidenav/SidenavDropdown.js +7 -5
- package/cjs/Sidenav/SidenavDropdownCollapse.d.ts +2 -2
- package/cjs/Sidenav/SidenavDropdownCollapse.js +4 -1
- package/cjs/Sidenav/SidenavDropdownItem.d.ts +3 -2
- package/cjs/Sidenav/SidenavDropdownItem.js +7 -7
- package/cjs/Sidenav/SidenavFooter.d.ts +1 -3
- package/cjs/Sidenav/SidenavGroupLabel.d.ts +1 -3
- package/cjs/Sidenav/SidenavHeader.d.ts +1 -3
- package/cjs/Sidenav/SidenavHeader.js +0 -0
- package/cjs/Sidenav/SidenavItem.d.ts +3 -2
- package/cjs/Sidenav/SidenavItem.js +7 -4
- package/cjs/Sidenav/SidenavToggle.d.ts +2 -2
- package/cjs/Sidenav/SidenavToggle.js +6 -4
- package/cjs/Slider/Graduated.d.ts +2 -2
- package/cjs/Slider/Graduated.js +8 -4
- package/cjs/Slider/Handle.d.ts +2 -2
- package/cjs/Slider/Handle.js +4 -2
- package/cjs/Slider/Mark.d.ts +2 -2
- package/cjs/Slider/Mark.js +4 -2
- package/cjs/Slider/ProgressBar.d.ts +2 -2
- package/cjs/Slider/ProgressBar.js +8 -4
- package/cjs/Slider/Slider.d.ts +3 -2
- package/cjs/Slider/Slider.js +7 -5
- package/cjs/Stack/Stack.js +0 -1
- package/cjs/Stack/StackItem.d.ts +2 -2
- package/cjs/Stack/StackItem.js +4 -2
- package/cjs/Stat/Stat.d.ts +4 -10
- package/cjs/Stat/Stat.js +4 -2
- package/cjs/Stat/StatHelpText.d.ts +1 -4
- package/cjs/Stat/StatHelpText.js +0 -0
- package/cjs/Stat/StatLabel.d.ts +2 -2
- package/cjs/Stat/StatLabel.js +4 -2
- package/cjs/Stat/StatTrend.d.ts +2 -2
- package/cjs/Stat/StatTrend.js +4 -2
- package/cjs/Stat/StatValue.d.ts +2 -2
- package/cjs/Stat/StatValue.js +4 -2
- package/cjs/Stat/StatValueUnit.d.ts +1 -4
- package/cjs/Stat/StatValueUnit.js +0 -0
- package/cjs/StatGroup/StatGroup.d.ts +2 -2
- package/cjs/StatGroup/StatGroup.js +4 -2
- package/cjs/Steps/Steps.d.ts +2 -2
- package/cjs/Steps/Steps.js +5 -3
- package/cjs/Tabs/TabPanel.d.ts +2 -2
- package/cjs/Tabs/TabPanel.js +4 -2
- package/cjs/Tabs/Tabs.d.ts +2 -2
- package/cjs/Tabs/Tabs.js +4 -2
- package/cjs/Tag/Tag.d.ts +3 -2
- package/cjs/Tag/Tag.js +4 -2
- package/cjs/TagGroup/TagGroup.d.ts +1 -3
- package/cjs/TagGroup/TagGroup.js +0 -0
- package/cjs/Text/Text.d.ts +4 -4
- package/cjs/Text/Text.js +10 -21
- package/cjs/Timeline/Timeline.d.ts +2 -2
- package/cjs/Timeline/Timeline.js +5 -3
- package/cjs/Timeline/TimelineItem.d.ts +2 -2
- package/cjs/Timeline/TimelineItem.js +5 -3
- package/cjs/Toggle/Toggle.d.ts +3 -2
- package/cjs/Toggle/Toggle.js +5 -3
- package/cjs/Tooltip/Tooltip.d.ts +3 -2
- package/cjs/Tooltip/Tooltip.js +4 -2
- package/cjs/Tree/Tree.d.ts +1 -1
- package/cjs/Tree/TreeNode.d.ts +2 -2
- package/cjs/Tree/TreeNode.js +6 -4
- package/cjs/Tree/TreeView.js +4 -2
- package/cjs/Tree/types.d.ts +2 -2
- package/cjs/TreePicker/TreePicker.d.ts +1 -1
- package/cjs/TreePicker/TreePicker.js +4 -2
- package/cjs/Uploader/UploadFileItem.d.ts +2 -2
- package/cjs/Uploader/UploadFileItem.js +11 -4
- package/cjs/Uploader/Uploader.d.ts +2 -2
- package/cjs/Uploader/Uploader.js +4 -2
- package/cjs/VisuallyHidden/VisuallyHidden.d.ts +1 -4
- package/cjs/VisuallyHidden/VisuallyHidden.js +0 -0
- package/cjs/internals/Box/Box.d.ts +12 -8
- package/cjs/internals/Box/Box.js +16 -14
- package/cjs/internals/Box/utils.js +5 -5
- package/cjs/internals/Menu/useRenderMenuItem.d.ts +1 -1
- package/cjs/internals/Menu/useRenderMenuItem.js +17 -8
- package/cjs/internals/Overlay/Modal.d.ts +3 -2
- package/cjs/internals/Overlay/Modal.js +5 -2
- package/cjs/internals/Picker/PickerToggle.d.ts +1 -1
- package/cjs/internals/Picker/ToggleButton.d.ts +2 -2
- package/cjs/internals/Picker/ToggleButton.js +0 -0
- package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/cjs/internals/Plaintext/Plaintext.d.ts +2 -2
- package/cjs/internals/Plaintext/Plaintext.js +4 -2
- package/cjs/internals/Tree/TreeView.d.ts +2 -2
- package/cjs/internals/Tree/TreeView.js +4 -2
- package/cjs/internals/types/picker.d.ts +2 -2
- package/cjs/internals/utils/colours.d.ts +1 -1
- package/cjs/internals/utils/createComponent.d.ts +4 -3
- package/cjs/internals/utils/createComponent.js +8 -5
- package/cjs/internals/utils/sizes.d.ts +4 -1
- package/cjs/internals/utils/sizes.js +9 -3
- package/cjs/internals/utils/style-sheet/css.d.ts +1 -1
- package/cjs/internals/utils/style-sheet/css.js +4 -1
- package/cjs/internals/utils/style-sheet/styles.d.ts +2 -2
- package/cjs/internals/utils/style-sheet/styles.js +6 -6
- package/dist/rsuite-no-reset-rtl.css +75 -70
- 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 +75 -70
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +75 -70
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +75 -70
- package/dist/rsuite.js +130 -130
- 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/Affix/Affix.d.ts +3 -2
- package/esm/Affix/Affix.js +5 -2
- package/esm/AutoComplete/AutoComplete.d.ts +3 -2
- package/esm/AutoComplete/AutoComplete.js +4 -2
- package/esm/Avatar/Avatar.d.ts +3 -2
- package/esm/AvatarGroup/AvatarGroup.d.ts +3 -2
- package/esm/AvatarGroup/AvatarGroup.js +4 -2
- package/esm/Badge/Badge.d.ts +3 -2
- package/esm/Badge/Badge.js +6 -3
- package/esm/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/esm/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/esm/Breadcrumb/BreadcrumbItem.js +4 -2
- package/esm/Button/Button.d.ts +3 -2
- package/esm/Button/Button.js +8 -14
- package/esm/ButtonGroup/ButtonGroup.d.ts +3 -2
- package/esm/ButtonGroup/ButtonGroup.js +5 -2
- package/esm/ButtonToolbar/ButtonToolbar.d.ts +1 -2
- package/esm/ButtonToolbar/ButtonToolbar.js +4 -7
- package/esm/Calendar/Calendar.d.ts +2 -2
- package/esm/Calendar/Calendar.js +7 -6
- package/esm/Card/Card.d.ts +5 -14
- package/esm/Card/Card.js +4 -2
- package/esm/Card/CardBody.d.ts +1 -4
- package/esm/Card/CardBody.js +0 -0
- package/esm/Card/CardFooter.d.ts +1 -4
- package/esm/Card/CardFooter.js +0 -0
- package/esm/Card/CardHeader.d.ts +1 -4
- package/esm/Card/CardHeader.js +0 -0
- package/esm/CardGroup/CardGroup.d.ts +2 -2
- package/esm/CardGroup/CardGroup.js +4 -2
- package/esm/Carousel/Carousel.d.ts +2 -2
- package/esm/Carousel/Carousel.js +5 -2
- package/esm/CascadeTree/CascadeTree.js +4 -2
- package/esm/CascadeTree/types.d.ts +3 -2
- package/esm/Cascader/Cascader.d.ts +1 -1
- package/esm/Cascader/Cascader.js +4 -2
- package/esm/CheckPicker/CheckPicker.js +4 -2
- package/esm/CheckTree/CheckTreeView.js +4 -2
- package/esm/CheckTreePicker/CheckTreePicker.js +4 -2
- package/esm/Checkbox/Checkbox.d.ts +3 -2
- package/esm/Checkbox/Checkbox.js +8 -3
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +3 -2
- package/esm/CheckboxGroup/CheckboxGroup.js +5 -2
- package/esm/Container/Container.d.ts +2 -2
- package/esm/Container/Container.js +5 -2
- package/esm/Content/Content.d.ts +1 -4
- package/esm/Content/Content.js +0 -0
- package/esm/DatePicker/DatePicker.js +4 -2
- package/esm/DateRangePicker/DateRangePicker.js +4 -2
- package/esm/Divider/Divider.d.ts +3 -2
- package/esm/Drawer/Drawer.d.ts +2 -4
- package/esm/Drawer/DrawerActions.d.ts +1 -3
- package/esm/Drawer/DrawerActions.js +0 -0
- package/esm/Drawer/DrawerBody.d.ts +1 -1
- package/esm/Dropdown/DropdownItem.d.ts +3 -2
- package/esm/Dropdown/DropdownItem.js +2 -2
- package/esm/Footer/Footer.d.ts +1 -4
- package/esm/Footer/Footer.js +0 -0
- package/esm/Grid/Col.d.ts +3 -2
- package/esm/Grid/Col.js +5 -2
- package/esm/Grid/Grid.d.ts +2 -2
- package/esm/Grid/Grid.js +5 -2
- package/esm/Grid/Row.d.ts +3 -2
- package/esm/Grid/Row.js +8 -4
- package/esm/Header/Header.d.ts +1 -4
- package/esm/Header/Header.js +0 -0
- package/esm/Heading/Heading.d.ts +2 -2
- package/esm/Heading/Heading.js +4 -2
- package/esm/HeadingGroup/HeadingGroup.d.ts +1 -4
- package/esm/HeadingGroup/HeadingGroup.js +0 -0
- package/esm/Highlight/Highlight.d.ts +2 -2
- package/esm/Highlight/Highlight.js +4 -2
- package/esm/Image/Image.d.ts +2 -2
- package/esm/Image/Image.js +8 -8
- package/esm/Image/ImageWrapper.d.ts +3 -4
- package/esm/Image/ImageWrapper.js +0 -0
- package/esm/InlineEdit/InlineEdit.d.ts +2 -2
- package/esm/InlineEdit/InlineEdit.js +4 -2
- package/esm/Input/Input.d.ts +3 -2
- package/esm/Input/Input.js +5 -2
- package/esm/InputGroup/InputGroup.d.ts +3 -2
- package/esm/InputGroup/InputGroup.js +5 -2
- package/esm/InputGroup/InputGroupAddon.d.ts +2 -2
- package/esm/InputGroup/InputGroupAddon.js +5 -2
- package/esm/InputNumber/InputNumber.d.ts +3 -2
- package/esm/InputNumber/InputNumber.js +5 -2
- package/esm/InputPicker/InputPicker.d.ts +2 -2
- package/esm/InputPicker/InputPicker.js +14 -5
- package/esm/Kbd/Kbd.d.ts +3 -2
- package/esm/Kbd/Kbd.js +5 -2
- package/esm/List/List.d.ts +2 -2
- package/esm/List/List.js +6 -5
- package/esm/List/ListItem.d.ts +2 -2
- package/esm/List/ListItem.js +6 -5
- package/esm/Loader/Loader.d.ts +3 -2
- package/esm/Loader/Loader.js +6 -5
- package/esm/Menu/Menu.d.ts +3 -2
- package/esm/Menu/Menu.js +5 -1
- package/esm/Menu/MenuItem.d.ts +3 -2
- package/esm/Menu/MenuItem.js +2 -2
- package/esm/Menu/MenuSeparator.d.ts +2 -2
- package/esm/Menu/MenuSeparator.js +6 -4
- package/esm/Message/Message.d.ts +3 -2
- package/esm/Message/Message.js +4 -2
- package/esm/Modal/Modal.d.ts +2 -4
- package/esm/Modal/ModalBody.d.ts +3 -3
- package/esm/Modal/ModalBody.js +5 -2
- package/esm/Modal/ModalDialog.d.ts +3 -2
- package/esm/Modal/ModalDialog.js +4 -2
- package/esm/Modal/ModalFooter.d.ts +1 -3
- package/esm/Modal/ModalHeader.d.ts +2 -2
- package/esm/Modal/ModalHeader.js +5 -2
- package/esm/Modal/ModalTitle.js +4 -2
- package/esm/MultiCascadeTree/MultiCascadeTree.js +4 -2
- package/esm/MultiCascadeTree/types.d.ts +2 -2
- package/esm/MultiCascader/MultiCascader.js +4 -2
- package/esm/Nav/Nav.d.ts +3 -2
- package/esm/Nav/Nav.js +7 -3
- package/esm/Nav/NavDropdown.d.ts +4 -3
- package/esm/Nav/NavDropdown.js +4 -2
- package/esm/Nav/NavDropdownItem.d.ts +3 -2
- package/esm/Nav/NavDropdownItem.js +4 -4
- package/esm/Nav/NavDropdownToggle.d.ts +4 -3
- package/esm/Nav/NavDropdownToggle.js +5 -2
- package/esm/Nav/NavItem.d.ts +3 -2
- package/esm/Nav/NavItem.js +4 -2
- package/esm/Navbar/Navbar.d.ts +4 -8
- package/esm/Navbar/Navbar.js +5 -2
- package/esm/Navbar/NavbarBrand.d.ts +1 -5
- package/esm/Navbar/NavbarBrand.js +0 -0
- package/esm/Navbar/NavbarContent.d.ts +1 -1
- package/esm/Navbar/NavbarDropdown.d.ts +2 -1
- package/esm/Navbar/NavbarDropdown.js +4 -2
- package/esm/Navbar/NavbarDropdownItem.d.ts +4 -3
- package/esm/Navbar/NavbarDropdownItem.js +7 -7
- package/esm/Navbar/NavbarDropdownToggle.d.ts +4 -3
- package/esm/Navbar/NavbarDropdownToggle.js +5 -2
- package/esm/Navbar/NavbarItem.d.ts +3 -2
- package/esm/Navbar/NavbarItem.js +5 -3
- package/esm/Notification/Notification.d.ts +3 -2
- package/esm/Notification/Notification.js +4 -2
- package/esm/Pagination/Pagination.d.ts +3 -2
- package/esm/Pagination/Pagination.js +5 -3
- package/esm/Pagination/PaginationGroup.js +4 -2
- package/esm/Panel/Panel.d.ts +3 -2
- package/esm/Panel/Panel.js +5 -3
- package/esm/Panel/PanelBody.d.ts +1 -1
- package/esm/Panel/PanelBody.js +1 -1
- package/esm/Panel/PanelHeader.d.ts +2 -2
- package/esm/Panel/PanelHeader.js +4 -2
- package/esm/PanelGroup/PanelGroup.d.ts +2 -2
- package/esm/PanelGroup/PanelGroup.js +5 -2
- package/esm/Placeholder/PlaceholderGraph.d.ts +2 -2
- package/esm/Placeholder/PlaceholderGraph.js +8 -8
- package/esm/Placeholder/PlaceholderGrid.d.ts +2 -2
- package/esm/Placeholder/PlaceholderGrid.js +8 -8
- package/esm/Placeholder/PlaceholderParagraph.d.ts +2 -2
- package/esm/Placeholder/PlaceholderParagraph.js +8 -8
- package/esm/Popover/Popover.d.ts +2 -2
- package/esm/Popover/Popover.js +6 -5
- package/esm/Progress/ProgressCircle.d.ts +2 -2
- package/esm/Progress/ProgressCircle.js +4 -2
- package/esm/Progress/ProgressLine.d.ts +2 -2
- package/esm/Progress/ProgressLine.js +4 -2
- package/esm/Radio/Radio.d.ts +3 -2
- package/esm/Radio/Radio.js +8 -5
- package/esm/RadioGroup/RadioGroup.d.ts +3 -2
- package/esm/RadioGroup/RadioGroup.js +4 -2
- package/esm/RadioTile/RadioTile.d.ts +4 -5
- package/esm/RadioTile/RadioTile.js +6 -8
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +3 -2
- package/esm/RadioTileGroup/RadioTileGroup.js +6 -5
- package/esm/RangeSlider/RangeSlider.js +5 -3
- package/esm/Rate/Character.d.ts +2 -2
- package/esm/Rate/Character.js +5 -3
- package/esm/Rate/Rate.d.ts +3 -2
- package/esm/Rate/Rate.js +4 -2
- package/esm/SafeAnchor/SafeAnchor.d.ts +2 -2
- package/esm/SafeAnchor/SafeAnchor.js +4 -2
- package/esm/SelectPicker/SelectPicker.js +4 -2
- package/esm/Sidebar/Sidebar.d.ts +2 -2
- package/esm/Sidebar/Sidebar.js +8 -11
- package/esm/Sidenav/ExpandedSidenavDropdown.d.ts +4 -3
- package/esm/Sidenav/ExpandedSidenavDropdown.js +6 -6
- package/esm/Sidenav/ExpandedSidenavDropdownItem.d.ts +3 -2
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +2 -2
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.d.ts +3 -2
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +6 -5
- package/esm/Sidenav/Sidenav.d.ts +6 -14
- package/esm/Sidenav/Sidenav.js +5 -2
- package/esm/Sidenav/SidenavBody.d.ts +1 -3
- package/esm/Sidenav/SidenavBody.js +0 -0
- package/esm/Sidenav/SidenavDropdown.d.ts +4 -7
- package/esm/Sidenav/SidenavDropdown.js +7 -5
- package/esm/Sidenav/SidenavDropdownCollapse.d.ts +2 -2
- package/esm/Sidenav/SidenavDropdownCollapse.js +4 -1
- package/esm/Sidenav/SidenavDropdownItem.d.ts +3 -2
- package/esm/Sidenav/SidenavDropdownItem.js +7 -7
- package/esm/Sidenav/SidenavFooter.d.ts +1 -3
- package/esm/Sidenav/SidenavGroupLabel.d.ts +1 -3
- package/esm/Sidenav/SidenavHeader.d.ts +1 -3
- package/esm/Sidenav/SidenavHeader.js +0 -0
- package/esm/Sidenav/SidenavItem.d.ts +3 -2
- package/esm/Sidenav/SidenavItem.js +7 -4
- package/esm/Sidenav/SidenavToggle.d.ts +2 -2
- package/esm/Sidenav/SidenavToggle.js +7 -5
- package/esm/Slider/Graduated.d.ts +2 -2
- package/esm/Slider/Graduated.js +8 -4
- package/esm/Slider/Handle.d.ts +2 -2
- package/esm/Slider/Handle.js +4 -2
- package/esm/Slider/Mark.d.ts +2 -2
- package/esm/Slider/Mark.js +4 -2
- package/esm/Slider/ProgressBar.d.ts +2 -2
- package/esm/Slider/ProgressBar.js +8 -4
- package/esm/Slider/Slider.d.ts +3 -2
- package/esm/Slider/Slider.js +7 -5
- package/esm/Stack/Stack.js +0 -1
- package/esm/Stack/StackItem.d.ts +2 -2
- package/esm/Stack/StackItem.js +4 -2
- package/esm/Stat/Stat.d.ts +4 -10
- package/esm/Stat/Stat.js +4 -2
- package/esm/Stat/StatHelpText.d.ts +1 -4
- package/esm/Stat/StatHelpText.js +0 -0
- package/esm/Stat/StatLabel.d.ts +2 -2
- package/esm/Stat/StatLabel.js +4 -2
- package/esm/Stat/StatTrend.d.ts +2 -2
- package/esm/Stat/StatTrend.js +4 -2
- package/esm/Stat/StatValue.d.ts +2 -2
- package/esm/Stat/StatValue.js +4 -2
- package/esm/Stat/StatValueUnit.d.ts +1 -4
- package/esm/Stat/StatValueUnit.js +0 -0
- package/esm/StatGroup/StatGroup.d.ts +2 -2
- package/esm/StatGroup/StatGroup.js +4 -2
- package/esm/Steps/Steps.d.ts +2 -2
- package/esm/Steps/Steps.js +5 -3
- package/esm/Tabs/TabPanel.d.ts +2 -2
- package/esm/Tabs/TabPanel.js +4 -2
- package/esm/Tabs/Tabs.d.ts +2 -2
- package/esm/Tabs/Tabs.js +4 -2
- package/esm/Tag/Tag.d.ts +3 -2
- package/esm/Tag/Tag.js +4 -2
- package/esm/TagGroup/TagGroup.d.ts +1 -3
- package/esm/TagGroup/TagGroup.js +0 -0
- package/esm/Text/Text.d.ts +4 -4
- package/esm/Text/Text.js +11 -20
- package/esm/Timeline/Timeline.d.ts +2 -2
- package/esm/Timeline/Timeline.js +5 -3
- package/esm/Timeline/TimelineItem.d.ts +2 -2
- package/esm/Timeline/TimelineItem.js +5 -3
- package/esm/Toggle/Toggle.d.ts +3 -2
- package/esm/Toggle/Toggle.js +5 -3
- package/esm/Tooltip/Tooltip.d.ts +3 -2
- package/esm/Tooltip/Tooltip.js +4 -2
- package/esm/Tree/Tree.d.ts +1 -1
- package/esm/Tree/TreeNode.d.ts +2 -2
- package/esm/Tree/TreeNode.js +6 -4
- package/esm/Tree/TreeView.js +4 -2
- package/esm/Tree/types.d.ts +2 -2
- package/esm/TreePicker/TreePicker.d.ts +1 -1
- package/esm/TreePicker/TreePicker.js +4 -2
- package/esm/Uploader/UploadFileItem.d.ts +2 -2
- package/esm/Uploader/UploadFileItem.js +11 -4
- package/esm/Uploader/Uploader.d.ts +2 -2
- package/esm/Uploader/Uploader.js +4 -2
- package/esm/VisuallyHidden/VisuallyHidden.d.ts +1 -4
- package/esm/VisuallyHidden/VisuallyHidden.js +0 -0
- package/esm/internals/Box/Box.d.ts +12 -8
- package/esm/internals/Box/Box.js +16 -14
- package/esm/internals/Box/utils.js +5 -5
- package/esm/internals/Menu/useRenderMenuItem.d.ts +1 -1
- package/esm/internals/Menu/useRenderMenuItem.js +16 -8
- package/esm/internals/Overlay/Modal.d.ts +3 -2
- package/esm/internals/Overlay/Modal.js +5 -2
- package/esm/internals/Picker/PickerToggle.d.ts +1 -1
- package/esm/internals/Picker/ToggleButton.d.ts +2 -2
- package/esm/internals/Picker/ToggleButton.js +0 -0
- package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
- package/esm/internals/Plaintext/Plaintext.d.ts +2 -2
- package/esm/internals/Plaintext/Plaintext.js +4 -2
- package/esm/internals/Tree/TreeView.d.ts +2 -2
- package/esm/internals/Tree/TreeView.js +4 -2
- package/esm/internals/types/picker.d.ts +2 -2
- package/esm/internals/utils/colours.d.ts +1 -1
- package/esm/internals/utils/createComponent.d.ts +4 -3
- package/esm/internals/utils/createComponent.js +7 -4
- package/esm/internals/utils/sizes.d.ts +4 -1
- package/esm/internals/utils/sizes.js +9 -3
- package/esm/internals/utils/style-sheet/css.d.ts +1 -1
- package/esm/internals/utils/style-sheet/css.js +3 -1
- package/esm/internals/utils/style-sheet/styles.d.ts +2 -2
- package/esm/internals/utils/style-sheet/styles.js +6 -6
- package/internals/Box/styles/index.less +57 -136
- package/package.json +1 -1
- package/styles/color-modes/dark.less +1 -1
- package/styles/color-modes/light.less +1 -1
- package/styles/root.less +10 -6
- package/toaster/styles/index.css +2 -1
- package/useToaster/styles/index.css +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CascadeTreeProps } from '../CascadeTree/types';
|
|
3
2
|
import { PickerLocale } from '../locales';
|
|
4
3
|
import { PickerToggleProps } from '../internals/Picker';
|
|
5
4
|
import { Option, OptionValue, FormControlPickerProps, DeprecatedMenuProps } from '../internals/types';
|
|
5
|
+
import type { CascadeTreeProps } from '../CascadeTree/types';
|
|
6
6
|
interface DeprecatedProps extends DeprecatedMenuProps {
|
|
7
7
|
/**
|
|
8
8
|
* The panel is displayed directly when the component is initialized
|
package/esm/Cascader/Cascader.js
CHANGED
|
@@ -7,6 +7,7 @@ import isNil from 'lodash/isNil';
|
|
|
7
7
|
import isFunction from 'lodash/isFunction';
|
|
8
8
|
import TreeView from "../CascadeTree/TreeView.js";
|
|
9
9
|
import SearchView from "../CascadeTree/SearchView.js";
|
|
10
|
+
import Box from "../internals/Box/index.js";
|
|
10
11
|
import { usePaths, useSelect, useSearch } from "../CascadeTree/hooks/index.js";
|
|
11
12
|
import { flattenTree } from "../Tree/utils/index.js";
|
|
12
13
|
import { findNodeOfTree, getParentMap } from "../internals/Tree/utils/index.js";
|
|
@@ -26,7 +27,7 @@ const Cascader = forwardRef((props, ref) => {
|
|
|
26
27
|
propsWithDefaults
|
|
27
28
|
} = useCustom('Cascader', props);
|
|
28
29
|
const {
|
|
29
|
-
as
|
|
30
|
+
as,
|
|
30
31
|
data = emptyArray,
|
|
31
32
|
classPrefix = 'picker',
|
|
32
33
|
childrenKey = 'children',
|
|
@@ -357,7 +358,8 @@ const Cascader = forwardRef((props, ref) => {
|
|
|
357
358
|
onEntered: handleEntered,
|
|
358
359
|
onExited: handleExited,
|
|
359
360
|
speaker: renderTreeView
|
|
360
|
-
}, /*#__PURE__*/React.createElement(
|
|
361
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
362
|
+
as: as,
|
|
361
363
|
className: classes,
|
|
362
364
|
style: style,
|
|
363
365
|
ref: root
|
|
@@ -8,6 +8,7 @@ import omit from 'lodash/omit';
|
|
|
8
8
|
import pick from 'lodash/pick';
|
|
9
9
|
import isNil from 'lodash/isNil';
|
|
10
10
|
import SearchBox from "../internals/SearchBox/index.js";
|
|
11
|
+
import Box from "../internals/Box/index.js";
|
|
11
12
|
import { filterNodesOfTree } from "../internals/Tree/utils/index.js";
|
|
12
13
|
import { useStyles, useControlled, useEventCallback } from "../internals/hooks/index.js";
|
|
13
14
|
import { useCustom } from "../CustomProvider/index.js";
|
|
@@ -23,7 +24,7 @@ const CheckPicker = forwardRef((props, ref) => {
|
|
|
23
24
|
propsWithDefaults
|
|
24
25
|
} = useCustom('CheckPicker', props);
|
|
25
26
|
const {
|
|
26
|
-
as
|
|
27
|
+
as,
|
|
27
28
|
appearance = 'default',
|
|
28
29
|
classPrefix = 'picker',
|
|
29
30
|
countable = true,
|
|
@@ -290,7 +291,8 @@ const CheckPicker = forwardRef((props, ref) => {
|
|
|
290
291
|
onEntered: createChainedFunction(handleEntered, onEntered),
|
|
291
292
|
onExited: createChainedFunction(handleExited, onExited),
|
|
292
293
|
speaker: renderPopup
|
|
293
|
-
}, /*#__PURE__*/React.createElement(
|
|
294
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
295
|
+
as: as,
|
|
294
296
|
className: classes,
|
|
295
297
|
style: style,
|
|
296
298
|
ref: root
|
|
@@ -5,6 +5,7 @@ import isNil from 'lodash/isNil';
|
|
|
5
5
|
import CheckTreeNode from "./CheckTreeNode.js";
|
|
6
6
|
import IndentLine from "../Tree/IndentLine.js";
|
|
7
7
|
import SearchBox from "../internals/SearchBox/index.js";
|
|
8
|
+
import Box from "../internals/Box/index.js";
|
|
8
9
|
import useTreeSearch from "../Tree/hooks/useTreeSearch.js";
|
|
9
10
|
import useFocusTree from "../Tree/hooks/useFocusTree.js";
|
|
10
11
|
import useVirtualizedTreeData from "../Tree/hooks/useVirtualizedTreeData.js";
|
|
@@ -27,7 +28,7 @@ import { useCustom } from "../CustomProvider/index.js";
|
|
|
27
28
|
|
|
28
29
|
const CheckTreeView = forwardRef((props, ref) => {
|
|
29
30
|
const {
|
|
30
|
-
as
|
|
31
|
+
as,
|
|
31
32
|
className,
|
|
32
33
|
classPrefix = 'check-tree',
|
|
33
34
|
cascade = true,
|
|
@@ -260,7 +261,8 @@ const CheckTreeView = forwardRef((props, ref) => {
|
|
|
260
261
|
const treeNodesClass = merge(prefix('root'), {
|
|
261
262
|
[prefix('all-uncheckable')]: isEveryFirstLevelNodeUncheckable(flattenedNodes, uncheckableItemValues, valueKey)
|
|
262
263
|
});
|
|
263
|
-
return /*#__PURE__*/React.createElement(
|
|
264
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
265
|
+
as: as,
|
|
264
266
|
ref: ref,
|
|
265
267
|
className: classes,
|
|
266
268
|
style: style
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import CheckTreeView from "../CheckTree/CheckTreeView.js";
|
|
6
|
+
import Box from "../internals/Box/index.js";
|
|
6
7
|
import useTreeValue from "../CheckTree/hooks/useTreeValue.js";
|
|
7
8
|
import useFlattenTree from "../Tree/hooks/useFlattenTree.js";
|
|
8
9
|
import useTreeWithChildren from "../Tree/hooks/useTreeWithChildren.js";
|
|
@@ -28,7 +29,7 @@ const CheckTreePicker = forwardRef((props, ref) => {
|
|
|
28
29
|
propsWithDefaults
|
|
29
30
|
} = useCustom('CheckTreePicker', props);
|
|
30
31
|
const {
|
|
31
|
-
as
|
|
32
|
+
as,
|
|
32
33
|
id,
|
|
33
34
|
appearance = 'default',
|
|
34
35
|
cleanable = true,
|
|
@@ -267,7 +268,8 @@ const CheckTreePicker = forwardRef((props, ref) => {
|
|
|
267
268
|
ref: trigger,
|
|
268
269
|
placement: placement,
|
|
269
270
|
speaker: renderTreeView
|
|
270
|
-
}, triggerProps), /*#__PURE__*/React.createElement(
|
|
271
|
+
}, triggerProps), /*#__PURE__*/React.createElement(Box, {
|
|
272
|
+
as: as,
|
|
271
273
|
className: classes,
|
|
272
274
|
style: style,
|
|
273
275
|
ref: root
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { BoxProps } from '../internals/Box';
|
|
3
|
+
import type { Color, HTMLPropsWithoutChange } from '../internals/types';
|
|
4
|
+
export interface CheckboxProps<V = string | number> extends BoxProps, HTMLPropsWithoutChange<HTMLDivElement> {
|
|
4
5
|
/**
|
|
5
6
|
* The color of the checkbox when checked or indeterminate
|
|
6
7
|
*
|
package/esm/Checkbox/Checkbox.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React, { useContext, useMemo, useRef } from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { useControlled, useStyles, useEventCallback, useUniqueId } from "../internals/hooks/index.js";
|
|
5
6
|
import { forwardRef, partitionHTMLProps, mergeRefs } from "../internals/utils/index.js";
|
|
6
7
|
import { CheckboxGroupContext } from "../CheckboxGroup/index.js";
|
|
@@ -23,7 +24,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
23
24
|
onChange: onGroupChange
|
|
24
25
|
} = checkboxGroupContext !== null && checkboxGroupContext !== void 0 ? checkboxGroupContext : {};
|
|
25
26
|
const {
|
|
26
|
-
as
|
|
27
|
+
as,
|
|
27
28
|
checked: controlledChecked,
|
|
28
29
|
className,
|
|
29
30
|
children,
|
|
@@ -98,7 +99,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
98
99
|
});
|
|
99
100
|
const labelId = useUniqueId('label-');
|
|
100
101
|
if (plaintext) {
|
|
101
|
-
return checked ? /*#__PURE__*/React.createElement(
|
|
102
|
+
return checked ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
103
|
+
as: as
|
|
104
|
+
}, restProps, {
|
|
102
105
|
ref: ref,
|
|
103
106
|
className: classes
|
|
104
107
|
}), children) : null;
|
|
@@ -123,7 +126,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
123
126
|
"aria-hidden": true,
|
|
124
127
|
"data-testid": "checkbox-control-inner"
|
|
125
128
|
}));
|
|
126
|
-
return /*#__PURE__*/React.createElement(
|
|
129
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
130
|
+
as: as
|
|
131
|
+
}, restProps, {
|
|
127
132
|
ref: ref,
|
|
128
133
|
onClick: onClick,
|
|
129
134
|
className: classes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { BoxProps } from '../internals/Box';
|
|
3
|
+
import type { FormControlBaseProps } from '../internals/types';
|
|
4
|
+
export interface CheckboxGroupProps<V = (string | number)[]> extends BoxProps, FormControlBaseProps<V> {
|
|
4
5
|
/** Used for the name of the form */
|
|
5
6
|
name?: string;
|
|
6
7
|
/** Primary content */
|
|
@@ -4,6 +4,7 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
4
4
|
import cloneDeep from 'lodash/cloneDeep';
|
|
5
5
|
import remove from 'lodash/remove';
|
|
6
6
|
import Plaintext from "../internals/Plaintext/index.js";
|
|
7
|
+
import Box from "../internals/Box/index.js";
|
|
7
8
|
import { forwardRef, shallowEqual } from "../internals/utils/index.js";
|
|
8
9
|
import { useStyles, useControlled } from "../internals/hooks/index.js";
|
|
9
10
|
import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
@@ -17,7 +18,7 @@ const CheckboxGroup = forwardRef((props, ref) => {
|
|
|
17
18
|
propsWithDefaults
|
|
18
19
|
} = useCustom('CheckboxGroup', props);
|
|
19
20
|
const {
|
|
20
|
-
as
|
|
21
|
+
as,
|
|
21
22
|
className,
|
|
22
23
|
inline,
|
|
23
24
|
children,
|
|
@@ -64,7 +65,9 @@ const CheckboxGroup = forwardRef((props, ref) => {
|
|
|
64
65
|
}, plaintext ? /*#__PURE__*/React.createElement(Plaintext, _extends({
|
|
65
66
|
ref: ref,
|
|
66
67
|
localeKey: "notSelected"
|
|
67
|
-
}, rest), value !== null && value !== void 0 && value.length ? children : null) : /*#__PURE__*/React.createElement(
|
|
68
|
+
}, rest), value !== null && value !== void 0 && value.length ? children : null) : /*#__PURE__*/React.createElement(Box, _extends({
|
|
69
|
+
as: as
|
|
70
|
+
}, rest, {
|
|
68
71
|
ref: ref,
|
|
69
72
|
role: "group",
|
|
70
73
|
className: classes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export type ContainerProps =
|
|
2
|
+
import { BoxProps } from '../internals/Box';
|
|
3
|
+
export type ContainerProps = BoxProps & React.HTMLAttributes<HTMLDivElement>;
|
|
4
4
|
export declare const ContainerContext: React.Context<ContainerContextValue>;
|
|
5
5
|
interface ContainerContextValue {
|
|
6
6
|
setHasSidebar?: (value: boolean) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React, { useState, useMemo } from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
5
6
|
import { useStyles } from "../internals/hooks/index.js";
|
|
6
7
|
import { useCustom } from "../CustomProvider/index.js";
|
|
@@ -14,7 +15,7 @@ const Container = forwardRef((props, ref) => {
|
|
|
14
15
|
propsWithDefaults
|
|
15
16
|
} = useCustom('Container', props);
|
|
16
17
|
const {
|
|
17
|
-
as
|
|
18
|
+
as = 'section',
|
|
18
19
|
classPrefix = 'container',
|
|
19
20
|
className,
|
|
20
21
|
children,
|
|
@@ -33,7 +34,9 @@ const Container = forwardRef((props, ref) => {
|
|
|
33
34
|
}), [setHasSidebar]);
|
|
34
35
|
return /*#__PURE__*/React.createElement(ContainerContext.Provider, {
|
|
35
36
|
value: contextValue
|
|
36
|
-
}, /*#__PURE__*/React.createElement(
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Box, _extends({
|
|
38
|
+
as: as
|
|
39
|
+
}, rest, {
|
|
37
40
|
ref: ref,
|
|
38
41
|
className: classes
|
|
39
42
|
}), children));
|
package/esm/Content/Content.d.ts
CHANGED
|
@@ -7,8 +7,5 @@ export type ContentProps = ComponentProps;
|
|
|
7
7
|
* For Internet Explorer 11 and lower, it's suggested that an ARIA role of "main"
|
|
8
8
|
* be added to the <main> element to ensure it is accessible
|
|
9
9
|
*/
|
|
10
|
-
declare const Content: import("../internals/types").InternalRefForwardingComponent<"main", Partial<
|
|
11
|
-
name: string;
|
|
12
|
-
componentAs: "main";
|
|
13
|
-
}>, never> & Record<string, never>;
|
|
10
|
+
declare const Content: import("../internals/types").InternalRefForwardingComponent<"main", Partial<ComponentProps>, never> & Record<string, never>;
|
|
14
11
|
export default Content;
|
package/esm/Content/Content.js
CHANGED
|
File without changes
|
|
@@ -11,6 +11,7 @@ import Stack from "../Stack/index.js";
|
|
|
11
11
|
import PredefinedRanges from "./PredefinedRanges.js";
|
|
12
12
|
import DateInput from "../DateInput/index.js";
|
|
13
13
|
import InputGroup from "../InputGroup/index.js";
|
|
14
|
+
import Box from "../internals/Box/index.js";
|
|
14
15
|
import useMonthView from "./hooks/useMonthView.js";
|
|
15
16
|
import useFocus from "./hooks/useFocus.js";
|
|
16
17
|
import useCustomizedInput from "./hooks/useCustomizedInput.js";
|
|
@@ -34,7 +35,7 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
34
35
|
propsWithDefaults
|
|
35
36
|
} = useCustom('DatePicker', props);
|
|
36
37
|
const {
|
|
37
|
-
as
|
|
38
|
+
as,
|
|
38
39
|
className,
|
|
39
40
|
classPrefix = 'picker',
|
|
40
41
|
calendarDefaultDate,
|
|
@@ -462,7 +463,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
462
463
|
onEnter: createChainedFunction(events.onActive, onEnter),
|
|
463
464
|
onExit: createChainedFunction(events.onInactive, onExit),
|
|
464
465
|
speaker: renderCalendarOverlay
|
|
465
|
-
}, /*#__PURE__*/React.createElement(
|
|
466
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
467
|
+
as: as,
|
|
466
468
|
className: merge(classes, {
|
|
467
469
|
[prefix('error')]: invalidValue
|
|
468
470
|
}),
|
|
@@ -15,6 +15,7 @@ import Header from "./Header.js";
|
|
|
15
15
|
import useDateDisabled from "./hooks/useDateDisabled.js";
|
|
16
16
|
import useCustomizedInput from "../DatePicker/hooks/useCustomizedInput.js";
|
|
17
17
|
import Calendar from "./Calendar.js";
|
|
18
|
+
import Box from "../internals/Box/index.js";
|
|
18
19
|
import * as StaticMethods from "./disabledDateUtils.js";
|
|
19
20
|
import { DateRangePickerProvider } from "./DateRangePickerProvider.js";
|
|
20
21
|
import { getSafeCalendarDate, getMonthHoverRange, getWeekHoverRange, isSameRange } from "./utils.js";
|
|
@@ -36,7 +37,7 @@ const DateRangePicker = forwardRef((props, ref) => {
|
|
|
36
37
|
propsWithDefaults
|
|
37
38
|
} = useCustom('DateRangePicker', props);
|
|
38
39
|
const {
|
|
39
|
-
as
|
|
40
|
+
as,
|
|
40
41
|
classPrefix = 'picker',
|
|
41
42
|
className,
|
|
42
43
|
appearance = 'default',
|
|
@@ -763,7 +764,8 @@ const DateRangePicker = forwardRef((props, ref) => {
|
|
|
763
764
|
onEnter: createChainedFunction(events.onActive, handleEnter, onEnter),
|
|
764
765
|
onExit: createChainedFunction(events.onInactive, handleExit, onExit),
|
|
765
766
|
speaker: renderCalendarOverlay
|
|
766
|
-
}, /*#__PURE__*/React.createElement(
|
|
767
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
768
|
+
as: as,
|
|
767
769
|
ref: root,
|
|
768
770
|
className: merge(classes, {
|
|
769
771
|
[prefix('error')]: invalidValue
|
package/esm/Divider/Divider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { Size, Color } from '../internals/types';
|
|
3
|
+
import type { BoxProps } from '../internals/Box';
|
|
4
|
+
export interface DividerProps extends BoxProps {
|
|
4
5
|
/**
|
|
5
6
|
* The appearance of the divider.
|
|
6
7
|
*/
|
package/esm/Drawer/Drawer.d.ts
CHANGED
|
@@ -12,11 +12,9 @@ export interface DrawerProps extends Omit<ModalProps, 'overflow'> {
|
|
|
12
12
|
* @see https://rsuitejs.com/components/drawer
|
|
13
13
|
*/
|
|
14
14
|
declare const Drawer: import("../internals/types").InternalRefForwardingComponent<"div", DrawerProps, never> & {
|
|
15
|
-
Body: import("../internals/types").InternalRefForwardingComponent<"div", import("
|
|
15
|
+
Body: import("../internals/types").InternalRefForwardingComponent<"div", import("..").BoxProps, never> & Record<string, never>;
|
|
16
16
|
Header: import("../internals/types").InternalRefForwardingComponent<"div", import("../Modal").ModalHeaderProps, never> & Record<string, never>;
|
|
17
|
-
Actions: import("../internals/types").InternalRefForwardingComponent<"div", Partial<
|
|
18
|
-
name: string;
|
|
19
|
-
}>, never> & Record<string, never>;
|
|
17
|
+
Actions: import("../internals/types").InternalRefForwardingComponent<"div", Partial<import("../internals/utils").ComponentProps>, never> & Record<string, never>;
|
|
20
18
|
Title: import("../internals/types").InternalRefForwardingComponent<"div", import("../internals/utils").ComponentProps, never> & Record<string, never>;
|
|
21
19
|
/**
|
|
22
20
|
* @deprecated use <Drawer.Actions> instead
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from '../internals/utils';
|
|
2
2
|
export type DrawerActionsProps = ComponentProps;
|
|
3
|
-
declare const DrawerActions: import("../internals/types").InternalRefForwardingComponent<"div", Partial<
|
|
4
|
-
name: string;
|
|
5
|
-
}>, never> & Record<string, never>;
|
|
3
|
+
declare const DrawerActions: import("../internals/types").InternalRefForwardingComponent<"div", Partial<ComponentProps>, never> & Record<string, never>;
|
|
6
4
|
export default DrawerActions;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ModalBodyProps } from '../Modal/ModalBody';
|
|
2
2
|
export type DrawerBodyProps = ModalBodyProps;
|
|
3
|
-
declare const DrawerBody: import("../internals/types").InternalRefForwardingComponent<"div",
|
|
3
|
+
declare const DrawerBody: import("../internals/types").InternalRefForwardingComponent<"div", import("..").BoxProps, never> & Record<string, never>;
|
|
4
4
|
export default DrawerBody;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IconProps } from '@rsuite/icons/Icon';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BoxProps } from '../internals/Box';
|
|
4
|
+
import type { HTMLPropsWithoutSelect } from '../internals/types';
|
|
4
5
|
import type { DeprecatedDropdownItemProps } from './types';
|
|
5
6
|
interface DeprecatedDropdownMenuItemProps extends DeprecatedDropdownItemProps {
|
|
6
7
|
/**
|
|
@@ -10,7 +11,7 @@ interface DeprecatedDropdownMenuItemProps extends DeprecatedDropdownItemProps {
|
|
|
10
11
|
*/
|
|
11
12
|
divider?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export interface DropdownMenuItemProps<T = any> extends
|
|
14
|
+
export interface DropdownMenuItemProps<T = any> extends BoxProps, DeprecatedDropdownMenuItemProps, HTMLPropsWithoutSelect {
|
|
14
15
|
/** Active the current option */
|
|
15
16
|
active?: boolean;
|
|
16
17
|
/** Disable the current option */
|
|
@@ -21,7 +21,7 @@ import { DropdownActionType } from "./DropdownState.js";
|
|
|
21
21
|
*/
|
|
22
22
|
const DropdownItem = forwardRef((props, ref) => {
|
|
23
23
|
const {
|
|
24
|
-
as
|
|
24
|
+
as = 'li',
|
|
25
25
|
active: activeProp,
|
|
26
26
|
classPrefix = 'dropdown-item',
|
|
27
27
|
className,
|
|
@@ -72,7 +72,7 @@ const DropdownItem = forwardRef((props, ref) => {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}, [internalId, selected, dispatch]);
|
|
75
|
-
const renderDropdownItem = useRenderMenuItem(
|
|
75
|
+
const renderDropdownItem = useRenderMenuItem(as);
|
|
76
76
|
|
|
77
77
|
// If using <Dropdown.Item> within <Nav>
|
|
78
78
|
// Suggest <Nav.Item>
|
package/esm/Footer/Footer.d.ts
CHANGED
|
@@ -4,8 +4,5 @@ export type FooterProps = ComponentProps;
|
|
|
4
4
|
* The `<Footer>` component is used to specify the footer of the page.
|
|
5
5
|
* @see https://rsuitejs.com/components/container/
|
|
6
6
|
*/
|
|
7
|
-
declare const Footer: import("../internals/types").InternalRefForwardingComponent<"footer", Partial<
|
|
8
|
-
name: string;
|
|
9
|
-
componentAs: "footer";
|
|
10
|
-
}>, never> & Record<string, never>;
|
|
7
|
+
declare const Footer: import("../internals/types").InternalRefForwardingComponent<"footer", Partial<ComponentProps>, never> & Record<string, never>;
|
|
11
8
|
export default Footer;
|
package/esm/Footer/Footer.js
CHANGED
|
File without changes
|
package/esm/Grid/Col.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BoxProps } from '../internals/Box';
|
|
2
|
+
import type { ResponsiveValue } from '../internals/types';
|
|
2
3
|
import type { DeprecatedColProps } from './types';
|
|
3
|
-
export interface ColProps extends
|
|
4
|
+
export interface ColProps extends BoxProps {
|
|
4
5
|
/** Grid column span for different breakpoints */
|
|
5
6
|
span?: number | 'auto' | ResponsiveValue<number | 'auto'>;
|
|
6
7
|
/** Grid column offset for different breakpoints */
|
package/esm/Grid/Col.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import omit from 'lodash/omit';
|
|
5
|
+
import Box from "../internals/Box/index.js";
|
|
5
6
|
import { forwardRef } from "../internals/utils/index.js";
|
|
6
7
|
import { BREAKPOINTS } from "../internals/constants/index.js";
|
|
7
8
|
import { useStyles } from "../internals/hooks/index.js";
|
|
@@ -15,7 +16,7 @@ const Col = forwardRef((props, ref) => {
|
|
|
15
16
|
propsWithDefaults
|
|
16
17
|
} = useCustom('Col', props);
|
|
17
18
|
const {
|
|
18
|
-
as
|
|
19
|
+
as,
|
|
19
20
|
classPrefix = 'col',
|
|
20
21
|
className,
|
|
21
22
|
span,
|
|
@@ -98,7 +99,9 @@ const Col = forwardRef((props, ref) => {
|
|
|
98
99
|
}, [prefix, rootPrefix, span, offset, push, pull, order, hidden, ...BREAKPOINTS.map(size => rest[size])]);
|
|
99
100
|
const classes = merge(className, withPrefix(), colClasses);
|
|
100
101
|
const unhandledProps = omit(rest, Object.keys(omitKeys));
|
|
101
|
-
return /*#__PURE__*/React.createElement(
|
|
102
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
103
|
+
as: as
|
|
104
|
+
}, unhandledProps, {
|
|
102
105
|
ref: ref,
|
|
103
106
|
className: classes
|
|
104
107
|
}));
|
package/esm/Grid/Grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface GridProps extends
|
|
1
|
+
import { BoxProps } from '../internals/Box';
|
|
2
|
+
export interface GridProps extends BoxProps {
|
|
3
3
|
/** Whether the grid container should have a fluid width */
|
|
4
4
|
fluid?: boolean;
|
|
5
5
|
}
|
package/esm/Grid/Grid.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
5
6
|
import { useStyles } from "../internals/hooks/index.js";
|
|
6
7
|
import { useCustom } from "../CustomProvider/index.js";
|
|
@@ -13,7 +14,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
13
14
|
propsWithDefaults
|
|
14
15
|
} = useCustom('Grid', props);
|
|
15
16
|
const {
|
|
16
|
-
as
|
|
17
|
+
as,
|
|
17
18
|
classPrefix = 'grid-container',
|
|
18
19
|
className,
|
|
19
20
|
fluid,
|
|
@@ -27,7 +28,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
27
28
|
const classes = merge(className, fluid ? prefix({
|
|
28
29
|
fluid
|
|
29
30
|
}) : withPrefix());
|
|
30
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
32
|
+
as: as
|
|
33
|
+
}, rest, {
|
|
31
34
|
ref: ref,
|
|
32
35
|
className: classes
|
|
33
36
|
}));
|
package/esm/Grid/Row.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BoxProps } from '../internals/Box';
|
|
2
|
+
import type { ResponsiveValue } from '../internals/types';
|
|
2
3
|
import type { RowAlignment, RowJustify } from './types';
|
|
3
|
-
export interface RowProps extends
|
|
4
|
+
export interface RowProps extends BoxProps {
|
|
4
5
|
/** Spacing between columns. Support responsive values */
|
|
5
6
|
gutter?: number | string | ResponsiveValue<number | string>;
|
|
6
7
|
/** Vertical alignment of columns. Support responsive values */
|
package/esm/Grid/Row.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { useStyles } from "../internals/hooks/index.js";
|
|
5
6
|
import { useCustom } from "../CustomProvider/index.js";
|
|
6
7
|
import { forwardRef, mergeStyles, getCssValue } from "../internals/utils/index.js";
|
|
@@ -17,9 +18,10 @@ const getResponsiveGutterStyles = gutter => {
|
|
|
17
18
|
return BREAKPOINTS.reduce((styles, breakpoint) => {
|
|
18
19
|
const breakpointValue = gutter[breakpoint];
|
|
19
20
|
if (!breakpointValue) return styles;
|
|
20
|
-
|
|
21
|
+
const newStyles = {
|
|
21
22
|
[`--rs-grid-gutter${breakpoint === 'xs' ? '' : `-${breakpoint}`}`]: getCssValue(breakpointValue)
|
|
22
|
-
}
|
|
23
|
+
};
|
|
24
|
+
return mergeStyles(styles, newStyles);
|
|
23
25
|
}, {});
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
@@ -31,7 +33,7 @@ const Row = forwardRef((props, ref) => {
|
|
|
31
33
|
propsWithDefaults
|
|
32
34
|
} = useCustom('Row', props);
|
|
33
35
|
const {
|
|
34
|
-
as
|
|
36
|
+
as,
|
|
35
37
|
className,
|
|
36
38
|
classPrefix = 'row',
|
|
37
39
|
style,
|
|
@@ -47,7 +49,9 @@ const Row = forwardRef((props, ref) => {
|
|
|
47
49
|
} = useStyles(classPrefix);
|
|
48
50
|
const classes = merge(className, withPrefix(), ...responsive(align), ...responsive(justify));
|
|
49
51
|
const rowStyles = mergeStyles(style, getResponsiveGutterStyles(gutter));
|
|
50
|
-
return /*#__PURE__*/React.createElement(
|
|
52
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
53
|
+
as: as
|
|
54
|
+
}, rest, {
|
|
51
55
|
ref: ref,
|
|
52
56
|
className: classes,
|
|
53
57
|
style: rowStyles
|
package/esm/Header/Header.d.ts
CHANGED
|
@@ -4,8 +4,5 @@ export type HeaderProps = ComponentProps;
|
|
|
4
4
|
* The `<Header>` component is used to specify the header of the page.
|
|
5
5
|
* @see https://rsuitejs.com/components/container/
|
|
6
6
|
*/
|
|
7
|
-
declare const Header: import("../internals/types").InternalRefForwardingComponent<"header", Partial<
|
|
8
|
-
name: string;
|
|
9
|
-
componentAs: "header";
|
|
10
|
-
}>, never> & Record<string, never>;
|
|
7
|
+
declare const Header: import("../internals/types").InternalRefForwardingComponent<"header", Partial<ComponentProps>, never> & Record<string, never>;
|
|
11
8
|
export default Header;
|
package/esm/Header/Header.js
CHANGED
|
File without changes
|
package/esm/Heading/Heading.d.ts
CHANGED
package/esm/Heading/Heading.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { forwardRef } from "../internals/utils/index.js";
|
|
5
6
|
import { useStyles } from "../internals/hooks/index.js";
|
|
6
7
|
import { useCustom } from "../CustomProvider/index.js";
|
|
@@ -26,8 +27,9 @@ const Heading = forwardRef((props, ref) => {
|
|
|
26
27
|
merge
|
|
27
28
|
} = useStyles(classPrefix);
|
|
28
29
|
const classes = merge(className, withPrefix());
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
31
|
+
as: as || `h${level}`
|
|
32
|
+
}, rest, {
|
|
31
33
|
ref: ref,
|
|
32
34
|
className: classes
|
|
33
35
|
}));
|
|
@@ -4,8 +4,5 @@ export type HeadingGroupProps = ComponentProps;
|
|
|
4
4
|
* HeadingGroup is a group of headings.
|
|
5
5
|
* @see https://rsuitejs.com/components/heading
|
|
6
6
|
*/
|
|
7
|
-
declare const HeadingGroup: import("../internals/types").InternalRefForwardingComponent<"hgroup", Partial<
|
|
8
|
-
name: string;
|
|
9
|
-
componentAs: "hgroup";
|
|
10
|
-
}>, never> & Record<string, never>;
|
|
7
|
+
declare const HeadingGroup: import("../internals/types").InternalRefForwardingComponent<"hgroup", Partial<ComponentProps>, never> & Record<string, never>;
|
|
11
8
|
export default HeadingGroup;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export interface HighlightProps extends
|
|
2
|
+
import { BoxProps } from '../internals/Box';
|
|
3
|
+
export interface HighlightProps extends BoxProps {
|
|
4
4
|
query?: string | string[];
|
|
5
5
|
renderMark?: (match: string, index: number) => React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import Box from "../internals/Box/index.js";
|
|
4
5
|
import { useStyles } from "../internals/hooks/index.js";
|
|
5
6
|
import { highlightText } from "./utils/highlightText.js";
|
|
6
7
|
import { forwardRef, stringifyReactNode } from "../internals/utils/index.js";
|
|
@@ -23,7 +24,7 @@ const Highlight = forwardRef((props, ref) => {
|
|
|
23
24
|
propsWithDefaults
|
|
24
25
|
} = useCustom('Highlight', props);
|
|
25
26
|
const {
|
|
26
|
-
as
|
|
27
|
+
as,
|
|
27
28
|
classPrefix = 'highlight',
|
|
28
29
|
className,
|
|
29
30
|
children,
|
|
@@ -37,7 +38,8 @@ const Highlight = forwardRef((props, ref) => {
|
|
|
37
38
|
} = useStyles(classPrefix);
|
|
38
39
|
const classes = merge(className, withPrefix());
|
|
39
40
|
const text = stringifyReactNode(children);
|
|
40
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
42
|
+
as: as,
|
|
41
43
|
ref: ref,
|
|
42
44
|
className: classes
|
|
43
45
|
}, rest), highlightText(text, {
|