profinansy-ui-lib 3.4.47 → 3.5.2

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 (35) hide show
  1. package/dist/api/instruments/instruments.d.ts +1 -9
  2. package/dist/api/instruments/instruments.typed.d.ts +0 -40
  3. package/dist/api/search/search.d.ts +7 -0
  4. package/dist/api/search/search.typed.d.ts +85 -0
  5. package/dist/components/blocks/header/components/Search/Search.d.ts +1 -3
  6. package/dist/components/blocks/header/components/Search/Search.styled.d.ts +0 -1
  7. package/dist/components/blocks/header/components/Search/components/Content.d.ts +0 -12
  8. package/dist/components/blocks/search/Search.const.d.ts +20 -0
  9. package/dist/components/blocks/search/Search.d.ts +5 -13
  10. package/dist/components/blocks/search/Search.styled.d.ts +0 -1
  11. package/dist/components/blocks/search/Search.utils.d.ts +3 -0
  12. package/dist/components/blocks/search/components/{Item/Item.d.ts → InstrumentItem/InstrumentItem.d.ts} +2 -3
  13. package/dist/components/blocks/search/components/{Item/Item.styled.d.ts → InstrumentItem/InstrumentItem.styled.d.ts} +1 -3
  14. package/dist/components/blocks/search/components/Item.styled.d.ts +10 -0
  15. package/dist/components/blocks/search/components/Items/Items.d.ts +4 -5
  16. package/dist/components/blocks/search/components/LinkItem/LinkItem.d.ts +8 -0
  17. package/dist/components/blocks/search/components/Navigation/Navigation.d.ts +19 -0
  18. package/dist/components/blocks/search/components/NewsItem/NewsItem.d.ts +8 -0
  19. package/dist/components/blocks/search/components/SearchNotFound/SearchNotFound.d.ts +5 -0
  20. package/dist/components/blocks/search/components/SearchNotFound/SearchNotFound.styled.d.ts +4 -0
  21. package/dist/components/blocks/search/components/Selections/Selections.d.ts +11 -0
  22. package/dist/components/blocks/search/components/{UserRequests → Selections/UserRequests}/UserRequests.d.ts +3 -4
  23. package/dist/components/blocks/search/components/{UserRequests → Selections/UserRequests}/UserRequests.styled.d.ts +1 -1
  24. package/dist/components/blocks/search/hooks/useAdaptDataForSearch.d.ts +10 -0
  25. package/dist/components/blocks/search/hooks/useGetSearchData.d.ts +7 -0
  26. package/dist/components/blocks/search/hooks/useUpdateInput.d.ts +5 -0
  27. package/dist/components/blocks/sideMenu/components/Search/Search.d.ts +3 -1
  28. package/dist/components/blocks/sideMenu/components/Search/compoenents/SearchInput/SearchInput.d.ts +1 -6
  29. package/dist/components/blocks/sideMenu/components/Search/compoenents/SearchWindow/SearchWindow.d.ts +3 -4
  30. package/dist/components/blocks/sideMenu/components/Search/compoenents/SearchWindow/SearchWindow.styled.d.ts +2 -3
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.js +212 -174
  33. package/dist/utils/eventBus/events.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/hooks/useSearchInstruments.d.ts +0 -25
@@ -1,13 +1,5 @@
1
- import { IInstruments, IFavourite, ILastSearch } from './instruments.typed';
1
+ import { ILastSearch } from './instruments.typed';
2
2
  import { IApiSettings } from '../api';
