@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
@@ -33,7 +33,7 @@ export declare const ChevronIcon: import("@emotion/styled/dist/declarations/src/
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("@emotion/styled/dist/declarations/src/typ
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("@emotion/styled/dist/declarations/s
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("@emotion/styled/dist/declarations/src/typ
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("@emotion/styled/dist/declarations/s
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("@emotion/styled/dist/declarations/src/
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("@emotion/styled/dist/declarations/src/ty
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;
@@ -2,16 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GuidTypography = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const CopyTypography_1 = require("../CopyTypography");
5
6
  const OverflowTypography_1 = require("../OverflowTypography");
6
- const personalDataSecurity_1 = require("../personalDataSecurity");
7
7
  const classNames_1 = require("../utils/classNames");
8
- const GuidTypography = ({ className, isHidePersonalData, tooltipProps, ...props }) => {
9
- const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
10
- isEnabled: isHidePersonalData,
11
- });
8
+ const useLogic_1 = require("./useLogic");
9
+ const GuidTypography = (props) => {
10
+ const { className, tooltipProps, canCopy, copyParams, restProps, resolvedCopyText, hidePersonalDataClassname, } = (0, useLogic_1.useLogic)(props);
11
+ if (canCopy) {
12
+ return ((0, jsx_runtime_1.jsx)(CopyTypography_1.CopyTypography, { isShowCopyText: true, copyText: resolvedCopyText, tooltipProps: {
13
+ ...tooltipProps,
14
+ className: (0, classNames_1.classNames)(tooltipProps?.className, hidePersonalDataClassname),
15
+ }, ...copyParams, children: (0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0, classNames_1.classNames)(className, hidePersonalDataClassname), tooltipProps: { title: undefined }, ...restProps }) }));
16
+ }
12
17
  return ((0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { visibleLastSymbolsCount: 4, className: (0, classNames_1.classNames)(className, hidePersonalDataClassname), tooltipProps: {
13
18
  ...tooltipProps,
14
19
  className: (0, classNames_1.classNames)(tooltipProps?.className, hidePersonalDataClassname),
15
- }, ...props }));
20
+ }, ...restProps }));
16
21
  };
17
22
  exports.GuidTypography = GuidTypography;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './useLogic';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./useLogic"), exports);