ecars-web-lib 1.0.24 → 1.0.26

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.
Files changed (113) hide show
  1. package/dist/components/Accordion/AccordionComponent.d.ts +9 -0
  2. package/dist/components/Accordion/AccordionComponent.test.d.ts +1 -0
  3. package/dist/components/Accordion/components/AccordionArrow.d.ts +2 -0
  4. package/dist/components/Accordion/components/AccordionBlock.d.ts +6 -0
  5. package/dist/components/Accordion/components/AccordionButton.d.ts +6 -0
  6. package/dist/components/Accordion/components/AccordionContent.d.ts +6 -0
  7. package/dist/components/Accordion/components/AccordionLayout.d.ts +7 -0
  8. package/dist/components/Accordion/components/AccordionTitle.d.ts +5 -0
  9. package/dist/components/Accordion/constants.d.ts +1 -0
  10. package/dist/components/Accordion/index.d.ts +8 -0
  11. package/dist/components/Button/Button.d.ts +14 -0
  12. package/dist/components/Button/Button.test.d.ts +1 -0
  13. package/dist/components/Button/constants.d.ts +15 -0
  14. package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +13 -0
  15. package/dist/components/ButtonWithIcon/ButtonWithIcon.test.d.ts +1 -0
  16. package/dist/components/ButtonWithIcon/constants.d.ts +2 -0
  17. package/dist/components/Category/Category.d.ts +8 -0
  18. package/dist/components/Category/Category.test.d.ts +1 -0
  19. package/dist/components/Category/constants.d.ts +7 -0
  20. package/dist/components/Checkbox/CheckboxComponent.d.ts +3 -0
  21. package/dist/components/Checkbox/CheckboxComponent.test.d.ts +1 -0
  22. package/dist/components/Checkbox/components/CheckboxBlock.d.ts +7 -0
  23. package/dist/components/Checkbox/components/CheckboxIndicator.d.ts +2 -0
  24. package/dist/components/Checkbox/components/CheckboxInput.d.ts +3 -0
  25. package/dist/components/Checkbox/constants.d.ts +11 -0
  26. package/dist/components/Checkbox/index.d.ts +5 -0
  27. package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
  28. package/dist/components/Dropdown/DropdownComponent.d.ts +10 -0
  29. package/dist/components/Dropdown/components/DropdownBlock.d.ts +5 -0
  30. package/dist/components/Dropdown/components/DropdownCategory.d.ts +7 -0
  31. package/dist/components/Dropdown/components/DropdownList.d.ts +3 -0
  32. package/dist/components/Dropdown/components/DropdownOption.d.ts +8 -0
  33. package/dist/components/Dropdown/constants.d.ts +17 -0
  34. package/dist/components/Dropdown/index.d.ts +6 -0
  35. package/dist/components/FavButton/FavButton.d.ts +11 -0
  36. package/dist/components/FavButton/FavButton.test.d.ts +1 -0
  37. package/dist/components/FavButton/constants.d.ts +6 -0
  38. package/dist/components/Field/FieldComponent.d.ts +9 -0
  39. package/dist/components/Field/FieldComponent.test.d.ts +1 -0
  40. package/dist/components/Field/components/FieldError.d.ts +5 -0
  41. package/dist/components/Field/components/FieldLabel.d.ts +6 -0
  42. package/dist/components/Field/constants.d.ts +2 -0
  43. package/dist/components/Field/index.d.ts +4 -0
  44. package/dist/components/FilterAccordion/FilterAccordionComponent.d.ts +9 -0
  45. package/dist/components/FilterAccordion/FilterAccordionComponent.test.d.ts +1 -0
  46. package/dist/components/FilterAccordion/components/FilterAccordionArrow.d.ts +5 -0
  47. package/dist/components/FilterAccordion/components/FilterAccordionBlock.d.ts +5 -0
  48. package/dist/components/FilterAccordion/components/FilterAccordionContent.d.ts +6 -0
  49. package/dist/components/FilterAccordion/components/FilterAccordionLayout.d.ts +7 -0
  50. package/dist/components/FilterAccordion/components/FilterAccordionReset.d.ts +3 -0
  51. package/dist/components/FilterAccordion/constants.d.ts +3 -0
  52. package/dist/components/FilterAccordion/index.d.ts +7 -0
  53. package/dist/components/FilterButton/FilterButton.d.ts +8 -0
  54. package/dist/components/FilterButton/FilterButton.test.d.ts +1 -0
  55. package/dist/components/Gallery/Gallery.d.ts +8 -0
  56. package/dist/components/Gallery/Gallery.test.d.ts +0 -0
  57. package/dist/components/Gallery/constants.d.ts +1 -0
  58. package/dist/components/Input/Input.d.ts +15 -0
  59. package/dist/components/Input/Input.test.d.ts +1 -0
  60. package/dist/components/Input/constants.d.ts +1 -0
  61. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +9 -0
  62. package/dist/components/LinkWithIcon/LinkWithIcon.test.d.ts +1 -0
  63. package/dist/components/LinkWithIcon/constants.d.ts +2 -0
  64. package/dist/components/Logo/Logo.d.ts +7 -0
  65. package/dist/components/Logo/Logo.test.d.ts +1 -0
  66. package/dist/components/NavLink/NavLink.d.ts +8 -0
  67. package/dist/components/NavLink/NavLink.test.d.ts +1 -0
  68. package/dist/components/NavLink/constants.d.ts +1 -0
  69. package/dist/components/Pagination/Pagination.test.d.ts +1 -0
  70. package/dist/components/Pagination/PaginationComponent.d.ts +6 -0
  71. package/dist/components/Pagination/components/PaginationArrow.d.ts +8 -0
  72. package/dist/components/Pagination/components/PaginationBody.d.ts +3 -0
  73. package/dist/components/Pagination/components/PaginationPage.d.ts +8 -0
  74. package/dist/components/Pagination/constants.d.ts +16 -0
  75. package/dist/components/Pagination/index.d.ts +5 -0
  76. package/dist/components/RangeSlider/RangeSlider.d.ts +7 -0
  77. package/dist/components/RangeSlider/RangeSlider.test.d.ts +1 -0
  78. package/dist/components/RouterLink/RouterLink.d.ts +11 -0
  79. package/dist/components/RouterLink/RouterLink.test.d.ts +1 -0
  80. package/dist/components/RouterLink/constants.d.ts +8 -0
  81. package/dist/components/Select/Select.test.d.ts +1 -0
  82. package/dist/components/Select/SelectComponent.d.ts +13 -0
  83. package/dist/components/Select/components/SelectArrow.d.ts +2 -0
  84. package/dist/components/Select/components/SelectBlock.d.ts +6 -0
  85. package/dist/components/Select/components/SelectInput.d.ts +6 -0
  86. package/dist/components/Select/components/SelectList.d.ts +7 -0
  87. package/dist/components/Select/components/SelectOption.d.ts +7 -0
  88. package/dist/components/Select/components/SelectWrapper.d.ts +9 -0
  89. package/dist/components/Select/constants.d.ts +2 -0
  90. package/dist/components/Select/index.d.ts +8 -0
  91. package/dist/components/Slider/SliderComponent.d.ts +16 -0
  92. package/dist/components/Slider/constants.d.ts +1 -0
  93. package/dist/components/Slider/index.d.ts +3 -0
  94. package/dist/components/SliderNavigate/SliderNavigate.d.ts +2 -0
  95. package/dist/components/SliderNavigate/SliderNavigate.test.d.ts +1 -0
  96. package/dist/components/SliderNavigate/components/NavigateButton.d.ts +7 -0
  97. package/dist/components/SliderNavigate/constants.d.ts +7 -0
  98. package/dist/index.cjs.js +2 -0
  99. package/dist/index.cjs.js.map +1 -0
  100. package/dist/index.css +1 -0
  101. package/dist/index.d.ts +33 -0
  102. package/dist/index.es.js +3815 -0
  103. package/dist/index.es.js.map +1 -0
  104. package/dist/services/helpers.d.ts +3 -0
  105. package/dist/services/hoc/withBlockClass.d.ts +7 -0
  106. package/dist/services/hooks/useAccordionHeight.d.ts +9 -0
  107. package/dist/services/hooks/useClickOutside.d.ts +5 -0
  108. package/dist/services/hooks/useDropdown.d.ts +10 -0
  109. package/dist/services/hooks/useMatchMedia.d.ts +1 -0
  110. package/dist/services/icons.d.ts +16 -0
  111. package/dist/services/mocks.d.ts +13 -0
  112. package/dist/services/types.d.ts +7 -0
  113. 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,2 @@
