profinansy-ui-lib 3.8.0 → 3.8.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/dist/components/banners/TextBlackBanner/TextBlackBanner.styled.d.ts +30 -2
- package/dist/components/blocks/Navigation/components/NewFeature/NewFeature.styled.d.ts +30 -2
- package/dist/components/blocks/header/components/Cart/components/CartItem/CartStyled.styled.d.ts +30 -2
- package/dist/components/blocks/header/components/header-link-item/components/Hit/Hit.d.ts +30 -2
- package/dist/components/blocks/header/components/header-link-item/components/MoreItems/MoreItems.styled.d.ts +60 -4
- package/dist/components/blocks/header/components/header-link-item/components/New/New.d.ts +30 -2
- package/dist/components/blocks/header/components/header-link-item/header-link-item.styled.d.ts +30 -2
- package/dist/components/blocks/header/components/userMenu/components/PersonalInformation/PersonalInformation.styled.d.ts +30 -2
- package/dist/components/blocks/search/components/InstrumentItem/InstrumentItem.styled.d.ts +90 -6
- package/dist/components/blocks/search/components/Item.styled.d.ts +30 -2
- package/dist/components/blocks/search/components/SearchNotFound/SearchNotFound.styled.d.ts +30 -2
- package/dist/components/blocks/search/hooks/useFavourites.d.ts +2 -4
- package/dist/components/blocks/sideMenu/components/FooterSlot/FooterSlot.d.ts +3 -4
- package/dist/components/blocks/sideMenu/components/SubPages/SubPages.styled.d.ts +30 -2
- package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.tyled.d.ts +3 -4
- package/dist/components/uikit/Bubbles/Bubbles.styled.d.ts +30 -2
- package/dist/components/uikit/Card/Card.d.ts +20 -2
- package/dist/components/uikit/Card/Card.typed.d.ts +3 -5
- package/dist/components/uikit/Checkbox/Checkbox.styled.d.ts +30 -2
- package/dist/components/uikit/DragScroll/DragScroll.d.ts +2 -5
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +13 -1
- package/dist/components/uikit/Dropdown/Dropdown.typed.d.ts +3 -5
- package/dist/components/uikit/FieldRow/FieldRow.typed.d.ts +3 -5
- package/dist/components/uikit/FilterButton/FilterButton.d.ts +19 -2
- package/dist/components/uikit/FilterButton/FilterButton.typed.d.ts +5 -8
- package/dist/components/uikit/FilterButton/components/Drop/Drop.d.ts +14 -2
- package/dist/components/uikit/FilterButton/components/Mobile/MobileFilter.d.ts +18 -2
- package/dist/components/uikit/HiddenText/HiddenText.typed.d.ts +3 -8
- package/dist/components/uikit/Hint/Hint.typed.d.ts +3 -5
- package/dist/components/uikit/Modal/Modal.styled.d.ts +60 -4
- package/dist/components/uikit/Modal/Modal.typed.d.ts +3 -5
- package/dist/components/uikit/ModalMobile/ModalMobile.typed.d.ts +3 -5
- package/dist/components/uikit/Portal/Portal.typed.d.ts +3 -4
- package/dist/components/uikit/Radio/Radio.styled.d.ts +30 -2
- package/dist/components/uikit/SegmentControl/SegmentControl.styled.d.ts +30 -2
- package/dist/components/uikit/Select/components/ValueContainerWithImage/ValueContainerWithImage.styled.d.ts +30 -2
- package/dist/components/uikit/SideModal/SideModal.typed.d.ts +3 -5
- package/dist/components/uikit/Table/components/TCellText/TCellText.d.ts +3 -5
- package/dist/components/uikit/Tabs/Tabs.styled.d.ts +30 -2
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +3 -4
- package/dist/components/uikit/Tooltip/Tooltip.typed.d.ts +3 -5
- package/dist/components/uikit/Typography/Typography.d.ts +15 -2
- package/dist/components/uikit/Typography/Typography.typed.d.ts +3 -5
- package/dist/components/uikit/storybook/StoryExample/StoryExample.d.ts +2 -5
- package/dist/components/uikit/storybook/StoryTitle/StoryTitle.d.ts +3 -4
- package/dist/config.d.ts +3 -4
- package/dist/hooks/useTransitionModal.d.ts +3 -4
- package/dist/localization/useLocalization.d.ts +3 -4
- package/dist/profinansy-ui-lib.cjs.js +1 -1
- package/dist/profinansy-ui-lib.cjs.js.map +1 -1
- package/dist/profinansy-ui-lib.es.js +2 -2
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +3 -8
- package/package.json +3 -2
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const FilterButton: React.ForwardRefExoticComponent<
|
|
2
|
+
import { IFilterButtonRef } from './FilterButton.typed';
|
|
3
|
+
declare const FilterButton: React.ForwardRefExoticComponent<{
|
|
4
|
+
text?: string;
|
|
5
|
+
activeElements: number;
|
|
6
|
+
isStroke?: boolean;
|
|
7
|
+
size?: "M" | "S" | "XS";
|
|
8
|
+
padding?: string;
|
|
9
|
+
resetFilter?: () => void;
|
|
10
|
+
handleConfirm?: () => void;
|
|
11
|
+
isConfirmWithoutClose?: boolean;
|
|
12
|
+
isCancelWithoutClose?: boolean;
|
|
13
|
+
handleCustomOpen?: () => void;
|
|
14
|
+
withoutTextOnMobile?: boolean;
|
|
15
|
+
widthDrop?: number;
|
|
16
|
+
heightDrop?: number;
|
|
17
|
+
customIcon?: React.ReactNode;
|
|
18
|
+
} & {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
} & React.RefAttributes<IFilterButtonRef>>;
|
|
4
21
|
export { FilterButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
|
-
export
|
|
3
|
+
export type IFilterButton = PropsWithChildren<{
|
|
4
4
|
/**Текст кнопки */
|
|
5
5
|
text?: string;
|
|
6
6
|
/**Количество выбранных элементов */
|
|
@@ -29,16 +29,13 @@ export interface IFilterButton {
|
|
|
29
29
|
heightDrop?: number;
|
|
30
30
|
/** Слот под кастомную иконку */
|
|
31
31
|
customIcon?: ReactNode;
|
|
32
|
-
|
|
33
|
-
children: ReactNode;
|
|
34
|
-
}
|
|
32
|
+
}>;
|
|
35
33
|
export interface IFilterButtonRef {
|
|
36
34
|
handleClose: () => void;
|
|
37
35
|
}
|
|
38
|
-
export
|
|
36
|
+
export type IDropFilter = PropsWithChildren<{
|
|
39
37
|
targetElement: ReactNode;
|
|
40
38
|
placement?: Placement;
|
|
41
|
-
children: ReactNode;
|
|
42
39
|
padding: string;
|
|
43
40
|
widthDrop: number;
|
|
44
41
|
heightDrop: number;
|
|
@@ -46,4 +43,4 @@ export interface IDropFilter {
|
|
|
46
43
|
handleConfirm?: () => void;
|
|
47
44
|
isConfirmWithoutClose?: boolean;
|
|
48
45
|
isCancelWithoutClose?: boolean;
|
|
49
|
-
}
|
|
46
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { IFilterButtonRef } from '../../FilterButton.typed';
|
|
4
4
|
export declare function useDrop({ placement }: {
|
|
5
5
|
placement?: Placement;
|
|
6
6
|
}): {
|
|
@@ -49,4 +49,16 @@ export declare function useDrop({ placement }: {
|
|
|
49
49
|
open: boolean;
|
|
50
50
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
51
51
|
};
|
|
52
|
-
export declare const FilterDrop: React.ForwardRefExoticComponent<
|
|
52
|
+
export declare const FilterDrop: React.ForwardRefExoticComponent<{
|
|
53
|
+
targetElement: React.ReactNode;
|
|
54
|
+
placement?: Placement;
|
|
55
|
+
padding: string;
|
|
56
|
+
widthDrop: number;
|
|
57
|
+
heightDrop: number;
|
|
58
|
+
resetFilter?: () => void;
|
|
59
|
+
handleConfirm?: () => void;
|
|
60
|
+
isConfirmWithoutClose?: boolean;
|
|
61
|
+
isCancelWithoutClose?: boolean;
|
|
62
|
+
} & {
|
|
63
|
+
children?: React.ReactNode;
|
|
64
|
+
} & React.RefAttributes<IFilterButtonRef>>;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const MobileFilter: React.ForwardRefExoticComponent<{
|
|
3
|
+
text?: string;
|
|
4
|
+
activeElements: number;
|
|
5
|
+
isStroke?: boolean;
|
|
6
|
+
size?: "M" | "S" | "XS";
|
|
7
|
+
padding?: string;
|
|
8
|
+
resetFilter?: () => void;
|
|
9
|
+
handleConfirm?: () => void;
|
|
10
|
+
isConfirmWithoutClose?: boolean;
|
|
11
|
+
isCancelWithoutClose?: boolean;
|
|
12
|
+
handleCustomOpen?: () => void;
|
|
13
|
+
withoutTextOnMobile?: boolean;
|
|
14
|
+
widthDrop?: number;
|
|
15
|
+
heightDrop?: number;
|
|
16
|
+
customIcon?: React.ReactNode;
|
|
17
|
+
} & {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
} & React.RefAttributes<unknown>>;
|
|
4
20
|
export { MobileFilter };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
3
|
-
/**Дочерний элемент (в 90% случаев это должен быть typography) */
|
|
4
|
-
children: ReactElement;
|
|
5
|
-
};
|
|
6
|
-
export type EllipsisMode = IHiddenTextBase & {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type EllipsisMode = PropsWithChildren & {
|
|
7
3
|
/**Режим скрытия текста */
|
|
8
4
|
mode?: 'ellipsis';
|
|
9
5
|
};
|
|
10
|
-
export type MultilineMode =
|
|
6
|
+
export type MultilineMode = PropsWithChildren & {
|
|
11
7
|
/**Режим скрытия текста */
|
|
12
8
|
mode?: 'multiline';
|
|
13
9
|
/**Количество линий */
|
|
@@ -15,4 +11,3 @@ export type MultilineMode = IHiddenTextBase & {
|
|
|
15
11
|
};
|
|
16
12
|
export type IHiddenText = EllipsisMode | MultilineMode;
|
|
17
13
|
export type IHiddenTextWithoutChildren = Omit<EllipsisMode, 'children'> | Omit<MultilineMode, 'children'>;
|
|
18
|
-
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import type { Placement } from '@floating-ui/react';
|
|
3
|
-
export
|
|
3
|
+
export type IHint = PropsWithChildren<{
|
|
4
4
|
/**Расположение хинта*/
|
|
5
5
|
placement?: Placement;
|
|
6
6
|
/**Текст хинта*/
|
|
7
7
|
text: string;
|
|
8
8
|
/**Должен ли открываться на телефонах по клику*/
|
|
9
9
|
isClickMobile?: boolean;
|
|
10
|
-
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
10
|
+
}>;
|
|
@@ -19,13 +19,69 @@ export declare const Header: import("styled-components/dist/types").IStyledCompo
|
|
|
19
19
|
export declare const FirstLineHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
20
20
|
adaptiveRightContent: number;
|
|
21
21
|
}>> & string;
|
|
22
|
-
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<
|
|
22
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
23
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
24
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
25
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
26
|
+
resolution: number;
|
|
27
|
+
}[];
|
|
28
|
+
className?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
valueNumber?: number;
|
|
31
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
32
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
33
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
34
|
+
} & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
23
37
|
ref?: import("react").Ref<HTMLElement>;
|
|
24
38
|
}, {
|
|
25
39
|
titlePosition: 'left' | 'center';
|
|
26
|
-
}>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
27
|
-
|
|
40
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
41
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
42
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
43
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
44
|
+
resolution: number;
|
|
45
|
+
}[];
|
|
46
|
+
className?: string;
|
|
47
|
+
title?: string;
|
|
48
|
+
valueNumber?: number;
|
|
49
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
50
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
51
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
52
|
+
} & {
|
|
53
|
+
children?: import("react").ReactNode;
|
|
54
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
55
|
+
export declare const Subtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
56
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
57
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
58
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
59
|
+
resolution: number;
|
|
60
|
+
}[];
|
|
61
|
+
className?: string;
|
|
62
|
+
title?: string;
|
|
63
|
+
valueNumber?: number;
|
|
64
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
65
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
66
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
67
|
+
} & {
|
|
68
|
+
children?: import("react").ReactNode;
|
|
69
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
28
70
|
ref?: import("react").Ref<HTMLElement>;
|
|
29
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
71
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
72
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
73
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
74
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
75
|
+
resolution: number;
|
|
76
|
+
}[];
|
|
77
|
+
className?: string;
|
|
78
|
+
title?: string;
|
|
79
|
+
valueNumber?: number;
|
|
80
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
81
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
82
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
83
|
+
} & {
|
|
84
|
+
children?: import("react").ReactNode;
|
|
85
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
30
86
|
export declare const BottomContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
31
87
|
export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
2
|
-
export
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
export type IModal = PropsWithChildren<{
|
|
3
3
|
/** Состояние попапа. */
|
|
4
4
|
open: boolean;
|
|
5
5
|
/** Действие при закрытии попапа. */
|
|
6
6
|
onClose: () => void;
|
|
7
|
-
/** Контент попапа. */
|
|
8
|
-
children: ReactNode;
|
|
9
7
|
/** Показывать ли кнопку закрытия. */
|
|
10
8
|
showCloseButton?: boolean;
|
|
11
9
|
/** Модалку нельзя закрыть по клику на фон или через esc. */
|
|
@@ -45,4 +43,4 @@ export interface IModal {
|
|
|
45
43
|
maxWidth?: string;
|
|
46
44
|
/** Пропс для работы стайледов **/
|
|
47
45
|
className?: string;
|
|
48
|
-
}
|
|
46
|
+
}>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type IModalMobile = PropsWithChildren<{
|
|
3
3
|
title: string;
|
|
4
4
|
rightButtonText?: string;
|
|
5
5
|
leftButtonText?: string;
|
|
6
|
-
/** Контент попапа. */
|
|
7
|
-
children: ReactNode;
|
|
8
6
|
isOpen: boolean;
|
|
9
7
|
onClose?: () => void;
|
|
10
8
|
onLeftButton?: () => void;
|
|
11
9
|
onRightButton?: () => void;
|
|
12
10
|
closeIconVisible?: boolean;
|
|
13
|
-
}
|
|
11
|
+
}>;
|
|
@@ -10,9 +10,37 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
10
10
|
export declare const NativeInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
11
11
|
ref?: import("react").Ref<HTMLInputElement>;
|
|
12
12
|
}>, never>, never>> & string;
|
|
13
|
-
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<
|
|
13
|
+
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
14
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
15
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
16
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
17
|
+
resolution: number;
|
|
18
|
+
}[];
|
|
19
|
+
className?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
valueNumber?: number;
|
|
22
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
23
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
24
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
25
|
+
} & {
|
|
26
|
+
children?: import("react").ReactNode;
|
|
27
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
14
28
|
ref?: import("react").Ref<HTMLElement>;
|
|
15
29
|
}, {
|
|
16
30
|
isTextLeft: boolean;
|
|
17
31
|
color: string;
|
|
18
|
-
}>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
32
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
33
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
34
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
35
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
36
|
+
resolution: number;
|
|
37
|
+
}[];
|
|
38
|
+
className?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
valueNumber?: number;
|
|
41
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
42
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
43
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
44
|
+
} & {
|
|
45
|
+
children?: import("react").ReactNode;
|
|
46
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -18,9 +18,37 @@ export declare const Item: import("styled-components/dist/types").IStyledCompone
|
|
|
18
18
|
export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
19
19
|
isHide: boolean;
|
|
20
20
|
}>> & string;
|
|
21
|
-
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<
|
|
21
|
+
export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
22
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
23
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
24
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
25
|
+
resolution: number;
|
|
26
|
+
}[];
|
|
27
|
+
className?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
valueNumber?: number;
|
|
30
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
31
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
32
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
33
|
+
} & {
|
|
34
|
+
children?: import("react").ReactNode;
|
|
35
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
22
36
|
ref?: import("react").Ref<HTMLElement>;
|
|
23
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
37
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
38
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
39
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
40
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
41
|
+
resolution: number;
|
|
42
|
+
}[];
|
|
43
|
+
className?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
valueNumber?: number;
|
|
46
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
47
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
48
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
49
|
+
} & {
|
|
50
|
+
children?: import("react").ReactNode;
|
|
51
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
24
52
|
export declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
25
53
|
isLabel: boolean;
|
|
26
54
|
}>> & string;
|
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<
|
|
4
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
5
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
6
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
7
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
8
|
+
resolution: number;
|
|
9
|
+
}[];
|
|
10
|
+
className?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
valueNumber?: number;
|
|
13
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
14
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
15
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
16
|
+
} & {
|
|
17
|
+
children?: import("react").ReactNode;
|
|
18
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
5
19
|
ref?: import("react").Ref<HTMLElement>;
|
|
6
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
20
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
21
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
22
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
23
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
24
|
+
resolution: number;
|
|
25
|
+
}[];
|
|
26
|
+
className?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
valueNumber?: number;
|
|
29
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
30
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
31
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
32
|
+
} & {
|
|
33
|
+
children?: import("react").ReactNode;
|
|
34
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import { IAlert } from '../Alert/Alert.typed';
|
|
3
3
|
import { IModal } from '../Modal/Modal.typed';
|
|
4
|
-
export
|
|
4
|
+
export type ISideModal = PropsWithChildren<{
|
|
5
5
|
/** Состояние попапа. */
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
/** Заголовок попапа */
|
|
@@ -18,8 +18,6 @@ export interface ISideModal {
|
|
|
18
18
|
classNameContent?: string;
|
|
19
19
|
/** Класс для хэдера попапа */
|
|
20
20
|
classNameHeader?: string;
|
|
21
|
-
/** Контент попапа. */
|
|
22
|
-
children: ReactNode;
|
|
23
21
|
/**Контент справа от заголовка*/
|
|
24
22
|
rightContent?: ReactElement;
|
|
25
23
|
/**Контент, закрепленный снизу попапа*/
|
|
@@ -36,4 +34,4 @@ export interface ISideModal {
|
|
|
36
34
|
alert?: IAlert;
|
|
37
35
|
/** Отключить анимацию выезда из-за экрана при открытии. */
|
|
38
36
|
withoutAnimation?: boolean;
|
|
39
|
-
}
|
|
37
|
+
}>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import { CSSProperties, PropsWithChildren } from 'react';
|
|
2
2
|
import { IHiddenTextWithoutChildren } from '../../../HiddenText/HiddenText.typed';
|
|
3
|
-
|
|
4
|
-
/**Контента внутри элемента */
|
|
5
|
-
children: ReactNode;
|
|
3
|
+
type IProps = PropsWithChildren<{
|
|
6
4
|
hiddenText?: IHiddenTextWithoutChildren;
|
|
7
5
|
/** Не переносить текст на новую строку, как наиболее часто используемое вынес */
|
|
8
6
|
nowrap?: boolean;
|
|
@@ -12,6 +10,6 @@ interface IProps {
|
|
|
12
10
|
className?: string;
|
|
13
11
|
/**Если вам надо покарсить число в позитивный или негативный цвет, то передайте это числю сюда. */
|
|
14
12
|
valueNumber?: number;
|
|
15
|
-
}
|
|
13
|
+
}>;
|
|
16
14
|
declare const TCellText: ({ children, hiddenText, style, className, valueNumber, nowrap }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
export { TCellText };
|
|
@@ -18,6 +18,34 @@ export declare const Mute: import("styled-components/dist/types").IStyledCompone
|
|
|
18
18
|
export declare const LeftButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../ArrowButton/ArrowButton.typed").IArrowButton, never>> & string & Omit<({ direction, className, style, size, onClick, disabled }: import("../ArrowButton/ArrowButton.typed").IArrowButton) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
19
19
|
export declare const RightButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../ArrowButton/ArrowButton.typed").IArrowButton, never>> & string & Omit<({ direction, className, style, size, onClick, disabled }: import("../ArrowButton/ArrowButton.typed").IArrowButton) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
20
20
|
export declare const NewTabCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
21
|
-
export declare const NewLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<
|
|
21
|
+
export declare const NewLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
22
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
23
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
24
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
25
|
+
resolution: number;
|
|
26
|
+
}[];
|
|
27
|
+
className?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
valueNumber?: number;
|
|
30
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
31
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
32
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
33
|
+
} & {
|
|
34
|
+
children?: import("react").ReactNode;
|
|
35
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
22
36
|
ref?: import("react").Ref<HTMLElement>;
|
|
23
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<
|
|
37
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
38
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
39
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold" | {
|
|
40
|
+
variant: "header1-Bold" | "header2-ExtraBold" | "header2-Bold" | "header3-Bold" | "header3-SemiBold" | "header4-Bold" | "header4-SemiBold" | "header5-Bold" | "header5-SemiBold" | "header6-Bold" | "header6-SemiBold" | "paragraph-Regular" | "paragraph-Medium" | "text-Regular" | "text-Medium" | "text-Bold" | "description-Regular" | "description-Medium" | "description-SemiBold" | "description-Bold" | "caption-Medium" | "caption-SemiBold" | "caption-Bold" | "caption2-Medium" | "caption2-SemiBold" | "caption2-Bold" | "tag-Medium11" | "tag-Medium10" | "tag-Medium9" | "controls-Regular" | "controls-Medium" | "controls-SemiBold";
|
|
41
|
+
resolution: number;
|
|
42
|
+
}[];
|
|
43
|
+
className?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
valueNumber?: number;
|
|
46
|
+
onClick?: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
47
|
+
colorName?: "link" | "content" | "black" | "blue" | "gray" | "green" | "olive" | "orange" | "pink" | "red" | "turquoise" | "violet" | "primary" | "secondary" | "tertiary" | "fourth" | "contrast" | "contrastThemed" | "accent" | "accentSecondary" | "positive" | "warning" | "negative" | "info" | "secondaryAlpha" | "field" | "fieldSecondary" | "accentSecondaryTint" | "positiveTint" | "warningTint" | "negativeTint" | "bottomActions" | "contrastThemRev" | "warring" | "brandBackground" | "brandBackgroundHover" | "brandText" | "secondaryBrandBackground" | "secondaryBrandBackgroundHover" | "secondaryBrandText" | "outlineBrandBackground" | "outlineBrandBackgroundHover" | "outlineBrandText" | "outlineBrandBorder" | "outlineBrandBorderHover" | "systemBackground" | "systemBackgroundHover" | "systemText" | "successBackground" | "successBackgroundHover" | "successText" | "warningBackground" | "warningBackgroundHover" | "warningText" | "criticalBackground" | "criticalBackgroundHover" | "criticalText" | "neutralBackground" | "neutralBackgroundHover" | "neutralText" | "supportive" | "brand" | "brandAlpha" | "accentDark" | "red2" | "mediumBlue" | "darkBlue" | "lightBlue" | "navyBlue" | "lightBlueTint" | "orangeTint" | "greenTint" | "oliveTint" | "violetTint" | "redTint" | "pinkTint" | "turquoiseTint" | "darkBlueTint";
|
|
48
|
+
colorCategory?: "text" | "club" | "stroke" | "background" | "icons" | "interactiveButtons" | "interactiveControls" | "other" | "shadow" | "statesBackground" | "gradient";
|
|
49
|
+
} & {
|
|
50
|
+
children?: import("react").ReactNode;
|
|
51
|
+
} & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
3
|
import { ITooltipProps } from './Tooltip.typed';
|
|
4
4
|
export declare function useTooltip({ placement, isHover, showArrow }: {
|
|
@@ -56,13 +56,12 @@ declare const Tooltip: ({ children, width, height, zIndex, padding, borderRadius
|
|
|
56
56
|
export declare const TooltipTrigger: ({ targetElement }: {
|
|
57
57
|
targetElement: React.ReactNode;
|
|
58
58
|
}) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
59
|
-
export declare const TooltipContent: ({ children, width, height, zIndex, padding, borderRadius, showArrow }: {
|
|
60
|
-
children: ReactNode;
|
|
59
|
+
export declare const TooltipContent: ({ children, width, height, zIndex, padding, borderRadius, showArrow }: React.PropsWithChildren<{
|
|
61
60
|
width: string;
|
|
62
61
|
height: string;
|
|
63
62
|
zIndex: number;
|
|
64
63
|
padding: string;
|
|
65
64
|
borderRadius: string;
|
|
66
65
|
showArrow: boolean;
|
|
67
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
68
67
|
export { Tooltip };
|