@astral/ui 4.70.0 → 4.71.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 -0
- package/components/Alert/styles.d.ts +2 -0
- package/components/AutoSaveIndicator/styles.d.ts +2 -0
- package/components/BottomDrawer/styles.d.ts +1 -0
- package/components/Chip/styles.d.ts +1 -0
- package/components/CodeField/styles.d.ts +1 -0
- package/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/components/CollapsibleTypography/styles.d.ts +1 -0
- package/components/ConfirmAction/styles.d.ts +1 -0
- package/components/CopyTypography/styles.d.ts +1 -0
- package/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/components/DataGrid/Cell/Cell.js +5 -2
- package/components/DataGrid/Cell/constants.d.ts +1 -0
- package/components/DataGrid/Cell/constants.js +1 -0
- package/components/DataGrid/Cell/styles.d.ts +1 -0
- package/components/DataGrid/Cell/styles.js +4 -0
- package/components/DataGrid/Cell/useLogic/useLogic.d.ts +1 -0
- package/components/DataGrid/Cell/useLogic/useLogic.js +6 -2
- package/components/DataGrid/DataGrid.js +2 -2
- package/components/DataGrid/DataGridContext/DataGridContext.d.ts +1 -0
- package/components/DataGrid/DataGridContext/DataGridContext.js +1 -0
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -1
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +3 -1
- package/components/DataGrid/Row/styles.d.ts +1 -0
- package/components/DataGrid/types.d.ts +8 -0
- package/components/DataGridPagination/styles.d.ts +1 -0
- package/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/components/Description/Description.d.ts +4 -0
- package/components/Description/Description.js +5 -2
- package/components/Description/Value/Value.d.ts +1 -1
- package/components/Description/Value/styles.d.ts +2 -0
- package/components/Description/constants.d.ts +1 -0
- package/components/Description/constants.js +1 -0
- package/components/Description/styles.js +4 -0
- package/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/components/DescriptionList/DescriptionList.js +4 -3
- package/components/DescriptionList/styles.d.ts +2 -1
- package/components/DescriptionList/types.d.ts +2 -2
- package/components/Fieldset/styles.d.ts +2 -0
- package/components/Filename/styles.d.ts +1 -0
- package/components/FlowButton/styles.d.ts +1 -0
- package/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
- package/components/MenuGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
- package/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/components/MenuOrganization/styles.d.ts +1 -0
- package/components/MinimalisticPagination/styles.d.ts +1 -0
- package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/components/NewStepper/Step/Description/styles.d.ts +1 -0
- package/components/NewStepper/Step/Label/styles.d.ts +2 -0
- package/components/NotFoundPage/styles.d.ts +2 -0
- package/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/components/NotificationList/ListItem/styles.d.ts +1 -0
- package/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/components/OverflowTypography/styles.d.ts +2 -0
- package/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/components/PageHeader/Title/styles.d.ts +1 -0
- package/components/Pagination/PaginationItem/styles.d.ts +1 -0
- package/components/PinButton/styles.d.ts +1 -0
- package/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/components/Tree/TreeItem/styles.d.ts +2 -0
- package/components/Typography/Typography.d.ts +1 -0
- package/components/Typography/Typography.js +13 -4
- package/components/Typography/constants.d.ts +1 -0
- package/components/Typography/constants.js +2 -1
- package/components/Typography/styles.js +4 -0
- package/components/Typography/types.d.ts +4 -0
- package/components/WelcomeScreen/styles.d.ts +2 -0
- package/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
- package/hook-form/EditableText/styles.d.ts +1 -0
- package/node/components/Accordion/styles.d.ts +1 -0
- package/node/components/Alert/styles.d.ts +2 -0
- package/node/components/AutoSaveIndicator/styles.d.ts +2 -0
- package/node/components/BottomDrawer/styles.d.ts +1 -0
- package/node/components/Chip/styles.d.ts +1 -0
- package/node/components/CodeField/styles.d.ts +1 -0
- package/node/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
- package/node/components/CollapsibleTypography/styles.d.ts +1 -0
- package/node/components/ConfirmAction/styles.d.ts +1 -0
- package/node/components/CopyTypography/styles.d.ts +1 -0
- package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
- package/node/components/DashboardSidebarPopover/styles.d.ts +1 -0
- package/node/components/DataGrid/Cell/Cell.js +5 -2
- package/node/components/DataGrid/Cell/constants.d.ts +1 -0
- package/node/components/DataGrid/Cell/constants.js +1 -0
- package/node/components/DataGrid/Cell/styles.d.ts +1 -0
- package/node/components/DataGrid/Cell/styles.js +4 -0
- package/node/components/DataGrid/Cell/useLogic/useLogic.d.ts +1 -0
- package/node/components/DataGrid/Cell/useLogic/useLogic.js +5 -1
- package/node/components/DataGrid/DataGrid.js +2 -2
- package/node/components/DataGrid/DataGridContext/DataGridContext.d.ts +1 -0
- package/node/components/DataGrid/DataGridContext/DataGridContext.js +1 -0
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -1
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +3 -1
- package/node/components/DataGrid/Row/styles.d.ts +1 -0
- package/node/components/DataGrid/types.d.ts +8 -0
- package/node/components/DataGridPagination/styles.d.ts +1 -0
- package/node/components/DataGridPaginationContainer/styles.d.ts +1 -0
- package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
- package/node/components/Description/Description.d.ts +4 -0
- package/node/components/Description/Description.js +5 -2
- package/node/components/Description/Value/Value.d.ts +1 -1
- package/node/components/Description/Value/styles.d.ts +2 -0
- package/node/components/Description/constants.d.ts +1 -0
- package/node/components/Description/constants.js +1 -0
- package/node/components/Description/styles.js +4 -0
- package/node/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/node/components/DescriptionList/DescriptionList.js +4 -3
- package/node/components/DescriptionList/styles.d.ts +2 -1
- package/node/components/DescriptionList/types.d.ts +2 -2
- package/node/components/Fieldset/styles.d.ts +2 -0
- package/node/components/Filename/styles.d.ts +1 -0
- package/node/components/FlowButton/styles.d.ts +1 -0
- package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -0
- package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
- package/node/components/MenuGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
- package/node/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
- package/node/components/MenuOrganization/styles.d.ts +1 -0
- package/node/components/MinimalisticPagination/styles.d.ts +1 -0
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
- package/node/components/NewStepper/Step/Description/styles.d.ts +1 -0
- package/node/components/NewStepper/Step/Label/styles.d.ts +2 -0
- package/node/components/NotFoundPage/styles.d.ts +2 -0
- package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/node/components/NotificationList/ListItem/styles.d.ts +1 -0
- package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -0
- package/node/components/OverflowTypography/styles.d.ts +2 -0
- package/node/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
- package/node/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
- package/node/components/PageHeader/Title/styles.d.ts +1 -0
- package/node/components/Pagination/PaginationItem/styles.d.ts +1 -0
- package/node/components/PinButton/styles.d.ts +1 -0
- package/node/components/ProductSwitcher/Content/styles.d.ts +1 -0
- package/node/components/Tree/TreeItem/styles.d.ts +2 -0
- package/node/components/Typography/Typography.d.ts +1 -0
- package/node/components/Typography/Typography.js +13 -4
- package/node/components/Typography/constants.d.ts +1 -0
- package/node/components/Typography/constants.js +2 -1
- package/node/components/Typography/styles.js +4 -0
- package/node/components/Typography/types.d.ts +4 -0
- package/node/components/WelcomeScreen/styles.d.ts +2 -0
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -0
- package/node/components/placeholders/Placeholder/styles.d.ts +2 -0
- package/node/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
- package/node/hook-form/EditableText/styles.d.ts +1 -0
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export declare const GroupedColumnLabel: import("@emotion/styled/dist/declaratio
|
|
|
51
51
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
52
52
|
isUpperCase?: boolean | undefined;
|
|
53
53
|
withoutCalt?: boolean | undefined;
|
|
54
|
+
isTabularNums?: boolean | undefined;
|
|
54
55
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
55
56
|
theme?: import("@emotion/react").Theme | undefined;
|
|
56
57
|
}, {}, {}>;
|
|
@@ -177,6 +177,10 @@ export type DataGridProps<TData extends Record<string, CellValue> = DataGridRow,
|
|
|
177
177
|
* @default standard
|
|
178
178
|
*/
|
|
179
179
|
gridViewMode?: 'full' | 'standard';
|
|
180
|
+
/**
|
|
181
|
+
* Включает моноширинный шрифт для чисел в таблице
|
|
182
|
+
*/
|
|
183
|
+
isTabularNums?: boolean;
|
|
180
184
|
};
|
|
181
185
|
export type DataGridSort<TSortField> = {
|
|
182
186
|
/**
|
|
@@ -279,6 +283,10 @@ export type DataGridSingleColumn<TData extends Record<string, CellValue>> = {
|
|
|
279
283
|
* Скрывает заголовок колонки на мобильных устройствах
|
|
280
284
|
*/
|
|
281
285
|
hideTitleOnMobile?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Включает моноширинный шрифт для чисел в колонке
|
|
288
|
+
*/
|
|
289
|
+
isTabularNums?: boolean;
|
|
282
290
|
children?: never;
|
|
283
291
|
};
|
|
284
292
|
export type DataGridColumns<TData extends Record<string, CellValue>> = DataGridSingleColumn<TData> | DataGridGroupColumn<TData>;
|
|
@@ -10,6 +10,7 @@ export declare const Range: import("@emotion/styled/dist/declarations/src/types"
|
|
|
10
10
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
@@ -6,6 +6,7 @@ export declare const Range: import("@emotion/styled/dist/declarations/src/types"
|
|
|
6
6
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -9,6 +9,7 @@ export declare const HeadText: import("@emotion/styled/dist/declarations/src/typ
|
|
|
9
9
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
10
10
|
isUpperCase?: boolean | undefined;
|
|
11
11
|
withoutCalt?: boolean | undefined;
|
|
12
|
+
isTabularNums?: boolean | undefined;
|
|
12
13
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
13
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
15
|
}, {}, {}>;
|
|
@@ -26,6 +26,10 @@ export type DescriptionProps = {
|
|
|
26
26
|
* @default 'default'
|
|
27
27
|
*/
|
|
28
28
|
direction?: 'default' | 'column' | 'row';
|
|
29
|
+
/**
|
|
30
|
+
* Включает моноширинные числа
|
|
31
|
+
*/
|
|
32
|
+
isTabularNums?: boolean;
|
|
29
33
|
};
|
|
30
34
|
export declare const Description: {
|
|
31
35
|
(props: DescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,12 +20,15 @@ const rootCva = (0, cva_1.cva)(constants_1.descriptionClassnames.root, {
|
|
|
20
20
|
'space-between': constants_1.descriptionClassnames.justifyContentSpaceBetween,
|
|
21
21
|
start: constants_1.descriptionClassnames.justifyContentStart,
|
|
22
22
|
},
|
|
23
|
+
isTabularNums: {
|
|
24
|
+
true: constants_1.descriptionClassnames.tabularNums,
|
|
25
|
+
},
|
|
23
26
|
},
|
|
24
27
|
});
|
|
25
28
|
const Description = (props) => {
|
|
26
29
|
const { descriptionContextProviderProps, direction } = (0, useLogic_1.useLogic)(props);
|
|
27
|
-
const { justifyContent = 'start', component = 'dl', children, leader = false, } = props;
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(DescriptionContext_1.DescriptionContextProvider, { leader: leader, direction: direction, ...descriptionContextProviderProps, children: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: rootCva({ direction, justifyContent }), as: component, children: children }) }));
|
|
30
|
+
const { justifyContent = 'start', component = 'dl', children, leader = false, isTabularNums, } = props;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(DescriptionContext_1.DescriptionContextProvider, { leader: leader, direction: direction, ...descriptionContextProviderProps, children: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: rootCva({ direction, justifyContent, isTabularNums }), as: component, children: children }) }));
|
|
29
32
|
};
|
|
30
33
|
exports.Description = Description;
|
|
31
34
|
exports.Description.Name = Name_1.Name;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type TypographyProps } from '../../Typography';
|
|
3
|
-
export type ValueProps = Pick<TypographyProps, 'color' | 'variant' | 'children'> & {
|
|
3
|
+
export type ValueProps = Pick<TypographyProps, 'color' | 'variant' | 'children' | 'isTabularNums'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @example <Description.Item stub="нет значения">value</Description.Item>
|
|
6
6
|
* Заглушка, отображающаяся, если нет значения
|
|
@@ -16,6 +16,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
16
16
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
17
17
|
isUpperCase?: boolean | undefined;
|
|
18
18
|
withoutCalt?: boolean | undefined;
|
|
19
|
+
isTabularNums?: boolean | undefined;
|
|
19
20
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
20
21
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
22
|
} & StyledTypographyProps, {}, {}>;
|
|
@@ -26,6 +27,7 @@ export declare const StyledCopyTypography: import("@emotion/styled/dist/declarat
|
|
|
26
27
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
27
28
|
isUpperCase?: boolean | undefined;
|
|
28
29
|
withoutCalt?: boolean | undefined;
|
|
30
|
+
isTabularNums?: boolean | undefined;
|
|
29
31
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
30
32
|
copyText?: string | undefined;
|
|
31
33
|
copyPosition?: "left" | "right" | undefined;
|
|
@@ -12,4 +12,5 @@ exports.descriptionClassnames = {
|
|
|
12
12
|
justifyContentSpaceBetween: (0, createUIKitClassname_1.createUIKitClassname)('description_justify-content-space-between'),
|
|
13
13
|
justifyContentStart: (0, createUIKitClassname_1.createUIKitClassname)('description_justify-content-start'),
|
|
14
14
|
leader: (0, createUIKitClassname_1.createUIKitClassname)('description__leader'),
|
|
15
|
+
tabularNums: (0, createUIKitClassname_1.createUIKitClassname)('description_tabular-nums'),
|
|
15
16
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DescriptionListProps } from './types';
|
|
2
|
-
export declare const DescriptionList: ({ items, variant: listVariant, title, direction, alignNameWidth, leader, ...props }: DescriptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DescriptionList: ({ items, variant: listVariant, title, direction, alignNameWidth, leader, isTabularNums: listIsTabularNums, ...props }: DescriptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,7 +27,7 @@ const descriptionItem = (0, cva_1.cva)(constants_1.descriptionListClassnames.ite
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
|
-
const DescriptionList = ({ items, variant: listVariant = 'default', title, direction, alignNameWidth, leader, ...props }) => {
|
|
30
|
+
const DescriptionList = ({ items, variant: listVariant = 'default', title, direction, alignNameWidth, leader, isTabularNums: listIsTabularNums, ...props }) => {
|
|
31
31
|
const { descriptionItems, descriptionListStyles } = (0, useLogic_1.useLogic)({
|
|
32
32
|
items,
|
|
33
33
|
alignNameWidth,
|
|
@@ -60,10 +60,11 @@ const DescriptionList = ({ items, variant: listVariant = 'default', title, direc
|
|
|
60
60
|
return note;
|
|
61
61
|
};
|
|
62
62
|
const renderItem = (value, name, options) => {
|
|
63
|
-
const { nameMaxWidth, note, ...restOptions } = options || {};
|
|
63
|
+
const { nameMaxWidth, note, isTabularNums: itemIsTabularNums, ...restOptions } = options || {};
|
|
64
|
+
const isTabularNums = itemIsTabularNums ?? listIsTabularNums;
|
|
64
65
|
return ((0, jsx_runtime_1.jsxs)(styles_1.DescriptionWrapper, { className: descriptionItem({
|
|
65
66
|
alignNameWidth: Boolean(alignNameWidth),
|
|
66
|
-
}), children: [(0, jsx_runtime_1.jsxs)(Description_1.Description, { direction: direction, leader: leader, ...props, component: "div", children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDescriptionName, { "$nameMaxWidth": nameMaxWidth, "$direction": direction, children: name }), render(value, restOptions)] }), note && renderNote(note)] }, `${name}:${value}`));
|
|
67
|
+
}), children: [(0, jsx_runtime_1.jsxs)(Description_1.Description, { direction: direction, leader: leader, isTabularNums: isTabularNums, ...props, component: "div", children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDescriptionName, { "$nameMaxWidth": nameMaxWidth, "$direction": direction, children: name }), render(value, restOptions)] }), note && renderNote(note)] }, `${name}:${value}`));
|
|
67
68
|
};
|
|
68
69
|
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: descriptionList({ variant: listVariant }), style: descriptionListStyles, children: [title && renderTitle(), descriptionItems.map((group, groupIndex) => ((0, jsx_runtime_1.jsx)(styles_1.ListWrapper, { "$direction": direction, "$hasDivider": groupIndex !== 0, "$variant": listVariant, children: group.map(({ name, value, options }) => renderItem(value, name, options)) }, groupIndex)))] }));
|
|
69
70
|
};
|
|
@@ -20,7 +20,7 @@ export declare const ListWrapper: import("@emotion/styled/dist/declarations/src/
|
|
|
20
20
|
$variant?: DescriptionListVariant | undefined;
|
|
21
21
|
$hasDivider: boolean;
|
|
22
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}>;
|
|
23
|
-
export declare const StyledDescriptionValue: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Pick<import("../Typography").TypographyProps, "color" | "children" | "variant"> & {
|
|
23
|
+
export declare const StyledDescriptionValue: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Pick<import("../Typography").TypographyProps, "color" | "children" | "variant" | "isTabularNums"> & {
|
|
24
24
|
stub?: import("react").ReactNode;
|
|
25
25
|
canCopy?: boolean | undefined;
|
|
26
26
|
copyPosition?: "left" | "right" | undefined;
|
|
@@ -42,6 +42,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
42
42
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
43
43
|
isUpperCase?: boolean | undefined;
|
|
44
44
|
withoutCalt?: boolean | undefined;
|
|
45
|
+
isTabularNums?: boolean | undefined;
|
|
45
46
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
46
47
|
theme?: import("@emotion/react").Theme | undefined;
|
|
47
48
|
}, {}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { DescriptionProps } from '../Description';
|
|
3
3
|
import type { ValueProps } from '../Description/Value';
|
|
4
|
-
export type DescriptionOptions = Pick<ValueProps, 'canCopy' | 'copyPosition' | 'color' | 'copyText'> & {
|
|
4
|
+
export type DescriptionOptions = Pick<ValueProps, 'canCopy' | 'copyPosition' | 'color' | 'copyText' | 'isTabularNums'> & {
|
|
5
5
|
nameMaxWidth?: string;
|
|
6
6
|
/**
|
|
7
7
|
* Вариант отображения Value в списке
|
|
@@ -23,7 +23,7 @@ export type DescriptionListItem = {
|
|
|
23
23
|
options?: DescriptionOptions;
|
|
24
24
|
};
|
|
25
25
|
export type DescriptionListVariant = 'contained' | 'default';
|
|
26
|
-
export type DescriptionListProps = Pick<DescriptionProps, 'justifyContent' | 'leader' | 'separator' | 'direction'> & {
|
|
26
|
+
export type DescriptionListProps = Pick<DescriptionProps, 'justifyContent' | 'leader' | 'separator' | 'direction' | 'isTabularNums'> & {
|
|
27
27
|
/**
|
|
28
28
|
* Список отображаемых "name: value"
|
|
29
29
|
*/
|
|
@@ -12,6 +12,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
12
12
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
13
13
|
isUpperCase?: boolean | undefined;
|
|
14
14
|
withoutCalt?: boolean | undefined;
|
|
15
|
+
isTabularNums?: boolean | undefined;
|
|
15
16
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
16
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
18
|
}, {}, {}>;
|
|
@@ -22,6 +23,7 @@ export declare const Description: import("@emotion/styled/dist/declarations/src/
|
|
|
22
23
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
23
24
|
isUpperCase?: boolean | undefined;
|
|
24
25
|
withoutCalt?: boolean | undefined;
|
|
26
|
+
isTabularNums?: boolean | undefined;
|
|
25
27
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
26
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
29
|
}, {}, {}>;
|
|
@@ -14,6 +14,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
14
14
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
15
15
|
isUpperCase?: boolean | undefined;
|
|
16
16
|
withoutCalt?: boolean | undefined;
|
|
17
|
+
isTabularNums?: boolean | undefined;
|
|
17
18
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
18
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
20
|
} & {
|
|
@@ -16,6 +16,7 @@ export declare const TargetTextWrapper: import("@emotion/styled/dist/declaration
|
|
|
16
16
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
17
17
|
isUpperCase?: boolean | undefined;
|
|
18
18
|
withoutCalt?: boolean | undefined;
|
|
19
|
+
isTabularNums?: boolean | undefined;
|
|
19
20
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
20
21
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
22
|
}, {}, {}>;
|
|
@@ -343,6 +343,7 @@ export declare const Value: import("@emotion/styled/dist/declarations/src/types"
|
|
|
343
343
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
344
344
|
isUpperCase?: boolean | undefined;
|
|
345
345
|
withoutCalt?: boolean | undefined;
|
|
346
|
+
isTabularNums?: boolean | undefined;
|
|
346
347
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
347
348
|
children?: import("react").ReactNode;
|
|
348
349
|
} & import("react").RefAttributes<HTMLElement> & {
|
|
@@ -357,6 +358,7 @@ export declare const CopyWrapper: import("@emotion/styled/dist/declarations/src/
|
|
|
357
358
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
358
359
|
isUpperCase?: boolean | undefined;
|
|
359
360
|
withoutCalt?: boolean | undefined;
|
|
361
|
+
isTabularNums?: boolean | undefined;
|
|
360
362
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
361
363
|
copyText?: string | undefined;
|
|
362
364
|
copyPosition?: "left" | "right" | undefined;
|
|
@@ -1043,6 +1045,7 @@ export declare const GuidValue: import("@emotion/styled/dist/declarations/src/ty
|
|
|
1043
1045
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
1044
1046
|
isUpperCase?: boolean | undefined;
|
|
1045
1047
|
withoutCalt?: boolean | undefined;
|
|
1048
|
+
isTabularNums?: boolean | undefined;
|
|
1046
1049
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
1047
1050
|
children?: import("react").ReactNode;
|
|
1048
1051
|
} & {
|
|
@@ -29,6 +29,7 @@ export declare const Content: import("@emotion/styled/dist/declarations/src/type
|
|
|
29
29
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
30
30
|
isUpperCase?: boolean | undefined;
|
|
31
31
|
withoutCalt?: boolean | undefined;
|
|
32
|
+
isTabularNums?: boolean | undefined;
|
|
32
33
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
33
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
35
|
}, {}, {}>;
|
|
@@ -53,6 +54,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
53
54
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
54
55
|
isUpperCase?: boolean | undefined;
|
|
55
56
|
withoutCalt?: boolean | undefined;
|
|
57
|
+
isTabularNums?: boolean | undefined;
|
|
56
58
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
57
59
|
theme?: import("@emotion/react").Theme | undefined;
|
|
58
60
|
}, {}, {}>;
|
|
@@ -6,6 +6,7 @@ export declare const Label: import("@emotion/styled/dist/declarations/src/types"
|
|
|
6
6
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -26,6 +26,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
26
26
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
27
27
|
isUpperCase?: boolean | undefined;
|
|
28
28
|
withoutCalt?: boolean | undefined;
|
|
29
|
+
isTabularNums?: boolean | undefined;
|
|
29
30
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
30
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
32
|
} & {
|
|
@@ -6,6 +6,7 @@ export declare const Label: import("@emotion/styled/dist/declarations/src/types"
|
|
|
6
6
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -23,6 +23,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
23
23
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
24
24
|
isUpperCase?: boolean | undefined;
|
|
25
25
|
withoutCalt?: boolean | undefined;
|
|
26
|
+
isTabularNums?: boolean | undefined;
|
|
26
27
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
27
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
29
|
}, {}, {}>;
|
|
@@ -6,6 +6,7 @@ export declare const PageItem: import("@emotion/styled/dist/declarations/src/typ
|
|
|
6
6
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -632,6 +632,7 @@ export declare const NavMenuItemButtonText: import("@emotion/styled/dist/declara
|
|
|
632
632
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
633
633
|
isUpperCase?: boolean | undefined;
|
|
634
634
|
withoutCalt?: boolean | undefined;
|
|
635
|
+
isTabularNums?: boolean | undefined;
|
|
635
636
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
636
637
|
children?: import("react").ReactNode;
|
|
637
638
|
} & import("react").RefAttributes<HTMLElement> & {
|
|
@@ -6,6 +6,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
6
6
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -10,6 +10,7 @@ export declare const MobileCompactLabel: import("@emotion/styled/dist/declaratio
|
|
|
10
10
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
@@ -20,6 +21,7 @@ export declare const DesktopLabel: import("@emotion/styled/dist/declarations/src
|
|
|
20
21
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
21
22
|
isUpperCase?: boolean | undefined;
|
|
22
23
|
withoutCalt?: boolean | undefined;
|
|
24
|
+
isTabularNums?: boolean | undefined;
|
|
23
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
24
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
27
|
}, {}, {}>;
|
|
@@ -10,6 +10,7 @@ export declare const Header: import("@emotion/styled/dist/declarations/src/types
|
|
|
10
10
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
@@ -20,6 +21,7 @@ export declare const Subheader: import("@emotion/styled/dist/declarations/src/ty
|
|
|
20
21
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
21
22
|
isUpperCase?: boolean | undefined;
|
|
22
23
|
withoutCalt?: boolean | undefined;
|
|
24
|
+
isTabularNums?: boolean | undefined;
|
|
23
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
24
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
27
|
}, {}, {}>;
|
|
@@ -21,6 +21,7 @@ export declare const Content: import("@emotion/styled/dist/declarations/src/type
|
|
|
21
21
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
22
22
|
isUpperCase?: boolean | undefined;
|
|
23
23
|
withoutCalt?: boolean | undefined;
|
|
24
|
+
isTabularNums?: boolean | undefined;
|
|
24
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
25
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
27
|
}, {}, {}>;
|
|
@@ -49,6 +50,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
49
50
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
50
51
|
isUpperCase?: boolean | undefined;
|
|
51
52
|
withoutCalt?: boolean | undefined;
|
|
53
|
+
isTabularNums?: boolean | undefined;
|
|
52
54
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
53
55
|
theme?: import("@emotion/react").Theme | undefined;
|
|
54
56
|
}, {}, {}>;
|
|
@@ -11,6 +11,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
11
11
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
12
12
|
isUpperCase?: boolean | undefined;
|
|
13
13
|
withoutCalt?: boolean | undefined;
|
|
14
|
+
isTabularNums?: boolean | undefined;
|
|
14
15
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
15
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
17
|
}, {}, {}>;
|
|
@@ -344,6 +344,7 @@ export declare const OverflowTypography: import("react").ForwardRefExoticCompone
|
|
|
344
344
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
345
345
|
isUpperCase?: boolean | undefined;
|
|
346
346
|
withoutCalt?: boolean | undefined;
|
|
347
|
+
isTabularNums?: boolean | undefined;
|
|
347
348
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
348
349
|
children?: import("react").ReactNode;
|
|
349
350
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -10,6 +10,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
10
10
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
12
|
withoutCalt?: boolean | undefined;
|
|
13
|
+
isTabularNums?: boolean | undefined;
|
|
13
14
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
} & OverflowTypographyWrapperProps, {}, {}>;
|
|
@@ -20,6 +21,7 @@ export declare const Wrapper: import("@emotion/styled/dist/declarations/src/type
|
|
|
20
21
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
21
22
|
isUpperCase?: boolean | undefined;
|
|
22
23
|
withoutCalt?: boolean | undefined;
|
|
24
|
+
isTabularNums?: boolean | undefined;
|
|
23
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
24
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
27
|
} & {
|
|
@@ -6,6 +6,7 @@ export declare const TitleWrapper: import("@emotion/styled/dist/declarations/src
|
|
|
6
6
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -6,6 +6,7 @@ export declare const StyledTypography: import("@emotion/styled/dist/declarations
|
|
|
6
6
|
component?: import("../../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -6,6 +6,7 @@ export declare const TitleWrapper: import("@emotion/styled/dist/declarations/src
|
|
|
6
6
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
} & {
|
|
@@ -6,6 +6,7 @@ export declare const Ellipsis: import("@emotion/styled/dist/declarations/src/typ
|
|
|
6
6
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
8
|
withoutCalt?: boolean | undefined;
|
|
9
|
+
isTabularNums?: boolean | undefined;
|
|
9
10
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
10
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
12
|
}, {}, {}>;
|
|
@@ -16,6 +16,7 @@ export declare const Content: import("@emotion/styled/dist/declarations/src/type
|
|
|
16
16
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
17
17
|
isUpperCase?: boolean | undefined;
|
|
18
18
|
withoutCalt?: boolean | undefined;
|
|
19
|
+
isTabularNums?: boolean | undefined;
|
|
19
20
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
20
21
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
22
|
}, {}, {}>;
|
|
@@ -20,6 +20,7 @@ export declare const ProductName: import("@emotion/styled/dist/declarations/src/
|
|
|
20
20
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
21
21
|
isUpperCase?: boolean | undefined;
|
|
22
22
|
withoutCalt?: boolean | undefined;
|
|
23
|
+
isTabularNums?: boolean | undefined;
|
|
23
24
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
24
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
26
|
}, {}, {}>;
|
|
@@ -49,6 +49,7 @@ export declare const Label: import("@emotion/styled/dist/declarations/src/types"
|
|
|
49
49
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
50
50
|
isUpperCase?: boolean | undefined;
|
|
51
51
|
withoutCalt?: boolean | undefined;
|
|
52
|
+
isTabularNums?: boolean | undefined;
|
|
52
53
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
53
54
|
theme?: import("@emotion/react").Theme | undefined;
|
|
54
55
|
}, {}, {}>;
|
|
@@ -395,6 +396,7 @@ export declare const Note: import("@emotion/styled/dist/declarations/src/types")
|
|
|
395
396
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
396
397
|
isUpperCase?: boolean | undefined;
|
|
397
398
|
withoutCalt?: boolean | undefined;
|
|
399
|
+
isTabularNums?: boolean | undefined;
|
|
398
400
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
399
401
|
children?: import("react").ReactNode;
|
|
400
402
|
} & import("react").RefAttributes<HTMLElement> & {
|
|
@@ -13,4 +13,5 @@ export declare const Typography: import("react").ForwardRefExoticComponent<impor
|
|
|
13
13
|
component?: ComponentProp | undefined;
|
|
14
14
|
isUpperCase?: boolean | undefined;
|
|
15
15
|
withoutCalt?: boolean | undefined;
|
|
16
|
+
isTabularNums?: boolean | undefined;
|
|
16
17
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -4,12 +4,21 @@ exports.Typography = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classNames_1 = require("../utils/classNames");
|
|
7
|
+
const cva_1 = require("../utils/cva");
|
|
7
8
|
const constants_1 = require("./constants");
|
|
8
9
|
const hooks_1 = require("./hooks");
|
|
9
10
|
const styles_1 = require("./styles");
|
|
10
|
-
|
|
11
|
+
const typographyCva = (0, cva_1.cva)(constants_1.typographyClassnames.root, {
|
|
12
|
+
variants: {
|
|
13
|
+
isTabularNums: {
|
|
14
|
+
true: constants_1.typographyClassnames.tabularNums,
|
|
15
|
+
},
|
|
16
|
+
withoutCalt: {
|
|
17
|
+
true: constants_1.typographyClassnames.withoutCalt,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
exports.Typography = (0, react_1.forwardRef)(({ children, color, colorIntensity = '800', component, withoutCalt, className, isTabularNums, ...props }, ref) => {
|
|
11
22
|
const typographyColor = (0, hooks_1.useTypographyColor)({ color, colorIntensity });
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: (0, classNames_1.classNames)(
|
|
13
|
-
[constants_1.typographyClassnames.withoutCalt]: withoutCalt,
|
|
14
|
-
}), children: children }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: (0, classNames_1.classNames)(typographyCva({ isTabularNums, withoutCalt }), className), children: children }));
|
|
15
24
|
});
|
|
@@ -4,5 +4,6 @@ exports.typographyClassnames = void 0;
|
|
|
4
4
|
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
5
|
exports.typographyClassnames = {
|
|
6
6
|
root: (0, createUIKitClassname_1.createUIKitClassname)('typography'),
|
|
7
|
-
withoutCalt: 'typography_without-calt',
|
|
7
|
+
withoutCalt: (0, createUIKitClassname_1.createUIKitClassname)('typography_without-calt'),
|
|
8
|
+
tabularNums: (0, createUIKitClassname_1.createUIKitClassname)('typography_tabular-nums'),
|
|
8
9
|
};
|
|
@@ -15,4 +15,8 @@ exports.TypographyWrapper = (0, styled_1.styled)(Typography_1.default, {
|
|
|
15
15
|
.${constants_1.typographyClassnames.withoutCalt} {
|
|
16
16
|
font-feature-settings: "calt" 0;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
&.${constants_1.typographyClassnames.tabularNums} {
|
|
20
|
+
font-feature-settings: "tnum" 1;
|
|
21
|
+
}
|
|
18
22
|
`;
|
|
@@ -35,4 +35,8 @@ export type TypographyProps = TypographyPropsBase & {
|
|
|
35
35
|
* Отключает контекстные альтернативы шрифта. Подробнее в [документации](https://ui-kit.astral.ru/?path=/docs/getting-started-fonts--docs)
|
|
36
36
|
*/
|
|
37
37
|
withoutCalt?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Включает моноширинные цифры.
|
|
40
|
+
*/
|
|
41
|
+
isTabularNums?: boolean;
|
|
38
42
|
} & HTMLAttributes<HTMLParagraphElement>;
|
|
@@ -22,6 +22,7 @@ export declare const Greeting: import("@emotion/styled/dist/declarations/src/typ
|
|
|
22
22
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
23
23
|
isUpperCase?: boolean | undefined;
|
|
24
24
|
withoutCalt?: boolean | undefined;
|
|
25
|
+
isTabularNums?: boolean | undefined;
|
|
25
26
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
26
27
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
28
|
}, {}, {}>;
|
|
@@ -32,6 +33,7 @@ export declare const UserName: import("@emotion/styled/dist/declarations/src/typ
|
|
|
32
33
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
33
34
|
isUpperCase?: boolean | undefined;
|
|
34
35
|
withoutCalt?: boolean | undefined;
|
|
36
|
+
isTabularNums?: boolean | undefined;
|
|
35
37
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
36
38
|
theme?: import("@emotion/react").Theme | undefined;
|
|
37
39
|
}, {}, {}>;
|
|
@@ -350,6 +350,7 @@ export declare const FileSize: import("@emotion/styled/dist/declarations/src/typ
|
|
|
350
350
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
351
351
|
isUpperCase?: boolean | undefined;
|
|
352
352
|
withoutCalt?: boolean | undefined;
|
|
353
|
+
isTabularNums?: boolean | undefined;
|
|
353
354
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
354
355
|
theme?: import("@emotion/react").Theme | undefined;
|
|
355
356
|
}, {}, {}>;
|