@altimateai/ui-components 0.0.48 → 0.0.50

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.
@@ -1,5 +1,5 @@
1
1
  import { j as ae } from "./index2.js";
2
- import { a5 as wt, U as Sn, $ as vt, a3 as St, a2 as xt, a0 as zt } from "./Stack.js";
2
+ import { Q as wt, X as Sn, a0 as vt, a4 as St, a3 as xt, a1 as zt } from "./Stack.js";
3
3
  import { Prism as _t } from "react-syntax-highlighter";
4
4
  import { useState as be, useCallback as At, useEffect as Mt } from "react";
5
5
  import './redux-toolkit.css';var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -414,14 +414,19 @@ interface NativeSelectProps extends SelectAttributes, VariantProps<typeof select
414
414
  }
415
415
  declare const NativeSelect: React$1.ForwardRefExoticComponent<NativeSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
416
416
 
417
+ interface ComboboxOption {
418
+ value: string;
419
+ label: string;
420
+ labelNode?: ReactNode;
421
+ children?: (close: () => void) => ReactNode;
422
+ nestedLabels?: Record<string, string>;
423
+ }
417
424
  interface Props<TMultiSelect extends boolean = false> {
418
- options: {
419
- value: string;
420
- label: string;
421
- }[];
425
+ options: ComboboxOption[];
422
426
  value?: TMultiSelect extends true ? string[] : string;
423
427
  onChange: (value: TMultiSelect extends true ? string[] : string) => void;
424
428
  placeholder?: string;
429
+ header?: string;
425
430
  searchPlaceholder?: string;
426
431
  buttonProps?: ButtonProps;
427
432
  id?: string;
@@ -430,14 +435,17 @@ interface Props<TMultiSelect extends boolean = false> {
430
435
  showOnlyPlaceholder?: boolean;
431
436
  showApplyButton?: boolean;
432
437
  showClearButton?: boolean;
433
- onLoadMore?: () => void | Promise<void>;
438
+ onLoadMore?: (searchValue?: string, page?: number) => Promise<void>;
434
439
  hasMore?: boolean;
435
440
  valueLabels?: Record<string, string>;
436
- onSearch?: (searchValue: string) => void;
437
441
  onOpenChange?: (open: boolean) => void;
438
442
  popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
443
+ exactSearch?: boolean;
444
+ disableAllDeselect?: boolean;
445
+ onPageReset?: () => void;
446
+ hoverDelayMs?: number;
439
447
  }
440
- declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onSearch, onOpenChange, popoverContentProps, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
448
+ declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, header, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onOpenChange, popoverContentProps, exactSearch, disableAllDeselect, onPageReset, hoverDelayMs, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
441
449
 
442
450
  type SidebarContextType = {
443
451
  state: "expanded" | "collapsed";
@@ -648,4 +656,4 @@ declare const TagsInputInput: React$1.ForwardRefExoticComponent<Omit<TagsInputPr
648
656
  declare const TagsInputItem: React$1.ForwardRefExoticComponent<Omit<TagsInputPrimitive.TagsInputItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
649
657
  declare const TagsInputClear: React$1.ForwardRefExoticComponent<Omit<TagsInputPrimitive.TagsInputClearProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
650
658
 
651
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, useAutosizeTextArea, useFormField, useSidebar, useToast };
659
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, type ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, useAutosizeTextArea, useFormField, useSidebar, useToast };
@@ -1,8 +1,8 @@
1
1
  import { b as oi, S as si, c as ii, d as Fn, e as li, f as ci, C as ui, G as di, L as fi, I as mi, g as hi, R as pi, h as gi, i as bi, j as vi, k as wi, l as yi, m as xi, n as Si, P as Mi, o as Ci } from "../TagsInput.js";
