profinansy-ui-lib 3.1.25 → 3.1.27

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,6 +1,6 @@
1
1
  import { TTheme } from '../../../theme/theme.typed';
2
2
  export declare const getMode: (theme: TTheme, isActive: boolean) => {
3
- variant_1: {
3
+ support: {
4
4
  default: {
5
5
  color: string;
6
6
  background: string;
@@ -16,7 +16,7 @@ export declare const getMode: (theme: TTheme, isActive: boolean) => {
16
16
  iconColor: string;
17
17
  };
18
18
  };
19
- variant_2: {
19
+ base: {
20
20
  default: {
21
21
  color: string;
22
22
  background: string;
@@ -1,3 +1,3 @@
1
- import { TTabProps } from './Bubbles.typed';
2
- declare const Bubbles: (props: TTabProps) => JSX.Element;
1
+ import { TBubbleProps } from './Bubbles.typed';
2
+ declare const Bubbles: (props: TBubbleProps) => JSX.Element;
3
3
  export { Bubbles };
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: (props: import("./Bubbles.typed").TTabProps) => JSX.Element;
3
+ component: (props: import("./Bubbles.typed").TBubbleProps) => JSX.Element;
4
4
  tags: string[];
5
5
  parameters: {
6
6
  design: {
@@ -9,6 +9,7 @@ export declare const LeftButton: import("styled-components").StyledComponent<({
9
9
  export declare const RightButton: import("styled-components").StyledComponent<({ direction, onClick, className, style, disabled }: import("../SwiperButton/SwiperButton.typed").ISwiperButtonProps) => JSX.Element, DefaultTheme, {}, never>;
10
10
  export declare const Container: import("styled-components").StyledComponent<"div", DefaultTheme, {
11
11
  scroll: TScrollBubbles;
12
+ mobileIndent: number;
12
13
  }, never>;
13
14
  export declare const Button: import("styled-components").StyledComponent<"button", DefaultTheme, {
14
15
  isActive: boolean;
@@ -1,7 +1,7 @@
1
1
  import { MouseEvent, ReactNode } from 'react';
2
2
  import CSS from 'csstype';
3
3
  import { TCounterType } from '../Counter/Counter.typed';
4
- export type TabOption = {
4
+ type TBubbleOption = {
5
5
  /** Значения элементов */
6
6
  value?: string;
7
7
  /** Текст, который будет отображаться */
@@ -13,11 +13,11 @@ export type TabOption = {
13
13
  /** Слот справа */
14
14
  iconRight?: ReactNode;
15
15
  };
16
- export type TModeBubbles = 'variant_1' | 'variant_2';
16
+ export type TModeBubbles = 'support' | 'base';
17
17
  export type TScrollBubbles = 'base' | 'content' | 'none';
18
- export type TTabProps = {
18
+ export type TBubbleProps = {
19
19
  /** Список элементов **/
20
- options: TabOption[];
20
+ options: TBubbleOption[];
21
21
  /** Вид табов **/
22
22
  mode?: TModeBubbles;
23
23
  /** Стиль для списка **/
@@ -28,8 +28,11 @@ export type TTabProps = {
28
28
  isDataCountTop?: boolean;
29
29
  /** Тип Counter */
30
30
  counterType?: TCounterType;
31
+ /** Отступ справа и слева для мобильной версии */
32
+ mobileIndent?: number;
31
33
  /** Тип Скролла */
32
34
  scroll?: TScrollBubbles;
33
35
  /** Действие при нажатии на таб */
34
36
  onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
35
37
  };
38
+ export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { TTabProps } from '../../Bubbles.typed';
3
- declare const Content: React.ForwardRefExoticComponent<TTabProps & React.RefAttributes<HTMLDivElement>>;
2
+ import { TBubbleProps } from '../../Bubbles.typed';
3
+ declare const Content: React.ForwardRefExoticComponent<TBubbleProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export { Content };
@@ -1,3 +1,3 @@
1
- import { TTabProps } from '../../Bubbles.typed';
2
- declare const WithScroll: ({ options, selectedValue, onChange, mode, style, isDataCountTop, counterType, scroll }: TTabProps) => JSX.Element;
1
+ import { TBubbleProps } from '../../Bubbles.typed';
2
+ declare const WithScroll: ({ mobileIndent, options, selectedValue, onChange, mode, style, isDataCountTop, counterType, scroll }: TBubbleProps) => JSX.Element;
3
3
  export { WithScroll };
@@ -0,0 +1,3 @@
1
+ import { TTabProps } from './Tabs.typed';
2
+ declare const Tabs: ({ style, onChange, options, selectedValue, indent, counterType }: TTabProps) => JSX.Element;
3
+ export { Tabs };
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ style, onChange, options, selectedValue, indent, counterType }: import("./Tabs.typed").TTabProps) => JSX.Element;
4
+ tags: string[];
5
+ parameters: {
6
+ design: {
7
+ type: string;
8
+ url: string;
9
+ };
10
+ };
11
+ };
12
+ export default _default;
13
+ export declare const Tabs: () => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
3
+ export declare const Container: import("styled-components").StyledComponent<"div", DefaultTheme, {
4
+ indent: number;
5
+ }, never>;
6
+ export declare const Button: import("styled-components").StyledComponent<"button", DefaultTheme, {
7
+ isActive: boolean;
8
+ }, never>;
@@ -0,0 +1,25 @@
1
+ import { MouseEvent } from 'react';
2
+ import CSS from 'csstype';
3
+ import { TCounterType } from '../Counter/Counter.typed';
4
+ export type TabOption = {
5
+ /** Значения элементов */
6
+ value?: string;
7
+ /** Текст, который будет отображаться */
8
+ label: string;
9
+ /** Количество элементов */
10
+ dataCount?: number;
11
+ };
12
+ export type TTabProps = {
13
+ /** Список элементов **/
14
+ options: TabOption[];
15
+ /** Стиль для списка **/
16
+ style?: CSS.Properties;
17
+ /** Выбранное значение **/
18
+ selectedValue: string | null;
19
+ /** Тип Counter */
20
+ counterType?: TCounterType;
21
+ /** Отступ справа и слева */
22
+ indent?: number;
23
+ /** Действие при нажатии на таб */
24
+ onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
25
+ };
@@ -0,0 +1 @@
1
+ export { Tabs } from './Tabs';
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import { Radio } from './components/uikit/Radio';
13
13
  import { Portal } from './components/uikit/Portal';
14
14
  import { Loader } from './components/uikit/Loader';
15
15
  import { Button } from './components/uikit/Button';
16
+ import { Tabs } from './components/uikit/Tabs';
16
17
  import { TextButton } from './components/uikit/TextButton';
17
18
  import { RegexPattern, Input } from './components/uikit/Input';
18
19
  import { ErrorText } from './components/uikit/ErrorText';
@@ -43,4 +44,4 @@ import eventBus from './utils/eventBus';
43
44
  import { BusEvent } from './utils/eventBus/events';
44
45
  import { INSTRUMENTS_TYPES } from './hooks/useSearchInstruments';
45
46
  import { AnimationFunctions } from './constants/animation/animation';
46
- export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, Footer, Header, SideMenu, Alert, SwiperButton, Counter, Checkbox, Radio, Portal, Loader, Button, TextButton, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, Typography, DefaultTooltip, Modal, SideModal, CircleButton, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useGetHeaderHeight, useHeaderHeightListener, LayoutSideMenu };
47
+ export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, Footer, Header, SideMenu, Alert, SwiperButton, Counter, Checkbox, Radio, Portal, Loader, Button, Tabs, TextButton, RegexPattern, Input, Textarea, ErrorText, Avatar, Tooltip, Typography, DefaultTooltip, Modal, SideModal, CircleButton, ArrowButton, Bubbles, HiddenText, PasswordInput, Dropdown, ModalMobile, Popup, IPopup, FieldRow, Card, Switch, Spinner, Skeleton, TabListCell, palette, ThemeProvider, useMode, useHidingChat, useHidingFromApp, useGetHeaderHeight, useHeaderHeightListener, LayoutSideMenu };