@betterstore/react 0.7.5 → 0.7.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.
@@ -4,5 +4,6 @@ declare const FloatingLabel: React.ForwardRefExoticComponent<React.LabelHTMLAttr
4
4
  value?: string;
5
5
  required?: boolean;
6
6
  isFormLabel?: boolean;
7
+ disablePlaceholderLabelPosition?: boolean;
7
8
  } & React.RefAttributes<HTMLLabelElement>>;
8
9
  export { FloatingLabel };
@@ -5,8 +5,9 @@ type PhoneInputProps = {
5
5
  label?: string;
6
6
  className?: string;
7
7
  defaultCountry?: string;
8
+ country?: string;
8
9
  required?: boolean;
9
10
  locale?: string;
10
- } & Omit<React.ComponentProps<typeof PhoneInputComponent>, "name" | "defaultCountry" | "international" | "placeholder">;
11
- export declare function PhoneInput({ name, label, className, defaultCountry, required, locale, ...props }: PhoneInputProps): import("react/jsx-runtime").JSX.Element;
11
+ } & Omit<React.ComponentProps<typeof PhoneInputComponent>, "name" | "defaultCountry" | "country" | "international" | "placeholder">;
12
+ export declare function PhoneInput({ name, label, className, defaultCountry, country, required, locale, ...props }: PhoneInputProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Slot } from '@radix-ui/react-slot';
2
2
  import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
3
- import * as React from "react";
4
3
  import type * as LabelPrimitive from "@radix-ui/react-label";
4
+ import * as React from "react";
5
5
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
6
6
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
7
7
  declare const useFormField: () => {
@@ -21,4 +21,4 @@ declare function FormLabel({ className, ...props }: React.ComponentProps<typeof
21
21
  declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
22
22
  declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
23
23
  declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
24
- export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
24
+ export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };