@facter/ds-core 1.3.1 → 1.4.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.
- package/dist/index.d.mts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +60 -71
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ import { Toaster as Toaster$1, toast as toast$1 } from 'sonner';
|
|
|
13
13
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
14
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
15
15
|
import { FieldValues, FieldPath, UseFormReturn, SubmitHandler, SubmitErrorHandler, Path } from 'react-hook-form';
|
|
16
|
+
export { FormProvider, useFormContext } from 'react-hook-form';
|
|
16
17
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
17
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
19
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -939,12 +940,6 @@ declare namespace FormRadioGroup {
|
|
|
939
940
|
var displayName: string;
|
|
940
941
|
}
|
|
941
942
|
|
|
942
|
-
declare function useFormContext<T extends FieldValues = FieldValues>(): UseFormReturn<T>;
|
|
943
|
-
interface FormProviderProps<T extends FieldValues = FieldValues> {
|
|
944
|
-
form: UseFormReturn<T>;
|
|
945
|
-
children: React$1.ReactNode;
|
|
946
|
-
}
|
|
947
|
-
declare function FormProvider<T extends FieldValues = FieldValues>({ form, children, }: FormProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
948
943
|
declare function useFormFieldContext(): FormFieldContextValue;
|
|
949
944
|
interface FormFieldProviderProps {
|
|
950
945
|
name: string;
|
|
@@ -2288,4 +2283,4 @@ declare const useTheme: () => ThemeProviderState;
|
|
|
2288
2283
|
*/
|
|
2289
2284
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2290
2285
|
|
|
2291
|
-
export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps,
|
|
2286
|
+
export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { Toaster as Toaster$1, toast as toast$1 } from 'sonner';
|
|
|
13
13
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
14
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
15
15
|
import { FieldValues, FieldPath, UseFormReturn, SubmitHandler, SubmitErrorHandler, Path } from 'react-hook-form';
|
|
16
|
+
export { FormProvider, useFormContext } from 'react-hook-form';
|
|
16
17
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
17
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
19
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -939,12 +940,6 @@ declare namespace FormRadioGroup {
|
|
|
939
940
|
var displayName: string;
|
|
940
941
|
}
|
|
941
942
|
|
|
942
|
-
declare function useFormContext<T extends FieldValues = FieldValues>(): UseFormReturn<T>;
|
|
943
|
-
interface FormProviderProps<T extends FieldValues = FieldValues> {
|
|
944
|
-
form: UseFormReturn<T>;
|
|
945
|
-
children: React$1.ReactNode;
|
|
946
|
-
}
|
|
947
|
-
declare function FormProvider<T extends FieldValues = FieldValues>({ form, children, }: FormProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
948
943
|
declare function useFormFieldContext(): FormFieldContextValue;
|
|
949
944
|
interface FormFieldProviderProps {
|
|
950
945
|
name: string;
|
|
@@ -2288,4 +2283,4 @@ declare const useTheme: () => ThemeProviderState;
|
|
|
2288
2283
|
*/
|
|
2289
2284
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2290
2285
|
|
|
2291
|
-
export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps,
|
|
2286
|
+
export { AuthLayout, type AuthLayoutBodyProps, type AuthLayoutContentProps, type AuthLayoutDividerProps, type AuthLayoutFooterProps, type AuthLayoutHeaderProps, type AuthLayoutImageProps, type AuthLayoutLinkProps, type AuthLayoutProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, type BaseFieldProps, BigNumberCard, type BigNumberCardContentProps, type BigNumberCardHeaderProps, type BigNumberCardLinkProps, type BigNumberCardRootProps, type BigNumberCardSize, type BigNumberCardSparklineProps, type BigNumberCardTitleProps, type BigNumberCardTrendProps, type BigNumberCardValueProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxProps, type Company, DENSITY_CONFIG, DashboardLayout, type DashboardLayoutBreadcrumbsProps, type DashboardLayoutContentProps, type DashboardLayoutContextValue, type DashboardLayoutHeaderActionsProps, type DashboardLayoutHeaderProps, type DashboardLayoutHeaderTitleProps, type DashboardLayoutHeaderUserProps, type DashboardLayoutMobileNavItemProps, type DashboardLayoutMobileNavProps, type DashboardLayoutProps, type DashboardLayoutSidebarFooterProps, type DashboardLayoutSidebarHeaderProps, type DashboardLayoutSidebarNavGroupProps, type DashboardLayoutSidebarNavItemProps, type DashboardLayoutSidebarNavProps, type DashboardLayoutSidebarProps, type DashboardLayoutSidebarSectionProps, DataTable, type DataTableBulkActionsProps, type DataTableColumnHeaderProps, type DataTableColumnVisibilityProps, type DataTableContentProps, type DataTableContextValue, type DataTableDensity, type DataTableDensityToggleProps, type DataTableEmptyStateProps, type DataTableExportFormat, type DataTableExportProps, type DataTableFilterOption, type DataTableFilterProps, type DataTableFiltersProps, type DataTableLoadingProps, type DataTableMeta, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRowActionsProps, type DataTableSearchProps, type DataTableState, type DataTableTab, type DataTableTabsProps, type DataTableToolbarProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, type DialogWrapperProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Form, FormCheckbox, type FormCheckboxProps, type FormContextValue, FormDescription, type FormDescriptionProps, FormError, type FormErrorProps, type FormFieldContextValue, FormFieldProvider, FormFieldWrapper, type FormFieldWrapperProps, FormInput, type FormInputProps, FormLabel, type FormLabelProps, FormRadioGroup, type FormRadioGroupProps, type FormRootProps, FormSelect, type FormSelectProps, FormSwitch, type FormSwitchProps, FormTextarea, type FormTextareaProps, GlobalLoaderController, Input, type InputProps, Kanban, type KanbanBoardProps, type KanbanCardProps, type KanbanColumnConfig, type KanbanColumnProps, type KanbanContextValue, type KanbanDragResult, type KanbanEmptyProps, type KanbanItem, Loader, type LoaderProps, LoaderProvider, Logo, type LogoProps, type MaskType, MobileNav, type MobileNavFabAction, MobileNavItem, type MobileNavItemConfig, type MobileNavItemProps, type MobileNavProps, Navbar, NavbarCompanyProfile, type NavbarCompanyProfileProps, NavbarNotification, type NavbarNotificationProps, type NavbarProps, NavbarUserMenu, type NavbarUserMenuProps, type NotificationItem, type PaginatedResponse, type PaginationMeta, type PaginationParams, Popover, PopoverContent, PopoverTrigger, type RadioOption, RippleBackground, type RippleBackgroundProps, RippleEffect, type RippleEffectProps, RippleWrapper, type RippleWrapperProps, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderBadge, type SectionHeaderBadgeProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderIcon, type SectionHeaderIconProps, SectionHeaderRoot, type SectionHeaderRootProps, SectionHeaderSubtitle, type SectionHeaderSubtitleProps, SectionHeaderTitle, type SectionHeaderTitleProps, Select, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectSeparator, SelectionLayout, type SelectionLayoutCardProps, type SelectionLayoutEmptyProps, type SelectionLayoutHeaderProps, type SelectionLayoutHeadlineProps, type SelectionLayoutListProps, type SelectionLayoutLogoProps, type SelectionLayoutMainProps, type SelectionLayoutProps, type SelectionLayoutSearchProps, type SelectionLayoutSidebarProps, type SelectionLayoutStatsProps, type SelectionLayoutTabProps, type SelectionLayoutTabsProps, Separator, Sidebar, type SidebarContextValue, type SidebarFooterMenuItem, type SidebarFooterProps, type SidebarFooterUser, type SidebarHeaderProps, type SidebarNavGroupProps, type SidebarNavItemProps, type SidebarNavProps, type SidebarProps, type SidebarSectionProps, Skeleton, type SkeletonProps, Sparkline, type SparklineColor, type StepState, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type ThemeToggleProps, Toaster, type ToasterProps, type UseDataTableConfig, type UserMenuItemConfig, type ValidationSchema, Wizard, WizardContent, type WizardContentProps, type WizardContextValue, WizardNavigation, type WizardNavigationProps, WizardPanel, type WizardPanelProps, WizardProgress, type WizardProgressProps, type WizardProps, WizardProvider, type WizardStepConfig, WizardStepConnector, type WizardStepConnectorProps, WizardStepIndicator, type WizardStepIndicatorProps, WizardSteps, type WizardStepsProps, cn, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useKanban, useKanbanOptional, useLoader, useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
|
package/dist/index.js
CHANGED
|
@@ -3006,21 +3006,6 @@ var Textarea = React48__namespace.memo(
|
|
|
3006
3006
|
)
|
|
3007
3007
|
);
|
|
3008
3008
|
Textarea.displayName = "Textarea";
|
|
3009
|
-
var FormContext = React48__namespace.createContext(null);
|
|
3010
|
-
function useFormContext() {
|
|
3011
|
-
const context = React48__namespace.useContext(FormContext);
|
|
3012
|
-
if (!context) {
|
|
3013
|
-
throw new Error("useFormContext must be used within a Form provider");
|
|
3014
|
-
}
|
|
3015
|
-
return context.form;
|
|
3016
|
-
}
|
|
3017
|
-
function FormProvider({
|
|
3018
|
-
form,
|
|
3019
|
-
children
|
|
3020
|
-
}) {
|
|
3021
|
-
const value = React48__namespace.useMemo(() => ({ form }), [form]);
|
|
3022
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormContext.Provider, { value, children });
|
|
3023
|
-
}
|
|
3024
3009
|
var FormFieldContext = React48__namespace.createContext(null);
|
|
3025
3010
|
function useFormFieldContext() {
|
|
3026
3011
|
const context = React48__namespace.useContext(FormFieldContext);
|
|
@@ -3033,19 +3018,18 @@ function useFormFieldContextOptional() {
|
|
|
3033
3018
|
return React48__namespace.useContext(FormFieldContext);
|
|
3034
3019
|
}
|
|
3035
3020
|
function FormFieldProvider({ name, children }) {
|
|
3036
|
-
const form = useFormContext();
|
|
3021
|
+
const form = reactHookForm.useFormContext();
|
|
3037
3022
|
const id = React48__namespace.useId();
|
|
3038
3023
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3039
3024
|
const error = fieldState.error?.message;
|
|
3040
|
-
const isRequired = false;
|
|
3041
3025
|
const value = React48__namespace.useMemo(
|
|
3042
3026
|
() => ({
|
|
3043
3027
|
name,
|
|
3044
3028
|
id,
|
|
3045
3029
|
error,
|
|
3046
|
-
isRequired
|
|
3030
|
+
isRequired: false
|
|
3047
3031
|
}),
|
|
3048
|
-
[name, id, error
|
|
3032
|
+
[name, id, error]
|
|
3049
3033
|
);
|
|
3050
3034
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value, children });
|
|
3051
3035
|
}
|
|
@@ -3143,7 +3127,7 @@ function FormInput({
|
|
|
3143
3127
|
maxLength,
|
|
3144
3128
|
...inputProps
|
|
3145
3129
|
}) {
|
|
3146
|
-
const form = useFormContext();
|
|
3130
|
+
const form = reactHookForm.useFormContext();
|
|
3147
3131
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3148
3132
|
const error = fieldState.error?.message;
|
|
3149
3133
|
const getInputType = React48__namespace.useCallback(() => {
|
|
@@ -3218,7 +3202,7 @@ function FormSelect({
|
|
|
3218
3202
|
emptyText = "Nenhuma op\xE7\xE3o dispon\xEDvel",
|
|
3219
3203
|
loading = false
|
|
3220
3204
|
}) {
|
|
3221
|
-
const form = useFormContext();
|
|
3205
|
+
const form = reactHookForm.useFormContext();
|
|
3222
3206
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3223
3207
|
const error = fieldState.error?.message;
|
|
3224
3208
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3277,7 +3261,7 @@ function FormTextarea({
|
|
|
3277
3261
|
maxLength,
|
|
3278
3262
|
...textareaProps
|
|
3279
3263
|
}) {
|
|
3280
|
-
const form = useFormContext();
|
|
3264
|
+
const form = reactHookForm.useFormContext();
|
|
3281
3265
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3282
3266
|
const error = fieldState.error?.message;
|
|
3283
3267
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3339,7 +3323,7 @@ function FormCheckbox({
|
|
|
3339
3323
|
className,
|
|
3340
3324
|
hideError = false
|
|
3341
3325
|
}) {
|
|
3342
|
-
const form = useFormContext();
|
|
3326
|
+
const form = reactHookForm.useFormContext();
|
|
3343
3327
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3344
3328
|
const error = fieldState.error?.message;
|
|
3345
3329
|
const id = React48__namespace.useId();
|
|
@@ -3394,7 +3378,7 @@ function FormSwitch({
|
|
|
3394
3378
|
className,
|
|
3395
3379
|
hideError = false
|
|
3396
3380
|
}) {
|
|
3397
|
-
const form = useFormContext();
|
|
3381
|
+
const form = reactHookForm.useFormContext();
|
|
3398
3382
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3399
3383
|
const error = fieldState.error?.message;
|
|
3400
3384
|
const id = React48__namespace.useId();
|
|
@@ -3451,7 +3435,7 @@ function FormRadioGroup({
|
|
|
3451
3435
|
orientation = "vertical",
|
|
3452
3436
|
hideError = false
|
|
3453
3437
|
}) {
|
|
3454
|
-
const form = useFormContext();
|
|
3438
|
+
const form = reactHookForm.useFormContext();
|
|
3455
3439
|
const fieldState = form.getFieldState(name, form.formState);
|
|
3456
3440
|
const error = fieldState.error?.message;
|
|
3457
3441
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldProvider, { name, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3609,7 +3593,7 @@ function FormRoot({
|
|
|
3609
3593
|
className,
|
|
3610
3594
|
...props
|
|
3611
3595
|
}) {
|
|
3612
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormProvider, { form, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3596
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.FormProvider, { ...form, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3613
3597
|
"form",
|
|
3614
3598
|
{
|
|
3615
3599
|
onSubmit: form.handleSubmit(onSubmit, onError),
|
|
@@ -6825,39 +6809,47 @@ function WizardNavigation({
|
|
|
6825
6809
|
const {
|
|
6826
6810
|
isFirstStep,
|
|
6827
6811
|
isLastStep,
|
|
6812
|
+
currentStep,
|
|
6828
6813
|
goToNextStep,
|
|
6829
6814
|
goToPrevStep,
|
|
6830
6815
|
form
|
|
6831
6816
|
} = useWizardContext();
|
|
6832
6817
|
const isSubmitting = form.formState.isSubmitting;
|
|
6833
6818
|
const shouldShowCancel = showCancel ?? isFirstStep;
|
|
6834
|
-
const handleNext = React48.useCallback(async () => {
|
|
6819
|
+
const handleNext = React48.useCallback(async (e) => {
|
|
6820
|
+
e.preventDefault();
|
|
6821
|
+
e.stopPropagation();
|
|
6835
6822
|
await goToNextStep();
|
|
6836
6823
|
}, [goToNextStep]);
|
|
6837
|
-
const handlePrev = React48.useCallback(() => {
|
|
6824
|
+
const handlePrev = React48.useCallback((e) => {
|
|
6825
|
+
e.preventDefault();
|
|
6826
|
+
e.stopPropagation();
|
|
6838
6827
|
goToPrevStep();
|
|
6839
6828
|
}, [goToPrevStep]);
|
|
6840
|
-
const handleCancel = React48.useCallback(() => {
|
|
6829
|
+
const handleCancel = React48.useCallback((e) => {
|
|
6830
|
+
e.preventDefault();
|
|
6831
|
+
e.stopPropagation();
|
|
6841
6832
|
onCancel?.();
|
|
6842
6833
|
}, [onCancel]);
|
|
6843
6834
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6844
6835
|
"div",
|
|
6845
6836
|
{
|
|
6846
6837
|
className: cn(
|
|
6847
|
-
"
|
|
6838
|
+
"grid grid-cols-2 gap-3 pt-4 border-t border-border",
|
|
6848
6839
|
className
|
|
6849
6840
|
),
|
|
6850
6841
|
children: [
|
|
6851
|
-
|
|
6842
|
+
shouldShowCancel && onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6852
6843
|
Button,
|
|
6853
6844
|
{
|
|
6854
6845
|
type: "button",
|
|
6855
6846
|
variant: "outline",
|
|
6856
6847
|
onClick: handleCancel,
|
|
6857
6848
|
disabled: isSubmitting,
|
|
6858
|
-
className: "w-full
|
|
6849
|
+
className: "w-full",
|
|
6859
6850
|
children: cancelLabel
|
|
6860
|
-
}
|
|
6851
|
+
},
|
|
6852
|
+
"cancel"
|
|
6861
6853
|
) : !isFirstStep ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6862
6854
|
Button,
|
|
6863
6855
|
{
|
|
@@ -6865,43 +6857,34 @@ function WizardNavigation({
|
|
|
6865
6857
|
variant: "outline",
|
|
6866
6858
|
onClick: handlePrev,
|
|
6867
6859
|
disabled: isSubmitting,
|
|
6868
|
-
className: "w-full
|
|
6860
|
+
className: "w-full",
|
|
6869
6861
|
children: prevLabel
|
|
6870
|
-
}
|
|
6871
|
-
|
|
6872
|
-
/* @__PURE__ */ jsxRuntime.
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
{
|
|
6897
|
-
type: "button",
|
|
6898
|
-
onClick: handleNext,
|
|
6899
|
-
disabled: isSubmitting,
|
|
6900
|
-
className: "min-w-[120px]",
|
|
6901
|
-
children: nextLabel
|
|
6902
|
-
}
|
|
6903
|
-
)
|
|
6904
|
-
] })
|
|
6862
|
+
},
|
|
6863
|
+
"prev"
|
|
6864
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", {}),
|
|
6865
|
+
isLastStep ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6866
|
+
Button,
|
|
6867
|
+
{
|
|
6868
|
+
type: "submit",
|
|
6869
|
+
disabled: submitDisabled || isSubmitting,
|
|
6870
|
+
className: "w-full",
|
|
6871
|
+
children: isSubmitting ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center justify-center gap-2", children: [
|
|
6872
|
+
/* @__PURE__ */ jsxRuntime.jsx(Loader, { variant: "spinner" }),
|
|
6873
|
+
loadingLabel
|
|
6874
|
+
] }) : submitLabel
|
|
6875
|
+
},
|
|
6876
|
+
`submit-step-${currentStep}`
|
|
6877
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6878
|
+
Button,
|
|
6879
|
+
{
|
|
6880
|
+
type: "button",
|
|
6881
|
+
onClick: handleNext,
|
|
6882
|
+
disabled: isSubmitting,
|
|
6883
|
+
className: "w-full",
|
|
6884
|
+
children: nextLabel
|
|
6885
|
+
},
|
|
6886
|
+
`next-step-${currentStep}`
|
|
6887
|
+
)
|
|
6905
6888
|
]
|
|
6906
6889
|
}
|
|
6907
6890
|
);
|
|
@@ -7141,6 +7124,14 @@ Object.defineProperty(exports, "flexRender", {
|
|
|
7141
7124
|
enumerable: true,
|
|
7142
7125
|
get: function () { return reactTable.flexRender; }
|
|
7143
7126
|
});
|
|
7127
|
+
Object.defineProperty(exports, "FormProvider", {
|
|
7128
|
+
enumerable: true,
|
|
7129
|
+
get: function () { return reactHookForm.FormProvider; }
|
|
7130
|
+
});
|
|
7131
|
+
Object.defineProperty(exports, "useFormContext", {
|
|
7132
|
+
enumerable: true,
|
|
7133
|
+
get: function () { return reactHookForm.useFormContext; }
|
|
7134
|
+
});
|
|
7144
7135
|
exports.AuthLayout = AuthLayout;
|
|
7145
7136
|
exports.Avatar = Avatar;
|
|
7146
7137
|
exports.AvatarFallback = AvatarFallback;
|
|
@@ -7202,7 +7193,6 @@ exports.FormFieldProvider = FormFieldProvider;
|
|
|
7202
7193
|
exports.FormFieldWrapper = FormFieldWrapper;
|
|
7203
7194
|
exports.FormInput = FormInput;
|
|
7204
7195
|
exports.FormLabel = FormLabel;
|
|
7205
|
-
exports.FormProvider = FormProvider;
|
|
7206
7196
|
exports.FormRadioGroup = FormRadioGroup;
|
|
7207
7197
|
exports.FormSelect = FormSelect;
|
|
7208
7198
|
exports.FormSwitch = FormSwitch;
|
|
@@ -7289,7 +7279,6 @@ exports.useDataTableSorting = useDataTableSorting;
|
|
|
7289
7279
|
exports.useDataTableState = useDataTableState;
|
|
7290
7280
|
exports.useDebounce = useDebounce;
|
|
7291
7281
|
exports.useDebouncedCallback = useDebouncedCallback;
|
|
7292
|
-
exports.useFormContext = useFormContext;
|
|
7293
7282
|
exports.useFormFieldContext = useFormFieldContext;
|
|
7294
7283
|
exports.useKanban = useKanban;
|
|
7295
7284
|
exports.useKanbanOptional = useKanbanOptional;
|