@chekinapp/ui 0.0.24 → 0.0.26

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
@@ -2610,6 +2610,16 @@ interface UsePaginationReturn {
2610
2610
  }
2611
2611
  declare function usePagination(config: PaginationConfig): UsePaginationReturn;
2612
2612
 
2613
+ type UseCopyToClipboardProps = {
2614
+ value?: string | number;
2615
+ onCopiedLink?: () => void;
2616
+ onReset?: () => void;
2617
+ };
2618
+ declare function useCopyToClipboard({ value, onCopiedLink, onReset }: UseCopyToClipboardProps): {
2619
+ isCopied: boolean;
2620
+ copy: () => void;
2621
+ };
2622
+
2613
2623
  type Props = {
2614
2624
  seconds: number;
2615
2625
  };
@@ -2630,6 +2640,13 @@ declare function useHover(): {
2630
2640
  handleMouseLeave: () => void;
2631
2641
  };
2632
2642
 
2643
+ declare const usePromisedModalControls: () => {
2644
+ isOpen: boolean;
2645
+ openModal: () => Promise<boolean>;
2646
+ closeModal: () => void;
2647
+ resolveRef: React$1.MutableRefObject<((value: boolean | PromiseLike<boolean>) => void) | undefined>;
2648
+ };
2649
+
2633
2650
  declare function cn(...inputs: ClassValue[]): string;
2634
2651
 
2635
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbSearchInput, AirbnbSelect, type AirbnbSelectProps, AlertBox, type AlertBoxProps, AlertSize, AlertSizes, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChannelOption, ChannelSelector, type ChannelSelectorProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, type CustomIconEntry, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, DownloadEntryFormsButton, type DownloadEntryFormsButtonProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FeatureCard, type FeatureCardProps, FieldErrorMessage, type FieldErrorMessageProps, FieldTrigger, type FieldTriggerProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, GridItems, type GridItemsProps, type GuestVerificationStatus, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IVStatusBadge, type IVStatusBadgeProps, IV_BADGE_STATUS, Icon$1 as Icon, IconButton, type IconButtonProps, type IconEntry, type IconNames, type IconProps, IconRegistry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, LABEL_PLACEMENT, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, Link, type LinkProps, Loader, type LoaderProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, METRIC_CARD_VARIANTS, MetricCard, type MetricCardProps, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Radio, RadioGroup, RadioGroupItem, type RadioOption, type RadioProps, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, RegistryIcon, ResponsiveSheet, type ResponsiveSheetProps, RotateIcon, type RotateIconProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, SearchableSelect, type SearchableSelectProps, type SearchableSelectValue, Section, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, Select, SelectContent, type SelectForwardType, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectPortal, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, SelectValue$1 as SelectValue, SelectorButton, type SelectorButtonProps, type SelectorOption, Selectors, type SelectorsProps, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TASK_VARIANTS, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, TaskCard, type TaskCardProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThreeDotsLoader, type ThreeDotsLoaderProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, VideoPlayer, type VideoPlayerProps, WideButton, type WideButtonProps, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, emptyMediaVariants, getSidebarState, inputVariants, labelVariants, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useDebounce, useDebouncedFunction, useEvent, useHover, useIsMobile, useIsMounted, useModalControls, useOutsideClick, usePagination, usePrevious, useRadioOptions, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
2652
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbSearchInput, AirbnbSelect, type AirbnbSelectProps, AlertBox, type AlertBoxProps, AlertSize, AlertSizes, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChannelOption, ChannelSelector, type ChannelSelectorProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, type CustomIconEntry, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, DownloadEntryFormsButton, type DownloadEntryFormsButtonProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FeatureCard, type FeatureCardProps, FieldErrorMessage, type FieldErrorMessageProps, FieldTrigger, type FieldTriggerProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, GridItems, type GridItemsProps, type GuestVerificationStatus, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IVStatusBadge, type IVStatusBadgeProps, IV_BADGE_STATUS, Icon$1 as Icon, IconButton, type IconButtonProps, type IconEntry, type IconNames, type IconProps, IconRegistry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, LABEL_PLACEMENT, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, Link, type LinkProps, Loader, type LoaderProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, METRIC_CARD_VARIANTS, MetricCard, type MetricCardProps, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Radio, RadioGroup, RadioGroupItem, type RadioOption, type RadioProps, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, RegistryIcon, ResponsiveSheet, type ResponsiveSheetProps, RotateIcon, type RotateIconProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, SearchableSelect, type SearchableSelectProps, type SearchableSelectValue, Section, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, Select, SelectContent, type SelectForwardType, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectPortal, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, SelectValue$1 as SelectValue, SelectorButton, type SelectorButtonProps, type SelectorOption, Selectors, type SelectorsProps, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TASK_VARIANTS, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, TaskCard, type TaskCardProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThreeDotsLoader, type ThreeDotsLoaderProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, VideoPlayer, type VideoPlayerProps, WideButton, type WideButtonProps, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, emptyMediaVariants, getSidebarState, inputVariants, labelVariants, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIsMobile, useIsMounted, useModalControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
package/dist/index.d.ts CHANGED
@@ -2610,6 +2610,16 @@ interface UsePaginationReturn {
2610
2610
  }