3
- export declare const getInstruments: (value: string, apiSettings: IApiSettings) => Promise<{
4
- data: IInstruments;
5
- ok: boolean;
6
- }>;
7
- export declare const getFavouritesInstruments: (apiSettings: IApiSettings) => Promise<{
8
- data: IFavourite[];
9
- ok: boolean;
10
- }>;
11
3
  export declare const getLastUserSearch: (apiSettings: IApiSettings) => Promise<{
12
4
  data: ILastSearch[] | null;
13
5
  ok: boolean;
@@ -1,43 +1,3 @@
1
- export interface IInstrument {
2
- code: string;
3
- price: number;
4
- priceChangePositive: boolean;
5
- priceChange: number;
6
- company_id: number;
7
- currency_code: string;
8
- countryFlag: string;
9
- description: string;
10
- instrument_id: number;
11
- isin: string;
12
- logo: string;
13
- lot_size: number;
14
- market_code: string;
15
- market_id: string;
16
- portfolioType: string;
17
- symbol: string;
18
- Y?: number;
19
- _key: string;
20
- }
21
- export interface IInstrumentType {
22
- count: number;
23
- items: Array<IInstrument>;
24
- }
25
- export interface IInstruments {
26
- bonds: IInstrumentType;
27
- crypto: IInstrumentType;
28
- currency: IInstrumentType;
29
- etfs: IInstrumentType;
30
- index: IInstrumentType;
31
- stocks: IInstrumentType;
32
- }
33
- export interface IFavourite {
34
- id: number;
35
- instruments: number[];
36
- is_collapsed: boolean;
37
- name: string;
38
- sort_num: number;
39
- user_id: number;
40
- }
41
1
  export interface ILastSearch {
42
2
  instrument_id: number;
43
3
  code: string;
@@ -0,0 +1,7 @@
1
+ import { IApiSettings } from '../api';
2
+ import { ISearch } from './search.typed';
3
+ import { SearchCategories } from '../../components/blocks/search/Search.const';
4
+ export declare const getSearch: (value: string, category: SearchCategories, apiSettings: IApiSettings) => Promise<{
5
+ data: ISearch;
6
+ ok: boolean;
7
+ }>;
@@ -0,0 +1,85 @@
1
+ export interface ISearch {
2
+ categories: {
3
+ key: 'category';
4
+ categoryKey: string;
5
+ nameRu: string;
6
+ nameEn: string;
7
+ subcategories: ISubcategory[];
8
+ }[];
9
+ }
10
+ export interface ISubcategory {
11
+ key: 'subcategory';
12
+ nameEn: string;
13
+ nameRu: string;
14
+ subcategoryKey: string;
15
+ total: number;
16
+ children: IInstrumentSearch[] | ILinkItem[] | INewsItem[];
17
+ }
18
+ export interface ILinkItem {
19
+ category: {
20
+ key: string;
21
+ nameRu: string;
22
+ nameEn: string;
23
+ };
24
+ id: number;
25
+ link: string;
26
+ nameEn: string;
27
+ nameRu: string;
28
+ subcategory: {
29
+ key: string;
30
+ nameRu: string;
31
+ nameEn: string;
32
+ };
33
+ type: string;
34
+ }
35
+ export interface INewsItem {
36
+ category: {
37
+ key: string;
38
+ nameRu: string;
39
+ nameEn: string;
40
+ };
41
+ content: string;
42
+ date: string;
43
+ id: number;
44
+ link: string;
45
+ nameEn: string;
46
+ nameRu: string;
47
+ subcategory: {
48
+ key: string;
49
+ nameRu: string;
50
+ nameEn: string;
51
+ };
52
+ type: string;
53
+ }
54
+ export declare enum INSTRUMENTS_TYPES {
55
+ stocks = "stock",
56
+ bonds = "bond",
57
+ etfs = "etf",
58
+ crypto = "crypto",
59
+ index = "index",
60
+ currency = "currency",
61
+ futures = "future"
62
+ }
63
+ export interface IInstrumentSearch {
64
+ category: string;
65
+ subcategory: string;
66
+ code: string;
67
+ price: number;
68
+ priceChangePositive: boolean;
69
+ priceChange: number;
70
+ company_id: number;
71
+ currency_code: string;
72
+ countryFlag: string;
73
+ description: string;
74
+ instrument_id: number;
75
+ isin: string;
76
+ logo: string;
77
+ lot_size: number;
78
+ market_code: string;
79
+ market_id: string;
80
+ portfolioType: string;
81
+ symbol: string;
82
+ type?: string;
83
+ Y?: number;
84
+ _key: string;
85
+ }
@@ -1,8 +1,6 @@
1
1
  interface IProps {
2
- isLoader: boolean;
3
2
  isOpen: boolean;
4
3
  setIsOpen: (val: boolean) => void;
5
- onChange: (val: string) => void;
6
4
  }
7
- declare const Search: ({ isOpen, setIsOpen, isLoader, onChange }: IProps) => JSX.Element;
5
+ declare const Search: ({ isOpen, setIsOpen }: IProps) => JSX.Element;
8
6
  export { Search };
@@ -3,4 +3,3 @@ export declare const Icon: import("styled-components").StyledComponent<any, impo
3
3
  export declare const InputContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const Close: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const Loader: import("styled-components").StyledComponent<({ size, color, className }: import("../../../../uikit/Spinner/Spinner.typed").ISpinner) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,22 +1,10 @@
1
1
  import { ElementType } from 'react';
2
- import { INSTRUMENTS_TYPES } from '../../../../../../hooks/useSearchInstruments';
3
- import { IInstruments } from '../../../../../../api/instruments/instruments.typed';
4
2
  import { IApiSettings } from '../../../../../../api/api';
5
3
  interface IProps {
6
- isEmpty: boolean;
7
- data: IInstruments | null;
8
4
  isOpen: boolean;
9
5
  hostname: string;
10
- favourites: number[];
11
- tabs: {
12
- label: string;
13
- value: INSTRUMENTS_TYPES;
14
- dataCount?: number;
15
- }[];
16
- selectedTab: INSTRUMENTS_TYPES;
17
6
  apiSettings: IApiSettings;
18
7
  LinkWrapper: ElementType;
19
- setSelectedTab: (val: INSTRUMENTS_TYPES) => void;
20
8
  onClose: () => void;
21
9
  }
22
10
  declare const SearchContent: ({ isOpen, ...rest }: IProps) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ export declare enum SearchCategories {
2
+ invest = "invest",
3
+ money = "money",
4
+ lenta = "lenta",
5
+ idv = "idv",
6
+ lms = "lms",
7
+ calculators = "calculators",
8
+ club = "club",
9
+ profile = "profile"
10
+ }
11
+ export declare const SearchIcons: {
12
+ invest: any;
13
+ money: any;
14
+ lenta: any;
15
+ idv: any;
16
+ lms: any;
17
+ calculators: any;
18
+ club: any;
19
+ profile: any;
20
+ };
@@ -1,22 +1,14 @@
1
1
  import { ElementType } from 'react';
2
- import { IInstruments } from '../../../api/instruments/instruments.typed';
3
- import { INSTRUMENTS_TYPES } from '../../../hooks/useSearchInstruments';
4
2
  import { IApiSettings } from '../../../api/api';
3
+ import { SearchCategories } from './Search.const';
5
4
  interface IProps {
6
- isEmpty: boolean;
7
- data: IInstruments | null;
8
5
  hostname: string;
9
- favourites: number[];
10
- tabs: {
11
- label: string;
12
- value: INSTRUMENTS_TYPES;
13
- dataCount?: number;
14
- }[];
15
- selectedTab: INSTRUMENTS_TYPES;
16
- setSelectedTab: (val: INSTRUMENTS_TYPES) => void;
6
+ defaultTab?: string;
7
+ isSideMenu?: boolean;
8
+ category?: SearchCategories;
17
9
  apiSettings: IApiSettings;
18
10
  LinkWrapper: ElementType;
19
11
  onClose: () => void;
20
12
  }
21
- declare const Search: ({ isEmpty, hostname, setSelectedTab, selectedTab, tabs, data, favourites, apiSettings, LinkWrapper, onClose }: IProps) => JSX.Element;
13
+ declare const Search: ({ hostname, defaultTab, apiSettings, LinkWrapper, onClose, isSideMenu, category }: IProps) => JSX.Element;
22
14
  export { Search };
@@ -1,4 +1,3 @@
1
1
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const Icons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
2
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
3
  export declare const Loader: import("styled-components").StyledComponent<({ size, color, className }: import("../../uikit/Spinner/Spinner.typed").ISpinner) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,3 @@
1
+ import { TSideMenuCategory } from '../sideMenu/SideModal.typed';
2
+ import { SearchCategories } from './Search.const';
3
+ export declare const convertSideMenuCategoryToSearch: (category: TSideMenuCategory) => SearchCategories.invest | SearchCategories.money | SearchCategories.idv | SearchCategories.lms | SearchCategories.calculators | SearchCategories.club;
@@ -17,10 +17,9 @@ interface IProps {
17
17
  };
18
18
  href: string;
19
19
  isLast: boolean;
20
- isFavorite: boolean;
21
20
  apiSettings: IApiSettings;
22
21
  LinkWrapper: ElementType;
23
22
  onClose?: () => void;
24
23
  }
25
- declare const Item: ({ item, apiSettings, onClose, LinkWrapper, href, isLast, isFavorite }: IProps) => JSX.Element;
26
- export { Item };
24
+ declare const InstrumentItem: ({ item, apiSettings, onClose, LinkWrapper, href, isLast }: IProps) => JSX.Element;
25
+ export { InstrumentItem };
@@ -3,11 +3,9 @@ export declare const Wrapper: import("styled-components").StyledComponent<"div",
3
3
  export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const Border: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const Left: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const LogoContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const Favourite: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object, string | number | symbol>;
8
6
  export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
7
  export declare const Right: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
- export declare const Profit: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../../uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const Profit: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
9
  export declare const PriceContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
12
10
  isProfit: boolean;
13
11
  }, never>;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Border: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Breadcrumbs: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Dot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const Left: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const Right: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const Icon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const Highlight: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -1,14 +1,13 @@
