@astral/ui 4.62.1-rc.1 → 4.62.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/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 +2 -1
- package/components/Description/Value/styles.d.ts +2 -1
- 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 +5 -1
- package/components/JsonViewer/NodeValue/styles.d.ts +6 -3
- package/components/MenuItem/MenuItem.js +4 -2
- package/components/MenuItem/constants.d.ts +3 -0
- package/components/MenuItem/constants.js +4 -0
- package/components/MenuItem/index.d.ts +1 -0
- package/components/MenuItem/index.js +1 -0
- package/components/MenuItem/public.d.ts +1 -0
- package/components/MenuItem/public.js +1 -0
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/components/NavMenu/Item/ItemButton/styles.d.ts +2 -1
- package/components/OverflowTypography/OverflowTypography.d.ts +2 -1
- package/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/components/Profile/MenuList/styles.d.ts +1 -1
- package/components/Profile/constants.d.ts +1 -1
- package/components/Profile/constants.js +1 -1
- package/components/Profile/useLogic/useLogic.js +2 -1
- package/components/Select/styles.d.ts +1 -1
- package/components/TextField/styles.d.ts +1 -1
- package/components/ToggleButton/styles.js +19 -15
- package/components/Tooltip/Tooltip.js +11 -2
- package/components/Tooltip/constants.d.ts +4 -0
- package/components/Tooltip/constants.js +4 -0
- package/components/Tooltip/styles.js +23 -8
- package/components/Tooltip/types.d.ts +5 -0
- package/components/Tooltip/useLogic/useLogic.d.ts +4 -4
- package/components/Tooltip/useLogic/useLogic.js +7 -1
- package/components/Tree/TreeItem/styles.d.ts +2 -1
- package/components/fileUploading/FileInfo/styles.d.ts +2 -1
- 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 +2 -1
- package/node/components/Description/Value/styles.d.ts +2 -1
- 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 +5 -1
- package/node/components/JsonViewer/NodeValue/styles.d.ts +6 -3
- package/node/components/MenuItem/MenuItem.js +4 -2
- package/node/components/MenuItem/constants.d.ts +3 -0
- package/node/components/MenuItem/constants.js +7 -0
- package/node/components/MenuItem/index.d.ts +1 -0
- package/node/components/MenuItem/index.js +3 -0
- package/node/components/MenuItem/public.d.ts +1 -0
- package/node/components/MenuItem/public.js +3 -0
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +2 -1
- package/node/components/OverflowTypography/OverflowTypography.d.ts +2 -1
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -1
- package/node/components/Profile/MenuList/styles.d.ts +1 -1
- package/node/components/Profile/constants.d.ts +1 -1
- package/node/components/Profile/constants.js +1 -1
- package/node/components/Profile/useLogic/useLogic.js +2 -1
- package/node/components/Select/styles.d.ts +1 -1
- package/node/components/TextField/styles.d.ts +1 -1
- package/node/components/ToggleButton/styles.js +19 -15
- package/node/components/Tooltip/Tooltip.js +11 -2
- package/node/components/Tooltip/constants.d.ts +4 -0
- package/node/components/Tooltip/constants.js +4 -0
- package/node/components/Tooltip/styles.js +25 -30
- package/node/components/Tooltip/types.d.ts +5 -0
- package/node/components/Tooltip/useLogic/useLogic.d.ts +4 -4
- package/node/components/Tooltip/useLogic/useLogic.js +7 -1
- package/node/components/Tree/TreeItem/styles.d.ts +2 -1
- package/node/components/fileUploading/FileInfo/styles.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,16 +4,22 @@ 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, ...restProps } = props;
|
|
7
|
+
const { children, className: propClassName, width, style, ...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
|
+
};
|
|
14
18
|
return {
|
|
15
19
|
children,
|
|
16
20
|
className,
|
|
21
|
+
tooltipStyle,
|
|
22
|
+
width,
|
|
17
23
|
...restProps,
|
|
18
24
|
};
|
|
19
25
|
};
|
|
@@ -341,6 +341,7 @@ 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;
|
|
344
345
|
size?: import("../..").TooltipSize | undefined;
|
|
345
346
|
componentsProps?: {
|
|
346
347
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -378,7 +379,7 @@ export declare const Note: import("@emotion/styled/dist/declarations/src/types")
|
|
|
378
379
|
leaveDelay?: number | undefined;
|
|
379
380
|
leaveTouchDelay?: number | undefined;
|
|
380
381
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
381
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
382
|
+
placement?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
|
|
382
383
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
383
384
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
384
385
|
withoutContainer?: boolean | undefined;
|
|
@@ -295,6 +295,7 @@ 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;
|
|
298
299
|
size?: import("../..").TooltipSize | undefined;
|
|
299
300
|
componentsProps?: {
|
|
300
301
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -332,7 +333,7 @@ export declare const StyledFilename: import("@emotion/styled/dist/declarations/s
|
|
|
332
333
|
leaveDelay?: number | undefined;
|
|
333
334
|
leaveTouchDelay?: number | undefined;
|
|
334
335
|
onOpen?: ((event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
335
|
-
placement?: "bottom" | "left" | "right" | "top" | "
|
|
336
|
+
placement?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
|
|
336
337
|
PopperComponent?: import("react").JSXElementConstructor<import("@mui/material").PopperProps> | undefined;
|
|
337
338
|
PopperProps?: Partial<import("@mui/material").PopperProps> | undefined;
|
|
338
339
|
withoutContainer?: boolean | undefined;
|