@astral/ui 4.88.1 → 4.90.0

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 (109) hide show
  1. package/components/Accordion/styles.d.ts +1 -1
  2. package/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
  3. package/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
  4. package/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
  5. package/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
  6. package/components/BulletListItem/styles.d.ts +1 -1
  7. package/components/Chevron/styles.d.ts +1 -1
  8. package/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
  9. package/components/ComplianceStatus/styles.d.ts +3 -3
  10. package/components/CopyTypography/styles.d.ts +1 -1
  11. package/components/DataGrid/Row/styles.d.ts +1 -1
  12. package/components/DataGridCollapsibleRow/styles.d.ts +1 -1
  13. package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
  14. package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
  15. package/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
  16. package/components/GuidTypography/GuidTypography.d.ts +2 -8
  17. package/components/GuidTypography/GuidTypography.js +12 -7
  18. package/components/GuidTypography/index.d.ts +2 -1
  19. package/components/GuidTypography/public.d.ts +2 -1
  20. package/components/GuidTypography/types.d.ts +16 -0
  21. package/components/GuidTypography/types.js +1 -0
  22. package/components/GuidTypography/useLogic/index.d.ts +1 -0
  23. package/components/GuidTypography/useLogic/index.js +1 -0
  24. package/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
  25. package/components/GuidTypography/useLogic/useLogic.js +18 -0
  26. package/components/HintIcon/HintIcon.d.ts +1 -1
  27. package/components/HintIcon/HintIcon.js +2 -2
  28. package/components/HintIcon/Icon/Icon.d.ts +1 -1
  29. package/components/HintIcon/Icon/Icon.js +11 -4
  30. package/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
  31. package/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
  32. package/components/HintIcon/constants.d.ts +5 -4
  33. package/components/HintIcon/constants.js +4 -5
  34. package/components/HintIcon/types.d.ts +6 -0
  35. package/components/JsonViewer/JsonNode/styles.d.ts +1 -1
  36. package/components/JsonViewer/NodeValue/styles.d.ts +2 -0
  37. package/components/LegacyNotification/styles.d.ts +4 -4
  38. package/components/Loader/styles.d.ts +1 -1
  39. package/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
  40. package/components/NewPopover/styles.js +1 -1
  41. package/components/NewStepper/Step/styles.d.ts +1 -1
  42. package/components/Notification/styles.d.ts +4 -4
  43. package/components/SearchField/styles.d.ts +1 -1
  44. package/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
  45. package/components/Stepper/StepIcon/styles.d.ts +5 -5
  46. package/components/SvgIcon/SvgIcon.js +11 -1
  47. package/components/SvgIcon/constants.d.ts +4 -0
  48. package/components/SvgIcon/constants.js +4 -0
  49. package/components/SvgIcon/styles.js +7 -4
  50. package/components/SvgIcon/types.d.ts +2 -2
  51. package/components/Tree/TreeItem/styles.d.ts +1 -1
  52. package/components/fileUploading/FileInfo/styles.d.ts +1 -1
  53. package/hook-form/EditableText/styles.d.ts +1 -1
  54. package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
  55. package/node/components/Accordion/styles.d.ts +1 -1
  56. package/node/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
  57. package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
  58. package/node/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
  59. package/node/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
  60. package/node/components/BulletListItem/styles.d.ts +1 -1
  61. package/node/components/Chevron/styles.d.ts +1 -1
  62. package/node/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
  63. package/node/components/ComplianceStatus/styles.d.ts +3 -3
  64. package/node/components/CopyTypography/styles.d.ts +1 -1
  65. package/node/components/DataGrid/Row/styles.d.ts +1 -1
  66. package/node/components/DataGridCollapsibleRow/styles.d.ts +1 -1
  67. package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
  68. package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
  69. package/node/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
  70. package/node/components/GuidTypography/GuidTypography.d.ts +2 -8
  71. package/node/components/GuidTypography/GuidTypography.js +11 -6
  72. package/node/components/GuidTypography/index.d.ts +2 -1
  73. package/node/components/GuidTypography/public.d.ts +2 -1
  74. package/node/components/GuidTypography/types.d.ts +16 -0
  75. package/node/components/GuidTypography/types.js +2 -0
  76. package/node/components/GuidTypography/useLogic/index.d.ts +1 -0
  77. package/node/components/GuidTypography/useLogic/index.js +17 -0
  78. package/node/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
  79. package/node/components/GuidTypography/useLogic/useLogic.js +22 -0
  80. package/node/components/HintIcon/HintIcon.d.ts +1 -1
  81. package/node/components/HintIcon/HintIcon.js +2 -2
  82. package/node/components/HintIcon/Icon/Icon.d.ts +1 -1
  83. package/node/components/HintIcon/Icon/Icon.js +10 -3
  84. package/node/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
  85. package/node/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
  86. package/node/components/HintIcon/constants.d.ts +5 -4
  87. package/node/components/HintIcon/constants.js +4 -5
  88. package/node/components/HintIcon/types.d.ts +6 -0
  89. package/node/components/JsonViewer/JsonNode/styles.d.ts +1 -1
  90. package/node/components/JsonViewer/NodeValue/styles.d.ts +2 -0
  91. package/node/components/LegacyNotification/styles.d.ts +4 -4
  92. package/node/components/Loader/styles.d.ts +1 -1
  93. package/node/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
  94. package/node/components/NewPopover/styles.js +1 -1
  95. package/node/components/NewStepper/Step/styles.d.ts +1 -1
  96. package/node/components/Notification/styles.d.ts +4 -4
  97. package/node/components/SearchField/styles.d.ts +1 -1
  98. package/node/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
  99. package/node/components/Stepper/StepIcon/styles.d.ts +5 -5
  100. package/node/components/SvgIcon/SvgIcon.js +11 -1
  101. package/node/components/SvgIcon/constants.d.ts +4 -0
  102. package/node/components/SvgIcon/constants.js +4 -0
  103. package/node/components/SvgIcon/styles.js +7 -4
  104. package/node/components/SvgIcon/types.d.ts +2 -2
  105. package/node/components/Tree/TreeItem/styles.d.ts +1 -1
  106. package/node/components/fileUploading/FileInfo/styles.d.ts +1 -1
  107. package/node/hook-form/EditableText/styles.d.ts +1 -1
  108. package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
  109. package/package.json +1 -1
