profinansy-ui-lib 3.1.27 → 3.1.29
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.styled.d.ts +1 -0
- package/dist/components/uikit/Bubbles/Bubbles.typed.d.ts +14 -2
- package/dist/components/uikit/Bubbles/components/WithScroll/WithScroll.d.ts +1 -1
- 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/index.d.ts +2 -1
- package/dist/index.js +36 -10
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare const RightButton: import("styled-components").StyledComponent<({
|
|
|
10
10
|
export declare const Container: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
11
11
|
scroll: TScrollBubbles;
|
|
12
12
|
mobileIndent: number;
|
|
13
|
+
mode: TModeBubbles;
|
|
13
14
|
}, never>;
|
|
14
15
|
export declare const Button: import("styled-components").StyledComponent<"button", DefaultTheme, {
|
|
15
16
|
isActive: boolean;
|
|
@@ -22,8 +22,6 @@ export type TBubbleProps = {
|
|
|
22
22
|
mode?: TModeBubbles;
|
|
23
23
|
/** Стиль для списка **/
|
|
24
24
|
style?: CSS.Properties;
|
|
25
|
-
/** Выбранное значение **/
|
|
26
|
-
selectedValue: string | null;
|
|
27
25
|
/** Режим отображения чисел */
|
|
28
26
|
isDataCountTop?: boolean;
|
|
29
27
|
/** Тип Counter */
|
|
@@ -32,7 +30,21 @@ export type TBubbleProps = {
|
|
|
32
30
|
mobileIndent?: number;
|
|
33
31
|
/** Тип Скролла */
|
|
34
32
|
scroll?: TScrollBubbles;
|
|
33
|
+
} & (Single | Multiple);
|
|
34
|
+
export type Single = {
|
|
35
|
+
/** Мульти выбор значений **/
|
|
36
|
+
multi?: false;
|
|
37
|
+
/** Выбранное значение **/
|
|
38
|
+
selectedValue?: string;
|
|
35
39
|
/** Действие при нажатии на таб */
|
|
36
40
|
onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
37
41
|
};
|
|
42
|
+
export type Multiple = {
|
|
43
|
+
/** Мульти выбор значений **/
|
|
44
|
+
multi: true;
|
|
45
|
+
/** Выбранное значение **/
|
|
46
|
+
selectedValue?: string[];
|
|
47
|
+
/** Действие при нажатии на таб */
|
|
48
|
+
onChange?: (value: string[], event: MouseEvent<HTMLButtonElement>) => void;
|
|
49
|
+
};
|
|
38
50
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TBubbleProps } from '../../Bubbles.typed';
|
|
2
|
-
declare const WithScroll: (
|
|
2
|
+
declare const WithScroll: (props: 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';
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ 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';
|
|
@@ -44,4 +45,4 @@ import eventBus from './utils/eventBus';
|
|
|
44
45
|
import { BusEvent } from './utils/eventBus/events';
|
|
45
46
|
import { INSTRUMENTS_TYPES } from './hooks/useSearchInstruments';
|
|
46
47
|
import { AnimationFunctions } from './constants/animation/animation';
|
|
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 };
|
|
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 };
|