2
2
  import { a8 as fp, ab as mp, a9 as hp, aa as pp, A as gp, af as bp, ag as vp, ap as wp, aq as yp, ak as xp, ao as Sp, am as Mp, al as Cp, ai as Np, ah as Dp, an as Pp, aj as Ep, ae as Tp, z as kp, B as Op, aB as Rp, _ as _p, $ as Ap, a2 as Ip, a3 as jp, a0 as Wp, a4 as zp, a1 as Lp, a6 as Fp, a5 as Hp, D as $p, K as Bp, H as Yp, U as Vp, J as Gp, O as Kp, V as qp, Z as Up, M as Xp, Q as Zp, T as Qp, W as Jp, X as eg, Y as tg, E as ng, aI as ag, aK as rg, aL as og, aM as sg, F as ig, aJ as lg, a as cg, N as ug, ar as dg, av as fg, as as mg, ax as hg, aw as pg, aA as gg, az as bg, ay as vg, au as wg, at as yg, s as xg, x as Sg, v as Mg, t as Cg, q as Ng, p as Dg, w as Pg, r as Eg, aC as Tg, aF as kg, aD as Og, aE as Rg, aN as _g, aS as Ag, aQ as Ig, aR as jg, aO as Wg, aP as zg, a7 as Lg, ac as Fg, aG as Hg, ad as $g, y as Bg, aH as Yg } from "../TagsInput.js";
3
- import { c as N, M as Dn, U as Ke, Q as Ni, S as Di, a2 as Wt, X as Pi, Y as Ei, a6 as Ya, a as Ze, P as ne, v as Se, K as qt, l as Hn, u as he, aa as Ti, V as Va, b as Ot, o as ut, d as L, ab as ki, E as Oi, y as Ri, j as $n, ac as _i, ad as Ai, ae as Ii, af as ji, _ as dt, z as Bn, f as Wi, e as zi, n as Ga, s as Li, I as Fi, G as pn, m as Ka, A as Hi, r as $i, t as Bi, w as Yi, B as Vi, $ as Gi, a0 as Ki } from "../Stack.js";
4
- import { aj as Gg, ai as Kg, a3 as qg, a1 as Ug, a7 as Xg, H as Zg, al as Qg, J as Jg, aq as eb, ao as tb, an as nb, a9 as ab, a8 as rb, ap as ob, am as sb, Z as ib, ak as lb, ag as cb, ah as ub, a4 as db, a5 as fb } from "../Stack.js";
5
- import { j as c, p as qa, a as Ut, d as qi, q as Ui, C as Ua, r as Xi, M as Xa, b as Zi, S as Qi, s as Ji, t as el, F as tl } from "../index2.js";
3
+ import { c as N, N as Dn, X as Ke, S as Ni, U as Di, a3 as Wt, Y as Pi, Z as Ei, a6 as Ya, a as Ze, P as ne, w as Se, L as qt, m as Hn, u as he, aa as Ti, V as Va, b as Ot, p as ut, d as L, ab as ki, G as Oi, z as Ri, k as $n, ac as _i, ad as Ai, ae as Ii, af as ji, $ as dt, B as Bn, f as Wi, e as zi, o as Ga, t as Li, I as Fi, H as pn, n as Ka, A as Hi, s as $i, v as Bi, x as Yi, E as Vi, a0 as Gi, a1 as Ki } from "../Stack.js";
4
+ import { aj as Gg, ai as Kg, a4 as qg, a2 as Ug, a7 as Xg, J as Zg, al as Qg, K as Jg, aq as eb, ao as tb, an as nb, a9 as ab, a8 as rb, ap as ob, am as sb, _ as ib, ak as lb, ag as cb, ah as ub, a5 as db, Q as fb } from "../Stack.js";
5
+ import { j as c, p as qa, C as Ut, c as qi, q as Ui, e as Ua, r as Xi, M as Xa, a as Zi, S as Qi, s as Ji, t as el, F as tl } from "../index2.js";
6
6
  import * as m from "react";
7
7
  import E, { createContext as nl, useContext as al, useCallback as ie, useRef as rt, useLayoutEffect as rl, useState as Te, useEffect as Ft, useMemo as Ct, forwardRef as Xt } from "react";
8
8
  import { S as hb } from "../Switch.js";