1
1
  import { ElementType } from 'react';
2
- import { IInstrumentType } from '../../../../../api/instruments/instruments.typed';
2
+ import { ISubcategory } from '../../../../../api/search/search.typed';
3
3
  import { IApiSettings } from '../../../../../api/api';
4
4
  interface IProps {
5
- data: IInstrumentType;
6
- activeTab: string;
5
+ listItems: ISubcategory['children'];
6
+ searchText: string;
7
7
  hostname: string;
8
- favourites: number[];
9
8
  onClose?: () => void;
10
9
  LinkWrapper: ElementType;
11
10
  apiSettings: IApiSettings;
12
11
  }
13
- declare const Items: ({ hostname, data, activeTab, favourites, onClose, apiSettings, LinkWrapper }: IProps) => JSX.Element;
12
+ declare const Items: ({ hostname, listItems, searchText, onClose, apiSettings, LinkWrapper }: IProps) => JSX.Element;
14
13
  export { Items };
@@ -0,0 +1,8 @@
1
+ import { ILinkItem } from '../../../../../api/search/search.typed';
2
+ interface IProps {
3
+ item: ILinkItem;
4
+ searchText: string;
5
+ isLast: boolean;
6
+ }
7
+ declare const LinkItem: ({ item, searchText, isLast }: IProps) => JSX.Element;
8
+ export { LinkItem };
@@ -0,0 +1,19 @@
1
+ import { SearchCategories } from '../../Search.const';
2
+ interface IProps {
3
+ tabs: {
4
+ value: string;
5
+ label: string;
6
+ }[];
7
+ bubbles: {
8
+ value: string;
9
+ label: string;
10
+ }[];
11
+ category?: SearchCategories;
12
+ isSideMenu: boolean;
13
+ selectedTab: string;
14
+ selectedBubble: string;
15
+ setSelectedTab: (val: string) => void;
16
+ setSelectedBubble: (val: string) => void;
17
+ }
18
+ declare const Navigation: ({ tabs, bubbles, selectedBubble, selectedTab, category, isSideMenu, setSelectedTab, setSelectedBubble }: IProps) => JSX.Element;
19
+ export { Navigation };
@@ -0,0 +1,8 @@
1
+ import { INewsItem } from '../../../../../api/search/search.typed';
2
+ interface IProps {
3
+ item: INewsItem;
4
+ searchText: string;
5
+ isLast: boolean;
6
+ }
7
+ declare const NewsItem: ({ item, searchText, isLast }: IProps) => JSX.Element;
8
+ export { NewsItem };
@@ -0,0 +1,5 @@
1
+ interface IProps {
2
+ isEmpty: boolean;
3
+ }
4
+ declare const SearchNotFound: ({ isEmpty }: IProps) => JSX.Element;
5
+ export { SearchNotFound };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Text: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../../uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,11 @@
1
+ import { ElementType } from 'react';
2
+ import { IApiSettings } from '../../../../../api/api';
3
+ interface IProps {
4
+ hostname: string;
5
+ isRenderSelections: boolean;
6
+ apiSettings: IApiSettings;
7
+ LinkWrapper: ElementType;
8
+ onClose: () => void;
9
+ }
10
+ declare const Selections: ({ hostname, apiSettings, onClose, LinkWrapper, isRenderSelections }: IProps) => JSX.Element;
11
+ export { Selections };
@@ -1,16 +1,15 @@
1
1
  import { ElementType } from 'react';