2611
2611
  declare function usePagination(config: PaginationConfig): UsePaginationReturn;
2612
2612
 
2613
+ type UseCopyToClipboardProps = {
2614
+ value?: string | number;
2615
+ onCopiedLink?: () => void;
2616
+ onReset?: () => void;
2617
+ };
2618
+ declare function useCopyToClipboard({ value, onCopiedLink, onReset }: UseCopyToClipboardProps): {
2619
+ isCopied: boolean;
2620
+ copy: () => void;
2621
+ };
2622
+
2613
2623
  type Props = {
2614
2624
  seconds: number;
2615
2625
  };
@@ -2630,6 +2640,13 @@ declare function useHover(): {
2630
2640
  handleMouseLeave: () => void;
2631
2641
  };
2632
2642
 
2643
+ declare const usePromisedModalControls: () => {
2644
+ isOpen: boolean;
2645
+ openModal: () => Promise<boolean>;
2646
+ closeModal: () => void;
2647
+ resolveRef: React$1.MutableRefObject<((value: boolean | PromiseLike<boolean>) => void) | undefined>;
2648
+ };
2649
+
2633
2650
  declare function cn(...inputs: ClassValue[]): string;
2634
2651
 
2635
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbSearchInput, AirbnbSelect, type AirbnbSelectProps, AlertBox, type AlertBoxProps, AlertSize, AlertSizes, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChannelOption, ChannelSelector, type ChannelSelectorProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, type CustomIconEntry, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, DownloadEntryFormsButton, type DownloadEntryFormsButtonProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FeatureCard, type FeatureCardProps, FieldErrorMessage, type FieldErrorMessageProps, FieldTrigger, type FieldTriggerProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, GridItems, type GridItemsProps, type GuestVerificationStatus, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IVStatusBadge, type IVStatusBadgeProps, IV_BADGE_STATUS, Icon$1 as Icon, IconButton, type IconButtonProps, type IconEntry, type IconNames, type IconProps, IconRegistry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, LABEL_PLACEMENT, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, Link, type LinkProps, Loader, type LoaderProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, METRIC_CARD_VARIANTS, MetricCard, type MetricCardProps, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Radio, RadioGroup, RadioGroupItem, type RadioOption, type RadioProps, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, RegistryIcon, ResponsiveSheet, type ResponsiveSheetProps, RotateIcon, type RotateIconProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, SearchableSelect, type SearchableSelectProps, type SearchableSelectValue, Section, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, Select, SelectContent, type SelectForwardType, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectPortal, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, SelectValue$1 as SelectValue, SelectorButton, type SelectorButtonProps, type SelectorOption, Selectors, type SelectorsProps, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TASK_VARIANTS, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, TaskCard, type TaskCardProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThreeDotsLoader, type ThreeDotsLoaderProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, VideoPlayer, type VideoPlayerProps, WideButton, type WideButtonProps, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, emptyMediaVariants, getSidebarState, inputVariants, labelVariants, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useDebounce, useDebouncedFunction, useEvent, useHover, useIsMobile, useIsMounted, useModalControls, useOutsideClick, usePagination, usePrevious, useRadioOptions, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
2652
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbSearchInput, AirbnbSelect, type AirbnbSelectProps, AlertBox, type AlertBoxProps, AlertSize, AlertSizes, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChannelOption, ChannelSelector, type ChannelSelectorProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, type CustomIconEntry, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, DownloadEntryFormsButton, type DownloadEntryFormsButtonProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FeatureCard, type FeatureCardProps, FieldErrorMessage, type FieldErrorMessageProps, FieldTrigger, type FieldTriggerProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, GridItems, type GridItemsProps, type GuestVerificationStatus, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IVStatusBadge, type IVStatusBadgeProps, IV_BADGE_STATUS, Icon$1 as Icon, IconButton, type IconButtonProps, type IconEntry, type IconNames, type IconProps, IconRegistry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, LABEL_PLACEMENT, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, Link, type LinkProps, Loader, type LoaderProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, METRIC_CARD_VARIANTS, MetricCard, type MetricCardProps, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Radio, RadioGroup, RadioGroupItem, type RadioOption, type RadioProps, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, RegistryIcon, ResponsiveSheet, type ResponsiveSheetProps, RotateIcon, type RotateIconProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, SearchableSelect, type SearchableSelectProps, type SearchableSelectValue, Section, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, Select, SelectContent, type SelectForwardType, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectPortal, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, SelectValue$1 as SelectValue, SelectorButton, type SelectorButtonProps, type SelectorOption, Selectors, type SelectorsProps, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TASK_VARIANTS, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, TaskCard, type TaskCardProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThreeDotsLoader, type ThreeDotsLoaderProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, VideoPlayer, type VideoPlayerProps, WideButton, type WideButtonProps, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, emptyMediaVariants, getSidebarState, inputVariants, labelVariants, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIsMobile, useIsMounted, useModalControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
package/dist/index.js CHANGED
@@ -2518,12 +2518,76 @@ function usePagination(config) {
2518
2518
  };
