@chekinapp/ui 0.0.43 → 0.0.45
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 +21 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.js +47 -37
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2349,6 +2349,7 @@ type TogglesProps<T extends string | number, M extends boolean | undefined = und
|
|
|
2349
2349
|
loading?: boolean;
|
|
2350
2350
|
disabled?: boolean;
|
|
2351
2351
|
disabledItems?: SelectorOption<T>['value'][];
|
|
2352
|
+
readonlyItems?: SelectorOption<T>['value'][];
|
|
2352
2353
|
readOnly?: boolean;
|
|
2353
2354
|
label?: string;
|
|
2354
2355
|
multiple?: M;
|
|
@@ -2359,7 +2360,7 @@ type TogglesProps<T extends string | number, M extends boolean | undefined = und
|
|
|
2359
2360
|
value?: T;
|
|
2360
2361
|
onChange?: (value: T, event: MouseEvent<HTMLButtonElement>) => void;
|
|
2361
2362
|
});
|
|
2362
|
-
declare function TogglesInternal<T extends string | number, M extends boolean | undefined = undefined>({ className, groupClassName, loading, disabled, value, options, variant, size, theme, onAnySelectorActive, onClick, onChange, readOnly, minSelected, disabledItems, label, multiple, }: TogglesProps<T, M>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
2363
|
+
declare function TogglesInternal<T extends string | number, M extends boolean | undefined = undefined>({ className, groupClassName, loading, disabled, value, options, variant, size, theme, onAnySelectorActive, onClick, onChange, readOnly, minSelected, disabledItems, readonlyItems, label, multiple, }: TogglesProps<T, M>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
2363
2364
|
type TogglesForwardType = <T extends string | number, M extends boolean | undefined = true>(props: TogglesProps<T, M> & {
|
|
2364
2365
|
ref?: ForwardedRef<HTMLDivElement>;
|
|
2365
2366
|
}) => ReturnType<typeof TogglesInternal>;
|
|
@@ -2410,18 +2411,13 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaHTMLAttributes
|
|
|
2410
2411
|
textareaClassName?: string;
|
|
2411
2412
|
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2412
2413
|
|
|
2413
|
-
declare enum LABEL_PLACEMENT {
|
|
2414
|
-
right = 0,
|
|
2415
|
-
left = 1
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
2414
|
type ThreeDotsLoaderProps = {
|
|
2419
2415
|
height?: number;
|
|
2420
2416
|
width?: number;
|
|
2421
2417
|
color?: string;
|
|
2422
2418
|
label?: string | ReactNode;
|
|
2423
2419
|
className?: string;
|
|
2424
|
-
labelPlacement?:
|
|
2420
|
+
labelPlacement?: 'right' | 'left';
|
|
2425
2421
|
};
|
|
2426
2422
|
declare function ThreeDotsLoader({ height, width, color, label, className, labelPlacement, }: ThreeDotsLoaderProps): react_jsx_runtime.JSX.Element;
|
|
2427
2423
|
|
|
@@ -2917,4 +2913,4 @@ declare function useIsFormTouched({ watch, displayFields, debug, defaultValues,
|
|
|
2917
2913
|
|
|
2918
2914
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2919
2915
|
|
|
2920
|
-
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, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CustomCheckboxDropdownGroup, 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, 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, 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, InfinitySelect, type InfinitySelectProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps,
|
|
2916
|
+
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, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CustomCheckboxDropdownGroup, 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, 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, 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, InfinitySelect, type InfinitySelectProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, 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, MultiSelect, type MultiSelectProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, 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, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, type SelectSize, 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, isNumeric, labelVariants, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useModalControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -2349,6 +2349,7 @@ type TogglesProps<T extends string | number, M extends boolean | undefined = und
|
|
|
2349
2349
|
loading?: boolean;
|
|
2350
2350
|
disabled?: boolean;
|
|
2351
2351
|
disabledItems?: SelectorOption<T>['value'][];
|
|
2352
|
+
readonlyItems?: SelectorOption<T>['value'][];
|
|
2352
2353
|
readOnly?: boolean;
|
|
2353
2354
|
label?: string;
|
|
2354
2355
|
multiple?: M;
|
|
@@ -2359,7 +2360,7 @@ type TogglesProps<T extends string | number, M extends boolean | undefined = und
|
|
|
2359
2360
|
value?: T;
|
|
2360
2361
|
onChange?: (value: T, event: MouseEvent<HTMLButtonElement>) => void;
|
|
2361
2362
|
});
|
|
2362
|
-
declare function TogglesInternal<T extends string | number, M extends boolean | undefined = undefined>({ className, groupClassName, loading, disabled, value, options, variant, size, theme, onAnySelectorActive, onClick, onChange, readOnly, minSelected, disabledItems, label, multiple, }: TogglesProps<T, M>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
2363
|
+
declare function TogglesInternal<T extends string | number, M extends boolean | undefined = undefined>({ className, groupClassName, loading, disabled, value, options, variant, size, theme, onAnySelectorActive, onClick, onChange, readOnly, minSelected, disabledItems, readonlyItems, label, multiple, }: TogglesProps<T, M>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
2363
2364
|
type TogglesForwardType = <T extends string | number, M extends boolean | undefined = true>(props: TogglesProps<T, M> & {
|
|
2364
2365
|
ref?: ForwardedRef<HTMLDivElement>;
|
|
2365
2366
|
}) => ReturnType<typeof TogglesInternal>;
|
|
@@ -2410,18 +2411,13 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaHTMLAttributes
|
|
|
2410
2411
|
textareaClassName?: string;
|
|
2411
2412
|
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2412
2413
|
|
|
2413
|
-
declare enum LABEL_PLACEMENT {
|
|
2414
|
-
right = 0,
|
|
2415
|
-
left = 1
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
2414
|
type ThreeDotsLoaderProps = {
|
|
2419
2415
|
height?: number;
|
|
2420
2416
|
width?: number;
|
|
2421
2417
|
color?: string;
|
|
2422
2418
|
label?: string | ReactNode;
|
|
2423
2419
|
className?: string;
|
|
2424
|
-
labelPlacement?:
|
|
2420
|
+
labelPlacement?: 'right' | 'left';
|
|
2425
2421
|
};
|
|
2426
2422
|
declare function ThreeDotsLoader({ height, width, color, label, className, labelPlacement, }: ThreeDotsLoaderProps): react_jsx_runtime.JSX.Element;
|
|
2427
2423
|
|
|
@@ -2917,4 +2913,4 @@ declare function useIsFormTouched({ watch, displayFields, debug, defaultValues,
|
|
|
2917
2913
|
|
|
2918
2914
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2919
2915
|
|
|
2920
|
-
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, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CustomCheckboxDropdownGroup, 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, 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, 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, InfinitySelect, type InfinitySelectProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps,
|
|
2916
|
+
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, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, CircularLoader, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CustomCheckboxDropdownGroup, 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, 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, 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, InfinitySelect, type InfinitySelectProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, 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, MultiSelect, type MultiSelectProps, OverlayLoader, type OverlayLoaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, 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, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, type SelectSize, 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, isNumeric, labelVariants, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useModalControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useSidebar, useSidebarMenuButton, useSidebarSafe, useTimeout, useTimer, useUpdateToast };
|
package/dist/index.js
CHANGED
|
@@ -728,7 +728,7 @@ var buttonVariants = cva3(
|
|
|
728
728
|
);
|
|
729
729
|
|
|
730
730
|
// src/button/Button.tsx
|
|
731
|
-
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
731
|
+
import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
732
732
|
var Button = React4.forwardRef(
|
|
733
733
|
({
|
|
734
734
|
className,
|
|
@@ -768,10 +768,10 @@ var Button = React4.forwardRef(
|
|
|
768
768
|
disabled: isDisabled,
|
|
769
769
|
className: classNames,
|
|
770
770
|
...props,
|
|
771
|
-
children: loading ? /* @__PURE__ */ jsxs9(
|
|
771
|
+
children: loading ? /* @__PURE__ */ jsxs9(Fragment3, { children: [
|
|
772
772
|
/* @__PURE__ */ jsx10(Spinner, {}),
|
|
773
773
|
showLoadingLabel ? /* @__PURE__ */ jsx10("span", { children: loadingText || t("please_wait") }) : null
|
|
774
|
-
] }) :
|
|
774
|
+
] }) : children
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
777
|
}
|
|
@@ -1483,7 +1483,7 @@ function ErrorMessage({ className, children, disabled }) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
1485
|
// src/checkbox/CheckboxGroup.tsx
|
|
1486
|
-
import { Fragment as
|
|
1486
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1487
1487
|
var ScrollAreaWrapper = ({
|
|
1488
1488
|
children,
|
|
1489
1489
|
scrollable,
|
|
@@ -1538,7 +1538,7 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1538
1538
|
);
|
|
1539
1539
|
const isAllSelected = selectedAvailableValues.length > 0 && selectedAvailableValues.length === availableOptions.length;
|
|
1540
1540
|
return /* @__PURE__ */ jsxs15("div", { ref, className: cn("space-y-2", className), ...props, children: [
|
|
1541
|
-
showSelectAll && /* @__PURE__ */ jsxs15(
|
|
1541
|
+
showSelectAll && /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
|
1542
1542
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
1543
1543
|
/* @__PURE__ */ jsx22(
|
|
1544
1544
|
BaseCheckbox,
|
|
@@ -3292,10 +3292,10 @@ var CheckboxDropdownGroup = forwardRef16(
|
|
|
3292
3292
|
CheckboxDropdownGroup.displayName = "CheckboxDropdownGroup";
|
|
3293
3293
|
|
|
3294
3294
|
// src/dropdown-menu/CheckboxDropdownMultiGroup.tsx
|
|
3295
|
-
import { forwardRef as forwardRef17, Fragment as
|
|
3295
|
+
import { forwardRef as forwardRef17, Fragment as Fragment5 } from "react";
|
|
3296
3296
|
import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3297
3297
|
var CheckboxDropdownMultiGroup = forwardRef17(({ groups, className = "", keepOpenOnSelect }, ref) => {
|
|
3298
|
-
return /* @__PURE__ */ jsx36("div", { ref, className: cn("space-y-1", className), children: groups.map((group, index) => /* @__PURE__ */ jsxs27(
|
|
3298
|
+
return /* @__PURE__ */ jsx36("div", { ref, className: cn("space-y-1", className), children: groups.map((group, index) => /* @__PURE__ */ jsxs27(Fragment5, { children: [
|
|
3299
3299
|
/* @__PURE__ */ jsxs27(DropdownMenuGroup, { children: [
|
|
3300
3300
|
/* @__PURE__ */ jsx36(DropdownMenuLabel, { children: group.label }),
|
|
3301
3301
|
group.multiple ? /* @__PURE__ */ jsx36(
|
|
@@ -3746,7 +3746,7 @@ import {
|
|
|
3746
3746
|
VolumeX,
|
|
3747
3747
|
X as X2
|
|
3748
3748
|
} from "lucide-react";
|
|
3749
|
-
import { Fragment as
|
|
3749
|
+
import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3750
3750
|
function VideoPlayer({
|
|
3751
3751
|
src,
|
|
3752
3752
|
poster,
|
|
@@ -3942,7 +3942,7 @@ function VideoPlayer({
|
|
|
3942
3942
|
onLoad: () => setIsLoading(false),
|
|
3943
3943
|
title: title || "Vimeo video player"
|
|
3944
3944
|
}
|
|
3945
|
-
) : /* @__PURE__ */ jsxs33(
|
|
3945
|
+
) : /* @__PURE__ */ jsxs33(Fragment6, { children: [
|
|
3946
3946
|
/* @__PURE__ */ jsxs33(
|
|
3947
3947
|
"video",
|
|
3948
3948
|
{
|
|
@@ -4434,7 +4434,7 @@ GridItems.displayName = "GridItems";
|
|
|
4434
4434
|
|
|
4435
4435
|
// src/help-tooltip/HelpTooltip.tsx
|
|
4436
4436
|
import { CircleQuestionMark } from "lucide-react";
|
|
4437
|
-
import { Fragment as
|
|
4437
|
+
import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4438
4438
|
function HelpTooltip({
|
|
4439
4439
|
content,
|
|
4440
4440
|
side,
|
|
@@ -4453,7 +4453,7 @@ function HelpTooltip({
|
|
|
4453
4453
|
className
|
|
4454
4454
|
);
|
|
4455
4455
|
const triggerStyle = { width: size, height: size };
|
|
4456
|
-
const triggerContent = /* @__PURE__ */ jsxs38(
|
|
4456
|
+
const triggerContent = /* @__PURE__ */ jsxs38(Fragment7, { children: [
|
|
4457
4457
|
/* @__PURE__ */ jsx59(CircleQuestionMark, { "aria-hidden": "true", style: { width: size, height: size } }),
|
|
4458
4458
|
/* @__PURE__ */ jsx59("span", { className: "absolute -left-0.5 -top-0.5 h-5 w-5" })
|
|
4459
4459
|
] });
|
|
@@ -4482,11 +4482,11 @@ function HelpTooltip({
|
|
|
4482
4482
|
|
|
4483
4483
|
// src/icon/Icon.tsx
|
|
4484
4484
|
import { forwardRef as forwardRef26, memo as memo2 } from "react";
|
|
4485
|
-
import { Fragment as
|
|
4485
|
+
import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4486
4486
|
var MissingIcon = forwardRef26(
|
|
4487
4487
|
({ size = 24, className = "", fallback = null, color, ...props }, ref) => {
|
|
4488
4488
|
if (fallback) {
|
|
4489
|
-
return /* @__PURE__ */ jsx60(
|
|
4489
|
+
return /* @__PURE__ */ jsx60(Fragment8, { children: fallback });
|
|
4490
4490
|
}
|
|
4491
4491
|
return /* @__PURE__ */ jsxs39(
|
|
4492
4492
|
"svg",
|
|
@@ -6743,7 +6743,7 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
6743
6743
|
}
|
|
6744
6744
|
|
|
6745
6745
|
// src/radio/Radio.tsx
|
|
6746
|
-
import { Fragment as
|
|
6746
|
+
import { Fragment as Fragment9, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6747
6747
|
var Radio = forwardRef37(
|
|
6748
6748
|
({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
|
|
6749
6749
|
const { selectedValue, handleValueChange } = useRadioOptions({
|
|
@@ -6757,7 +6757,7 @@ var Radio = forwardRef37(
|
|
|
6757
6757
|
}
|
|
6758
6758
|
return option.value === selectedValue;
|
|
6759
6759
|
};
|
|
6760
|
-
return /* @__PURE__ */ jsxs56(
|
|
6760
|
+
return /* @__PURE__ */ jsxs56(Fragment9, { children: [
|
|
6761
6761
|
/* @__PURE__ */ jsx86(
|
|
6762
6762
|
RadioGroup2,
|
|
6763
6763
|
{
|
|
@@ -6774,7 +6774,7 @@ var Radio = forwardRef37(
|
|
|
6774
6774
|
"flex cursor-pointer items-center gap-2",
|
|
6775
6775
|
(disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
6776
6776
|
),
|
|
6777
|
-
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs56(
|
|
6777
|
+
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs56(Fragment9, { children: [
|
|
6778
6778
|
/* @__PURE__ */ jsx86(
|
|
6779
6779
|
RadioGroupItem,
|
|
6780
6780
|
{
|
|
@@ -7298,7 +7298,7 @@ function SelectorButton({
|
|
|
7298
7298
|
SelectorButton.displayName = "SelectorButton";
|
|
7299
7299
|
|
|
7300
7300
|
// src/selectors/Selectors.tsx
|
|
7301
|
-
import { Fragment as
|
|
7301
|
+
import { Fragment as Fragment10, jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
7302
7302
|
var getValueArray = (value) => {
|
|
7303
7303
|
if (value) {
|
|
7304
7304
|
return Array.isArray(value) ? value : [value];
|
|
@@ -7355,7 +7355,7 @@ function SelectorsInternal({
|
|
|
7355
7355
|
useEffect21(() => {
|
|
7356
7356
|
onAnySelectorActive?.(isAnyActive);
|
|
7357
7357
|
}, [isAnyActive, onAnySelectorActive]);
|
|
7358
|
-
return /* @__PURE__ */ jsxs64(
|
|
7358
|
+
return /* @__PURE__ */ jsxs64(Fragment10, { children: [
|
|
7359
7359
|
label && /* @__PURE__ */ jsx97("div", { className: "flex [&_span]:ml-[5px]", children: /* @__PURE__ */ jsx97("div", { className: "label box-border mb-1.5 min-h-5 select-none overflow-x-hidden text-ellipsis whitespace-nowrap text-left text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
|
|
7360
7360
|
/* @__PURE__ */ jsx97(
|
|
7361
7361
|
"div",
|
|
@@ -8952,7 +8952,12 @@ var ToggleGroupItem = React28.forwardRef(({ className, children, variant, size,
|
|
|
8952
8952
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
8953
8953
|
|
|
8954
8954
|
// src/toggle-group/Toggles.tsx
|
|
8955
|
-
import {
|
|
8955
|
+
import {
|
|
8956
|
+
cloneElement as cloneElement3,
|
|
8957
|
+
forwardRef as forwardRef45,
|
|
8958
|
+
isValidElement as isValidElement3,
|
|
8959
|
+
useEffect as useEffect23
|
|
8960
|
+
} from "react";
|
|
8956
8961
|
import { jsx as jsx116, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
8957
8962
|
var getValueArray2 = (value) => {
|
|
8958
8963
|
if (value) {
|
|
@@ -8960,6 +8965,16 @@ var getValueArray2 = (value) => {
|
|
|
8960
8965
|
}
|
|
8961
8966
|
return [];
|
|
8962
8967
|
};
|
|
8968
|
+
function getToggleContent(label, disabled, readOnly, active) {
|
|
8969
|
+
if (isValidElement3(label)) {
|
|
8970
|
+
return cloneElement3(label, {
|
|
8971
|
+
disabled,
|
|
8972
|
+
readOnly,
|
|
8973
|
+
active
|
|
8974
|
+
});
|
|
8975
|
+
}
|
|
8976
|
+
return label;
|
|
8977
|
+
}
|
|
8963
8978
|
function TogglesInternal({
|
|
8964
8979
|
className,
|
|
8965
8980
|
groupClassName,
|
|
@@ -8976,6 +8991,7 @@ function TogglesInternal({
|
|
|
8976
8991
|
readOnly,
|
|
8977
8992
|
minSelected = 0,
|
|
8978
8993
|
disabledItems,
|
|
8994
|
+
readonlyItems,
|
|
8979
8995
|
label,
|
|
8980
8996
|
multiple = true
|
|
8981
8997
|
}, ref) {
|
|
@@ -9041,19 +9057,21 @@ function TogglesInternal({
|
|
|
9041
9057
|
return /* @__PURE__ */ jsxs77("div", { ref, className, children: [
|
|
9042
9058
|
label && /* @__PURE__ */ jsx116("div", { className: "mb-2", children: /* @__PURE__ */ jsx116("div", { className: "select-none text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
|
|
9043
9059
|
/* @__PURE__ */ jsx116(ToggleGroup, { className: groupClassName, ...toggleGroupProps, children: options.map((option, index) => {
|
|
9044
|
-
const isSelected =
|
|
9060
|
+
const isSelected = Boolean(
|
|
9061
|
+
getValueArray2(value).find((selectedValue) => selectedValue === option.value)
|
|
9062
|
+
);
|
|
9045
9063
|
const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
|
|
9046
9064
|
const isMinSelected = getValueArray2(value).length <= minSelected;
|
|
9047
|
-
const isItemReadOnly = readOnly || isMinSelected && isSelected;
|
|
9065
|
+
const isItemReadOnly = readOnly || isMinSelected && isSelected || readonlyItems?.includes(option.value);
|
|
9048
9066
|
return /* @__PURE__ */ jsx116(
|
|
9049
9067
|
ToggleGroupItem,
|
|
9050
9068
|
{
|
|
9051
9069
|
value: String(option.value),
|
|
9052
9070
|
disabled: isDisabled || isItemReadOnly || loading,
|
|
9053
9071
|
onClick: handleItemClick(option),
|
|
9054
|
-
children: option.label
|
|
9072
|
+
children: getToggleContent(option.label, isDisabled, isItemReadOnly, isSelected)
|
|
9055
9073
|
},
|
|
9056
|
-
|
|
9074
|
+
index
|
|
9057
9075
|
);
|
|
9058
9076
|
}) })
|
|
9059
9077
|
] });
|
|
@@ -9334,15 +9352,8 @@ var Textarea = forwardRef47(
|
|
|
9334
9352
|
);
|
|
9335
9353
|
Textarea.displayName = "Textarea";
|
|
9336
9354
|
|
|
9337
|
-
// src/three-dots-loader/constants.ts
|
|
9338
|
-
var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
|
|
9339
|
-
LABEL_PLACEMENT2[LABEL_PLACEMENT2["right"] = 0] = "right";
|
|
9340
|
-
LABEL_PLACEMENT2[LABEL_PLACEMENT2["left"] = 1] = "left";
|
|
9341
|
-
return LABEL_PLACEMENT2;
|
|
9342
|
-
})(LABEL_PLACEMENT || {});
|
|
9343
|
-
|
|
9344
9355
|
// src/three-dots-loader/ThreeDotsLoader.tsx
|
|
9345
|
-
import { Fragment as
|
|
9356
|
+
import { Fragment as Fragment11, jsx as jsx122, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
9346
9357
|
function Dots({
|
|
9347
9358
|
height,
|
|
9348
9359
|
width,
|
|
@@ -9386,7 +9397,7 @@ function ThreeDotsLoader({
|
|
|
9386
9397
|
color = "#E3E3E3FF",
|
|
9387
9398
|
label = "",
|
|
9388
9399
|
className,
|
|
9389
|
-
labelPlacement =
|
|
9400
|
+
labelPlacement = "right"
|
|
9390
9401
|
}) {
|
|
9391
9402
|
const dots = /* @__PURE__ */ jsx122(Dots, { color, height, width });
|
|
9392
9403
|
if (label) {
|
|
@@ -9397,10 +9408,10 @@ function ThreeDotsLoader({
|
|
|
9397
9408
|
"flex items-center justify-center gap-x-[13px] [&>div]:text-sm [&>div]:font-bold [&>div]:uppercase [&>div]:text-[#9696b9] [&>div]:opacity-50",
|
|
9398
9409
|
className
|
|
9399
9410
|
),
|
|
9400
|
-
children: labelPlacement ===
|
|
9411
|
+
children: labelPlacement === "right" ? /* @__PURE__ */ jsxs80(Fragment11, { children: [
|
|
9401
9412
|
dots,
|
|
9402
9413
|
/* @__PURE__ */ jsx122("div", { children: label })
|
|
9403
|
-
] }) : /* @__PURE__ */ jsxs80(
|
|
9414
|
+
] }) : /* @__PURE__ */ jsxs80(Fragment11, { children: [
|
|
9404
9415
|
/* @__PURE__ */ jsx122("div", { children: label }),
|
|
9405
9416
|
dots
|
|
9406
9417
|
] })
|
|
@@ -10338,7 +10349,7 @@ function FieldErrorMessage({
|
|
|
10338
10349
|
}
|
|
10339
10350
|
|
|
10340
10351
|
// src/field-trigger/FieldTrigger.tsx
|
|
10341
|
-
import { Fragment as
|
|
10352
|
+
import { Fragment as Fragment12, jsx as jsx129, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
10342
10353
|
var FieldTrigger = React32.forwardRef(
|
|
10343
10354
|
({
|
|
10344
10355
|
as = "button",
|
|
@@ -10417,7 +10428,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10417
10428
|
disabled ? "cursor-not-allowed opacity-50" : loading ? "cursor-progress" : isAirbnbVariant ? "cursor-pointer" : "cursor-text",
|
|
10418
10429
|
className
|
|
10419
10430
|
);
|
|
10420
|
-
const sharedContent = /* @__PURE__ */ jsxs86(
|
|
10431
|
+
const sharedContent = /* @__PURE__ */ jsxs86(Fragment12, { children: [
|
|
10421
10432
|
/* @__PURE__ */ jsxs86(
|
|
10422
10433
|
"span",
|
|
10423
10434
|
{
|
|
@@ -12809,7 +12820,6 @@ export {
|
|
|
12809
12820
|
InputOTPGroup,
|
|
12810
12821
|
InputOTPSeparator,
|
|
12811
12822
|
InputOTPSlot,
|
|
12812
|
-
LABEL_PLACEMENT,
|
|
12813
12823
|
Label,
|
|
12814
12824
|
LargeModal,
|
|
12815
12825
|
LearnMoreButton,
|