@ringcentral/juno 3.0.0-alpha.7 → 3.0.0-alpha.9
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/components/Accordion/Accordion.d.ts +2 -2
- package/components/Accordion/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/components/Accordion/AccordionSummary/AccordionSummary.d.ts +2 -2
- package/components/Alert/Alert.d.ts +2 -2
- package/components/AppBar/AppBar.d.ts +2 -2
- package/components/Avatar/styles/StyledAvatar.d.ts +3 -1
- package/components/Avatar/styles/StyledAvatarWrapper.d.ts +24 -1
- package/components/Avatar/styles/StyledIconAvatar.d.ts +7 -1
- package/components/Avatar/styles/StyledPresenceWrapper.d.ts +7 -1
- package/components/Backdrop/Backdrop.d.ts +2 -2
- package/components/Badge/Badge.d.ts +2 -2
- package/components/Badge/styles/BadgeStyle.d.ts +1 -1
- package/components/Buttons/Button/Button.d.ts +324 -1
- package/components/Buttons/ButtonBase/ButtonBase.d.ts +1 -1
- package/components/Buttons/ButtonGroup/ButtonGroup.d.ts +15 -2
- package/components/Buttons/IconButton/IconButton.d.ts +386 -1
- package/components/Buttons/IconButton/styles/StyledIconButton.d.ts +1 -1
- package/components/Buttons/IconButtonGroup/IconButtonGroup.d.ts +1 -1
- package/components/Buttons/SplitButton/SplitButton.d.ts +1 -1
- package/components/Buttons/SplitButton/styles/StyledArrowIcon.d.ts +2 -1
- package/components/Buttons/ToggleButton/ToggleButton.d.ts +6 -2
- package/components/Buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/components/Card/Card/Card.d.ts +2 -2
- package/components/Card/CardActionArea/CardActionArea.d.ts +8 -2
- package/components/Card/CardActions/CardActions.d.ts +2 -2
- package/components/Card/CardContent/CardContent.d.ts +6 -2
- package/components/Card/CardHeader/CardHeader.d.ts +22 -2
- package/components/Card/CardHoverActions/CardHoverActions.d.ts +2 -2
- package/components/Card/CardMedia/CardMedia.d.ts +14 -2
- package/components/Card/CardSelectionArea/CardSelectionArea.d.ts +2 -2
- package/components/Chip/Chip.d.ts +8 -2
- package/components/DetachedWindow/styles/DetachedWindowStyle.d.ts +1 -1
- package/components/Dialer/DialPad/DialPad.d.ts +63 -2
- package/components/Dialer/DialPadButton/DialPadButton.d.ts +2 -1
- package/components/Dialer/DialPadButton/styles/StyledDialPadButton.d.ts +1 -1
- package/components/Dialer/DialTextField/DialTextField.d.ts +2 -1
- package/components/Dialog/Dialog.d.ts +2 -2
- package/components/Dialog/DialogActions/DialogActions.d.ts +277 -2
- package/components/Dialog/DialogContent/DialogContent.d.ts +4 -2
- package/components/Dialog/DialogContentText/DialogContentText.d.ts +14 -2
- package/components/Dialog/DialogTitle/DialogTitle.d.ts +4 -2
- package/components/Divider/Divider.d.ts +14 -1
- package/components/DnD/DragDropContext/styles/StyledGlobalDraggable.d.ts +1 -1
- package/components/DnD/DragHandle/DragHandle.d.ts +4 -1
- package/components/DnD/Draggable/Draggable.d.ts +4 -1
- package/components/DnD/Droppable/Droppable.d.ts +2 -1
- package/components/Downshift/SuggestionList/SuggestionList.d.ts +44 -2
- package/components/Downshift/styles/DownshiftStyle.d.ts +356 -2
- package/components/Downshift/styles/StyledPopper.d.ts +11 -1
- package/components/Downshift/styles/StyledTextField.d.ts +8 -1
- package/components/Drawer/Drawer.d.ts +2 -2
- package/components/Forms/Checkbox/Checkbox.d.ts +6 -2
- package/components/Forms/FormControl.d.ts +1 -1
- package/components/Forms/FormControlLabel/FormControlLabel.d.ts +2 -2
- package/components/Forms/FormControlLabel/styles/StyledControl.d.ts +1 -1
- package/components/Forms/FormGroup/FormGroup.d.ts +2 -1
- package/components/Forms/FormHelperText/FormHelperText.d.ts +13 -2
- package/components/Forms/FormHelperText/styles/StyledFormHelperText.d.ts +13 -1
- package/components/Forms/FormLabel.d.ts +2 -1
- package/components/Forms/InputLabel/InputLabel.d.ts +2 -2
- package/components/Forms/InputLabel/styles/StyledInputLabel.d.ts +2 -1
- package/components/Forms/Picker/DatePicker/DatePicker.d.ts +34 -1
- package/components/Forms/Picker/DatePicker/Day.d.ts +1 -1
- package/components/Forms/Picker/DatePicker/styles/StyledCalendar.d.ts +12 -8
- package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.d.ts +362 -4
- package/components/Forms/Picker/DatePicker/styles/StyledYear.d.ts +2 -1
- package/components/Forms/Picker/DatePicker/styles/StyledYears.d.ts +5 -1
- package/components/Forms/Picker/TimePicker/NumberPicker.d.ts +30 -1
- package/components/Forms/Picker/TimePicker/ToggleText.d.ts +17 -1
- package/components/Forms/Picker/TimePicker/styles/StyledNumberPicker.d.ts +1 -1
- package/components/Forms/Picker/TimePicker/styles/StyledPickerPopperWrap.d.ts +4 -1
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.d.ts +14 -1
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionView.d.ts +2 -1
- package/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.d.ts +14 -1
- package/components/Forms/Picker/styles/PickerBaseIconButton.d.ts +1 -1
- package/components/Forms/Picker/styles/StyledPickerTextField.d.ts +3 -1
- package/components/Forms/Picker/styles/StyledPopover.d.ts +2 -1
- package/components/Forms/Radio/Radio.d.ts +6 -2
- package/components/Forms/RadioGroup/RadioGroup.d.ts +2 -2
- package/components/Forms/Select/PlainSelect/PlainSelect.d.ts +2 -2
- package/components/Forms/Select/Select.d.ts +2 -1
- package/components/Forms/Select/styles/SelectArrowDownIcon.d.ts +2 -2
- package/components/Forms/Slider/Slider.d.ts +2 -2
- package/components/Forms/Switch/Switch.d.ts +2 -2
- package/components/Forms/TextField/TextField.d.ts +358 -1
- package/components/Forms/TextField/styles/ClearIconButton.d.ts +10 -1
- package/components/Forms/TextField/styles/TextFieldStyle.d.ts +1 -1
- package/components/Forms/Textarea/Textarea.d.ts +2 -1
- package/components/Grid/Grid.d.ts +21 -2
- package/components/Icon/Icon.d.ts +24 -1
- package/components/Icon/styles/iconSvg.d.ts +2 -1
- package/components/InlineEditable/InlineEditable.d.ts +67 -2
- package/components/InlineEditable/styles/textFieldStyle.d.ts +2 -2
- package/components/Link/Link.d.ts +23 -1
- package/components/List/List/List.d.ts +8 -2
- package/components/List/ListItem/ListItem.d.ts +325 -1
- package/components/List/ListItem/styles/ListItemStyle.d.ts +1 -1
- package/components/List/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/components/List/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/components/List/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/components/List/ListItemText/ListItemText.d.ts +2 -2
- package/components/List/ListSubheader/ListSubheader.d.ts +1 -1
- package/components/Loading/styles/StyledLoadingPage.d.ts +1 -1
- package/components/Menu/Menu/Menu.d.ts +2 -2
- package/components/Menu/MenuItem/MenuItem.d.ts +438 -2
- package/components/Menu/MenuItem/styles/MenuItemStyle.d.ts +14 -1
- package/components/Menu/MenuItemActionWrapper/MenuItemActionWrapper.d.ts +1 -1
- package/components/Menu/MenuItemActionWrapper/styles/StyledMenuItemActionWrapper.d.ts +1 -1
- package/components/Menu/MenuItemSubAction/MenuItemSubAction.d.ts +1 -1
- package/components/Menu/MenuItemSubAction/styles/StyledMenuItemSubAction.d.ts +2 -1
- package/components/Menu/MenuList/MenuList.d.ts +2 -2
- package/components/Menu/MenuList/styles/MenuListStyle.d.ts +1 -1
- package/components/Menu/MenuOption/styles/StyledMenuOption.d.ts +3 -1
- package/components/Menu/SubMenu/SubMenu.d.ts +2 -2
- package/components/Menu/SubMenu/styles/SubMenuStyle.d.ts +3 -2
- package/components/Pagination/Pagination/Pagination.d.ts +2 -2
- package/components/Pagination/PaginationItem/PaginationItem.d.ts +19 -2
- package/components/Paper/Paper.d.ts +2 -2
- package/components/Popover/Popover.d.ts +2 -2
- package/components/Popper/Popper.d.ts +2 -2
- package/components/PopupBox/PopupBox.d.ts +1 -1
- package/components/Presence/Presence.d.ts +10 -1
- package/components/Presence/styles/StyledPresence.d.ts +3 -1
- package/components/Progress/CircularProgress/CircularProgress.d.ts +2 -2
- package/components/Progress/LinearProgress/LinearProgress.d.ts +2 -2
- package/components/Progress/styles/StyledCircularProgress.d.ts +2 -1
- package/components/Rating/Rating.d.ts +2 -2
- package/components/Snackbar/Snackbar.d.ts +2 -2
- package/components/Snackbar/SnackbarAction/SnackbarAction.d.ts +2 -2
- package/components/Snackbar/SnackbarContent/SnackbarContent.d.ts +2 -2
- package/components/Stepper/Step/Step.d.ts +2 -2
- package/components/Stepper/StepButton/StepButton.d.ts +2 -2
- package/components/Stepper/StepConnector/StepConnector.d.ts +2 -2
- package/components/Stepper/StepContent/StepContent.d.ts +2 -2
- package/components/Stepper/StepIcon/StepIcon.d.ts +1 -1
- package/components/Stepper/StepIcon/styles/StyledCircleIcon.d.ts +2 -2
- package/components/Stepper/StepLabel/StepLabel.d.ts +2 -2
- package/components/Stepper/Stepper.d.ts +2 -2
- package/components/Table/Table.d.ts +2 -2
- package/components/Table/TableBody/TableBody.d.ts +4 -2
- package/components/Table/TableCell/TableCell.d.ts +294 -2
- package/components/Table/TableContainer/TableContainer.d.ts +2 -2
- package/components/Table/TableHead/TableHead.d.ts +4 -2
- package/components/Table/TableRow/TableRow.d.ts +2 -2
- package/components/TablePagination/TablePagination.d.ts +2 -2
- package/components/TablePagination/styles/TablePaginationStyle.d.ts +408 -2
- package/components/Tabs/Tab/Tab.d.ts +2 -2
- package/components/Tabs/TabList/TabList.d.ts +7 -1
- package/components/Tabs/TabPanel/TabPanel.d.ts +2 -2
- package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.d.ts +1 -1
- package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabs.d.ts +2 -1
- package/components/Tabs/Tabs/Tabs.d.ts +2 -2
- package/components/Tag/Tag.d.ts +14 -1
- package/components/Text/Text.d.ts +2 -1
- package/components/Thumbnail/Thumbnail.d.ts +13 -2
- package/components/Thumbnail/styles/StyledThumbnail.d.ts +8 -1
- package/components/Toolbar/Toolbar.d.ts +2 -1
- package/components/Tooltip/Tooltip.d.ts +2 -2
- package/components/Tooltip/styles/Mask.d.ts +1 -1
- package/components/Tooltip/withTooltip/withTooltip.d.ts +3 -2
- package/components/Tooltip/withTooltip/withTooltip.js +6 -3
- package/components/Typography/Typography.d.ts +6 -2
- package/components/VirtualizedMenu/VirtualizedDivider/VirtualizedDivider.d.ts +9 -1
- package/components/VirtualizedMenu/VirtualizedMenu.d.ts +2 -1
- package/components/VirtualizedMenu/VirtualizedMenuList.d.ts +1 -1
- package/components/VirtualizedMenu/styles/StyledMenuPadding.d.ts +6 -1
- package/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/es6/components/Tooltip/withTooltip/withTooltip.js +6 -3
- package/es6/foundation/styled-components.js +9 -4
- package/foundation/hooks/useFocusInside/useFocusInside.d.ts +1 -1
- package/foundation/styled-components.d.ts +15 -4
- package/foundation/styled-components.js +9 -4
- package/foundation/styles/GlobalScrollBarStyle/GlobalScrollBarStyle.d.ts +1 -1
- package/foundation/styles/ellipsis.d.ts +1 -1
- package/foundation/styles/fakeBorder.d.ts +1 -1
- package/foundation/styles/flexCenter.d.ts +1 -1
- package/foundation/styles/flexWidth.d.ts +1 -1
- package/foundation/styles/focusRing.d.ts +1 -1
- package/foundation/styles/focusVisible.d.ts +2 -2
- package/foundation/styles/lineClamp.d.ts +1 -1
- package/foundation/styles/nonStyleButton.d.ts +1 -1
- package/foundation/styles/rippleEnter.d.ts +1 -1
- package/foundation/styles/rippleStyle.d.ts +1 -1
- package/foundation/styles/typography.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ToolbarProps as MuiToolbarProps } from '@material-ui/core/Toolbar';
|
|
2
3
|
type RcToolbarProps = MuiToolbarProps;
|
|
3
4
|
/** @release */
|
|
4
|
-
declare const RcToolbar: any
|
|
5
|
+
declare const RcToolbar: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<RcToolbarProps, "ref"> & React.RefAttributes<any>>, import("../../foundation").RcTheme, {}, never>;
|
|
5
6
|
export { RcToolbar };
|
|
6
7
|
export type { RcToolbarProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
2
|
import MuiTooltip from '@material-ui/core/Tooltip';
|
|
3
3
|
import { RcBaseProps, RcBaseSize, RcPaletteProp } from '../../foundation';
|
|
4
4
|
import { Mask } from './styles';
|
|
@@ -28,6 +28,6 @@ type RcTooltipProps = {
|
|
|
28
28
|
injectGlobalStyle?: boolean;
|
|
29
29
|
} & RcBaseProps<ComponentProps<typeof MuiTooltip>, 'color' | 'arrow' | 'className'>;
|
|
30
30
|
/** @release */
|
|
31
|
-
declare const RcTooltip: any
|
|
31
|
+
declare const RcTooltip: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<RcTooltipProps, "ref"> & React.RefAttributes<any>>, import("../../foundation").RcTheme, {}, never>;
|
|
32
32
|
export { RcTooltip };
|
|
33
33
|
export type { RcTooltipProps, RcTooltipSize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Mask:
|
|
1
|
+
export declare const Mask: import("styled-components").StyledComponent<"span", import("../../../foundation").RcTheme, {}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
2
3
|
import { RcTooltipProps } from '../Tooltip';
|
|
3
4
|
type WithTooltipProps<P extends {} = {}> = {
|
|
4
5
|
/** title on list root */
|
|
@@ -13,6 +14,6 @@ type WithTooltipProps<P extends {} = {}> = {
|
|
|
13
14
|
/**
|
|
14
15
|
* Make a component can be use with `RcTooltip` and Tooltip Props
|
|
15
16
|
*/
|
|
16
|
-
declare function withTooltip<
|
|
17
|
+
declare function withTooltip<C extends ComponentType<unknown>>(Component: C): React.ForwardRefExoticComponent<React.PropsWithoutRef<WithTooltipProps<React.ComponentPropsWithoutRef<C> extends object ? React.ComponentPropsWithoutRef<C> : {}>> & React.RefAttributes<React.ElementRef<C>>> & React.ComponentType<WithTooltipProps<React.ComponentPropsWithoutRef<C> extends object ? React.ComponentPropsWithoutRef<C> : {}>>;
|
|
17
18
|
export { withTooltip };
|
|
18
19
|
export type { WithTooltipProps };
|
|
@@ -8,13 +8,16 @@ var Tooltip_1 = require("../Tooltip");
|
|
|
8
8
|
* Make a component can be use with `RcTooltip` and Tooltip Props
|
|
9
9
|
*/
|
|
10
10
|
function withTooltip(Component) {
|
|
11
|
-
|
|
11
|
+
var WithTooltip = (0, react_1.forwardRef)(function (props, ref) {
|
|
12
12
|
var title = props.title, useRcTooltip = props.useRcTooltip, TooltipProps = props.TooltipProps, rest = tslib_1.__rest(props, ["title", "useRcTooltip", "TooltipProps"]);
|
|
13
|
+
var restProps = rest;
|
|
14
|
+
var ComponentWithRef = Component;
|
|
13
15
|
if (title && useRcTooltip) {
|
|
14
16
|
return (react_1.default.createElement(Tooltip_1.RcTooltip, tslib_1.__assign({ title: title }, TooltipProps),
|
|
15
|
-
react_1.default.createElement(
|
|
17
|
+
react_1.default.createElement(ComponentWithRef, tslib_1.__assign({}, restProps, { ref: ref }))));
|
|
16
18
|
}
|
|
17
|
-
return react_1.default.createElement(
|
|
19
|
+
return (react_1.default.createElement(ComponentWithRef, tslib_1.__assign({}, tslib_1.__assign(tslib_1.__assign({}, restProps), { title: title }), { ref: ref })));
|
|
18
20
|
});
|
|
21
|
+
return WithTooltip;
|
|
19
22
|
}
|
|
20
23
|
exports.withTooltip = withTooltip;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps, ElementType } from 'react';
|
|
1
|
+
import React, { ComponentProps, ElementType } from 'react';
|
|
2
2
|
import MuiTypography from '@material-ui/core/Typography';
|
|
3
3
|
import { RcBaseProps, RcTextPaletteKeys, RcTypographyKeys } from '../../foundation';
|
|
4
4
|
import { WithTooltipProps } from '../Tooltip';
|
|
@@ -19,6 +19,10 @@ type RcTypographyProps = {
|
|
|
19
19
|
weight?: RcTypographyWeight;
|
|
20
20
|
} & RcBaseProps<ComponentProps<typeof MuiTypography>, 'variant' | 'variantMapping' | 'classes' | 'color' | 'title'> & WithTooltipProps;
|
|
21
21
|
/** @release */
|
|
22
|
-
declare const RcTypography:
|
|
22
|
+
declare const RcTypography: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
23
|
+
title?: NonNullable<React.ReactNode> | undefined;
|
|
24
|
+
useRcTooltip?: boolean | undefined;
|
|
25
|
+
TooltipProps?: Partial<import("../Tooltip/Tooltip").RcTooltipProps> | undefined;
|
|
26
|
+
} & Omit<Omit<Omit<RcTypographyProps, "ref"> & React.RefAttributes<any>, "ref">, "title"> & React.RefAttributes<any>> & React.ComponentType<WithTooltipProps<Omit<Omit<RcTypographyProps, "ref"> & React.RefAttributes<any>, "ref">>>, import("../../foundation").RcTheme, {}, never>;
|
|
23
27
|
export { RcTypography };
|
|
24
28
|
export type { RcTypographyProps, RcTypographyVariant, RcTypographyWeight };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RcDividerProps } from '../../Divider';
|
|
2
3
|
type RcVirtualizedDividerProps = {} & RcDividerProps;
|
|
3
4
|
/**
|
|
@@ -6,6 +7,13 @@ type RcVirtualizedDividerProps = {} & RcDividerProps;
|
|
|
6
7
|
* use padding inside to prevent dynamic container height error calculate
|
|
7
8
|
* and make that not be focusable
|
|
8
9
|
*/
|
|
9
|
-
declare const RcVirtualizedDivider:
|
|
10
|
+
declare const RcVirtualizedDivider: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
11
|
+
vertical?: boolean | undefined;
|
|
12
|
+
size?: "bold" | "default" | undefined;
|
|
13
|
+
color?: import("../../../foundation").RcPaletteProp | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
titleBgColor?: import("../../../foundation").RcPaletteProp | undefined;
|
|
16
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
17
|
+
} & React.HTMLAttributes<HTMLHRElement> & React.RefAttributes<any>>, import("../../../foundation").RcTheme, {}, never>;
|
|
10
18
|
export { RcVirtualizedDivider };
|
|
11
19
|
export type { RcVirtualizedDividerProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RcBaseProps } from '../../foundation';
|
|
2
3
|
import { RcMenuProps } from '../Menu';
|
|
3
4
|
import { RcVirtualizedMenuListProps } from './VirtualizedMenuList';
|
|
@@ -5,6 +6,6 @@ type RcVirtualizedMenuProps = {
|
|
|
5
6
|
/** props for apply on inner `MenuList` */
|
|
6
7
|
MenuListProps?: RcVirtualizedMenuListProps;
|
|
7
8
|
} & RcBaseProps<RcMenuProps, 'MenuListProps'>;
|
|
8
|
-
declare const RcVirtualizedMenu: any
|
|
9
|
+
declare const RcVirtualizedMenu: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<RcVirtualizedMenuProps, "ref"> & React.RefAttributes<any>>, import("../../foundation").RcTheme, {}, never>;
|
|
9
10
|
export { RcVirtualizedMenu };
|
|
10
11
|
export type { RcVirtualizedMenuProps };
|
|
@@ -31,6 +31,6 @@ type RcVirtualizedMenuListProps = {
|
|
|
31
31
|
*/
|
|
32
32
|
VirtuosoProps?: RcBaseProps<ComponentProps<typeof Virtuoso>, 'data' | 'itemContent' | 'totalCount' | 'components' | 'overscan'>;
|
|
33
33
|
} & RcMenuListProps;
|
|
34
|
-
declare const RcVirtualizedMenuList: any
|
|
34
|
+
declare const RcVirtualizedMenuList: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<RcVirtualizedMenuListProps, "ref"> & React.RefAttributes<any>>, import("../../foundation").RcTheme, {}, never>;
|
|
35
35
|
export { RcVirtualizedMenuList };
|
|
36
36
|
export type { RcVirtualizedMenuListProps, RcVirtualizedMenuListRef };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export declare const menuListBoundaryPadding = 8;
|
|
2
|
-
|
|
2
|
+
type StyledMenuListPaddingProps = {
|
|
3
|
+
/** that element height */
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const StyledMenuListPadding: import("styled-components").StyledComponent<"div", import("../../../foundation").RcTheme, StyledMenuListPaddingProps, never>;
|
|
7
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const RcVisuallyHidden:
|
|
1
|
+
declare const RcVisuallyHidden: import("styled-components").StyledComponent<"span", import("../../foundation").RcTheme, {}, never>;
|
|
2
2
|
export { RcVisuallyHidden };
|
|
@@ -5,13 +5,16 @@ import { RcTooltip } from '../Tooltip';
|
|
|
5
5
|
* Make a component can be use with `RcTooltip` and Tooltip Props
|
|
6
6
|
*/
|
|
7
7
|
function withTooltip(Component) {
|
|
8
|
-
|
|
8
|
+
var WithTooltip = forwardRef(function (props, ref) {
|
|
9
9
|
var title = props.title, useRcTooltip = props.useRcTooltip, TooltipProps = props.TooltipProps, rest = __rest(props, ["title", "useRcTooltip", "TooltipProps"]);
|
|
10
|
+
var restProps = rest;
|
|
11
|
+
var ComponentWithRef = Component;
|
|
10
12
|
if (title && useRcTooltip) {
|
|
11
13
|
return (React.createElement(RcTooltip, __assign({ title: title }, TooltipProps),
|
|
12
|
-
React.createElement(
|
|
14
|
+
React.createElement(ComponentWithRef, __assign({}, restProps, { ref: ref }))));
|
|
13
15
|
}
|
|
14
|
-
return React.createElement(
|
|
16
|
+
return (React.createElement(ComponentWithRef, __assign({}, __assign(__assign({}, restProps), { title: title }), { ref: ref })));
|
|
15
17
|
});
|
|
18
|
+
return WithTooltip;
|
|
16
19
|
}
|
|
17
20
|
export { withTooltip };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/* eslint-disable import/no-duplicates */
|
|
2
|
-
// @ts-ignore - styled-components 5.x type import workaround
|
|
3
2
|
import * as styledComponents from 'styled-components';
|
|
4
3
|
import { useTheme } from '@material-ui/core/styles';
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var styledModule = styledComponents;
|
|
5
|
+
var styled = styledModule.default;
|
|
6
|
+
var css = styledModule.css;
|
|
7
|
+
var keyframes = styledModule.keyframes;
|
|
8
|
+
var createGlobalStyle = styledModule.createGlobalStyle;
|
|
9
|
+
var withTheme = styledModule.withTheme;
|
|
10
|
+
var StyleSheetManager = styledComponents.StyleSheetManager;
|
|
11
|
+
var ThemeProvider = styledModule.ThemeProvider;
|
|
12
|
+
var ThemeConsumer = styledModule.ThemeConsumer;
|
|
8
13
|
var RcUseTheme = function () { return useTheme(); };
|
|
9
14
|
export { createGlobalStyle, css, keyframes, RcUseTheme as useTheme, StyleSheetManager, ThemeConsumer, ThemeProvider, withTheme, };
|
|
10
15
|
export default styled;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* non size for just render hidden element
|
|
4
4
|
*/
|
|
5
|
-
export declare const RcFocusInside:
|
|
5
|
+
export declare const RcFocusInside: import("styled-components").StyledComponent<"span", import("../..").RcTheme, React.HTMLAttributes<HTMLSpanElement>, never>;
|
|
6
6
|
export type useFocusInsideParams = {
|
|
7
7
|
/**
|
|
8
8
|
* the container that should move focus inside witch `[data-focusable="true"]`
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import type { FlattenInterpolation, Interpolation, InterpolationValue, Keyframes, ThemedStyledProps, ThemeProps as StyledThemeProps } from 'styled-components';
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { FlattenInterpolation, Interpolation, InterpolationValue, Keyframes, ThemedCssFunction, ThemedStyledComponentsModule, ThemedStyledInterface, ThemedStyledProps, ThemeProps as StyledThemeProps } from 'styled-components';
|
|
3
|
+
import * as styledComponents from 'styled-components';
|
|
3
4
|
import { RcTheme } from './theme/theme.type';
|
|
4
5
|
type ThemeProps = StyledThemeProps<RcTheme>;
|
|
5
|
-
declare const
|
|
6
|
+
declare const styledModule: ThemedStyledComponentsModule<RcTheme, RcTheme>;
|
|
7
|
+
declare const styled: ThemedStyledInterface<RcTheme>;
|
|
8
|
+
declare const css: ThemedCssFunction<RcTheme>;
|
|
9
|
+
declare const keyframes: typeof styledModule.keyframes;
|
|
10
|
+
declare const createGlobalStyle: typeof styledModule.createGlobalStyle;
|
|
11
|
+
declare const withTheme: typeof styledModule.withTheme;
|
|
12
|
+
declare const StyleSheetManager: typeof styledComponents.StyleSheetManager & ComponentType<{
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
declare const ThemeProvider: typeof styledModule.ThemeProvider;
|
|
16
|
+
declare const ThemeConsumer: typeof styledModule.ThemeConsumer;
|
|
6
17
|
type Dependencies = {
|
|
7
|
-
dependencies?: (
|
|
18
|
+
dependencies?: (ComponentType | ((props: unknown) => JSX.Element))[];
|
|
8
19
|
};
|
|
9
20
|
declare const RcUseTheme: <T = RcTheme>() => T;
|
|
10
21
|
export { createGlobalStyle, css, keyframes, RcUseTheme as useTheme, StyleSheetManager, ThemeConsumer, ThemeProvider, withTheme, };
|
|
@@ -3,18 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withTheme = exports.ThemeProvider = exports.ThemeConsumer = exports.StyleSheetManager = exports.useTheme = exports.keyframes = exports.css = exports.createGlobalStyle = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/* eslint-disable import/no-duplicates */
|
|
6
|
-
// @ts-ignore - styled-components 5.x type import workaround
|
|
7
6
|
var styledComponents = tslib_1.__importStar(require("styled-components"));
|
|
8
7
|
var styles_1 = require("@material-ui/core/styles");
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
var styledModule = styledComponents;
|
|
9
|
+
var styled = styledModule.default;
|
|
10
|
+
var css = styledModule.css;
|
|
12
11
|
exports.css = css;
|
|
12
|
+
var keyframes = styledModule.keyframes;
|
|
13
13
|
exports.keyframes = keyframes;
|
|
14
|
+
var createGlobalStyle = styledModule.createGlobalStyle;
|
|
14
15
|
exports.createGlobalStyle = createGlobalStyle;
|
|
16
|
+
var withTheme = styledModule.withTheme;
|
|
15
17
|
exports.withTheme = withTheme;
|
|
18
|
+
var StyleSheetManager = styledComponents.StyleSheetManager;
|
|
16
19
|
exports.StyleSheetManager = StyleSheetManager;
|
|
20
|
+
var ThemeProvider = styledModule.ThemeProvider;
|
|
17
21
|
exports.ThemeProvider = ThemeProvider;
|
|
22
|
+
var ThemeConsumer = styledModule.ThemeConsumer;
|
|
18
23
|
exports.ThemeConsumer = ThemeConsumer;
|
|
19
24
|
var RcUseTheme = function () { return (0, styles_1.useTheme)(); };
|
|
20
25
|
exports.useTheme = RcUseTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Provide you to change whole app scrollBar color */
|
|
2
|
-
export declare const RcGlobalScrollBarStyle:
|
|
2
|
+
export declare const RcGlobalScrollBarStyle: import("styled-components").GlobalStyleComponent<{}, import("../..").RcTheme>;
|
|
@@ -19,5 +19,5 @@ export type FakeBorderOption = {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const fakeBorder: ({ pseudo, inset, radius, size, color, allowTransparent, }?: FakeBorderOption) => ({ theme }: {
|
|
21
21
|
theme?: RcTheme | undefined;
|
|
22
|
-
}) =>
|
|
22
|
+
}) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<RcTheme>> | undefined;
|
|
23
23
|
export {};
|
|
@@ -17,4 +17,4 @@ import { LiteralUnion } from '../typings';
|
|
|
17
17
|
* // max-width: 500px
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export declare const flexWidth: (width: LiteralUnion<'auto'>) =>
|
|
20
|
+
export declare const flexWidth: (width: LiteralUnion<'auto'>) => import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -26,4 +26,4 @@ export type FocusRingOptions = {
|
|
|
26
26
|
*/
|
|
27
27
|
gapColor?: RcPaletteProp;
|
|
28
28
|
};
|
|
29
|
-
export declare const focusRing: (variant: FocusRingVariant, options?: FocusRingOptions) =>
|
|
29
|
+
export declare const focusRing: (variant: FocusRingVariant, options?: FocusRingOptions) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../theme").RcTheme>>;
|
|
@@ -2,5 +2,5 @@ import { radius } from './radius';
|
|
|
2
2
|
export declare const focusVisible = "&.focus-visible, &[data-focus-visible-added]";
|
|
3
3
|
export declare const focusWithin = "&:hover, &:focus-within";
|
|
4
4
|
export declare const focusVisibleColor: import("./newPalette").PaletteReturnType;
|
|
5
|
-
export declare const shadowBorder: (r?: Parameters<typeof radius>[0], color?: any, inset?: boolean, size?: number) =>
|
|
6
|
-
export declare const focusVisibleShadowStyle: (r?: Parameters<typeof radius>[0], color?: any, inset?: boolean, size?: number) =>
|
|
5
|
+
export declare const shadowBorder: (r?: Parameters<typeof radius>[0], color?: any, inset?: boolean, size?: number) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("..").RcTheme>>;
|
|
6
|
+
export declare const focusVisibleShadowStyle: (r?: Parameters<typeof radius>[0], color?: any, inset?: boolean, size?: number) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("..").RcTheme>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** lineClamp helper */
|
|
2
|
-
export declare function lineClamp(lineNumber: number, maxHeight: number):
|
|
2
|
+
export declare function lineClamp(lineNumber: number, maxHeight: number): import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** reset browser button style */
|
|
2
|
-
export declare function nonStyleButton():
|
|
2
|
+
export declare function nonStyleButton(): import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RcTheme } from '../theme/theme.type';
|
|
2
|
-
export declare const rippleEnter: (theme: RcTheme) =>
|
|
2
|
+
export declare const rippleEnter: (theme: RcTheme) => import("styled-components").Keyframes;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RcThemedStyled } from '../theme/theme.type';
|
|
2
2
|
export declare const backgroundTransition: RcThemedStyled<{}, string>;
|
|
3
|
-
export declare const rippleStyle:
|
|
3
|
+
export declare const rippleStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../theme/theme.type").RcTheme>>;
|
|
@@ -21,5 +21,5 @@ declare function typography(
|
|
|
21
21
|
/** name of token */
|
|
22
22
|
name: RcTypographyKeys,
|
|
23
23
|
/** not contain `line-hight` style */
|
|
24
|
-
fontOnly?: boolean):
|
|
24
|
+
fontOnly?: boolean): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("../theme/theme.type").RcTheme>>;
|
|
25
25
|
export { typography, typographyProp };
|