profinansy-ui-lib 3.1.33 → 3.1.35
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/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/uikit/Checkbox/Checkbox.stories.d.ts +8 -1
- package/dist/components/uikit/Checkbox/Checkbox.styled.d.ts +7 -8
- package/dist/components/uikit/Checkbox/Checkbox.typed.d.ts +18 -2
- package/dist/index.js +47 -38
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICheckbox } from './Checkbox.typed';
|
|
2
|
-
declare const Checkbox: (
|
|
2
|
+
declare const Checkbox: ({ checked, text, htmlText, name, onChange, size, form, color, verticalAlign, horizontalAlign, value, isTextLeft, readonly, classNameContainer, classNameText }: ICheckbox) => JSX.Element;
|
|
3
3
|
export { Checkbox };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: (
|
|
3
|
+
component: ({ checked, text, htmlText, name, onChange, size, form, color, verticalAlign, horizontalAlign, value, isTextLeft, readonly, classNameContainer, classNameText }: import("./Checkbox.typed").ICheckbox) => JSX.Element;
|
|
4
|
+
tags: string[];
|
|
5
|
+
parameters: {
|
|
6
|
+
design: {
|
|
7
|
+
type: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
};
|
|
5
12
|
export default _default;
|
|
6
13
|
export declare const Checkbox: () => JSX.Element;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { CheckboxForm, CheckboxSize } from './Checkbox.typed';
|
|
1
|
+
import { CheckboxForm, CheckboxSize, ICheckbox } from './Checkbox.typed';
|
|
2
2
|
declare const Element: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
3
3
|
size: CheckboxSize;
|
|
4
4
|
form: CheckboxForm;
|
|
5
|
-
readonly: boolean;
|
|
6
|
-
}, never>;
|
|
7
|
-
declare const Container: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
8
|
-
align: string;
|
|
9
|
-
readonly: boolean;
|
|
10
5
|
}, never>;
|
|
11
6
|
declare const NativeInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
12
7
|
type: "checkbox";
|
|
13
8
|
}, "type">;
|
|
14
|
-
declare const
|
|
15
|
-
|
|
9
|
+
declare const Container: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
10
|
+
verticalAlign: ICheckbox['verticalAlign'];
|
|
11
|
+
horizontalAlign: ICheckbox['horizontalAlign'];
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
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, {
|
|
16
15
|
isTextLeft: boolean;
|
|
17
16
|
color: string;
|
|
18
17
|
}, never>;
|
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export type CheckboxSize = 'M' | '
|
|
2
|
+
export type CheckboxSize = 'S' | 'M' | 'L';
|
|
3
3
|
export type CheckboxForm = 'square' | 'circle';
|
|
4
4
|
export interface ICheckbox {
|
|
5
|
+
/** Активность контроллера.. */
|
|
5
6
|
checked?: boolean;
|
|
7
|
+
/** Отображаемый текст. */
|
|
6
8
|
text?: string;
|
|
9
|
+
/** Дом узел, который будет использоваться вместо отображения текста. */
|
|
7
10
|
htmlText?: React.ReactNode;
|
|
11
|
+
/** Имя контроллера. */
|
|
8
12
|
name?: string;
|
|
9
|
-
|
|
13
|
+
/** Вертикальное выравнивание. */
|
|
14
|
+
verticalAlign?: 'center' | 'start';
|
|
15
|
+
/** Горизонтальное выравнивание. */
|
|
16
|
+
horizontalAlign?: 'full' | 'start';
|
|
17
|
+
/** Размер контроллера. */
|
|
10
18
|
size?: CheckboxSize;
|
|
19
|
+
/** Форма контроллера. */
|
|
11
20
|
form?: CheckboxForm;
|
|
21
|
+
/** Место расположения текста относительно контроллера. */
|
|
12
22
|
isTextLeft?: boolean;
|
|
23
|
+
/** Цвет текста контроллера. */
|
|
13
24
|
color?: string;
|
|
25
|
+
/** Значние контроллера. */
|
|
14
26
|
value?: string | number;
|
|
27
|
+
/** Только для чтения. */
|
|
15
28
|
readonly?: boolean;
|
|
29
|
+
/** Класс для текста. */
|
|
16
30
|
classNameText?: string;
|
|
31
|
+
/** Класс для контейнера. */
|
|
17
32
|
classNameContainer?: string;
|
|
33
|
+
/** Действие при нажатии на контроллер. */
|
|
18
34
|
onChange?: (value: boolean, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
35
|
}
|