@@ -42,7 +42,7 @@ export declare const Chevron: import("../styled").StyledComponent<{
42
42
  children?: import("react").ReactNode;
43
43
  color?: string | undefined;
44
44
  titleAccess?: string | undefined;
45
- size?: "sm" | "md" | undefined;
45
+ size?: "sm" | "md" | "auto" | undefined;
46
46
  } & import("react").SVGProps<SVGSVGElement> & {
47
47
  theme?: import("@emotion/react").Theme | undefined;
48
48
  } & {
@@ -6,7 +6,7 @@ export declare const DefaultIcon: import("../../styled").StyledComponent<{
6
6
  children?: import("react").ReactNode;
7
7
  color?: string | undefined;
8
8
  titleAccess?: string | undefined;
9
- size?: "sm" | "md" | undefined;
9
+ size?: "sm" | "md" | "auto" | undefined;
10
10
  } & import("react").SVGProps<SVGSVGElement> & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  }, {}, {}>;
@@ -17,7 +17,7 @@ export declare const ErrorIcon: import("../../styled").StyledComponent<{
17
17
  children?: import("react").ReactNode;
18
18
  color?: string | undefined;
19
19
  titleAccess?: string | undefined;
20
- size?: "sm" | "md" | undefined;
20
+ size?: "sm" | "md" | "auto" | undefined;
21
21
  } & import("react").SVGProps<SVGSVGElement> & {
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
23
  }, {}, {}>;
