stone-kit 0.0.329 → 0.0.331
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/Button/index.d.ts +1 -0
- package/dist/components/Button/ui/Button.d.ts +4 -0
- package/dist/components/Button/ui/Button.types.d.ts +35 -0
- package/dist/components/CheckBox/CheckBox.d.ts +9 -0
- package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
- package/dist/components/DestinationTab/index.d.ts +1 -0
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +4 -0
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +31 -0
- package/dist/components/FieldInput/index.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +4 -0
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +8 -0
- package/dist/components/Flex/index.d.ts +1 -0
- package/dist/components/Flex/ui/Flex.d.ts +3 -0
- package/dist/components/Flex/ui/Flex.types.d.ts +16 -0
- package/dist/components/FormModal/ui/ModalForm.d.ts +33 -0
- package/dist/components/FormModal/utils/reg.d.ts +4 -0
- package/dist/components/GroupedInput/index.d.ts +1 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +3 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +5 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/ui/Input.types.d.ts +23 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/ui/Logo.d.ts +3 -0
- package/dist/components/Logo/ui/Logo.types.d.ts +11 -0
- package/dist/components/LotCard/index.d.ts +1 -0
- package/dist/components/LotCard/ui/LotCard.d.ts +3 -0
- package/dist/components/LotCard/ui/LotCard.types.d.ts +232 -0
- package/dist/components/LotCard/utils/checkBedroomsCount.d.ts +1 -0
- package/dist/components/LotCard/utils/const.d.ts +7 -0
- package/dist/components/LotCard/utils/formatPrice.d.ts +1 -0
- package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
- package/dist/components/LotCardSkeleton/index.d.ts +1 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +1 -0
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +3 -0
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +18 -0
- package/dist/components/MetroTag/index.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.d.ts +3 -0
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +19 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.d.ts +4 -0
- package/dist/components/Modal/ui/Modal.types.d.ts +20 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +3 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +5 -0
- package/dist/components/NewIcon/index.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +16 -0
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +8 -0
- package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
- package/dist/components/RoundButton/index.d.ts +1 -0
- package/dist/components/RoundButton/ui/RoundButton.d.ts +4 -0
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +26 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/ui/Select.d.ts +4 -0
- package/dist/components/Select/ui/Select.types.d.ts +23 -0
- package/dist/components/SliderNavigation/index.d.ts +3 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +3 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +16 -0
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +27 -0
- package/dist/components/SortSelect/index.d.ts +1 -0
- package/dist/components/SortSelect/ui/SortSelect.d.ts +4 -0
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +16 -0
- package/dist/components/SummarySelect/index.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +7 -0
- package/dist/components/Switcher/index.d.ts +1 -0
- package/dist/components/Switcher/ui/Switcher.d.ts +3 -0
- package/dist/components/Switcher/ui/Switcher.types.d.ts +6 -0
- package/dist/components/TabSelect/index.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +26 -0
- package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
- package/dist/components/TabSwitcher/index.d.ts +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +6 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +24 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.d.ts +4 -0
- package/dist/components/Tag/ui/Tag.types.d.ts +24 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/ui/Text.d.ts +3 -0
- package/dist/components/Text/ui/Text.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.d.ts +11 -0
- package/dist/components/ZoomControls/index.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +3 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +7 -0
- package/dist/components/mobileButton/index.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +4 -0
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +24 -0
- package/dist/main.d.ts +28 -0
- package/dist/shared/useClientWidth.d.ts +6 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from './ui/Button';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './Button.types';
|
|
3
|
+
|
|
4
|
+
export declare const Button: ({ size, size_m, size_l, pre, children, post, variant, width, additionalClass, isLoading, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type btnWidth = 'auto' | 'full';
|
|
4
|
+
export declare const BUTTON_VARIANTS: {
|
|
5
|
+
blue: string;
|
|
6
|
+
gray: string;
|
|
7
|
+
whiteStroke: string;
|
|
8
|
+
sokolniki: string;
|
|
9
|
+
black: string;
|
|
10
|
+
whiteFilled: string;
|
|
11
|
+
shade: string;
|
|
12
|
+
volodiyaLight: string;
|
|
13
|
+
transparent: string;
|
|
14
|
+
};
|
|
15
|
+
export type btnVariant = keyof typeof BUTTON_VARIANTS;
|
|
16
|
+
type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
17
|
+
interface ButtonProps {
|
|
18
|
+
size?: btnSizes;
|
|
19
|
+
size_m?: btnSizes;
|
|
20
|
+
size_l?: btnSizes;
|
|
21
|
+
pre?: ReactNode;
|
|
22
|
+
post?: ReactNode;
|
|
23
|
+
children?: string | ReactNode;
|
|
24
|
+
variant?: btnVariant;
|
|
25
|
+
width?: btnWidth;
|
|
26
|
+
additionalClass?: string;
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
as: 'button' | 'link';
|
|
29
|
+
}
|
|
30
|
+
export type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
31
|
+
as: 'button';
|
|
32
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
33
|
+
as: 'link';
|
|
34
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
text: string;
|
|
4
|
+
error: boolean;
|
|
5
|
+
isChecked?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type Ref = HTMLInputElement;
|
|
8
|
+
export declare const CheckBox: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const CHECKBOX_VARIANTS: {
|
|
4
|
+
light: string;
|
|
5
|
+
};
|
|
6
|
+
export type checkBoxVariant = keyof typeof CHECKBOX_VARIANTS;
|
|
7
|
+
type checkBoxSizes = 'medium';
|
|
8
|
+
interface InputProps {
|
|
9
|
+
size_s?: checkBoxSizes;
|
|
10
|
+
size_m?: checkBoxSizes;
|
|
11
|
+
size_l?: checkBoxSizes;
|
|
12
|
+
error?: boolean;
|
|
13
|
+
variant?: checkBoxVariant;
|
|
14
|
+
additionalClass?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DestinationTab } from './ui/DestinationTab';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './DestinationTab.types';
|
|
3
|
+
|
|
4
|
+
export declare const DestinationTab: ({ size, size_m, size_l, destination, variant, width, routes, checked, onChange, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type destinationSizesWidth = 'auto' | 'full';
|
|
4
|
+
export declare const DESTINATIONS_VARIANTS: {
|
|
5
|
+
whiteStroke: string;
|
|
6
|
+
};
|
|
7
|
+
export type destinationSizesVariant = keyof typeof DESTINATIONS_VARIANTS;
|
|
8
|
+
type destinationSizes = 'large' | 'medium';
|
|
9
|
+
interface IDestinationProps {
|
|
10
|
+
size?: destinationSizes;
|
|
11
|
+
size_m?: destinationSizes;
|
|
12
|
+
size_l?: destinationSizes;
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
destination?: {
|
|
15
|
+
destName?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
};
|
|
18
|
+
routes?: {
|
|
19
|
+
type?: ReactNode;
|
|
20
|
+
text?: string;
|
|
21
|
+
}[];
|
|
22
|
+
onChange?: () => void;
|
|
23
|
+
children?: string | ReactNode;
|
|
24
|
+
variant?: destinationSizesVariant;
|
|
25
|
+
width?: destinationSizesWidth;
|
|
26
|
+
additionalClass?: string;
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
as?: 'button' | 'link';
|
|
29
|
+
}
|
|
30
|
+
export type ComponentProps = IDestinationProps & React.ButtonHTMLAttributes<HTMLLabelElement>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldInput } from './ui/FieldInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Flex } from './ui/Flex';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type IFlex = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16';
|
|
3
|
+
type IJustifyContent = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
4
|
+
type IAlignItems = 'start' | 'end' | 'center' | 'stretch';
|
|
5
|
+
type IFlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
6
|
+
type IFlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
7
|
+
export interface IFlexProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
className?: string;
|
|
9
|
+
jc?: IJustifyContent;
|
|
10
|
+
ai?: IAlignItems;
|
|
11
|
+
gap?: IFlex;
|
|
12
|
+
fd?: IFlexDirection;
|
|
13
|
+
w?: IFlexWrap;
|
|
14
|
+
additionalClass?: string;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface IModalFormProps {
|
|
2
|
+
isFormOpen: boolean;
|
|
3
|
+
setIsFormOpen: (isOpen: boolean) => void;
|
|
4
|
+
submitHandler: (data: IFormPageInputs) => void;
|
|
5
|
+
modalWidth?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
isEmail?: boolean;
|
|
8
|
+
isTextArea?: boolean;
|
|
9
|
+
subTitle: string;
|
|
10
|
+
personalCheckBox: {
|
|
11
|
+
text: string;
|
|
12
|
+
isRequired: boolean;
|
|
13
|
+
};
|
|
14
|
+
advCheckBox?: {
|
|
15
|
+
text: string;
|
|
16
|
+
isRequired: boolean;
|
|
17
|
+
} | undefined | null;
|
|
18
|
+
textAreaPlaceholder?: string;
|
|
19
|
+
rowsTextArea?: number;
|
|
20
|
+
isRequiredPhone?: boolean;
|
|
21
|
+
isRequiredEmail?: boolean;
|
|
22
|
+
isRequiredPhoneOrEmail?: boolean;
|
|
23
|
+
}
|
|
24
|
+
type IFormPageInputs = {
|
|
25
|
+
phone: string;
|
|
26
|
+
name: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
personalCheckBox: boolean;
|
|
29
|
+
advCheckBox?: boolean;
|
|
30
|
+
textarea?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GroupedInputs } from './ui/GroupedInputs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input } from './ui/Input';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type inputWidth = 'auto' | 'full';
|
|
4
|
+
export declare const INPUT_VARIANTS: {
|
|
5
|
+
light: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
};
|
|
8
|
+
export type inputVariant = keyof typeof INPUT_VARIANTS;
|
|
9
|
+
type inputSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
10
|
+
interface InputProps {
|
|
11
|
+
size_s?: inputSizes;
|
|
12
|
+
size_m?: inputSizes;
|
|
13
|
+
size_l?: inputSizes;
|
|
14
|
+
pre?: ReactNode;
|
|
15
|
+
error?: boolean;
|
|
16
|
+
post?: ReactNode;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
variant?: inputVariant;
|
|
19
|
+
width?: inputWidth;
|
|
20
|
+
additionalClass?: string;
|
|
21
|
+
}
|
|
22
|
+
export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Logo } from './ui/Logo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotCard } from './ui/LotCard';
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
interface IMetro {
|
|
2
|
+
name: string | null;
|
|
3
|
+
color: string | null;
|
|
4
|
+
station: string | null;
|
|
5
|
+
timeTo: string | null;
|
|
6
|
+
}
|
|
7
|
+
interface IFeatures {
|
|
8
|
+
category: string | null;
|
|
9
|
+
icoImg: {
|
|
10
|
+
attributes: {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
slug: string | null;
|
|
15
|
+
val: string | null;
|
|
16
|
+
}
|
|
17
|
+
interface IGeo {
|
|
18
|
+
lat: string | null;
|
|
19
|
+
lon: string | null;
|
|
20
|
+
}
|
|
21
|
+
interface IProject {
|
|
22
|
+
address: string | null;
|
|
23
|
+
buildingYear: number | null;
|
|
24
|
+
createdAt: string | null;
|
|
25
|
+
direction: number | null;
|
|
26
|
+
features: IFeatures[] | null;
|
|
27
|
+
geo: IGeo | null;
|
|
28
|
+
id: number;
|
|
29
|
+
logoImg: string | null;
|
|
30
|
+
metro: IMetro[];
|
|
31
|
+
name: string;
|
|
32
|
+
project: string;
|
|
33
|
+
shortDesc: string;
|
|
34
|
+
sitPlanImg: string;
|
|
35
|
+
sort: number;
|
|
36
|
+
sortOffice: number | null;
|
|
37
|
+
sortRetail: number | null;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
buildingQuarter: number;
|
|
40
|
+
projectUuid: string;
|
|
41
|
+
portalUuid: string;
|
|
42
|
+
location: string;
|
|
43
|
+
showPriceFlg: boolean | null;
|
|
44
|
+
lotsCount: number | null;
|
|
45
|
+
}
|
|
46
|
+
interface ILotPromo {
|
|
47
|
+
/** Промо текст */
|
|
48
|
+
val: string;
|
|
49
|
+
/** Идентификатор */
|
|
50
|
+
slug: string;
|
|
51
|
+
/** Категория */
|
|
52
|
+
category: string;
|
|
53
|
+
/** Ссылка на иконку */
|
|
54
|
+
icoImg: string;
|
|
55
|
+
/** hex цвет */
|
|
56
|
+
color: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ILot {
|
|
59
|
+
/** id Лота */
|
|
60
|
+
id: number | string;
|
|
61
|
+
/** Название проекта */
|
|
62
|
+
name?: string | null;
|
|
63
|
+
/** Квартал сдачи */
|
|
64
|
+
buildingQuarter?: number | null;
|
|
65
|
+
/** uuid Лота из 1с */
|
|
66
|
+
lotUuid: string;
|
|
67
|
+
/** UUID проекта */
|
|
68
|
+
projectUuid: string | null;
|
|
69
|
+
/** Стоимость объекта недвижимости */
|
|
70
|
+
sellingPrice: string | null;
|
|
71
|
+
/** Показывать скоро в продаже или нет */
|
|
72
|
+
showPriceFlg: boolean | null;
|
|
73
|
+
/** Цена за квм */
|
|
74
|
+
sellingPricePerMeter: string | null;
|
|
75
|
+
/** цена за метра квадратный за год за аренду */
|
|
76
|
+
rentPricePerMeterPerYear: string | null;
|
|
77
|
+
/** аренда за месяц */
|
|
78
|
+
rentPricePerMonth: string | null;
|
|
79
|
+
/** Размер скидки */
|
|
80
|
+
discountVolume: number | null;
|
|
81
|
+
/** Цена со скидкой */
|
|
82
|
+
discountedPrice: number | null;
|
|
83
|
+
/** дата освобождения лота */
|
|
84
|
+
availableFrom: string | null;
|
|
85
|
+
/** дата, до которой должны быть выданы ключи */
|
|
86
|
+
handoverKeys: string | null;
|
|
87
|
+
/** состояние лота: свободен, зарезервирован, продан, сдан в аренду, заблокирован, деактивирован */
|
|
88
|
+
status: number | null;
|
|
89
|
+
/** Статус аренды лота */
|
|
90
|
+
rentStatus: number | null;
|
|
91
|
+
/** название лота в 1С */
|
|
92
|
+
number: string | null;
|
|
93
|
+
/** полный адрес лота (с корпусом) */
|
|
94
|
+
address: string | null;
|
|
95
|
+
/** Тип помещения => Квартиры/Пентхаусы/Келлеры/Паркинг Офисы/Ритейл/Офисные Блоки/Паркинг */
|
|
96
|
+
type: number | null;
|
|
97
|
+
/** направления, по которым продвигается этот лот */
|
|
98
|
+
direction: number | null;
|
|
99
|
+
/** номер подъезда/секции */
|
|
100
|
+
entrance: string | null;
|
|
101
|
+
/** Номер квартиры / офиса */
|
|
102
|
+
doorNumber: string | null;
|
|
103
|
+
/** Площадь квартиры */
|
|
104
|
+
area: string | null;
|
|
105
|
+
/** площадь кухни */
|
|
106
|
+
kitchenArea: number | null;
|
|
107
|
+
/** Жилая площадь */
|
|
108
|
+
livingArea: number | null;
|
|
109
|
+
/** Кол-во этажей */
|
|
110
|
+
floorsNumber: number | null;
|
|
111
|
+
/** Этаж */
|
|
112
|
+
floor: number | null;
|
|
113
|
+
/** Высота потолков */
|
|
114
|
+
ceiling: string | null;
|
|
115
|
+
/** Этаж, с которого начинаются продаваемые лоты */
|
|
116
|
+
saleFloorMin: number | null;
|
|
117
|
+
/** Этаж, на котором заканчиваются продаваемые лоты */
|
|
118
|
+
saleFloorMax: number | null;
|
|
119
|
+
/** Количество комнат */
|
|
120
|
+
roomsCount: number | null;
|
|
121
|
+
/** Количество спален */
|
|
122
|
+
bedroomsCount?: number | null;
|
|
123
|
+
/** Корпус */
|
|
124
|
+
housing: string | null;
|
|
125
|
+
/** Секция */
|
|
126
|
+
section: string | null;
|
|
127
|
+
/** Очередь строительства */
|
|
128
|
+
buildStage: number | null;
|
|
129
|
+
/** угловое? */
|
|
130
|
+
isCorner: boolean | null;
|
|
131
|
+
/** общепит? */
|
|
132
|
+
isCatering: boolean | null;
|
|
133
|
+
/** является ли лот отдельно стоящим зданием */
|
|
134
|
+
isDetachedBuilding: boolean | null;
|
|
135
|
+
/** Наличие телефона */
|
|
136
|
+
isPhone: boolean | null;
|
|
137
|
+
/** в ипотеку */
|
|
138
|
+
isMortgage: boolean | null;
|
|
139
|
+
/** мусоропровод */
|
|
140
|
+
isGarbageTube: boolean | null;
|
|
141
|
+
/** Является ли лот пентхаусом */
|
|
142
|
+
isPenthouse: boolean | null;
|
|
143
|
+
/** Является ли лот апартаментом */
|
|
144
|
+
isApart: boolean | null;
|
|
145
|
+
/** Является ли лот двухуровневым */
|
|
146
|
+
isDoubleLevel: boolean | null;
|
|
147
|
+
/** Есть ли пандус */
|
|
148
|
+
isRamp: boolean | null;
|
|
149
|
+
/** Близко ли вход к лифтовой группе */
|
|
150
|
+
isCloseToLift: boolean | null;
|
|
151
|
+
/** Ежемясячный платеж */
|
|
152
|
+
mortgageMonthlyPayment?: string;
|
|
153
|
+
/** Занят ли лот */
|
|
154
|
+
isOccupied: boolean | null;
|
|
155
|
+
/** Является ли лот ГАБ */
|
|
156
|
+
isGab: boolean | null;
|
|
157
|
+
/** Есть ли отделка */
|
|
158
|
+
isFacing: boolean | null;
|
|
159
|
+
/** Особенности квартиры */
|
|
160
|
+
features: IFeatures[] | null;
|
|
161
|
+
/** Количество пассажирских лифтов */
|
|
162
|
+
liftPassenger: number | null;
|
|
163
|
+
/** Количество грузовых лифтов */
|
|
164
|
+
liftService?: number | null;
|
|
165
|
+
/** Количество балконов */
|
|
166
|
+
balcony: number | null;
|
|
167
|
+
/** Количество лоджий */
|
|
168
|
+
loggia: number | null;
|
|
169
|
+
/** Состояние помещения */
|
|
170
|
+
condition: string | null;
|
|
171
|
+
/** Тип входа в помещений */
|
|
172
|
+
inputType?: string | null;
|
|
173
|
+
/** Отделка */
|
|
174
|
+
decoration: string | null;
|
|
175
|
+
/** Тип планировки */
|
|
176
|
+
layout: string | null;
|
|
177
|
+
/** Тип ремонта */
|
|
178
|
+
repairType: string | null;
|
|
179
|
+
/** количество стояков с водой */
|
|
180
|
+
waterPipesCount: number[] | null;
|
|
181
|
+
/** количество рабочих мест */
|
|
182
|
+
workPlacesCount: number | null;
|
|
183
|
+
/** Количество совместных санузлов */
|
|
184
|
+
combinedWcsCount: number | null;
|
|
185
|
+
/** Возможное назначение */
|
|
186
|
+
speciality: number | null;
|
|
187
|
+
/** Куда выходят витрины */
|
|
188
|
+
showcaseWindows: string | null;
|
|
189
|
+
/** Вид из окна */
|
|
190
|
+
windowView: string | null;
|
|
191
|
+
/** Promo метки */
|
|
192
|
+
promo: ILotPromo[] | null;
|
|
193
|
+
/** Promo текст */
|
|
194
|
+
promoText: string | null;
|
|
195
|
+
/** Ссылка на картинку */
|
|
196
|
+
interiorPlanImg?: string | null;
|
|
197
|
+
/** Ссылка на картинку */
|
|
198
|
+
floorPlanImg: string | null;
|
|
199
|
+
/** Ссылка на картинку */
|
|
200
|
+
sitPlanImg: string | null;
|
|
201
|
+
/** Дата создания */
|
|
202
|
+
createdAt?: string;
|
|
203
|
+
/** Дата обновления */
|
|
204
|
+
updatedAt?: string;
|
|
205
|
+
/** Первоначальный взнос */
|
|
206
|
+
firstPaymentSum?: string;
|
|
207
|
+
/** Массив с лотами в фоисных блоках */
|
|
208
|
+
childLots?: {
|
|
209
|
+
id: number;
|
|
210
|
+
floor: number;
|
|
211
|
+
floorPlanImg: string;
|
|
212
|
+
}[];
|
|
213
|
+
/** Угол азимута */
|
|
214
|
+
azimuthAngle?: number | null;
|
|
215
|
+
/** Тип недвижимости */
|
|
216
|
+
businessType?: string | null;
|
|
217
|
+
/** С отделкой или без */
|
|
218
|
+
isDecoration?: boolean | null;
|
|
219
|
+
/** С мокрой точкой */
|
|
220
|
+
isWaterPipes?: boolean | null;
|
|
221
|
+
/** Данные всего проекта */
|
|
222
|
+
project?: IProject | null;
|
|
223
|
+
/** Забронировано или нет????? */
|
|
224
|
+
reservations?: string[] | null;
|
|
225
|
+
}
|
|
226
|
+
export interface ILotCard {
|
|
227
|
+
lot: ILot;
|
|
228
|
+
btnName?: string;
|
|
229
|
+
handleBtnForm: () => void;
|
|
230
|
+
handleFullScreenBtn?: () => void;
|
|
231
|
+
}
|
|
232
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkBedroomsCount: (count?: number | null) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatPrice: (price: string | number | null, perMetr?: boolean) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatPayment: (payment: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotCardSkeleton } from './ui/LotCardSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LotCardSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TagWidth = 'full' | 'auto';
|
|
3
|
+
type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
4
|
+
export interface IMetroLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
metro: {
|
|
6
|
+
name?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
routes?: {
|
|
9
|
+
timeTo?: string;
|
|
10
|
+
iconName?: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
justifyContent?: JustifyContent;
|
|
14
|
+
colorIcon?: string;
|
|
15
|
+
addClassName?: string;
|
|
16
|
+
width?: TagWidth;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MetroTag } from './ui/MetroTag';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TagWidth = 'full' | 'auto';
|
|
3
|
+
export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
metro: {
|
|
5
|
+
name?: string;
|
|
6
|
+
station?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
timeTo?: number;
|
|
9
|
+
mode?: string;
|
|
10
|
+
};
|
|
11
|
+
variant?: 'default' | 'transparent';
|
|
12
|
+
addClassName?: string;
|
|
13
|
+
addClassNameColor?: string;
|
|
14
|
+
addClassNameTimeTo?: string;
|
|
15
|
+
isBetween?: boolean;
|
|
16
|
+
width?: TagWidth;
|
|
17
|
+
withBg?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal } from './ui/Modal';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
emitIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
additionalClass?: string;
|
|
7
|
+
additionalClassOverlay?: string;
|
|
8
|
+
additionalClassModalBody?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
isTransparentBack?: boolean;
|
|
11
|
+
isClickOutside?: boolean;
|
|
12
|
+
leaveDisableScroll?: boolean;
|
|
13
|
+
notDisableScroll?: boolean;
|
|
14
|
+
createPortalObj?: {
|
|
15
|
+
domNode: HTMLElement | null;
|
|
16
|
+
key?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
opacity?: number;
|
|
19
|
+
colorOverlay?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NewIcon } from './ui/NewIcon';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactSVGComponent } from './NewIcon.types';
|
|
2
|
+
|
|
3
|
+
type IconComponentProps = {
|
|
4
|
+
name: keyof typeof iconTypes;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
additionalClass?: string;
|
|
8
|
+
deg?: string;
|
|
9
|
+
strokeWidth?: string;
|
|
10
|
+
};
|
|
11
|
+
type IconTypes = {
|
|
12
|
+
[name: string]: ReactSVGComponent;
|
|
13
|
+
};
|
|
14
|
+
export declare const iconTypes: IconTypes;
|
|
15
|
+
export declare const NewIcon: ({ name, size, color, strokeWidth, additionalClass, deg, }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProjectCardSkeleton } from './ui/ProjectCardSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProjectCardSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RoundButton } from './ui/RoundButton';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './RoundButton.types';
|
|
3
|
+
|
|
4
|
+
export declare const RoundButton: ({ size, size_m, size_l, children, iconName, variant, additionalClass, deg, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const ROUND_BUTTON_VARIANTS: {
|
|
4
|
+
whiteStroke: string;
|
|
5
|
+
blackFill: string;
|
|
6
|
+
};
|
|
7
|
+
export type roundBtnVariant = keyof typeof ROUND_BUTTON_VARIANTS;
|
|
8
|
+
type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
9
|
+
export declare const sizeMap: {
|
|
10
|
+
large: string;
|
|
11
|
+
medium: string;
|
|
12
|
+
small: string;
|
|
13
|
+
tiny: string;
|
|
14
|
+
};
|
|
15
|
+
interface IRoundButtonProps {
|
|
16
|
+
size?: btnSizes;
|
|
17
|
+
size_m?: btnSizes;
|
|
18
|
+
size_l?: btnSizes;
|
|
19
|
+
children?: string | ReactNode;
|
|
20
|
+
variant?: roundBtnVariant;
|
|
21
|
+
additionalClass?: string;
|
|
22
|
+
iconName?: string;
|
|
23
|
+
deg?: string;
|
|
24
|
+
}
|
|
25
|
+
export type ComponentProps = IRoundButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select } from './ui/Select';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MultiSelectProps {
|
|
6
|
+
options?: Option[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
additionalClass?: string;
|
|
11
|
+
additionalClassOption?: string;
|
|
12
|
+
additionalClassBtn?: string;
|
|
13
|
+
onChange?: (selectedOptions: Option[]) => unknown;
|
|
14
|
+
onBlur?: (selectedOptions: Option[]) => unknown;
|
|
15
|
+
selectedValues?: Option[];
|
|
16
|
+
isBtn?: boolean;
|
|
17
|
+
btnName?: string;
|
|
18
|
+
widthBtn?: string;
|
|
19
|
+
widthOptionList?: string;
|
|
20
|
+
isListRight?: boolean;
|
|
21
|
+
disabledOptions?: Option[];
|
|
22
|
+
clickableOptions?: string[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ISliderNavigation } from './SliderNavigation.types.ts';
|
|
2
|
+
|
|
3
|
+
export declare const SliderNavigation: ({ indexSlide, isDisabledOff, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, size, size_m, size_l, }: ISliderNavigation) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Sizes = 'large' | 'medium' | 'small';
|
|
2
|
+
export interface ISliderNavigation {
|
|
3
|
+
indexSlide: number;
|
|
4
|
+
goPrev: () => void;
|
|
5
|
+
goNext: () => void;
|
|
6
|
+
arr: Array<unknown>;
|
|
7
|
+
additionalClassTag?: string;
|
|
8
|
+
additionalClassNavButton?: string;
|
|
9
|
+
navigationClassName?: string;
|
|
10
|
+
isNeedTag?: boolean;
|
|
11
|
+
isDisabledOff?: boolean;
|
|
12
|
+
size?: Sizes;
|
|
13
|
+
size_m?: Sizes;
|
|
14
|
+
size_l?: Sizes;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { Option } from '../ui/SortSelect.types';
|
|
3
|
+
|
|
4
|
+
interface IUseSortSelect {
|
|
5
|
+
selectedOption: Option | null;
|
|
6
|
+
setSelectedOption?: (event: Option | null) => void;
|
|
7
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
isDesktop: boolean;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
onChange?: (event: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
onBlur?: (event: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const useSortSelect: ({ selectedOption, setSelectedOption, setIsOpen, containerRef, onBlur, onChange, isDesktop, placeholder, }: IUseSortSelect) => {
|
|
22
|
+
handleDocumentClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
23
|
+
handleBlur: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
24
|
+
getInputValue: () => string;
|
|
25
|
+
getOption: (option: Option) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SortSelect } from './ui/SortSelect';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SortSelectProps {
|
|
6
|
+
options?: Option[];
|
|
7
|
+
selectedOption: Option | null;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onChange?: (event: Option | null) => void;
|
|
12
|
+
onBlur?: (event: Option) => void;
|
|
13
|
+
additionalClass?: string;
|
|
14
|
+
mini?: boolean;
|
|
15
|
+
openOnTop?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SummarySelect } from './ui/SummarySelect.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switcher } from './ui/Switcher';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabSelect } from './ui/TabSelect';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TBtn = {
|
|
3
|
+
isLong?: boolean;
|
|
4
|
+
additionalClassName?: string;
|
|
5
|
+
additionalLabelClass?: string;
|
|
6
|
+
withPadding?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
width_m?: string;
|
|
9
|
+
width_l?: string;
|
|
10
|
+
};
|
|
11
|
+
type BaseInputProps = JSX.IntrinsicElements['input'] & TBtn;
|
|
12
|
+
interface ITabSelect {
|
|
13
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
14
|
+
variant?: SwitcherVariant;
|
|
15
|
+
classname?: string;
|
|
16
|
+
isRound?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const TAB_SELECT_VARIANTS: {
|
|
19
|
+
whiteFill: string;
|
|
20
|
+
whiteStroke: string;
|
|
21
|
+
};
|
|
22
|
+
export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
|
|
23
|
+
declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
|
|
24
|
+
Item: import('react').ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
|
+
};
|
|
26
|
+
export { TabSelectNamespace as TabSelect };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabSwitcher } from './ui/TabSwitcher';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
|
|
2
|
+
|
|
3
|
+
declare const SwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Item: import('react').ForwardRefExoticComponent<Omit<ITabSwitcherItem, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
};
|
|
6
|
+
export { SwitcherNamespace as TabSwitcher };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const TAB_SWITCHER_VARIANTS: {
|
|
3
|
+
whiteRow: string;
|
|
4
|
+
grayRow: string;
|
|
5
|
+
};
|
|
6
|
+
type BaseInputProps = JSX.IntrinsicElements['input'];
|
|
7
|
+
export interface ITabSwitcherItem extends BaseInputProps {
|
|
8
|
+
addItemClassName?: string;
|
|
9
|
+
index: number;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
itemsLength: number;
|
|
12
|
+
width?: string;
|
|
13
|
+
width_m?: string;
|
|
14
|
+
width_l?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TabSwitcherProps {
|
|
17
|
+
variant?: TABS_VARIANTS;
|
|
18
|
+
addClassName?: string;
|
|
19
|
+
isApart?: boolean;
|
|
20
|
+
col?: boolean;
|
|
21
|
+
children: React.ReactElement[];
|
|
22
|
+
}
|
|
23
|
+
export type TABS_VARIANTS = keyof typeof TAB_SWITCHER_VARIANTS;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tag } from './ui/Tag';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './Tag.types';
|
|
3
|
+
|
|
4
|
+
export declare const Tag: ({ size, size_m, size_l, children, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type tagWidth = 'auto' | 'full';
|
|
4
|
+
export declare const TAG_VARIANTS: {
|
|
5
|
+
red: string;
|
|
6
|
+
gray: string;
|
|
7
|
+
white: string;
|
|
8
|
+
shade: string;
|
|
9
|
+
blackGrey: string;
|
|
10
|
+
chineseBlack: string;
|
|
11
|
+
};
|
|
12
|
+
export type tagVariant = keyof typeof TAG_VARIANTS;
|
|
13
|
+
type tagSizes = 'medium' | 'tiny' | 'large' | 'small' | 'preLarge';
|
|
14
|
+
interface TagProps {
|
|
15
|
+
size?: tagSizes;
|
|
16
|
+
size_m?: tagSizes;
|
|
17
|
+
size_l?: tagSizes;
|
|
18
|
+
children?: string | ReactNode;
|
|
19
|
+
variant?: tagVariant;
|
|
20
|
+
width?: tagWidth;
|
|
21
|
+
additionalClass?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ComponentProps = TagProps & React.HTMLAttributes<HTMLDivElement>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Text } from './ui/Text';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ITextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
|
+
children?: React.ReactNode | 'string';
|
|
4
|
+
className?: string;
|
|
5
|
+
additionalClass?: string;
|
|
6
|
+
html?: string;
|
|
7
|
+
html_l?: string;
|
|
8
|
+
html_m?: string;
|
|
9
|
+
html_s?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type textAreaWidth = 'auto' | 'full';
|
|
4
|
+
interface TextAreaProps {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
width?: textAreaWidth;
|
|
8
|
+
additionalClass?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ComponentProps = TextAreaProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZoomControls } from './ui/ZoomControls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MobileButton } from './ui/MobileButton';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './MobileButton.types';
|
|
3
|
+
|
|
4
|
+
export declare const MobileButton: ({ size, pre, children, post, variant, width, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type btnWidth = 'auto' | 'full';
|
|
4
|
+
export declare const MOBILE_BUTTON_VARIANTS: {
|
|
5
|
+
whiteFilled: string;
|
|
6
|
+
};
|
|
7
|
+
export type mobileBtnVariant = keyof typeof MOBILE_BUTTON_VARIANTS;
|
|
8
|
+
type btnSizes = 'small';
|
|
9
|
+
interface MobileButtonProps {
|
|
10
|
+
size?: btnSizes;
|
|
11
|
+
pre?: ReactNode;
|
|
12
|
+
post?: ReactNode;
|
|
13
|
+
children?: string;
|
|
14
|
+
variant?: mobileBtnVariant;
|
|
15
|
+
width?: btnWidth;
|
|
16
|
+
additionalClass?: string;
|
|
17
|
+
as?: 'button' | 'link';
|
|
18
|
+
}
|
|
19
|
+
export type ComponentProps = MobileButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
20
|
+
as?: 'button';
|
|
21
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
22
|
+
as: 'link';
|
|
23
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
24
|
+
export {};
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { Button } from './components/Button';
|
|
2
|
+
export { MobileButton } from './components/mobileButton';
|
|
3
|
+
export { NewIcon } from './components/NewIcon';
|
|
4
|
+
export { DestinationTab } from './components/DestinationTab';
|
|
5
|
+
export { RoundButton } from './components/RoundButton';
|
|
6
|
+
export { Tag } from './components/Tag';
|
|
7
|
+
export { Switcher } from './components/Switcher';
|
|
8
|
+
export { Text } from './components/Text';
|
|
9
|
+
export { Flex } from './components/Flex';
|
|
10
|
+
export { Input } from './components/Input';
|
|
11
|
+
export { Modal } from './components/Modal';
|
|
12
|
+
export { FieldInput } from './components/FieldInput';
|
|
13
|
+
export { TabSwitcher } from './components/TabSwitcher';
|
|
14
|
+
export { GroupedInputs } from './components/GroupedInput';
|
|
15
|
+
export { Logo } from './components/Logo';
|
|
16
|
+
export { MetroTag } from './components/MetroTag';
|
|
17
|
+
export { LotCard } from './components/LotCard';
|
|
18
|
+
export { Select } from './components/Select';
|
|
19
|
+
export { useClientWidth } from './shared/useClientWidth';
|
|
20
|
+
export { SortSelect } from './components/SortSelect';
|
|
21
|
+
export { SliderNavigation } from './components/SliderNavigation';
|
|
22
|
+
export { LotCardSkeleton } from './components/LotCardSkeleton';
|
|
23
|
+
export { ProjectCardSkeleton } from './components/ProjectCardSkeleton';
|
|
24
|
+
export { TabSelect } from './components/TabSelect';
|
|
25
|
+
export { ZoomControls } from './components/ZoomControls';
|
|
26
|
+
export { ModalForm } from './components/FormModal/ui/ModalForm.tsx';
|
|
27
|
+
export { ModalSuccess } from './components/ModalSuccess/ModalSuccess.tsx';
|
|
28
|
+
export { SummarySelect } from './components/SummarySelect';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "stone-kit",
|
|
3
3
|
"description": "uikit for redesign",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.331",
|
|
6
6
|
"author": "Mollycodd1e",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"type": "module",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@vitejs/plugin-react": "^4.2.1",
|
|
35
35
|
"c8": "^9.1.0",
|
|
36
36
|
"eslint": "^8.57.0",
|
|
37
|
+
"vite-plugin-dts": "^3.9.1",
|
|
37
38
|
"eslint-plugin-react": "^7.34.1",
|
|
38
39
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
39
40
|
"eslint-plugin-react-refresh": "^0.4.6",
|