@momo-webplatform/mobase 0.2.100-lite.1 → 0.2.100
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.
- package/dist/cjs/index.cjs +23 -23
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +74 -2
- package/dist/esm/index.d.ts +74 -2
- package/dist/esm/index.js +20 -20
- package/dist/esm/index.js.map +1 -1
- package/package.json +17 -17
package/dist/cjs/index.d.cts
CHANGED
|
@@ -23,6 +23,10 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
23
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
24
24
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
25
25
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
26
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
27
|
+
import * as react_hook_form from 'react-hook-form';
|
|
28
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
29
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
30
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
27
31
|
import * as vaul from 'vaul';
|
|
28
32
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
@@ -1048,7 +1052,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
1048
1052
|
interface CommandDialogProps extends DialogProps$1 {
|
|
1049
1053
|
}
|
|
1050
1054
|
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
|
1051
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "
|
|
1055
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> & {
|
|
1052
1056
|
value?: string;
|
|
1053
1057
|
onValueChange?: (search: string) => void;
|
|
1054
1058
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -1297,6 +1301,26 @@ interface ProgressStepsItemProps {
|
|
|
1297
1301
|
declare const ProgressStepsItem: React$1.FC<ProgressStepsItemProps>;
|
|
1298
1302
|
declare const ProgressSteps: React$1.FC<ProgressStepsProps>;
|
|
1299
1303
|
|
|
1304
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
1305
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare const useFormField: () => {
|
|
1307
|
+
invalid: boolean;
|
|
1308
|
+
isDirty: boolean;
|
|
1309
|
+
isTouched: boolean;
|
|
1310
|
+
isValidating: boolean;
|
|
1311
|
+
error?: react_hook_form.FieldError;
|
|
1312
|
+
id: string;
|
|
1313
|
+
name: string;
|
|
1314
|
+
formItemId: string;
|
|
1315
|
+
formDescriptionId: string;
|
|
1316
|
+
formMessageId: string;
|
|
1317
|
+
};
|
|
1318
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1319
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1320
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
1321
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1322
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1323
|
+
|
|
1300
1324
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1301
1325
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1302
1326
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1991,6 +2015,54 @@ interface PaymentGuideDialogProps {
|
|
|
1991
2015
|
}
|
|
1992
2016
|
declare const PaymentGuideDialog: React__default.FC<PaymentGuideDialogProps>;
|
|
1993
2017
|
|
|
2018
|
+
interface FormFieldProps {
|
|
2019
|
+
name: string;
|
|
2020
|
+
value?: any;
|
|
2021
|
+
type: "text" | "email" | "phone" | "number" | "boolean" | "textarea" | "password";
|
|
2022
|
+
placeholder?: string;
|
|
2023
|
+
required?: boolean;
|
|
2024
|
+
maxLength?: number;
|
|
2025
|
+
minLength?: number;
|
|
2026
|
+
label?: string;
|
|
2027
|
+
disabled?: boolean;
|
|
2028
|
+
className?: string;
|
|
2029
|
+
description?: string;
|
|
2030
|
+
switchLabel?: string;
|
|
2031
|
+
defaultChecked?: boolean;
|
|
2032
|
+
pattern?: RegExp;
|
|
2033
|
+
customValidation?: (value: any) => string | boolean;
|
|
2034
|
+
}
|
|
2035
|
+
interface FormData {
|
|
2036
|
+
[fieldName: string]: any;
|
|
2037
|
+
}
|
|
2038
|
+
interface FormErrors {
|
|
2039
|
+
[fieldName: string]: {
|
|
2040
|
+
message?: string;
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
interface MediaConfig {
|
|
2044
|
+
src: string;
|
|
2045
|
+
alt?: string;
|
|
2046
|
+
ratio?: string | number;
|
|
2047
|
+
}
|
|
2048
|
+
interface FormLeadSupportProps extends SectionBlockProps {
|
|
2049
|
+
dataHeading: HeadingBlockProps;
|
|
2050
|
+
dataMedia?: MediaConfig;
|
|
2051
|
+
captchaComponent?: React__default.ReactNode;
|
|
2052
|
+
onSubmit?: (data: FormData, resetFormState?: () => void) => void | Promise<void>;
|
|
2053
|
+
fieldsSchema: FormFieldProps[];
|
|
2054
|
+
loading?: boolean;
|
|
2055
|
+
onFieldChange?: (fieldName: string, value: any) => void;
|
|
2056
|
+
onValidationError?: (errors: FormErrors) => void;
|
|
2057
|
+
dataButtons: ButtonsBlockProps;
|
|
2058
|
+
classNameMedia?: string;
|
|
2059
|
+
classNameFormLead?: string;
|
|
2060
|
+
classNameWrapper?: string;
|
|
2061
|
+
classNameCaptcha?: string;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
declare const FormLeadSupport: ({ idSection, background, className, ...contentProps }: FormLeadSupportProps) => react_jsx_runtime.JSX.Element;
|
|
2065
|
+
|
|
1994
2066
|
/**
|
|
1995
2067
|
* This Tailwind plugin is based and inspired on "tw-colors" and "NextUI".
|
|
1996
2068
|
*
|
|
@@ -2004,4 +2076,4 @@ declare const mobaseTW: () => {
|
|
|
2004
2076
|
|
|
2005
2077
|
declare const SiteMeta: react_jsx_runtime.JSX.Element;
|
|
2006
2078
|
|
|
2007
|
-
export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, BlogSection, type BlogSectionProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, ButtonsBlock, type ButtonsBlockProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, type ContentsProps, type DataFAQProps, DatePicker, type DatePickerProps, DateSelect, type DateSelectProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, type FAQSectionProps, FeatureSection, type FeatureSectionProps, Footer, GuideSection, type GuideSectionProps, HeaderNavigation, Heading, HeadingBlock, type HeadingBlockProps, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IPayment, type ITopbar, IconButton, type IconButtonProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, MetricsSection, type MetricsSectionProps, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Payment, PaymentGuide, PaymentGuideDialog, PaymentInvoice, PaymentMethods, PaymentResult, PaymentResultContent, PaymentResultFooter, type PaymentResultProps, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, QRPayment, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, SectionBlock, type SectionBlockProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Spinner, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useToast };
|
|
2079
|
+
export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, BlogSection, type BlogSectionProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, ButtonsBlock, type ButtonsBlockProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, type ContentsProps, type DataFAQProps, DatePicker, type DatePickerProps, DateSelect, type DateSelectProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, type FAQSectionProps, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, type FormData, FormDescription, type FormErrors, FormField, type FormFieldProps, FormItem, FormLabel, FormLeadSupport, type FormLeadSupportProps, FormMessage, GuideSection, type GuideSectionProps, HeaderNavigation, Heading, HeadingBlock, type HeadingBlockProps, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IPayment, type ITopbar, IconButton, type IconButtonProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, MetricsSection, type MetricsSectionProps, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Payment, PaymentGuide, PaymentGuideDialog, PaymentInvoice, PaymentMethods, PaymentResult, PaymentResultContent, PaymentResultFooter, type PaymentResultProps, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, QRPayment, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, SectionBlock, type SectionBlockProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Spinner, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useFormField, useToast };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
23
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
24
24
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
25
25
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
26
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
27
|
+
import * as react_hook_form from 'react-hook-form';
|
|
28
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
29
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
30
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
27
31
|
import * as vaul from 'vaul';
|
|
28
32
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
@@ -1048,7 +1052,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
1048
1052
|
interface CommandDialogProps extends DialogProps$1 {
|
|
1049
1053
|
}
|
|
1050
1054
|
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
|
1051
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "
|
|
1055
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> & {
|
|
1052
1056
|
value?: string;
|
|
1053
1057
|
onValueChange?: (search: string) => void;
|
|
1054
1058
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -1297,6 +1301,26 @@ interface ProgressStepsItemProps {
|
|
|
1297
1301
|
declare const ProgressStepsItem: React$1.FC<ProgressStepsItemProps>;
|
|
1298
1302
|
declare const ProgressSteps: React$1.FC<ProgressStepsProps>;
|
|
1299
1303
|
|
|
1304
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
1305
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
1306
|
+
declare const useFormField: () => {
|
|
1307
|
+
invalid: boolean;
|
|
1308
|
+
isDirty: boolean;
|
|
1309
|
+
isTouched: boolean;
|
|
1310
|
+
isValidating: boolean;
|
|
1311
|
+
error?: react_hook_form.FieldError;
|
|
1312
|
+
id: string;
|
|
1313
|
+
name: string;
|
|
1314
|
+
formItemId: string;
|
|
1315
|
+
formDescriptionId: string;
|
|
1316
|
+
formMessageId: string;
|
|
1317
|
+
};
|
|
1318
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1319
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1320
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
1321
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1322
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1323
|
+
|
|
1300
1324
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1301
1325
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1302
1326
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1991,6 +2015,54 @@ interface PaymentGuideDialogProps {
|
|
|
1991
2015
|
}
|
|
1992
2016
|
declare const PaymentGuideDialog: React__default.FC<PaymentGuideDialogProps>;
|
|
1993
2017
|
|
|
2018
|
+
interface FormFieldProps {
|
|
2019
|
+
name: string;
|
|
2020
|
+
value?: any;
|
|
2021
|
+
type: "text" | "email" | "phone" | "number" | "boolean" | "textarea" | "password";
|
|
2022
|
+
placeholder?: string;
|
|
2023
|
+
required?: boolean;
|
|
2024
|
+
maxLength?: number;
|
|
2025
|
+
minLength?: number;
|
|
2026
|
+
label?: string;
|
|
2027
|
+
disabled?: boolean;
|
|
2028
|
+
className?: string;
|
|
2029
|
+
description?: string;
|
|
2030
|
+
switchLabel?: string;
|
|
2031
|
+
defaultChecked?: boolean;
|
|
2032
|
+
pattern?: RegExp;
|
|
2033
|
+
customValidation?: (value: any) => string | boolean;
|
|
2034
|
+
}
|
|
2035
|
+
interface FormData {
|
|
2036
|
+
[fieldName: string]: any;
|
|
2037
|
+
}
|
|
2038
|
+
interface FormErrors {
|
|
2039
|
+
[fieldName: string]: {
|
|
2040
|
+
message?: string;
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
interface MediaConfig {
|
|
2044
|
+
src: string;
|
|
2045
|
+
alt?: string;
|
|
2046
|
+
ratio?: string | number;
|
|
2047
|
+
}
|
|
2048
|
+
interface FormLeadSupportProps extends SectionBlockProps {
|
|
2049
|
+
dataHeading: HeadingBlockProps;
|
|
2050
|
+
dataMedia?: MediaConfig;
|
|
2051
|
+
captchaComponent?: React__default.ReactNode;
|
|
2052
|
+
onSubmit?: (data: FormData, resetFormState?: () => void) => void | Promise<void>;
|
|
2053
|
+
fieldsSchema: FormFieldProps[];
|
|
2054
|
+
loading?: boolean;
|
|
2055
|
+
onFieldChange?: (fieldName: string, value: any) => void;
|
|
2056
|
+
onValidationError?: (errors: FormErrors) => void;
|
|
2057
|
+
dataButtons: ButtonsBlockProps;
|
|
2058
|
+
classNameMedia?: string;
|
|
2059
|
+
classNameFormLead?: string;
|
|
2060
|
+
classNameWrapper?: string;
|
|
2061
|
+
classNameCaptcha?: string;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
declare const FormLeadSupport: ({ idSection, background, className, ...contentProps }: FormLeadSupportProps) => react_jsx_runtime.JSX.Element;
|
|
2065
|
+
|
|
1994
2066
|
/**
|
|
1995
2067
|
* This Tailwind plugin is based and inspired on "tw-colors" and "NextUI".
|
|
1996
2068
|
*
|
|
@@ -2004,4 +2076,4 @@ declare const mobaseTW: () => {
|
|
|
2004
2076
|
|
|
2005
2077
|
declare const SiteMeta: react_jsx_runtime.JSX.Element;
|
|
2006
2078
|
|
|
2007
|
-
export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, BlogSection, type BlogSectionProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, ButtonsBlock, type ButtonsBlockProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, type ContentsProps, type DataFAQProps, DatePicker, type DatePickerProps, DateSelect, type DateSelectProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, type FAQSectionProps, FeatureSection, type FeatureSectionProps, Footer, GuideSection, type GuideSectionProps, HeaderNavigation, Heading, HeadingBlock, type HeadingBlockProps, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IPayment, type ITopbar, IconButton, type IconButtonProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, MetricsSection, type MetricsSectionProps, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Payment, PaymentGuide, PaymentGuideDialog, PaymentInvoice, PaymentMethods, PaymentResult, PaymentResultContent, PaymentResultFooter, type PaymentResultProps, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, QRPayment, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, SectionBlock, type SectionBlockProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Spinner, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useToast };
|
|
2079
|
+
export { Accordion, AccordionContent, type AccordionContentInterface, AccordionItem, type AccordionItemInterface, type AccordionRootInterface, AccordionTrigger, type AccordionTriggerInterface, ActionButton, type ActionButtonProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AspectRatio, Badge, BlogSection, type BlogSectionProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, ButtonsBlock, type ButtonsBlockProps, CTASection, type CTASectionProps, Calendar, type CalendarProps, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, ChoiceboxGroup, ChoiceboxGroupItem, ChoiceboxMultiItem, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Comment, type ContentsProps, type DataFAQProps, DatePicker, type DatePickerProps, DateSelect, type DateSelectProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogQr, type DialogQrProps, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FAQSection, type FAQSectionProps, FeatureSection, type FeatureSectionProps, Footer, Form, FormControl, type FormData, FormDescription, type FormErrors, FormField, type FormFieldProps, FormItem, FormLabel, FormLeadSupport, type FormLeadSupportProps, FormMessage, GuideSection, type GuideSectionProps, HeaderNavigation, Heading, HeadingBlock, type HeadingBlockProps, HeadingGroup, HeadingSub, HeadingTagline, type HeroContentProps, HeroSection, HorizontalContent, HorizontalNext, HorizontalPrevious, HorizontalScroll, type HorizontalScrollProps, HowItWorksSection, type HowItWorksSectionProps, type IComment, type ICommentContent, type ICommentFooter, type ICommentHeader, type IPayment, type ITopbar, IconButton, type IconButtonProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, LightBoxGalleryContent, LightboxGallery, LightboxThumbnail, MetricsSection, type MetricsSectionProps, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NewsSection, type NewsSectionProps, Pagination, Payment, PaymentGuide, PaymentGuideDialog, PaymentInvoice, PaymentMethods, PaymentResult, PaymentResultContent, PaymentResultFooter, type PaymentResultProps, Popover, PopoverContent, PopoverTrigger, ProgressSteps, ProgressStepsItem, ProgressStepsItemTrigger, Progress as Progressbar, QRPayment, RadioGroup, RadioGroupItem, ReadMoreLite, SearchBar, SectionBlock, type SectionBlockProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SiteMeta, Skeleton, Slider, SocialProofSection, type SocialProofSectionProps, Spinner, Stepper, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialSection, type TestimonialSectionProps, TextArea, type TextAreaProps, TextButton, type TextButtonProps, TextInput, type TextInputProps, ToastAction, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, badgeVariants, buttonVariants, mobaseTW, navigationMenuTriggerStyle, textButtonVariants, toast, useFormField, useToast };
|