@coinswap-app/uikit 1.0.5 → 1.0.7

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 React from "react";
2
+ import { SpaceProps } from "styled-system";
2
3
  import { IDOState } from "../../util/types";
3
4
  import { TierConfig } from "../UserTiers/UserTiers";
4
5
  export interface IAddToCapProps {
@@ -29,6 +30,60 @@ export interface IAddToCapProps {
29
30
  onApproveHandler?: () => void;
30
31
  loadingUserData?: boolean;
31
32
  }
32
- export declare const IdoActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Button").ButtonProps & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<React.FC<import("../Button").ButtonProps>, keyof React.Component<any, {}, any>>;
33
+ export declare const IdoActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
34
+ variant?: import("../Button").ButtonVariants;
35
+ size?: import("../Button").ButtonSizes;
36
+ startIcon?: React.ReactNode;
37
+ endIcon?: React.ReactNode;
38
+ $fullWidth?: boolean;
39
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
40
+ href?: string;
41
+ to?: import("react-router-dom").LinkProps["to"];
42
+ external?: boolean;
43
+ $isLoading?: boolean;
44
+ disabled?: boolean;
45
+ $white?: boolean;
46
+ fullWidth?: boolean;
47
+ isLoading?: boolean;
48
+ white?: boolean;
49
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
50
+ ref?: React.Ref<HTMLButtonElement>;
51
+ }) | (Omit<{
52
+ variant?: import("../Button").ButtonVariants;
53
+ size?: import("../Button").ButtonSizes;
54
+ startIcon?: React.ReactNode;
55
+ endIcon?: React.ReactNode;
56
+ $fullWidth?: boolean;
57
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
58
+ href?: string;
59
+ to?: import("react-router-dom").LinkProps["to"];
60
+ external?: boolean;
61
+ $isLoading?: boolean;
62
+ disabled?: boolean;
63
+ $white?: boolean;
64
+ fullWidth?: boolean;
65
+ isLoading?: boolean;
66
+ white?: boolean;
67
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
68
+ ref?: React.Ref<HTMLButtonElement>;
69
+ }) | (Omit<{
70
+ variant?: import("../Button").ButtonVariants;
71
+ size?: import("../Button").ButtonSizes;
72
+ startIcon?: React.ReactNode;
73
+ endIcon?: React.ReactNode;
74
+ $fullWidth?: boolean;
75
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
76
+ href?: string;
77
+ to?: import("react-router-dom").LinkProps["to"];
78
+ external?: boolean;
79
+ $isLoading?: boolean;
80
+ disabled?: boolean;
81
+ $white?: boolean;
82
+ fullWidth?: boolean;
83
+ isLoading?: boolean;
84
+ white?: boolean;
85
+ } & Omit<import("react-router-dom").LinkProps<unknown>, "to"> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
86
+ ref?: React.Ref<HTMLButtonElement>;
87
+ }), import("styled-components/dist/types").BaseObject>> & string & Omit<React.ForwardRefExoticComponent<import("../Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>, keyof React.Component<any, {}, any>>;
33
88
  declare const AddToCap: React.FunctionComponent<IAddToCapProps>;
34
89
  export default AddToCap;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { ButtonProps } from "./types";
3
- declare const Button: React.FC<ButtonProps>;
3
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default Button;
@@ -1,3 +1,57 @@
1
1
  import { ButtonProps } from "./types";
2
- declare const IconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<ButtonProps & import("styled-components/dist/types").BaseObject, ButtonProps>> & string & Omit<import("react").FC<ButtonProps>, keyof import("react").Component<any, {}, any>>;
2
+ declare const IconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
3
+ variant?: import("./types").Variants;
4
+ size?: import("./types").Sizes;
5
+ startIcon?: import("react").ReactNode;
6
+ endIcon?: import("react").ReactNode;
7
+ $fullWidth?: boolean;
8
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
9
+ href?: string;
10
+ to?: import("react-router-dom").LinkProps["to"];
11
+ external?: boolean;
12
+ $isLoading?: boolean;
13
+ disabled?: boolean;
14
+ $white?: boolean;
15
+ fullWidth?: boolean;
16
+ isLoading?: boolean;
17
+ white?: boolean;
18
+ } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
19
+ ref?: import("react").Ref<HTMLButtonElement>;
20
+ }) | (Omit<{
21
+ variant?: import("./types").Variants;
22
+ size?: import("./types").Sizes;
23
+ startIcon?: import("react").ReactNode;
24
+ endIcon?: import("react").ReactNode;
25
+ $fullWidth?: boolean;
26
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
27
+ href?: string;
28
+ to?: import("react-router-dom").LinkProps["to"];
29
+ external?: boolean;
30
+ $isLoading?: boolean;
31
+ disabled?: boolean;
32
+ $white?: boolean;
33
+ fullWidth?: boolean;
34
+ isLoading?: boolean;
35
+ white?: boolean;
36
+ } & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
37
+ ref?: import("react").Ref<HTMLButtonElement>;
38
+ }) | (Omit<{
39
+ variant?: import("./types").Variants;
40
+ size?: import("./types").Sizes;
41
+ startIcon?: import("react").ReactNode;
42
+ endIcon?: import("react").ReactNode;
43
+ $fullWidth?: boolean;
44
+ as?: "a" | "button" | typeof import("react-router-dom").Link;
45
+ href?: string;
46
+ to?: import("react-router-dom").LinkProps["to"];
47
+ external?: boolean;
48
+ $isLoading?: boolean;
49
+ disabled?: boolean;
50
+ $white?: boolean;
51
+ fullWidth?: boolean;
52
+ isLoading?: boolean;
53
+ white?: boolean;
54
+ } & Omit<import("react-router-dom").LinkProps<unknown>, "to"> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
55
+ ref?: import("react").Ref<HTMLButtonElement>;
56
+ }), ButtonProps>> & string & Omit<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
3
57
  export default IconButton;
