@astral/ui 4.36.1 → 4.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/Autocomplete/Autocomplete.d.ts +1 -1
- package/components/Autocomplete/Autocomplete.js +53 -15
- package/components/Autocomplete/constants.d.ts +6 -0
- package/components/Autocomplete/constants.js +7 -0
- package/components/Autocomplete/styles.js +15 -1
- package/components/Autocomplete/useLogic/useLogic.d.ts +2 -1
- package/components/Autocomplete/useLogic/useLogic.js +11 -2
- 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/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/Value/styles.d.ts +2 -0
- package/components/DescriptionList/styles.d.ts +1 -0
- 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/MaskField/MaskField.js +2 -2
- package/components/MaskField/styles.d.ts +2 -0
- package/components/MaskField/styles.js +5 -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/NotFoundPage/styles.d.ts +2 -0
- package/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/components/NotificationList/ListItem/styles.d.ts +2 -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/TagsList/Tag/Tag.d.ts +1 -1
- package/components/TagsList/Tag/constants.d.ts +1 -0
- package/components/TagsList/Tag/constants.js +1 -0
- package/components/TagsList/Tag/index.d.ts +1 -0
- package/components/TagsList/Tag/index.js +1 -0
- package/components/TagsList/Tag/styles.js +2 -0
- package/components/TagsList/TagsList.js +6 -6
- package/components/TagsList/constants.d.ts +2 -0
- package/components/TagsList/constants.js +2 -0
- package/components/TagsList/styles.js +5 -1
- package/components/TagsList/types.d.ts +14 -5
- package/components/TagsList/useLogic/useLogic.d.ts +5 -5
- package/components/TagsList/useLogic/useLogic.js +70 -110
- package/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.d.ts +6 -0
- package/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.js +35 -0
- package/components/TagsList/utils/calculateVisibleTagsCount/index.d.ts +1 -0
- package/components/TagsList/utils/calculateVisibleTagsCount/index.js +1 -0
- package/components/TagsList/utils/getAvailableWidth/getAvailableWidth.d.ts +1 -0
- package/components/TagsList/utils/getAvailableWidth/getAvailableWidth.js +7 -0
- package/components/TagsList/utils/getAvailableWidth/index.d.ts +1 -0
- package/components/TagsList/utils/getAvailableWidth/index.js +1 -0
- package/components/TagsList/utils/getKey/getKey.d.ts +1 -1
- package/components/TagsList/utils/getKey/getKey.js +6 -3
- package/components/TagsList/utils/getTagWidth/getTagWidth.d.ts +2 -0
- package/components/TagsList/utils/getTagWidth/getTagWidth.js +21 -0
- package/components/TagsList/utils/getTagWidth/index.d.ts +1 -0
- package/components/TagsList/utils/getTagWidth/index.js +1 -0
- package/components/TagsList/utils/index.d.ts +3 -0
- package/components/TagsList/utils/index.js +3 -0
- package/components/TextField/TextField.js +6 -5
- package/components/TextField/constants.d.ts +1 -0
- package/components/TextField/constants.js +1 -0
- package/components/TextField/styles.js +4 -0
- package/components/Tree/TreeItem/styles.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/Input/Input.js +1 -1
- package/components/Typography/Typography.d.ts +1 -0
- package/components/Typography/Typography.js +6 -2
- package/components/Typography/constants.d.ts +3 -0
- package/components/Typography/constants.js +3 -0
- package/components/Typography/styles.js +5 -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/Autocomplete/Autocomplete.d.ts +1 -1
- package/node/components/Autocomplete/Autocomplete.js +51 -13
- package/node/components/Autocomplete/constants.d.ts +6 -0
- package/node/components/Autocomplete/constants.js +8 -1
- package/node/components/Autocomplete/styles.js +15 -1
- package/node/components/Autocomplete/useLogic/useLogic.d.ts +2 -1
- package/node/components/Autocomplete/useLogic/useLogic.js +10 -1
- 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/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/Value/styles.d.ts +2 -0
- package/node/components/DescriptionList/styles.d.ts +1 -0
- 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/MaskField/MaskField.js +2 -2
- package/node/components/MaskField/styles.d.ts +2 -0
- package/node/components/MaskField/styles.js +8 -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/NotFoundPage/styles.d.ts +2 -0
- package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -0
- package/node/components/NotificationList/ListItem/styles.d.ts +2 -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/TagsList/Tag/Tag.d.ts +1 -1
- package/node/components/TagsList/Tag/constants.d.ts +1 -0
- package/node/components/TagsList/Tag/constants.js +4 -0
- package/node/components/TagsList/Tag/index.d.ts +1 -0
- package/node/components/TagsList/Tag/index.js +1 -0
- package/node/components/TagsList/Tag/styles.js +2 -0
- package/node/components/TagsList/TagsList.js +6 -6
- package/node/components/TagsList/constants.d.ts +2 -0
- package/node/components/TagsList/constants.js +5 -0
- package/node/components/TagsList/styles.js +5 -1
- package/node/components/TagsList/types.d.ts +14 -5
- package/node/components/TagsList/useLogic/useLogic.d.ts +5 -5
- package/node/components/TagsList/useLogic/useLogic.js +70 -110
- package/node/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.d.ts +6 -0
- package/node/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.js +39 -0
- package/node/components/TagsList/utils/calculateVisibleTagsCount/index.d.ts +1 -0
- package/node/components/TagsList/utils/calculateVisibleTagsCount/index.js +5 -0
- package/node/components/TagsList/utils/getAvailableWidth/getAvailableWidth.d.ts +1 -0
- package/node/components/TagsList/utils/getAvailableWidth/getAvailableWidth.js +11 -0
- package/node/components/TagsList/utils/getAvailableWidth/index.d.ts +1 -0
- package/node/components/TagsList/utils/getAvailableWidth/index.js +5 -0
- package/node/components/TagsList/utils/getKey/getKey.d.ts +1 -1
- package/node/components/TagsList/utils/getKey/getKey.js +6 -3
- package/node/components/TagsList/utils/getTagWidth/getTagWidth.d.ts +2 -0
- package/node/components/TagsList/utils/getTagWidth/getTagWidth.js +25 -0
- package/node/components/TagsList/utils/getTagWidth/index.d.ts +1 -0
- package/node/components/TagsList/{public.js → utils/getTagWidth/index.js} +1 -2
- package/node/components/TagsList/utils/index.d.ts +3 -0
- package/node/components/TagsList/utils/index.js +7 -1
- package/node/components/TextField/TextField.js +6 -5
- package/node/components/TextField/constants.d.ts +1 -0
- package/node/components/TextField/constants.js +1 -0
- package/node/components/TextField/styles.js +4 -0
- package/node/components/Tree/TreeItem/styles.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/Input.js +1 -1
- package/node/components/Typography/Typography.d.ts +1 -0
- package/node/components/Typography/Typography.js +6 -2
- package/node/components/Typography/constants.d.ts +3 -0
- package/node/components/Typography/constants.js +6 -0
- package/node/components/Typography/styles.js +5 -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
- package/components/TagsList/public.d.ts +0 -2
- package/components/TagsList/public.js +0 -2
- package/node/components/TagsList/public.d.ts +0 -2
|
@@ -3,146 +3,106 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const useTheme_1 = require("../../theme/hooks/useTheme");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
const useLogic = ({ data = [], keyId, getOptionLabel, onChange, inputContainerRef, reservedWidth = 0, }) => {
|
|
9
|
+
const [visibleOptions, setVisibleOptions] = (0, react_1.useState)([]);
|
|
10
|
+
const [hiddenCount, setHiddenCount] = (0, react_1.useState)(0);
|
|
10
11
|
const tagsContainerRef = (0, react_1.useRef)(null);
|
|
12
|
+
const availableWidthRef = (0, react_1.useRef)(0);
|
|
11
13
|
const theme = (0, useTheme_1.useTheme)();
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
* учитывая ширину контейнера и промежутки (gap) между тегами.
|
|
15
|
-
*
|
|
16
|
-
* @param container - DOM-элемент контейнера с тегами
|
|
17
|
-
* @param gap - расстояние между тегами (например, 4px)
|
|
18
|
-
* @param padding - отступ внутри тега
|
|
19
|
-
* @returns количество тегов, которые помещаются без переполнения
|
|
15
|
+
* Обновляет доступную ширину для расчета количества отображаемых тегов
|
|
20
16
|
*/
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return 0;
|
|
17
|
+
const updateAvailableWidth = () => {
|
|
18
|
+
const target = inputContainerRef?.current ?? tagsContainerRef.current;
|
|
19
|
+
if (target) {
|
|
20
|
+
availableWidthRef.current = (0, utils_1.getAvailableWidth)(target, reservedWidth);
|
|
26
21
|
}
|
|
27
|
-
// Преобразуем значение из темы в число
|
|
28
|
-
const gapValue = parseInt(gap, 10);
|
|
29
|
-
const paddingValue = parseInt(padding, 10);
|
|
30
|
-
let totalWidth = 0; // Накопленная ширина всех тегов + gap
|
|
31
|
-
let lastFittingIndex = tags.length; // Индекс, до которого теги помещаются
|
|
32
|
-
for (let i = 0; i < tags.length; i++) {
|
|
33
|
-
const tag = tags[i];
|
|
34
|
-
const contentEl = tag.firstElementChild;
|
|
35
|
-
// Полная ширина элемента (включая margin/padding/border)
|
|
36
|
-
const tagWidth = tag.clientWidth;
|
|
37
|
-
// gap учитывается, начиная со второго тега
|
|
38
|
-
const currentGap = i > 0 ? gapValue : 0;
|
|
39
|
-
// Проверяем, переполнен ли текст внутри тега (например, обрезался)
|
|
40
|
-
const isContentOverflowing = contentEl?.scrollWidth > contentEl?.clientWidth;
|
|
41
|
-
// Если добавление текущего тега превышает ширину контейнера
|
|
42
|
-
// или если сам контент внутри тега не помещается
|
|
43
|
-
if (totalWidth + currentGap + tagWidth > container.clientWidth ||
|
|
44
|
-
isContentOverflowing) {
|
|
45
|
-
lastFittingIndex = i;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
// Увеличиваем суммарную ширину
|
|
49
|
-
totalWidth += currentGap + tagWidth + paddingValue;
|
|
50
|
-
}
|
|
51
|
-
// Если даже первый тег не влезает, всё равно показываем один тег
|
|
52
|
-
if (lastFittingIndex === 0 && tags.length > 0) {
|
|
53
|
-
return 1;
|
|
54
|
-
}
|
|
55
|
-
return lastFittingIndex;
|
|
56
22
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Пересчитывает максимальное количество тегов (maxItems),
|
|
59
|
-
* которые помещаются в строку контейнера без переполнения.
|
|
60
|
-
*/
|
|
61
23
|
const recomputeMaxItems = () => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
24
|
+
if (data.length === 0) {
|
|
25
|
+
setVisibleOptions([]);
|
|
26
|
+
setHiddenCount(0);
|
|
65
27
|
return;
|
|
66
28
|
}
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
29
|
+
const hasNoInputContainer = !inputContainerRef?.current;
|
|
30
|
+
const isZeroWidth = availableWidthRef.current === 0;
|
|
31
|
+
const isSmallWidth = availableWidthRef.current < constants_1.MIN_AVAILABLE_WIDTH;
|
|
32
|
+
// Если нет inputContainerRef и доступная ширина слишком мала или не вычислена - показываем первый тег и счетчик(если есть)
|
|
33
|
+
if (hasNoInputContainer && (isZeroWidth || isSmallWidth)) {
|
|
34
|
+
setVisibleOptions(data.slice(0, 1));
|
|
35
|
+
setHiddenCount(data.length - 1);
|
|
70
36
|
return;
|
|
71
37
|
}
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
contentEl.style.overflowX = 'auto';
|
|
90
|
-
}
|
|
91
|
-
clone.appendChild(tagClone);
|
|
92
|
-
});
|
|
93
|
-
// Добавляем клон-контейнер в DOM, чтобы получить размеры
|
|
94
|
-
document.body.appendChild(clone);
|
|
95
|
-
// Вычисляем, сколько тегов влезает с учётом gap и padding
|
|
96
|
-
const visibleCount = getTagsCountToAdd(clone, theme.spacing(1), theme.spacing(2));
|
|
97
|
-
// Сохраняем результат в стейт
|
|
98
|
-
setMaxItems(visibleCount);
|
|
99
|
-
// Удаляем клон из DOM
|
|
100
|
-
document.body.removeChild(clone);
|
|
101
|
-
};
|
|
102
|
-
(0, react_1.useLayoutEffect)(() => {
|
|
103
|
-
if (typeof window === 'undefined' || !data || !data.length) {
|
|
38
|
+
// Если нет inputContainerRef и данных всего 1, показываем его даже при малой ширине (fallback)
|
|
39
|
+
if (hasNoInputContainer && data.length === 1) {
|
|
40
|
+
setVisibleOptions(data.slice(0, 1));
|
|
41
|
+
setHiddenCount(0);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (isSmallWidth) {
|
|
45
|
+
setVisibleOptions([]);
|
|
46
|
+
setHiddenCount(data.length);
|
|
47
|
+
}
|
|
48
|
+
// Расчет количества отображаемых тегов
|
|
49
|
+
const labels = data.map((item) => getOptionLabel(item).toString());
|
|
50
|
+
const visibleCount = (0, utils_1.calculateVisibleTagsCount)(labels, availableWidthRef.current, theme);
|
|
51
|
+
const finalCount = Math.min(visibleCount, data.length);
|
|
52
|
+
if (finalCount === 0 && hasNoInputContainer) {
|
|
53
|
+
setVisibleOptions(data.slice(0, 1));
|
|
54
|
+
setHiddenCount(data.length - 1);
|
|
104
55
|
return;
|
|
105
56
|
}
|
|
57
|
+
setVisibleOptions(data.slice(0, finalCount));
|
|
58
|
+
setHiddenCount(data.length - finalCount);
|
|
59
|
+
};
|
|
60
|
+
(0, react_1.useEffect)(() => {
|
|
61
|
+
updateAvailableWidth();
|
|
62
|
+
}, [reservedWidth]);
|
|
63
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
106
64
|
recomputeMaxItems();
|
|
107
|
-
|
|
108
|
-
ignoreResizeRef.current = true;
|
|
109
|
-
}, [data]);
|
|
65
|
+
}, []);
|
|
110
66
|
(0, react_1.useEffect)(() => {
|
|
111
|
-
if (
|
|
67
|
+
if (!data.length) {
|
|
68
|
+
setVisibleOptions([]);
|
|
69
|
+
setHiddenCount(0);
|
|
112
70
|
return;
|
|
113
71
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
// Пересчитываем maxItems при ресайзе контейнера
|
|
118
|
-
const observer = new ResizeObserver(() => {
|
|
119
|
-
if (ignoreResizeRef.current) {
|
|
120
|
-
ignoreResizeRef.current = false;
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
72
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
73
|
+
updateAvailableWidth();
|
|
123
74
|
recomputeMaxItems();
|
|
124
75
|
});
|
|
125
|
-
|
|
126
|
-
|
|
76
|
+
const target = inputContainerRef?.current ?? tagsContainerRef.current;
|
|
77
|
+
if (!target) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
resizeObserver.observe(target);
|
|
81
|
+
return () => {
|
|
82
|
+
resizeObserver.disconnect();
|
|
83
|
+
};
|
|
127
84
|
}, [data]);
|
|
128
|
-
const getTagProps = (option
|
|
85
|
+
const getTagProps = (option) => {
|
|
129
86
|
const label = getOptionLabel(option);
|
|
130
|
-
const shrinks = index === maxItems - 1 && maxItems <= data.length;
|
|
131
87
|
const onDelete = () => {
|
|
132
|
-
const newValue = data
|
|
88
|
+
const newValue = data.filter((value) => {
|
|
133
89
|
if (typeof value === 'string') {
|
|
134
90
|
return value !== option;
|
|
135
91
|
}
|
|
136
|
-
|
|
92
|
+
if (keyId) {
|
|
93
|
+
return value[keyId] !== option[keyId];
|
|
94
|
+
}
|
|
95
|
+
return getOptionLabel(value) !== getOptionLabel(option);
|
|
137
96
|
});
|
|
138
|
-
onChange(newValue
|
|
97
|
+
onChange(newValue.length ? newValue : []);
|
|
139
98
|
};
|
|
140
|
-
return { label, shrinks, onDelete };
|
|
99
|
+
return { label, shrinks: false, onDelete };
|
|
141
100
|
};
|
|
142
|
-
const
|
|
101
|
+
const showCounter = hiddenCount > 0;
|
|
143
102
|
return {
|
|
144
|
-
maxItems,
|
|
145
103
|
visibleOptions,
|
|
104
|
+
hiddenCount,
|
|
105
|
+
showCounter,
|
|
146
106
|
tagsContainerRef,
|
|
147
107
|
getTagProps,
|
|
148
108
|
};
|
package/node/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Theme } from '../../../theme/types';
|
|
2
|
+
/**
|
|
3
|
+
* Вычисляет количество тегов, которые могут поместиться в доступную ширину
|
|
4
|
+
* с учетом пробелов между тегами и счетчика оставшихся элементов
|
|
5
|
+
*/
|
|
6
|
+
export declare const calculateVisibleTagsCount: (tagLabels: string[], availableWidth: number, theme: Theme) => number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateVisibleTagsCount = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const getTagWidth_1 = require("../getTagWidth");
|
|
6
|
+
/**
|
|
7
|
+
* Вычисляет количество тегов, которые могут поместиться в доступную ширину
|
|
8
|
+
* с учетом пробелов между тегами и счетчика оставшихся элементов
|
|
9
|
+
*/
|
|
10
|
+
const calculateVisibleTagsCount = (tagLabels, availableWidth, theme) => {
|
|
11
|
+
if (!tagLabels.length || availableWidth <= 0) {
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
const tagWidths = tagLabels.map((label) => (0, getTagWidth_1.getTagWidth)(label, theme));
|
|
15
|
+
const canFitTagAtIndex = (tagIndex, accumulatedWidth) => {
|
|
16
|
+
const isFirstTag = tagIndex === 0;
|
|
17
|
+
const gapWidth = isFirstTag ? 0 : constants_1.GAP_BETWEEN_TAGS;
|
|
18
|
+
const tagsAfterCurrent = tagLabels.length - (tagIndex + 1);
|
|
19
|
+
const counterTagWidth = tagsAfterCurrent > 0
|
|
20
|
+
? (0, getTagWidth_1.getTagWidth)(`+${tagsAfterCurrent}`, theme, true) + constants_1.GAP_BETWEEN_TAGS
|
|
21
|
+
: 0;
|
|
22
|
+
const totalWidthWithTag = accumulatedWidth + gapWidth + tagWidths[tagIndex];
|
|
23
|
+
return totalWidthWithTag + counterTagWidth <= availableWidth;
|
|
24
|
+
};
|
|
25
|
+
const fittingTagIndex = tagWidths.findIndex((_, index) => {
|
|
26
|
+
const widthBeforeCurrentTag = tagWidths
|
|
27
|
+
.slice(0, index)
|
|
28
|
+
.reduce((sum, width, i) => sum + width + (i > 0 ? constants_1.GAP_BETWEEN_TAGS : 0), 0);
|
|
29
|
+
return !canFitTagAtIndex(index, widthBeforeCurrentTag);
|
|
30
|
+
});
|
|
31
|
+
const visibleTagsCount = fittingTagIndex === -1 ? tagLabels.length : fittingTagIndex;
|
|
32
|
+
if (visibleTagsCount === 0) {
|
|
33
|
+
const counterWidthAlone = (0, getTagWidth_1.getTagWidth)(`+${tagLabels.length}`, theme);
|
|
34
|
+
const remainingAfterCounter = availableWidth - counterWidthAlone;
|
|
35
|
+
return remainingAfterCounter < constants_1.MIN_AVAILABLE_WIDTH ? 0 : 1;
|
|
36
|
+
}
|
|
37
|
+
return visibleTagsCount;
|
|
38
|
+
};
|
|
39
|
+
exports.calculateVisibleTagsCount = calculateVisibleTagsCount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { calculateVisibleTagsCount } from './calculateVisibleTagsCount';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateVisibleTagsCount = void 0;
|
|
4
|
+
var calculateVisibleTagsCount_1 = require("./calculateVisibleTagsCount");
|
|
5
|
+
Object.defineProperty(exports, "calculateVisibleTagsCount", { enumerable: true, get: function () { return calculateVisibleTagsCount_1.calculateVisibleTagsCount; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAvailableWidth: (containerEl: HTMLElement, reservedWidth?: number) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAvailableWidth = void 0;
|
|
4
|
+
const getAvailableWidth = (containerEl, reservedWidth = 0) => {
|
|
5
|
+
const containerWidth = containerEl.clientWidth;
|
|
6
|
+
const paddingLeft = parseFloat(getComputedStyle(containerEl).paddingLeft);
|
|
7
|
+
const paddingRight = parseFloat(getComputedStyle(containerEl).paddingRight);
|
|
8
|
+
const availableWidth = containerWidth - paddingLeft - paddingRight - reservedWidth;
|
|
9
|
+
return availableWidth;
|
|
10
|
+
};
|
|
11
|
+
exports.getAvailableWidth = getAvailableWidth;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getAvailableWidth } from './getAvailableWidth';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAvailableWidth = void 0;
|
|
4
|
+
var getAvailableWidth_1 = require("./getAvailableWidth");
|
|
5
|
+
Object.defineProperty(exports, "getAvailableWidth", { enumerable: true, get: function () { return getAvailableWidth_1.getAvailableWidth; } });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TagValue } from '../../types';
|
|
2
|
-
export declare const getKey: (option:
|
|
2
|
+
export declare const getKey: <TData extends TagValue>(option: TData, keyId: string | undefined, getOptionLabel: (tagOption: TData) => string | number) => string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getKey = void 0;
|
|
4
|
-
const getKey = (option, keyId) => {
|
|
4
|
+
const getKey = (option, keyId, getOptionLabel) => {
|
|
5
5
|
if (typeof option === 'string') {
|
|
6
6
|
return option;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (keyId) {
|
|
9
|
+
const key = option[keyId];
|
|
10
|
+
return typeof key === 'number' ? key.toString() : key;
|
|
11
|
+
}
|
|
12
|
+
return getOptionLabel(option).toString();
|
|
10
13
|
};
|
|
11
14
|
exports.getKey = getKey;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTagWidth = void 0;
|
|
4
|
+
const Tag_1 = require("../../Tag");
|
|
5
|
+
const getTagWidth = (label, theme, isCounter = false) => {
|
|
6
|
+
/** 16px иконка и 2px padding */
|
|
7
|
+
const DELETE_ICON_WIDTH = 18;
|
|
8
|
+
const el = document.createElement('div');
|
|
9
|
+
el.textContent = label.toString();
|
|
10
|
+
el.style.visibility = 'hidden';
|
|
11
|
+
el.style.position = 'absolute';
|
|
12
|
+
el.style.display = 'inline-flex';
|
|
13
|
+
el.style.whiteSpace = 'nowrap';
|
|
14
|
+
el.style.padding = theme.spacing(0, 2);
|
|
15
|
+
el.style.paddingLeft = theme.spacing(2);
|
|
16
|
+
el.style.paddingRight = isCounter ? theme.spacing(2) : theme.microSpacing(1);
|
|
17
|
+
el.style.boxSizing = 'border-box';
|
|
18
|
+
document.body.appendChild(el);
|
|
19
|
+
const width = isCounter
|
|
20
|
+
? el.getBoundingClientRect().width
|
|
21
|
+
: el.getBoundingClientRect().width + DELETE_ICON_WIDTH;
|
|
22
|
+
document.body.removeChild(el);
|
|
23
|
+
return Math.ceil(Math.min(width, parseInt(Tag_1.MAX_TAG_WIDTH, 10)));
|
|
24
|
+
};
|
|
25
|
+
exports.getTagWidth = getTagWidth;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getTagWidth';
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
17
|
+
__exportStar(require("./getTagWidth"), exports);
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { getElementByText } from './getElementByText';
|
|
2
2
|
export { getKey } from './getKey';
|
|
3
|
+
export { getTagWidth } from './getTagWidth';
|
|
4
|
+
export { getAvailableWidth } from './getAvailableWidth';
|
|
5
|
+
export { calculateVisibleTagsCount } from './calculateVisibleTagsCount';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getKey = exports.getElementByText = void 0;
|
|
3
|
+
exports.calculateVisibleTagsCount = exports.getAvailableWidth = exports.getTagWidth = exports.getKey = exports.getElementByText = void 0;
|
|
4
4
|
var getElementByText_1 = require("./getElementByText");
|
|
5
5
|
Object.defineProperty(exports, "getElementByText", { enumerable: true, get: function () { return getElementByText_1.getElementByText; } });
|
|
6
6
|
var getKey_1 = require("./getKey");
|
|
7
7
|
Object.defineProperty(exports, "getKey", { enumerable: true, get: function () { return getKey_1.getKey; } });
|
|
8
|
+
var getTagWidth_1 = require("./getTagWidth");
|
|
9
|
+
Object.defineProperty(exports, "getTagWidth", { enumerable: true, get: function () { return getTagWidth_1.getTagWidth; } });
|
|
10
|
+
var getAvailableWidth_1 = require("./getAvailableWidth");
|
|
11
|
+
Object.defineProperty(exports, "getAvailableWidth", { enumerable: true, get: function () { return getAvailableWidth_1.getAvailableWidth; } });
|
|
12
|
+
var calculateVisibleTagsCount_1 = require("./calculateVisibleTagsCount");
|
|
13
|
+
Object.defineProperty(exports, "calculateVisibleTagsCount", { enumerable: true, get: function () { return calculateVisibleTagsCount_1.calculateVisibleTagsCount; } });
|
|
@@ -7,7 +7,7 @@ const FormHelperText_1 = require("../FormHelperText");
|
|
|
7
7
|
const classNames_1 = require("../utils/classNames");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
9
|
const styles_1 = require("./styles");
|
|
10
|
-
exports.TextField = (0, react_1.forwardRef)(({ success, error, helperText: helperTextProp, fullWidth = false, startAdornment, endAdornment, inputProps, InputProps, maxLength, trimmed = true, onBlur, hideHelperText = false, className, ...props }, ref) => {
|
|
10
|
+
exports.TextField = (0, react_1.forwardRef)(({ success, error, helperText: helperTextProp, fullWidth = false, startAdornment, endAdornment, inputProps, InputProps, maxLength, trimmed = true, onBlur, hideHelperText = false, className, disabled, ...props }, ref) => {
|
|
11
11
|
const color = (0, react_1.useMemo)(() => {
|
|
12
12
|
if (success) {
|
|
13
13
|
return 'success';
|
|
@@ -40,9 +40,10 @@ exports.TextField = (0, react_1.forwardRef)(({ success, error, helperText: helpe
|
|
|
40
40
|
}
|
|
41
41
|
onBlur?.(event);
|
|
42
42
|
};
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const classnames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)(className, {
|
|
44
|
+
[constants_1.textFieldClassnames.hideHelperText]: hideHelperText,
|
|
45
|
+
[constants_1.textFieldClassnames.disabled]: disabled,
|
|
46
|
+
}), [className, hideHelperText, disabled]);
|
|
46
47
|
return ((0, jsx_runtime_1.jsx)(styles_1.StyledTextField, { ref: ref, variant: "outlined", fullWidth: fullWidth, error: error, color: color, helperText: helperText, InputProps: {
|
|
47
48
|
startAdornment,
|
|
48
49
|
endAdornment,
|
|
@@ -50,5 +51,5 @@ exports.TextField = (0, react_1.forwardRef)(({ success, error, helperText: helpe
|
|
|
50
51
|
}, inputProps: {
|
|
51
52
|
maxLength,
|
|
52
53
|
...inputProps,
|
|
53
|
-
}, onBlur: handleBlur, className:
|
|
54
|
+
}, onBlur: handleBlur, className: classnames, disabled: disabled, ...props }));
|
|
54
55
|
});
|
|
@@ -4,4 +4,5 @@ exports.textFieldClassnames = void 0;
|
|
|
4
4
|
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
5
|
exports.textFieldClassnames = {
|
|
6
6
|
hideHelperText: (0, createUIKitClassname_1.createUIKitClassname)('text-field__helper-text_hidden'),
|
|
7
|
+
disabled: (0, createUIKitClassname_1.createUIKitClassname)('text-field_disabled'),
|
|
7
8
|
};
|
|
@@ -47,6 +47,7 @@ export declare const Label: import("@emotion/styled/dist/declarations/src/types"
|
|
|
47
47
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
48
48
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
49
49
|
isUpperCase?: boolean | undefined;
|
|
50
|
+
withoutCalt?: boolean | undefined;
|
|
50
51
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
51
52
|
theme?: import("@emotion/react").Theme | undefined;
|
|
52
53
|
}, {}, {}>;
|
|
@@ -391,6 +392,7 @@ export declare const Note: import("@emotion/styled/dist/declarations/src/types")
|
|
|
391
392
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
392
393
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
393
394
|
isUpperCase?: boolean | undefined;
|
|
395
|
+
withoutCalt?: boolean | undefined;
|
|
394
396
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
395
397
|
children?: import("react").ReactNode;
|
|
396
398
|
} & import("react").RefAttributes<HTMLElement> & {
|
|
@@ -12,7 +12,7 @@ const styles_1 = require("./styles");
|
|
|
12
12
|
const useLogic_1 = require("./useLogic");
|
|
13
13
|
const ClearButton = ({ disabled, onClick }) => ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { variant: "text", color: "grey", disabled: disabled, onClick: onClick, title: constants_1.CLEAR_TEXT, "aria-label": constants_1.CLEAR_TEXT, children: (0, jsx_runtime_1.jsx)(CrossOutlineMd_1.CrossOutlineMd, {}) }));
|
|
14
14
|
exports.Input = (0, react_1.forwardRef)(({ disabled, onChange: propsOnChange, value, inputRef, hideHelperText = false, onClick, isLoading, ...restProps }, forwardedRef) => {
|
|
15
|
-
const { isVisibleClearButton,
|
|
15
|
+
const { isVisibleClearButton, isVisibleTagsList, onChange, textFieldProps, onClearAll, } = (0, useLogic_1.useLogic)({
|
|
16
16
|
inputRef,
|
|
17
17
|
value,
|
|
18
18
|
onChange: propsOnChange,
|
|
@@ -12,4 +12,5 @@ export declare const Typography: import("react").ForwardRefExoticComponent<impor
|
|
|
12
12
|
colorIntensity?: import("./types").Intensity | undefined;
|
|
13
13
|
component?: ComponentProp | undefined;
|
|
14
14
|
isUpperCase?: boolean | undefined;
|
|
15
|
+
withoutCalt?: boolean | undefined;
|
|
15
16
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Typography = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const classNames_1 = require("../utils/classNames");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
6
8
|
const hooks_1 = require("./hooks");
|
|
7
9
|
const styles_1 = require("./styles");
|
|
8
|
-
exports.Typography = (0, react_1.forwardRef)(({ children, color, colorIntensity = '800', component, ...props }, ref) => {
|
|
10
|
+
exports.Typography = (0, react_1.forwardRef)(({ children, color, colorIntensity = '800', component, withoutCalt, className, ...props }, ref) => {
|
|
9
11
|
const typographyColor = (0, hooks_1.useTypographyColor)({ color, colorIntensity });
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor,
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: (0, classNames_1.classNames)(className, {
|
|
13
|
+
[constants_1.typographyClassnames.withoutCalt]: withoutCalt,
|
|
14
|
+
}), children: children }));
|
|
11
15
|
});
|
|
@@ -6,8 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TypographyWrapper = void 0;
|
|
7
7
|
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
8
8
|
const styled_1 = require("../styled");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
9
10
|
exports.TypographyWrapper = (0, styled_1.styled)(Typography_1.default, {
|
|
10
11
|
shouldForwardProp: (prop) => prop !== 'isUpperCase',
|
|
11
12
|
}) `
|
|
12
13
|
text-transform: ${({ isUpperCase }) => (isUpperCase ? 'uppercase' : 'none')};
|
|
14
|
+
|
|
15
|
+
.${constants_1.typographyClassnames.withoutCalt} {
|
|
16
|
+
font-feature-settings: "calt" 0;
|
|
17
|
+
}
|
|
13
18
|
`;
|
|
@@ -31,4 +31,8 @@ export type TypographyProps = TypographyPropsBase & {
|
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
33
|
isUpperCase?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Отключает контекстные альтернативы шрифта. Подробнее в [документации](https://ui-kit.astral.ru/?path=/docs/getting-started-fonts--docs)
|
|
36
|
+
*/
|
|
37
|
+
withoutCalt?: boolean;
|
|
34
38
|
} & HTMLAttributes<HTMLParagraphElement>;
|
|
@@ -21,6 +21,7 @@ export declare const Greeting: import("@emotion/styled/dist/declarations/src/typ
|
|
|
21
21
|
colorIntensity?: import("../Typography").Intensity | undefined;
|
|
22
22
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
23
23
|
isUpperCase?: boolean | undefined;
|
|
24
|
+
withoutCalt?: boolean | undefined;
|
|
24
25
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
25
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
27
|
}, {}, {}>;
|
|
@@ -30,6 +31,7 @@ export declare const UserName: import("@emotion/styled/dist/declarations/src/typ
|
|
|
30
31
|
colorIntensity?: import("../Typography").Intensity | undefined;
|
|
31
32
|
component?: import("../Typography/types").ComponentProp | undefined;
|
|
32
33
|
isUpperCase?: boolean | undefined;
|
|
34
|
+
withoutCalt?: boolean | undefined;
|
|
33
35
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
34
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
37
|
}, {}, {}>;
|
|
@@ -348,6 +348,7 @@ export declare const FileSize: import("@emotion/styled/dist/declarations/src/typ
|
|
|
348
348
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
349
349
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
350
350
|
isUpperCase?: boolean | undefined;
|
|
351
|
+
withoutCalt?: boolean | undefined;
|
|
351
352
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
352
353
|
theme?: import("@emotion/react").Theme | undefined;
|
|
353
354
|
}, {}, {}>;
|
|
@@ -17,6 +17,7 @@ export declare const Title: import("@emotion/styled/dist/declarations/src/types"
|
|
|
17
17
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
18
18
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
19
19
|
isUpperCase?: boolean | undefined;
|
|
20
|
+
withoutCalt?: boolean | undefined;
|
|
20
21
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
21
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
22
23
|
} & WithSize, {}, {}>;
|
|
@@ -26,6 +27,7 @@ export declare const Description: import("@emotion/styled/dist/declarations/src/
|
|
|
26
27
|
colorIntensity?: import("../../Typography").Intensity | undefined;
|
|
27
28
|
component?: import("../../Typography/types").ComponentProp | undefined;
|
|
28
29
|
isUpperCase?: boolean | undefined;
|
|
30
|
+
withoutCalt?: boolean | undefined;
|
|
29
31
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
30
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
33
|
} & WithSize, {}, {}>;
|
|
@@ -9,6 +9,7 @@ export declare const Description: import("@emotion/styled/dist/declarations/src/
|
|
|
9
9
|
colorIntensity?: import("../../../components/Typography").Intensity | undefined;
|
|
10
10
|
component?: import("../../../components/Typography/types").ComponentProp | undefined;
|
|
11
11
|
isUpperCase?: boolean | undefined;
|
|
12
|
+
withoutCalt?: boolean | undefined;
|
|
12
13
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
13
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
15
|
}, {}, {}>;
|
|
@@ -5,6 +5,7 @@ export declare const DisplayValue: import("@emotion/styled/dist/declarations/src
|
|
|
5
5
|
colorIntensity?: import("../../components/Typography").Intensity | undefined;
|
|
6
6
|
component?: import("../../components/Typography/types").ComponentProp | undefined;
|
|
7
7
|
isUpperCase?: boolean | undefined;
|
|
8
|
+
withoutCalt?: boolean | undefined;
|
|
8
9
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
} & {
|
package/package.json
CHANGED