@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.
Files changed (194) hide show
  1. package/components/Accordion/styles.d.ts +1 -0
  2. package/components/Alert/styles.d.ts +2 -0
  3. package/components/AutoSaveIndicator/styles.d.ts +2 -0
  4. package/components/Autocomplete/Autocomplete.d.ts +1 -1
  5. package/components/Autocomplete/Autocomplete.js +53 -15
  6. package/components/Autocomplete/constants.d.ts +6 -0
  7. package/components/Autocomplete/constants.js +7 -0
  8. package/components/Autocomplete/styles.js +15 -1
  9. package/components/Autocomplete/useLogic/useLogic.d.ts +2 -1
  10. package/components/Autocomplete/useLogic/useLogic.js +11 -2
  11. package/components/BottomDrawer/styles.d.ts +1 -0
  12. package/components/Chip/styles.d.ts +1 -0
  13. package/components/CodeField/styles.d.ts +1 -0
  14. package/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
  15. package/components/CollapsibleTypography/styles.d.ts +1 -0
  16. package/components/ConfirmAction/styles.d.ts +1 -0
  17. package/components/CopyTypography/styles.d.ts +1 -0
  18. package/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
  19. package/components/DashboardSidebarPopover/styles.d.ts +1 -0
  20. package/components/DataGridPagination/styles.d.ts +1 -0
  21. package/components/DataGridPaginationContainer/styles.d.ts +1 -0
  22. package/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
  23. package/components/Description/Value/styles.d.ts +2 -0
  24. package/components/DescriptionList/styles.d.ts +1 -0
  25. package/components/Fieldset/styles.d.ts +2 -0
  26. package/components/Filename/styles.d.ts +1 -0
  27. package/components/FlowButton/styles.d.ts +1 -0
  28. package/components/JsonViewer/NodeValue/styles.d.ts +3 -0
  29. package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
  30. package/components/MaskField/MaskField.js +2 -2
  31. package/components/MaskField/styles.d.ts +2 -0
  32. package/components/MaskField/styles.js +5 -0
  33. package/components/MenuGroup/styles.d.ts +1 -0
  34. package/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
  35. package/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
  36. package/components/MenuOrganization/styles.d.ts +1 -0
  37. package/components/MinimalisticPagination/styles.d.ts +1 -0
  38. package/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
  39. package/components/NotFoundPage/styles.d.ts +2 -0
  40. package/components/Notification/NotificationTemplate/styles.d.ts +2 -0
  41. package/components/NotificationList/ListItem/styles.d.ts +2 -0
  42. package/components/OverflowTypography/OverflowTypography.d.ts +1 -0
  43. package/components/OverflowTypography/styles.d.ts +2 -0
  44. package/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
  45. package/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
  46. package/components/PageHeader/Title/styles.d.ts +1 -0
  47. package/components/Pagination/PaginationItem/styles.d.ts +1 -0
  48. package/components/PinButton/styles.d.ts +1 -0
  49. package/components/ProductSwitcher/Content/styles.d.ts +1 -0
  50. package/components/TagsList/Tag/Tag.d.ts +1 -1
  51. package/components/TagsList/Tag/constants.d.ts +1 -0
  52. package/components/TagsList/Tag/constants.js +1 -0
  53. package/components/TagsList/Tag/index.d.ts +1 -0
  54. package/components/TagsList/Tag/index.js +1 -0
  55. package/components/TagsList/Tag/styles.js +2 -0
  56. package/components/TagsList/TagsList.js +6 -6
  57. package/components/TagsList/constants.d.ts +2 -0
  58. package/components/TagsList/constants.js +2 -0
  59. package/components/TagsList/styles.js +5 -1
  60. package/components/TagsList/types.d.ts +14 -5
  61. package/components/TagsList/useLogic/useLogic.d.ts +5 -5
  62. package/components/TagsList/useLogic/useLogic.js +70 -110
  63. package/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.d.ts +6 -0
  64. package/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.js +35 -0
  65. package/components/TagsList/utils/calculateVisibleTagsCount/index.d.ts +1 -0
  66. package/components/TagsList/utils/calculateVisibleTagsCount/index.js +1 -0
  67. package/components/TagsList/utils/getAvailableWidth/getAvailableWidth.d.ts +1 -0
  68. package/components/TagsList/utils/getAvailableWidth/getAvailableWidth.js +7 -0
  69. package/components/TagsList/utils/getAvailableWidth/index.d.ts +1 -0
  70. package/components/TagsList/utils/getAvailableWidth/index.js +1 -0
  71. package/components/TagsList/utils/getKey/getKey.d.ts +1 -1
  72. package/components/TagsList/utils/getKey/getKey.js +6 -3
  73. package/components/TagsList/utils/getTagWidth/getTagWidth.d.ts +2 -0
  74. package/components/TagsList/utils/getTagWidth/getTagWidth.js +21 -0
  75. package/components/TagsList/utils/getTagWidth/index.d.ts +1 -0
  76. package/components/TagsList/utils/getTagWidth/index.js +1 -0
  77. package/components/TagsList/utils/index.d.ts +3 -0
  78. package/components/TagsList/utils/index.js +3 -0
  79. package/components/TextField/TextField.js +6 -5
  80. package/components/TextField/constants.d.ts +1 -0
  81. package/components/TextField/constants.js +1 -0
  82. package/components/TextField/styles.js +4 -0
  83. package/components/Tree/TreeItem/styles.d.ts +2 -0
  84. package/components/TreeLikeAsyncAutocomplete/Input/Input.js +1 -1
  85. package/components/Typography/Typography.d.ts +1 -0
  86. package/components/Typography/Typography.js +6 -2
  87. package/components/Typography/constants.d.ts +3 -0
  88. package/components/Typography/constants.js +3 -0
  89. package/components/Typography/styles.js +5 -0
  90. package/components/Typography/types.d.ts +4 -0
  91. package/components/WelcomeScreen/styles.d.ts +2 -0
  92. package/components/fileUploading/FileInfo/styles.d.ts +1 -0
  93. package/components/placeholders/Placeholder/styles.d.ts +2 -0
  94. package/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
  95. package/hook-form/EditableText/styles.d.ts +1 -0
  96. package/node/components/Accordion/styles.d.ts +1 -0
  97. package/node/components/Alert/styles.d.ts +2 -0
  98. package/node/components/AutoSaveIndicator/styles.d.ts +2 -0
  99. package/node/components/Autocomplete/Autocomplete.d.ts +1 -1
  100. package/node/components/Autocomplete/Autocomplete.js +51 -13
  101. package/node/components/Autocomplete/constants.d.ts +6 -0
  102. package/node/components/Autocomplete/constants.js +8 -1
  103. package/node/components/Autocomplete/styles.js +15 -1
  104. package/node/components/Autocomplete/useLogic/useLogic.d.ts +2 -1
  105. package/node/components/Autocomplete/useLogic/useLogic.js +10 -1
  106. package/node/components/BottomDrawer/styles.d.ts +1 -0
  107. package/node/components/Chip/styles.d.ts +1 -0
  108. package/node/components/CodeField/styles.d.ts +1 -0
  109. package/node/components/CollapsibleTypography/CollapsibleTypography.d.ts +1 -0
  110. package/node/components/CollapsibleTypography/styles.d.ts +1 -0
  111. package/node/components/ConfirmAction/styles.d.ts +1 -0
  112. package/node/components/CopyTypography/styles.d.ts +1 -0
  113. package/node/components/CopyTypography/useLogic/useLogic.d.ts +1 -0
  114. package/node/components/DashboardSidebarPopover/styles.d.ts +1 -0
  115. package/node/components/DataGridPagination/styles.d.ts +1 -0
  116. package/node/components/DataGridPaginationContainer/styles.d.ts +1 -0
  117. package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -0
  118. package/node/components/Description/Value/styles.d.ts +2 -0
  119. package/node/components/DescriptionList/styles.d.ts +1 -0
  120. package/node/components/Fieldset/styles.d.ts +2 -0
  121. package/node/components/Filename/styles.d.ts +1 -0
  122. package/node/components/FlowButton/styles.d.ts +1 -0
  123. package/node/components/JsonViewer/NodeValue/styles.d.ts +3 -0
  124. package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -0
  125. package/node/components/MaskField/MaskField.js +2 -2
  126. package/node/components/MaskField/styles.d.ts +2 -0
  127. package/node/components/MaskField/styles.js +8 -0
  128. package/node/components/MenuGroup/styles.d.ts +1 -0
  129. package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +1 -0
  130. package/node/components/MenuOrganization/OrganizationGroup/styles.d.ts +1 -0
  131. package/node/components/MenuOrganization/styles.d.ts +1 -0
  132. package/node/components/MinimalisticPagination/styles.d.ts +1 -0
  133. package/node/components/NavMenu/Item/ItemButton/styles.d.ts +1 -0
  134. package/node/components/NotFoundPage/styles.d.ts +2 -0
  135. package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -0
  136. package/node/components/NotificationList/ListItem/styles.d.ts +2 -0
  137. package/node/components/OverflowTypography/OverflowTypography.d.ts +1 -0
  138. package/node/components/OverflowTypography/styles.d.ts +2 -0
  139. package/node/components/PageContent/PageContentHeader/Title/styles.d.ts +1 -0
  140. package/node/components/PageHeader/HeaderContent/Description/styles.d.ts +1 -0
  141. package/node/components/PageHeader/Title/styles.d.ts +1 -0
  142. package/node/components/Pagination/PaginationItem/styles.d.ts +1 -0
  143. package/node/components/PinButton/styles.d.ts +1 -0
  144. package/node/components/ProductSwitcher/Content/styles.d.ts +1 -0
  145. package/node/components/TagsList/Tag/Tag.d.ts +1 -1
  146. package/node/components/TagsList/Tag/constants.d.ts +1 -0
  147. package/node/components/TagsList/Tag/constants.js +4 -0
  148. package/node/components/TagsList/Tag/index.d.ts +1 -0
  149. package/node/components/TagsList/Tag/index.js +1 -0
  150. package/node/components/TagsList/Tag/styles.js +2 -0
  151. package/node/components/TagsList/TagsList.js +6 -6
  152. package/node/components/TagsList/constants.d.ts +2 -0
  153. package/node/components/TagsList/constants.js +5 -0
  154. package/node/components/TagsList/styles.js +5 -1
  155. package/node/components/TagsList/types.d.ts +14 -5
  156. package/node/components/TagsList/useLogic/useLogic.d.ts +5 -5
  157. package/node/components/TagsList/useLogic/useLogic.js +70 -110
  158. package/node/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.d.ts +6 -0
  159. package/node/components/TagsList/utils/calculateVisibleTagsCount/calculateVisibleTagsCount.js +39 -0
  160. package/node/components/TagsList/utils/calculateVisibleTagsCount/index.d.ts +1 -0
  161. package/node/components/TagsList/utils/calculateVisibleTagsCount/index.js +5 -0
  162. package/node/components/TagsList/utils/getAvailableWidth/getAvailableWidth.d.ts +1 -0
  163. package/node/components/TagsList/utils/getAvailableWidth/getAvailableWidth.js +11 -0
  164. package/node/components/TagsList/utils/getAvailableWidth/index.d.ts +1 -0
  165. package/node/components/TagsList/utils/getAvailableWidth/index.js +5 -0
  166. package/node/components/TagsList/utils/getKey/getKey.d.ts +1 -1
  167. package/node/components/TagsList/utils/getKey/getKey.js +6 -3
  168. package/node/components/TagsList/utils/getTagWidth/getTagWidth.d.ts +2 -0
  169. package/node/components/TagsList/utils/getTagWidth/getTagWidth.js +25 -0
  170. package/node/components/TagsList/utils/getTagWidth/index.d.ts +1 -0
  171. package/node/components/TagsList/{public.js → utils/getTagWidth/index.js} +1 -2
  172. package/node/components/TagsList/utils/index.d.ts +3 -0
  173. package/node/components/TagsList/utils/index.js +7 -1
  174. package/node/components/TextField/TextField.js +6 -5
  175. package/node/components/TextField/constants.d.ts +1 -0
  176. package/node/components/TextField/constants.js +1 -0
  177. package/node/components/TextField/styles.js +4 -0
  178. package/node/components/Tree/TreeItem/styles.d.ts +2 -0
  179. package/node/components/TreeLikeAsyncAutocomplete/Input/Input.js +1 -1
  180. package/node/components/Typography/Typography.d.ts +1 -0
  181. package/node/components/Typography/Typography.js +6 -2
  182. package/node/components/Typography/constants.d.ts +3 -0
  183. package/node/components/Typography/constants.js +6 -0
  184. package/node/components/Typography/styles.js +5 -0
  185. package/node/components/Typography/types.d.ts +4 -0
  186. package/node/components/WelcomeScreen/styles.d.ts +2 -0
  187. package/node/components/fileUploading/FileInfo/styles.d.ts +1 -0
  188. package/node/components/placeholders/Placeholder/styles.d.ts +2 -0
  189. package/node/hook-form/EditableText/EditingForm/styles.d.ts +1 -0
  190. package/node/hook-form/EditableText/styles.d.ts +1 -0
  191. package/package.json +1 -1
  192. package/components/TagsList/public.d.ts +0 -2
  193. package/components/TagsList/public.js +0 -2
  194. package/node/components/TagsList/public.d.ts +0 -2
