stone-kit 0.0.873 → 0.0.874
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/main.d.ts +956 -33
- package/dist/main.js +35 -64
- package/dist/style.css +1 -1
- package/package.json +2 -5
- package/dist/FilterWithSave-Bp6rH8Pe.js +0 -2230
- package/dist/Option-BVIm7wOW.js +0 -83
- package/dist/PinTrans-D6OZq76b.js +0 -10
- package/dist/SmallFilter-C-VKnbkP.js +0 -10
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.js +0 -4
- package/dist/components/Button/ui/Button.d.ts +0 -4
- package/dist/components/Button/ui/Button.js +0 -94
- package/dist/components/Button/ui/Button.types.d.ts +0 -37
- package/dist/components/Button/ui/Button.types.js +0 -15
- package/dist/components/CheckBox/CheckBox.d.ts +0 -3
- package/dist/components/CheckBox/CheckBox.js +0 -84
- package/dist/components/CheckBox/CheckBox.types.d.ts +0 -19
- package/dist/components/CheckBox/CheckBox.types.js +0 -1
- package/dist/components/CheckBox/index.d.ts +0 -2
- package/dist/components/CheckBox/index.js +0 -4
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -17
- package/dist/components/CheckBoxNew/CheckBox.types.js +0 -6
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -11
- package/dist/components/CheckBoxNew/CheckBoxNew.js +0 -44
- package/dist/components/CheckboxSelect/index.d.ts +0 -1
- package/dist/components/CheckboxSelect/index.js +0 -4
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -13
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +0 -51
- package/dist/components/DestinationTab/index.d.ts +0 -1
- package/dist/components/DestinationTab/index.js +0 -4
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -4
- package/dist/components/DestinationTab/ui/DestinationTab.js +0 -75
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -31
- package/dist/components/DestinationTab/ui/DestinationTab.types.js +0 -6
- package/dist/components/FieldInput/index.d.ts +0 -1
- package/dist/components/FieldInput/index.js +0 -4
- package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -4
- package/dist/components/FieldInput/ui/FieldInput.js +0 -22
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -10
- package/dist/components/FieldInput/ui/FieldInput.types.js +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -44
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +0 -28
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -29
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +0 -9
- package/dist/components/Flex/index.d.ts +0 -1
- package/dist/components/Flex/index.js +0 -4
- package/dist/components/Flex/ui/Flex.d.ts +0 -3
- package/dist/components/Flex/ui/Flex.js +0 -68
- package/dist/components/Flex/ui/Flex.types.d.ts +0 -16
- package/dist/components/Flex/ui/Flex.types.js +0 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +0 -50
- package/dist/components/FormModal/ui/ModalForm.js +0 -30
- package/dist/components/FormModal/utils/reg.d.ts +0 -4
- package/dist/components/FormModal/utils/reg.js +0 -6
- package/dist/components/GroupedInput/index.d.ts +0 -1
- package/dist/components/GroupedInput/index.js +0 -4
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -3
- package/dist/components/GroupedInput/ui/GroupedInputs.js +0 -8
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -5
- package/dist/components/GroupedInput/ui/GroupedInputs.types.js +0 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.js +0 -4
- package/dist/components/Input/ui/Input.js +0 -3337
- package/dist/components/Input/ui/Input.types.d.ts +0 -26
- package/dist/components/Input/ui/Input.types.js +0 -9
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/Logo/index.js +0 -4
- package/dist/components/Logo/ui/Logo.d.ts +0 -3
- package/dist/components/Logo/ui/Logo.js +0 -63
- package/dist/components/Logo/ui/Logo.types.d.ts +0 -17
- package/dist/components/Logo/ui/Logo.types.js +0 -13
- package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -25
- package/dist/components/LotCard/hooks/useLotCard.js +0 -31
- package/dist/components/LotCard/index.d.ts +0 -1
- package/dist/components/LotCard/index.js +0 -4
- package/dist/components/LotCard/ui/LotCard.d.ts +0 -3
- package/dist/components/LotCard/ui/LotCard.js +0 -11
- package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -256
- package/dist/components/LotCard/ui/LotCard.types.js +0 -1
- package/dist/components/LotCard/utils/checkBedroomsCount.d.ts +0 -1
- package/dist/components/LotCard/utils/checkBedroomsCount.js +0 -20
- package/dist/components/LotCard/utils/const.d.ts +0 -8
- package/dist/components/LotCard/utils/const.js +0 -11
- package/dist/components/LotCard/utils/formatPrice.d.ts +0 -1
- package/dist/components/LotCard/utils/formatPrice.js +0 -11
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +0 -5
- package/dist/components/LotCard/utils/getTagsFeatures.js +0 -13
- package/dist/components/LotCard/utils/monthlyPayment.d.ts +0 -1
- package/dist/components/LotCard/utils/monthlyPayment.js +0 -4
- package/dist/components/LotCardSkeleton/index.d.ts +0 -1
- package/dist/components/LotCardSkeleton/index.js +0 -4
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +0 -5
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +0 -83
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -3
- package/dist/components/MetroLabel/ui/MetroLabel.js +0 -44
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -18
- package/dist/components/MetroLabel/ui/MetroLabel.types.js +0 -1
- package/dist/components/MetroTag/index.d.ts +0 -1
- package/dist/components/MetroTag/index.js +0 -4
- package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -3
- package/dist/components/MetroTag/ui/MetroTag.js +0 -142
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -31
- package/dist/components/MetroTag/ui/MetroTag.types.js +0 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Modal/index.js +0 -4
- package/dist/components/Modal/ui/Modal.d.ts +0 -4
- package/dist/components/Modal/ui/Modal.js +0 -77
- package/dist/components/Modal/ui/Modal.types.d.ts +0 -22
- package/dist/components/Modal/ui/Modal.types.js +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -3
- package/dist/components/ModalSuccess/ModalSuccess.js +0 -61
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -9
- package/dist/components/ModalSuccess/ModalSuccess.types.js +0 -1
- package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -4
- package/dist/components/NewIcon/icons/PinTrans.js +0 -6
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -4
- package/dist/components/NewIcon/icons/SmallFilter.js +0 -6
- package/dist/components/NewIcon/index.d.ts +0 -1
- package/dist/components/NewIcon/index.js +0 -4
- package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -16
- package/dist/components/NewIcon/ui/NewIcon.js +0 -314
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -8
- package/dist/components/NewIcon/ui/NewIcon.types.js +0 -1
- package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -4
- package/dist/components/NewIcon/ui/iconTypes.js +0 -60
- package/dist/components/ProjectCardSkeleton/index.d.ts +0 -1
- package/dist/components/ProjectCardSkeleton/index.js +0 -4
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +0 -1
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +0 -34
- package/dist/components/RoundButton/index.d.ts +0 -1
- package/dist/components/RoundButton/index.js +0 -4
- package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -4
- package/dist/components/RoundButton/ui/RoundButton.js +0 -73
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -30
- package/dist/components/RoundButton/ui/RoundButton.types.js +0 -16
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +0 -4
- package/dist/components/Select/model/selectMode.d.ts +0 -15
- package/dist/components/Select/model/selectMode.js +0 -49
- package/dist/components/Select/ui/Category.d.ts +0 -14
- package/dist/components/Select/ui/Category.js +0 -76
- package/dist/components/Select/ui/Option.d.ts +0 -14
- package/dist/components/Select/ui/Option.js +0 -7
- package/dist/components/Select/ui/Select.d.ts +0 -3
- package/dist/components/Select/ui/Select.js +0 -179
- package/dist/components/Select/ui/Select.types.d.ts +0 -59
- package/dist/components/Select/ui/Select.types.js +0 -1
- package/dist/components/SliderNavigation/index.d.ts +0 -3
- package/dist/components/SliderNavigation/index.js +0 -4
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -3
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +0 -65
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +0 -16
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.js +0 -1
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -29
- package/dist/components/SortSelect/hooks/useSortSelect.js +0 -6
- package/dist/components/SortSelect/index.d.ts +0 -1
- package/dist/components/SortSelect/index.js +0 -4
- package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -4
- package/dist/components/SortSelect/ui/SortSelect.js +0 -29
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -21
- package/dist/components/SortSelect/ui/SortSelect.types.js +0 -1
- package/dist/components/SummarySelect/index.d.ts +0 -1
- package/dist/components/SummarySelect/index.js +0 -4
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +0 -9
- package/dist/components/SummarySelect/ui/SummarySelect.js +0 -128
- package/dist/components/Switcher/index.d.ts +0 -1
- package/dist/components/Switcher/index.js +0 -4
- package/dist/components/Switcher/ui/Switcher.d.ts +0 -3
- package/dist/components/Switcher/ui/Switcher.js +0 -49
- package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -8
- package/dist/components/Switcher/ui/Switcher.types.js +0 -1
- package/dist/components/TabSelect/index.d.ts +0 -1
- package/dist/components/TabSelect/index.js +0 -4
- package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -27
- package/dist/components/TabSelect/ui/TabSelect.js +0 -49
- package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
- package/dist/components/TabSelect/ui/TabSelect.types.js +0 -1
- package/dist/components/TabSwitcher/index.d.ts +0 -1
- package/dist/components/TabSwitcher/index.js +0 -4
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +0 -6
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +0 -28
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -34
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.js +0 -1
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/Tag/index.js +0 -4
- package/dist/components/Tag/ui/Tag.d.ts +0 -4
- package/dist/components/Tag/ui/Tag.js +0 -79
- package/dist/components/Tag/ui/Tag.types.d.ts +0 -33
- package/dist/components/Tag/ui/Tag.types.js +0 -20
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -4
- package/dist/components/Text/ui/Text.d.ts +0 -3
- package/dist/components/Text/ui/Text.js +0 -22
- package/dist/components/Text/ui/Text.types.d.ts +0 -10
- package/dist/components/Text/ui/Text.types.js +0 -1
- package/dist/components/TextArea/TextArea.js +0 -20
- package/dist/components/TextArea/TextArea.types.d.ts +0 -11
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/components/ZoomControls/index.d.ts +0 -1
- package/dist/components/ZoomControls/index.js +0 -4
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -3
- package/dist/components/ZoomControls/ui/ZoomControls.js +0 -31
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -7
- package/dist/components/ZoomControls/ui/ZoomControls.types.js +0 -1
- package/dist/components/mobileButton/index.d.ts +0 -1
- package/dist/components/mobileButton/index.js +0 -4
- package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -4
- package/dist/components/mobileButton/ui/MobileButton.js +0 -64
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -24
- package/dist/components/mobileButton/ui/MobileButton.types.js +0 -6
- package/dist/index-rKuIKazb.js +0 -45
- package/dist/shared/checkLargeOffice.d.ts +0 -3
- package/dist/shared/checkLargeOffice.js +0 -12
- package/dist/shared/deepEqual.d.ts +0 -1
- package/dist/shared/deepEqual.js +0 -16
- package/dist/shared/useClientWidth.d.ts +0 -8
- package/dist/shared/useClientWidth.js +0 -14
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
package/dist/main.d.ts
CHANGED
|
@@ -1,33 +1,956 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { Dispatch } from 'react';
|
|
5
|
+
import { FC } from 'react';
|
|
6
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
7
|
+
import { Input } from './ui/Input';
|
|
8
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
import { RefAttributes } from 'react';
|
|
11
|
+
import { SetStateAction } from 'react';
|
|
12
|
+
|
|
13
|
+
declare type BaseInputProps = JSX.IntrinsicElements['input'] & TBtn;
|
|
14
|
+
|
|
15
|
+
declare type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
16
|
+
|
|
17
|
+
declare type btnSizes_2 = 'small';
|
|
18
|
+
|
|
19
|
+
declare type btnSizes_3 = 'large' | 'medium' | 'small' | 'tiny';
|
|
20
|
+
|
|
21
|
+
declare type btnVariant = keyof typeof BUTTON_VARIANTS;
|
|
22
|
+
|
|
23
|
+
declare type btnWidth = 'auto' | 'full';
|
|
24
|
+
|
|
25
|
+
declare type btnWidth_2 = 'auto' | 'full';
|
|
26
|
+
|
|
27
|
+
export declare const Button: ({ size, size_m, size_l, onCLick, pre, children, post, variant, width, additionalClass, isLoading, ...props }: default_2.PropsWithChildren<ComponentProps>) => JSX_2.Element;
|
|
28
|
+
|
|
29
|
+
declare const BUTTON_VARIANTS: {
|
|
30
|
+
blue: string;
|
|
31
|
+
gray: string;
|
|
32
|
+
whiteStroke: string;
|
|
33
|
+
sokolniki: string;
|
|
34
|
+
black: string;
|
|
35
|
+
whiteFilled: string;
|
|
36
|
+
shade: string;
|
|
37
|
+
volodiyaLight: string;
|
|
38
|
+
lightBlue: string;
|
|
39
|
+
transparent: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare interface ButtonProps {
|
|
43
|
+
size?: btnSizes;
|
|
44
|
+
size_m?: btnSizes;
|
|
45
|
+
size_l?: btnSizes;
|
|
46
|
+
pre?: ReactNode;
|
|
47
|
+
post?: ReactNode;
|
|
48
|
+
children?: string | ReactNode;
|
|
49
|
+
variant?: btnVariant;
|
|
50
|
+
width?: btnWidth;
|
|
51
|
+
additionalClass?: string;
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
as?: 'button' | 'link';
|
|
54
|
+
onCLick?: () => any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare const CheckBox: CheckBoxComponent;
|
|
58
|
+
|
|
59
|
+
declare type CheckBoxComponent = ForwardRefExoticComponent<CheckBoxProps & RefAttributes<HTMLInputElement>>;
|
|
60
|
+
|
|
61
|
+
export declare const CheckBoxNew: ForwardRefExoticComponent<Props & RefAttributes<HTMLInputElement>>;
|
|
62
|
+
|
|
63
|
+
declare interface CheckBoxProps {
|
|
64
|
+
children?: ReactNode;
|
|
65
|
+
isChecked: boolean | undefined;
|
|
66
|
+
error?: boolean;
|
|
67
|
+
modifierClassesStyle?: string[];
|
|
68
|
+
emitIsChecked?: (isChecked: boolean) => void;
|
|
69
|
+
onClick?: () => void;
|
|
70
|
+
variant?: CheckBoxVariant;
|
|
71
|
+
size_s?: boolean;
|
|
72
|
+
size_l?: boolean;
|
|
73
|
+
size_m?: boolean;
|
|
74
|
+
text?: string;
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare const CheckboxSelect: React.FC<ICheckboxSelectProps>;
|
|
79
|
+
|
|
80
|
+
declare type CheckBoxVariant = 'light' | 'dark';
|
|
81
|
+
|
|
82
|
+
declare type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
83
|
+
as?: 'button';
|
|
84
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
85
|
+
as?: 'link';
|
|
86
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
87
|
+
|
|
88
|
+
declare type ComponentProps_2 = MobileButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
89
|
+
as?: 'button';
|
|
90
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
91
|
+
as: 'link';
|
|
92
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
93
|
+
|
|
94
|
+
declare type ComponentProps_3 = IDestinationProps & React.ButtonHTMLAttributes<HTMLLabelElement>;
|
|
95
|
+
|
|
96
|
+
declare type ComponentProps_4 = IRoundButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
97
|
+
|
|
98
|
+
declare type ComponentProps_5 = TagProps & React.HTMLAttributes<HTMLDivElement>;
|
|
99
|
+
|
|
100
|
+
declare type ComponentProps_6 = InputProps & default_2.InputHTMLAttributes<HTMLInputElement>;
|
|
101
|
+
|
|
102
|
+
export declare const deepEqual: (obj1: any, obj2: any) => boolean;
|
|
103
|
+
|
|
104
|
+
declare const DESTINATIONS_VARIANTS: {
|
|
105
|
+
whiteStroke: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare type destinationSizes = 'large' | 'medium';
|
|
109
|
+
|
|
110
|
+
declare type destinationSizesVariant = keyof typeof DESTINATIONS_VARIANTS;
|
|
111
|
+
|
|
112
|
+
declare type destinationSizesWidth = 'auto' | 'full';
|
|
113
|
+
|
|
114
|
+
export declare const DestinationTab: ({ size, size_m, size_l, destination, variant, width, routes, checked, onChange, additionalClass, ...props }: default_2.PropsWithChildren<ComponentProps_3>) => JSX_2.Element;
|
|
115
|
+
|
|
116
|
+
export declare const FieldInput: ({ label, handleClear, isShowClear, children }: default_2.PropsWithChildren<ComponentProps_6>) => JSX_2.Element;
|
|
117
|
+
|
|
118
|
+
export declare const FilterWithSave: ({ disabledOptions, tabs, selectOptions, onChange, onClick, selectedValues, setSelectedTabs, selectedTabs, onClickItem, onCLickSelect, onSaveClick, onClearClick, onTabClick, btnName, }: IFilterWithSave) => JSX_2.Element;
|
|
119
|
+
|
|
120
|
+
export declare const Flex: ({ className, children, jc, ai, gap, fd, w, additionalClass, ...rest }: IFlexProps) => JSX_2.Element;
|
|
121
|
+
|
|
122
|
+
export declare const GroupedInputs: ({ children, addClassName }: RangeInputsProps) => JSX_2.Element;
|
|
123
|
+
|
|
124
|
+
declare type IAlignItems = 'start' | 'end' | 'center' | 'stretch';
|
|
125
|
+
|
|
126
|
+
declare interface ICheckboxSelectProps {
|
|
127
|
+
label?: string;
|
|
128
|
+
checkboxes: {
|
|
129
|
+
label: string;
|
|
130
|
+
isSelected: boolean;
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
setValue: () => void;
|
|
133
|
+
}[];
|
|
134
|
+
addClassname?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare type IconComponentProps = {
|
|
138
|
+
name: keyof typeof iconTypes;
|
|
139
|
+
size?: string;
|
|
140
|
+
color?: string;
|
|
141
|
+
additionalClass?: string;
|
|
142
|
+
deg?: string;
|
|
143
|
+
strokeWidth?: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
declare type IconTypes = {
|
|
147
|
+
[name: string]: ReactSVGComponent;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
declare const iconTypes: IconTypes;
|
|
151
|
+
|
|
152
|
+
declare interface IDestinationProps {
|
|
153
|
+
size?: destinationSizes;
|
|
154
|
+
size_m?: destinationSizes;
|
|
155
|
+
size_l?: destinationSizes;
|
|
156
|
+
checked?: boolean;
|
|
157
|
+
destination?: {
|
|
158
|
+
destName?: string;
|
|
159
|
+
color?: string;
|
|
160
|
+
};
|
|
161
|
+
routes?: {
|
|
162
|
+
type?: ReactNode;
|
|
163
|
+
text?: string;
|
|
164
|
+
}[];
|
|
165
|
+
onChange?: () => void;
|
|
166
|
+
children?: string | ReactNode;
|
|
167
|
+
variant?: destinationSizesVariant;
|
|
168
|
+
width?: destinationSizesWidth;
|
|
169
|
+
additionalClass?: string;
|
|
170
|
+
isLoading?: boolean;
|
|
171
|
+
as?: 'button' | 'link';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare interface IFeatures {
|
|
175
|
+
category: string | null;
|
|
176
|
+
icoImg: {
|
|
177
|
+
attributes: {
|
|
178
|
+
url: string;
|
|
179
|
+
};
|
|
180
|
+
} | null;
|
|
181
|
+
slug: string | null;
|
|
182
|
+
val: string | null;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare interface IFilterWithSave {
|
|
186
|
+
selectOptions?: TOption[];
|
|
187
|
+
disabledOptions?: TOption[];
|
|
188
|
+
selectedValues?: TOption[];
|
|
189
|
+
onSaveClick?: () => void;
|
|
190
|
+
onClearClick?: () => void;
|
|
191
|
+
onTabClick?: () => void;
|
|
192
|
+
tabs?: {
|
|
193
|
+
value: string;
|
|
194
|
+
state: boolean;
|
|
195
|
+
}[];
|
|
196
|
+
selectedTabs?: {
|
|
197
|
+
value: string;
|
|
198
|
+
state: boolean;
|
|
199
|
+
}[];
|
|
200
|
+
setSelectedTabs?: React.Dispatch<React.SetStateAction<{
|
|
201
|
+
value: string;
|
|
202
|
+
state: boolean;
|
|
203
|
+
}[]>>;
|
|
204
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
205
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
206
|
+
onCLickSelect?: () => void;
|
|
207
|
+
onClick?: () => void;
|
|
208
|
+
btnName?: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare type IFlex = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16';
|
|
212
|
+
|
|
213
|
+
declare type IFlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
214
|
+
|
|
215
|
+
declare interface IFlexProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
216
|
+
className?: string;
|
|
217
|
+
jc?: IJustifyContent;
|
|
218
|
+
ai?: IAlignItems;
|
|
219
|
+
gap?: IFlex;
|
|
220
|
+
fd?: IFlexDirection;
|
|
221
|
+
w?: IFlexWrap;
|
|
222
|
+
additionalClass?: string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare type IFlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
226
|
+
|
|
227
|
+
declare type IFormPageInputs = {
|
|
228
|
+
phone: string;
|
|
229
|
+
name: string;
|
|
230
|
+
email?: string;
|
|
231
|
+
personalCheckBox: boolean;
|
|
232
|
+
advCheckBox?: boolean;
|
|
233
|
+
textarea?: string;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
declare interface IGeo {
|
|
237
|
+
lat: string | null;
|
|
238
|
+
lon: string | null;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
declare type IJustifyContent = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
242
|
+
|
|
243
|
+
declare interface ILogoProps {
|
|
244
|
+
uk?: boolean;
|
|
245
|
+
variant?: 'black' | 'white' | 'value' | 'dom' | 'office' | 'newOffice' | 'newDom' | 'realty';
|
|
246
|
+
between?: boolean;
|
|
247
|
+
addClassName?: string;
|
|
248
|
+
onClick?: () => void;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare interface ILot {
|
|
252
|
+
/** id Лота */
|
|
253
|
+
id: number | string;
|
|
254
|
+
/** Название проекта */
|
|
255
|
+
name?: string | null;
|
|
256
|
+
/** Квартал сдачи */
|
|
257
|
+
buildingQuarter?: number | null;
|
|
258
|
+
/** uuid Лота из 1с */
|
|
259
|
+
lotUuid: string;
|
|
260
|
+
projectUuid: string | null;
|
|
261
|
+
/** Скидка */
|
|
262
|
+
discount: string | null;
|
|
263
|
+
/** Стоимость объекта недвижимости до скидки */
|
|
264
|
+
sellingPriceBeforeDiscount: string | null;
|
|
265
|
+
/** Стоимость объекта недвижимости */
|
|
266
|
+
sellingPrice: string | null;
|
|
267
|
+
/**id проекта */
|
|
268
|
+
projectId: number | null;
|
|
269
|
+
/** Показывать цену или "цена по запросу" */
|
|
270
|
+
showPriceFlg: boolean | null;
|
|
271
|
+
/** Цена за квм */
|
|
272
|
+
sellingPricePerMeter: string | null;
|
|
273
|
+
/** цена за метра квадратный за год за аренду */
|
|
274
|
+
rentPricePerMeterPerYear: string | null;
|
|
275
|
+
/** аренда за месяц */
|
|
276
|
+
rentPricePerMonth: string | null;
|
|
277
|
+
/** Размер скидки */
|
|
278
|
+
discountVolume: number | null;
|
|
279
|
+
/** Цена со скидкой */
|
|
280
|
+
discountedPrice: number | null;
|
|
281
|
+
/** дата освобождения лота */
|
|
282
|
+
availableFrom: string | null;
|
|
283
|
+
/** дата, до которой должны быть выданы ключи */
|
|
284
|
+
handoverKeys: string | null;
|
|
285
|
+
/** состояние лота: свободен, зарезервирован, продан, сдан в аренду, заблокирован, деактивирован */
|
|
286
|
+
status: number | null;
|
|
287
|
+
/** Статус аренды лота */
|
|
288
|
+
rentStatus: number | null;
|
|
289
|
+
/** название лота в 1С */
|
|
290
|
+
number: string | null;
|
|
291
|
+
/** полный адрес лота (с корпусом) */
|
|
292
|
+
address: string | null;
|
|
293
|
+
/** Тип помещения => Квартиры/Пентхаусы/Келлеры/Паркинг Офисы/Ритейл/Офисные Блоки/Паркинг */
|
|
294
|
+
type: number | null;
|
|
295
|
+
/** Название помещения => Квартиры/Пентхаусы/Келлеры/Паркинг Офисы/Ритейл/Офисные Блоки/Паркинг */
|
|
296
|
+
typeName: number | null;
|
|
297
|
+
/** направления, по которым продвигается этот лот */
|
|
298
|
+
direction: number | null;
|
|
299
|
+
/** Размерность спален S/M/L */
|
|
300
|
+
typeSizeCode: string | null;
|
|
301
|
+
/** номер подъезда/секции */
|
|
302
|
+
entrance: string | null;
|
|
303
|
+
/** Номер квартиры / офиса */
|
|
304
|
+
doorNumber: string | null;
|
|
305
|
+
/** Площадь квартиры */
|
|
306
|
+
area: string | null;
|
|
307
|
+
/** площадь кухни */
|
|
308
|
+
kitchenArea: number | null;
|
|
309
|
+
/** Жилая площадь */
|
|
310
|
+
livingArea: number | null;
|
|
311
|
+
/** Кол-во этажей */
|
|
312
|
+
floorsNumber: number | null;
|
|
313
|
+
/** Этаж */
|
|
314
|
+
floor: number | null;
|
|
315
|
+
/** Высота потолков */
|
|
316
|
+
ceiling: string | null;
|
|
317
|
+
/** Последний этаж лота */
|
|
318
|
+
/** Этаж, с которого начинаются продаваемые лоты */
|
|
319
|
+
saleFloorMin: number | null;
|
|
320
|
+
/** Этаж, на котором заканчиваются продаваемые лоты */
|
|
321
|
+
saleFloorMax: number | null;
|
|
322
|
+
/** Первый этаж большого лота/здания */
|
|
323
|
+
beginFloor: number | null;
|
|
324
|
+
/** Последний этаж большого лота/здания */
|
|
325
|
+
endFloor: number | null;
|
|
326
|
+
/** Ежемясячный платеж */
|
|
327
|
+
mortgageMonthlyPayment?: string;
|
|
328
|
+
/** Количество комнат */
|
|
329
|
+
roomsCount: number | null;
|
|
330
|
+
/** Количество спален */
|
|
331
|
+
bedroomsCount?: number | null;
|
|
332
|
+
/** Корпус */
|
|
333
|
+
housing: string | null;
|
|
334
|
+
/** Секция */
|
|
335
|
+
section: string | null;
|
|
336
|
+
/** Очередь строительства */
|
|
337
|
+
buildStage: number | null;
|
|
338
|
+
/** угловое? */
|
|
339
|
+
isCorner: boolean | null;
|
|
340
|
+
/** Квартира с террасой */
|
|
341
|
+
terrace: boolean | null;
|
|
342
|
+
/** общепит? */
|
|
343
|
+
isCatering: boolean | null;
|
|
344
|
+
pdfPresentation: string | null;
|
|
345
|
+
/** является ли лот отдельно стоящим зданием */
|
|
346
|
+
isDetachedBuilding: boolean | null;
|
|
347
|
+
/** Наличие телефона */
|
|
348
|
+
isPhone: boolean | null;
|
|
349
|
+
/** в ипотеку */
|
|
350
|
+
isMortgage: boolean | null;
|
|
351
|
+
/** мусоропровод */
|
|
352
|
+
isGarbageTube: boolean | null;
|
|
353
|
+
/** Является ли лот пентхаусом */
|
|
354
|
+
isPenthouse: boolean | null;
|
|
355
|
+
/** Является ли лот апартаментом */
|
|
356
|
+
isApart: boolean | null;
|
|
357
|
+
/** Является ли лот двухуровневым */
|
|
358
|
+
isDoubleLevel: boolean | null;
|
|
359
|
+
/** Есть ли пандус */
|
|
360
|
+
isRamp: boolean | null;
|
|
361
|
+
/** Близко ли вход к лифтовой группе */
|
|
362
|
+
isCloseToLift: boolean | null;
|
|
363
|
+
/** Занят ли лот */
|
|
364
|
+
isOccupied: boolean | null;
|
|
365
|
+
/** Является ли лот ГАБ */
|
|
366
|
+
isGab: boolean | null;
|
|
367
|
+
/** Есть ли отделка */
|
|
368
|
+
isFacing: boolean | null;
|
|
369
|
+
/** Особенности квартиры */
|
|
370
|
+
features: IFeatures[] | null;
|
|
371
|
+
/** Количество пассажирских лифтов */
|
|
372
|
+
liftPassenger: number | null;
|
|
373
|
+
/** Количество грузовых лифтов */
|
|
374
|
+
liftService?: number | null;
|
|
375
|
+
/** Количество балконов */
|
|
376
|
+
balcony: number | null;
|
|
377
|
+
/** Количество лоджий */
|
|
378
|
+
loggia: number | null;
|
|
379
|
+
/** Состояние помещения */
|
|
380
|
+
condition: string | null;
|
|
381
|
+
/** Тип входа в помещений */
|
|
382
|
+
inputType?: string | null;
|
|
383
|
+
/** Отделка */
|
|
384
|
+
decoration: string | null;
|
|
385
|
+
/** Тип планировки */
|
|
386
|
+
layout: string | null;
|
|
387
|
+
/** Тип ремонта */
|
|
388
|
+
repairType: string | null;
|
|
389
|
+
slug: string;
|
|
390
|
+
/** количество стояков с водой */
|
|
391
|
+
waterPipesCount: number[] | null;
|
|
392
|
+
/** количество рабочих мест */
|
|
393
|
+
workPlacesCount: number | null;
|
|
394
|
+
/** Количество совместных санузлов */
|
|
395
|
+
combinedWcsCount: number | null;
|
|
396
|
+
/** Возможное назначение */
|
|
397
|
+
speciality: number | null;
|
|
398
|
+
/** Куда выходят витрины */
|
|
399
|
+
showcaseWindows: string | null;
|
|
400
|
+
/** Вид из окна */
|
|
401
|
+
windowView: string | null;
|
|
402
|
+
/** Виды/выходы для типа ритейл */
|
|
403
|
+
windowViews: string[];
|
|
404
|
+
/** Promo метки */
|
|
405
|
+
promo: ILotPromo[] | null;
|
|
406
|
+
/** Promo текст */
|
|
407
|
+
promoText: string | null;
|
|
408
|
+
/** Ссылка на картинку */
|
|
409
|
+
interiorPlanImg?: string | null;
|
|
410
|
+
/** Ссылка на картинку */
|
|
411
|
+
floorPlanImg: string | null;
|
|
412
|
+
/** Ссылка на картинку */
|
|
413
|
+
sitPlanImg: string | null;
|
|
414
|
+
/** Дата создания */
|
|
415
|
+
createdAt?: string;
|
|
416
|
+
/** Дата обновления */
|
|
417
|
+
updatedAt?: string;
|
|
418
|
+
/** Первоначальный взнос */
|
|
419
|
+
firstPaymentSum?: string;
|
|
420
|
+
/** Массив с лотами в фоисных блоках */
|
|
421
|
+
childLots?: {
|
|
422
|
+
id: number;
|
|
423
|
+
floor: number;
|
|
424
|
+
floorPlanImg: string;
|
|
425
|
+
interiorPlanImg: string;
|
|
426
|
+
}[];
|
|
427
|
+
cornerKitchenLiving?: boolean | null;
|
|
428
|
+
recommended?: ILot[] | null;
|
|
429
|
+
parking?: ILot[] | null;
|
|
430
|
+
project?: IProject | null;
|
|
431
|
+
isWaterPipes?: boolean | null;
|
|
432
|
+
azimuthAngle?: number | null;
|
|
433
|
+
isDecoration?: boolean | null;
|
|
434
|
+
subTypeName: string;
|
|
435
|
+
subType?: number;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare interface ILotCard {
|
|
439
|
+
lot: ILot;
|
|
440
|
+
btnName?: string;
|
|
441
|
+
btnDisabled?: boolean;
|
|
442
|
+
handleBtnForm: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
443
|
+
handleFullScreenBtn?: () => void;
|
|
444
|
+
addClassname?: string;
|
|
445
|
+
addClassnameLotImage?: string;
|
|
446
|
+
imgNode?: React.ReactNode;
|
|
447
|
+
rowConditions?: boolean;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
declare interface ILotCardSkeleton {
|
|
451
|
+
isProjectCard?: boolean;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
declare interface ILotPromo {
|
|
455
|
+
/** Промо текст */
|
|
456
|
+
val: string;
|
|
457
|
+
/** Идентификатор */
|
|
458
|
+
slug: string;
|
|
459
|
+
/** Категория */
|
|
460
|
+
category: string;
|
|
461
|
+
/** Ссылка на иконку */
|
|
462
|
+
icoImg: string;
|
|
463
|
+
/** hex цвет */
|
|
464
|
+
color: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare interface IMetro {
|
|
468
|
+
name: string | null;
|
|
469
|
+
color: string | null;
|
|
470
|
+
station: string | null;
|
|
471
|
+
timeTo: string | null;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
475
|
+
metro: {
|
|
476
|
+
name?: string;
|
|
477
|
+
station?: string;
|
|
478
|
+
color?: string;
|
|
479
|
+
timeTo?: number;
|
|
480
|
+
mode?: string;
|
|
481
|
+
selfIconText?: string | undefined;
|
|
482
|
+
icon?: string;
|
|
483
|
+
} | {
|
|
484
|
+
name?: string;
|
|
485
|
+
station?: string;
|
|
486
|
+
color?: string;
|
|
487
|
+
timeTo?: number;
|
|
488
|
+
mode?: string;
|
|
489
|
+
selfIconText?: string | undefined;
|
|
490
|
+
icon?: string;
|
|
491
|
+
}[];
|
|
492
|
+
separatorColor?: string;
|
|
493
|
+
variant?: 'default' | 'transparent' | 'mini';
|
|
494
|
+
addClassName?: string;
|
|
495
|
+
addClassNameColor?: string;
|
|
496
|
+
addClassNameTimeTo?: string;
|
|
497
|
+
isBetween?: boolean;
|
|
498
|
+
width?: TagWidth;
|
|
499
|
+
withBg?: boolean;
|
|
500
|
+
withWhiteBg?: boolean;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare interface IModalFormProps {
|
|
504
|
+
isFormOpen: boolean;
|
|
505
|
+
setIsFormOpen: (isOpen: boolean) => void;
|
|
506
|
+
submitHandler: (data: IFormPageInputs) => void;
|
|
507
|
+
blurHandler?: ({ e, analyticParams }: {
|
|
508
|
+
e: unknown;
|
|
509
|
+
analyticParams: {
|
|
510
|
+
action_element: string;
|
|
511
|
+
action_element_status: 'error' | 'success';
|
|
512
|
+
block_name?: string;
|
|
513
|
+
};
|
|
514
|
+
}) => void;
|
|
515
|
+
modalWidth?: string;
|
|
516
|
+
isPhone?: boolean;
|
|
517
|
+
title: string;
|
|
518
|
+
isEmail?: boolean;
|
|
519
|
+
telegramLink?: string;
|
|
520
|
+
isTextArea?: boolean;
|
|
521
|
+
subTitle: string;
|
|
522
|
+
advCheckBox?: {
|
|
523
|
+
text: string;
|
|
524
|
+
isRequired: boolean;
|
|
525
|
+
} | undefined | null;
|
|
526
|
+
textAreaPlaceholder?: string;
|
|
527
|
+
rowsTextArea?: number;
|
|
528
|
+
isRequiredPhone?: boolean;
|
|
529
|
+
isNews?: boolean;
|
|
530
|
+
isRequiredEmail?: boolean;
|
|
531
|
+
isRequiredPhoneOrEmail?: boolean;
|
|
532
|
+
isAdvCheckBox?: boolean;
|
|
533
|
+
telegramClickHandler?: () => void;
|
|
534
|
+
addTitleClassName?: string;
|
|
535
|
+
block_name?: string;
|
|
536
|
+
createPortalObj?: {
|
|
537
|
+
domNode: HTMLElement | null;
|
|
538
|
+
key?: string | null | undefined;
|
|
539
|
+
};
|
|
540
|
+
emitCheckBox?: () => void;
|
|
541
|
+
emitAdvCheckBox?: () => void;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
declare interface IModalProps {
|
|
545
|
+
isOpen: boolean;
|
|
546
|
+
emitIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
547
|
+
additionalClass?: string;
|
|
548
|
+
additionalClassOverlay?: string;
|
|
549
|
+
additionalClassModalBody?: string;
|
|
550
|
+
children?: React.ReactNode;
|
|
551
|
+
isTransparentBack?: boolean;
|
|
552
|
+
isClickOutside?: boolean;
|
|
553
|
+
leaveDisableScroll?: boolean;
|
|
554
|
+
notDisableScroll?: boolean;
|
|
555
|
+
createPortalObj?: {
|
|
556
|
+
domNode: HTMLElement | null;
|
|
557
|
+
key?: string | null | undefined;
|
|
558
|
+
};
|
|
559
|
+
opacity?: number;
|
|
560
|
+
colorOverlay?: string;
|
|
561
|
+
modalBodyRef?: React.RefObject<HTMLDivElement> | null;
|
|
562
|
+
additionalStylesModalBody?: React.CSSProperties;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare interface IModalSuccess {
|
|
566
|
+
isSuccessOpen: boolean;
|
|
567
|
+
setIsSuccess: React.Dispatch<React.SetStateAction<boolean>>;
|
|
568
|
+
createPortalObj?: {
|
|
569
|
+
domNode: HTMLElement | null;
|
|
570
|
+
key?: string | null | undefined;
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export { Input }
|
|
575
|
+
|
|
576
|
+
declare interface InputProps {
|
|
577
|
+
label: string;
|
|
578
|
+
handleClear?: () => void;
|
|
579
|
+
children?: ReactNode;
|
|
580
|
+
isShowClear?: boolean;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
declare interface IProject {
|
|
584
|
+
address: string | null;
|
|
585
|
+
buildingYear: number | null;
|
|
586
|
+
createdAt: string | null;
|
|
587
|
+
direction: number | null;
|
|
588
|
+
features: IFeatures[] | null;
|
|
589
|
+
geo: IGeo | null;
|
|
590
|
+
id: number;
|
|
591
|
+
logoImg: string | null;
|
|
592
|
+
metro: IMetro[];
|
|
593
|
+
name: string;
|
|
594
|
+
project: string;
|
|
595
|
+
shortDesc: string;
|
|
596
|
+
sitPlanImg: string;
|
|
597
|
+
sort: number;
|
|
598
|
+
sortOffice: number | null;
|
|
599
|
+
sortRetail: number | null;
|
|
600
|
+
updatedAt: string;
|
|
601
|
+
buildingQuarter: number;
|
|
602
|
+
projectUuid: string;
|
|
603
|
+
portalUuid: string;
|
|
604
|
+
location: string;
|
|
605
|
+
showPriceFlg: boolean | null;
|
|
606
|
+
lotsCount: number | null;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare interface IRoundButtonProps {
|
|
610
|
+
size?: btnSizes_3;
|
|
611
|
+
size_m?: btnSizes_3;
|
|
612
|
+
size_l?: btnSizes_3;
|
|
613
|
+
children?: string | ReactNode;
|
|
614
|
+
variant?: roundBtnVariant;
|
|
615
|
+
additionalClass?: string;
|
|
616
|
+
additionalClassIcon?: string;
|
|
617
|
+
iconName?: string;
|
|
618
|
+
deg?: string;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare interface ISliderNavigation {
|
|
622
|
+
indexSlide: number;
|
|
623
|
+
goPrev: () => void;
|
|
624
|
+
goNext: () => void;
|
|
625
|
+
arr: Array<unknown>;
|
|
626
|
+
additionalClassTag?: string;
|
|
627
|
+
additionalClassNavButton?: string;
|
|
628
|
+
navigationClassName?: string;
|
|
629
|
+
isNeedTag?: boolean;
|
|
630
|
+
isDisabledOff?: boolean;
|
|
631
|
+
size?: Sizes;
|
|
632
|
+
size_m?: Sizes;
|
|
633
|
+
size_l?: Sizes;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
declare interface ISummarySelectProps extends MultiSelectProps {
|
|
637
|
+
label?: string;
|
|
638
|
+
isShowReset?: boolean;
|
|
639
|
+
isLast?: boolean;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare interface ISwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
643
|
+
children?: React.ReactNode;
|
|
644
|
+
isActive?: boolean;
|
|
645
|
+
onClick?: () => void;
|
|
646
|
+
isReverse?: boolean;
|
|
647
|
+
isBetween?: boolean;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare interface ITabSelect {
|
|
651
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
652
|
+
variant?: SwitcherVariant;
|
|
653
|
+
classname?: string;
|
|
654
|
+
isRound?: boolean;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
declare interface ITabSwitcherItem extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
658
|
+
addItemClassName?: string;
|
|
659
|
+
addTextClass?: string;
|
|
660
|
+
addLabelClassname?: string;
|
|
661
|
+
index: number;
|
|
662
|
+
isDisabled?: boolean;
|
|
663
|
+
itemsLength: number;
|
|
664
|
+
width?: string;
|
|
665
|
+
width_m?: string;
|
|
666
|
+
mini?: boolean;
|
|
667
|
+
width_l?: string;
|
|
668
|
+
children?: ReactNode;
|
|
669
|
+
isLongOn?: boolean;
|
|
670
|
+
size_s?: TabSizes;
|
|
671
|
+
size_m?: TabSizes;
|
|
672
|
+
size_l?: TabSizes;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare interface ITextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
676
|
+
children?: React.ReactNode | 'string';
|
|
677
|
+
className?: string;
|
|
678
|
+
additionalClass?: string;
|
|
679
|
+
html?: string;
|
|
680
|
+
html_l?: string;
|
|
681
|
+
html_m?: string;
|
|
682
|
+
html_s?: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare interface IZoomControls {
|
|
686
|
+
size?: btnSizes_3;
|
|
687
|
+
zoomIn: () => void;
|
|
688
|
+
zoomOut: () => void;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export declare const Logo: ({ uk, variant, between, addClassName, onClick, }: ILogoProps) => JSX_2.Element;
|
|
692
|
+
|
|
693
|
+
export declare const LotCard: ({ lot, handleBtnForm, handleFullScreenBtn, btnDisabled, addClassname, btnName, imgNode, rowConditions, addClassnameLotImage, }: ILotCard) => JSX_2.Element | null;
|
|
694
|
+
|
|
695
|
+
export declare const LotCardSkeleton: ({ isProjectCard }: ILotCardSkeleton) => JSX_2.Element;
|
|
696
|
+
|
|
697
|
+
export declare const MetroTag: ({ addClassName, addClassNameColor, addClassNameTimeTo, metro, separatorColor, width, variant, isBetween, withBg, withWhiteBg, ...rest }: IMetroTagProps) => JSX_2.Element;
|
|
698
|
+
|
|
699
|
+
declare const MOBILE_BUTTON_VARIANTS: {
|
|
700
|
+
whiteFilled: string;
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
declare type mobileBtnVariant = keyof typeof MOBILE_BUTTON_VARIANTS;
|
|
704
|
+
|
|
705
|
+
export declare const MobileButton: ({ size, pre, children, post, variant, width, additionalClass, ...props }: default_2.PropsWithChildren<ComponentProps_2>) => JSX_2.Element;
|
|
706
|
+
|
|
707
|
+
declare interface MobileButtonProps {
|
|
708
|
+
size?: btnSizes_2;
|
|
709
|
+
pre?: ReactNode;
|
|
710
|
+
post?: ReactNode;
|
|
711
|
+
children?: string;
|
|
712
|
+
variant?: mobileBtnVariant;
|
|
713
|
+
width?: btnWidth_2;
|
|
714
|
+
additionalClass?: string;
|
|
715
|
+
as?: 'button' | 'link';
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export declare const Modal: FC<IModalProps>;
|
|
719
|
+
|
|
720
|
+
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj, telegramClickHandler, blurHandler, block_name, emitCheckBox, emitAdvCheckBox, }: IModalFormProps) => JSX_2.Element | null;
|
|
721
|
+
|
|
722
|
+
export declare const ModalSuccess: ({ isSuccessOpen, setIsSuccess, createPortalObj }: IModalSuccess) => JSX_2.Element;
|
|
723
|
+
|
|
724
|
+
declare interface MultiSelectProps {
|
|
725
|
+
options: TOption[] | TCategory[];
|
|
726
|
+
category?: TCategory[];
|
|
727
|
+
placeholder?: string;
|
|
728
|
+
error?: boolean;
|
|
729
|
+
disabled?: boolean;
|
|
730
|
+
size_s?: SelectSizes;
|
|
731
|
+
size_m?: SelectSizes;
|
|
732
|
+
size_l?: SelectSizes;
|
|
733
|
+
/**
|
|
734
|
+
* Доп стили для родителя-контейнера
|
|
735
|
+
*/
|
|
736
|
+
additionalClass?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Доп стили для каждой опции
|
|
739
|
+
*/
|
|
740
|
+
additionalClassOption?: string;
|
|
741
|
+
/**
|
|
742
|
+
* Доп стили для кнопки-контейнера
|
|
743
|
+
*/
|
|
744
|
+
additionalClassBtn?: string;
|
|
745
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
746
|
+
onBlur?: (selectedOptions: TOption[]) => unknown;
|
|
747
|
+
selectedValues?: TOption[];
|
|
748
|
+
isBtn?: boolean;
|
|
749
|
+
btnName?: string;
|
|
750
|
+
widthBtn?: string;
|
|
751
|
+
widthOptionList?: string;
|
|
752
|
+
isListRight?: boolean;
|
|
753
|
+
isLast?: boolean;
|
|
754
|
+
/**
|
|
755
|
+
* Список опций которые будут задизейблены по умолчанию
|
|
756
|
+
*/
|
|
757
|
+
disabledOptions?: TOption[];
|
|
758
|
+
/**
|
|
759
|
+
* Список опций которые доступны для клика
|
|
760
|
+
*/
|
|
761
|
+
clickableOptions?: (string | undefined)[];
|
|
762
|
+
sizeIcon?: string;
|
|
763
|
+
mode?: TModeSelect;
|
|
764
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
765
|
+
onCLickSelect?: () => void;
|
|
766
|
+
isDisabledNotClickable?: boolean;
|
|
767
|
+
customPlaceholder?: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export declare const NewIcon: ({ name, size, color, strokeWidth, additionalClass, deg, }: IconComponentProps) => JSX_2.Element | null;
|
|
771
|
+
|
|
772
|
+
declare interface Option_2 {
|
|
773
|
+
value: string | number;
|
|
774
|
+
label: string;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export declare const ProjectCardSkeleton: () => JSX_2.Element;
|
|
778
|
+
|
|
779
|
+
declare interface Props {
|
|
780
|
+
text?: string;
|
|
781
|
+
error: boolean;
|
|
782
|
+
emitIsChecked?: (isChecked: boolean) => void;
|
|
783
|
+
isChecked?: boolean;
|
|
784
|
+
children?: React.ReactNode;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
declare interface RangeInputsProps {
|
|
788
|
+
children?: React.ReactElement<HTMLInputElement> | React.ReactElement<HTMLInputElement>[];
|
|
789
|
+
addClassName?: string;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
declare type ReactSVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
793
|
+
title?: string;
|
|
794
|
+
}>;
|
|
795
|
+
|
|
796
|
+
declare const ROUND_BUTTON_VARIANTS: {
|
|
797
|
+
whiteStroke: string;
|
|
798
|
+
blackFill: string;
|
|
799
|
+
fullGray: string;
|
|
800
|
+
blue: string;
|
|
801
|
+
blackStroke: string;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
declare type roundBtnVariant = keyof typeof ROUND_BUTTON_VARIANTS;
|
|
805
|
+
|
|
806
|
+
export declare const RoundButton: ({ size, size_m, size_l, children, iconName, variant, additionalClass, additionalClassIcon, deg, ...props }: default_2.PropsWithChildren<ComponentProps_4>) => JSX_2.Element;
|
|
807
|
+
|
|
808
|
+
export declare const Select: ({ options, customPlaceholder, placeholder, error, disabled, disabledOptions, additionalClass, additionalClassOption, additionalClassBtn, onChange, onBlur, selectedValues, isBtn, btnName, clickableOptions, isListRight, sizeIcon, mode, onClickItem, onCLickSelect, size_s, size_m, size_l, isDisabledNotClickable, isLast, }: MultiSelectProps) => JSX_2.Element;
|
|
809
|
+
|
|
810
|
+
declare type SelectSizes = 'medium' | 'small' | 'large';
|
|
811
|
+
|
|
812
|
+
declare type Sizes = 'large' | 'medium' | 'small';
|
|
813
|
+
|
|
814
|
+
export declare const SliderNavigation: ({ indexSlide, isDisabledOff, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, size, size_m, size_l, }: ISliderNavigation) => JSX_2.Element;
|
|
815
|
+
|
|
816
|
+
export declare const SortSelect: default_2.FC<SortSelectProps>;
|
|
817
|
+
|
|
818
|
+
declare interface SortSelectProps {
|
|
819
|
+
options?: Option_2[];
|
|
820
|
+
selectedOption: Option_2 | null;
|
|
821
|
+
placeholder?: string;
|
|
822
|
+
error?: boolean;
|
|
823
|
+
disabled?: boolean;
|
|
824
|
+
onChange?: (event: Option_2 | null) => void;
|
|
825
|
+
onBlur?: (event: Option_2) => void;
|
|
826
|
+
additionalClass?: string;
|
|
827
|
+
mini?: boolean;
|
|
828
|
+
openOnTop?: boolean;
|
|
829
|
+
onOpenClick?: () => void;
|
|
830
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
831
|
+
onCLickSelect?: () => void;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export declare const SummarySelect: React.FC<ISummarySelectProps>;
|
|
835
|
+
|
|
836
|
+
export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween }: ISwitcherProps) => JSX_2.Element;
|
|
837
|
+
|
|
838
|
+
declare type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
|
|
839
|
+
|
|
840
|
+
declare const TAB_SELECT_VARIANTS: {
|
|
841
|
+
whiteFill: string;
|
|
842
|
+
whiteStroke: string;
|
|
843
|
+
grayDesign: string;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
declare const TAB_SWITCHER_VARIANTS: {
|
|
847
|
+
whiteRow: string;
|
|
848
|
+
grayRow: string;
|
|
849
|
+
whiteRowGrayLabel: string;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
declare type TABS_VARIANTS = keyof typeof TAB_SWITCHER_VARIANTS;
|
|
853
|
+
|
|
854
|
+
export declare const TabSelect: (({ variant, classname, children }: ITabSelect) => JSX_2.Element) & {
|
|
855
|
+
Item: ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
declare type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
|
|
859
|
+
|
|
860
|
+
export declare const TabSwitcher: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => JSX_2.Element) & {
|
|
861
|
+
Item: ForwardRefExoticComponent<ITabSwitcherItem & RefAttributes<HTMLInputElement>>;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
declare interface TabSwitcherProps {
|
|
865
|
+
variant?: TABS_VARIANTS;
|
|
866
|
+
addClassName?: string;
|
|
867
|
+
isApart?: boolean;
|
|
868
|
+
col?: boolean;
|
|
869
|
+
children: React.ReactElement[];
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export declare const Tag: ({ size, size_m, size_l, children, variant, width, additionalClass, ...props }: default_2.PropsWithChildren<ComponentProps_5>) => JSX_2.Element;
|
|
873
|
+
|
|
874
|
+
declare const TAG_VARIANTS: {
|
|
875
|
+
red: string;
|
|
876
|
+
gray: string;
|
|
877
|
+
white: string;
|
|
878
|
+
shade: string;
|
|
879
|
+
blackGrey: string;
|
|
880
|
+
chineseBlack: string;
|
|
881
|
+
fullWhite: string;
|
|
882
|
+
transparent: string;
|
|
883
|
+
shadeWhite: string;
|
|
884
|
+
transWhite: string;
|
|
885
|
+
whiteGrayStroke: string;
|
|
886
|
+
blackStroke: string;
|
|
887
|
+
lightBlue: string;
|
|
888
|
+
lightGray: string;
|
|
889
|
+
whiteGray: string;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
declare interface TagProps {
|
|
893
|
+
size?: tagSizes;
|
|
894
|
+
size_m?: tagSizes;
|
|
895
|
+
size_l?: tagSizes;
|
|
896
|
+
children?: string | ReactNode;
|
|
897
|
+
variant?: tagVariant;
|
|
898
|
+
width?: tagWidth;
|
|
899
|
+
additionalClass?: string;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
declare type tagSizes = 'medium' | 'tiny' | 'large' | 'small' | 'preLarge' | 'mini' | 'tiny-7px' | 'tiny-10px' | 'small-10px' | 'small-13px';
|
|
903
|
+
|
|
904
|
+
declare type tagVariant = keyof typeof TAG_VARIANTS;
|
|
905
|
+
|
|
906
|
+
declare type TagWidth = 'full' | 'auto';
|
|
907
|
+
|
|
908
|
+
declare type tagWidth = 'auto' | 'full';
|
|
909
|
+
|
|
910
|
+
declare type TBtn = {
|
|
911
|
+
isLong?: boolean;
|
|
912
|
+
additionalClassName?: string;
|
|
913
|
+
additionalLabelClass?: string;
|
|
914
|
+
withPadding?: boolean;
|
|
915
|
+
width?: string;
|
|
916
|
+
width_m?: string;
|
|
917
|
+
width_l?: string;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
declare type TCategory = {
|
|
921
|
+
value: string | number;
|
|
922
|
+
label: string;
|
|
923
|
+
options: TOption[];
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
declare const Text_2: ({ children, className, additionalClass, html, ...rest }: ITextProps) => JSX_2.Element;
|
|
927
|
+
export { Text_2 as Text }
|
|
928
|
+
|
|
929
|
+
declare type TModeSelect = 'options' | 'category' | 'double' | 'single';
|
|
930
|
+
|
|
931
|
+
declare type TOption = {
|
|
932
|
+
value: string | number;
|
|
933
|
+
label: string;
|
|
934
|
+
parent?: string;
|
|
935
|
+
id?: number | string;
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
export declare const useClientWidth: () => {
|
|
939
|
+
currentClientWidth: number;
|
|
940
|
+
isMobile: boolean;
|
|
941
|
+
isTablet: boolean;
|
|
942
|
+
isDesktop: boolean;
|
|
943
|
+
isMobileBorder: boolean;
|
|
944
|
+
isFullTablet: boolean;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
export declare const ZoomControls: ({ size, zoomIn, zoomOut }: IZoomControls) => JSX_2.Element;
|
|
948
|
+
|
|
949
|
+
export { }
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
declare module "*.svg" {
|
|
953
|
+
const ReactComponent: ReactSVGComponent;
|
|
954
|
+
const src: string;
|
|
955
|
+
}
|
|
956
|
+
|