@@ -3,7 +3,7 @@ export declare const LoadingIcon: import("../../styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  color?: string | undefined;
5
5
  titleAccess?: string | undefined;
6
- size?: "sm" | "md" | undefined;
6
+ size?: "sm" | "md" | "auto" | undefined;
7
7
  } & import("react").SVGProps<SVGSVGElement> & {
8
8
  theme?: import("@emotion/react").Theme | undefined;
9
9
  }, {}, {}>;
@@ -3,7 +3,7 @@ export declare const SuccessIcon: import("../../styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  color?: string | undefined;
5
5
  titleAccess?: string | undefined;
6
- size?: "sm" | "md" | undefined;
6
+ size?: "sm" | "md" | "auto" | undefined;
7
7
  } & import("react").SVGProps<SVGSVGElement> & {
8
8
  theme?: import("@emotion/react").Theme | undefined;
9
9
  }, {}, {}>;
@@ -7,7 +7,7 @@ export declare const Icon: import("../styled").StyledComponent<{
7
7
  children?: import("react").ReactNode;
8
8
  color?: string | undefined;
9
9
  titleAccess?: string | undefined;
10
- size?: "sm" | "md" | undefined;
10
+ size?: "sm" | "md" | "auto" | undefined;
11
11
  } & import("react").SVGProps<SVGSVGElement> & {
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
13
  }, {}, {}>;
@@ -6,7 +6,7 @@ export declare const ChevronIcon: import("../styled").StyledComponent<{
6
6
  children?: import("react").ReactNode;
7
7
  color?: string | undefined;
8
8
  titleAccess?: string | undefined;
9
- size?: "sm" | "md" | undefined;
9
+ size?: "sm" | "md" | "auto" | undefined;
10
10
  } & import("react").SVGProps<SVGSVGElement> & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  } & ChevronWrapperProps, {}, {}>;
@@ -3,7 +3,7 @@ export declare const StatusIcon: import("../../styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  color?: string | undefined;
5
5
  titleAccess?: string | undefined;
6
- size?: "sm" | "md" | undefined;
6
+ size?: "sm" | "md" | "auto" | undefined;
7
7
  } & import("react").SVGProps<SVGSVGElement> & {
8
8
  theme?: import("@emotion/react").Theme | undefined;
9
9
  }, {}, {}>;
@@ -20,7 +20,7 @@ export declare const EmptyIcon: import("../styled").StyledComponent<{
20
20
  children?: import("react").ReactNode;
21
21
  color?: string | undefined;
22
22
  titleAccess?: string | undefined;
23
- size?: "sm" | "md" | undefined;
23
+ size?: "sm" | "md" | "auto" | undefined;
24
24
  } & import("react").SVGProps<SVGSVGElement>, {}, {}>;
