@underverse-ui/underverse 0.2.65 → 0.2.66

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/index.d.cts CHANGED
@@ -1,11 +1,66 @@
1
- export { B as Button, a as ButtonProps, C as Checkbox, b as CheckboxProps, I as Input, c as InputProps, N as NumberInput, P as PasswordInput, d as SIZE_STYLES_BTN, S as SearchInput, V as VARIANT_STYLES_BTN } from './Input-umeHzPJL.cjs';
2
1
  import * as React$1 from 'react';
3
- import React__default, { TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
2
+ import React__default, { InputHTMLAttributes, TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
5
  import { VariantProps } from 'class-variance-authority';
6
+ import * as react_hook_form from 'react-hook-form';
7
+ import { FieldValues, SubmitHandler, FieldPath, ControllerProps } from 'react-hook-form';
7
8
  import { ClassValue } from 'clsx';
8
9
 
10
+ declare const VARIANT_STYLES_BTN: {
11
+ default: string;
12
+ outline: string;
13
+ primary: string;
14
+ secondary: string;
15
+ success: string;
16
+ danger: string;
17
+ destructive: string;
18
+ warning: string;
19
+ info: string;
20
+ ghost: string;
21
+ link: string;
22
+ gradient: string;
23
+ };
24
+ declare const SIZE_STYLES_BTN: {
25
+ sm: string;
26
+ md: string;
27
+ lg: string;
28
+ smx: string;
29
+ icon: string;
30
+ };
31
+
32
+ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
33
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
34
+ children?: React__default.ReactNode;
35
+ type?: "button" | "submit" | "reset";
36
+ icon?: React__default.ComponentType<{
37
+ className?: string;
38
+ }>;
39
+ iconRight?: React__default.ComponentType<{
40
+ className?: string;
41
+ }>;
42
+ variant?: keyof typeof VARIANT_STYLES_BTN;
43
+ size?: keyof typeof SIZE_STYLES_BTN;
44
+ className?: string;
45
+ iConClassName?: string;
46
+ disabled?: boolean;
47
+ loading?: boolean;
48
+ fullWidth?: boolean;
49
+ title?: string;
50
+ spinner?: React__default.ComponentType<{
51
+ className?: string;
52
+ }>;
53
+ loadingText?: React__default.ReactNode;
54
+ preserveChildrenOnLoading?: boolean;
55
+ preventDoubleClick?: boolean;
56
+ lockMs?: number;
57
+ asContainer?: boolean;
58
+ noWrap?: boolean;
59
+ noHoverOverlay?: boolean;
60
+ gradient?: boolean;
61
+ }
62
+ declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
63
+
9
64
  interface BadgeProps {
10
65
  children?: React$1.ReactNode;
11
66
  variant?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "destructive" | "info" | "outline" | "ghost" | "transparent" | "gradient";
@@ -78,6 +133,58 @@ interface CardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>,
78
133
  }
79
134
  declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
80
135
 
136
+ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
137
+ label?: React$1.ReactNode;
138
+ labelClassName?: string;
139
+ containerClassName?: string;
140
+ }
141
+ declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
142
+
143
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
144
+ label?: string;
145
+ error?: string;
146
+ description?: string;
147
+ variant?: "default" | "filled" | "outlined" | "minimal";
148
+ size?: "sm" | "md" | "lg";
149
+ leftIcon?: React__default.ComponentType<{
150
+ className?: string;
151
+ }>;
152
+ rightIcon?: React__default.ComponentType<{
153
+ className?: string;
154
+ }>;
155
+ clearable?: boolean;
156
+ loading?: boolean;
157
+ success?: boolean;
158
+ onClear?: () => void;
159
+ hint?: string;
160
+ counter?: boolean;
161
+ maxLength?: number;
162
+ }
163
+ declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
164
+ interface SearchInputProps extends Omit<InputProps, "leftIcon" | "type"> {
165
+ onSearch?: (value: string) => void;
166
+ searchDelay?: number;
167
+ }
168
+ declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
169
+ interface PasswordInputProps extends Omit<InputProps, "type"> {
170
+ showStrength?: boolean;
171
+ strengthLabels?: string[];
172
+ }
173
+ declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
174
+ interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange"> {
175
+ min?: number;
176
+ max?: number;
177
+ step?: number;
178
+ showSteppers?: boolean;
179
+ onIncrement?: () => void;
180
+ onDecrement?: () => void;
181
+ formatThousands?: boolean;
182
+ locale?: string;
183
+ value?: number | string;
184
+ onChange?: React__default.ChangeEventHandler<HTMLInputElement>;
185
+ }
186
+ declare const NumberInput: React__default.ForwardRefExoticComponent<NumberInputProps & React__default.RefAttributes<HTMLInputElement>>;
187
+
81
188
  interface TagInputProps {
82
189
  /** Danh sách tags hiện tại */
83
190
  value: string[];
@@ -1625,6 +1732,46 @@ declare const TableHead: React__default.ForwardRefExoticComponent<React__default
1625
1732
  declare const TableCell: React__default.ForwardRefExoticComponent<React__default.TdHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
1626
1733
  declare const TableCaption: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableCaptionElement> & React__default.RefAttributes<HTMLTableCaptionElement>>;
1627
1734
 
1735
+ interface FormWrapperProps<T extends FieldValues = FieldValues> {
1736
+ children: React$1.ReactNode;
1737
+ onSubmit: SubmitHandler<T>;
1738
+ initialValues?: Partial<T>;
1739
+ validationSchema?: Record<string, any>;
1740
+ className?: string;
1741
+ size?: "sm" | "md" | "lg";
1742
+ }
1743
+ declare const Form: <T extends FieldValues = FieldValues>({ children, onSubmit, initialValues, validationSchema, className, size, ...props }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
1744
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
1745
+ declare const useFormField: () => {
1746
+ invalid: boolean;
1747
+ isDirty: boolean;
1748
+ isTouched: boolean;
1749
+ isValidating: boolean;
1750
+ error?: react_hook_form.FieldError;
1751
+ id: string;
1752
+ name: string;
1753
+ formItemId: string;
1754
+ formDescriptionId: string;
1755
+ formMessageId: string;
1756
+ };
1757
+ declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1758
+ declare const FormLabel: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & {
1759
+ required?: boolean;
1760
+ } & React$1.RefAttributes<HTMLLabelElement>>;
1761
+ declare const FormControl: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1762
+ declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
1763
+ declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
1764
+ declare const FormInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement> & {
1765
+ name: string;
1766
+ }, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1767
+ declare const FormCheckbox: React$1.ForwardRefExoticComponent<Omit<CheckboxProps & React$1.RefAttributes<HTMLInputElement> & {
1768
+ name: string;
1769
+ }, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1770
+ declare const FormActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1771
+ declare const FormSubmitButton: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement> & {
1772
+ loading?: boolean;
1773
+ }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1774
+
1628
1775
  interface NotificationItem {
1629
1776
  id: number;
1630
1777
  title?: string;
@@ -2595,4 +2742,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
2595
2742
  };
2596
2743
  };
2597
2744
 
2598
- export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, ButtonLoading, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, OverlayControls, PageLoading, Pagination, type PaginationProps, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, ScrollArea, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
2745
+ export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,66 @@
1
- export { B as Button, a as ButtonProps, C as Checkbox, b as CheckboxProps, I as Input, c as InputProps, N as NumberInput, P as PasswordInput, d as SIZE_STYLES_BTN, S as SearchInput, V as VARIANT_STYLES_BTN } from './Input-umeHzPJL.js';
2
1
  import * as React$1 from 'react';
3
- import React__default, { TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
2
+ import React__default, { InputHTMLAttributes, TextareaHTMLAttributes, ReactNode, HTMLAttributes } from 'react';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
5
  import { VariantProps } from 'class-variance-authority';
6
+ import * as react_hook_form from 'react-hook-form';
7
+ import { FieldValues, SubmitHandler, FieldPath, ControllerProps } from 'react-hook-form';
7
8
  import { ClassValue } from 'clsx';
8
9
 
10
+ declare const VARIANT_STYLES_BTN: {
11
+ default: string;
12
+ outline: string;
13
+ primary: string;
14
+ secondary: string;
15
+ success: string;
16
+ danger: string;
17
+ destructive: string;
18
+ warning: string;
19
+ info: string;
20
+ ghost: string;
21
+ link: string;
22
+ gradient: string;
23
+ };
24
+ declare const SIZE_STYLES_BTN: {
25
+ sm: string;
26
+ md: string;
27
+ lg: string;
28
+ smx: string;
29
+ icon: string;
30
+ };
31
+
32
+ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
33
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
34
+ children?: React__default.ReactNode;
35
+ type?: "button" | "submit" | "reset";
36
+ icon?: React__default.ComponentType<{
37
+ className?: string;
38
+ }>;
39
+ iconRight?: React__default.ComponentType<{
40
+ className?: string;
41
+ }>;
42
+ variant?: keyof typeof VARIANT_STYLES_BTN;
43
+ size?: keyof typeof SIZE_STYLES_BTN;
44
+ className?: string;
45
+ iConClassName?: string;
46
+ disabled?: boolean;
47
+ loading?: boolean;
48
+ fullWidth?: boolean;
49
+ title?: string;
50
+ spinner?: React__default.ComponentType<{
51
+ className?: string;
52
+ }>;
53
+ loadingText?: React__default.ReactNode;
54
+ preserveChildrenOnLoading?: boolean;
55
+ preventDoubleClick?: boolean;
56
+ lockMs?: number;
57
+ asContainer?: boolean;
58
+ noWrap?: boolean;
59
+ noHoverOverlay?: boolean;
60
+ gradient?: boolean;
61
+ }
62
+ declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
63
+
9
64
  interface BadgeProps {
10
65
  children?: React$1.ReactNode;
11
66
  variant?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "destructive" | "info" | "outline" | "ghost" | "transparent" | "gradient";
@@ -78,6 +133,58 @@ interface CardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>,
78
133
  }
79
134
  declare const Card: ({ title, description, children, footer, className, hoverable, clickable, innerClassName, contentClassName, noPadding, onClick, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
80
135
 
136
+ interface CheckboxProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
137
+ label?: React$1.ReactNode;
138
+ labelClassName?: string;
139
+ containerClassName?: string;
140
+ }
141
+ declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
142
+
143
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
144
+ label?: string;
145
+ error?: string;
146
+ description?: string;
147
+ variant?: "default" | "filled" | "outlined" | "minimal";
148
+ size?: "sm" | "md" | "lg";
149
+ leftIcon?: React__default.ComponentType<{
150
+ className?: string;
151
+ }>;
152
+ rightIcon?: React__default.ComponentType<{
153
+ className?: string;
154
+ }>;
155
+ clearable?: boolean;
156
+ loading?: boolean;
157
+ success?: boolean;
158
+ onClear?: () => void;
159
+ hint?: string;
160
+ counter?: boolean;
161
+ maxLength?: number;
162
+ }
163
+ declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
164
+ interface SearchInputProps extends Omit<InputProps, "leftIcon" | "type"> {
165
+ onSearch?: (value: string) => void;
166
+ searchDelay?: number;
167
+ }
168
+ declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
169
+ interface PasswordInputProps extends Omit<InputProps, "type"> {
170
+ showStrength?: boolean;
171
+ strengthLabels?: string[];
172
+ }
173
+ declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
174
+ interface NumberInputProps extends Omit<InputProps, "type" | "value" | "onChange"> {
175
+ min?: number;
176
+ max?: number;
177
+ step?: number;
178
+ showSteppers?: boolean;
179
+ onIncrement?: () => void;
180
+ onDecrement?: () => void;
181
+ formatThousands?: boolean;
182
+ locale?: string;
183
+ value?: number | string;
184
+ onChange?: React__default.ChangeEventHandler<HTMLInputElement>;
185
+ }
186
+ declare const NumberInput: React__default.ForwardRefExoticComponent<NumberInputProps & React__default.RefAttributes<HTMLInputElement>>;
187
+
81
188
  interface TagInputProps {
82
189
  /** Danh sách tags hiện tại */
83
190
  value: string[];
@@ -1625,6 +1732,46 @@ declare const TableHead: React__default.ForwardRefExoticComponent<React__default
1625
1732
  declare const TableCell: React__default.ForwardRefExoticComponent<React__default.TdHTMLAttributes<HTMLTableCellElement> & React__default.RefAttributes<HTMLTableCellElement>>;
1626
1733
  declare const TableCaption: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableCaptionElement> & React__default.RefAttributes<HTMLTableCaptionElement>>;
1627
1734
 
1735
+ interface FormWrapperProps<T extends FieldValues = FieldValues> {
1736
+ children: React$1.ReactNode;
1737
+ onSubmit: SubmitHandler<T>;
1738
+ initialValues?: Partial<T>;
1739
+ validationSchema?: Record<string, any>;
1740
+ className?: string;
1741
+ size?: "sm" | "md" | "lg";
1742
+ }
1743
+ declare const Form: <T extends FieldValues = FieldValues>({ children, onSubmit, initialValues, validationSchema, className, size, ...props }: FormWrapperProps<T>) => react_jsx_runtime.JSX.Element;
1744
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
1745
+ declare const useFormField: () => {
1746
+ invalid: boolean;
1747
+ isDirty: boolean;
1748
+ isTouched: boolean;
1749
+ isValidating: boolean;
1750
+ error?: react_hook_form.FieldError;
1751
+ id: string;
1752
+ name: string;
1753
+ formItemId: string;
1754
+ formDescriptionId: string;
1755
+ formMessageId: string;
1756
+ };
1757
+ declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1758
+ declare const FormLabel: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & {
1759
+ required?: boolean;
1760
+ } & React$1.RefAttributes<HTMLLabelElement>>;
1761
+ declare const FormControl: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1762
+ declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
1763
+ declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
1764
+ declare const FormInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement> & {
1765
+ name: string;
1766
+ }, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1767
+ declare const FormCheckbox: React$1.ForwardRefExoticComponent<Omit<CheckboxProps & React$1.RefAttributes<HTMLInputElement> & {
1768
+ name: string;
1769
+ }, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1770
+ declare const FormActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1771
+ declare const FormSubmitButton: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement> & {
1772
+ loading?: boolean;
1773
+ }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1774
+
1628
1775
  interface NotificationItem {
1629
1776
  id: number;
1630
1777
  title?: string;
@@ -2595,4 +2742,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
2595
2742
  };
2596
2743
  };
2597
2744
 
2598
- export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, ButtonLoading, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, OverlayControls, PageLoading, Pagination, type PaginationProps, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, ScrollArea, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
2745
+ export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };