@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.
- package/components/Accordion/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
- package/components/BulletListItem/styles.d.ts +1 -1
- package/components/Chevron/styles.d.ts +1 -1
- package/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
- package/components/ComplianceStatus/styles.d.ts +3 -3
- package/components/CopyTypography/styles.d.ts +1 -1
- package/components/DataGrid/Row/styles.d.ts +1 -1
- package/components/DataGridCollapsibleRow/styles.d.ts +1 -1
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
- package/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
- package/components/GuidTypography/GuidTypography.d.ts +2 -8
- package/components/GuidTypography/GuidTypography.js +12 -7
- package/components/GuidTypography/index.d.ts +2 -1
- package/components/GuidTypography/public.d.ts +2 -1
- package/components/GuidTypography/types.d.ts +16 -0
- package/components/GuidTypography/types.js +1 -0
- package/components/GuidTypography/useLogic/index.d.ts +1 -0
- package/components/GuidTypography/useLogic/index.js +1 -0
- package/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
- package/components/GuidTypography/useLogic/useLogic.js +18 -0
- 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 +11 -4
- package/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
- package/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
- package/components/HintIcon/constants.d.ts +5 -4
- package/components/HintIcon/constants.js +4 -5
- package/components/HintIcon/types.d.ts +6 -0
- package/components/JsonViewer/JsonNode/styles.d.ts +1 -1
- package/components/JsonViewer/NodeValue/styles.d.ts +2 -0
- package/components/LegacyNotification/styles.d.ts +4 -4
- package/components/Loader/styles.d.ts +1 -1
- package/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
- package/components/NewPopover/styles.js +1 -1
- package/components/NewStepper/Step/styles.d.ts +1 -1
- package/components/Notification/styles.d.ts +4 -4
- package/components/SearchField/styles.d.ts +1 -1
- package/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/components/Stepper/StepIcon/styles.d.ts +5 -5
- package/components/SvgIcon/SvgIcon.js +11 -1
- package/components/SvgIcon/constants.d.ts +4 -0
- package/components/SvgIcon/constants.js +4 -0
- package/components/SvgIcon/styles.js +7 -4
- package/components/SvgIcon/types.d.ts +2 -2
- package/components/Tree/TreeItem/styles.d.ts +1 -1
- package/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/hook-form/EditableText/styles.d.ts +1 -1
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
- package/node/components/Accordion/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
- package/node/components/BulletListItem/styles.d.ts +1 -1
- package/node/components/Chevron/styles.d.ts +1 -1
- package/node/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
- package/node/components/ComplianceStatus/styles.d.ts +3 -3
- package/node/components/CopyTypography/styles.d.ts +1 -1
- package/node/components/DataGrid/Row/styles.d.ts +1 -1
- package/node/components/DataGridCollapsibleRow/styles.d.ts +1 -1
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
- package/node/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
- package/node/components/GuidTypography/GuidTypography.d.ts +2 -8
- package/node/components/GuidTypography/GuidTypography.js +11 -6
- package/node/components/GuidTypography/index.d.ts +2 -1
- package/node/components/GuidTypography/public.d.ts +2 -1
- package/node/components/GuidTypography/types.d.ts +16 -0
- package/node/components/GuidTypography/types.js +2 -0
- package/node/components/GuidTypography/useLogic/index.d.ts +1 -0
- package/node/components/GuidTypography/useLogic/index.js +17 -0
- package/node/components/GuidTypography/useLogic/useLogic.d.ts +638 -0
- package/node/components/GuidTypography/useLogic/useLogic.js +22 -0
- 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 +10 -3
- package/node/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
- package/node/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
- package/node/components/HintIcon/constants.d.ts +5 -4
- package/node/components/HintIcon/constants.js +4 -5
- package/node/components/HintIcon/types.d.ts +6 -0
- package/node/components/JsonViewer/JsonNode/styles.d.ts +1 -1
- package/node/components/JsonViewer/NodeValue/styles.d.ts +2 -0
- package/node/components/LegacyNotification/styles.d.ts +4 -4
- package/node/components/Loader/styles.d.ts +1 -1
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
- package/node/components/NewPopover/styles.js +1 -1
- package/node/components/NewStepper/Step/styles.d.ts +1 -1
- package/node/components/Notification/styles.d.ts +4 -4
- package/node/components/SearchField/styles.d.ts +1 -1
- package/node/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/node/components/Stepper/StepIcon/styles.d.ts +5 -5
- package/node/components/SvgIcon/SvgIcon.js +11 -1
- package/node/components/SvgIcon/constants.d.ts +4 -0
- package/node/components/SvgIcon/constants.js +4 -0
- package/node/components/SvgIcon/styles.js +7 -4
- package/node/components/SvgIcon/types.d.ts +2 -2
- package/node/components/Tree/TreeItem/styles.d.ts +1 -1
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/node/hook-form/EditableText/styles.d.ts +1 -1
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
- 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 {
|
|
2
|
-
export
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
}, ...
|
|
20
|
+
}, ...restProps }));
|
|
16
21
|
};
|
|
17
22
|
exports.GuidTypography = GuidTypography;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { GuidTypography
|
|
1
|
+
export { GuidTypography } from './GuidTypography';
|
|
2
|
+
export type { GuidTypographyProps } from './types';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { 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 * 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);
|