1
+ import { FC } from 'react';
2
+ export declare const AccordionArrow: FC;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { AccordionTitleProps } from './AccordionTitle';
3
+ export interface Props extends AccordionTitleProps {
4
+ onClick: () => void;
5
+ }
6
+ export declare const AccordionBlock: FC<Props>;
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface Props {
3
+ children: ReactNode;
4
+ onClick: () => void;
5
+ }
6
+ export declare const AccordionButton: FC<Props>;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export interface Props {
3
+ isOpen: boolean;
4
+ children: string;
5
+ }
6
+ export declare const AccordionContent: FC<Props>;
@@ -0,0 +1,7 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ElementProps } from '../../../services/types';
3
+ export interface Props extends ElementProps {
4
+ children: ReactNode;
5
+ isOpen: boolean;
6
+ }
7
+ export declare const AccordionLayout: FC<Props>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface AccordionTitleProps {
3
+ title: string;
4
+ }
5
+ export declare const AccordionTitle: FC<AccordionTitleProps>;
@@ -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,2 @@
1
+ export declare const LEFT_ICON_BUTTON_TEST_ID = "leftIconButtonTestId";
2
+ export declare const RIGHT_ICON_BUTTON_TEST_ID = "rightIconButtonTestId";
@@ -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,7 @@
1
+ export declare const CATEGORIES_LIST: Readonly<{
2
+ GUIDES: "guides";
3
+ REVIEWS: "reviews";
4
+ NEWS: "news";
5
+ }>;
6
+ export type CategoriesListType = (typeof CATEGORIES_LIST)[keyof typeof CATEGORIES_LIST];
7
+ export declare const CATEGORY_TEST_ID = "categoryTestId";
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CheckboxProps } from './constants';
3
+ export declare const CheckboxComponent: FC<CheckboxProps>;
@@ -0,0 +1,7 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ElementProps } from '../../../services/types';
3
+ export interface Props extends ElementProps {
4
+ htmlFor?: string;
5
+ children: ReactNode;
6
+ }
7
+ export declare const CheckboxBlock: FC<Props>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const CheckboxIndicator: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CheckboxProps } from '../constants';
3
+ export declare const CheckboxInput: FC<CheckboxProps>;
@@ -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,5 @@
1
+ export declare const Checkbox: import('react').FC<import('./constants').CheckboxProps> & {
2
+ Block: import('react').FC<import('./components/CheckboxBlock').Props>;
3
+ Indicator: import('react').FC;
4
+ Input: import('react').FC<import('./constants').CheckboxProps>;
5
+ };
@@ -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,5 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface Props {
3
+ children: ReactNode;
4
+ }
5
+ export declare const DropdownBlock: FC<Props>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { DropdownOption } from '../constants';
3
+ export interface Props {
4
+ item?: DropdownOption;
5
+ handleOpen: () => void;
6
+ }
7
+ export declare const DropdownCategory: FC<Props>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { DropdownProps } from '../constants';
3
+ export declare const DropdownList: FC<DropdownProps>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { DropdownOption as DropdownOptionType } from '../constants';
3
+ export interface Props {
4
+ isSelected: boolean;
5
+ option: DropdownOptionType;
6
+ onSelect: (option: DropdownOptionType) => void;
7
+ }
8
+ export declare const DropdownOption: FC<Props>;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DropdownOption {
3
+ value: string;
4
+ name: string;
5
+ label?: ReactNode;
6
+ }
7
+ export interface DropdownProps {
8
+ onSelect: (option: DropdownOption) => void;
9
+ selectedOption: DropdownOption;
10
+ options: DropdownOption[];
11
+ }
12
+ export declare const DROPDOWN_TEST_ID = "dropdownTestId";
13
+ export declare const DROPDOWN_THEME: Readonly<{
14
+ DARK: "dark";
15
+ LIGHT: "light";
16
+ }>;
17
+ 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,6 @@
1
+ export declare const FAV_BUTTON_TYPE: Readonly<{
2
+ TRANSPARENT: "transparent";
3
+ CIRCLE: "circle";
4
+ }>;
5
+ export type FavButtonType = (typeof FAV_BUTTON_TYPE)[keyof typeof FAV_BUTTON_TYPE];
6
+ export declare const FAV_BUTTON_TEST_ID = "favButtonTestId";
@@ -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,5 @@
1
+ import { FC } from 'react';
2
+ export interface Props {
3
+ errorText: string;
4
+ }
5
+ export declare const FieldError: FC<Props>;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export interface Props {
3
+ htmlFor?: string;
4
+ text: string;
5
+ }
6
+ export declare const FieldLabel: FC<Props>;
@@ -0,0 +1,2 @@
1
+ export declare const FIELD_TEST_ID = "fieldTestId";
2
+ export declare const FIELD_LABEL_TEST_ID = "fieldLabelTestId";
@@ -0,0 +1,4 @@
1
+ export declare const Field: import('react').FC<import('./FieldComponent').Props> & {
2
+ Label: import('react').FC<import('./components/FieldLabel').Props>;
3
+ Error: import('react').FC<import('./components/FieldError').Props>;
4
+ };
@@ -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,5 @@
1
+ import { FC } from 'react';
2
+ export interface Props {
3
+ onClick: () => void;
4
+ }
5
+ export declare const FilterAccordionArrow: FC<Props>;
@@ -0,0 +1,5 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface Props {
3
+ children: ReactNode;
4
+ }
5
+ export declare const FilterAccordionBlock: FC<Props>;
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface Props {
3
+ isOpen: boolean;
4
+ children: ReactNode;
5
+ }
6
+ export declare const FilterAccordionContent: FC<Props>;
@@ -0,0 +1,7 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ElementProps } from '../../../services/types';
3
+ export interface Props extends ElementProps {
4
+ isOpen: boolean;
5
+ children: ReactNode;
6
+ }
7
+ export declare const FilterAccordionLayout: FC<Props>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { ElementProps } from '../../../services/types';
3
+ export declare const FilterAccordionReset: FC<ElementProps>;
@@ -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,8 @@
1
+ import { FC } from 'react';
2
+ import { ElementProps } from '../../services/types';
3
+ interface Props extends ElementProps {
4
+ children: string;
5
+ onClick?: () => void;
6
+ }
7
+ export declare const FilterButton: FC<Props>;
8
+ 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,2 @@
1
+ export declare const LEFT_ICON_LINK_TEST_ID = "leftIconLinkTestId";
2
+ export declare const RIGHT_ICON_LINK_TEST_ID = "rightIconLinkTestId";
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { ElementProps } from '../../services/types';
3
+ interface Props extends ElementProps {
4
+ src: string;
5
+ }
6
+ export declare const Logo: FC<Props>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ElementProps } from '../../services/types';
3
+ interface Props extends ElementProps {
4
+ to: string;
5
+ children: ReactNode;
6
+ }
7
+ export declare const NavLink: FC<Props>;
8
+ 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,6 @@
1
+ import { FC } from 'react';
2
+ import { PaginationProps } from './constants';
3
+ import { ElementProps } from '../../services/types';
4
+ export interface Props extends PaginationProps, ElementProps {
5
+ }
6
+ export declare const PaginationComponent: FC<Props>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { PaginationArrowDirection } from '../constants';
3
+ export interface Props {
4
+ direction: PaginationArrowDirection;
5
+ disabled?: boolean;
6
+ onClick: () => void;
7
+ }
8
+ export declare const PaginationArrow: FC<Props>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { PaginationProps } from '../constants';
3
+ export declare const PaginationBody: FC<PaginationProps>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export interface Props {
3
+ isSelected: boolean;
4
+ page: number;
5
+ disabled?: boolean;
6
+ onClick?: () => void;
7
+ }
8
+ export declare const PaginationPage: FC<Props>;
@@ -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,7 @@
1
+ import { FC } from 'react';
2
+ import { SliderProps } from 'rc-slider';
3
+ import { ElementProps } from '../../services/types';
4
+ interface Props extends SliderProps, ElementProps {
5
+ }
6
+ export declare const RangeSlider: FC<Props>;
7
+ export {};
@@ -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>;