2
- import { IApiSettings } from '../../../../../api/api';
3
- import { ILastSearch } from '../../../../../api/instruments/instruments.typed';
2
+ import { IApiSettings } from '../../../../../../api/api';
3
+ import { ILastSearch } from '../../../../../../api/instruments/instruments.typed';
4
4
  interface IProps {
5
5
  items: ILastSearch[];
6
6
  apiSettings: IApiSettings;
7
7
  type: 'last' | 'top';
8
8
  title: string;
9
9
  hostname: string;
10
- favourites: number[];
11
10
  LinkWrapper: ElementType;
12
11
  handleDelete: () => void;
13
12
  onClose?: () => void;
14
13
  }
15
- declare const UserRequests: ({ items, apiSettings, type, title, hostname, favourites, handleDelete, LinkWrapper, onClose }: IProps) => JSX.Element;
14
+ declare const UserRequests: ({ items, apiSettings, type, title, hostname, handleDelete, LinkWrapper, onClose }: IProps) => JSX.Element;
16
15
  export { UserRequests };
@@ -1,3 +1,3 @@
1
1
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const ShowMore: import("styled-components").StyledComponent<({ type, text, style, onClick, className, iconLeft, iconRight, disabled }: import("../../../../uikit/TextButton/TextButton.typed").ITextButton) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const ShowMore: import("styled-components").StyledComponent<({ type, text, style, onClick, className, iconLeft, iconRight, disabled }: import("../../../../../uikit/TextButton/TextButton.typed").ITextButton) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,10 @@
1
+ import { ISearch } from '../../../../api/search/search.typed';
2
+ export declare const useAdaptDataForSearch: (data: ISearch, defaultTab: string) => {
3
+ listItems: import("../../../../api/search/search.typed").IInstrumentSearch[] | import("../../../../api/search/search.typed").ILinkItem[];
4
+ tabs: any[];
5
+ selectedTab: any;
6
+ bubbles: any[];
7
+ selectedBubble: any;
8
+ setSelectedBubble: import("react").Dispatch<any>;
9
+ setSelectedTab: import("react").Dispatch<any>;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { ISearch } from '../../../../api/search/search.typed';
2
+ import { IApiSettings } from '../../../../api/api';
3
+ import { SearchCategories } from '../Search.const';
4
+ export declare const useGetSearchData: (category: SearchCategories, apiSettings: IApiSettings) => {
5
+ data: ISearch;
6
+ searchText: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useUpdateInput: () => {
2
+ handleChange: (val: string) => void;
3
+ value: string;
4
+ setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
5
+ };
@@ -1,7 +1,9 @@
1
+ import { SearchCategories } from '../../../search/Search.const';
1
2
  interface IProps {
3
+ category: SearchCategories;
2
4
  hostname: string;
3
5
  isOpenMode: boolean;
4
6
  height: number;
5
7
  }
6
- declare const Search: ({ isOpenMode, height, hostname }: IProps) => JSX.Element;
8
+ declare const Search: ({ isOpenMode, height, hostname, category }: IProps) => JSX.Element;
7
9
  export { Search };
@@ -1,6 +1 @@
1
- interface IProps {
2
- isLoader: boolean;
3
- onChange: (val: string) => void;
4
- }
5
- export declare const SearchInput: ({ onChange, isLoader }: IProps) => JSX.Element;
6
- export {};
1
+ export declare const SearchInput: () => JSX.Element;
@@ -1,14 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- import { INSTRUMENTS_TYPES } from '../../../../../../../hooks/useSearchInstruments';
2
+ import { SearchCategories } from '../../../../../search/Search.const';
3
3
  interface IProps {
4
4
  onClose: () => void;
5
5
  children?: ReactNode;
6
6
  isOpen: boolean;
7
7
  height: number;
8
8
  hostname: string;
9
- isDefaultTab: boolean;
10
- selectedTab: INSTRUMENTS_TYPES;
11
- setSelectedTab: (val: INSTRUMENTS_TYPES) => void;
9
+ category: SearchCategories;
10
+ defaultTab?: string;
12
11
  position: {
13
12
  top: number;
14
13
  left: number;
@@ -9,6 +9,7 @@ declare const Window: import("styled-components").StyledComponent<"div", import(
9
9
  mode: string;
10
10
  }, never>;
11
11
  declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
+ declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
13
  declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
14
  declare const Close: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
14
15
  declare const Search: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object, string | number | symbol>;
@@ -17,7 +18,5 @@ declare const InputContainer: import("styled-components").StyledComponent<"div",
17
18
  declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
18
19
  value: string;
19
20
  }, never>;
20
- declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
21
  declare const SearchContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
- declare const Loader: import("styled-components").StyledComponent<({ size, color, className }: import("../../../../../../uikit/Spinner/Spinner.typed").ISpinner) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
23
- export { Wrapper, Layout, Window, Content, SearchContent, Header, Close, Input, InputContainer, Search, Delete, Divider, Loader };
22
+ export { Wrapper, Layout, Window, Content, SearchContent, Title, Close, Input, InputContainer, Search, Delete, Header };
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ import { ThemeProvider, useMode } from './theme/ThemeProvider';
66
66
  import eventBus from './utils/eventBus';
67
67
  import { BusEvent } from './utils/eventBus/events';
68
68
  import { setCookie, getCookie, deleteCookie } from './utils/cookie';
69
- import { INSTRUMENTS_TYPES } from './hooks/useSearchInstruments';
69
+ import { INSTRUMENTS_TYPES } from './api/search/search.typed';
70
70
  import { HEIGHT_HEADER } from './constants/common';
71
71
  import { AnimationFunctions } from './constants/animation/animation';
72
72
  import { ListItemStyle } from './styles/List';