@coinswap-app/uikit 0.8.0 → 1.0.0

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.
@@ -1,4 +1,5 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  export interface BreadcrumbsProps extends SpaceProps {
3
3
  separator?: React.ReactNode;
4
+ children?: React.ReactNode;
4
5
  }
@@ -3,6 +3,7 @@ export interface RampButtonProps {
3
3
  onClick: () => void;
4
4
  title?: string;
5
5
  extended?: boolean;
6
+ children?: React.ReactNode;
6
7
  }
7
8
  declare const RampButtonLite: React.FunctionComponent<RampButtonProps>;
8
9
  export default RampButtonLite;
@@ -72,5 +72,6 @@ export interface ButtonSwitchProps {
72
72
  export interface ButtonSwitchItemProps {
73
73
  active: boolean;
74
74
  onClick?: (active: boolean) => void;
75
+ children?: React.ReactNode;
75
76
  }
76
77
  export {};
@@ -4,4 +4,5 @@ export interface PositionProps {
4
4
  }
5
5
  export interface DropdownProps extends PositionProps {
6
6
  target: React.ReactElement;
7
+ children?: React.ReactNode;
7
8
  }
@@ -1,10 +1,10 @@
1
1
  export declare const tags: {
2
- H1: string;
3
- H2: string;
4
- H3: string;
5
- H4: string;
6
- H5: string;
7
- H6: string;
2
+ readonly H1: "h1";
3
+ readonly H2: "h2";
4
+ readonly H3: "h3";
5
+ readonly H4: "h4";
6
+ readonly H5: "h5";
7
+ readonly H6: "h6";
8
8
  };
9
9
  export declare const sizes: {
10
10
  readonly MD: "md";
@@ -25,6 +25,7 @@ interface InputWrapperProps {
25
25
  error?: string | boolean;
26
26
  success?: boolean;
27
27
  successMsg?: string;
28
+ children?: React.ReactNode;
28
29
  }
29
30
  export declare const InputWrapper: React.FC<InputWrapperProps>;
30
31
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import { ColumnType, DataType, UseTableReturnType, UseTableOptionsType } from "./types";
3
- export declare const makeRender: <T extends DataType>(value: any, render: (({ value: val, row }: {
3
+ export declare const makeRender: <T extends DataType>(value: any, render: (({ value, row }: {
4
4
  value: any;
5
5
  row: T;
6
6
  }) => ReactNode) | undefined, row: T) => (() => React.ReactNode);
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TableRowProps } from "./types";
3
- declare const TableRow: React.SFC<TableRowProps>;
3
+ declare const TableRow: React.FC<TableRowProps>;
4
4
  export default TableRow;
@@ -4,5 +4,5 @@ export interface LiquidityContainerProps {
4
4
  tooltip: React.ReactNode;
5
5
  grid?: number;
6
6
  }
7
- declare const LiquidityContainer: React.SFC<LiquidityContainerProps>;
7
+ declare const LiquidityContainer: React.FC<LiquidityContainerProps>;
8
8
  export default LiquidityContainer;
@@ -7,5 +7,5 @@ export interface TableActionBoxProps {
7
7
  mobile?: boolean;
8
8
  column?: boolean;
9
9
  }
10
- declare const TableActionBox: React.SFC<TableActionBoxProps>;
10
+ declare const TableActionBox: React.FC<TableActionBoxProps>;
11
11
  export default TableActionBox;
@@ -36,6 +36,7 @@ export interface TagProps extends SpaceProps {
36
36
  startIcon?: ReactNode;
37
37
  endIcon?: ReactNode;
38
38
  outline?: boolean;
39
+ children?: ReactNode;
39
40
  }
40
41
  export interface CoreTagProps extends TagProps {
41
42
  active?: boolean;
@@ -3,3 +3,11 @@ export type TooltipTheme = {
3
3
  text: string;
4
4
  boxShadow: string;
5
5
  };
6
+ export interface TooltipProps {
7
+ content: React.ReactNode;
8
+ small?: boolean;
9
+ removeAfter?: boolean;
10
+ bottom?: number;
11
+ right?: number;
12
+ children?: React.ReactNode;
13
+ }