@@ -25,6 +25,7 @@ export declare const Summary: import("../styled").StyledComponent<import("../Typ
25
25
  colorIntensity?: import("../Typography").Intensity | undefined;
26
26
  component?: import("../Typography/types").ComponentProp | undefined;
27
27
  isUpperCase?: boolean | undefined;
28
+ withoutCalt?: boolean | undefined;
28
29
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
29
30
  theme?: import("@emotion/react").Theme | undefined;
30
31
  }, {}, {}>;
@@ -42,6 +42,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
42
42
  colorIntensity?: import("../Typography").Intensity | undefined;
43
43
  component?: import("../Typography/types").ComponentProp | undefined;
44
44
  isUpperCase?: boolean | undefined;
45
+ withoutCalt?: boolean | undefined;
45
46
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
46
47
  theme?: import("@emotion/react").Theme | undefined;
47
48
  } & {
@@ -55,6 +56,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
55
56
  colorIntensity?: import("../Typography").Intensity | undefined;
56
57
  component?: import("../Typography/types").ComponentProp | undefined;
57
58
  isUpperCase?: boolean | undefined;
59
+ withoutCalt?: boolean | undefined;
58
60
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
59
61
  theme?: import("@emotion/react").Theme | undefined;
60
62
  } & {
@@ -13,6 +13,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
13
13
  colorIntensity?: import("../Typography").Intensity | undefined;
14
14
  component?: import("../Typography/types").ComponentProp | undefined;
15
15
  isUpperCase?: boolean | undefined;
16
+ withoutCalt?: boolean | undefined;
16
17
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
17
18
  theme?: import("@emotion/react").Theme | undefined;
18
19
  }, {}, {}>;
