profinansy-ui-lib 4.0.95 → 4.0.96
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/Button/Button.const.d.ts +4 -4
- package/dist/components/uikit/Button/Button.styled.d.ts +8 -8
- package/dist/components/uikit/Button/Button.typed.d.ts +8 -7
- package/dist/components/uikit/Button/components/ButtonLoader/ButtonLoader.d.ts +3 -0
- package/dist/components/uikit/Button/components/ButtonLoader/ButtonLoader.styled.d.ts +6 -0
- package/dist/components/uikit/Button/components/ButtonLoader/ButtonLoader.typed.d.ts +5 -0
- package/dist/components/uikit/Button/components/ButtonLoader/index.d.ts +1 -0
- package/dist/profinansy-ui-lib.cjs +783 -733
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +5176 -5093
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/theme/theme.const.d.ts +10 -0
- package/package.json +1 -1
|
@@ -4,21 +4,21 @@ export declare const getSize: (mode: TButtonMode, form: ButtonForm) => {
|
|
|
4
4
|
height: string;
|
|
5
5
|
maxHeight: string;
|
|
6
6
|
borderRadius: string;
|
|
7
|
+
L?: undefined;
|
|
7
8
|
M?: undefined;
|
|
8
9
|
S?: undefined;
|
|
9
|
-
XS?: undefined;
|
|
10
10
|
} | {
|
|
11
|
-
|
|
11
|
+
L: {
|
|
12
12
|
height: string;
|
|
13
13
|
maxHeight: string;
|
|
14
14
|
borderRadius: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
M: {
|
|
17
17
|
height: string;
|
|
18
18
|
maxHeight: string;
|
|
19
19
|
borderRadius: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
S: {
|
|
22
22
|
height: string;
|
|
23
23
|
maxHeight: string;
|
|
24
24
|
borderRadius: string;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TButtonMode, ButtonSize, ButtonForm } from './Button.typed';
|
|
3
|
+
declare const IconLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
4
|
+
$size: ButtonSize;
|
|
5
|
+
$isText: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
declare const IconRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
8
|
+
$size: ButtonSize;
|
|
9
|
+
$isText: boolean;
|
|
10
|
+
}>> & string;
|
|
3
11
|
declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
4
12
|
$form: ButtonForm;
|
|
5
13
|
$size: ButtonSize;
|
|
@@ -10,14 +18,6 @@ declare const Button: import("styled-components/dist/types").IStyledComponentBas
|
|
|
10
18
|
$iconLeft: boolean;
|
|
11
19
|
$iconRight: boolean;
|
|
12
20
|
}>> & string;
|
|
13
|
-
declare const IconLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
-
$size: ButtonSize;
|
|
15
|
-
$isText: boolean;
|
|
16
|
-
}>> & string;
|
|
17
|
-
declare const IconRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
18
|
-
$size: ButtonSize;
|
|
19
|
-
$isText: boolean;
|
|
20
|
-
}>> & string;
|
|
21
21
|
declare const Loading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
22
22
|
$mode: TButtonMode;
|
|
23
23
|
}>> & string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import CSS from 'csstype';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export type TButtonMode = 'primary' | 'secondary' | 'outlineBrand' | 'success' | 'warning' | '
|
|
4
|
-
export type ButtonSize = '
|
|
3
|
+
export type TButtonMode = 'primary' | 'secondary' | 'whiteFixed' | 'outlineBrand' | 'success' | 'warning' | 'secondaryCritical' | 'secondarySystem' | 'neutral' | 'flatBrand' | 'flatSystem' | 'methodPrimary' | 'methodSecondary' | 'methodFlatBrand';
|
|
4
|
+
export type ButtonSize = 'L' | 'M' | 'S';
|
|
5
5
|
export type ButtonForm = 'square' | 'circle';
|
|
6
6
|
export interface IButton {
|
|
7
7
|
/**Тип кнопки */
|
|
@@ -40,17 +40,18 @@ export interface IButton {
|
|
|
40
40
|
export type TModesStyle = {
|
|
41
41
|
primary: TStatesStyle;
|
|
42
42
|
secondary: TStatesStyle;
|
|
43
|
+
whiteFixed: TStatesStyle;
|
|
43
44
|
outlineBrand: TStatesStyle;
|
|
44
45
|
success: TStatesStyle;
|
|
45
46
|
warning: TStatesStyle;
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
secondaryCritical: TStatesStyle;
|
|
48
|
+
secondarySystem: TStatesStyle;
|
|
48
49
|
neutral: TStatesStyle;
|
|
49
50
|
flatBrand: TStatesStyle;
|
|
50
51
|
flatSystem: TStatesStyle;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
methodPrimary: TStatesStyle;
|
|
53
|
+
methodSecondary: TStatesStyle;
|
|
54
|
+
methodFlatBrand: TStatesStyle;
|
|
54
55
|
};
|
|
55
56
|
type TStatesStyle = {
|
|
56
57
|
default: TModeStyle;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonSize } from '../../Button.typed';
|
|
3
|
+
export declare const Loader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
4
|
+
$color: string;
|
|
5
|
+
$size: ButtonSize;
|
|
6
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonLoader } from './ButtonLoader';
|