@altimateai/ui-components 0.0.69-beta1 → 0.0.70-beta.1

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';
@@ -69,6 +68,8 @@ interface InputProps extends Omit<React$1.ComponentProps<"input">, "ref"> {
69
68
  className?: string;
70
69
  }>;
71
70
  iconPosition?: "left" | "right";
71
+ /** When true, the focus ring appears inside the input border instead of outside */
72
+ insetRing?: boolean;
72
73
  }
73
74
  declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
74
75
 
@@ -85,6 +86,10 @@ declare function InputGroupText({ className, ...props }: React$1.ComponentProps<
85
86
  declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
86
87
  declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
87
88
 
89
+ interface InputPasswordProps extends Omit<ComponentProps<typeof InputGroupInput>, "type"> {
90
+ }
91
+ declare const InputPassword: React$1.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
92
+
88
93
  interface DebouncedInputProps extends Omit<InputProps, "onChange"> {
89
94
  onChange?: (value: string) => void;
90
95
  debounceMs?: number;
@@ -193,14 +198,15 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
193
198
  disablePointerSelection?: boolean;
194
199
  vimBindings?: boolean;
195
200
  } & 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>>;
201
+ declare const CommandDialog: ({ children, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
202
+ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
203
+ ref?: React.Ref<HTMLInputElement>;
204
+ } & {
205
+ asChild?: boolean;
206
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
207
+ value?: string;
208
+ onValueChange?: (search: string) => void;
209
+ } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
204
210
  declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
205
211
  children?: React.ReactNode;
206
212
  } & Pick<Pick<React$1.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
@@ -338,6 +344,7 @@ type ToasterToast = ToastProps & {
338
344
  title?: React$1.ReactNode;
339
345
  description?: React$1.ReactNode;
340
346
  action?: ToastActionElement;
347
+ icon?: React$1.ReactNode;
341
348
  };
342
349
  declare const actionTypes: {
343
350
  readonly ADD_TOAST: "ADD_TOAST";
@@ -503,23 +510,15 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
503
510
  variant?: "sidebar" | "floating" | "inset";
504
511
  collapsible?: "offcanvas" | "icon" | "none";
505
512
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
506
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<(Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
513
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
514
  variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
508
515
  size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
509
516
  } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
510
517
  asChild?: boolean;
511
518
  } & {
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";
519
+ size?: ButtonSize | undefined;
521
520
  title?: string;
522
- } & React$1.RefAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
521
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
523
522
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
524
523
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
525
524
  declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -658,7 +657,8 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
658
657
  declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
659
658
  type PaginationLinkProps = {
660
659
  isActive?: boolean;
661
- } & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
660
+ size?: ButtonSize;
661
+ } & React$1.ComponentProps<"a">;
662
662
  declare const PaginationLink: {
663
663
  ({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
664
664
  displayName: string;
@@ -739,7 +739,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
739
739
  }): react_jsx_runtime.JSX.Element;
740
740
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
741
741
 
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 };
742
+ 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 };