2519
2519
  }
2520
2520
 
2521
+ // src/hooks/use-copy-to-clipboard.ts
2522
+ import { useEffect as useEffect13, useRef as useRef8, useState as useState10 } from "react";
2523
+
2524
+ // src/lib/copy-to-clipboard.ts
2525
+ function copyToClipboardFallback(value) {
2526
+ const targetDocument = getDocument();
2527
+ const targetBody = targetDocument.body;
2528
+ if (!targetBody) {
2529
+ return;
2530
+ }
2531
+ const el = targetDocument.createElement("textarea");
2532
+ el.value = value;
2533
+ el.setAttribute("readonly", "");
2534
+ el.style.position = "fixed";
2535
+ el.style.opacity = "0";
2536
+ el.style.pointerEvents = "none";
2537
+ el.style.left = "-9999px";
2538
+ targetBody.appendChild(el);
2539
+ el.focus();
2540
+ el.select();
2541
+ targetDocument.execCommand("copy");
2542
+ targetBody.removeChild(el);
2543
+ }
2544
+ function copyToClipboard2(value) {
2545
+ const text = typeof value === "number" ? value.toString() : value;
2546
+ const targetDocument = getDocument();
2547
+ const clipboard = targetDocument.defaultView?.navigator?.clipboard ?? globalThis.navigator?.clipboard;
2548
+ if (!clipboard?.writeText) {
2549
+ copyToClipboardFallback(text);
2550
+ return;
2551
+ }
2552
+ void clipboard.writeText(text).catch(() => {
2553
+ copyToClipboardFallback(text);
2554
+ });
2555
+ }
2556
+
2557
+ // src/hooks/use-copy-to-clipboard.ts
2558
+ var COPIED_TIMEOUT_S = 1.5;
2559
+ function useCopyToClipboard({ value, onCopiedLink, onReset }) {
2560
+ const [isCopied, setIsLinkCopied] = useState10(false);
2561
+ const timeoutRef = useRef8();
2562
+ useEffect13(() => {
2563
+ return () => {
2564
+ if (timeoutRef.current) {
2565
+ clearTimeout(timeoutRef.current);
2566
+ }
2567
+ };
2568
+ }, []);
2569
+ const copy = () => {
2570
+ if (!value) return;
2571
+ if (timeoutRef.current) {
2572
+ clearTimeout(timeoutRef.current);
2573
+ }
2574
+ copyToClipboard2(value);
2575
+ setIsLinkCopied(true);
2576
+ timeoutRef.current = setTimeout(() => {
2577
+ setIsLinkCopied(false);
2578
+ onReset?.();
2579
+ }, COPIED_TIMEOUT_S * 1e3);
2580
+ onCopiedLink?.();
2581
+ };
2582
+ return { isCopied, copy };
2583
+ }
2584
+
2521
2585
  // src/hooks/use-timer.ts
