ecars-web-lib 1.0.13 → 1.0.14
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/Accordion/AccordionComponent.d.ts +9 -0
- package/dist/components/Accordion/AccordionComponent.test.d.ts +1 -0
- package/dist/components/Accordion/components/AccordionArrow.d.ts +2 -0
- package/dist/components/Accordion/components/AccordionBlock.d.ts +6 -0
- package/dist/components/Accordion/components/AccordionButton.d.ts +6 -0
- package/dist/components/Accordion/components/AccordionContent.d.ts +6 -0
- package/dist/components/Accordion/components/AccordionLayout.d.ts +7 -0
- package/dist/components/Accordion/components/AccordionTitle.d.ts +5 -0
- package/dist/components/Accordion/constants.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts +8 -0
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Button/constants.d.ts +15 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +13 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.test.d.ts +1 -0
- package/dist/components/ButtonWithIcon/constants.d.ts +2 -0
- package/dist/components/Category/Category.d.ts +8 -0
- package/dist/components/Category/Category.test.d.ts +1 -0
- package/dist/components/Category/constants.d.ts +7 -0
- package/dist/components/Checkbox/CheckboxComponent.d.ts +3 -0
- package/dist/components/Checkbox/CheckboxComponent.test.d.ts +1 -0
- package/dist/components/Checkbox/components/CheckboxBlock.d.ts +7 -0
- package/dist/components/Checkbox/components/CheckboxIndicator.d.ts +2 -0
- package/dist/components/Checkbox/components/CheckboxInput.d.ts +3 -0
- package/dist/components/Checkbox/constants.d.ts +11 -0
- package/dist/components/Checkbox/index.d.ts +5 -0
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/components/Dropdown/DropdownComponent.d.ts +10 -0
- package/dist/components/Dropdown/components/DropdownBlock.d.ts +5 -0
- package/dist/components/Dropdown/components/DropdownCategory.d.ts +7 -0
- package/dist/components/Dropdown/components/DropdownList.d.ts +3 -0
- package/dist/components/Dropdown/components/DropdownOption.d.ts +8 -0
- package/dist/components/Dropdown/constants.d.ts +16 -0
- package/dist/components/Dropdown/index.d.ts +6 -0
- package/dist/components/FavButton/FavButton.d.ts +11 -0
- package/dist/components/FavButton/FavButton.test.d.ts +1 -0
- package/dist/components/FavButton/constants.d.ts +6 -0
- package/dist/components/Field/FieldComponent.d.ts +9 -0
- package/dist/components/Field/FieldComponent.test.d.ts +1 -0
- package/dist/components/Field/components/FieldError.d.ts +5 -0
- package/dist/components/Field/components/FieldLabel.d.ts +6 -0
- package/dist/components/Field/constants.d.ts +2 -0
- package/dist/components/Field/index.d.ts +4 -0
- package/dist/components/FilterAccordion/FilterAccordionComponent.d.ts +9 -0
- package/dist/components/FilterAccordion/FilterAccordionComponent.test.d.ts +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionArrow.d.ts +5 -0
- package/dist/components/FilterAccordion/components/FilterAccordionBlock.d.ts +5 -0
- package/dist/components/FilterAccordion/components/FilterAccordionContent.d.ts +6 -0
- package/dist/components/FilterAccordion/components/FilterAccordionLayout.d.ts +7 -0
- package/dist/components/FilterAccordion/components/FilterAccordionReset.d.ts +3 -0
- package/dist/components/FilterAccordion/constants.d.ts +3 -0
- package/dist/components/FilterAccordion/index.d.ts +7 -0
- package/dist/components/FilterButton/FilterButton.d.ts +8 -0
- package/dist/components/FilterButton/FilterButton.test.d.ts +1 -0
- package/dist/components/Gallery/Gallery.d.ts +8 -0
- package/dist/components/Gallery/Gallery.test.d.ts +0 -0
- package/dist/components/Gallery/constants.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +15 -0
- package/dist/components/Input/Input.test.d.ts +1 -0
- package/dist/components/Input/constants.d.ts +1 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +9 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.test.d.ts +1 -0
- package/dist/components/LinkWithIcon/constants.d.ts +2 -0
- package/dist/components/NavLink/NavLink.d.ts +8 -0
- package/dist/components/NavLink/NavLink.test.d.ts +1 -0
- package/dist/components/NavLink/constants.d.ts +1 -0
- package/dist/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/components/Pagination/PaginationComponent.d.ts +6 -0
- package/dist/components/Pagination/components/PaginationArrow.d.ts +8 -0
- package/dist/components/Pagination/components/PaginationBody.d.ts +3 -0
- package/dist/components/Pagination/components/PaginationPage.d.ts +8 -0
- package/dist/components/Pagination/constants.d.ts +16 -0
- package/dist/components/Pagination/index.d.ts +5 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts +7 -0
- package/dist/components/RangeSlider/RangeSlider.test.d.ts +1 -0
- package/dist/components/RouterLink/RouterLink.d.ts +11 -0
- package/dist/components/RouterLink/RouterLink.test.d.ts +1 -0
- package/dist/components/RouterLink/constants.d.ts +8 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/Select/SelectComponent.d.ts +13 -0
- package/dist/components/Select/components/SelectArrow.d.ts +2 -0
- package/dist/components/Select/components/SelectBlock.d.ts +6 -0
- package/dist/components/Select/components/SelectInput.d.ts +6 -0
- package/dist/components/Select/components/SelectList.d.ts +7 -0
- package/dist/components/Select/components/SelectOption.d.ts +7 -0
- package/dist/components/Select/components/SelectWrapper.d.ts +9 -0
- package/dist/components/Select/constants.d.ts +2 -0
- package/dist/components/Select/index.d.ts +8 -0
- package/dist/components/Slider/SliderComponent.d.ts +16 -0
- package/dist/components/Slider/constants.d.ts +1 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/SliderNavigate/SliderNavigate.d.ts +2 -0
- package/dist/components/SliderNavigate/SliderNavigate.test.d.ts +1 -0
- package/dist/components/SliderNavigate/components/NavigateButton.d.ts +7 -0
- package/dist/components/SliderNavigate/constants.d.ts +7 -0
- package/dist/index.cjs.js +13 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.es.js +5164 -0
- package/dist/index.es.js.map +1 -0
- package/dist/services/helpers.d.ts +3 -0
- package/dist/services/hoc/withBlockClass.d.ts +7 -0
- package/dist/services/hooks/useAccordionHeight.d.ts +9 -0
- package/dist/services/hooks/useClickOutside.d.ts +5 -0
- package/dist/services/hooks/useMatchMedia.d.ts +1 -0
- package/dist/services/icons.d.ts +13 -0
- package/dist/services/mocks.d.ts +12 -0
- package/dist/services/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ElementProps } from '../../services/types';
|
|
3
|
+
export interface Props extends ElementProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
textContent: string;
|
|
6
|
+
title: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const AccordionComponent: FC<Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ACCORDION_TEST_ID = "accordionTestId";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Accordion: import('react').FC<import('./AccordionComponent').Props> & {
|
|
2
|
+
Content: import('react').FC<import('./components/AccordionContent').Props>;
|
|
3
|
+
Arrow: import('react').FC;
|
|
4
|
+
Title: import('react').FC<import('./components/AccordionTitle').AccordionTitleProps>;
|
|
5
|
+
Block: import('react').FC<import('./components/AccordionBlock').Props>;
|
|
6
|
+
Layout: import('react').FC<import('./components/AccordionLayout').Props>;
|
|
7
|
+
Button: import('react').FC<import('./components/AccordionButton').Props>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { ButtonAttributesType, ButtonColorType, ButtonSizeType } from './constants';
|
|
3
|
+
import { ElementProps } from '../../services/types';
|
|
4
|
+
export interface ButtonProps extends ElementProps {
|
|
5
|
+
size: ButtonSizeType;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
color: ButtonColorType;
|
|
8
|
+
type?: ButtonAttributesType;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
isTransparent?: boolean;
|
|
12
|
+
withIcon?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Button: FC<ButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export declare const BUTTON_SIZE: Readonly<{
|
|
3
|
+
BIG: "big";
|
|
4
|
+
MEDIUM: "medium";
|
|
5
|
+
SMALL: "small";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const BUTTON_COLOR: Readonly<{
|
|
8
|
+
GREEN: "green";
|
|
9
|
+
WHITE: "white";
|
|
10
|
+
GRAY: "gray";
|
|
11
|
+
}>;
|
|
12
|
+
export type ButtonAttributesType = ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
13
|
+
export type ButtonSizeType = (typeof BUTTON_SIZE)[keyof typeof BUTTON_SIZE];
|
|
14
|
+
export type ButtonColorType = (typeof BUTTON_COLOR)[keyof typeof BUTTON_COLOR];
|
|
15
|
+
export declare const BUTTON_TEST_ID = "buttonTestId";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentType, FC, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
|
3
|
+
interface IconProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ButtonIconProps<T> extends ButtonProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
RightIcon?: ComponentType<T>;
|
|
9
|
+
LeftIcon?: ComponentType<T>;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ButtonWithIcon: FC<ButtonIconProps<IconProps>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CategoriesListType } from './constants';
|
|
3
|
+
import { ElementProps } from '../../services/types';
|
|
4
|
+
interface Props extends ElementProps {
|
|
5
|
+
category: CategoriesListType;
|
|
6
|
+
}
|
|
7
|
+
export declare const Category: FC<Props>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementProps } from '../../services/types';
|
|
2
|
+
export interface CheckboxProps extends ElementProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onChange?: (checked: boolean) => void;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CHECKBOX_TEST_ID = "checkboxTestId";
|
|
11
|
+
export declare const CHECKBOX_TEST_INPUT_ID = "checkboxTestInputId";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ElementProps } from '../../services/types';
|
|
3
|
+
import { DropdownProps, DropdownThemeType } from './constants';
|
|
4
|
+
export interface Props extends ElementProps, DropdownProps {
|
|
5
|
+
handleOpen: () => void;
|
|
6
|
+
onClickOutside: (isOpen: boolean) => void;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
theme: DropdownThemeType;
|
|
9
|
+
}
|
|
10
|
+
export declare const DropdownComponent: FC<Props>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface DropdownOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface DropdownProps {
|
|
7
|
+
onSelect: (value: string) => void;
|
|
8
|
+
category: string;
|
|
9
|
+
options: DropdownOption[];
|
|
10
|
+
}
|
|
11
|
+
export declare const DROPDOWN_TEST_ID = "dropdownTestId";
|
|
12
|
+
export declare const DROPDOWN_THEME: Readonly<{
|
|
13
|
+
DARK: "dark";
|
|
14
|
+
LIGHT: "light";
|
|
15
|
+
}>;
|
|
16
|
+
export type DropdownThemeType = (typeof DROPDOWN_THEME)[keyof typeof DROPDOWN_THEME];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Dropdown: import('react').FC<import('./DropdownComponent').Props> & {
|
|
2
|
+
List: import('react').FC<import('./constants').DropdownProps>;
|
|
3
|
+
Option: import('react').FC<import('./components/DropdownOption').Props>;
|
|
4
|
+
Category: import('react').FC<import('./components/DropdownCategory').Props>;
|
|
5
|
+
Block: import('react').FC<import('./components/DropdownBlock').Props>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import { FavButtonType } from './constants';
|
|
3
|
+
import { ElementProps } from '../../services/types';
|
|
4
|
+
interface Props extends ElementProps {
|
|
5
|
+
type: FavButtonType;
|
|
6
|
+
isFavorite?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const FavButton: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { ElementProps } from '../../services/types';
|
|
3
|
+
export interface Props extends ElementProps {
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
id?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const FieldComponent: FC<Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ElementProps } from '../../services/types';
|
|
3
|
+
export interface Props extends ElementProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const FilterAccordionComponent: FC<Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const FILTER_ACCORDION_BLOCK_CLASS = "filter-accordion";
|
|
2
|
+
export declare const FILTER_ACCORDION_TEST_ID = "filterAccordionTestId";
|
|
3
|
+
export declare const FilterAccordionHOC: import('react').FC<import('./components/FilterAccordionBlock').Props & import('../../services/hoc/withBlockClass').WithBlockProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FilterAccordion: import('react').FC<import('./FilterAccordionComponent').Props> & {
|
|
2
|
+
Layout: import('react').FC<import('./components/FilterAccordionLayout').Props>;
|
|
3
|
+
Arrow: import('react').FC<import('./components/FilterAccordionArrow').Props>;
|
|
4
|
+
Reset: import('react').FC<import('../..').ElementProps>;
|
|
5
|
+
Block: import('react').FC<import('./components/FilterAccordionBlock').Props & import('../../services/hoc/withBlockClass').WithBlockProps>;
|
|
6
|
+
Content: import('react').FC<import('./components/FilterAccordionContent').Props>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactImageGalleryItem } from 'react-image-gallery';
|
|
3
|
+
import { ElementProps } from '../../services/types';
|
|
4
|
+
interface Props extends ElementProps {
|
|
5
|
+
images: ReactImageGalleryItem[];
|
|
6
|
+
}
|
|
7
|
+
export declare const Gallery: FC<Props>;
|
|
8
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GALLERY_TEST_ID = "galleryTestId";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
import { ElementProps } from '../../services/types';
|
|
3
|
+
export interface InputProps extends ElementProps {
|
|
4
|
+
type?: HTMLInputTypeAttribute;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
name?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
hasError?: boolean;
|
|
12
|
+
isReadOnly?: boolean;
|
|
13
|
+
isTransparent?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Input: FC<InputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INPUT_TEST_ID = "inputTestId";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentType, FC, ReactNode } from 'react';
|
|
2
|
+
import { RouterLinkProps } from '../RouterLink/RouterLink';
|
|
3
|
+
interface Props extends RouterLinkProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
RightIcon?: ComponentType;
|
|
6
|
+
LeftIcon?: ComponentType;
|
|
7
|
+
}
|
|
8
|
+
export declare const LinkWithIcon: FC<Props>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MOCK_ROUTE_LINK = "/mock";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const PAGINATION_ARROW_DIRECTION: Readonly<{
|
|
2
|
+
LEFT: "left";
|
|
3
|
+
RIGHT: "right";
|
|
4
|
+
}>;
|
|
5
|
+
export interface PaginationProps {
|
|
6
|
+
pages: number[];
|
|
7
|
+
currentPage: number;
|
|
8
|
+
onPageClick: (page: number) => void;
|
|
9
|
+
onNextClick: () => void;
|
|
10
|
+
onPrevClick: () => void;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type PaginationArrowDirection = (typeof PAGINATION_ARROW_DIRECTION)[keyof typeof PAGINATION_ARROW_DIRECTION];
|
|
14
|
+
export declare const PAGINATION_TEST_ID = "paginationTestId";
|
|
15
|
+
export declare const PAGINATION_ARROW_LEFT_TEST_ID = "paginationArrowLeftTestId";
|
|
16
|
+
export declare const PAGINATION_ARROW_RIGHT_TEST_ID = "paginationArrowRightTestId";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Pagination: import('react').FC<import('./PaginationComponent').Props> & {
|
|
2
|
+
Page: import('react').FC<import('./components/PaginationPage').Props>;
|
|
3
|
+
Arrow: import('react').FC<import('./components/PaginationArrow').Props>;
|
|
4
|
+
Body: import('react').FC<import('./constants').PaginationProps>;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { RouterLinkColorType } from './constants';
|
|
3
|
+
import { ElementProps } from '../../services/types';
|
|
4
|
+
export interface RouterLinkProps extends ElementProps {
|
|
5
|
+
color: RouterLinkColorType;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
to?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
withIcon?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const RouterLink: FC<RouterLinkProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ROUTER_LINK_COLOR: Readonly<{
|
|
2
|
+
GREEN: "green";
|
|
3
|
+
GRAY: "gray";
|
|
4
|
+
DARK: "dark";
|
|
5
|
+
LIGHTGRAY: "lightgray";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const ROUTER_LINK_TEST_ID = "routerLinkTestId";
|
|
8
|
+
export type RouterLinkColorType = (typeof ROUTER_LINK_COLOR)[keyof typeof ROUTER_LINK_COLOR];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { InputProps } from '../Input/Input';
|
|
3
|
+
export interface Props extends InputProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
options: string[];
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
value: string;
|
|
9
|
+
handleSelect: (isOpen: boolean) => void;
|
|
10
|
+
onClickToOptions: (value: string) => void;
|
|
11
|
+
hasSearch?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const SelectComponent: FC<Props>;
|