@@ -33,18 +33,22 @@ export declare const variants: {
33
33
  };
34
34
  export type Sizes = typeof sizes[keyof typeof sizes];
35
35
  export type Variants = typeof variants[keyof typeof variants];
36
- type ButtonTypes = ButtonHTMLAttributes<HTMLButtonElement> | AnchorHTMLAttributes<HTMLAnchorElement> | LinkProps;
36
+ type ButtonTypes = ButtonHTMLAttributes<HTMLButtonElement> | AnchorHTMLAttributes<HTMLAnchorElement> | Omit<LinkProps, 'to'>;
37
37
  export type ButtonProps = {
38
38
  variant?: Variants;
39
39
  size?: Sizes;
40
40
  startIcon?: ReactNode;
41
41
  endIcon?: ReactNode;
42
- fullWidth?: boolean;
42
+ $fullWidth?: boolean;
43
43
  as?: "a" | "button" | typeof Link;
44
44
  href?: string;
45
+ to?: LinkProps['to'];
45
46
  external?: boolean;
46
- isLoading?: boolean;
47
+ $isLoading?: boolean;
47
48
  disabled?: boolean;
49
+ $white?: boolean;
50
+ fullWidth?: boolean;
51
+ isLoading?: boolean;
48
52
  white?: boolean;
49
53
  } & ButtonTypes & SpaceProps;
50
54
  export type ButtonThemeVariant = {
@@ -1,4 +1,6 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  export type CardBodyProps = SpaceProps;
3
- declare const CardBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CardBodyProps>> & string;
3
+ declare const CardBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: import("react").Ref<HTMLDivElement>;
5
+ }>, CardBodyProps>, CardBodyProps>> & string;
4
6
  export default CardBody;
@@ -1,4 +1,6 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  export type CardFooterProps = SpaceProps;
3
- declare const CardFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CardFooterProps>> & string;
3
+ declare const CardFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: import("react").Ref<HTMLDivElement>;
5
+ }>, CardFooterProps>, CardFooterProps>> & string;
4
6
  export default CardFooter;
@@ -16,8 +16,12 @@ export type CardTheme = {
16
16
  };
17
17
  export interface CardProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
18
18
  isActive?: boolean;
19
+ $isActive?: boolean;
19
20
  isSuccess?: boolean;
