@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
|
@@ -47,6 +47,7 @@ export declare const Label: import("../../styled").StyledComponent<import("../..
|
|
|
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("../../styled").StyledComponent<import("../../
|
|
|
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> & {
|
|
@@ -9,7 +9,7 @@ import { IconWrapper, StyledTagsList, StyledTextField } from './styles';
|
|
|
9
9
|
import { useLogic } from './useLogic';
|
|
10
10
|
const ClearButton = ({ disabled, onClick }) => (_jsx(IconButton, { variant: "text", color: "grey", disabled: disabled, onClick: onClick, title: CLEAR_TEXT, "aria-label": CLEAR_TEXT, children: _jsx(CrossOutlineMd, {}) }));
|
|
11
11
|
export const Input = forwardRef(({ disabled, onChange: propsOnChange, value, inputRef, hideHelperText = false, onClick, isLoading, ...restProps }, forwardedRef) => {
|
|
12
|
-
const { isVisibleClearButton,
|
|
12
|
+
const { isVisibleClearButton, isVisibleTagsList, onChange, textFieldProps, onClearAll, } = useLogic({
|
|
13
13
|
inputRef,
|
|
14
14
|
value,
|
|
15
15
|
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>>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { classNames } from '../utils/classNames';
|
|
4
|
+
import { typographyClassnames } from './constants';
|
|
3
5
|
import { useTypographyColor } from './hooks';
|
|
4
6
|
import { TypographyWrapper } from './styles';
|
|
5
|
-
export const Typography = forwardRef(({ children, color, colorIntensity = '800', component, ...props }, ref) => {
|
|
7
|
+
export const Typography = forwardRef(({ children, color, colorIntensity = '800', component, withoutCalt, className, ...props }, ref) => {
|
|
6
8
|
const typographyColor = useTypographyColor({ color, colorIntensity });
|
|
7
|
-
return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor,
|
|
9
|
+
return (_jsx(TypographyWrapper, { ref: ref, ...props, component: component, color: typographyColor, className: classNames(className, {
|
|
10
|
+
[typographyClassnames.withoutCalt]: withoutCalt,
|
|
11
|
+
}), children: children }));
|
|
8
12
|
});
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import Typography from '@mui/material/Typography';
|
|
2
2
|
import { styled } from '../styled';
|
|
3
|
+
import { typographyClassnames } from './constants';
|
|
3
4
|
export const TypographyWrapper = styled(Typography, {
|
|
4
5
|
shouldForwardProp: (prop) => prop !== 'isUpperCase',
|
|
5
6
|
}) `
|
|
6
7
|
text-transform: ${({ isUpperCase }) => (isUpperCase ? 'uppercase' : 'none')};
|
|
8
|
+
|
|
9
|
+
.${typographyClassnames.withoutCalt} {
|
|
10
|
+
font-feature-settings: "calt" 0;
|
|
11
|
+
}
|
|
7
12
|
`;
|
|
@@ -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("../styled").StyledComponent<import("../Ty
|
|
|
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("../styled").StyledComponent<import("../Ty
|
|
|
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("../../styled").StyledComponent<import("..
|
|
|
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("../../styled").StyledComponent<import("../..
|
|
|
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("../../styled").StyledComponent<import(
|
|
|
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("../../../components/styled").StyledCom
|
|
|
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("../../components/styled").StyledCompo
|
|
|
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
|
} & {
|
|
@@ -25,6 +25,7 @@ export declare const Summary: import("@emotion/styled/dist/declarations/src/type
|
|
|
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("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declarati
|
|
|
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
|
|
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;
|
|
@@ -14,7 +14,7 @@ const Checkbox_1 = require("../Checkbox");
|
|
|
14
14
|
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
|
|
15
15
|
const Loader_1 = require("../Loader");
|
|
16
16
|
const OverflowTypography_1 = require("../OverflowTypography");
|
|
17
|
-
const
|
|
17
|
+
const TagsList_1 = require("../TagsList");
|
|
18
18
|
const TextField_1 = require("../TextField");
|
|
19
19
|
const classNames_1 = require("../utils/classNames");
|
|
20
20
|
const constants_1 = require("./constants");
|
|
@@ -22,14 +22,51 @@ const styles_1 = require("./styles");
|
|
|
22
22
|
const useLogic_1 = require("./useLogic");
|
|
23
23
|
const AutocompleteInner = (props, ref) => {
|
|
24
24
|
const { isValueEmpty, isPopperVisible, autocompleteProps } = (0, useLogic_1.useLogic)(props);
|
|
25
|
-
const
|
|
25
|
+
const inputBaseRef = (0, react_1.useRef)(null);
|
|
26
|
+
const { required, success, error, label, getOptionLabel, helperText, inputRef, multiple, size = 'medium', placeholder = constants_1.DEFAULT_PLACEHOLDER, overflowOption, closeText = 'Закрыть', openText = 'Открыть', clearText = 'Очистить', loadingText = (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}), isLoadedDataError, loadedDataError, noOptionsText, autoHighlight, renderInput: externalRenderInput, renderTags: externalRenderTags, renderOption: externalRenderOption, inputProps, hideHelperText = false, loading, value, onChange, ...restProps } = props;
|
|
26
27
|
const renderInput = (0, react_1.useCallback)((inputParams) => {
|
|
28
|
+
const createStartAdornment = () => {
|
|
29
|
+
if (!multiple || !Array.isArray(value)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
const tagsListElement = ((0, jsx_runtime_1.jsx)(TagsList_1.TagsList, { data: value, getOptionLabel: (option) => getOptionLabel?.(option) ??
|
|
33
|
+
option.toString(), inputContainerRef: inputBaseRef, reservedWidth: constants_1.INPUT_MIN_WIDTH, onChange: (tagValues) => {
|
|
34
|
+
if (!onChange) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const syntheticEvent = {
|
|
38
|
+
type: 'change',
|
|
39
|
+
target: { value: tagValues },
|
|
40
|
+
currentTarget: { value: tagValues },
|
|
41
|
+
};
|
|
42
|
+
const reason = 'removeOption';
|
|
43
|
+
onChange(syntheticEvent, tagValues, reason);
|
|
44
|
+
} }));
|
|
45
|
+
return tagsListElement;
|
|
46
|
+
};
|
|
27
47
|
const generalInputParams = {
|
|
28
48
|
...inputParams,
|
|
29
49
|
inputProps: {
|
|
30
50
|
...inputParams.inputProps,
|
|
31
51
|
className: (0, classNames_1.classNames)(inputParams?.inputProps?.className, inputProps?.className),
|
|
32
52
|
},
|
|
53
|
+
InputProps: {
|
|
54
|
+
...inputParams.InputProps,
|
|
55
|
+
ref: (element) => {
|
|
56
|
+
inputBaseRef.current = element;
|
|
57
|
+
const orig = inputParams.InputProps?.ref;
|
|
58
|
+
if (typeof orig === 'function') {
|
|
59
|
+
orig(element);
|
|
60
|
+
}
|
|
61
|
+
else if (orig) {
|
|
62
|
+
orig.current = element;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
// Если есть externalRenderTags, используем renderTags(mui использует inputParams.InputProps?.startAdornment)
|
|
66
|
+
startAdornment: externalRenderTags
|
|
67
|
+
? inputParams.InputProps?.startAdornment
|
|
68
|
+
: createStartAdornment(),
|
|
69
|
+
},
|
|
33
70
|
inputRef,
|
|
34
71
|
required,
|
|
35
72
|
placeholder: isValueEmpty ? placeholder : '',
|
|
@@ -46,7 +83,9 @@ const AutocompleteInner = (props, ref) => {
|
|
|
46
83
|
return (0, jsx_runtime_1.jsx)(TextField_1.TextField, { ...generalInputParams });
|
|
47
84
|
}, [
|
|
48
85
|
isValueEmpty,
|
|
86
|
+
value,
|
|
49
87
|
externalRenderInput,
|
|
88
|
+
externalRenderTags,
|
|
50
89
|
inputRef,
|
|
51
90
|
required,
|
|
52
91
|
placeholder,
|
|
@@ -56,6 +95,9 @@ const AutocompleteInner = (props, ref) => {
|
|
|
56
95
|
helperText,
|
|
57
96
|
size,
|
|
58
97
|
hideHelperText,
|
|
98
|
+
multiple,
|
|
99
|
+
getOptionLabel,
|
|
100
|
+
onChange,
|
|
59
101
|
]);
|
|
60
102
|
const renderOption = (0, react_1.useCallback)((optionProps, option, optionState, ownerState) => {
|
|
61
103
|
if (externalRenderOption) {
|
|
@@ -65,26 +107,22 @@ const AutocompleteInner = (props, ref) => {
|
|
|
65
107
|
const { key, ...restOptionProps } = optionProps;
|
|
66
108
|
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledMenuItem, { selected: isSelected, ...restOptionProps, children: [multiple && ((0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { role: "menuitemcheckbox", checked: isSelected }) })), (0, jsx_runtime_1.jsx)(OverflowTypography_1.OverflowTypography, { rowsCount: constants_1.DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT, ...overflowOption, children: optionProps.key })] }, key));
|
|
67
109
|
}, [multiple, overflowOption, externalRenderOption]);
|
|
68
|
-
const renderTags = (0, react_1.useCallback)((tags, getTagProps, ownerSate) => {
|
|
69
|
-
if (externalRenderTags) {
|
|
70
|
-
return externalRenderTags(tags, getTagProps, ownerSate);
|
|
71
|
-
}
|
|
72
|
-
return tags.map((tag, index) => {
|
|
73
|
-
const title = getOptionLabel?.(tag) || '';
|
|
74
|
-
const { key, ...tagProps } = getTagProps({ index });
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(Tag_1.Tag, { variant: "light", color: "grey", label: title, ...tagProps }, key));
|
|
76
|
-
});
|
|
77
|
-
}, [getOptionLabel, externalRenderTags]);
|
|
78
110
|
const renderPopper = (0, react_1.useCallback)((popperProps) => {
|
|
79
111
|
if (!isPopperVisible) {
|
|
80
112
|
return null;
|
|
81
113
|
}
|
|
82
114
|
return (0, jsx_runtime_1.jsx)(Popper_1.default, { ...popperProps });
|
|
83
115
|
}, [isPopperVisible]);
|
|
116
|
+
const renderTags = (0, react_1.useCallback)((tags, getTagProps, ownerState) => {
|
|
117
|
+
if (externalRenderTags) {
|
|
118
|
+
return externalRenderTags(tags, getTagProps, ownerState);
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}, [externalRenderTags]);
|
|
84
122
|
return ((0, jsx_runtime_1.jsx)(styles_1.StyledAutocomplete, { ...restProps, ref: ref, size: size, clearText: clearText, closeText: !loading ? closeText : '', openText: !loading ? openText : '', loadingText: loadingText, multiple: multiple, disableCloseOnSelect: multiple, clearIcon: (0, jsx_runtime_1.jsx)(CrossOutlineMd_1.CrossOutlineMd, {}), loading: loading, popupIcon: loading ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { color: "primary", size: "small" }) : (0, jsx_runtime_1.jsx)(DownOutlineMd_1.DownOutlineMd, {}), forcePopupIcon: true, slotProps: {
|
|
85
123
|
popper: {
|
|
86
124
|
component: renderPopper,
|
|
87
125
|
},
|
|
88
|
-
}, getOptionLabel: getOptionLabel, renderInput: renderInput, renderTags: renderTags, renderOption: renderOption, ...autocompleteProps }));
|
|
126
|
+
}, getOptionLabel: getOptionLabel, renderInput: renderInput, renderTags: renderTags, renderOption: renderOption, value: value, onChange: onChange, ...autocompleteProps }));
|
|
89
127
|
};
|
|
90
128
|
exports.Autocomplete = (0, forwardRefWithGeneric_1.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,5 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_PLACEHOLDER = exports.DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT = void 0;
|
|
3
|
+
exports.autocompleteClassnames = exports.DEFAULT_PLACEHOLDER = exports.INPUT_MIN_WIDTH = exports.DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
4
5
|
exports.DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT = 2;
|
|
6
|
+
exports.INPUT_MIN_WIDTH = 110;
|
|
5
7
|
exports.DEFAULT_PLACEHOLDER = 'Начните вводить для поиска';
|
|
8
|
+
exports.autocompleteClassnames = {
|
|
9
|
+
root: (0, createUIKitClassname_1.createUIKitClassname)('autocomplete'),
|
|
10
|
+
multiple: (0, createUIKitClassname_1.createUIKitClassname)('autocomplete_multiple'),
|
|
11
|
+
emptyValue: (0, createUIKitClassname_1.createUIKitClassname)('autocomplete_empty-value'),
|
|
12
|
+
};
|
|
@@ -31,6 +31,7 @@ const InputBase_1 = require("@mui/material/InputBase");
|
|
|
31
31
|
const MenuItem_1 = require("../MenuItem");
|
|
32
32
|
const SvgIcon_1 = require("../SvgIcon");
|
|
33
33
|
const styled_1 = require("../styled");
|
|
34
|
+
const constants_1 = require("./constants");
|
|
34
35
|
exports.StyledMenuItem = (0, styled_1.styled)(MenuItem_1.MenuItem) `
|
|
35
36
|
max-height: ${({ theme }) => theme.spacing(13)};
|
|
36
37
|
|
|
@@ -49,5 +50,18 @@ exports.StyledAutocomplete = (0, styled_1.styled)(Autocomplete_1.default) `
|
|
|
49
50
|
|
|
50
51
|
& .${Autocomplete_1.autocompleteClasses.endAdornment} .${IconButton_1.iconButtonClasses.root}:hover {
|
|
51
52
|
background-color: ${({ loading, theme }) => (loading ? 'transparent' : theme.palette.grey[100])};
|
|
52
|
-
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:not(.${constants_1.autocompleteClassnames.emptyValue}) .${InputBase_1.inputBaseClasses.root} {
|
|
56
|
+
gap: ${({ theme }) => theme.spacing(3)};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
& .${Autocomplete_1.autocompleteClasses.inputRoot} .${InputBase_1.inputBaseClasses.input} {
|
|
60
|
+
min-width: ${constants_1.INPUT_MIN_WIDTH}px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .${Autocomplete_1.autocompleteClasses.inputRoot} {
|
|
64
|
+
flex-wrap: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
53
67
|
`;
|
|
@@ -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;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
+
const classNames_1 = require("../../utils/classNames");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
5
7
|
const utils_1 = require("./utils");
|
|
6
|
-
const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight = true, freeSolo, options, loading, isLoadedDataError, loadedDataError = 'Ошибка загрузки данных', noOptionsText = 'Нет данных', onInputChange, }) => {
|
|
8
|
+
const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, autoHighlight = true, freeSolo, options, multiple, className, loading, isLoadedDataError, loadedDataError = 'Ошибка загрузки данных', noOptionsText = 'Нет данных', onInputChange, }) => {
|
|
7
9
|
const [innerInputValue, setInnerInputValue] = (0, react_1.useState)('');
|
|
8
10
|
const isValueEmpty = (0, utils_1.checkIsInputEmpty)(value);
|
|
9
11
|
const isInnerInputValueNotEmpty = innerInputValue.length >= 1;
|
|
@@ -24,10 +26,17 @@ const useLogic = ({ value, isOptionEqualToValue: externalOptionEqualToValue, aut
|
|
|
24
26
|
setInnerInputValue(currentValue);
|
|
25
27
|
}
|
|
26
28
|
};
|
|
29
|
+
const classnames = (0, react_1.useMemo)(() => {
|
|
30
|
+
return (0, classNames_1.classNames)(className, constants_1.autocompleteClassnames.root, {
|
|
31
|
+
[constants_1.autocompleteClassnames.multiple]: multiple,
|
|
32
|
+
[constants_1.autocompleteClassnames.emptyValue]: isValueEmpty,
|
|
33
|
+
});
|
|
34
|
+
}, [multiple, isValueEmpty]);
|
|
27
35
|
return {
|
|
28
36
|
isValueEmpty,
|
|
29
37
|
isPopperVisible,
|
|
30
38
|
autocompleteProps: {
|
|
39
|
+
className: classnames,
|
|
31
40
|
isOptionEqualToValue,
|
|
32
41
|
autoHighlight: freeSolo ? false : autoHighlight,
|
|
33
42
|
noOptionsText: isLoadedDataError ? loadedDataError : noOptionsText,
|
|
@@ -17,6 +17,7 @@ export declare const HeaderTitle: import("@emotion/styled/dist/declarations/src/
|
|
|
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("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
22
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -21,6 +21,7 @@ export declare const AdornmentWrapper: import("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declarations/src/t
|
|
|
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("@emotion/styled/dist/declarations/src/type
|
|
|
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("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declarations/src/type
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations/src/typ
|
|
|
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("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declarat
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations/src/types"
|
|
|
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("@emotion/styled/dist/declarations/src/
|
|
|
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("@emotion/styled/dist/declarations
|
|
|
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("@emotion/styled/dist/declaration
|
|
|
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
|
}, {}, {}>;
|