rsuite 5.62.1 → 5.63.0-alpha.2
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/AccordionPanel/package.json +7 -0
- package/Animation/styles/animation.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/Badge/styles/index.css +0 -0
- package/Badge/styles/index.less +0 -0
- package/Bounce/package.json +7 -0
- package/Breadcrumb/styles/index.css +0 -0
- package/Breadcrumb/styles/index.less +0 -0
- package/BreadcrumbItem/package.json +7 -0
- package/ButtonGroup/styles/index.css +0 -0
- package/ButtonGroup/styles/index.less +0 -0
- package/CHANGELOG.md +16 -0
- package/Carousel/styles/index.css +0 -0
- package/Carousel/styles/index.less +0 -0
- package/Collapse/package.json +7 -0
- package/Container/styles/index.css +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.css +0 -0
- package/Content/styles/index.less +0 -0
- package/DatePicker/styles/mixin.less +0 -0
- package/Divider/styles/index.css +0 -0
- package/Divider/styles/index.less +0 -0
- package/Drawer/styles/mixin.less +0 -0
- package/DrawerActions/package.json +7 -0
- package/DrawerBody/package.json +7 -0
- package/DrawerFooter/package.json +7 -0
- package/DrawerHeader/package.json +7 -0
- package/DrawerTitle/package.json +7 -0
- package/DropdownItem/package.json +7 -0
- package/DropdownMenu/package.json +7 -0
- package/DropdownSeparator/package.json +7 -0
- package/Fade/package.json +7 -0
- package/FlexboxGrid/styles/index.css +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/FlexboxGridItem/package.json +7 -0
- package/Footer/styles/index.css +0 -0
- package/Footer/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/FormHelpText/styles/index.css +0 -0
- package/FormHelpText/styles/index.less +0 -0
- package/Grid/styles/grid-framework.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Header/styles/index.css +0 -0
- package/Header/styles/index.less +0 -0
- package/IconButton/styles/index.css +0 -0
- package/IconButton/styles/index.less +0 -0
- package/Input/styles/index.css +0 -0
- package/Input/styles/index.less +0 -0
- package/InputGroupAddon/package.json +7 -0
- package/InputGroupButton/package.json +7 -0
- package/InputNumber/styles/index.css +0 -0
- package/InputNumber/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +0 -0
- package/List/styles/index.css +0 -0
- package/List/styles/index.less +0 -0
- package/ListItem/package.json +7 -0
- package/Loader/styles/index.css +0 -0
- package/Loader/styles/index.less +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Modal/styles/mixin.less +0 -0
- package/ModalBody/package.json +7 -0
- package/ModalDialog/package.json +7 -0
- package/ModalFooter/package.json +7 -0
- package/ModalHeader/package.json +7 -0
- package/ModalTitle/package.json +7 -0
- package/NavItem/package.json +7 -0
- package/NavMenu/package.json +7 -0
- package/NavbarBrand/package.json +7 -0
- package/Notification/styles/mixin.less +0 -0
- package/Pagination/styles/mixin.less +0 -0
- package/PanelGroup/styles/index.css +0 -0
- package/PanelGroup/styles/index.less +0 -0
- package/PlaceholderGraph/package.json +7 -0
- package/PlaceholderGrid/package.json +7 -0
- package/PlaceholderParagraph/package.json +7 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/Progress/styles/index.css +0 -0
- package/Progress/styles/index.less +0 -0
- package/ProgressCircle/package.json +7 -0
- package/ProgressLine/package.json +7 -0
- package/README.md +2 -2
- package/Radio/styles/mixin.less +0 -0
- package/Row/styles/index.css +0 -0
- package/Row/styles/index.less +0 -0
- package/Sidebar/styles/index.css +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/SidenavBody/package.json +7 -0
- package/SidenavHeader/package.json +7 -0
- package/SidenavToggle/package.json +7 -0
- package/Slide/package.json +7 -0
- package/Stack/styles/index.css +0 -0
- package/Stack/styles/index.less +0 -0
- package/StackItem/package.json +7 -0
- package/StepItem/package.json +7 -0
- package/Tab/package.json +7 -0
- package/Table/styles/index.css +0 -0
- package/Table/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/TableCell/package.json +7 -0
- package/TableColumn/package.json +7 -0
- package/TableColumnGroup/package.json +7 -0
- package/TableHeaderCell/package.json +7 -0
- package/Timeline/styles/mixin.less +0 -0
- package/TimelineItem/package.json +7 -0
- package/Toggle/styles/index.css +126 -0
- package/Toggle/styles/index.less +18 -0
- package/Toggle/styles/mixin.less +19 -4
- package/Tooltip/styles/index.css +0 -0
- package/Tooltip/styles/index.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/Transition/package.json +7 -0
- package/Uploader/styles/mixin.less +0 -0
- package/cjs/Accordion/Accordion.d.ts +2 -2
- package/cjs/Accordion/Accordion.js +2 -2
- package/cjs/Accordion/AccordionPanel.d.ts +2 -0
- package/cjs/Accordion/AccordionPanel.js +8 -0
- package/cjs/Affix/index.js +0 -0
- package/cjs/Animation/index.js +0 -0
- package/cjs/Animation/utils.js +0 -0
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/Avatar/index.js +0 -0
- package/cjs/AvatarGroup/index.js +0 -0
- package/cjs/Badge/index.js +0 -0
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonGroup/index.js +0 -0
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Calendar/CalendarContext.js +0 -0
- package/cjs/Calendar/index.js +0 -0
- package/cjs/Calendar/useCalendarState.js +0 -0
- package/cjs/Carousel/index.js +0 -0
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/index.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/index.js +0 -0
- package/cjs/Content/index.js +0 -0
- package/cjs/CustomProvider/index.js +0 -0
- package/cjs/DOMHelper/isElement.js +0 -0
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/Drawer.d.ts +7 -7
- package/cjs/Drawer/Drawer.js +16 -46
- package/cjs/Drawer/DrawerActions.d.ts +4 -0
- package/cjs/Drawer/DrawerActions.js +10 -0
- package/cjs/Drawer/DrawerBody.d.ts +4 -0
- package/cjs/Drawer/DrawerBody.js +17 -0
- package/cjs/Drawer/DrawerFooter.d.ts +4 -0
- package/cjs/Drawer/DrawerFooter.js +17 -0
- package/cjs/Drawer/DrawerHeader.d.ts +4 -0
- package/cjs/Drawer/DrawerHeader.js +17 -0
- package/cjs/Drawer/DrawerTitle.d.ts +4 -0
- package/cjs/Drawer/DrawerTitle.js +17 -0
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/DropdownContext.js +0 -0
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/Dropdown/useRenderDropdownItem.js +0 -0
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/Form/Form.js +0 -1
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/Grid/index.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/IconButton/index.js +0 -0
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/List/helper/AutoScroller.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/index.js +0 -0
- package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
- package/cjs/MaskedInput/conformToMask.js +0 -0
- package/cjs/MaskedInput/index.js +0 -0
- package/cjs/MaskedInput/types.js +0 -0
- package/cjs/MaskedInput/utilities.js +0 -0
- package/cjs/Message/index.js +0 -0
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/NavContext.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/index.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/index.js +0 -0
- package/cjs/Rate/utils.js +0 -0
- package/cjs/Row/index.js +0 -0
- package/cjs/SafeAnchor/index.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/SelectPicker/index.js +0 -0
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/Node.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/Input.js +0 -0
- package/cjs/Slider/index.js +0 -0
- package/cjs/Stack/index.js +0 -0
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/Table.d.ts +3 -2
- package/cjs/Table/Table.js +8 -4
- package/cjs/Table/TableCell.d.ts +2 -0
- package/cjs/Table/TableCell.js +7 -0
- package/cjs/Table/TableColumn.d.ts +2 -0
- package/cjs/Table/TableColumn.js +7 -0
- package/cjs/Table/TableColumnGroup.d.ts +2 -0
- package/cjs/Table/TableColumnGroup.js +7 -0
- package/cjs/Table/TableHeaderCell.d.ts +2 -0
- package/cjs/Table/TableHeaderCell.js +7 -0
- package/cjs/Tag/index.js +0 -0
- package/cjs/TagGroup/index.js +0 -0
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/Toggle.d.ts +38 -12
- package/cjs/Toggle/Toggle.js +18 -7
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Uploader/index.js +0 -0
- package/cjs/Whisper/index.js +0 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +3 -1
- package/cjs/locales/en_GB.js +0 -0
- package/cjs/toaster/ToastContext.js +0 -0
- package/cjs/useBreakpointValue/index.d.ts +2 -0
- package/cjs/useBreakpointValue/index.js +8 -0
- package/cjs/useBreakpointValue/useBreakpointValue.d.ts +22 -0
- package/cjs/useBreakpointValue/useBreakpointValue.js +31 -0
- package/cjs/useMediaQuery/index.d.ts +1 -0
- package/cjs/useMediaQuery/useMediaQuery.d.ts +7 -4
- package/cjs/useMediaQuery/useMediaQuery.js +18 -11
- package/dist/rsuite-no-reset-rtl.css +84 -0
- 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 +84 -0
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +84 -0
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +84 -0
- package/dist/rsuite.js +348 -216
- 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.d.ts +2 -2
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/Accordion/AccordionPanel.d.ts +2 -0
- package/esm/Accordion/AccordionPanel.js +3 -0
- package/esm/Affix/index.js +0 -0
- package/esm/Animation/index.js +0 -0
- package/esm/Animation/utils.js +0 -0
- package/esm/AutoComplete/index.js +0 -0
- package/esm/Avatar/index.js +0 -0
- package/esm/AvatarGroup/index.js +0 -0
- package/esm/Badge/index.js +0 -0
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/index.js +0 -0
- package/esm/ButtonGroup/index.js +0 -0
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Calendar/CalendarContext.js +0 -0
- package/esm/Calendar/index.js +0 -0
- package/esm/Calendar/useCalendarState.js +0 -0
- package/esm/Carousel/index.js +0 -0
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/index.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/index.js +0 -0
- package/esm/Content/index.js +0 -0
- package/esm/CustomProvider/index.js +0 -0
- package/esm/DOMHelper/isElement.js +0 -0
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/Drawer.d.ts +7 -7
- package/esm/Drawer/Drawer.js +6 -36
- package/esm/Drawer/DrawerActions.d.ts +4 -0
- package/esm/Drawer/DrawerActions.js +6 -0
- package/esm/Drawer/DrawerBody.d.ts +4 -0
- package/esm/Drawer/DrawerBody.js +12 -0
- package/esm/Drawer/DrawerFooter.d.ts +4 -0
- package/esm/Drawer/DrawerFooter.js +12 -0
- package/esm/Drawer/DrawerHeader.d.ts +4 -0
- package/esm/Drawer/DrawerHeader.js +12 -0
- package/esm/Drawer/DrawerTitle.d.ts +4 -0
- package/esm/Drawer/DrawerTitle.js +12 -0
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/DropdownContext.js +0 -0
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/Dropdown/useRenderDropdownItem.js +0 -0
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/Form/Form.js +0 -1
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormHelpText/index.js +0 -0
- package/esm/Grid/index.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/IconButton/index.js +0 -0
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/index.js +0 -0
- package/esm/List/helper/AutoScroller.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/index.js +0 -0
- package/esm/MaskedInput/adjustCaretPosition.js +0 -0
- package/esm/MaskedInput/conformToMask.js +0 -0
- package/esm/MaskedInput/index.js +0 -0
- package/esm/MaskedInput/types.js +0 -0
- package/esm/MaskedInput/utilities.js +0 -0
- package/esm/Message/index.js +0 -0
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/NavContext.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/index.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Placeholder/index.js +0 -0
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/index.js +0 -0
- package/esm/Rate/utils.js +0 -0
- package/esm/Row/index.js +0 -0
- package/esm/SafeAnchor/index.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/SelectPicker/index.js +0 -0
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/Node.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/Input.js +0 -0
- package/esm/Slider/index.js +0 -0
- package/esm/Stack/index.js +0 -0
- package/esm/Steps/index.js +0 -0
- package/esm/Table/Table.d.ts +3 -2
- package/esm/Table/Table.js +9 -5
- package/esm/Table/TableCell.d.ts +2 -0
- package/esm/Table/TableCell.js +3 -0
- package/esm/Table/TableColumn.d.ts +2 -0
- package/esm/Table/TableColumn.js +3 -0
- package/esm/Table/TableColumnGroup.d.ts +2 -0
- package/esm/Table/TableColumnGroup.js +3 -0
- package/esm/Table/TableHeaderCell.d.ts +2 -0
- package/esm/Table/TableHeaderCell.js +3 -0
- package/esm/Tag/index.js +0 -0
- package/esm/TagGroup/index.js +0 -0
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/Toggle.d.ts +38 -12
- package/esm/Toggle/Toggle.js +20 -9
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/index.js +0 -0
- package/esm/Uploader/index.js +0 -0
- package/esm/Whisper/index.js +0 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +4 -1
- package/esm/locales/en_GB.js +0 -0
- package/esm/toaster/ToastContext.js +0 -0
- package/esm/useBreakpointValue/index.d.ts +2 -0
- package/esm/useBreakpointValue/index.js +3 -0
- package/esm/useBreakpointValue/useBreakpointValue.d.ts +22 -0
- package/esm/useBreakpointValue/useBreakpointValue.js +25 -0
- package/esm/useMediaQuery/index.d.ts +1 -0
- package/esm/useMediaQuery/useMediaQuery.d.ts +7 -4
- package/esm/useMediaQuery/useMediaQuery.js +17 -10
- package/package.json +1 -1
- package/styles/color-modes.less +0 -0
- package/styles/colors/dark.less +0 -0
- package/styles/colors/high-contrast.less +0 -0
- package/styles/colors/light.less +0 -0
- package/styles/common.less +0 -0
- package/styles/mixins/color-modes.less +0 -0
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/menu.less +0 -0
- package/styles/mixins/utilities.less +0 -0
- package/styles/plugins/palette.js +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/toaster/styles/animation.less +0 -0
- package/useBreakpointValue/package.json +7 -0
- package/internals/package.json +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PanelGroupProps } from '../PanelGroup';
|
|
2
|
-
import
|
|
2
|
+
import AccordionPanel from './AccordionPanel';
|
|
3
3
|
import { RsRefForwardingComponent } from '../internals/types';
|
|
4
4
|
export type AccordionProps = Omit<PanelGroupProps, 'accordion'>;
|
|
5
5
|
export interface AccordionComponent extends RsRefForwardingComponent<'div', AccordionProps> {
|
|
6
|
-
Panel: typeof
|
|
6
|
+
Panel: typeof AccordionPanel;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* The `Accordion` component is used to display content that can be collapsed.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PanelGroup from "../PanelGroup/index.js";
|
|
5
|
-
import
|
|
5
|
+
import AccordionPanel from "./AccordionPanel.js";
|
|
6
6
|
/**
|
|
7
7
|
* The `Accordion` component is used to display content that can be collapsed.
|
|
8
8
|
* @see https://rsuitejs.com/components/accordion
|
|
@@ -13,6 +13,6 @@ var Accordion = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
13
13
|
ref: ref
|
|
14
14
|
}, props));
|
|
15
15
|
});
|
|
16
|
-
Accordion.Panel =
|
|
16
|
+
Accordion.Panel = AccordionPanel;
|
|
17
17
|
Accordion.displayName = 'Accordion';
|
|
18
18
|
export default Accordion;
|
package/esm/Affix/index.js
CHANGED
|
File without changes
|
package/esm/Animation/index.js
CHANGED
|
File without changes
|
package/esm/Animation/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Avatar/index.js
CHANGED
|
File without changes
|
package/esm/AvatarGroup/index.js
CHANGED
|
File without changes
|
package/esm/Badge/index.js
CHANGED
|
File without changes
|
package/esm/Breadcrumb/index.js
CHANGED
|
File without changes
|
package/esm/Button/index.js
CHANGED
|
File without changes
|
package/esm/ButtonGroup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Calendar/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Carousel/index.js
CHANGED
|
File without changes
|
package/esm/Cascader/index.js
CHANGED
|
File without changes
|
package/esm/CheckPicker/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Col/index.js
CHANGED
|
File without changes
|
package/esm/Container/index.js
CHANGED
|
File without changes
|
package/esm/Content/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Divider/index.js
CHANGED
|
File without changes
|
package/esm/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ModalProps
|
|
3
|
-
import { TypeAttributes
|
|
2
|
+
import { ModalProps } from '../Modal';
|
|
3
|
+
import { TypeAttributes } from '../internals/types';
|
|
4
|
+
import DrawerBody from './DrawerBody';
|
|
5
|
+
import DrawerHeader from './DrawerHeader';
|
|
6
|
+
import DrawerActions from './DrawerActions';
|
|
7
|
+
import DrawerFooter from './DrawerFooter';
|
|
8
|
+
import DrawerTitle from './DrawerTitle';
|
|
4
9
|
export interface DrawerProps extends ModalProps {
|
|
5
10
|
/** The placement of Drawer */
|
|
6
11
|
placement?: TypeAttributes.Placement4;
|
|
7
12
|
/** Custom close button */
|
|
8
13
|
closeButton?: React.ReactNode | boolean;
|
|
9
14
|
}
|
|
10
|
-
declare const DrawerBody: RsRefForwardingComponent<'div', ModalBodyProps>;
|
|
11
|
-
declare const DrawerHeader: RsRefForwardingComponent<'div', ModalHeaderProps>;
|
|
12
|
-
declare const DrawerActions: RsRefForwardingComponent<'div', ModalFooterProps>;
|
|
13
|
-
declare const DrawerFooter: RsRefForwardingComponent<'div', ModalFooterProps>;
|
|
14
|
-
declare const DrawerTitle: RsRefForwardingComponent<'div', ModalTitleProps>;
|
|
15
15
|
interface DrawerComponent extends React.FC<DrawerProps> {
|
|
16
16
|
Body: typeof DrawerBody;
|
|
17
17
|
Header: typeof DrawerHeader;
|
package/esm/Drawer/Drawer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
var _excluded = ["className", "placement", "classPrefix", "animation", "closeButton"];
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -10,41 +10,11 @@ import { useClassNames } from "../internals/hooks/index.js";
|
|
|
10
10
|
import { deprecateComponent } from "../internals/utils/index.js";
|
|
11
11
|
import DrawerContext from "./DrawerContext.js";
|
|
12
12
|
import { oneOf } from "../internals/propTypes/index.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}));
|
|
19
|
-
});
|
|
20
|
-
var DrawerHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
21
|
-
return /*#__PURE__*/React.createElement(Modal.Header, _extends({
|
|
22
|
-
classPrefix: "drawer-header"
|
|
23
|
-
}, props, {
|
|
24
|
-
ref: ref
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
var DrawerActions = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(Modal.Footer, _extends({
|
|
29
|
-
classPrefix: "drawer-actions"
|
|
30
|
-
}, props, {
|
|
31
|
-
ref: ref
|
|
32
|
-
}));
|
|
33
|
-
});
|
|
34
|
-
var DrawerFooter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(Modal.Footer, _extends({
|
|
36
|
-
classPrefix: "drawer-footer"
|
|
37
|
-
}, props, {
|
|
38
|
-
ref: ref
|
|
39
|
-
}));
|
|
40
|
-
});
|
|
41
|
-
var DrawerTitle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
42
|
-
return /*#__PURE__*/React.createElement(Modal.Title, _extends({
|
|
43
|
-
classPrefix: "drawer-title"
|
|
44
|
-
}, props, {
|
|
45
|
-
ref: ref
|
|
46
|
-
}));
|
|
47
|
-
});
|
|
13
|
+
import DrawerBody from "./DrawerBody.js";
|
|
14
|
+
import DrawerHeader from "./DrawerHeader.js";
|
|
15
|
+
import DrawerActions from "./DrawerActions.js";
|
|
16
|
+
import DrawerFooter from "./DrawerFooter.js";
|
|
17
|
+
import DrawerTitle from "./DrawerTitle.js";
|
|
48
18
|
/**
|
|
49
19
|
* The Drawer component is used to display extra content from a main content.
|
|
50
20
|
* @see https://rsuitejs.com/components/drawer
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ModalBody from "../Modal/ModalBody.js";
|
|
5
|
+
var DrawerBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(ModalBody, _extends({
|
|
7
|
+
classPrefix: "drawer-body"
|
|
8
|
+
}, props, {
|
|
9
|
+
ref: ref
|
|
10
|
+
}));
|
|
11
|
+
});
|
|
12
|
+
export default DrawerBody;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ModalFooter from "../Modal/ModalFooter.js";
|
|
5
|
+
var DrawerFooter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(ModalFooter, _extends({
|
|
7
|
+
classPrefix: "drawer-footer"
|
|
8
|
+
}, props, {
|
|
9
|
+
ref: ref
|
|
10
|
+
}));
|
|
11
|
+
});
|
|
12
|
+
export default DrawerFooter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ModalHeader from "../Modal/ModalHeader.js";
|
|
5
|
+
var DrawerHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(ModalHeader, _extends({
|
|
7
|
+
classPrefix: "drawer-header"
|
|
8
|
+
}, props, {
|
|
9
|
+
ref: ref
|
|
10
|
+
}));
|
|
11
|
+
});
|
|
12
|
+
export default DrawerHeader;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ModalTitle from "../Modal/ModalTitle.js";
|
|
5
|
+
var DrawerTitle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(ModalTitle, _extends({
|
|
7
|
+
classPrefix: "drawer-title"
|
|
8
|
+
}, props, {
|
|
9
|
+
ref: ref
|
|
10
|
+
}));
|
|
11
|
+
});
|
|
12
|
+
export default DrawerTitle;
|
package/esm/Drawer/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Dropdown/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/FlexboxGrid/index.js
CHANGED
|
File without changes
|
package/esm/Footer/index.js
CHANGED
|
File without changes
|
package/esm/Form/Form.js
CHANGED
|
@@ -188,7 +188,6 @@ Form.ControlLabel = FormControlLabel;
|
|
|
188
188
|
Form.ErrorMessage = FormErrorMessage;
|
|
189
189
|
Form.Group = FormGroup;
|
|
190
190
|
Form.HelpText = FormHelpText;
|
|
191
|
-
Form.Control = FormControl;
|
|
192
191
|
Form.displayName = 'Form';
|
|
193
192
|
Form.propTypes = {
|
|
194
193
|
className: PropTypes.string,
|
package/esm/FormControl/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Grid/index.js
CHANGED
|
File without changes
|
package/esm/Header/index.js
CHANGED
|
File without changes
|
package/esm/IconButton/index.js
CHANGED
|
File without changes
|
package/esm/Input/index.js
CHANGED
|
File without changes
|
package/esm/InputGroup/index.js
CHANGED
|
File without changes
|
package/esm/InputNumber/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/List/index.js
CHANGED
|
File without changes
|
package/esm/Loader/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/MaskedInput/index.js
CHANGED
|
File without changes
|
package/esm/MaskedInput/types.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Message/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Nav/NavContext.js
CHANGED
|
File without changes
|
package/esm/Nav/index.js
CHANGED
|
File without changes
|
package/esm/Navbar/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Pagination/index.js
CHANGED
|
File without changes
|
package/esm/Panel/index.js
CHANGED
|
File without changes
|
package/esm/PanelGroup/index.js
CHANGED
|
File without changes
|
package/esm/Placeholder/index.js
CHANGED
|
File without changes
|
package/esm/Popover/index.js
CHANGED
|
File without changes
|
package/esm/Progress/index.js
CHANGED
|
File without changes
|
package/esm/Radio/index.js
CHANGED
|
File without changes
|
package/esm/RadioGroup/index.js
CHANGED
|
File without changes
|
package/esm/RangeSlider/index.js
CHANGED
|
File without changes
|
package/esm/Rate/index.js
CHANGED
|
File without changes
|
package/esm/Rate/utils.js
CHANGED
|
File without changes
|
package/esm/Row/index.js
CHANGED
|
File without changes
|
package/esm/SafeAnchor/index.js
CHANGED
|
File without changes
|
package/esm/Schema/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Sidebar/index.js
CHANGED
|
File without changes
|
package/esm/Sidenav/Node.js
CHANGED
|
File without changes
|
package/esm/Sidenav/index.js
CHANGED
|
File without changes
|
package/esm/Slider/Input.js
CHANGED
|
File without changes
|
package/esm/Slider/index.js
CHANGED
|
File without changes
|
package/esm/Stack/index.js
CHANGED
|
File without changes
|
package/esm/Steps/index.js
CHANGED
|
File without changes
|
package/esm/Table/Table.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TableProps, RowDataType, TableInstance, CellProps as TableCellProps, RowKeyType } from 'rsuite-table';
|
|
3
|
+
import TableColumn from './TableColumn';
|
|
3
4
|
export interface CellProps<Row extends RowDataType> extends Omit<TableCellProps<Row>, 'rowData' | 'dataKey'> {
|
|
4
5
|
/** Data binding key, but also a sort of key */
|
|
5
6
|
dataKey?: string | keyof Row;
|
|
@@ -19,7 +20,7 @@ declare const Table: (<Row extends RowDataType<any>, Key extends RowKeyType>(pro
|
|
|
19
20
|
/**
|
|
20
21
|
* The `Table.Column` component is used to define a column in a table.
|
|
21
22
|
*/
|
|
22
|
-
Column: typeof
|
|
23
|
+
Column: typeof TableColumn;
|
|
23
24
|
/**
|
|
24
25
|
* The `Table.HeaderCell` component is used to define a header cell in a table.
|
|
25
26
|
*/
|
package/esm/Table/Table.js
CHANGED
|
@@ -3,8 +3,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
var _excluded = ["locale", "loadAnimation"];
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { Table as RsTable
|
|
6
|
+
import { Table as RsTable } from 'rsuite-table';
|
|
7
7
|
import { useCustom } from "../internals/hooks/index.js";
|
|
8
|
+
import TableCell from "./TableCell.js";
|
|
9
|
+
import TableHeaderCell from "./TableHeaderCell.js";
|
|
10
|
+
import TableColumn from "./TableColumn.js";
|
|
11
|
+
import TableColumnGroup from "./TableColumnGroup.js";
|
|
8
12
|
var CustomTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
13
|
var localeProp = props.locale,
|
|
10
14
|
_props$loadAnimation = props.loadAnimation,
|
|
@@ -30,18 +34,18 @@ var Table = Object.assign(CustomTable, {
|
|
|
30
34
|
/**
|
|
31
35
|
* The `Table.Cell` component is used to display data in a table cell.
|
|
32
36
|
*/
|
|
33
|
-
Cell:
|
|
37
|
+
Cell: TableCell,
|
|
34
38
|
/**
|
|
35
39
|
* The `Table.Column` component is used to define a column in a table.
|
|
36
40
|
*/
|
|
37
|
-
Column:
|
|
41
|
+
Column: TableColumn,
|
|
38
42
|
/**
|
|
39
43
|
* The `Table.HeaderCell` component is used to define a header cell in a table.
|
|
40
44
|
*/
|
|
41
|
-
HeaderCell:
|
|
45
|
+
HeaderCell: TableHeaderCell,
|
|
42
46
|
/**
|
|
43
47
|
* The `Table.ColumnGroup` component is used to define a column group in a table.
|
|
44
48
|
*/
|
|
45
|
-
ColumnGroup:
|
|
49
|
+
ColumnGroup: TableColumnGroup
|
|
46
50
|
});
|
|
47
51
|
export default Table;
|
package/esm/Tag/index.js
CHANGED
|
File without changes
|
package/esm/TagGroup/index.js
CHANGED
|
File without changes
|
package/esm/Timeline/index.js
CHANGED
|
File without changes
|
package/esm/Toggle/Toggle.d.ts
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WithAsProps, TypeAttributes, RsRefForwardingComponent } from '../internals/types';
|
|
3
3
|
import { ToggleLocale } from '../locales';
|
|
4
|
-
export interface ToggleProps extends WithAsProps {
|
|
5
|
-
/**
|
|
4
|
+
export interface ToggleProps extends WithAsProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
|
|
5
|
+
/**
|
|
6
|
+
* The color of the toggle.
|
|
7
|
+
*/
|
|
8
|
+
color?: TypeAttributes.Color;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to disabled toggle
|
|
11
|
+
*/
|
|
6
12
|
disabled?: boolean;
|
|
7
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Render the control as plain text
|
|
15
|
+
*/
|
|
8
16
|
plaintext?: boolean;
|
|
9
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Make the control readonly
|
|
19
|
+
*/
|
|
10
20
|
readOnly?: boolean;
|
|
11
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Whether the checked state is being updated
|
|
23
|
+
*/
|
|
12
24
|
loading?: boolean;
|
|
13
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Whether the toggle is checked (Controlled)
|
|
27
|
+
*/
|
|
14
28
|
checked?: boolean;
|
|
15
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Whether the toggle is checked (Uncontrolled)
|
|
31
|
+
*/
|
|
16
32
|
defaultChecked?: boolean;
|
|
17
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Checked display content
|
|
35
|
+
*/
|
|
18
36
|
checkedChildren?: React.ReactNode;
|
|
19
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Unchecked display content
|
|
39
|
+
*/
|
|
20
40
|
unCheckedChildren?: React.ReactNode;
|
|
21
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The size of the toggle
|
|
43
|
+
*/
|
|
22
44
|
size?: Omit<TypeAttributes.Size, 'xs'>;
|
|
23
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Custom locale
|
|
47
|
+
*/
|
|
24
48
|
locale?: ToggleLocale;
|
|
25
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Called when the state of the toggle changes
|
|
51
|
+
*/
|
|
26
52
|
onChange?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
53
|
}
|
|
28
54
|
/**
|