@astral/ui 4.62.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 +5 -17
- package/components/Profile/constants.d.ts +1 -0
- package/components/Profile/constants.js +1 -0
- package/components/Profile/useLogic/index.d.ts +1 -0
- package/components/Profile/useLogic/index.js +1 -0
- package/components/Profile/useLogic/useLogic.d.ts +11 -0
- package/components/Profile/useLogic/useLogic.js +46 -0
- 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/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 +4 -19
- package/node/components/Profile/constants.d.ts +1 -0
- package/node/components/Profile/constants.js +2 -1
- package/node/components/Profile/useLogic/index.d.ts +1 -0
- package/node/components/Profile/useLogic/index.js +17 -0
- package/node/components/Profile/useLogic/useLogic.d.ts +11 -0
- package/node/components/Profile/useLogic/useLogic.js +50 -0
- 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/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -4,22 +4,16 @@ exports.useLogic = void 0;
|
|
|
4
4
|
const personalDataSecurity_1 = require("../../personalDataSecurity");
|
|
5
5
|
const classNames_1 = require("../../utils/classNames");
|
|
6
6
|
const useLogic = (props) => {
|
|
7
|
-
const { children, className: propClassName,
|
|
7
|
+
const { children, className: propClassName, ...restProps } = props;
|
|
8
8
|
const hidePersonalDataClassName = (0, personalDataSecurity_1.useHidePersonalData)({
|
|
9
9
|
type: 'container',
|
|
10
10
|
});
|
|
11
11
|
const className = (0, classNames_1.classNames)(propClassName, {
|
|
12
12
|
[hidePersonalDataClassName]: children.props.className?.includes(hidePersonalDataClassName),
|
|
13
13
|
});
|
|
14
|
-
const tooltipStyle = {
|
|
15
|
-
'--tooltip-width': width,
|
|
16
|
-
...style,
|
|
17
|
-
};
|
|
18
14
|
return {
|
|
19
15
|
children,
|
|
20
16
|
className,
|
|
21
|
-
tooltipStyle,
|
|
22
|
-
width,
|
|
23
17
|
...restProps,
|
|
24
18
|
};
|
|
25
19
|
};
|
|
@@ -341,7 +341,6 @@ export declare const Note: import("@emotion/styled/dist/declarations/src/types")
|
|
|
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("@emotion/styled/dist/declarations/src/types")
|
|
|
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("@emotion/styled/dist/declarations/s
|
|
|
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("@emotion/styled/dist/declarations/s
|
|
|
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;
|