@@ -31,6 +32,7 @@ export declare const IndicatorTypography: import("../styled").StyledComponent<im
31
32
  colorIntensity?: import("../Typography").Intensity | undefined;
32
33
  component?: import("../Typography/types").ComponentProp | undefined;
33
34
  isUpperCase?: boolean | undefined;
35
+ withoutCalt?: boolean | undefined;
34
36
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
35
37
  theme?: import("@emotion/react").Theme | undefined;
36
38
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type AutocompleteRenderInputParams } from './types';
3
- export declare const Autocomplete: <TAutocompleteValueProps, TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material/Autocomplete/Autocomplete").AutocompleteProps<TAutocompleteValueProps, TMultiple, TDisableClearable, TFreeSolo, "div">>, "size" | "clearText" | "closeText" | "noOptionsText" | "openText" | "renderInput"> & Pick<import("../TextField").TextFieldProps, "label" | "success" | "error" | "placeholder" | "required" | "inputRef" | "helperText" | "inputProps"> & {
3
+ export declare const Autocomplete: <TAutocompleteValueProps, TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").AutocompleteProps<TAutocompleteValueProps, TMultiple, TDisableClearable, TFreeSolo, "div">>, "size" | "clearText" | "closeText" | "noOptionsText" | "openText" | "renderInput"> & Pick<import("../TextField").TextFieldProps, "label" | "success" | "error" | "placeholder" | "required" | "inputRef" | "helperText" | "inputProps"> & {
4
4
  renderInput?: ((props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").TextFieldProps>, "color" | "select" | "margin" | "variant" | "multiline" | "SelectProps"> & {
5
5
  success?: boolean | undefined;
6
6
  startAdornment?: import("react").ReactNode;
@@ -1,29 +1,66 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import ListItemIcon from '@mui/material/ListItemIcon';
3
3
  import MuiPopper from '@mui/material/Popper';
4
- import { useCallback } from 'react';
4
+ import { useCallback, useRef, } from 'react';
5
5
  import { CrossOutlineMd } from '../../icons/CrossOutlineMd';
6
6
  import { DownOutlineMd } from '../../icons/DownOutlineMd';
7
7
  import { Checkbox } from '../Checkbox';
8
8
  import { forwardRefWithGeneric } from '../forwardRefWithGeneric';
9
9
  import { Loader } from '../Loader';
10
10
  import { OverflowTypography } from '../OverflowTypography';
11
- import { Tag } from '../Tag';
11
+ import { TagsList } from '../TagsList';
12
12
  import { TextField } from '../TextField';
13
13
  import { classNames } from '../utils/classNames';
14
- import { DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT, DEFAULT_PLACEHOLDER, } from './constants';
14
+ import { DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT, DEFAULT_PLACEHOLDER, INPUT_MIN_WIDTH, } from './constants';
15
15
  import { StyledAutocomplete, StyledMenuItem } from './styles';
16
16
  import { useLogic } from './useLogic';
17
17
  const AutocompleteInner = (props, ref) => {
18
18
  const { isValueEmpty, isPopperVisible, autocompleteProps } = useLogic(props);
19
- const { required, success, error, label, getOptionLabel, helperText, inputRef, multiple, size = 'medium', placeholder = DEFAULT_PLACEHOLDER, overflowOption, closeText = 'Закрыть', openText = 'Открыть', clearText = 'Очистить', loadingText = _jsx(Loader, {}), isLoadedDataError, loadedDataError, noOptionsText, autoHighlight, renderInput: externalRenderInput, renderTags: externalRenderTags, renderOption: externalRenderOption, inputProps, hideHelperText = false, loading, ...restProps } = props;
19
+ const inputBaseRef = useRef(null);
20
+ const { required, success, error, label, getOptionLabel, helperText, inputRef, multiple, size = 'medium', placeholder = DEFAULT_PLACEHOLDER, overflowOption, closeText = 'Закрыть', openText = 'Открыть', clearText = 'Очистить', loadingText = _jsx(Loader, {}), isLoadedDataError, loadedDataError, noOptionsText, autoHighlight, renderInput: externalRenderInput, renderTags: externalRenderTags, renderOption: externalRenderOption, inputProps, hideHelperText = false, loading, value, onChange, ...restProps } = props;
20
21
  const renderInput = useCallback((inputParams) => {
22
+ const createStartAdornment = () => {
23
+ if (!multiple || !Array.isArray(value)) {
24
+ return null;
25
+ }
26
+ const tagsListElement = (_jsx(TagsList, { data: value, getOptionLabel: (option) => getOptionLabel?.(option) ??
27
+ option.toString(), inputContainerRef: inputBaseRef, reservedWidth: INPUT_MIN_WIDTH, onChange: (tagValues) => {
28
+ if (!onChange) {
29
+ return;
30
+ }
31
+ const syntheticEvent = {
32
+ type: 'change',
33
+ target: { value: tagValues },
34
+ currentTarget: { value: tagValues },
35
+ };
36
+ const reason = 'removeOption';
37
+ onChange(syntheticEvent, tagValues, reason);
38
+ } }));
39
+ return tagsListElement;
40
+ };
21
41
  const generalInputParams = {
22
42
  ...inputParams,
23
43
  inputProps: {
24
44
  ...inputParams.inputProps,
25
45
  className: classNames(inputParams?.inputProps?.className, inputProps?.className),
26
46
  },
47
+ InputProps: {
48
+ ...inputParams.InputProps,
49
+ ref: (element) => {
50
+ inputBaseRef.current = element;
51
+ const orig = inputParams.InputProps?.ref;
52
+ if (typeof orig === 'function') {
53
+ orig(element);
54
+ }
55
+ else if (orig) {
56
+ orig.current = element;
57
+ }
58
+ },
59
+ // Если есть externalRenderTags, используем renderTags(mui использует inputParams.InputProps?.startAdornment)
60
+ startAdornment: externalRenderTags
61
+ ? inputParams.InputProps?.startAdornment
62
+ : createStartAdornment(),
63
+ },
27
64
  inputRef,
28
65
  required,
29
66
  placeholder: isValueEmpty ? placeholder : '',
@@ -40,7 +77,9 @@ const AutocompleteInner = (props, ref) => {
40
77
  return _jsx(TextField, { ...generalInputParams });
41
78
  }, [
42
79
  isValueEmpty,
80
+ value,
43
81
  externalRenderInput,
82
+ externalRenderTags,
44
83
  inputRef,
45
84
  required,
46
85
  placeholder,
@@ -50,6 +89,9 @@ const AutocompleteInner = (props, ref) => {
50
89
  helperText,
51
90
  size,
52
91
  hideHelperText,
92
+ multiple,
93
+ getOptionLabel,
94
+ onChange,
53
95
  ]);
54
96
  const renderOption = useCallback((optionProps, option, optionState, ownerState) => {
55
97
  if (externalRenderOption) {
@@ -59,26 +101,22 @@ const AutocompleteInner = (props, ref) => {
59
101
  const { key, ...restOptionProps } = optionProps;
60
102
  return (_jsxs(StyledMenuItem, { selected: isSelected, ...restOptionProps, children: [multiple && (_jsx(ListItemIcon, { children: _jsx(Checkbox, { role: "menuitemcheckbox", checked: isSelected }) })), _jsx(OverflowTypography, { rowsCount: DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT, ...overflowOption, children: optionProps.key })] }, key));
61
103
  }, [multiple, overflowOption, externalRenderOption]);
62
- const renderTags = useCallback((tags, getTagProps, ownerSate) => {
63
- if (externalRenderTags) {
64
- return externalRenderTags(tags, getTagProps, ownerSate);
65
- }
66
- return tags.map((tag, index) => {
67
- const title = getOptionLabel?.(tag) || '';
68
- const { key, ...tagProps } = getTagProps({ index });
69
- return (_jsx(Tag, { variant: "light", color: "grey", label: title, ...tagProps }, key));
70
- });
71
- }, [getOptionLabel, externalRenderTags]);
72
104
  const renderPopper = useCallback((popperProps) => {
73
105
  if (!isPopperVisible) {
74
106
  return null;
75
107
  }
76
108
  return _jsx(MuiPopper, { ...popperProps });
77
109
  }, [isPopperVisible]);
110
+ const renderTags = useCallback((tags, getTagProps, ownerState) => {
111
+ if (externalRenderTags) {
112
+ return externalRenderTags(tags, getTagProps, ownerState);
113
+ }
114
+ return null;
115
+ }, [externalRenderTags]);
78
116
  return (_jsx(StyledAutocomplete, { ...restProps, ref: ref, size: size, clearText: clearText, closeText: !loading ? closeText : '', openText: !loading ? openText : '', loadingText: loadingText, multiple: multiple, disableCloseOnSelect: multiple, clearIcon: _jsx(CrossOutlineMd, {}), loading: loading, popupIcon: loading ? _jsx(Loader, { color: "primary", size: "small" }) : _jsx(DownOutlineMd, {}), forcePopupIcon: true, slotProps: {
79
117
  popper: {
80
118
  component: renderPopper,
81
119
  },
82
- }, getOptionLabel: getOptionLabel, renderInput: renderInput, renderTags: renderTags, renderOption: renderOption, ...autocompleteProps }));
120
+ }, getOptionLabel: getOptionLabel, renderInput: renderInput, renderTags: renderTags, renderOption: renderOption, value: value, onChange: onChange, ...autocompleteProps }));
83
121
  };
84
122
  export const Autocomplete = forwardRefWithGeneric(AutocompleteInner);
@@ -1,2 +1,8 @@
1
1
  export declare const DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT = 2;
2
+ export declare const INPUT_MIN_WIDTH = 110;
2
3
  export declare const DEFAULT_PLACEHOLDER = "\u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u044C \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430";
4
+ export declare const autocompleteClassnames: {
5
+ root: string;
6
+ multiple: string;
7
+ emptyValue: string;
8
+ };
@@ -1,2 +1,9 @@
1
+ import { createUIKitClassname } from '../utils/createUIKitClassname';
1
2
  export const DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT = 2;
3
+ export const INPUT_MIN_WIDTH = 110;
2
4
  export const DEFAULT_PLACEHOLDER = 'Начните вводить для поиска';
5
+ export const autocompleteClassnames = {
6
+ root: createUIKitClassname('autocomplete'),
7
+ multiple: createUIKitClassname('autocomplete_multiple'),
8
+ emptyValue: createUIKitClassname('autocomplete_empty-value'),
9
+ };
@@ -5,6 +5,7 @@ import { inputBaseClasses } from '@mui/material/InputBase';
5
5
  import { MenuItem } from '../MenuItem';
6
6
  import { svgIconClassnames } from '../SvgIcon';
7
7
  import { styled } from '../styled';
8
+ import { autocompleteClassnames, INPUT_MIN_WIDTH } from './constants';
8
9
  export const StyledMenuItem = styled(MenuItem) `
9
10
  max-height: ${({ theme }) => theme.spacing(13)};
10
11
 
@@ -23,5 +24,18 @@ export const StyledAutocomplete = styled(MuiAutocomplete) `
23
24
 
24
25
  & .${autocompleteClasses.endAdornment} .${iconButtonClasses.root}:hover {
25
26
  background-color: ${({ loading, theme }) => (loading ? 'transparent' : theme.palette.grey[100])};
26
- }
27
+ }
28
+
29
+ &:not(.${autocompleteClassnames.emptyValue}) .${inputBaseClasses.root} {
30
+ gap: ${({ theme }) => theme.spacing(3)};
31
+ }
32
+
33
+ & .${autocompleteClasses.inputRoot} .${inputBaseClasses.input} {
34
+ min-width: ${INPUT_MIN_WIDTH}px;
35
+ }
36
+
37
+ & .${autocompleteClasses.inputRoot} {
38
+ flex-wrap: nowrap;
39
+ }
40
+
27
41
  `;
@@ -2,10 +2,11 @@ import { type AutocompleteInputChangeReason } from '@mui/material/Autocomplete';
2
2
  import { type SyntheticEvent } from 'react';
3
3
  import { type AutocompleteProps } from '../types';
4
4
  type UseLogicParams<TAutocompleteValueProps, TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean> = AutocompleteProps<TAutocompleteValueProps, TMultiple, TDisableClearable, TFreeSolo>;
5
- export declare const useLogic: <TAutocompleteValueProps, TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight, freeSolo, options, loading, isLoadedDataError, loadedDataError, noOptionsText, onInputChange, }: UseLogicParams<TAutocompleteValueProps, TMultiple, TDisableClearable, TFreeSolo>) => {
5
+ export declare const useLogic: <TAutocompleteValueProps, TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight, freeSolo, options, multiple, className, loading, isLoadedDataError, loadedDataError, noOptionsText, onInputChange, }: UseLogicParams<TAutocompleteValueProps, TMultiple, TDisableClearable, TFreeSolo>) => {
6
6
  isValueEmpty: boolean;
7
7
  isPopperVisible: boolean | undefined;
8
8
  autocompleteProps: {
9
+ className: string;
9
10
  isOptionEqualToValue: (option: TAutocompleteValueProps, currentValue: TAutocompleteValueProps) => boolean;
10
11
  autoHighlight: boolean;
11
12
  noOptionsText: string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | null;
@@ -1,6 +1,8 @@
1
- import { useCallback, useState } from 'react';
1
+ import { useCallback, useMemo, useState } from 'react';
2
+ import { classNames } from '../../utils/classNames';
3
+ import { autocompleteClassnames } from '../constants';
2
4
  import { checkIsInputEmpty } from './utils';
3
- export const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight = true, freeSolo, options, loading, isLoadedDataError, loadedDataError = 'Ошибка загрузки данных', noOptionsText = 'Нет данных', onInputChange, }) => {
5
+ export const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight = true, freeSolo, options, multiple, className, loading, isLoadedDataError, loadedDataError = 'Ошибка загрузки данных', noOptionsText = 'Нет данных', onInputChange, }) => {
4
6
  const [innerInputValue, setInnerInputValue] = useState('');
5
7
  const isValueEmpty = checkIsInputEmpty(value);
6
8
  const isInnerInputValueNotEmpty = innerInputValue.length >= 1;
@@ -21,10 +23,17 @@ export const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToVal
21
23
  setInnerInputValue(currentValue);
22
24
  }
23
25
  };
26
+ const classnames = useMemo(() => {
27
+ return classNames(className, autocompleteClassnames.root, {
28
+ [autocompleteClassnames.multiple]: multiple,
29
+ [autocompleteClassnames.emptyValue]: isValueEmpty,
30
+ });
31
+ }, [multiple, isValueEmpty]);
24
32
  return {
25
33
  isValueEmpty,
26
34
  isPopperVisible,
27
35
  autocompleteProps: {
36
+ className: classnames,
28
37
  isOptionEqualToValue,
29
38
  autoHighlight: freeSolo ? false : autoHighlight,
30
39
  noOptionsText: isLoadedDataError ? loadedDataError : noOptionsText,
@@ -17,6 +17,7 @@ export declare const HeaderTitle: import("../styled").StyledComponent<import("@m
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>, {}, {}>;
21
22
  export declare const Body: import("../styled").StyledComponent<{
22
23
  theme?: import("@emotion/react").Theme | undefined;
@@ -21,6 +21,7 @@ export declare const AdornmentWrapper: import("../styled").StyledComponent<impor
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
  }, {}, {}>;
@@ -23,6 +23,7 @@ export declare const FieldLabel: import("../styled").StyledComponent<import("../
23
23
  colorIntensity?: import("../Typography").Intensity | undefined;
24
24
  component?: import("../Typography/types").ComponentProp | undefined;
25
25
  isUpperCase?: boolean | undefined;
26
+ withoutCalt?: boolean | undefined;
26
27
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
27
28
  theme?: import("@emotion/react").Theme | undefined;
28
29
  }, {}, {}>;
@@ -29,6 +29,7 @@ export declare const CollapsibleTypography: import("react").ForwardRefExoticComp
29
29
  colorIntensity?: import("../Typography").Intensity | undefined;
30
30
  component?: import("../Typography/types").ComponentProp | undefined;
31
31
  isUpperCase?: boolean | undefined;
32
+ withoutCalt?: boolean | undefined;
32
33
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
33
34
  children?: import("react").ReactNode;
34
35
  } & import("react").RefAttributes<HTMLElement>>;
@@ -14,6 +14,7 @@ export declare const Wrapper: import("../styled").StyledComponent<import("../Typ
14
14
  colorIntensity?: import("../Typography").Intensity | undefined;
15
15
  component?: import("../Typography/types").ComponentProp | undefined;
16
16
  isUpperCase?: boolean | undefined;
17
+ withoutCalt?: boolean | undefined;
17
18
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  } & CollapsibleTypographyWrapperProps, {}, {}>;
@@ -9,6 +9,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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 Wrapper: import("../styled").StyledComponent<import("../Typ
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -15,6 +15,7 @@ export declare const useLogic: ({ children, copyPosition, copyText, isShowCopyTe
15
15
  colorIntensity?: import("../..").Intensity | undefined;
16
16
  component?: import("../../Typography/types").ComponentProp | undefined;
17
17
  isUpperCase?: boolean | undefined;
18
+ withoutCalt?: boolean | undefined;
18
19
  defaultChecked?: boolean | undefined;
19
20
  defaultValue?: string | number | readonly string[] | undefined;
20
21
  suppressContentEditableWarning?: boolean | undefined;
@@ -9,6 +9,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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
  }, {}, {}>;
@@ -9,6 +9,7 @@ export declare const Range: import("../styled").StyledComponent<import("../Typog
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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 Range: import("../styled").StyledComponent<import("../Typog
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -8,6 +8,7 @@ export declare const HeadText: import("../../../styled").StyledComponent<import(
8
8
  colorIntensity?: import("../../../Typography").Intensity | undefined;
9
9
  component?: import("../../../Typography/types").ComponentProp | undefined;
10
10
  isUpperCase?: boolean | undefined;
11
+ withoutCalt?: boolean | undefined;
11
12
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
12
13
  theme?: import("@emotion/react").Theme | undefined;
13
14
  }, {}, {}>;
@@ -15,6 +15,7 @@ export declare const StyledTypography: import("../../styled").StyledComponent<im
15
15
  colorIntensity?: import("../../Typography").Intensity | undefined;
16
16
  component?: import("../../Typography/types").ComponentProp | undefined;
17
17
  isUpperCase?: boolean | undefined;
18
+ withoutCalt?: boolean | undefined;
18
19
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
19
20
  theme?: import("@emotion/react").Theme | undefined;
20
21
  } & StyledTypographyProps, {}, {}>;
@@ -24,6 +25,7 @@ export declare const StyledCopyTypography: import("../../styled").StyledComponen
24
25
  colorIntensity?: import("../../Typography").Intensity | undefined;
25
26
  component?: import("../../Typography/types").ComponentProp | undefined;
26
27
  isUpperCase?: boolean | undefined;
28
+ withoutCalt?: boolean | undefined;
27
29
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
28
30
  copyText?: string | undefined;
29
31
  copyPosition?: "left" | "right" | undefined;
@@ -43,6 +43,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
43
43
  colorIntensity?: import("../Typography").Intensity | undefined;
44
44
  component?: import("../Typography/types").ComponentProp | undefined;
45
45
  isUpperCase?: boolean | undefined;
46
+ withoutCalt?: boolean | undefined;
46
47
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
47
48
  theme?: import("@emotion/react").Theme | undefined;
48
49
  }, {}, {}>;
@@ -11,6 +11,7 @@ export declare const Title: import("../styled").StyledComponent<import("../Typog
11
11
  colorIntensity?: import("../Typography").Intensity | undefined;
12
12
  component?: import("../Typography/types").ComponentProp | undefined;
13
13
  isUpperCase?: boolean | undefined;
14
+ withoutCalt?: boolean | undefined;
14
15
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
15
16
  theme?: import("@emotion/react").Theme | undefined;
16
17
  }, {}, {}>;
@@ -20,6 +21,7 @@ export declare const Description: import("../styled").StyledComponent<import("..
20
21
  colorIntensity?: import("../Typography").Intensity | undefined;
21
22
  component?: import("../Typography/types").ComponentProp | undefined;
22
23
  isUpperCase?: boolean | undefined;
24
+ withoutCalt?: boolean | undefined;
23
25
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
24
26
  theme?: import("@emotion/react").Theme | undefined;
25
27
  }, {}, {}>;
@@ -13,6 +13,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
13
13
  colorIntensity?: import("../Typography").Intensity | undefined;
14
14
  component?: import("../Typography/types").ComponentProp | undefined;
15
15
  isUpperCase?: boolean | undefined;
16
+ withoutCalt?: boolean | undefined;
16
17
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
17
18
  theme?: import("@emotion/react").Theme | undefined;
18
19
  } & {
@@ -14,6 +14,7 @@ export declare const TargetTextWrapper: import("../styled").StyledComponent<impo
14
14
  colorIntensity?: import("../Typography").Intensity | undefined;
15
15
  component?: import("../Typography/types").ComponentProp | undefined;
16
16
  isUpperCase?: boolean | undefined;
17
+ withoutCalt?: boolean | undefined;
17
18
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  }, {}, {}>;
@@ -341,6 +341,7 @@ export declare const Value: import("../../styled").StyledComponent<import("../..
341
341
  colorIntensity?: import("../..").Intensity | undefined;
342
342
  component?: import("../../Typography/types").ComponentProp | undefined;
343
343
  isUpperCase?: boolean | undefined;
344
+ withoutCalt?: boolean | undefined;
344
345
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
345
346
  children?: import("react").ReactNode;
346
347
  } & import("react").RefAttributes<HTMLElement> & {
@@ -354,6 +355,7 @@ export declare const CopyWrapper: import("../../styled").StyledComponent<import(
354
355
  colorIntensity?: import("../..").Intensity | undefined;
355
356
  component?: import("../../Typography/types").ComponentProp | undefined;
356
357
  isUpperCase?: boolean | undefined;
358
+ withoutCalt?: boolean | undefined;
357
359
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
358
360
  copyText?: string | undefined;
359
361
  copyPosition?: "left" | "right" | undefined;
@@ -1037,6 +1039,7 @@ export declare const GuidValue: import("../../styled").StyledComponent<import(".
1037
1039
  colorIntensity?: import("../..").Intensity | undefined;
1038
1040
  component?: import("../../Typography/types").ComponentProp | undefined;
1039
1041
  isUpperCase?: boolean | undefined;
1042
+ withoutCalt?: boolean | undefined;
1040
1043
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
1041
1044
  children?: import("react").ReactNode;
1042
1045
  } & {
@@ -28,6 +28,7 @@ export declare const Content: import("../../styled").StyledComponent<import("../
28
28
  colorIntensity?: import("../../Typography").Intensity | undefined;
29
29
  component?: import("../../Typography/types").ComponentProp | undefined;
30
30
  isUpperCase?: boolean | undefined;
31
+ withoutCalt?: boolean | undefined;
31
32
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
32
33
  theme?: import("@emotion/react").Theme | undefined;
33
34
  }, {}, {}>;
@@ -50,6 +51,7 @@ export declare const Title: import("../../styled").StyledComponent<import("../..
50
51
  colorIntensity?: import("../../Typography").Intensity | undefined;
51
52
  component?: import("../../Typography/types").ComponentProp | undefined;
52
53
  isUpperCase?: boolean | undefined;
54
+ withoutCalt?: boolean | undefined;
53
55
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
54
56
  theme?: import("@emotion/react").Theme | undefined;
55
57
  }, {}, {}>;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { IMaskMixin } from 'react-imask';
4
- import { TextField } from '../TextField';
4
+ import { StyledTextField } from './styles';
5
5
  const MaskedTextField = IMaskMixin(({ ...props }) => {
6
6
  const textFieldProps = props;
7
- return _jsx(TextField, { ...textFieldProps });
7
+ return _jsx(StyledTextField, { ...textFieldProps });
8
8
  });
9
9
  export const MaskField = forwardRef(({ onChange, onAccept, ...props }, ref) => {
10
10
  const maskFieldProps = { unmask: true, ...props };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTextField: import("@emotion/styled").StyledComponent<Omit<import("../TextField").TextFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import { TextField } from '../TextField';
3
+ export const StyledTextField = styled(TextField) `
4
+ font-feature-settings: "calt" 0;
5
+ `;
@@ -5,6 +5,7 @@ export declare const Label: import("../styled").StyledComponent<import("../Typog
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -24,6 +24,7 @@ export declare const StyledTypography: import("../../styled/styled").StyledCompo
24
24
  colorIntensity?: import("../../Typography").Intensity | undefined;
25
25
  component?: import("../../Typography/types").ComponentProp | undefined;
26
26
  isUpperCase?: boolean | undefined;
27
+ withoutCalt?: boolean | undefined;
27
28
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
28
29
  theme?: import("@emotion/react").Theme | undefined;
29
30
  } & {
@@ -5,6 +5,7 @@ export declare const Label: import("../../styled").StyledComponent<import("../..
5
5
  colorIntensity?: import("../../Typography").Intensity | undefined;
6
6
  component?: import("../../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
  }, {}, {}>;
@@ -22,6 +22,7 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
22
22
  colorIntensity?: import("../Typography").Intensity | undefined;
23
23
  component?: import("../Typography/types").ComponentProp | undefined;
24
24
  isUpperCase?: boolean | undefined;
25
+ withoutCalt?: boolean | undefined;
25
26
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
26
27
  theme?: import("@emotion/react").Theme | undefined;
27
28
  }, {}, {}>;
@@ -5,6 +5,7 @@ export declare const PageItem: import("../styled").StyledComponent<import("../Ty
5
5
  colorIntensity?: import("../Typography").Intensity | undefined;
6
6
  component?: import("../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
  }, {}, {}>;
@@ -632,6 +632,7 @@ export declare const NavMenuItemButtonText: import("../../../styled").StyledComp
632
632
  colorIntensity?: import("../../..").Intensity | undefined;
633
633
  component?: import("../../../Typography/types").ComponentProp | undefined;
634
634
  isUpperCase?: boolean | undefined;
635
+ withoutCalt?: boolean | undefined;
635
636
  } & import("react").HTMLAttributes<HTMLParagraphElement> & {
636
637
  children?: import("react").ReactNode;
637
638
  } & import("react").RefAttributes<HTMLElement> & {
@@ -9,6 +9,7 @@ export declare const Header: import("../styled").StyledComponent<import("../Typo
9
9
  colorIntensity?: import("../Typography").Intensity | undefined;
10
10
  component?: import("../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
  }, {}, {}>;
@@ -18,6 +19,7 @@ export declare const Subheader: import("../styled").StyledComponent<import("../T
18
19
  colorIntensity?: import("../Typography").Intensity | undefined;
19
20
  component?: import("../Typography/types").ComponentProp | undefined;
20
21
  isUpperCase?: boolean | undefined;
22
+ withoutCalt?: boolean | undefined;
21
23
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
22
24
  theme?: import("@emotion/react").Theme | undefined;
23
25
  }, {}, {}>;
@@ -20,6 +20,7 @@ export declare const Content: import("../../styled").StyledComponent<import("../
20
20
  colorIntensity?: import("../../Typography").Intensity | undefined;
21
21
  component?: import("../../Typography/types").ComponentProp | undefined;
22
22
  isUpperCase?: boolean | undefined;
23
+ withoutCalt?: boolean | undefined;
23
24
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
24
25
  theme?: import("@emotion/react").Theme | undefined;
25
26
  }, {}, {}>;
@@ -46,6 +47,7 @@ export declare const Title: import("../../styled").StyledComponent<import("../..
46
47
  colorIntensity?: import("../../Typography").Intensity | undefined;
47
48
  component?: import("../../Typography/types").ComponentProp | undefined;
48
49
  isUpperCase?: boolean | undefined;
50
+ withoutCalt?: boolean | undefined;
49
51
  } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
50
52
  theme?: import("@emotion/react").Theme | undefined;
51
53
  }, {}, {}>;