@astral/ui 4.62.1-rc.0 → 4.62.1-rc.1
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/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
- package/components/Autocomplete/styles.d.ts +1 -1
- package/components/CopyTypography/useLogic/useLogic.d.ts +1 -2
- package/components/Description/Value/styles.d.ts +1 -2
- package/components/HintIcon/HintIcon.d.ts +1 -1
- package/components/HintIcon/HintIcon.js +2 -2
- package/components/HintIcon/Icon/Icon.d.ts +1 -1
- package/components/HintIcon/Icon/Icon.js +2 -2
- package/components/HintIcon/types.d.ts +1 -5
- package/components/JsonViewer/NodeValue/styles.d.ts +3 -6
- package/components/Menu/Menu.d.ts +1 -1
- package/components/Menu/Menu.js +3 -3
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -2
- package/components/OverflowTypography/OverflowTypography.d.ts +1 -2
- package/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/components/Profile/MenuList/MenuList.js +3 -2
- package/components/Profile/MenuList/styles.d.ts +1 -1
- package/components/Profile/Profile.js +2 -2
- package/components/Profile/constants.d.ts +1 -0
- package/components/Profile/constants.js +1 -0
- package/components/Profile/useLogic/useLogic.js +18 -9
- package/components/Select/styles.d.ts +1 -1
- package/components/TextField/styles.d.ts +1 -1
- package/components/Tooltip/Tooltip.js +2 -11
- package/components/Tooltip/constants.d.ts +0 -4
- package/components/Tooltip/constants.js +0 -4
- package/components/Tooltip/styles.js +8 -23
- package/components/Tooltip/types.d.ts +0 -5
- package/components/Tooltip/useLogic/useLogic.d.ts +4 -4
- package/components/Tooltip/useLogic/useLogic.js +1 -7
- package/components/Tree/TreeItem/styles.d.ts +1 -2
- package/components/fileUploading/FileInfo/styles.d.ts +1 -2
- package/components/fileUploading/PreviewFileUploader/PreviewFileUploader.d.ts +3 -3
- package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
- package/node/components/Autocomplete/styles.d.ts +1 -1
- package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -2
- package/node/components/Description/Value/styles.d.ts +1 -2
- package/node/components/HintIcon/HintIcon.d.ts +1 -1
- package/node/components/HintIcon/HintIcon.js +2 -2
- package/node/components/HintIcon/Icon/Icon.d.ts +1 -1
- package/node/components/HintIcon/Icon/Icon.js +2 -2
- package/node/components/HintIcon/types.d.ts +1 -5
- package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -6
- package/node/components/Menu/Menu.d.ts +1 -1
- package/node/components/Menu/Menu.js +3 -3
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -2
- package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -2
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/node/components/Profile/MenuList/MenuList.js +3 -2
- package/node/components/Profile/MenuList/styles.d.ts +1 -1
- package/node/components/Profile/Profile.js +1 -1
- package/node/components/Profile/constants.d.ts +1 -0
- package/node/components/Profile/constants.js +2 -1
- package/node/components/Profile/useLogic/useLogic.js +18 -9
- package/node/components/Select/styles.d.ts +1 -1
- package/node/components/TextField/styles.d.ts +1 -1
- package/node/components/Tooltip/Tooltip.js +2 -11
- package/node/components/Tooltip/constants.d.ts +0 -4
- package/node/components/Tooltip/constants.js +0 -4
- package/node/components/Tooltip/styles.js +30 -25
- package/node/components/Tooltip/types.d.ts +0 -5
- package/node/components/Tooltip/useLogic/useLogic.d.ts +4 -4
- package/node/components/Tooltip/useLogic/useLogic.js +1 -7
- package/node/components/Tree/TreeItem/styles.d.ts +1 -2
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -2
- package/node/components/fileUploading/PreviewFileUploader/PreviewFileUploader.d.ts +3 -3
- package/package.json +1 -1
- package/components/DataGridMinimalisticPagination/styles.d.ts +0 -3
- package/components/DataGridMinimalisticPagination/styles.js +0 -5
- package/components/NotificationList/SettingsButton/styled.d.ts +0 -5
- package/components/NotificationList/SettingsButton/styled.js +0 -8
- package/components/TagsList/public.d.ts +0 -2
- package/components/TagsList/public.js +0 -2
- package/components/fileUploading/index.d.ts +0 -8
- package/components/fileUploading/index.js +0 -8
- package/components/placeholders/index.d.ts +0 -4
- package/components/placeholders/index.js +0 -4
- package/components/transitions/index.d.ts +0 -4
- package/components/transitions/index.js +0 -4
- package/components/types/index.d.ts +0 -4
- package/components/types/index.js +0 -4
- package/components/utils/index.d.ts +0 -16
- package/components/utils/index.js +0 -16
- package/hook-form/external.d.ts +0 -1
- package/hook-form/external.js +0 -1
- package/node/components/DataGridMinimalisticPagination/styles.d.ts +0 -3
- package/node/components/DataGridMinimalisticPagination/styles.js +0 -8
- package/node/components/NotificationList/SettingsButton/styled.d.ts +0 -5
- package/node/components/NotificationList/SettingsButton/styled.js +0 -11
- package/node/components/TagsList/public.d.ts +0 -2
- package/node/components/TagsList/public.js +0 -18
- package/node/components/fileUploading/index.d.ts +0 -8
- package/node/components/fileUploading/index.js +0 -21
- package/node/components/placeholders/index.d.ts +0 -4
- package/node/components/placeholders/index.js +0 -12
- package/node/components/transitions/index.d.ts +0 -4
- package/node/components/transitions/index.js +0 -11
- package/node/components/types/index.d.ts +0 -4
- package/node/components/types/index.js +0 -20
- package/node/components/utils/index.d.ts +0 -16
- package/node/components/utils/index.js +0 -32
- package/node/hook-form/external.d.ts +0 -1
- package/node/hook-form/external.js +0 -8
|
@@ -315,7 +315,7 @@ export declare const useMainActions: <TMainActionComponent extends ElementType>(
|
|
|
315
315
|
divider?: boolean | undefined;
|
|
316
316
|
disabledReason?: string | undefined;
|
|
317
317
|
note?: string | undefined;
|
|
318
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
318
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
319
319
|
component?: ElementType | undefined;
|
|
320
320
|
href?: string | undefined;
|
|
321
321
|
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
@@ -3,7 +3,7 @@ import MuiAutocomplete from '@mui/material/Autocomplete';
|
|
|
3
3
|
export declare const StyledMenuItem: import("../styled").StyledComponent<import("..").WithoutEmotionSpecific<Omit<import("@mui/material").MenuItemProps, "component">> & {
|
|
4
4
|
disabledReason?: string | undefined;
|
|
5
5
|
note?: string | undefined;
|
|
6
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
6
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
7
7
|
component?: import("react").ElementType | undefined;
|
|
8
8
|
href?: string | undefined;
|
|
9
9
|
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement> & {
|
|
@@ -589,7 +589,6 @@ export declare const useLogic: ({ children, copyPosition, copyText, isShowCopyTe
|
|
|
589
589
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
590
590
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
591
591
|
open?: boolean | undefined;
|
|
592
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
593
592
|
size?: import("../..").TooltipSize | undefined;
|
|
594
593
|
componentsProps?: {
|
|
595
594
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -627,7 +626,7 @@ export declare const useLogic: ({ children, copyPosition, copyText, isShowCopyTe
|
|
|
627
626
|
leaveDelay?: number | undefined;
|
|
628
627
|
leaveTouchDelay?: number | undefined;
|
|
629
628
|
onOpen?: ((event: SyntheticEvent<Element, Event>) => void) | undefined;
|
|
630
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
629
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
631
630
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
632
631
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
633
632
|
withoutContainer?: boolean | undefined;
|
|
@@ -321,7 +321,6 @@ export declare const StyledCopyTypography: import("../../styled").StyledComponen
|
|
|
321
321
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
322
322
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
323
323
|
open?: boolean | undefined;
|
|
324
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
325
324
|
size?: import("../..").TooltipSize | undefined;
|
|
326
325
|
componentsProps?: {
|
|
327
326
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -359,7 +358,7 @@ export declare const StyledCopyTypography: import("../../styled").StyledComponen
|
|
|
359
358
|
leaveDelay?: number | undefined;
|
|
360
359
|
leaveTouchDelay?: number | undefined;
|
|
361
360
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
362
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
361
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
363
362
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
364
363
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
365
364
|
withoutContainer?: boolean | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type HintIconProps } from './types';
|
|
2
|
-
export declare const HintIcon: ({ variant, title, note, iconOption, tooltipPlacement, renderIcon,
|
|
2
|
+
export declare const HintIcon: ({ variant, title, note, iconOption, tooltipPlacement, renderIcon, }: HintIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { BottomDrawer } from '../BottomDrawer';
|
|
|
3
3
|
import { Icon } from './Icon';
|
|
4
4
|
import { DrawerContent } from './styles';
|
|
5
5
|
import { useLogic } from './useLogic';
|
|
6
|
-
export const HintIcon = ({ variant, title, note, iconOption, tooltipPlacement = 'bottom', renderIcon,
|
|
6
|
+
export const HintIcon = ({ variant, title, note, iconOption, tooltipPlacement = 'bottom', renderIcon, }) => {
|
|
7
7
|
const { handleClose, handleOpen, open } = useLogic();
|
|
8
|
-
return (_jsxs(_Fragment, { children: [_jsx(Icon, { onClick: handleOpen, variant: variant, iconOption: iconOption, note: note, tooltipPlacement: tooltipPlacement, renderIcon: renderIcon
|
|
8
|
+
return (_jsxs(_Fragment, { children: [_jsx(Icon, { onClick: handleOpen, variant: variant, iconOption: iconOption, note: note, tooltipPlacement: tooltipPlacement, renderIcon: renderIcon }), _jsx(BottomDrawer, { title: title, open: open, onClose: handleClose, children: _jsx(DrawerContent, { children: note }) })] }));
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import type { HintIconProps, TooltipPlacement } from '../types';
|
|
3
|
-
export type IconProps = Pick<HintIconProps, 'variant' | 'iconOption' | 'note' | 'renderIcon'
|
|
3
|
+
export type IconProps = Pick<HintIconProps, 'variant' | 'iconOption' | 'note' | 'renderIcon'> & {
|
|
4
4
|
onClick: (e: SyntheticEvent) => void;
|
|
5
5
|
tooltipPlacement: TooltipPlacement;
|
|
6
6
|
};
|
|
@@ -5,6 +5,6 @@ import { IconWrapper } from './styles';
|
|
|
5
5
|
import { useLogic } from './useLogic';
|
|
6
6
|
export const Icon = (props) => {
|
|
7
7
|
const { getIcon, iconColor } = useLogic(props);
|
|
8
|
-
const { onClick, note, tooltipPlacement
|
|
9
|
-
return (_jsx(Tooltip, { title: note, placement: tooltipPlacement,
|
|
8
|
+
const { onClick, note, tooltipPlacement } = props;
|
|
9
|
+
return (_jsx(Tooltip, { title: note, placement: tooltipPlacement, children: _jsx(IconWrapper, { onClick: onClick, "$color": iconColor, className: hintIconClassnames.iconWrapper, children: getIcon() }) }));
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
export type TooltipPlacement = 'left' | 'top' | 'right' | 'bottom';
|
|
3
3
|
export type HintIconProps = {
|
|
4
4
|
/**
|
|
@@ -36,8 +36,4 @@ export type HintIconProps = {
|
|
|
36
36
|
* Задание кастомной иконки
|
|
37
37
|
*/
|
|
38
38
|
renderIcon?: () => ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Задает ширину тултипа
|
|
41
|
-
*/
|
|
42
|
-
tooltipWidth?: CSSProperties['width'];
|
|
43
39
|
};
|
|
@@ -290,7 +290,6 @@ export declare const Value: import("../../styled").StyledComponent<import("../..
|
|
|
290
290
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
291
291
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
292
292
|
open?: boolean | undefined;
|
|
293
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
294
293
|
size?: import("../..").TooltipSize | undefined;
|
|
295
294
|
componentsProps?: {
|
|
296
295
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -328,7 +327,7 @@ export declare const Value: import("../../styled").StyledComponent<import("../..
|
|
|
328
327
|
leaveDelay?: number | undefined;
|
|
329
328
|
leaveTouchDelay?: number | undefined;
|
|
330
329
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
331
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
330
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
332
331
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
333
332
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
334
333
|
withoutContainer?: boolean | undefined;
|
|
@@ -652,7 +651,6 @@ export declare const CopyWrapper: import("../../styled").StyledComponent<import(
|
|
|
652
651
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
653
652
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
654
653
|
open?: boolean | undefined;
|
|
655
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
656
654
|
size?: import("../..").TooltipSize | undefined;
|
|
657
655
|
componentsProps?: {
|
|
658
656
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -690,7 +688,7 @@ export declare const CopyWrapper: import("../../styled").StyledComponent<import(
|
|
|
690
688
|
leaveDelay?: number | undefined;
|
|
691
689
|
leaveTouchDelay?: number | undefined;
|
|
692
690
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
693
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
691
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
694
692
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
695
693
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
696
694
|
withoutContainer?: boolean | undefined;
|
|
@@ -990,7 +988,6 @@ export declare const GuidValue: import("../../styled").StyledComponent<import(".
|
|
|
990
988
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
991
989
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
992
990
|
open?: boolean | undefined;
|
|
993
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
994
991
|
size?: import("../..").TooltipSize | undefined;
|
|
995
992
|
componentsProps?: {
|
|
996
993
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -1028,7 +1025,7 @@ export declare const GuidValue: import("../../styled").StyledComponent<import(".
|
|
|
1028
1025
|
leaveDelay?: number | undefined;
|
|
1029
1026
|
leaveTouchDelay?: number | undefined;
|
|
1030
1027
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
1031
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
1028
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
1032
1029
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
1033
1030
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
1034
1031
|
withoutContainer?: boolean | undefined;
|
|
@@ -6,4 +6,4 @@ export type MenuProps = WithoutEmotionSpecific<MuiMenuProps> & {
|
|
|
6
6
|
*/
|
|
7
7
|
title?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const Menu: ({ children, onClose, open, title, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Menu: ({ children, onClose, open, title, MenuListProps, ...restProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
package/components/Menu/Menu.js
CHANGED
|
@@ -3,10 +3,10 @@ import MuiMenu from '@mui/material/Menu';
|
|
|
3
3
|
import { BottomDrawer } from '../BottomDrawer';
|
|
4
4
|
import { MenuList } from '../MenuList';
|
|
5
5
|
import { useViewportType } from '../useViewportType';
|
|
6
|
-
export const Menu = ({ children, onClose, open, title, ...restProps }) => {
|
|
6
|
+
export const Menu = ({ children, onClose, open, title, MenuListProps, ...restProps }) => {
|
|
7
7
|
const { isMobile } = useViewportType();
|
|
8
8
|
if (isMobile) {
|
|
9
|
-
return (_jsx(BottomDrawer, { title: title, onClose: onClose, open: open, children: _jsx(MenuList, { children: children }) }));
|
|
9
|
+
return (_jsx(BottomDrawer, { title: title, onClose: onClose, open: open, id: MenuListProps?.id, children: _jsx(MenuList, { children: children }) }));
|
|
10
10
|
}
|
|
11
|
-
return (_jsx(MuiMenu, { open: open, onClose: onClose, ...restProps, children: children }));
|
|
11
|
+
return (_jsx(MuiMenu, { open: open, onClose: onClose, MenuListProps: MenuListProps, ...restProps, children: children }));
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const StyledMenuItem: import("../../styled").StyledComponent<import("../..").WithoutEmotionSpecific<Omit<import("@mui/material/MenuItem").MenuItemProps, "component">> & {
|
|
3
3
|
disabledReason?: string | undefined;
|
|
4
4
|
note?: string | undefined;
|
|
5
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
5
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
href?: string | undefined;
|
|
8
8
|
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement> & {
|
|
@@ -579,7 +579,6 @@ export declare const NavMenuItemButtonText: import("../../../styled").StyledComp
|
|
|
579
579
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
580
580
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
581
581
|
open?: boolean | undefined;
|
|
582
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
583
582
|
size?: import("../../..").TooltipSize | undefined;
|
|
584
583
|
componentsProps?: {
|
|
585
584
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -617,7 +616,7 @@ export declare const NavMenuItemButtonText: import("../../../styled").StyledComp
|
|
|
617
616
|
leaveDelay?: number | undefined;
|
|
618
617
|
leaveTouchDelay?: number | undefined;
|
|
619
618
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
620
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
619
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
621
620
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
622
621
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
623
622
|
withoutContainer?: boolean | undefined;
|
|
@@ -291,7 +291,6 @@ export declare const OverflowTypography: import("react").ForwardRefExoticCompone
|
|
|
291
291
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
292
292
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
293
293
|
open?: boolean | undefined;
|
|
294
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
295
294
|
size?: import("../Tooltip").TooltipSize | undefined;
|
|
296
295
|
componentsProps?: {
|
|
297
296
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -329,7 +328,7 @@ export declare const OverflowTypography: import("react").ForwardRefExoticCompone
|
|
|
329
328
|
leaveDelay?: number | undefined;
|
|
330
329
|
leaveTouchDelay?: number | undefined;
|
|
331
330
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
332
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
331
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
333
332
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
334
333
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
335
334
|
withoutContainer?: boolean | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ProductItem: <TComponent extends import("react").ElementType>(props: import("../..").WithoutEmotionSpecific<Omit<import("@mui/material/MenuItem").MenuItemProps, "component">> & {
|
|
3
3
|
disabledReason?: string | undefined;
|
|
4
4
|
note?: string | undefined;
|
|
5
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
5
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
6
6
|
component?: TComponent | undefined;
|
|
7
7
|
href?: string | undefined;
|
|
8
8
|
} & import("react").ComponentPropsWithRef<import("react").ElementType extends TComponent ? "li" : TComponent> & import("react").RefAttributes<HTMLLIElement>) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -8,6 +8,7 @@ import { ListItemText } from '../../ListItemText';
|
|
|
8
8
|
import { MenuItem as StyledMenuItem } from '../../MenuItem';
|
|
9
9
|
import { OverflowTypography } from '../../OverflowTypography';
|
|
10
10
|
import { useViewportType } from '../../useViewportType';
|
|
11
|
+
import { PROFILE_POPOVER_ID } from '../constants';
|
|
11
12
|
import { DisplayNameMenuItem, ExitMenuItem, StyledDivider, StyledMenu, StyledMenuList, } from './styles';
|
|
12
13
|
/**
|
|
13
14
|
* Компонент для рендера menu с помощью массива данных
|
|
@@ -31,7 +32,7 @@ export const MenuList = (props) => {
|
|
|
31
32
|
return items;
|
|
32
33
|
};
|
|
33
34
|
if (isMobile) {
|
|
34
|
-
return (_jsx(BottomDrawer, { title: displayName, onClose: onClose, open: open, children: _jsx(StyledMenuList, { children: renderMenuList() }) }));
|
|
35
|
+
return (_jsx(BottomDrawer, { id: PROFILE_POPOVER_ID, title: displayName, onClose: onClose, open: open, children: _jsx(StyledMenuList, { children: renderMenuList() }) }));
|
|
35
36
|
}
|
|
36
|
-
return (_jsx(StyledMenu, { open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
37
|
+
return (_jsx(StyledMenu, { MenuListProps: { id: PROFILE_POPOVER_ID }, open: open, onClose: onClose, ...restProps, children: renderMenuList() }));
|
|
37
38
|
};
|
|
@@ -7,7 +7,7 @@ export declare const StyledMenu: import("../../styled").StyledComponent<import("
|
|
|
7
7
|
export declare const ExitMenuItem: import("../../styled").StyledComponent<import("../..").WithoutEmotionSpecific<Omit<import("@mui/material").MenuItemProps, "component">> & {
|
|
8
8
|
disabledReason?: string | undefined;
|
|
9
9
|
note?: string | undefined;
|
|
10
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
10
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
11
11
|
component?: import("react").ElementType | undefined;
|
|
12
12
|
href?: string | undefined;
|
|
13
13
|
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from '../Typography';
|
|
3
|
-
import { profileClassnames } from './constants';
|
|
3
|
+
import { PROFILE_POPOVER_ID, profileClassnames } from './constants';
|
|
4
4
|
import { MenuList } from './MenuList';
|
|
5
5
|
import { ProfileSkeleton } from './ProfileSkeleton';
|
|
6
6
|
import { Credentials, ProfileRoot, StyledAvatar, StyledChevron, User, } from './styles';
|
|
@@ -11,7 +11,7 @@ export const Profile = (props) => {
|
|
|
11
11
|
if (isLoading) {
|
|
12
12
|
return _jsx(ProfileSkeleton, {});
|
|
13
13
|
}
|
|
14
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: profileClassnames.button, children: [_jsx(StyledAvatar, { ...avatar, className: profileClassnames.avatar }), _jsxs(User, { className: profileClassnames.user, children: [_jsxs(Credentials, { className: hidePersonalDataClassname, children: [_jsx(Typography, { variant: "body1", className: profileClassnames.credentials, children: displayName }), _jsx(Typography, { variant: "caption", color: "textSecondary", className: profileClassnames.credentials, children: annotation })] }), _jsx(StyledChevron, { isActive: open })] })] }), Menu ? (_jsx(Menu, { open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
14
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ProfileRoot, { ref: anchorRef, variant: "text", onClick: handleOpenMenu, className: profileClassnames.button, children: [_jsx(StyledAvatar, { ...avatar, className: profileClassnames.avatar }), _jsxs(User, { className: profileClassnames.user, children: [_jsxs(Credentials, { className: hidePersonalDataClassname, children: [_jsx(Typography, { variant: "body1", className: profileClassnames.credentials, children: displayName }), _jsx(Typography, { variant: "caption", color: "textSecondary", className: profileClassnames.credentials, children: annotation })] }), _jsx(StyledChevron, { isActive: open })] })] }), Menu ? (_jsx(Menu, { MenuListProps: { id: PROFILE_POPOVER_ID }, open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu, anchorOrigin: {
|
|
15
15
|
vertical: 'bottom',
|
|
16
16
|
horizontal: 'right',
|
|
17
17
|
}, transformOrigin: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createUIKitClassname } from '../utils/createUIKitClassname';
|
|
2
|
+
export const PROFILE_POPOVER_ID = 'profile-popover';
|
|
2
3
|
export const profileClassnames = {
|
|
3
4
|
credentials: createUIKitClassname('profile__credentials'),
|
|
4
5
|
button: createUIKitClassname('profile__button'),
|
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { useHidePersonalData } from '../../personalDataSecurity';
|
|
3
|
+
import { ErrorService } from '../../services/ErrorService';
|
|
3
4
|
import { useMenu } from '../../useMenu';
|
|
5
|
+
import { PROFILE_POPOVER_ID } from '../constants';
|
|
4
6
|
export const useLogic = ({ menuList, menu: Menu, exitButton, isHidePersonalData, }) => {
|
|
5
7
|
const { open, anchorRef, handleOpenMenu, handleCloseMenu } = useMenu();
|
|
6
8
|
useEffect(() => {
|
|
7
9
|
if (!open) {
|
|
8
10
|
return;
|
|
9
11
|
}
|
|
10
|
-
const
|
|
11
|
-
const popover = document.
|
|
12
|
+
const observer = new MutationObserver((_, obs) => {
|
|
13
|
+
const popover = document.getElementById(PROFILE_POPOVER_ID);
|
|
12
14
|
if (popover) {
|
|
13
15
|
const menuItems = popover.querySelectorAll('[role="menuitem"]');
|
|
14
|
-
menuItems.
|
|
15
|
-
item
|
|
16
|
-
|
|
16
|
+
if (menuItems.length > 0) {
|
|
17
|
+
menuItems.forEach((item) => {
|
|
18
|
+
item.onclick = handleCloseMenu;
|
|
19
|
+
});
|
|
20
|
+
obs.disconnect();
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
23
|
+
});
|
|
24
|
+
observer.observe(document.body, {
|
|
25
|
+
childList: true,
|
|
26
|
+
subtree: true,
|
|
27
|
+
});
|
|
28
|
+
return () => observer.disconnect();
|
|
20
29
|
}, [open, handleCloseMenu]);
|
|
21
30
|
useEffect(() => {
|
|
31
|
+
const errorService = ErrorService.getInstance();
|
|
22
32
|
if (!Menu && !menuList && !exitButton) {
|
|
23
|
-
|
|
24
|
-
console.error('Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
33
|
+
errorService.logError('Profile', 'Profile должен иметь один из следующих props: menu, menuList, exitButton');
|
|
25
34
|
}
|
|
26
35
|
}, []);
|
|
27
36
|
const hidePersonalDataClassname = useHidePersonalData({
|
|
@@ -10,7 +10,7 @@ export declare const EndAdornmentWrapper: import("../styled").StyledComponent<{
|
|
|
10
10
|
export declare const Placeholder: import("../styled").StyledComponent<import("..").WithoutEmotionSpecific<Omit<import("@mui/material").MenuItemProps, "component">> & {
|
|
11
11
|
disabledReason?: string | undefined;
|
|
12
12
|
note?: string | undefined;
|
|
13
|
-
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "
|
|
13
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
14
14
|
component?: import("react").ElementType | undefined;
|
|
15
15
|
href?: string | undefined;
|
|
16
16
|
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledTextField: import("../styled").StyledComponent<{
|
|
2
2
|
variant?: import("@mui/material/TextField").TextFieldVariants | undefined;
|
|
3
|
-
} & Omit<import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").
|
|
3
|
+
} & Omit<import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps | import("@mui/material/TextField").FilledTextFieldProps, "variant"> & {
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { classNames } from '../utils/classNames';
|
|
4
|
-
import { cva } from '../utils/cva';
|
|
5
3
|
import { tooltipClassnames } from './constants';
|
|
6
4
|
import { ContentWrapper, StyledTooltip } from './styles';
|
|
7
5
|
import { useLogic } from './useLogic';
|
|
8
|
-
const tooltipCva = cva(tooltipClassnames.root, {
|
|
9
|
-
variants: {
|
|
10
|
-
withoutMaxWidth: {
|
|
11
|
-
true: tooltipClassnames.withoutMaxWidth,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
6
|
export const Tooltip = forwardRef((props, ref) => {
|
|
16
|
-
const { title, placement = 'top', size = 'medium', withoutContainer = true, children, className,
|
|
17
|
-
return (_jsx(StyledTooltip, { ref: ref, title: title, size: size, placement: placement, arrow: true, className:
|
|
7
|
+
const { title, placement = 'top', size = 'medium', withoutContainer = true, children, className, ...restProps } = useLogic(props);
|
|
8
|
+
return (_jsx(StyledTooltip, { ref: ref, title: title, size: size, placement: placement, arrow: true, className: className, ...restProps, children: withoutContainer ? (children) : (_jsx(ContentWrapper, { className: tooltipClassnames.contentWrapper, children: children })) }));
|
|
18
9
|
});
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { createUIKitClassname } from '../utils/createUIKitClassname';
|
|
2
2
|
export const tooltipClassnames = {
|
|
3
|
-
root: createUIKitClassname('tooltip'),
|
|
4
3
|
contentWrapper: createUIKitClassname('tooltip__content-wrapper'),
|
|
5
|
-
withoutMaxWidth: createUIKitClassname('tooltip_without-max-width'),
|
|
6
|
-
tooltipLabel: createUIKitClassname('tooltip__label'),
|
|
7
|
-
arrow: createUIKitClassname('tooltip__arrow'),
|
|
8
4
|
};
|
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Tooltip from '@mui/material/Tooltip';
|
|
2
|
+
import Tooltip, { tooltipClasses, } from '@mui/material/Tooltip';
|
|
3
3
|
import { styled } from '../styled';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
...props.classes,
|
|
7
|
-
popper: className,
|
|
8
|
-
tooltip: tooltipClassnames.tooltipLabel,
|
|
9
|
-
arrow: tooltipClassnames.arrow,
|
|
10
|
-
} }))) `
|
|
11
|
-
--tooltip-width: 0;
|
|
12
|
-
|
|
13
|
-
&.${tooltipClassnames.withoutMaxWidth} {
|
|
14
|
-
& .${tooltipClassnames.tooltipLabel} {
|
|
15
|
-
width: var(--tooltip-width);
|
|
16
|
-
max-width: none;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
& .${tooltipClassnames.tooltipLabel} {
|
|
4
|
+
export const StyledTooltip = styled(({ className, ...props }) => (_jsx(Tooltip, { ...props, classes: { popper: className } }))) `
|
|
5
|
+
& .${tooltipClasses.tooltip} {
|
|
21
6
|
margin: 0;
|
|
22
7
|
|
|
23
8
|
font-size: ${({ size, theme }) => size === 'small'
|
|
@@ -33,24 +18,24 @@ export const StyledTooltip = styled(({ className, style, ...props }) => (_jsx(To
|
|
|
33
18
|
border-radius: ${({ theme }) => theme.shape.small};
|
|
34
19
|
}
|
|
35
20
|
|
|
36
|
-
& .${
|
|
21
|
+
& .${tooltipClasses.arrow} {
|
|
37
22
|
font-size: ${({ theme }) => theme.typography.caption.fontSize};
|
|
38
23
|
color: ${({ theme }) => theme.palette.grey[900]};
|
|
39
24
|
}
|
|
40
25
|
|
|
41
|
-
&&[data-popper-placement*='top'] .${
|
|
26
|
+
&&[data-popper-placement*='top'] .${tooltipClasses.tooltip} {
|
|
42
27
|
margin-bottom: ${({ theme }) => theme.spacing(2)};
|
|
43
28
|
}
|
|
44
29
|
|
|
45
|
-
&&[data-popper-placement*='bottom'] .${
|
|
30
|
+
&&[data-popper-placement*='bottom'] .${tooltipClasses.tooltip} {
|
|
46
31
|
margin-top: ${({ theme }) => theme.spacing(2)};
|
|
47
32
|
}
|
|
48
33
|
|
|
49
|
-
&&[data-popper-placement*='left'] .${
|
|
34
|
+
&&[data-popper-placement*='left'] .${tooltipClasses.tooltip} {
|
|
50
35
|
margin-right: ${({ theme }) => theme.spacing(2)};
|
|
51
36
|
}
|
|
52
37
|
|
|
53
|
-
&&[data-popper-placement*='right'] .${
|
|
38
|
+
&&[data-popper-placement*='right'] .${tooltipClasses.tooltip} {
|
|
54
39
|
margin-left: ${({ theme }) => theme.spacing(2)};
|
|
55
40
|
}
|
|
56
41
|
`;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
|
|
2
|
-
import { type CSSProperties } from 'react';
|
|
3
2
|
import { type WithoutEmotionSpecific } from '../types/WithoutEmotionSpecific';
|
|
4
3
|
export type TooltipSize = 'small' | 'medium';
|
|
5
4
|
export type TooltipProps = WithoutEmotionSpecific<MuiTooltipProps> & {
|
|
@@ -13,8 +12,4 @@ export type TooltipProps = WithoutEmotionSpecific<MuiTooltipProps> & {
|
|
|
13
12
|
* @example <Tooltip withoutContainer={false} ...><Button disabled></Tooltip>
|
|
14
13
|
*/
|
|
15
14
|
withoutContainer?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Задает ширину тултипа и снимает ограничение на максимальную ширину
|
|
18
|
-
*/
|
|
19
|
-
width?: CSSProperties['width'];
|
|
20
15
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { type TooltipProps } from '../types';
|
|
3
4
|
export declare const useLogic: (props: TooltipProps) => {
|
|
4
5
|
components?: {
|
|
@@ -26,6 +27,7 @@ export declare const useLogic: (props: TooltipProps) => {
|
|
|
26
27
|
nonce?: string | undefined;
|
|
27
28
|
slot?: string | undefined;
|
|
28
29
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
30
|
+
style?: import("react").CSSProperties | undefined;
|
|
29
31
|
tabIndex?: number | undefined;
|
|
30
32
|
title: import("react").ReactNode;
|
|
31
33
|
translate?: "yes" | "no" | undefined;
|
|
@@ -323,13 +325,11 @@ export declare const useLogic: (props: TooltipProps) => {
|
|
|
323
325
|
leaveDelay?: number | undefined;
|
|
324
326
|
leaveTouchDelay?: number | undefined;
|
|
325
327
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
326
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
328
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
327
329
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
328
330
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
329
331
|
size?: import("../types").TooltipSize | undefined;
|
|
330
332
|
withoutContainer?: boolean | undefined;
|
|
331
333
|
children: import("react").ReactElement<any, any>;
|
|
332
334
|
className: string;
|
|
333
|
-
tooltipStyle: CSSProperties;
|
|
334
|
-
width: import("csstype").Property.Width<string | number> | undefined;
|
|
335
335
|
};
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { useHidePersonalData } from '../../personalDataSecurity';
|
|
2
2
|
import { classNames } from '../../utils/classNames';
|
|
3
3
|
export const useLogic = (props) => {
|
|
4
|
-
const { children, className: propClassName,
|
|
4
|
+
const { children, className: propClassName, ...restProps } = props;
|
|
5
5
|
const hidePersonalDataClassName = useHidePersonalData({
|
|
6
6
|
type: 'container',
|
|
7
7
|
});
|
|
8
8
|
const className = classNames(propClassName, {
|
|
9
9
|
[hidePersonalDataClassName]: children.props.className?.includes(hidePersonalDataClassName),
|
|
10
10
|
});
|
|
11
|
-
const tooltipStyle = {
|
|
12
|
-
'--tooltip-width': width,
|
|
13
|
-
...style,
|
|
14
|
-
};
|
|
15
11
|
return {
|
|
16
12
|
children,
|
|
17
13
|
className,
|
|
18
|
-
tooltipStyle,
|
|
19
|
-
width,
|
|
20
14
|
...restProps,
|
|
21
15
|
};
|
|
22
16
|
};
|
|
@@ -341,7 +341,6 @@ export declare const Note: import("../../styled").StyledComponent<import("../../
|
|
|
341
341
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
342
342
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
343
343
|
open?: boolean | undefined;
|
|
344
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
345
344
|
size?: import("../..").TooltipSize | undefined;
|
|
346
345
|
componentsProps?: {
|
|
347
346
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -379,7 +378,7 @@ export declare const Note: import("../../styled").StyledComponent<import("../../
|
|
|
379
378
|
leaveDelay?: number | undefined;
|
|
380
379
|
leaveTouchDelay?: number | undefined;
|
|
381
380
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
382
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
381
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
383
382
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
384
383
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
385
384
|
withoutContainer?: boolean | undefined;
|
|
@@ -295,7 +295,6 @@ export declare const StyledFilename: import("../../styled").StyledComponent<Omit
|
|
|
295
295
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
296
296
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
297
297
|
open?: boolean | undefined;
|
|
298
|
-
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
299
298
|
size?: import("../..").TooltipSize | undefined;
|
|
300
299
|
componentsProps?: {
|
|
301
300
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -333,7 +332,7 @@ export declare const StyledFilename: import("../../styled").StyledComponent<Omit
|
|
|
333
332
|
leaveDelay?: number | undefined;
|
|
334
333
|
leaveTouchDelay?: number | undefined;
|
|
335
334
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
336
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
335
|
+
placement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
337
336
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
338
337
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
339
338
|
withoutContainer?: boolean | undefined;
|