globalfy-design-system 1.8.2 → 1.9.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,7 +1,8 @@
1
1
  import { ButtonProps as NextUIButtonProps } from '@nextui-org/react';
2
+ import { default as React } from 'react';
2
3
 
3
4
  export type ButtonVariant = "primaryDark" | "primaryLight" | "primary" | "negative" | "secondaryNegative" | "secondary" | "tertiary" | "tertiaryDark" | "tertiaryLight" | "direction" | "directionCircle" | "icon";
4
- export type ButtonProps = Omit<NextUIButtonProps, "variant" | "size"> & {
5
+ export type ButtonProps = Omit<NextUIButtonProps, "variant" | "size" | "ref"> & {
5
6
  children: React.ReactNode;
6
7
  iconLeft?: React.ReactNode;
7
8
  iconRight?: React.ReactNode;
@@ -14,4 +15,16 @@ export type ButtonProps = Omit<NextUIButtonProps, "variant" | "size"> & {
14
15
  */
15
16
  isLoadingComplete?: boolean;
16
17
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "color">;
17
- export declare const Button: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, isLoadingComplete, isLoading, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Button: React.ForwardRefExoticComponent<Omit<NextUIButtonProps, "variant" | "ref" | "size"> & {
19
+ children: React.ReactNode;
20
+ iconLeft?: React.ReactNode;
21
+ iconRight?: React.ReactNode;
22
+ full?: boolean | undefined;
23
+ size?: "small" | "medium" | "large" | undefined;
24
+ variant?: ButtonVariant | undefined;
25
+ isLoading?: boolean | undefined;
26
+ /**
27
+ * @deprecated use {@link ButtonProps.isLoading} instead
28
+ */
29
+ isLoadingComplete?: boolean | undefined;
30
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "onFocus" | "onBlur"> & React.RefAttributes<HTMLButtonElement>>;