profinansy-ui-lib 2.0.66 → 2.0.67
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/Radio/index.d.ts +0 -1
- package/dist/components/uikit/SideModal/SideModal.styled.d.ts +1 -3
- package/dist/components/uikit/TextButton/TextButton.const.d.ts +14 -1
- package/dist/components/uikit/TextButton/TextButton.d.ts +1 -1
- package/dist/components/uikit/TextButton/TextButton.stories.d.ts +1 -1
- package/dist/components/uikit/TextButton/TextButton.styled.d.ts +2 -1
- package/dist/components/uikit/TextButton/TextButton.typed.d.ts +2 -0
- package/dist/index.js +206 -189
- package/package.json +69 -65
- package/readme.md +6 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
2
|
isOpen: boolean;
|
|
4
3
|
}, never>;
|
|
@@ -8,6 +7,5 @@ declare const Header: import("styled-components").StyledComponent<"div", import(
|
|
|
8
7
|
declare const LeftWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
8
|
declare const Title: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
10
9
|
declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
declare const ButtonStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.typed").IButton & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
12
10
|
declare const BottomContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export { Wrapper, Layout, Sidebar, Header, LeftWrapper, Title, Content,
|
|
11
|
+
export { Wrapper, Layout, Sidebar, Header, LeftWrapper, Title, Content, BottomContent };
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { TTheme } from '../../../theme/theme.typed';
|
|
2
|
+
export declare const TextButtonSize: {
|
|
3
|
+
M: {
|
|
4
|
+
fontWeight: number;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
};
|
|
8
|
+
S: {
|
|
9
|
+
fontWeight: number;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
lineHeight: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const getMode: (theme: TTheme) => {
|
|
2
15
|
blue: {
|
|
3
16
|
default: {
|
|
4
17
|
color: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITextButton } from './TextButton.typed';
|
|
2
|
-
declare const TextButton: ({ type, mode, text, style, onClick, className, iconLeft, disabled }: ITextButton) => JSX.Element;
|
|
2
|
+
declare const TextButton: ({ type, mode, size, text, style, onClick, className, iconLeft, disabled }: ITextButton) => JSX.Element;
|
|
3
3
|
export { TextButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ type, mode, text, style, onClick, className, iconLeft, disabled }: import("./TextButton.typed").ITextButton) => JSX.Element;
|
|
3
|
+
component: ({ type, mode, size, text, style, onClick, className, iconLeft, disabled }: import("./TextButton.typed").ITextButton) => JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const TextButton: () => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TMode } from './TextButton.typed';
|
|
1
|
+
import { TMode, TTextButtonSizeSize } from './TextButton.typed';
|
|
2
2
|
export declare const TextButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
3
3
|
mode: TMode;
|
|
4
|
+
size: TTextButtonSizeSize;
|
|
4
5
|
}, never>;
|
|
5
6
|
export declare const IconLeft: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import CSS from 'csstype';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export type TMode = 'blue' | 'gray';
|
|
4
|
+
export type TTextButtonSizeSize = 'M' | 'S';
|
|
4
5
|
export interface ITextButton {
|
|
5
6
|
type?: 'submit' | 'button';
|
|
6
7
|
className?: string;
|
|
7
8
|
text?: string;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
mode?: TMode;
|
|
11
|
+
size?: TTextButtonSizeSize;
|
|
10
12
|
iconLeft?: ReactNode;
|
|
11
13
|
style?: CSS.Properties;
|
|
12
14
|
onClick?: () => void;
|