profinansy-ui-lib 4.1.72 → 4.1.74

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.
@@ -1,3 +1,3 @@
1
1
  import { ILanguageSwitcherProps } from 'src/components/blocks/LanguageSwitcher/LanguageSwitcher.typed';
2
- declare const LanguageSwitcher: ({ variant }: ILanguageSwitcherProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const LanguageSwitcher: ({ variant, forceVisible }: ILanguageSwitcherProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { LanguageSwitcher };
@@ -2,4 +2,6 @@ export type TLanguageSwitcherVariant = 'header' | 'footer' | 'burger';
2
2
  export type TLanguageSwitcherSurface = 'header' | 'burger';
3
3
  export interface ILanguageSwitcherProps {
4
4
  variant: TLanguageSwitcherVariant;
5
+ /** Показать без query. Нужен для Storybook, в продукте не использовать */
6
+ forceVisible?: boolean;
5
7
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { SelectInstance } from 'react-select';
3
- import { ISelect } from './ScreenerSelect.typed';
3
+ import { ISelect } from 'src/components/uikit/ScreenerSelect/ScreenerSelect.typed';
4
4
  declare const ScreenerSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<ISelect & React.RefAttributes<SelectInstance<unknown, false, import("react-select").GroupBase<unknown>>>>>;
5
5
  export { ScreenerSelect };
@@ -0,0 +1,4 @@
1
+ type TCloseMenuHandler = () => void;
2
+ export declare const registerOpenScreenerSelect: (closeHandler: TCloseMenuHandler) => void;
3
+ export declare const unregisterOpenScreenerSelect: (closeHandler: TCloseMenuHandler) => void;
4
+ export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { MutableRefObject, ReactNode } from 'react';
2
2
  import { GroupBase, MultiValueProps, OptionProps, Props as TSelectProps, SingleValueProps } from 'react-select';
3
3
  import { TTheme } from '../../../theme/theme.typed';
4
4
  export interface IOption {
@@ -56,5 +56,6 @@ declare module 'react-select/dist/declarations/src/Select' {
56
56
  customTheme?: TTheme;
57
57
  customPositionMenu?: string;
58
58
  showSelectAll?: boolean;
59
+ menuSearchActiveRef?: MutableRefObject<boolean>;
59
60
  }
60
61
  }
@@ -0,0 +1,2 @@
1
+ export declare const MIN_OPTIONS_FOR_MENU_SEARCH = 10;
2
+ export declare const MENU_SEARCH_INPUT_ATTR = "data-screener-menu-search";
@@ -1,5 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const ListScroll: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const SearchWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const SearchIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
+ export declare const SearchInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
8
+ export declare const EmptyMessage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
9
  export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
5
- export declare const ChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -2,6 +2,9 @@ import { Locales } from 'src/common.types';
2
2
  export declare const EN_PROD_ORIGIN = "https://profinansy.ae";
3
3
  export declare const RU_PROD_ORIGIN = "https://profinansy.ru";
4
4
  export declare const EN_FALLBACK_PATH = "/market/dashboard";
5
+ /** Временный флаг показа переключателя: `?langSwitcher` или `?langSwitcher=1` */
6
+ export declare const LANGUAGE_SWITCHER_QUERY = "langSwitcher";
7
+ export declare const hasLanguageSwitcherQuery: (search?: string) => boolean;
5
8
  type TLocationParts = Pick<Location, 'hostname' | 'pathname' | 'search' | 'hash'>;
6
9
  export declare const stripLocalePrefix: (pathname: string) => string;
7
10
  export declare const isLocalOrQaHost: (hostname: string) => boolean;
@@ -0,0 +1,10 @@
1
+ export declare const screener_select_translation: {
2
+ ru: {
3
+ menu_search_placeholder: string;
4
+ menu_search_empty: string;
5
+ };
6
+ en: {
7
+ menu_search_placeholder: string;
8
+ menu_search_empty: string;
9
+ };
10
+ };