@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.
Files changed (73) hide show
  1. package/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
  2. package/components/Autocomplete/styles.d.ts +1 -1
  3. package/components/CopyTypography/useLogic/useLogic.d.ts +1 -2
  4. package/components/Description/Value/styles.d.ts +1 -2
  5. package/components/HintIcon/HintIcon.d.ts +1 -1
  6. package/components/HintIcon/HintIcon.js +2 -2
  7. package/components/HintIcon/Icon/Icon.d.ts +1 -1
  8. package/components/HintIcon/Icon/Icon.js +2 -2
  9. package/components/HintIcon/types.d.ts +1 -5
  10. package/components/JsonViewer/NodeValue/styles.d.ts +3 -6
  11. package/components/Menu/Menu.d.ts +1 -1
  12. package/components/Menu/Menu.js +3 -3
  13. package/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
  14. package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -2
  15. package/components/OverflowTypography/OverflowTypography.d.ts +1 -2
  16. package/components/ProductSwitcher/Content/styles.d.ts +1 -1
  17. package/components/Profile/MenuList/MenuList.js +3 -2
  18. package/components/Profile/MenuList/styles.d.ts +1 -1
  19. package/components/Profile/Profile.js +5 -17
  20. package/components/Profile/constants.d.ts +1 -0
  21. package/components/Profile/constants.js +1 -0
  22. package/components/Profile/useLogic/index.d.ts +1 -0
  23. package/components/Profile/useLogic/index.js +1 -0
  24. package/components/Profile/useLogic/useLogic.d.ts +11 -0
  25. package/components/Profile/useLogic/useLogic.js +46 -0
  26. package/components/Select/styles.d.ts +1 -1
  27. package/components/TextField/styles.d.ts +1 -1
  28. package/components/Tooltip/Tooltip.js +2 -11
  29. package/components/Tooltip/constants.d.ts +0 -4
  30. package/components/Tooltip/constants.js +0 -4
  31. package/components/Tooltip/styles.js +8 -23
  32. package/components/Tooltip/types.d.ts +0 -5
  33. package/components/Tooltip/useLogic/useLogic.d.ts +4 -4
  34. package/components/Tooltip/useLogic/useLogic.js +1 -7
  35. package/components/Tree/TreeItem/styles.d.ts +1 -2
  36. package/components/fileUploading/FileInfo/styles.d.ts +1 -2
  37. package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +1 -1
  38. package/node/components/Autocomplete/styles.d.ts +1 -1
  39. package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -2
  40. package/node/components/Description/Value/styles.d.ts +1 -2
  41. package/node/components/HintIcon/HintIcon.d.ts +1 -1
  42. package/node/components/HintIcon/HintIcon.js +2 -2
  43. package/node/components/HintIcon/Icon/Icon.d.ts +1 -1
  44. package/node/components/HintIcon/Icon/Icon.js +2 -2
  45. package/node/components/HintIcon/types.d.ts +1 -5
  46. package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -6
  47. package/node/components/Menu/Menu.d.ts +1 -1
  48. package/node/components/Menu/Menu.js +3 -3
  49. package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +1 -1
  50. package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -2
  51. package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -2
  52. package/node/components/ProductSwitcher/Content/styles.d.ts +1 -1
  53. package/node/components/Profile/MenuList/MenuList.js +3 -2
  54. package/node/components/Profile/MenuList/styles.d.ts +1 -1
  55. package/node/components/Profile/Profile.js +4 -19
  56. package/node/components/Profile/constants.d.ts +1 -0
  57. package/node/components/Profile/constants.js +2 -1
  58. package/node/components/Profile/useLogic/index.d.ts +1 -0
  59. package/node/components/Profile/useLogic/index.js +17 -0
  60. package/node/components/Profile/useLogic/useLogic.d.ts +11 -0
  61. package/node/components/Profile/useLogic/useLogic.js +50 -0
  62. package/node/components/Select/styles.d.ts +1 -1
  63. package/node/components/TextField/styles.d.ts +1 -1
  64. package/node/components/Tooltip/Tooltip.js +2 -11
  65. package/node/components/Tooltip/constants.d.ts +0 -4
  66. package/node/components/Tooltip/constants.js +0 -4
  67. package/node/components/Tooltip/styles.js +30 -25
  68. package/node/components/Tooltip/types.d.ts +0 -5
  69. package/node/components/Tooltip/useLogic/useLogic.d.ts +4 -4
  70. package/node/components/Tooltip/useLogic/useLogic.js +1 -7
  71. package/node/components/Tree/TreeItem/styles.d.ts +1 -2
  72. package/node/components/fileUploading/FileInfo/styles.d.ts +1 -2
  73. 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
- import { type CSSProperties } from 'react';
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" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
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, width, style, ...restProps } = props;
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" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
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" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.62.0",
3
+ "version": "4.62.1-rc.1",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {