stone-kit 0.0.880 → 0.0.882
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/App.d.ts +2 -0
- package/dist/Router.d.ts +2 -0
- 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 +37 -0
- package/dist/components/CheckBox/CheckBox.d.ts +3 -0
- package/dist/components/CheckBox/CheckBox.types.d.ts +19 -0
- package/dist/components/CheckBox/index.d.ts +2 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +17 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +12 -0
- package/dist/components/CheckboxSelect/index.d.ts +1 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +13 -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 +10 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +44 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -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 +50 -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.d.ts +29 -0
- package/dist/components/Input/ui/Input.types.d.ts +0 -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 +17 -0
- package/dist/components/LotCard/hooks/useLotCard.d.ts +25 -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 +256 -0
- package/dist/components/LotCard/utils/checkBedroomsCount.d.ts +1 -0
- package/dist/components/LotCard/utils/const.d.ts +8 -0
- package/dist/components/LotCard/utils/formatPrice.d.ts +1 -0
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +5 -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 +5 -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 +31 -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 +22 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +3 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +9 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +4 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +4 -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/NewIcon/ui/iconTypes.d.ts +4 -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 +30 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/model/selectMode.d.ts +15 -0
- package/dist/components/Select/ui/Category.d.ts +14 -0
- package/dist/components/Select/ui/Option.d.ts +14 -0
- package/dist/components/Select/ui/Select.d.ts +3 -0
- package/dist/components/Select/ui/Select.types.d.ts +59 -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 +29 -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 +21 -0
- package/dist/components/SummarySelect/index.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +9 -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 +8 -0
- package/dist/components/TabSelect/index.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +27 -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 +34 -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 +33 -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/layout/Layout.d.ts +6 -0
- package/dist/layout/components/Header/Header.d.ts +1 -0
- package/dist/layout/components/Menu.d.ts +1 -0
- package/dist/main.d.ts +33 -984
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +7 -0
- package/dist/pages/ButtonsPage/Buttons.d.ts +1 -0
- package/dist/pages/CheckboxPage/CheckboxPage.d.ts +1 -0
- package/dist/pages/FormsPage/FormsPage.d.ts +2 -0
- package/dist/pages/HomePage/HomePage.d.ts +2 -0
- package/dist/pages/IconsPage/IconsPage.d.ts +1 -0
- package/dist/pages/InputPage/InputPage.d.ts +1 -0
- package/dist/pages/LogoPage/LogoPage.d.ts +1 -0
- package/dist/pages/LotsPage/LotsPage.d.ts +1 -0
- package/dist/pages/ModalsPage/ModalPage.d.ts +2 -0
- package/dist/pages/SelectPage/SelectPage.d.ts +1 -0
- package/dist/pages/SelectPage/const.d.ts +13 -0
- package/dist/pages/TabsPage/TabsPage.d.ts +2 -0
- package/dist/pages/TagsPage/TagsPage.d.ts +1 -0
- package/dist/shared/checkLargeOffice.d.ts +3 -0
- package/dist/shared/deepEqual.d.ts +1 -0
- package/dist/shared/useClientWidth.d.ts +8 -0
- package/dist/stone-kit.js +29426 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/App.js +0 -10
- package/dist/ButtonState.module-DtW3aevR.js +0 -8
- package/dist/FilterWithSave-Bp6rH8Pe.js +0 -2230
- package/dist/Menu-CgCfinVZ.js +0 -513
- package/dist/Option-BVIm7wOW.js +0 -83
- package/dist/PinTrans-D6OZq76b.js +0 -10
- package/dist/Router.js +0 -103
- package/dist/SmallFilter-C-VKnbkP.js +0 -10
- package/dist/components/Button/index.js +0 -4
- package/dist/components/Button/ui/Button.js +0 -94
- package/dist/components/Button/ui/Button.types.js +0 -15
- package/dist/components/CheckBox/CheckBox.js +0 -84
- package/dist/components/CheckBox/CheckBox.types.js +0 -1
- package/dist/components/CheckBox/index.js +0 -4
- package/dist/components/CheckBoxNew/CheckBox.types.js +0 -6
- package/dist/components/CheckBoxNew/CheckBoxNew.js +0 -44
- package/dist/components/CheckboxSelect/index.js +0 -4
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +0 -51
- package/dist/components/DestinationTab/index.js +0 -4
- package/dist/components/DestinationTab/ui/DestinationTab.js +0 -75
- package/dist/components/DestinationTab/ui/DestinationTab.types.js +0 -6
- package/dist/components/FieldInput/index.js +0 -4
- package/dist/components/FieldInput/ui/FieldInput.js +0 -22
- package/dist/components/FieldInput/ui/FieldInput.types.js +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +0 -28
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +0 -9
- package/dist/components/Flex/index.js +0 -4
- package/dist/components/Flex/ui/Flex.js +0 -68
- package/dist/components/Flex/ui/Flex.types.js +0 -1
- package/dist/components/FormModal/ui/ModalForm.js +0 -30
- package/dist/components/FormModal/utils/reg.js +0 -6
- package/dist/components/GroupedInput/index.js +0 -4
- package/dist/components/GroupedInput/ui/GroupedInputs.js +0 -8
- package/dist/components/GroupedInput/ui/GroupedInputs.types.js +0 -1
- package/dist/components/Input/index.js +0 -4
- package/dist/components/Input/ui/Input.js +0 -3346
- package/dist/components/Input/ui/Input.types.js +0 -1
- package/dist/components/Logo/index.js +0 -4
- package/dist/components/Logo/ui/Logo.js +0 -63
- package/dist/components/Logo/ui/Logo.types.js +0 -13
- package/dist/components/LotCard/hooks/useLotCard.js +0 -31
- package/dist/components/LotCard/index.js +0 -4
- package/dist/components/LotCard/ui/LotCard.js +0 -11
- package/dist/components/LotCard/ui/LotCard.types.js +0 -1
- package/dist/components/LotCard/utils/checkBedroomsCount.js +0 -20
- package/dist/components/LotCard/utils/const.js +0 -11
- package/dist/components/LotCard/utils/formatPrice.js +0 -11
- package/dist/components/LotCard/utils/getTagsFeatures.js +0 -13
- package/dist/components/LotCard/utils/monthlyPayment.js +0 -4
- package/dist/components/LotCardSkeleton/index.js +0 -4
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +0 -83
- package/dist/components/MetroLabel/ui/MetroLabel.js +0 -44
- package/dist/components/MetroLabel/ui/MetroLabel.types.js +0 -1
- package/dist/components/MetroTag/index.js +0 -4
- package/dist/components/MetroTag/ui/MetroTag.js +0 -142
- package/dist/components/MetroTag/ui/MetroTag.types.js +0 -1
- package/dist/components/Modal/index.js +0 -4
- package/dist/components/Modal/ui/Modal.js +0 -77
- package/dist/components/Modal/ui/Modal.types.js +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.js +0 -61
- package/dist/components/ModalSuccess/ModalSuccess.types.js +0 -1
- package/dist/components/NewIcon/icons/PinTrans.js +0 -6
- package/dist/components/NewIcon/icons/SmallFilter.js +0 -6
- package/dist/components/NewIcon/index.js +0 -4
- package/dist/components/NewIcon/ui/NewIcon.js +0 -314
- package/dist/components/NewIcon/ui/NewIcon.types.js +0 -1
- package/dist/components/NewIcon/ui/iconTypes.js +0 -60
- package/dist/components/ProjectCardSkeleton/index.js +0 -4
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +0 -34
- package/dist/components/RoundButton/index.js +0 -4
- package/dist/components/RoundButton/ui/RoundButton.js +0 -73
- package/dist/components/RoundButton/ui/RoundButton.types.js +0 -16
- package/dist/components/Select/index.js +0 -4
- package/dist/components/Select/model/selectMode.js +0 -49
- package/dist/components/Select/ui/Category.js +0 -76
- package/dist/components/Select/ui/Option.js +0 -7
- package/dist/components/Select/ui/Select.js +0 -179
- package/dist/components/Select/ui/Select.types.js +0 -1
- package/dist/components/SliderNavigation/index.js +0 -4
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +0 -65
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.js +0 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +0 -6
- package/dist/components/SortSelect/index.js +0 -4
- package/dist/components/SortSelect/ui/SortSelect.js +0 -29
- package/dist/components/SortSelect/ui/SortSelect.types.js +0 -1
- package/dist/components/SummarySelect/index.js +0 -4
- package/dist/components/SummarySelect/ui/SummarySelect.js +0 -128
- package/dist/components/Switcher/index.js +0 -4
- package/dist/components/Switcher/ui/Switcher.js +0 -49
- package/dist/components/Switcher/ui/Switcher.types.js +0 -1
- package/dist/components/TabSelect/index.js +0 -4
- package/dist/components/TabSelect/ui/TabSelect.js +0 -49
- package/dist/components/TabSelect/ui/TabSelect.types.js +0 -1
- package/dist/components/TabSwitcher/index.js +0 -4
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +0 -28
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.js +0 -1
- package/dist/components/Tag/index.js +0 -4
- package/dist/components/Tag/ui/Tag.js +0 -79
- package/dist/components/Tag/ui/Tag.types.js +0 -20
- package/dist/components/Text/index.js +0 -4
- package/dist/components/Text/ui/Text.js +0 -22
- package/dist/components/Text/ui/Text.types.js +0 -1
- package/dist/components/TextArea/TextArea.js +0 -19
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/components/ZoomControls/index.js +0 -4
- package/dist/components/ZoomControls/ui/ZoomControls.js +0 -31
- package/dist/components/ZoomControls/ui/ZoomControls.types.js +0 -1
- package/dist/components/mobileButton/index.js +0 -4
- package/dist/components/mobileButton/ui/MobileButton.js +0 -64
- package/dist/components/mobileButton/ui/MobileButton.types.js +0 -6
- package/dist/index-DmANy9jd.js +0 -890
- package/dist/index-rKuIKazb.js +0 -45
- package/dist/layout/Layout.js +0 -11
- package/dist/layout/components/Header/Header.js +0 -164
- package/dist/layout/components/Menu.js +0 -28
- package/dist/main.js +0 -64
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
- package/dist/pages/ButtonsPage/Buttons.js +0 -134
- package/dist/pages/CheckboxPage/CheckboxPage.js +0 -224
- package/dist/pages/FormsPage/FormsPage.js +0 -78
- package/dist/pages/HomePage/HomePage.js +0 -7
- package/dist/pages/IconsPage/IconsPage.js +0 -41
- package/dist/pages/InputPage/InputPage.js +0 -35
- package/dist/pages/LogoPage/LogoPage.js +0 -38
- package/dist/pages/LotsPage/LotsPage.js +0 -542
- package/dist/pages/ModalsPage/ModalPage.js +0 -130
- package/dist/pages/SelectPage/SelectPage.js +0 -192
- package/dist/pages/SelectPage/const.js +0 -35
- package/dist/pages/TabsPage/TabsPage.js +0 -175
- package/dist/pages/TagsPage/TagsPage.js +0 -75
- package/dist/shared/checkLargeOffice.js +0 -12
- package/dist/shared/deepEqual.js +0 -16
- package/dist/shared/useClientWidth.js +0 -14
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
package/dist/App.d.ts
ADDED
package/dist/Router.d.ts
ADDED
|
@@ -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, onCLick, pre, children, post, variant, width, additionalClass, isLoading, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
lightBlue: string;
|
|
14
|
+
transparent: string;
|
|
15
|
+
};
|
|
16
|
+
export type btnVariant = keyof typeof BUTTON_VARIANTS;
|
|
17
|
+
type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
18
|
+
interface ButtonProps {
|
|
19
|
+
size?: btnSizes;
|
|
20
|
+
size_m?: btnSizes;
|
|
21
|
+
size_l?: btnSizes;
|
|
22
|
+
pre?: ReactNode;
|
|
23
|
+
post?: ReactNode;
|
|
24
|
+
children?: string | ReactNode;
|
|
25
|
+
variant?: btnVariant;
|
|
26
|
+
width?: btnWidth;
|
|
27
|
+
additionalClass?: string;
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
as?: 'button' | 'link';
|
|
30
|
+
onCLick?: () => any;
|
|
31
|
+
}
|
|
32
|
+
export type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
33
|
+
as?: 'button';
|
|
34
|
+
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
35
|
+
as?: 'link';
|
|
36
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export type CheckBoxVariant = 'light' | 'dark';
|
|
4
|
+
export type CheckBoxSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export interface CheckBoxProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
isChecked: boolean | undefined;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
modifierClassesStyle?: string[];
|
|
10
|
+
emitIsChecked?: (isChecked: boolean) => void;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
variant?: CheckBoxVariant;
|
|
13
|
+
size_s?: boolean;
|
|
14
|
+
size_l?: boolean;
|
|
15
|
+
size_m?: boolean;
|
|
16
|
+
text?: string;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export type CheckBoxComponent = ForwardRefExoticComponent<CheckBoxProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -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,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
text?: string;
|
|
4
|
+
error: boolean;
|
|
5
|
+
emitIsChecked?: (isChecked: boolean) => void;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
modalFontSize?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export type Ref = HTMLInputElement;
|
|
11
|
+
export declare const CheckBoxNew: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckboxSelect } from './ui/CheckboxSelect';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ICheckboxSelectProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
checkboxes: {
|
|
5
|
+
label: string;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
setValue: () => void;
|
|
9
|
+
}[];
|
|
10
|
+
addClassname?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CheckboxSelect: React.FC<ICheckboxSelectProps>;
|
|
13
|
+
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,10 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface InputProps {
|
|
4
|
+
label: string;
|
|
5
|
+
handleClear?: () => void;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
isShowClear?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TOption } from '../../Select/ui/Select.types';
|
|
2
|
+
|
|
3
|
+
interface IuseFilterWithSave {
|
|
4
|
+
selectOptions?: TOption[];
|
|
5
|
+
disabledOptions?: TOption[];
|
|
6
|
+
selectedValues?: TOption[];
|
|
7
|
+
tabs?: {
|
|
8
|
+
value: string;
|
|
9
|
+
state: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
selectedTabs?: {
|
|
12
|
+
value: string;
|
|
13
|
+
state: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
setSelectedTabs?: React.Dispatch<React.SetStateAction<{
|
|
16
|
+
value: string;
|
|
17
|
+
state: boolean;
|
|
18
|
+
}[]>>;
|
|
19
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
20
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
21
|
+
onSaveClick: () => void;
|
|
22
|
+
onClearClick: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const useFilterWithSave: ({ selectedTabs, selectedValues, onClickItem, disabledOptions, tabs, onChange, setSelectedTabs, onSaveClick, onClearClick, }: IuseFilterWithSave) => {
|
|
25
|
+
isMobile: boolean;
|
|
26
|
+
handleClearClick: () => void;
|
|
27
|
+
handleCloseModal: () => void;
|
|
28
|
+
handleOptionClick: (option: TOption) => void;
|
|
29
|
+
handleSaveClick: import('react').MouseEventHandler<HTMLButtonElement>;
|
|
30
|
+
localSelectedTabs: {
|
|
31
|
+
value: string;
|
|
32
|
+
state: boolean;
|
|
33
|
+
}[];
|
|
34
|
+
selectedOptions: TOption[];
|
|
35
|
+
setSelectedOptions: import('react').Dispatch<import('react').SetStateAction<TOption[]>>;
|
|
36
|
+
isModalOpen: boolean;
|
|
37
|
+
setIsModalOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
38
|
+
setLocalSelectedTabs: import('react').Dispatch<import('react').SetStateAction<{
|
|
39
|
+
value: string;
|
|
40
|
+
state: boolean;
|
|
41
|
+
}[]>>;
|
|
42
|
+
containerRef: import('react').MutableRefObject<HTMLDivElement | null>;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TOption } from '../../Select/ui/Select.types';
|
|
2
|
+
|
|
3
|
+
interface IFilterWithSave {
|
|
4
|
+
selectOptions?: TOption[];
|
|
5
|
+
disabledOptions?: TOption[];
|
|
6
|
+
selectedValues?: TOption[];
|
|
7
|
+
onSaveClick?: () => void;
|
|
8
|
+
onClearClick?: () => void;
|
|
9
|
+
onTabClick?: () => void;
|
|
10
|
+
tabs?: {
|
|
11
|
+
value: string;
|
|
12
|
+
state: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
selectedTabs?: {
|
|
15
|
+
value: string;
|
|
16
|
+
state: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
setSelectedTabs?: React.Dispatch<React.SetStateAction<{
|
|
19
|
+
value: string;
|
|
20
|
+
state: boolean;
|
|
21
|
+
}[]>>;
|
|
22
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
23
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
24
|
+
onCLickSelect?: () => void;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
btnName?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const FilterWithSave: ({ disabledOptions, tabs, selectOptions, onChange, onClick, selectedValues, setSelectedTabs, selectedTabs, onClickItem, onCLickSelect, onSaveClick, onClearClick, onTabClick, btnName, }: IFilterWithSave) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -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,50 @@
|
|
|
1
|
+
interface IModalFormProps {
|
|
2
|
+
isFormOpen: boolean;
|
|
3
|
+
setIsFormOpen: (isOpen: boolean) => void;
|
|
4
|
+
submitHandler: (data: IFormPageInputs) => void;
|
|
5
|
+
blurHandler?: ({ e, analyticParams }: {
|
|
6
|
+
e: unknown;
|
|
7
|
+
analyticParams: {
|
|
8
|
+
action_element: string;
|
|
9
|
+
action_element_status: 'error' | 'success';
|
|
10
|
+
block_name?: string;
|
|
11
|
+
};
|
|
12
|
+
}) => void;
|
|
13
|
+
modalWidth?: string;
|
|
14
|
+
isPhone?: boolean;
|
|
15
|
+
title: string;
|
|
16
|
+
isEmail?: boolean;
|
|
17
|
+
telegramLink?: string;
|
|
18
|
+
isTextArea?: boolean;
|
|
19
|
+
subTitle: string;
|
|
20
|
+
advCheckBox?: {
|
|
21
|
+
text: string;
|
|
22
|
+
isRequired: boolean;
|
|
23
|
+
} | undefined | null;
|
|
24
|
+
textAreaPlaceholder?: string;
|
|
25
|
+
rowsTextArea?: number;
|
|
26
|
+
isRequiredPhone?: boolean;
|
|
27
|
+
isNews?: boolean;
|
|
28
|
+
isRequiredEmail?: boolean;
|
|
29
|
+
isRequiredPhoneOrEmail?: boolean;
|
|
30
|
+
isAdvCheckBox?: boolean;
|
|
31
|
+
telegramClickHandler?: () => void;
|
|
32
|
+
addTitleClassName?: string;
|
|
33
|
+
block_name?: string;
|
|
34
|
+
createPortalObj?: {
|
|
35
|
+
domNode: HTMLElement | null;
|
|
36
|
+
key?: string | null | undefined;
|
|
37
|
+
};
|
|
38
|
+
emitCheckBox?: () => void;
|
|
39
|
+
emitAdvCheckBox?: () => void;
|
|
40
|
+
}
|
|
41
|
+
type IFormPageInputs = {
|
|
42
|
+
phone: string;
|
|
43
|
+
name: string;
|
|
44
|
+
email?: string;
|
|
45
|
+
personalCheckBox: boolean;
|
|
46
|
+
advCheckBox?: boolean;
|
|
47
|
+
textarea?: string;
|
|
48
|
+
};
|
|
49
|
+
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) => import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GroupedInputs } from './ui/GroupedInputs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input } from './ui/Input';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type inputWidth = 'auto' | 'full';
|
|
4
|
+
export declare const INPUT_VARIANTS: {
|
|
5
|
+
light: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
gray: string;
|
|
8
|
+
transparent: string;
|
|
9
|
+
};
|
|
10
|
+
export type inputVariant = keyof typeof INPUT_VARIANTS;
|
|
11
|
+
type inputSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
12
|
+
interface InputProps {
|
|
13
|
+
size_s?: inputSizes;
|
|
14
|
+
size_m?: inputSizes;
|
|
15
|
+
size_l?: inputSizes;
|
|
16
|
+
pre?: ReactNode;
|
|
17
|
+
error?: boolean;
|
|
18
|
+
post?: ReactNode;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
variant?: inputVariant;
|
|
21
|
+
width?: inputWidth;
|
|
22
|
+
additionalClass?: string;
|
|
23
|
+
isPhoneIMask?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export type IInputProps = InputHTMLAttributes<HTMLInputElement> & InputProps;
|
|
26
|
+
export declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & InputProps & {
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Logo } from './ui/Logo';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ILogoProps {
|
|
2
|
+
uk?: boolean;
|
|
3
|
+
variant?: 'black' | 'white' | 'value' | 'dom' | 'office' | 'newOffice' | 'newDom' | 'realty';
|
|
4
|
+
between?: boolean;
|
|
5
|
+
addClassName?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const logoVariant: {
|
|
9
|
+
black: string;
|
|
10
|
+
white: string;
|
|
11
|
+
value: string;
|
|
12
|
+
dom: string;
|
|
13
|
+
office: string;
|
|
14
|
+
newOffice: string;
|
|
15
|
+
newDom: string;
|
|
16
|
+
realty: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ILot } from '../ui/LotCard.types';
|
|
2
|
+
|
|
3
|
+
interface IUseLotCard {
|
|
4
|
+
lot: ILot;
|
|
5
|
+
rowConditions?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const useLotCard: ({ lot, rowConditions }: IUseLotCard) => {
|
|
8
|
+
currentClientWidth: number;
|
|
9
|
+
isBuilding: boolean;
|
|
10
|
+
LotCardInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
tagFeatures: {
|
|
12
|
+
text: string;
|
|
13
|
+
}[];
|
|
14
|
+
FloorByType: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
isTablet: boolean;
|
|
16
|
+
isDesktop: boolean;
|
|
17
|
+
getFloorStr: () => string;
|
|
18
|
+
isReserved: boolean;
|
|
19
|
+
areaStr: string;
|
|
20
|
+
floorStr: string;
|
|
21
|
+
isShowSnippet: boolean;
|
|
22
|
+
setIsShowSnippet: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
23
|
+
rowConditionsVar: boolean;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotCard } from './ui/LotCard';
|