profinansy-ui-lib 3.1.27 → 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/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 +30 -7
- package/package.json +1 -1
|
@@ -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 };
|