@woovi/ui 6.1.2 → 6.2.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,14 +1,12 @@
|
|
|
1
1
|
import type { ButtonProps } from "@mui/material/Button";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
type StyledButtonProps = {
|
|
4
|
-
bgColor?: string;
|
|
5
|
-
};
|
|
6
3
|
export type ActionButtonProps = {
|
|
7
4
|
icon?: string;
|
|
8
|
-
label?: string;
|
|
9
5
|
link?: string;
|
|
10
|
-
|
|
6
|
+
label?: string;
|
|
7
|
+
bgColor?: string;
|
|
11
8
|
loading?: boolean;
|
|
12
|
-
|
|
9
|
+
external?: boolean;
|
|
10
|
+
} & ButtonProps;
|
|
13
11
|
declare const ActionButton: ({ icon, size, variant, color, children, label, link, external, loading, ...props }: ActionButtonProps) => ReactNode;
|
|
14
12
|
export default ActionButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import type React from "react";
|
|
2
2
|
type ButtonMenuProps = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
};
|
|
@@ -8,5 +8,5 @@ type ButtonMenuItemProps = {
|
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
10
10
|
};
|
|
11
|
-
export declare const ButtonMenuItem: ({ children, href, onClick
|
|
11
|
+
export declare const ButtonMenuItem: ({ children, href, onClick }: ButtonMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { SxProps, Theme } from
|
|
2
|
-
import type { MouseEventHandler, ReactNode } from
|
|
3
|
-
type PayWithPixColors = 'primary' | 'tertiary' | 'white';
|
|
1
|
+
import type { SxProps, Theme } from "@mui/material/styles";
|
|
2
|
+
import type { MouseEventHandler, ReactNode } from "react";
|
|
4
3
|
export type PayWithPixButtonProps = {
|
|
5
|
-
color?: PayWithPixColors;
|
|
6
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
4
|
sx?: SxProps<Theme>;
|
|
5
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
6
|
disabled?: boolean;
|
|
9
7
|
isPending?: boolean;
|
|
10
8
|
};
|
|
11
|
-
declare const PayWithPixButton: ({
|
|
9
|
+
declare const PayWithPixButton: ({ sx, onClick, disabled, isPending }: PayWithPixButtonProps) => ReactNode;
|
|
12
10
|
export default PayWithPixButton;
|