2522
- import { useEffect as useEffect13, useState as useState10 } from "react";
2586
+ import { useEffect as useEffect14, useState as useState11 } from "react";
2523
2587
  var useTimer = ({ seconds }) => {
2524
- const [timeLeft, setTimeLeft] = useState10(seconds);
2525
- const [isTimerRunning, setIsTimerRunning] = useState10(true);
2526
- useEffect13(() => {
2588
+ const [timeLeft, setTimeLeft] = useState11(seconds);
2589
+ const [isTimerRunning, setIsTimerRunning] = useState11(true);
2590
+ useEffect14(() => {
2527
2591
  if (!isTimerRunning) return;
2528
2592
  const timer = setInterval(() => {
2529
2593
  setTimeLeft((prev) => {
@@ -2549,9 +2613,9 @@ var useTimer = ({ seconds }) => {
2549
2613
  };
2550
2614
 
2551
2615
  // src/hooks/use-timeout.ts
2552
- import { useCallback as useCallback9, useEffect as useEffect14, useRef as useRef8 } from "react";
2616
+ import { useCallback as useCallback9, useEffect as useEffect15, useRef as useRef9 } from "react";
2553
2617
  function useTimeout() {
2554
- const timeoutRef = useRef8();
2618
+ const timeoutRef = useRef9();
2555
2619
  const clearTimeoutRef = useCallback9(() => {
2556
2620
  clearTimeout(timeoutRef.current);
2557
2621
  timeoutRef.current = void 0;
@@ -2563,14 +2627,14 @@ function useTimeout() {
2563
2627
  },
2564
2628
  [clearTimeoutRef]
2565
2629
  );
2566
- useEffect14(() => clearTimeoutRef, [clearTimeoutRef]);
2630
+ useEffect15(() => clearTimeoutRef, [clearTimeoutRef]);
2567
2631
  return { scheduleTimeout, clearTimeoutRef };
2568
2632
  }
2569
2633
 
2570
2634
  // src/hooks/use-hover.ts
2571
- import { useCallback as useCallback10, useState as useState11 } from "react";
2635
+ import { useCallback as useCallback10, useState as useState12 } from "react";
2572
2636
  function useHover() {
2573
- const [isHovering, setIsHovering] = useState11(false);
2637
+ const [isHovering, setIsHovering] = useState12(false);
2574
2638
  const handleMouseEnter = useCallback10(() => {
2575
2639
  setIsHovering(true);
2576
2640
  }, []);
@@ -2584,6 +2648,25 @@ function useHover() {
2584
2648
  };
2585
2649
  }
2586
2650
 
2651
+ // src/hooks/use-promised-modal-controls.ts
2652
+ import { useRef as useRef10 } from "react";
2653
+ var usePromisedModalControls = () => {
2654
+ const { closeModal, isOpen, openModal } = useModalControls();
2655
+ const resolveRef = useRef10();
2656
+ const openModalWithPromise = async () => {
2657
+ openModal();
2658
+ return new Promise((resolve) => {
2659
+ resolveRef.current = resolve;
2660
+ });
2661
+ };
2662
+ return {
2663
+ isOpen,
2664
+ openModal: openModalWithPromise,
2665
+ closeModal,
2666
+ resolveRef
2667
+ };
2668
+ };
2669
+
2587
2670
  // src/dialog/Dialog.tsx
2588
2671
  import { jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
2589
2672
  function useIframeTitleFix(titleRef) {
@@ -2819,7 +2902,7 @@ function DownloadEntryFormsButton({
2819
2902
  }
2820
2903
 
2821
2904
  // src/dropdown-button/DropdownButton.tsx
2822
- import { useState as useState12 } from "react";
2905
+ import { useState as useState13 } from "react";
2823
2906
 
2824
2907
  // src/dropdown-menu/DropdownMenu.tsx
2825
2908
  import * as React13 from "react";
@@ -2883,7 +2966,7 @@ function DropdownButton({
2883
2966
  modal,
2884
2967
  className
2885
2968
  }) {
2886
- const [isOpen, setIsOpen] = useState12(false);
2969
+ const [isOpen, setIsOpen] = useState13(false);
2887
2970
  return /* @__PURE__ */ jsxs25(DropdownMenu, { onOpenChange: setIsOpen, modal, children: [
2888
2971
  /* @__PURE__ */ jsx34(DropdownMenuTrigger, { asChild: true, children: typeof trigger === "function" ? trigger(isOpen) : trigger }),
2889
2972
  /* @__PURE__ */ jsx34(
@@ -3221,7 +3304,7 @@ var Switch = React15.forwardRef(
3221
3304
  Switch.displayName = SwitchPrimitives.Root.displayName;
3222
3305
 
3223
3306
  // src/video-player/VideoPlayer.tsx
3224
- import { useEffect as useEffect16, useRef as useRef10, useState as useState13 } from "react";
3307
+ import { useEffect as useEffect17, useRef as useRef12, useState as useState14 } from "react";
3225
3308
  import { useTranslation as useTranslation8 } from "react-i18next";
3226
3309
  import {
3227
3310
  Loader2,
@@ -3245,20 +3328,20 @@ function VideoPlayer({
3245
3328
  autoPlay = false
3246
3329
  }) {
3247
3330
  const { t } = useTranslation8();
3248
- const videoRef = useRef10(null);
3249
- const iframeRef = useRef10(null);
3250
- const containerRef = useRef10(null);
3251
- const [isPlaying, setIsPlaying] = useState13(false);
3252
- const [isMuted, setIsMuted] = useState13(false);
3253
- const [currentTime, setCurrentTime] = useState13(0);
3254
- const [duration, setDuration] = useState13(0);
3255
- const [isFullScreenMode, setIsFullScreenMode] = useState13(isFullScreen);
3256
- const [isLoading, setIsLoading] = useState13(true);
3257
- const [videoSource, setVideoSource] = useState13("file");
3258
- const [youtubeEmbedUrl, setYoutubeEmbedUrl] = useState13("");
3259
- const [vimeoEmbedUrl, setVimeoEmbedUrl] = useState13("");
3331
+ const videoRef = useRef12(null);
3332
+ const iframeRef = useRef12(null);
3333
+ const containerRef = useRef12(null);
3334
+ const [isPlaying, setIsPlaying] = useState14(false);
3335
+ const [isMuted, setIsMuted] = useState14(false);
3336
+ const [currentTime, setCurrentTime] = useState14(0);
3337
+ const [duration, setDuration] = useState14(0);
3338
+ const [isFullScreenMode, setIsFullScreenMode] = useState14(isFullScreen);
3339
+ const [isLoading, setIsLoading] = useState14(true);
3340
+ const [videoSource, setVideoSource] = useState14("file");
3341
+ const [youtubeEmbedUrl, setYoutubeEmbedUrl] = useState14("");
3342
+ const [vimeoEmbedUrl, setVimeoEmbedUrl] = useState14("");
3260
3343
  useClickEscape({ enabled: isFullScreenMode, onClick: onClose });
3261
- useEffect16(() => {
3344
+ useEffect17(() => {
3262
3345
  const youtubeRegex = /(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/;
3263
3346
  const vimeoRegex = /(?:vimeo\.com\/|vimeo\.com\/video\/)(\d+)/;
3264
3347
  const youtubeMatch = src.match(youtubeRegex);
@@ -3287,7 +3370,7 @@ function VideoPlayer({
3287
3370
  setYoutubeEmbedUrl("");
3288
3371
  setVimeoEmbedUrl("");
3289
3372
  }, [src, autoPlay]);
3290
- useEffect16(() => {
3373
+ useEffect17(() => {
3291
3374
  if (videoSource !== "file") return;
3292
3375
  const video = videoRef.current;
3293
3376
  if (!video) return;
@@ -3315,7 +3398,7 @@ function VideoPlayer({
3315
3398
  video.removeEventListener("canplay", handleCanPlay);
3316
3399
  };
3317
3400
  }, [videoSource]);
3318
- useEffect16(() => {
3401
+ useEffect17(() => {
3319
3402
  if (isFullScreenMode && videoRef.current && videoSource === "file") {
3320
3403
  void videoRef.current.play();
3321
3404
  setIsPlaying(true);
@@ -3693,7 +3776,7 @@ var FormBox = {
3693
3776
  import {
3694
3777
  forwardRef as forwardRef20,
3695
3778
  useId as useId4,
3696
- useState as useState14
3779
+ useState as useState15
3697
3780
  } from "react";
3698
3781
  import { useTranslation as useTranslation10 } from "react-i18next";
3699
3782
 
@@ -3725,8 +3808,8 @@ var FreeTextField = forwardRef20(
3725
3808
  }, ref) => {
3726
3809
  const { t } = useTranslation10();
3727
3810
  const inputId = useId4();
3728
- const [internalValue, setInternalValue] = useState14(defaultValue ?? "");
3729
- const [isFocused, setIsFocused] = useState14(false);
3811
+ const [internalValue, setInternalValue] = useState15(defaultValue ?? "");
3812
+ const [isFocused, setIsFocused] = useState15(false);
3730
3813
  const currentValue = value !== void 0 ? value : internalValue;
3731
3814
  const isEmpty = !currentValue || String(currentValue).length === 0;
3732
3815
  const hasError = Boolean(error);
@@ -4058,7 +4141,7 @@ function InfoBox({ className, children }) {
4058
4141
  }
4059
4142
 
4060
4143
  // src/image/Image.tsx
4061
- import { useState as useState15 } from "react";
4144
+ import { useState as useState16 } from "react";
4062
4145
  import { jsx as jsx59 } from "react/jsx-runtime";
4063
4146
  function Image2({
4064
4147
  src,
@@ -4067,7 +4150,7 @@ function Image2({
4067
4150
  fallbackSrc = "https://placehold.co/600x400?text=Image",
4068
4151
  ...props
4069
4152
  }) {
4070
- const [error, setError] = useState15(false);
4153
+ const [error, setError] = useState16(false);
4071
4154
  return /* @__PURE__ */ jsx59(
4072
4155
  "img",
4073
4156
  {
@@ -4126,7 +4209,7 @@ function extractDigits(str) {
4126
4209
  }
4127
4210
 
4128
4211
  // src/input-otp/useInputOTP.ts
4129
- import { useCallback as useCallback12, useEffect as useEffect17, useMemo as useMemo2, useRef as useRef11, useState as useState16 } from "react";
4212
+ import { useCallback as useCallback12, useEffect as useEffect18, useMemo as useMemo2, useRef as useRef13, useState as useState17 } from "react";
4130
4213
  function useInputOTP({
4131
4214
  maxLength,
4132
4215
  value,
@@ -4135,11 +4218,11 @@ function useInputOTP({
4135
4218
  autoFocus,
4136
4219
  error
4137
4220
  }) {
4138
- const [activeIndex, setActiveIndex] = useState16(-1);
4139
- const inputRefs = useRef11([]);
4140
- const containerRef = useRef11(null);
4141
- const blurTimeoutRef = useRef11();
4142
- const slotsRef = useRef11(Array.from({ length: maxLength }, () => ""));
4221
+ const [activeIndex, setActiveIndex] = useState17(-1);
4222
+ const inputRefs = useRef13([]);
4223
+ const containerRef = useRef13(null);
4224
+ const blurTimeoutRef = useRef13();
4225
+ const slotsRef = useRef13(Array.from({ length: maxLength }, () => ""));
4143
4226
  const slots = useMemo2(() => {
4144
4227
  const nextSlots = Array.from({ length: maxLength }, () => "");
4145
4228
  for (let index = 0; index < Math.min(value.length, maxLength); index += 1) {
@@ -4172,7 +4255,7 @@ function useInputOTP({
4172
4255
  },
4173
4256
  [onChange]
4174
4257
  );
4175
- useEffect17(() => {
4258
+ useEffect18(() => {
4176
4259
  if (autoFocus && inputRefs.current[0]) {
4177
4260
  inputRefs.current[0].focus();
4178
4261
  }
@@ -4193,7 +4276,7 @@ function useInputOTP({
4193
4276
  }
4194
4277
  }, 0);
4195
4278
  }, []);
4196
- useEffect17(() => () => clearTimeout(blurTimeoutRef.current), []);
4279
+ useEffect18(() => () => clearTimeout(blurTimeoutRef.current), []);
4197
4280
  const handleDigitInput = useCallback12(
4198
4281
  (index, digit) => {
4199
4282
  if (!DIGIT_REGEX.test(digit)) return;
@@ -4452,7 +4535,7 @@ var InputOTPSeparator = React19.forwardRef(
4452
4535
  InputOTPSeparator.displayName = "InputOTPSeparator";
4453
4536
 
4454
4537
  // src/icons-dropdown/IconsDropdown.tsx
4455
- import { useState as useState17 } from "react";
4538
+ import { useState as useState18 } from "react";
4456
4539
  import { jsx as jsx62, jsxs as jsxs36 } from "react/jsx-runtime";
4457
4540
  function IconsDropdown({
4458
4541
  icons,
@@ -4464,7 +4547,7 @@ function IconsDropdown({
4464
4547
  defaultOpen,
4465
4548
  onOpenChange: onOpenChangeProp
4466
4549
  }) {
4467
- const [open, setOpen] = useState17(defaultOpen ?? false);
4550
+ const [open, setOpen] = useState18(defaultOpen ?? false);
4468
4551
  function handleOpenChange(value) {
4469
4552
  setOpen(value);
4470
4553
  onOpenChangeProp?.(value);
@@ -5071,14 +5154,14 @@ LinkInternal.displayName = "Link";
5071
5154
  var Link = memo3(LinkInternal);
5072
5155
 
5073
5156
  // src/image-full-screen-view/ImageFullScreenView.tsx
5074
- import { useState as useState18 } from "react";
5157
+ import { useState as useState19 } from "react";
5075
5158
  import { RotateCw, X as X4, ZoomIn, ZoomOut } from "lucide-react";
5076
5159
  import { useTranslation as useTranslation13 } from "react-i18next";
5077
5160
  import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
5078
5161
  function ImageFullScreenView({ src, alt, onClose }) {
5079
5162
  const { t } = useTranslation13();
5080
- const [scale, setScale] = useState18(1);
5081
- const [rotation, setRotation] = useState18(0);
5163
+ const [scale, setScale] = useState19(1);
5164
+ const [rotation, setRotation] = useState19(0);
5082
5165
  useClickEscape({ onClick: onClose });
5083
5166
  const zoomIn = () => setScale((value) => Math.min(value + 0.25, 3));
5084
5167
  const zoomOut = () => setScale((value) => Math.max(value - 0.25, 0.5));
@@ -5276,7 +5359,7 @@ var METRIC_CARD_VARIANTS = {
5276
5359
  };
5277
5360
 
5278
5361
  // src/modal/Modal.tsx
5279
- import { forwardRef as forwardRef28, useRef as useRef12 } from "react";
5362
+ import { forwardRef as forwardRef28, useRef as useRef14 } from "react";
5280
5363
  import { X as X5 } from "lucide-react";
5281
5364
 
5282
5365
  // src/modal/styles.module.css
@@ -5307,7 +5390,7 @@ function Modal({
5307
5390
  container,
5308
5391
  modal
5309
5392
  }) {
5310
- const contentRef = useRef12(null);
5393
+ const contentRef = useRef14(null);
5311
5394
  useScrollFrameIntoView(open, { elementRef: contentRef });
5312
5395
  const handleClose = () => {
5313
5396
  onOpenChange?.(false);
@@ -5788,10 +5871,10 @@ var RadioGroupItem = React22.forwardRef(({ className, ...props }, ref) => /* @__
5788
5871
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
5789
5872
 
5790
5873
  // src/radio/useRadioOptions.ts
5791
- import { useCallback as useCallback14, useState as useState19 } from "react";
5874
+ import { useCallback as useCallback14, useState as useState20 } from "react";
5792
5875
  function useRadioOptions({ options, defaultValue, onChange }) {
5793
5876
  const initialValue = (typeof defaultValue === "string" ? options.find((option) => option.value === defaultValue) : defaultValue) || "";
5794
- const [selectedValue, setSelectedValue] = useState19(initialValue);
5877
+ const [selectedValue, setSelectedValue] = useState20(initialValue);
5795
5878
  const handleValueChange = useCallback14(
5796
5879
  (value) => {
5797
5880
  setSelectedValue(value);
@@ -6296,7 +6379,7 @@ import {
6296
6379
  cloneElement as cloneElement2,
6297
6380
  forwardRef as forwardRef34,
6298
6381
  isValidElement as isValidElement2,
6299
- useEffect as useEffect18
6382
+ useEffect as useEffect19
6300
6383
  } from "react";
6301
6384
 
6302
6385
  // src/selector-button/styles.module.css
@@ -6415,7 +6498,7 @@ function SelectorsInternal({
6415
6498
  }
6416
6499
  };
6417
6500
  const isAnyActive = getValueArray(value).length > 0;
6418
- useEffect18(() => {
6501
+ useEffect19(() => {
6419
6502
  onAnySelectorActive?.(isAnyActive);
6420
6503
  }, [isAnyActive, onAnySelectorActive]);
6421
6504
  return /* @__PURE__ */ jsxs56(Fragment8, { children: [
@@ -7893,10 +7976,10 @@ var TASK_VARIANTS = {
7893
7976
  import { Toaster, toast as toast2 } from "sonner";
7894
7977
 
7895
7978
  // src/toaster/useUpdateToast.ts
7896
- import { useCallback as useCallback16, useRef as useRef14 } from "react";
7979
+ import { useCallback as useCallback16, useRef as useRef16 } from "react";
7897
7980
  import { toast } from "sonner";
7898
7981
  function useUpdateToast({ id }) {
7899
- const toastIdRef = useRef14("");
7982
+ const toastIdRef = useRef16("");
7900
7983
  const getToastOptions = useCallback16(
7901
7984
  (options) => ({
7902
7985
  id: toastIdRef.current,
@@ -8012,7 +8095,7 @@ var ToggleGroupItem = React27.forwardRef(({ className, children, variant, size,
8012
8095
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
8013
8096
 
8014
8097
  // src/toggle-group/Toggles.tsx
8015
- import { forwardRef as forwardRef40, useEffect as useEffect20 } from "react";
8098
+ import { forwardRef as forwardRef40, useEffect as useEffect21 } from "react";
8016
8099
  import { jsx as jsx108, jsxs as jsxs69 } from "react/jsx-runtime";
8017
8100
  var getValueArray2 = (value) => {
8018
8101
  if (value) {
@@ -8087,7 +8170,7 @@ function TogglesInternal({
8087
8170
  }
8088
8171
  };
8089
8172
  const isAnyActive = getValueArray2(value).length > 0;
8090
- useEffect20(() => {
8173
+ useEffect21(() => {
8091
8174
  onAnySelectorActive?.(isAnyActive);
8092
8175
  }, [isAnyActive, onAnySelectorActive]);
8093
8176
  const currentValue = getValueArray2(value).map((item) => String(item));
@@ -11674,39 +11757,6 @@ function getNextEnabledIndex(options, startIndex, step) {
11674
11757
  }
11675
11758
  return -1;
11676
11759
  }
11677
-
11678
- // src/lib/copy-to-clipboard.ts
11679
- function copyToClipboardFallback(value) {
11680
- const targetDocument = getDocument();
11681
- const targetBody = targetDocument.body;
11682
- if (!targetBody) {
11683
- return;
11684
- }
11685
- const el = targetDocument.createElement("textarea");
11686
- el.value = value;
11687
- el.setAttribute("readonly", "");
11688
- el.style.position = "fixed";
11689
- el.style.opacity = "0";
11690
- el.style.pointerEvents = "none";
11691
- el.style.left = "-9999px";
11692
- targetBody.appendChild(el);
11693
- el.focus();
11694
- el.select();
11695
- targetDocument.execCommand("copy");
11696
- targetBody.removeChild(el);
11697
- }
11698
- function copyToClipboard2(value) {
11699
- const text = typeof value === "number" ? value.toString() : value;
11700
- const targetDocument = getDocument();
11701
- const clipboard = targetDocument.defaultView?.navigator?.clipboard ?? globalThis.navigator?.clipboard;
11702
- if (!clipboard?.writeText) {
11703
- copyToClipboardFallback(text);
11704
- return;
11705
- }
11706
- void clipboard.writeText(text).catch(() => {
11707
- copyToClipboardFallback(text);
11708
- });
11709
- }
11710
11760
  export {
11711
11761
  Accordion,
11712
11762
  AccordionContent,
@@ -11975,6 +12025,7 @@ export {
11975
12025
  useAbortController,
11976
12026
  useClickEscape,
11977
12027
  useCombinedRef,
12028
+ useCopyToClipboard,
11978
12029
  useDebounce,
11979
12030
  useDebouncedFunction,
11980
12031
  useEvent,
@@ -11985,6 +12036,7 @@ export {
11985
12036
  useOutsideClick,
11986
12037
  usePagination,
11987
12038
  usePrevious,
12039
+ usePromisedModalControls,
11988
12040
  useRadioOptions,
11989
12041
  useScreenResize,
11990
12042
  useScrollFrameIntoView,