profinansy-ui-lib 3.1.34 → 3.1.36
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 +1 -1
- package/dist/components/uikit/SegmentControl/SegmentControl.stories.d.ts +1 -1
- package/dist/components/uikit/SegmentControl/SegmentControl.styled.d.ts +12 -0
- package/dist/components/uikit/SegmentControl/SegmentControl.typed.d.ts +9 -2
- package/dist/index.js +57 -19
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TSegmentControlProps } from './SegmentControl.typed';
|
|
2
|
-
declare const SegmentControl: ({ style, options, onChange, selectedValue, size, type }: TSegmentControlProps) => JSX.Element;
|
|
2
|
+
declare const SegmentControl: ({ style, options, onChange, selectedValue, size, type, counterType }: TSegmentControlProps) => JSX.Element;
|
|
3
3
|
export { SegmentControl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ style, options, onChange, selectedValue, size, type }: import("./SegmentControl.typed").TSegmentControlProps) => JSX.Element;
|
|
3
|
+
component: ({ style, options, onChange, selectedValue, size, type, counterType }: import("./SegmentControl.typed").TSegmentControlProps) => JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
5
|
parameters: {
|
|
6
6
|
design: {
|
|
@@ -2,8 +2,20 @@ import { TSegmentControlSize, TSegmentControlType } from './SegmentControl.typed
|
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
mode: TSegmentControlType;
|
|
4
4
|
}, never>;
|
|
5
|
+
export declare const Selector: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
+
mode: TSegmentControlType;
|
|
7
|
+
left: number;
|
|
8
|
+
width: number;
|
|
9
|
+
}, never>;
|
|
5
10
|
export declare const Item: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
6
11
|
isActive: boolean;
|
|
7
12
|
size: TSegmentControlSize;
|
|
8
13
|
mode: TSegmentControlType;
|
|
9
14
|
}, never>;
|
|
15
|
+
export declare const Divider: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
16
|
+
isHide: boolean;
|
|
17
|
+
}, never>;
|
|
18
|
+
export declare const Text: import("styled-components").StyledComponent<({ tag, className, children, variant, title, ...props }: import("../Typography/Typography.typed").ITypographyProps & import("react").CSSProperties) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
+
export declare const Icon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
20
|
+
isLabel: boolean;
|
|
21
|
+
}, never>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import CSS from 'csstype';
|
|
2
|
-
import { MouseEvent } from 'react';
|
|
2
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
3
|
+
import { TCounterType } from '../Counter/Counter.typed';
|
|
3
4
|
export type SegmentOption = {
|
|
4
5
|
/** Значения элементов */
|
|
5
6
|
value?: string;
|
|
6
7
|
/** Текст, который будет отображаться */
|
|
7
|
-
label
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Количество элементов */
|
|
10
|
+
dataCount?: number;
|
|
11
|
+
/** Иконка */
|
|
12
|
+
icon?: ReactNode;
|
|
8
13
|
};
|
|
9
14
|
export type TSegmentControlSize = 'S' | 'M';
|
|
10
15
|
export type TSegmentControlType = 'primary' | 'content';
|
|
@@ -19,6 +24,8 @@ export type TSegmentControlProps = {
|
|
|
19
24
|
size?: TSegmentControlSize;
|
|
20
25
|
/** Тип сегментов **/
|
|
21
26
|
type?: TSegmentControlType;
|
|
27
|
+
/** Тип Counter */
|
|
28
|
+
counterType?: TCounterType;
|
|
22
29
|
/** Действие при нажатии на сегмент */
|
|
23
30
|
onChange?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
24
31
|
};
|