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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { Option } from '../ui/SortSelect.types';
|
|
3
|
+
import { TOption } from '../../Select/ui/Select.types.ts';
|
|
4
|
+
|
|
5
|
+
interface IUseSortSelect {
|
|
6
|
+
selectedOption: Option | null;
|
|
7
|
+
setSelectedOption?: (event: Option | null) => void;
|
|
8
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
isMobile: boolean;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
onChange?: (event: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
onClickOption?: (option: TOption | TOption[]) => void;
|
|
18
|
+
onBlur?: (event: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const useSortSelect: ({ selectedOption, setSelectedOption, setIsOpen, containerRef, onBlur, onChange, onClickOption, isMobile, placeholder, }: IUseSortSelect) => {
|
|
24
|
+
handleDocumentClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
25
|
+
handleBlur: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
26
|
+
getInputValue: () => string;
|
|
27
|
+
getOption: (option: Option) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SortSelect } from './ui/SortSelect';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TOption } from '../../Select/ui/Select.types.ts';
|
|
2
|
+
|
|
3
|
+
export interface Option {
|
|
4
|
+
value: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SortSelectProps {
|
|
8
|
+
options?: Option[];
|
|
9
|
+
selectedOption: Option | null;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onChange?: (event: Option | null) => void;
|
|
14
|
+
onBlur?: (event: Option) => void;
|
|
15
|
+
additionalClass?: string;
|
|
16
|
+
mini?: boolean;
|
|
17
|
+
openOnTop?: boolean;
|
|
18
|
+
onOpenClick?: () => void;
|
|
19
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
20
|
+
onCLickSelect?: () => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SummarySelect } from './ui/SummarySelect.tsx';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MultiSelectProps } from '../../Select/ui/Select.types';
|
|
2
|
+
|
|
3
|
+
interface ISummarySelectProps extends MultiSelectProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
isShowReset?: boolean;
|
|
6
|
+
isLast?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const SummarySelect: React.FC<ISummarySelectProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switcher } from './ui/Switcher';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabSelect } from './ui/TabSelect';
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
grayDesign: string;
|
|
22
|
+
};
|
|
23
|
+
export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
|
|
24
|
+
declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
+
Item: import('react').ForwardRefExoticComponent<Omit<BaseInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
26
|
+
};
|
|
27
|
+
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<ITabSwitcherItem & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
};
|
|
6
|
+
export { SwitcherNamespace as TabSwitcher };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const TAB_SWITCHER_VARIANTS: {
|
|
4
|
+
whiteRow: string;
|
|
5
|
+
grayRow: string;
|
|
6
|
+
whiteRowGrayLabel: string;
|
|
7
|
+
};
|
|
8
|
+
type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
|
|
9
|
+
export interface ITabSwitcherItem extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
10
|
+
addItemClassName?: string;
|
|
11
|
+
addTextClass?: string;
|
|
12
|
+
addLabelClassname?: string;
|
|
13
|
+
index: number;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
itemsLength: number;
|
|
16
|
+
width?: string;
|
|
17
|
+
width_m?: string;
|
|
18
|
+
mini?: boolean;
|
|
19
|
+
width_l?: string;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
isLongOn?: boolean;
|
|
22
|
+
size_s?: TabSizes;
|
|
23
|
+
size_m?: TabSizes;
|
|
24
|
+
size_l?: TabSizes;
|
|
25
|
+
}
|
|
26
|
+
export interface TabSwitcherProps {
|
|
27
|
+
variant?: TABS_VARIANTS;
|
|
28
|
+
addClassName?: string;
|
|
29
|
+
isApart?: boolean;
|
|
30
|
+
col?: boolean;
|
|
31
|
+
children: React.ReactElement[];
|
|
32
|
+
}
|
|
33
|
+
export type TABS_VARIANTS = keyof typeof TAB_SWITCHER_VARIANTS;
|
|
34
|
+
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,33 @@
|
|
|
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
|
+
fullWhite: string;
|
|
12
|
+
transparent: string;
|
|
13
|
+
shadeWhite: string;
|
|
14
|
+
transWhite: string;
|
|
15
|
+
whiteGrayStroke: string;
|
|
16
|
+
blackStroke: string;
|
|
17
|
+
lightBlue: string;
|
|
18
|
+
lightGray: string;
|
|
19
|
+
whiteGray: string;
|
|
20
|
+
};
|
|
21
|
+
export type tagVariant = keyof typeof TAG_VARIANTS;
|
|
22
|
+
type tagSizes = 'medium' | 'tiny' | 'large' | 'small' | 'preLarge' | 'mini' | 'tiny-7px' | 'tiny-10px' | 'small-10px' | 'small-13px';
|
|
23
|
+
interface TagProps {
|
|
24
|
+
size?: tagSizes;
|
|
25
|
+
size_m?: tagSizes;
|
|
26
|
+
size_l?: tagSizes;
|
|
27
|
+
children?: string | ReactNode;
|
|
28
|
+
variant?: tagVariant;
|
|
29
|
+
width?: tagWidth;
|
|
30
|
+
additionalClass?: string;
|
|
31
|
+
}
|
|
32
|
+
export type ComponentProps = TagProps & React.HTMLAttributes<HTMLDivElement>;
|
|
33
|
+
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Menu: () => import("react/jsx-runtime").JSX.Element;
|