@chekinapp/ui 0.0.95 → 0.0.98
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.cjs +40 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +71 -50
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2188,7 +2188,7 @@ declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_run
|
|
|
2188
2188
|
type MainLoaderProps = {
|
|
2189
2189
|
visible?: boolean;
|
|
2190
2190
|
label?: string | ReactNode;
|
|
2191
|
-
size?: 'sm' | 'md' | 'lg';
|
|
2191
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2192
2192
|
height?: number | string;
|
|
2193
2193
|
width?: number | string;
|
|
2194
2194
|
position?: 'center';
|
|
@@ -3403,11 +3403,11 @@ declare function useSwitchSectionActive(preloadedSectionActive: boolean | undefi
|
|
|
3403
3403
|
};
|
|
3404
3404
|
|
|
3405
3405
|
type Props$1 = {
|
|
3406
|
-
|
|
3406
|
+
initialTime?: number;
|
|
3407
3407
|
enabled?: boolean;
|
|
3408
3408
|
onFinish?: () => void;
|
|
3409
3409
|
};
|
|
3410
|
-
declare const
|
|
3410
|
+
declare const useCountdown: ({ initialTime, enabled, onFinish, }?: Props$1) => {
|
|
3411
3411
|
timeLeft: number;
|
|
3412
3412
|
isTimerRunning: boolean;
|
|
3413
3413
|
resetTimer: () => void;
|
|
@@ -3841,4 +3841,4 @@ type AirbnbSearchInputProps = ComponentProps<'input'> & {
|
|
|
3841
3841
|
};
|
|
3842
3842
|
declare const AirbnbSearchInput: React$1.ForwardRefExoticComponent<Omit<AirbnbSearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3843
3843
|
|
|
3844
|
-
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbDatePicker, type AirbnbDatePickerProps, type AirbnbDatePickerValue, AirbnbFieldTrigger, type AirbnbFieldTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbPhoneField, type AirbnbPhoneFieldOption, type AirbnbPhoneFieldProps, type AirbnbPhoneFieldValue, AirbnbSearchInput, AirbnbSearchableSelect, type AirbnbSearchableSelectProps, type AirbnbSearchableSelectValue, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, 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, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, Counter, type CounterProps, CounterSize, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExpandableContent, type ExpandableContentProps, type ExpandableContentTrigger, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, LegacyInfinitySelect, type LegacyInfinitySelectProps, LegacyInput, type LegacyInputProps, LegacyMultiSelect, type LegacyMultiSelectProps, LegacySelect, LegacySelectContent, LegacySelectGroup, LegacySelectItem, LegacySelectLabel, LegacySelectPortal, type LegacySelectProps, LegacySelectRoot, LegacySelectScrollDownButton, LegacySelectScrollUpButton, LegacySelectSeparator, type LegacySelectSize, LegacySelectTrigger, LegacySelectValue, LegacyTextarea, type LegacyTextareaProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, type MobileCameraProps, type MobileScreenshotPayload, MobileWebcam, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, type SelectOption, type SelectorOption, 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, SignatureCanvas, Skeleton, type SkeletonProps, Slider, 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, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, type VideoConstraints, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, compressFile, compressImage, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getFileSizeMB, getScrollableAreaState, getSidebarState, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useTimer, useUpdateToast, useValidateDates };
|
|
3844
|
+
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbDatePicker, type AirbnbDatePickerProps, type AirbnbDatePickerValue, AirbnbFieldTrigger, type AirbnbFieldTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbPhoneField, type AirbnbPhoneFieldOption, type AirbnbPhoneFieldProps, type AirbnbPhoneFieldValue, AirbnbSearchInput, AirbnbSearchableSelect, type AirbnbSearchableSelectProps, type AirbnbSearchableSelectValue, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, 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, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, Counter, type CounterProps, CounterSize, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExpandableContent, type ExpandableContentProps, type ExpandableContentTrigger, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, LegacyInfinitySelect, type LegacyInfinitySelectProps, LegacyInput, type LegacyInputProps, LegacyMultiSelect, type LegacyMultiSelectProps, LegacySelect, LegacySelectContent, LegacySelectGroup, LegacySelectItem, LegacySelectLabel, LegacySelectPortal, type LegacySelectProps, LegacySelectRoot, LegacySelectScrollDownButton, LegacySelectScrollUpButton, LegacySelectSeparator, type LegacySelectSize, LegacySelectTrigger, LegacySelectValue, LegacyTextarea, type LegacyTextareaProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, type MobileCameraProps, type MobileScreenshotPayload, MobileWebcam, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, type SelectOption, type SelectorOption, 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, SignatureCanvas, Skeleton, type SkeletonProps, Slider, 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, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, type VideoConstraints, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, compressFile, compressImage, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getFileSizeMB, getScrollableAreaState, getSidebarState, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useCountdown, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useUpdateToast, useValidateDates };
|
package/dist/index.d.ts
CHANGED
|
@@ -2188,7 +2188,7 @@ declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_run
|
|
|
2188
2188
|
type MainLoaderProps = {
|
|
2189
2189
|
visible?: boolean;
|
|
2190
2190
|
label?: string | ReactNode;
|
|
2191
|
-
size?: 'sm' | 'md' | 'lg';
|
|
2191
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2192
2192
|
height?: number | string;
|
|
2193
2193
|
width?: number | string;
|
|
2194
2194
|
position?: 'center';
|
|
@@ -3403,11 +3403,11 @@ declare function useSwitchSectionActive(preloadedSectionActive: boolean | undefi
|
|
|
3403
3403
|
};
|
|
3404
3404
|
|
|
3405
3405
|
type Props$1 = {
|
|
3406
|
-
|
|
3406
|
+
initialTime?: number;
|
|
3407
3407
|
enabled?: boolean;
|
|
3408
3408
|
onFinish?: () => void;
|
|
3409
3409
|
};
|
|
3410
|
-
declare const
|
|
3410
|
+
declare const useCountdown: ({ initialTime, enabled, onFinish, }?: Props$1) => {
|
|
3411
3411
|
timeLeft: number;
|
|
3412
3412
|
isTimerRunning: boolean;
|
|
3413
3413
|
resetTimer: () => void;
|
|
@@ -3841,4 +3841,4 @@ type AirbnbSearchInputProps = ComponentProps<'input'> & {
|
|
|
3841
3841
|
};
|
|
3842
3842
|
declare const AirbnbSearchInput: React$1.ForwardRefExoticComponent<Omit<AirbnbSearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3843
3843
|
|
|
3844
|
-
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbDatePicker, type AirbnbDatePickerProps, type AirbnbDatePickerValue, AirbnbFieldTrigger, type AirbnbFieldTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbPhoneField, type AirbnbPhoneFieldOption, type AirbnbPhoneFieldProps, type AirbnbPhoneFieldValue, AirbnbSearchInput, AirbnbSearchableSelect, type AirbnbSearchableSelectProps, type AirbnbSearchableSelectValue, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, 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, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, Counter, type CounterProps, CounterSize, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExpandableContent, type ExpandableContentProps, type ExpandableContentTrigger, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, LegacyInfinitySelect, type LegacyInfinitySelectProps, LegacyInput, type LegacyInputProps, LegacyMultiSelect, type LegacyMultiSelectProps, LegacySelect, LegacySelectContent, LegacySelectGroup, LegacySelectItem, LegacySelectLabel, LegacySelectPortal, type LegacySelectProps, LegacySelectRoot, LegacySelectScrollDownButton, LegacySelectScrollUpButton, LegacySelectSeparator, type LegacySelectSize, LegacySelectTrigger, LegacySelectValue, LegacyTextarea, type LegacyTextareaProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, type MobileCameraProps, type MobileScreenshotPayload, MobileWebcam, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, type SelectOption, type SelectorOption, 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, SignatureCanvas, Skeleton, type SkeletonProps, Slider, 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, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, type VideoConstraints, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, compressFile, compressImage, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getFileSizeMB, getScrollableAreaState, getSidebarState, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useTimer, useUpdateToast, useValidateDates };
|
|
3844
|
+
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbDatePicker, type AirbnbDatePickerProps, type AirbnbDatePickerValue, AirbnbFieldTrigger, type AirbnbFieldTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbPhoneField, type AirbnbPhoneFieldOption, type AirbnbPhoneFieldProps, type AirbnbPhoneFieldValue, AirbnbSearchInput, AirbnbSearchableSelect, type AirbnbSearchableSelectProps, type AirbnbSearchableSelectValue, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, 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, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, Counter, type CounterProps, CounterSize, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExpandableContent, type ExpandableContentProps, type ExpandableContentTrigger, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, LegacyInfinitySelect, type LegacyInfinitySelectProps, LegacyInput, type LegacyInputProps, LegacyMultiSelect, type LegacyMultiSelectProps, LegacySelect, LegacySelectContent, LegacySelectGroup, LegacySelectItem, LegacySelectLabel, LegacySelectPortal, type LegacySelectProps, LegacySelectRoot, LegacySelectScrollDownButton, LegacySelectScrollUpButton, LegacySelectSeparator, type LegacySelectSize, LegacySelectTrigger, LegacySelectValue, LegacyTextarea, type LegacyTextareaProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, type MobileCameraProps, type MobileScreenshotPayload, MobileWebcam, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, type SelectOption, type SelectorOption, 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, SignatureCanvas, Skeleton, type SkeletonProps, Slider, 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, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, type VideoConstraints, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, compressFile, compressImage, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getFileSizeMB, getScrollableAreaState, getSidebarState, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useCountdown, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useUpdateToast, useValidateDates };
|
package/dist/index.js
CHANGED
|
@@ -3390,16 +3390,20 @@ function useSwitchSectionActive(preloadedSectionActive, { canToggle, onToggle, o
|
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
3392
|
|
|
3393
|
-
// src/hooks/use-
|
|
3393
|
+
// src/hooks/use-countdown.ts
|
|
3394
3394
|
import { useEffect as useEffect19, useState as useState15 } from "react";
|
|
3395
|
-
var
|
|
3396
|
-
|
|
3395
|
+
var useCountdown = ({
|
|
3396
|
+
initialTime = 60,
|
|
3397
|
+
enabled = true,
|
|
3398
|
+
onFinish
|
|
3399
|
+
} = {}) => {
|
|
3400
|
+
const [timeLeft, setTimeLeft] = useState15(initialTime);
|
|
3397
3401
|
const [isTimerRunning, setIsTimerRunning] = useState15(enabled);
|
|
3398
3402
|
const handleOnFinish = useEvent(onFinish);
|
|
3399
3403
|
useEffect19(() => {
|
|
3400
|
-
setTimeLeft(
|
|
3404
|
+
setTimeLeft(initialTime);
|
|
3401
3405
|
setIsTimerRunning(enabled);
|
|
3402
|
-
}, [
|
|
3406
|
+
}, [initialTime, enabled]);
|
|
3403
3407
|
useEffect19(() => {
|
|
3404
3408
|
if (!isTimerRunning) return;
|
|
3405
3409
|
const timer = setInterval(() => {
|
|
@@ -3420,7 +3424,7 @@ var useTimer = ({ seconds, enabled = true, onFinish }) => {
|
|
|
3420
3424
|
}
|
|
3421
3425
|
}, [timeLeft]);
|
|
3422
3426
|
const resetTimer = () => {
|
|
3423
|
-
setTimeLeft(
|
|
3427
|
+
setTimeLeft(initialTime);
|
|
3424
3428
|
setIsTimerRunning(enabled);
|
|
3425
3429
|
};
|
|
3426
3430
|
return {
|
|
@@ -3431,9 +3435,9 @@ var useTimer = ({ seconds, enabled = true, onFinish }) => {
|
|
|
3431
3435
|
};
|
|
3432
3436
|
|
|
3433
3437
|
// src/hooks/use-timeout.ts
|
|
3434
|
-
import { useEffect as useEffect20, useMemo as useMemo2, useRef as
|
|
3438
|
+
import { useEffect as useEffect20, useMemo as useMemo2, useRef as useRef12 } from "react";
|
|
3435
3439
|
function useTimeout(callback, ms = 0) {
|
|
3436
|
-
const timeoutId =
|
|
3440
|
+
const timeoutId = useRef12();
|
|
3437
3441
|
const memoizedCallback = useEvent(callback);
|
|
3438
3442
|
const handler = useMemo2(() => {
|
|
3439
3443
|
return {
|
|
@@ -3587,10 +3591,10 @@ function useIframeFocusTrapFallback(contentRef, onKeyDown) {
|
|
|
3587
3591
|
}
|
|
3588
3592
|
|
|
3589
3593
|
// src/hooks/use-reset-after-request-status.ts
|
|
3590
|
-
import { useEffect as useEffect22, useRef as
|
|
3594
|
+
import { useEffect as useEffect22, useRef as useRef13 } from "react";
|
|
3591
3595
|
var ResetStatusTimeoutMs = 2e3;
|
|
3592
3596
|
function useResetAfterRequestStatus({ status, reset }) {
|
|
3593
|
-
const stateTimeoutRef =
|
|
3597
|
+
const stateTimeoutRef = useRef13();
|
|
3594
3598
|
const handleReset = useEvent(reset);
|
|
3595
3599
|
const isNotIdle = ["success", "error"].includes(status);
|
|
3596
3600
|
useEffect22(() => {
|
|
@@ -3605,10 +3609,10 @@ function useResetAfterRequestStatus({ status, reset }) {
|
|
|
3605
3609
|
}
|
|
3606
3610
|
|
|
3607
3611
|
// src/hooks/use-promised-modal-controls.ts
|
|
3608
|
-
import { useRef as
|
|
3612
|
+
import { useRef as useRef14 } from "react";
|
|
3609
3613
|
var usePromisedModalControls = () => {
|
|
3610
3614
|
const { closeModal, isOpen, openModal } = useModalControls();
|
|
3611
|
-
const resolveRef =
|
|
3615
|
+
const resolveRef = useRef14();
|
|
3612
3616
|
const openModalWithPromise = async () => {
|
|
3613
3617
|
openModal();
|
|
3614
3618
|
return new Promise((resolve) => {
|
|
@@ -4551,7 +4555,7 @@ ExternalLink.displayName = "ExternalLink";
|
|
|
4551
4555
|
import {
|
|
4552
4556
|
useCallback as useCallback17,
|
|
4553
4557
|
useEffect as useEffect24,
|
|
4554
|
-
useRef as
|
|
4558
|
+
useRef as useRef16,
|
|
4555
4559
|
useState as useState19
|
|
4556
4560
|
} from "react";
|
|
4557
4561
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
@@ -4581,7 +4585,7 @@ function ExpandableContent({
|
|
|
4581
4585
|
...props
|
|
4582
4586
|
}) {
|
|
4583
4587
|
const { t } = useTranslation8();
|
|
4584
|
-
const contentRef =
|
|
4588
|
+
const contentRef = useRef16(null);
|
|
4585
4589
|
const [contentHeight, setContentHeight] = useState19(0);
|
|
4586
4590
|
const [internalOpen, setInternalOpen] = useState19(defaultOpen);
|
|
4587
4591
|
const isOpen = open ?? internalOpen;
|
|
@@ -5080,7 +5084,7 @@ function extractDigits(str) {
|
|
|
5080
5084
|
}
|
|
5081
5085
|
|
|
5082
5086
|
// src/input-otp/useInputOTP.ts
|
|
5083
|
-
import { useCallback as useCallback19, useEffect as useEffect25, useMemo as useMemo3, useRef as
|
|
5087
|
+
import { useCallback as useCallback19, useEffect as useEffect25, useMemo as useMemo3, useRef as useRef17, useState as useState22 } from "react";
|
|
5084
5088
|
function useInputOTP({
|
|
5085
5089
|
maxLength,
|
|
5086
5090
|
value,
|
|
@@ -5090,10 +5094,10 @@ function useInputOTP({
|
|
|
5090
5094
|
error
|
|
5091
5095
|
}) {
|
|
5092
5096
|
const [activeIndex, setActiveIndex] = useState22(-1);
|
|
5093
|
-
const inputRefs =
|
|
5094
|
-
const containerRef =
|
|
5095
|
-
const blurTimeoutRef =
|
|
5096
|
-
const slotsRef =
|
|
5097
|
+
const inputRefs = useRef17([]);
|
|
5098
|
+
const containerRef = useRef17(null);
|
|
5099
|
+
const blurTimeoutRef = useRef17();
|
|
5100
|
+
const slotsRef = useRef17(Array.from({ length: maxLength }, () => ""));
|
|
5097
5101
|
const slots = useMemo3(() => {
|
|
5098
5102
|
const nextSlots = Array.from({ length: maxLength }, () => "");
|
|
5099
5103
|
for (let index = 0; index < Math.min(value.length, maxLength); index += 1) {
|
|
@@ -6161,7 +6165,7 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
6161
6165
|
}
|
|
6162
6166
|
|
|
6163
6167
|
// src/modal/Modal.tsx
|
|
6164
|
-
import { forwardRef as forwardRef30, useRef as
|
|
6168
|
+
import { forwardRef as forwardRef30, useRef as useRef18 } from "react";
|
|
6165
6169
|
import { X as X4 } from "lucide-react";
|
|
6166
6170
|
import { jsx as jsx71, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6167
6171
|
var preventDefault = (event) => {
|
|
@@ -6191,7 +6195,7 @@ function Modal({
|
|
|
6191
6195
|
overlayClassName,
|
|
6192
6196
|
size = "auto"
|
|
6193
6197
|
}) {
|
|
6194
|
-
const contentRef =
|
|
6198
|
+
const contentRef = useRef18(null);
|
|
6195
6199
|
useScrollFrameIntoView(open, { elementRef: contentRef });
|
|
6196
6200
|
const handleClose = () => {
|
|
6197
6201
|
onOpenChange?.(false);
|
|
@@ -6271,12 +6275,16 @@ import { jsx as jsx72, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
|
6271
6275
|
var loaderSizePixels = {
|
|
6272
6276
|
sm: 16,
|
|
6273
6277
|
md: 32,
|
|
6274
|
-
lg: 48
|
|
6278
|
+
lg: 48,
|
|
6279
|
+
xl: 58,
|
|
6280
|
+
"2xl": 72
|
|
6275
6281
|
};
|
|
6276
6282
|
var labelSizeClassName = {
|
|
6277
6283
|
sm: "text-xs",
|
|
6278
6284
|
md: "text-sm",
|
|
6279
|
-
lg: "text-base"
|
|
6285
|
+
lg: "text-base",
|
|
6286
|
+
xl: "text-base",
|
|
6287
|
+
"2xl": "text-base"
|
|
6280
6288
|
};
|
|
6281
6289
|
var CircularLoader = React22.memo(
|
|
6282
6290
|
({
|
|
@@ -6293,7 +6301,7 @@ var CircularLoader = React22.memo(
|
|
|
6293
6301
|
"div",
|
|
6294
6302
|
{
|
|
6295
6303
|
className: cn(
|
|
6296
|
-
"main-loader flex flex-col items-center justify-center gap-2",
|
|
6304
|
+
"main-loader flex flex-col items-center justify-center gap-2 z-50",
|
|
6297
6305
|
position === "center" && "h-full",
|
|
6298
6306
|
className
|
|
6299
6307
|
),
|
|
@@ -6768,7 +6776,7 @@ var LegacyMultiSelect = forwardRef33(LegacyMultiSelectInner);
|
|
|
6768
6776
|
|
|
6769
6777
|
// src/legacy-fields/select/InfinitySelect.tsx
|
|
6770
6778
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
6771
|
-
import { useCallback as useCallback21, useEffect as useEffect26, useId as useId7, useRef as
|
|
6779
|
+
import { useCallback as useCallback21, useEffect as useEffect26, useId as useId7, useRef as useRef19, useState as useState27 } from "react";
|
|
6772
6780
|
import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6773
6781
|
function LegacyInfinitySelect({
|
|
6774
6782
|
label,
|
|
@@ -6784,7 +6792,7 @@ function LegacyInfinitySelect({
|
|
|
6784
6792
|
maxHeight = 300
|
|
6785
6793
|
}) {
|
|
6786
6794
|
const id = useId7();
|
|
6787
|
-
const parentRef =
|
|
6795
|
+
const parentRef = useRef19(null);
|
|
6788
6796
|
const [isOpen, setIsOpen] = useState27(false);
|
|
6789
6797
|
const virtualizer = useVirtualizer({
|
|
6790
6798
|
count: hasNextPage ? options.length + 1 : options.length,
|
|
@@ -7183,7 +7191,16 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
7183
7191
|
// src/radio/Radio.tsx
|
|
7184
7192
|
import { Fragment as Fragment8, jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7185
7193
|
var Radio = forwardRef36(
|
|
7186
|
-
({
|
|
7194
|
+
({
|
|
7195
|
+
options,
|
|
7196
|
+
value,
|
|
7197
|
+
onChange,
|
|
7198
|
+
error,
|
|
7199
|
+
className = "",
|
|
7200
|
+
size,
|
|
7201
|
+
disabled = false,
|
|
7202
|
+
renderOption
|
|
7203
|
+
}, ref) => {
|
|
7187
7204
|
const { selectedValue, handleValueChange } = useRadioOptions({
|
|
7188
7205
|
options,
|
|
7189
7206
|
defaultValue: value,
|
|
@@ -7209,7 +7226,7 @@ var Radio = forwardRef36(
|
|
|
7209
7226
|
{
|
|
7210
7227
|
className: cn(
|
|
7211
7228
|
"radio__wrapper",
|
|
7212
|
-
"flex cursor-pointer items-center gap-2",
|
|
7229
|
+
"flex cursor-pointer items-center gap-2 transition-all duration-200",
|
|
7213
7230
|
(disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
7214
7231
|
),
|
|
7215
7232
|
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs53(Fragment8, { children: [
|
|
@@ -7219,6 +7236,7 @@ var Radio = forwardRef36(
|
|
|
7219
7236
|
value: option.value,
|
|
7220
7237
|
id: `option-${option.value}`,
|
|
7221
7238
|
disabled: option.disabled,
|
|
7239
|
+
size,
|
|
7222
7240
|
className: "radio__indicator"
|
|
7223
7241
|
}
|
|
7224
7242
|
),
|
|
@@ -7248,7 +7266,7 @@ function RadioWithBorder({ size, ...props }) {
|
|
|
7248
7266
|
"div",
|
|
7249
7267
|
{
|
|
7250
7268
|
className: cn(
|
|
7251
|
-
"flex w-full items-start gap-3 rounded-lg border p-4",
|
|
7269
|
+
"flex w-full items-start gap-3 rounded-lg border p-4 transition-all duration-200",
|
|
7252
7270
|
isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
|
|
7253
7271
|
),
|
|
7254
7272
|
children: [
|
|
@@ -7262,12 +7280,15 @@ function RadioWithBorder({ size, ...props }) {
|
|
|
7262
7280
|
size
|
|
7263
7281
|
}
|
|
7264
7282
|
),
|
|
7265
|
-
/* @__PURE__ */ jsxs54("div", { className: "
|
|
7266
|
-
/* @__PURE__ */ jsxs54("
|
|
7267
|
-
|
|
7268
|
-
|
|
7283
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
|
|
7284
|
+
/* @__PURE__ */ jsxs54("div", { className: "min-w-0 space-y-1 leading-6", children: [
|
|
7285
|
+
/* @__PURE__ */ jsxs54("p", { className: "flex items-center gap-3 font-semibold", children: [
|
|
7286
|
+
option.label,
|
|
7287
|
+
data?.subLabel && /* @__PURE__ */ jsx85("span", { className: "rounded bg-[color-mix(in_srgb,var(--chekin-color-brand-blue)_10%,transparent)] px-2 py-1 text-sm font-semibold leading-4 text-[var(--chekin-color-brand-blue)]", children: data.subLabel })
|
|
7288
|
+
] }),
|
|
7289
|
+
data?.description && /* @__PURE__ */ jsx85("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
|
|
7269
7290
|
] }),
|
|
7270
|
-
data?.
|
|
7291
|
+
data?.rightContent && /* @__PURE__ */ jsx85("div", { className: "shrink-0", children: data.rightContent })
|
|
7271
7292
|
] })
|
|
7272
7293
|
]
|
|
7273
7294
|
}
|
|
@@ -7510,11 +7531,11 @@ function RatingRadioGroupList({ children }) {
|
|
|
7510
7531
|
}
|
|
7511
7532
|
|
|
7512
7533
|
// src/rating-radio-group/useRatingPreview.ts
|
|
7513
|
-
import { useRef as
|
|
7534
|
+
import { useRef as useRef20, useState as useState29 } from "react";
|
|
7514
7535
|
var TOUCH_END_DELAY = 100;
|
|
7515
7536
|
function useRatingPreview() {
|
|
7516
7537
|
const [hoverValue, setHoverValue] = useState29(void 0);
|
|
7517
|
-
const isTouchDevice =
|
|
7538
|
+
const isTouchDevice = useRef20(false);
|
|
7518
7539
|
const handleContainerMouseLeave = () => {
|
|
7519
7540
|
setHoverValue(void 0);
|
|
7520
7541
|
};
|
|
@@ -8811,7 +8832,7 @@ var VALUE_PART = 1;
|
|
|
8811
8832
|
var getSidebarState = (stateName) => document.cookie.split("; ").find((row) => row.startsWith(`${stateName}=`))?.split("=")[VALUE_PART] === "true";
|
|
8812
8833
|
|
|
8813
8834
|
// src/signature-canvas/SignatureCanvas.tsx
|
|
8814
|
-
import { forwardRef as forwardRef41, useEffect as useEffect29, useRef as
|
|
8835
|
+
import { forwardRef as forwardRef41, useEffect as useEffect29, useRef as useRef21 } from "react";
|
|
8815
8836
|
import { Trans, useTranslation as useTranslation17 } from "react-i18next";
|
|
8816
8837
|
import ReactSignatureCanvas from "react-signature-pad-wrapper";
|
|
8817
8838
|
|
|
@@ -8842,7 +8863,7 @@ var SIGNATURE_PROPS = {
|
|
|
8842
8863
|
var SignatureCanvas = forwardRef41(
|
|
8843
8864
|
({ onClear, hasSignature, onEnd, onEnable, className, enabled }, ref) => {
|
|
8844
8865
|
const { t } = useTranslation17();
|
|
8845
|
-
const internalRef =
|
|
8866
|
+
const internalRef = useRef21(null);
|
|
8846
8867
|
const combinedRef = useCombinedRef(ref, internalRef);
|
|
8847
8868
|
useEffect29(() => {
|
|
8848
8869
|
if (!onEnd) return;
|
|
@@ -9942,10 +9963,10 @@ function TimelineDescription({ className, asChild, ...props }) {
|
|
|
9942
9963
|
import { Toaster, toast as toast2 } from "sonner";
|
|
9943
9964
|
|
|
9944
9965
|
// src/toaster/useUpdateToast.ts
|
|
9945
|
-
import { useCallback as useCallback25, useRef as
|
|
9966
|
+
import { useCallback as useCallback25, useRef as useRef22 } from "react";
|
|
9946
9967
|
import { toast } from "sonner";
|
|
9947
9968
|
function useUpdateToast({ id }) {
|
|
9948
|
-
const toastIdRef =
|
|
9969
|
+
const toastIdRef = useRef22("");
|
|
9949
9970
|
const getToastOptions = useCallback25(
|
|
9950
9971
|
(options) => ({
|
|
9951
9972
|
id: toastIdRef.current,
|
|
@@ -10462,7 +10483,7 @@ function VideoModal({
|
|
|
10462
10483
|
}
|
|
10463
10484
|
|
|
10464
10485
|
// src/video-player/VideoPlayer.tsx
|
|
10465
|
-
import { useEffect as useEffect33, useRef as
|
|
10486
|
+
import { useEffect as useEffect33, useRef as useRef24, useState as useState34 } from "react";
|
|
10466
10487
|
import { useTranslation as useTranslation22 } from "react-i18next";
|
|
10467
10488
|
import {
|
|
10468
10489
|
Loader2 as Loader23,
|
|
@@ -10486,9 +10507,9 @@ function VideoPlayer({
|
|
|
10486
10507
|
autoPlay = false
|
|
10487
10508
|
}) {
|
|
10488
10509
|
const { t } = useTranslation22();
|
|
10489
|
-
const videoRef =
|
|
10490
|
-
const iframeRef =
|
|
10491
|
-
const containerRef =
|
|
10510
|
+
const videoRef = useRef24(null);
|
|
10511
|
+
const iframeRef = useRef24(null);
|
|
10512
|
+
const containerRef = useRef24(null);
|
|
10492
10513
|
const [isPlaying, setIsPlaying] = useState34(false);
|
|
10493
10514
|
const [isMuted, setIsMuted] = useState34(false);
|
|
10494
10515
|
const [currentTime, setCurrentTime] = useState34(0);
|
|
@@ -10784,7 +10805,7 @@ import {
|
|
|
10784
10805
|
useCallback as useCallback27,
|
|
10785
10806
|
useImperativeHandle,
|
|
10786
10807
|
useMemo as useMemo7,
|
|
10787
|
-
useRef as
|
|
10808
|
+
useRef as useRef25,
|
|
10788
10809
|
useState as useState35
|
|
10789
10810
|
} from "react";
|
|
10790
10811
|
import { isFirefox, isMobile as isMobile2 } from "react-device-detect";
|
|
@@ -11126,10 +11147,10 @@ var Webcam = memo7(
|
|
|
11126
11147
|
videoSourceDeviceId
|
|
11127
11148
|
]);
|
|
11128
11149
|
const isMirroredInCSS = mirrored === void 0 && !isMobileOrTablet();
|
|
11129
|
-
const webcamRef =
|
|
11130
|
-
const scanAreaRef =
|
|
11131
|
-
const canvasRef =
|
|
11132
|
-
const containerRef =
|
|
11150
|
+
const webcamRef = useRef25(null);
|
|
11151
|
+
const scanAreaRef = useRef25(null);
|
|
11152
|
+
const canvasRef = useRef25(null);
|
|
11153
|
+
const containerRef = useRef25(null);
|
|
11133
11154
|
const { handleUserMediaError } = useErrorHandler({
|
|
11134
11155
|
onError: (errorDetails) => {
|
|
11135
11156
|
onDisabled?.(true);
|
|
@@ -18853,6 +18874,7 @@ export {
|
|
|
18853
18874
|
useClickEscape,
|
|
18854
18875
|
useCombinedRef,
|
|
18855
18876
|
useCopyToClipboard,
|
|
18877
|
+
useCountdown,
|
|
18856
18878
|
useDebounce,
|
|
18857
18879
|
useDebouncedFunction,
|
|
18858
18880
|
useEvent,
|
|
@@ -18885,7 +18907,6 @@ export {
|
|
|
18885
18907
|
useTimeline,
|
|
18886
18908
|
useTimeout,
|
|
18887
18909
|
useTimeoutRef,
|
|
18888
|
-
useTimer,
|
|
18889
18910
|
useUpdateToast,
|
|
18890
18911
|
useValidateDates
|
|
18891
18912
|
};
|