21
+ $isSuccess?: boolean;
20
22
  isWarning?: boolean;
23
+ $isWarning?: boolean;
21
24
  isDisabled?: boolean;
25
+ $isDisabled?: boolean;
22
26
  ribbon?: React.ReactNode;
23
27
  }
@@ -1,3 +1,5 @@
1
1
  import { HeadingProps } from "../Heading/types";
2
- declare const EarnedCarouselWrapperHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeadingProps>> & string;
2
+ declare const EarnedCarouselWrapperHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }>, HeadingProps>, HeadingProps>> & string;
3
5
  export default EarnedCarouselWrapperHeader;
@@ -1,3 +1,5 @@
1
1
  import { HeadingProps } from "../Heading/types";
2
- declare const EarnedWrapperHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeadingProps>> & string;
2
+ declare const EarnedWrapperHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }>, HeadingProps>, HeadingProps>> & string;
3
5
  export default EarnedWrapperHeader;
@@ -1,7 +1,7 @@
1
1
  import { HeadingProps } from "./types";
2
- declare const Heading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Text").TextProps> & import("../Text").TextProps, "ref"> & {
2
+ declare const Heading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Text").TextProps> & import("../Text").TextProps, "ref"> & {
3
3
  ref?: import("react").Ref<HTMLDivElement>;
4
4
  }, Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Text").TextProps> & import("../Text").TextProps, "ref"> & {
5
5
  ref?: import("react").Ref<HTMLDivElement>;
6
- }>, never>, HeadingProps>> & string;
6
+ }>, HeadingProps>, HeadingProps>> & string;
7
7
  export default Heading;
@@ -1,4 +1,6 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  export type InfoBoxBodyProps = SpaceProps;
3
- declare const InfoBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InfoBoxBodyProps>> & string;
3
+ declare const InfoBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: import("react").Ref<HTMLDivElement>;
5
+ }>, InfoBoxBodyProps>, InfoBoxBodyProps>> & string;
4
6
  export default InfoBox;
@@ -1,4 +1,6 @@
1
1
  import { SpaceProps } from "styled-system";
2
2
  export type InfoBoxFooterProps = SpaceProps;
3
- declare const InfoBoxFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InfoBoxFooterProps>> & string;
3
+ declare const InfoBoxFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: import("react").Ref<HTMLDivElement>;
5
+ }>, InfoBoxFooterProps>, InfoBoxFooterProps>> & string;
4
6
  export default InfoBoxFooter;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { LinkProps } from "./types";
3
- declare const Link: React.FC<LinkProps>;
3
+ declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
4
4
  export default Link;
@@ -1,5 +1,5 @@
1
1
  import { OverlayProps } from "./types";
2
- declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
3
  ref?: import("react").Ref<HTMLDivElement>;
4
- }>, never>, OverlayProps>> & string;
4
+ }>, OverlayProps>, OverlayProps>> & string;
5
5
  export default Overlay;
@@ -1,5 +1,5 @@
1
1
  import { RadioProps } from "./types";
2
- declare const Radio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
2
+ declare const Radio: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
3
3
  ref?: import("react").Ref<HTMLInputElement>;
4
- }>, never>, RadioProps>> & string;
4
+ }>, RadioProps>, RadioProps>> & string;
5
5
  export default Radio;
@@ -3,7 +3,7 @@ import { DefaultTheme } from "styled-components";
3
3
  import { SpaceProps } from "styled-system";
4
4
  export interface SvgProps extends SVGAttributes<HTMLOrSVGElement>, SpaceProps {
5
5
  theme?: DefaultTheme;
6
- spin?: boolean;
6
+ $spin?: boolean;
7
7
  fill?: string;
8
- opac?: boolean;
8
+ $opac?: boolean;
9
9
  }
@@ -3,6 +3,8 @@ export interface TextProps extends SpaceProps, TypographyProps {
3
3
  color?: string;
4
4
  fontSize?: string;
5
5
  bold?: boolean;
6
+ $bold?: boolean;
6
7
  small?: boolean;
8
+ $small?: boolean;
7
9
  textTransform?: "uppercase" | "lowercase" | "capitalize";
8
10
  }