globalfy-design-system 1.8.2 → 1.10.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>>;
@@ -11,4 +11,5 @@ declare const meta: {
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
  export declare const Playground: Story;
14
+ export declare const DropdownListCreatableComponent: () => import("react/jsx-runtime").JSX.Element;
14
15
  export declare const PaymentMethod: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ControlProps, OptionProps, DropdownIndicatorProps, ActionMeta, ValueContainerProps } from 'react-select';
1
+ import { ActionMeta, ControlProps, DropdownIndicatorProps, OptionProps, ValueContainerProps } from 'react-select';
2
2
  import { ComponentType, ReactNode } from 'react';
3
3
 
4
4
  export type OptionType = {
@@ -25,6 +25,8 @@ export type DropdownListProps = {
25
25
  customControl?: ComponentType<ControlProps>;
26
26
  customDropdownIndicator?: ComponentType<DropdownIndicatorProps>;
27
27
  customValueContainer?: ComponentType<ValueContainerProps>;
28
+ onCreateOption?: (inputValue: string) => void;
29
+ isLoading?: boolean;
28
30
  };
29
31
  export type DropdownCreditCardOption = {
30
32
  label: string;
@@ -0,0 +1,3 @@
1
+ import { DropdownListProps } from './DropdownList.types';
2
+
3
+ export declare const DropdownListCreatable: ({ label, value, defaultValue, placeholder, isInvalid, isTransparent, className, disabled, onChange, noOptionsMessage, errorMessage, options, isSearchable, customOption, isValid, customPlaceholder, customControl, customDropdownIndicator, customValueContainer, onCreateOption, isLoading, ...props }: DropdownListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
- export * from './DropdownPaymentMethod';
2
1
  export * from './DropdownList';
3
2
  export * from './DropdownList.types';
3
+ export * from './DropdownListCreatable';
4
+ export * from './DropdownPaymentMethod';