@altimateai/ui-components 0.0.69-beta1 → 0.0.69

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,4 +1,4 @@
1
- import { h as bt, B as pt, a4 as mt, a7 as kt, X as yt, a5 as wt } from "./Stack.js";
1
+ import { c as bt, B as pt, a4 as mt, a7 as kt, X as yt, a5 as wt } from "./Stack.js";
2
2
  import { j as $ } from "./index2.js";
3
3
  import { Prism as vt } from "react-syntax-highlighter";
4
4
  import { useState as Q, useCallback as St, useEffect as xt } from "react";
@@ -12,7 +12,17 @@ function is(e) {
12
12
  * This source code is licensed under the MIT license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
- const zt = [["path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4", key: "svg-0" }], ["path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", key: "svg-1" }]], ss = bt("outline", "refresh", "Refresh", zt), us = (e) => /* @__PURE__ */ $.jsx(pt, { ...e, type: e.type ?? "button", size: "icon", variant: e.variant ?? "ghost", children: e.children });
15
+ const zt = [["path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4", key: "svg-0" }], ["path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", key: "svg-1" }]], ss = bt("outline", "refresh", "Refresh", zt), us = ({ title: e, variant: o, type: n, ...r }) => /* @__PURE__ */ $.jsx(
16
+ pt,
17
+ {
18
+ ...r,
19
+ title: e,
20
+ type: n ?? "button",
21
+ size: "icon",
22
+ variant: o ?? "ghost",
23
+ children: r.children
24
+ }
25
+ );
16
26
  var ee = {}, pr = { exports: {} };
17
27
  (function(e) {
18
28
  function o(n) {
@@ -1,9 +1,9 @@
1
- import { a as Button, B as ButtonProps } from '../Button-Bsgqi8kG.js';
2
- export { b as buttonVariants } from '../Button-Bsgqi8kG.js';
1
+ import { a as Button, B as ButtonProps, b as ButtonSize } from '../Button-42Dj_nRE.js';
2
+ export { c as buttonVariants } from '../Button-42Dj_nRE.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
5
5
  import * as React$1 from 'react';
6
- import { ComponentProps, HTMLAttributes, ComponentPropsWithoutRef, AriaRole, ReactNode, SelectHTMLAttributes } from 'react';
6
+ import { ComponentProps, HTMLAttributes, AriaRole, ReactNode, SelectHTMLAttributes, ComponentPropsWithoutRef } from 'react';
7
7
  import * as class_variance_authority_types from 'class-variance-authority/types';
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
  import * as SheetPrimitive from '@radix-ui/react-dialog';
@@ -12,7 +12,6 @@ import * as LabelPrimitive from '@radix-ui/react-label';
12
12
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
13
13
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
14
14
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
15
- import { Command as Command$1 } from 'cmdk';
16
15
  import * as PopoverPrimitive from '@radix-ui/react-popover';
17
16
  export { PopoverClose } from '@radix-ui/react-popover';
18
17
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -85,6 +84,10 @@ declare function InputGroupText({ className, ...props }: React$1.ComponentProps<
85
84
  declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
86
85
  declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
87
86
 
87
+ interface InputPasswordProps extends Omit<ComponentProps<typeof InputGroupInput>, "type"> {
88
+ }
89
+ declare const InputPassword: React$1.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
90
+
88
91
  interface DebouncedInputProps extends Omit<InputProps, "onChange"> {
89
92
  onChange?: (value: string) => void;
90
93
  debounceMs?: number;
@@ -193,14 +196,15 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
193
196
  disablePointerSelection?: boolean;
194
197
  vimBindings?: boolean;
195
198
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
196
- interface CommandDialogProps extends DialogProps {
197
- commandProps?: ComponentPropsWithoutRef<typeof Command$1>;
198
- }
199
- declare const CommandDialog: ({ children, commandProps, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
200
- interface CommandInputProps extends ComponentPropsWithoutRef<typeof Command$1.Input> {
201
- tag?: string;
202
- }
203
- declare const CommandInput: React$1.ForwardRefExoticComponent<CommandInputProps & React$1.RefAttributes<HTMLInputElement>>;
199
+ declare const CommandDialog: ({ children, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
200
+ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
201
+ ref?: React.Ref<HTMLInputElement>;
202
+ } & {
203
+ asChild?: boolean;
204
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
205
+ value?: string;
206
+ onValueChange?: (search: string) => void;
207
+ } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
204
208
  declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
205
209
  children?: React.ReactNode;
206
210
  } & Pick<Pick<React$1.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
@@ -338,6 +342,7 @@ type ToasterToast = ToastProps & {
338
342
  title?: React$1.ReactNode;
339
343
  description?: React$1.ReactNode;
340
344
  action?: ToastActionElement;
345
+ icon?: React$1.ReactNode;
341
346
  };
342
347
  declare const actionTypes: {
343
348
  readonly ADD_TOAST: "ADD_TOAST";
@@ -503,23 +508,15 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
503
508
  variant?: "sidebar" | "floating" | "inset";
504
509
  collapsible?: "offcanvas" | "icon" | "none";
505
510
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
506
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<(Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
511
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
512
  variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
508
513
  size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
509
514
  } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
510
515
  asChild?: boolean;
511
516
  } & {
512
- size: "icon";
513
- title: string;
514
- } & React$1.RefAttributes<HTMLButtonElement>, "ref"> | Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
515
- variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
516
- size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
517
- } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
518
- asChild?: boolean;
519
- } & {
520
- size?: "default" | "sm" | "xs" | "lg";
517
+ size?: ButtonSize | undefined;
521
518
  title?: string;
522
- } & React$1.RefAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
519
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
523
520
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
524
521
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
525
522
  declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -658,7 +655,8 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
658
655
  declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
659
656
  type PaginationLinkProps = {
660
657
  isActive?: boolean;
661
- } & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
658
+ size?: ButtonSize;
659
+ } & React$1.ComponentProps<"a">;
662
660
  declare const PaginationLink: {
663
661
  ({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
664
662
  displayName: string;
@@ -739,7 +737,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
739
737
  }): react_jsx_runtime.JSX.Element;
740
738
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
741
739
 
742
- declare function Kbd({ className, ...props }: ComponentProps<"kbd">): react_jsx_runtime.JSX.Element;
743
- declare function KbdGroup({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
744
-
745
- 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, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, 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, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Kbd, KbdGroup, 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, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };
740
+ 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, ButtonSize, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, 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, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputPassword, type InputPasswordProps, 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, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };