profinansy-ui-lib 3.1.26 → 3.1.28
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/uikit/Bubbles/Bubbles.const.d.ts +2 -2
- package/dist/components/uikit/Bubbles/Bubbles.d.ts +2 -2
- package/dist/components/uikit/Bubbles/Bubbles.stories.d.ts +1 -1
- package/dist/components/uikit/Bubbles/Bubbles.typed.d.ts +6 -5
- package/dist/components/uikit/Bubbles/components/Content/Content.d.ts +2 -2
- package/dist/components/uikit/Bubbles/components/WithScroll/WithScroll.d.ts +2 -2
- package/dist/components/uikit/SegmentControl/SegmentControl.d.ts +3 -0
- package/dist/components/uikit/SegmentControl/SegmentControl.stories.d.ts +13 -0
- package/dist/components/uikit/SegmentControl/SegmentControl.styled.d.ts +9 -0
- package/dist/components/uikit/SegmentControl/SegmentControl.typed.d.ts +24 -0
- package/dist/components/uikit/SegmentControl/index.d.ts +1 -0
- package/dist/components/uikit/Tabs/Tabs.d.ts +3 -0
- package/dist/components/uikit/Tabs/Tabs.stories.d.ts +13 -0
- package/dist/components/uikit/Tabs/Tabs.styled.d.ts +8 -0
- package/dist/components/uikit/Tabs/Tabs.typed.d.ts +25 -0
- package/dist/components/uikit/Tabs/index.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +76 -13
- package/dist/theme/theme.const.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TTheme } from '../../../theme/theme.typed';
|
|
2
2
|
export declare const getMode: (theme: TTheme, isActive: boolean) => {
|
|
3
|
-
|
|
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
|
-
|
|
19
|
+
base: {
|
|
20
20
|
default: {
|
|
21
21
|
color: string;
|
|
22
22
|
background: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Bubbles: (props:
|
|
1
|
+
import { TBubbleProps } from './Bubbles.typed';
|
|
2
|
+
declare const Bubbles: (props: TBubbleProps) => JSX.Element;
|
|
3
3
|
export { Bubbles };
|
|
@@ -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
|
-
|
|
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 = '
|
|
16
|
+
export type TModeBubbles = 'support' | 'base';
|
|
17
17
|
export type TScrollBubbles = 'base' | 'content' | 'none';
|
|
18
|
-
export type
|
|
18
|
+
export type TBubbleProps = {
|
|
19
19
|
/** Список элементов **/
|
|
20
|
-
options:
|
|
20
|
+
options: TBubbleOption[];
|
|
21
21
|
/** Вид табов **/
|
|
22
22
|
mode?: TModeBubbles;
|
|
23
23
|
/** Стиль для списка **/
|
|
@@ -28,10 +28,11 @@ export type TTabProps = {
|
|
|
28
28
|
isDataCountTop?: boolean;
|
|
29
29
|
/** Тип Counter */
|
|
30
30
|
counterType?: TCounterType;
|
|
31
|
-
/** Отступ справа для мобильной версии */
|
|
31
|
+
/** Отступ справа и слева для мобильной версии */
|
|
32
32
|
mobileIndent?: number;
|
|
33
33
|
/** Тип Скролла */
|
|
34
34
|
scroll?: TScrollBubbles;
|
|
35
35
|
/** Действие при нажатии на таб */
|
|
36
36
|
onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
37
37
|
};
|
|
38
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const Content: React.ForwardRefExoticComponent<
|
|
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 {
|
|
2
|
-
declare const WithScroll: ({ mobileIndent, options, selectedValue, onChange, mode, style, isDataCountTop, counterType, scroll }:
|
|
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,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ style, options, onChange, selectedValue, size, type }: import("./SegmentControl.typed").TSegmentControlProps) => 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 SegmentControl: () => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TSegmentControlSize, TSegmentControlType } from './SegmentControl.typed';
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
mode: TSegmentControlType;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const Item: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
size: TSegmentControlSize;
|
|
8
|
+
mode: TSegmentControlType;
|
|
9
|
+
}, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import CSS from 'csstype';
|
|
2
|
+
import { MouseEvent } from 'react';
|
|
3
|
+
export type SegmentOption = {
|
|
4
|
+
/** Значения элементов */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Текст, который будет отображаться */
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export type TSegmentControlSize = 'S' | 'M';
|
|
10
|
+
export type TSegmentControlType = 'primary' | 'content';
|
|
11
|
+
export type TSegmentControlProps = {
|
|
12
|
+
/** Список элементов **/
|
|
13
|
+
options: SegmentOption[];
|
|
14
|
+
/** Стиль для списка **/
|
|
15
|
+
style?: CSS.Properties;
|
|
16
|
+
/** Выбранное значение **/
|
|
17
|
+
selectedValue: string | null;
|
|
18
|
+
/** Размер сегментов **/
|
|
19
|
+
size?: TSegmentControlSize;
|
|
20
|
+
/** Тип сегментов **/
|
|
21
|
+
type?: TSegmentControlType;
|
|
22
|
+
/** Действие при нажатии на сегмент */
|
|
23
|
+
onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentControl } from './SegmentControl';
|
|
@@ -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
|
@@ -8,11 +8,13 @@ import { useGetHeaderHeight, useHeaderHeightListener } from './hooks/useHeaderHe
|
|
|
8
8
|
import { Alert } from './components/uikit/Alert';
|
|
9
9
|
import { SwiperButton } from './components/uikit/SwiperButton';
|
|
10
10
|
import { Counter } from './components/uikit/Counter';
|
|
11
|
+
import { SegmentControl } from './components/uikit/SegmentControl';
|
|
11
12
|
import { Checkbox } from './components/uikit/Checkbox';
|
|
12
13
|
import { Radio } from './components/uikit/Radio';
|
|
13
14
|
import { Portal } from './components/uikit/Portal';
|
|
14
15
|
import { Loader } from './components/uikit/Loader';
|
|
15
16
|
import { Button } from './components/uikit/Button';
|
|
17
|
+
import { Tabs } from './components/uikit/Tabs';
|
|
16
18
|
import { TextButton } from './components/uikit/TextButton';
|
|
17
19
|
import { RegexPattern, Input } from './components/uikit/Input';
|
|
18
20
|
import { ErrorText } from './components/uikit/ErrorText';
|
|
@@ -43,4 +45,4 @@ import eventBus from './utils/eventBus';
|
|
|
43
45
|
import { BusEvent } from './utils/eventBus/events';
|
|
44
46
|
import { INSTRUMENTS_TYPES } from './hooks/useSearchInstruments';
|
|
45
47
|
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 };
|
|
48
|
+
export { AnimationFunctions, INSTRUMENTS_TYPES, eventBus, BusEvent, Footer, Header, SideMenu, Alert, SegmentControl, 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 };
|