25
25
  export declare const RejectIcon: import("../styled").StyledComponent<{
26
26
  theme?: import("@emotion/react").Theme | undefined;
@@ -31,7 +31,7 @@ export declare const RejectIcon: import("../styled").StyledComponent<{
31
31
  children?: import("react").ReactNode;
32
32
  color?: string | undefined;
33
33
  titleAccess?: string | undefined;
34
- size?: "sm" | "md" | undefined;
34
+ size?: "sm" | "md" | "auto" | undefined;
35
35
  } & import("react").SVGProps<SVGSVGElement>, {}, {}>;
36
36
  export declare const SuccessIcon: import("../styled").StyledComponent<{
37
37
  theme?: import("@emotion/react").Theme | undefined;
@@ -42,7 +42,7 @@ export declare const SuccessIcon: import("../styled").StyledComponent<{
42
42
  children?: import("react").ReactNode;
43
43
  color?: string | undefined;
44
44
  titleAccess?: string | undefined;
45
- size?: "sm" | "md" | undefined;
45
+ size?: "sm" | "md" | "auto" | undefined;
46
46
  } & import("react").SVGProps<SVGSVGElement>, {}, {}>;
47
47
  export declare const StyledLoader: import("../styled").StyledComponent<import("../Loader").LoaderProps & {
48
48
  theme?: import("@emotion/react").Theme | undefined;
@@ -18,7 +18,7 @@ export declare const StyledCopyIcon: import("../styled").StyledComponent<{
18
18
  children?: import("react").ReactNode;
19
19
  color?: string | undefined;
20
20
  titleAccess?: string | undefined;
21
- size?: "sm" | "md" | undefined;
21
+ size?: "sm" | "md" | "auto" | undefined;
22
22
  } & import("react").SVGProps<SVGSVGElement> & {
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
24
  } & {
@@ -34,7 +34,7 @@ export declare const ChevronIcon: import("../../styled").StyledComponent<{
34
34
  children?: import("react").ReactNode;
35
35
  color?: string | undefined;
36
36
  titleAccess?: string | undefined;
37
- size?: "sm" | "md" | undefined;
37
+ size?: "sm" | "md" | "auto" | undefined;
38
38
  } & import("react").SVGProps<SVGSVGElement> & {
39
39
  theme?: import("@emotion/react").Theme | undefined;
40
40
  } & {
@@ -33,7 +33,7 @@ export declare const ChevronIcon: import("../styled").StyledComponent<{
33
33
  children?: import("react").ReactNode;
34
34
  color?: string | undefined;
35
35
  titleAccess?: string | undefined;
36
- size?: "sm" | "md" | undefined;
36
+ size?: "sm" | "md" | "auto" | undefined;
37
37
  } & import("react").SVGProps<SVGSVGElement> & {
38
38
  theme?: import("@emotion/react").Theme | undefined;
39
39
  }, {}, {}>;
@@ -6,7 +6,7 @@ export declare const NextIcon: import("../../../../styled").StyledComponent<{
6
6
  children?: import("react").ReactNode;
7
7
  color?: string | undefined;
8
8
  titleAccess?: string | undefined;
9
- size?: "sm" | "md" | undefined;
9
+ size?: "sm" | "md" | "auto" | undefined;
10
10
  } & import("react").SVGProps<SVGSVGElement> & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  }, {}, {}>;
@@ -18,7 +18,7 @@ export declare const DoubleNextIcon: import("../../../../styled").StyledComponen
18
18
  children?: import("react").ReactNode;
19
19
  color?: string | undefined;
20
20
  titleAccess?: string | undefined;
21
- size?: "sm" | "md" | undefined;
21
+ size?: "sm" | "md" | "auto" | undefined;
22
22
  } & import("react").SVGProps<SVGSVGElement> & {
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
24
  }, {}, {}>;
@@ -6,7 +6,7 @@ export declare const PrevIcon: import("../../../../styled").StyledComponent<{
6
6
  children?: import("react").ReactNode;
7
7
  color?: string | undefined;
8
8
  titleAccess?: string | undefined;
9
- size?: "sm" | "md" | undefined;
9
+ size?: "sm" | "md" | "auto" | undefined;
10
10
  } & import("react").SVGProps<SVGSVGElement> & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  }, {}, {}>;
@@ -18,7 +18,7 @@ export declare const DoublePrevIcon: import("../../../../styled").StyledComponen
18
18
  children?: import("react").ReactNode;
19
19
  color?: string | undefined;
20
20
  titleAccess?: string | undefined;
21
- size?: "sm" | "md" | undefined;
21
+ size?: "sm" | "md" | "auto" | undefined;
22
22
  } & import("react").SVGProps<SVGSVGElement> & {
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
24
  }, {}, {}>;
@@ -11,7 +11,7 @@ export declare const SuccessIcon: import("../../styled").StyledComponent<{
11
11
  children?: import("react").ReactNode;
12
12
  color?: string | undefined;
13
13
  titleAccess?: string | undefined;
14
- size?: "sm" | "md" | undefined;
14
+ size?: "sm" | "md" | "auto" | undefined;
15
15
  } & import("react").SVGProps<SVGSVGElement> & {
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
17
  }, {}, {}>;
@@ -19,7 +19,7 @@ export declare const ErrorIcon: import("../../styled").StyledComponent<{
19
19
  children?: import("react").ReactNode;
20
20
  color?: string | undefined;
21
21
  titleAccess?: string | undefined;
22
- size?: "sm" | "md" | undefined;
22
+ size?: "sm" | "md" | "auto" | undefined;
23
23
  } & import("react").SVGProps<SVGSVGElement> & {
24
24
  theme?: import("@emotion/react").Theme | undefined;
25
25
  }, {}, {}>;
@@ -1,8 +1,2 @@
1
- import { type OverflowedTypographyProps } from '../OverflowTypography';
2
- export type GuidTypographyProps = OverflowedTypographyProps & {
3
- /**
4
- * Скрытие персональных данных от инструментов мониторинга
5
- */
6
- isHidePersonalData?: boolean;
7
- };
8
- export declare const GuidTypography: ({ className, isHidePersonalData, tooltipProps, ...props }: GuidTypographyProps) => import("react/jsx-runtime").JSX.Element;
1
+ import type { GuidTypographyProps } from './types';
2
+ export declare const GuidTypography: (props: GuidTypographyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,18 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { OverflowTypography, } from '../OverflowTypography';
3
- import { useHidePersonalData } from '../personalDataSecurity';
2
+ import { CopyTypography } from '../CopyTypography';
3
+ import { OverflowTypography } from '../OverflowTypography';
4
4
  import { classNames } from '../utils/classNames';
5
- export const GuidTypography = ({ className, isHidePersonalData, tooltipProps, ...props }) => {
6
- const hidePersonalDataClassname = useHidePersonalData({
7
- isEnabled: isHidePersonalData,
8
- });
5
+ import { useLogic } from './useLogic';
6
+ export const GuidTypography = (props) => {
7
+ const { className, tooltipProps, canCopy, copyParams, restProps, resolvedCopyText, hidePersonalDataClassname, } = useLogic(props);
8
+ if (canCopy) {
9
+ return (_jsx(CopyTypography, { isShowCopyText: true, copyText: resolvedCopyText, tooltipProps: {
10
+ ...tooltipProps,
11
+ className: classNames(tooltipProps?.className, hidePersonalDataClassname),
12
+ }, ...copyParams, children: _jsx(OverflowTypography, { visibleLastSymbolsCount: 4, className: classNames(className, hidePersonalDataClassname), tooltipProps: { title: undefined }, ...restProps }) }));
13
+ }
9
14
  return (_jsx(OverflowTypography, { visibleLastSymbolsCount: 4, className: classNames(className, hidePersonalDataClassname), tooltipProps: {
10
15
  ...tooltipProps,
11
16
  className: classNames(tooltipProps?.className, hidePersonalDataClassname),
12
- }, ...props }));
17
+ }, ...restProps }));
13
18
  };
@@ -1 +1,2 @@
1
- export { GuidTypography, type GuidTypographyProps } from './GuidTypography';
1
+ export { GuidTypography } from './GuidTypography';
2
+ export type { GuidTypographyProps } from './types';
@@ -1 +1,2 @@
1
- export { GuidTypography, type GuidTypographyProps } from './GuidTypography';
1
+ export { GuidTypography } from './GuidTypography';
2
+ export type { GuidTypographyProps } from './types';
@@ -0,0 +1,16 @@
1
+ import { type CopyTypographyProps } from '../CopyTypography';
2
+ import { type OverflowedTypographyProps } from '../OverflowTypography';
3
+ export type GuidTypographyProps = OverflowedTypographyProps & {
4
+ /**
5
+ * Скрытие персональных данных от инструментов мониторинга
6
+ */
7
+ isHidePersonalData?: boolean;
8
+ /**
9
+ * Добавляет возможность копирования
10
+ */
11
+ canCopy?: boolean;
12
+ /**
13
+ * Добавляет параметры для CopyTypography
14
+ */
15
+ copyParams?: CopyTypographyProps;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './useLogic';
@@ -0,0 +1 @@
1
+ export * from './useLogic';