@altimateai/ui-components 0.0.49 → 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.
- package/dist/CoachForm.js +2 -2
- package/dist/Stack.js +317 -316
- package/dist/TagsInput.js +2615 -2469
- package/dist/assets/icons/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index2.js +6 -6
- package/dist/lineage/index.js +2 -2
- package/dist/main.js +146 -146
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +16 -9
- package/dist/shadcn/index.js +3 -3
- package/dist/storybook/Combobox.stories.tsx +738 -86
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as ae } from "./index2.js";
|
|
2
|
-
import {
|
|
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 : {};
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -414,15 +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
|
-
node?: ReactNode;
|
|
422
|
-
}[];
|
|
425
|
+
options: ComboboxOption[];
|
|
423
426
|
value?: TMultiSelect extends true ? string[] : string;
|
|
424
427
|
onChange: (value: TMultiSelect extends true ? string[] : string) => void;
|
|
425
428
|
placeholder?: string;
|
|
429
|
+
header?: string;
|
|
426
430
|
searchPlaceholder?: string;
|
|
427
431
|
buttonProps?: ButtonProps;
|
|
428
432
|
id?: string;
|
|
@@ -431,14 +435,17 @@ interface Props<TMultiSelect extends boolean = false> {
|
|
|
431
435
|
showOnlyPlaceholder?: boolean;
|
|
432
436
|
showApplyButton?: boolean;
|
|
433
437
|
showClearButton?: boolean;
|
|
434
|
-
onLoadMore?: () =>
|
|
438
|
+
onLoadMore?: (searchValue?: string, page?: number) => Promise<void>;
|
|
435
439
|
hasMore?: boolean;
|
|
436
440
|
valueLabels?: Record<string, string>;
|
|
437
|
-
onSearch?: (searchValue: string) => void;
|
|
438
441
|
onOpenChange?: (open: boolean) => void;
|
|
439
442
|
popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
|
|
443
|
+
exactSearch?: boolean;
|
|
444
|
+
disableAllDeselect?: boolean;
|
|
445
|
+
onPageReset?: () => void;
|
|
446
|
+
hoverDelayMs?: number;
|
|
440
447
|
}
|
|
441
|
-
declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels,
|
|
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;
|
|
442
449
|
|
|
443
450
|
type SidebarContextType = {
|
|
444
451
|
state: "expanded" | "collapsed";
|
|
@@ -649,4 +656,4 @@ declare const TagsInputInput: React$1.ForwardRefExoticComponent<Omit<TagsInputPr
|
|
|
649
656
|
declare const TagsInputItem: React$1.ForwardRefExoticComponent<Omit<TagsInputPrimitive.TagsInputItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
650
657
|
declare const TagsInputClear: React$1.ForwardRefExoticComponent<Omit<TagsInputPrimitive.TagsInputClearProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
651
658
|
|
|
652
|
-
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 };
|
package/dist/shadcn/index.js
CHANGED
|
@@ -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,
|
|
4
|
-
import { aj as Gg, ai as Kg,
|
|
5
|
-
import { j as c, p as qa,
|
|
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";
|