@alpic-ai/ui 0.0.0-dev.g9d8ebfc → 0.0.0-dev.g9f07ae8

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.
Files changed (51) hide show
  1. package/dist/components/accordion-card.d.mts +4 -5
  2. package/dist/components/accordion.d.mts +4 -5
  3. package/dist/components/alert.d.mts +6 -8
  4. package/dist/components/attachment-tile.d.mts +1 -3
  5. package/dist/components/avatar.d.mts +5 -7
  6. package/dist/components/badge.d.mts +2 -4
  7. package/dist/components/breadcrumb.d.mts +8 -9
  8. package/dist/components/button.d.mts +2 -4
  9. package/dist/components/card.d.mts +7 -8
  10. package/dist/components/checkbox.d.mts +1 -2
  11. package/dist/components/collapsible.d.mts +3 -4
  12. package/dist/components/combobox.d.mts +12 -11
  13. package/dist/components/combobox.mjs +7 -4
  14. package/dist/components/command.d.mts +8 -9
  15. package/dist/components/copyable.d.mts +2 -3
  16. package/dist/components/description-list.d.mts +4 -5
  17. package/dist/components/dialog.d.mts +12 -14
  18. package/dist/components/dropdown-menu.d.mts +14 -16
  19. package/dist/components/form.d.mts +35 -18
  20. package/dist/components/github-button.d.mts +1 -2
  21. package/dist/components/input-group.d.mts +4 -6
  22. package/dist/components/input.d.mts +1 -2
  23. package/dist/components/label.d.mts +1 -2
  24. package/dist/components/page-loader.d.mts +1 -3
  25. package/dist/components/pagination.d.mts +1 -2
  26. package/dist/components/popover.d.mts +4 -5
  27. package/dist/components/radio-group.d.mts +2 -3
  28. package/dist/components/scroll-area.d.mts +2 -3
  29. package/dist/components/select-trigger-variants.d.mts +1 -3
  30. package/dist/components/select.d.mts +8 -9
  31. package/dist/components/separator.d.mts +1 -2
  32. package/dist/components/sheet.d.mts +9 -10
  33. package/dist/components/shimmer-text.d.mts +1 -3
  34. package/dist/components/sidebar.d.mts +23 -25
  35. package/dist/components/skeleton.d.mts +2 -4
  36. package/dist/components/sonner.d.mts +2 -3
  37. package/dist/components/spinner.d.mts +3 -5
  38. package/dist/components/status-dot.d.mts +2 -4
  39. package/dist/components/switch.d.mts +1 -2
  40. package/dist/components/table.d.mts +8 -9
  41. package/dist/components/tabs.d.mts +9 -11
  42. package/dist/components/tag.d.mts +3 -5
  43. package/dist/components/task-progress.d.mts +1 -3
  44. package/dist/components/textarea.d.mts +1 -2
  45. package/dist/components/toggle-group.d.mts +3 -5
  46. package/dist/components/tooltip-icon-button.d.mts +1 -2
  47. package/dist/components/tooltip.d.mts +4 -5
  48. package/dist/components/typography.d.mts +4 -5
  49. package/dist/components/wizard.d.mts +2 -3
  50. package/package.json +7 -7
  51. package/src/components/combobox.tsx +9 -2
@@ -1,5 +1,4 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
 
5
4
  //#region src/components/accordion-card.d.ts
@@ -16,17 +15,17 @@ declare function AccordionCard({
16
15
  open?: boolean;
17
16
  onOpenChange?: (nextOpen: boolean) => void;
18
17
  disabled?: boolean;
19
- } & Omit<React.ComponentProps<typeof AccordionPrimitive.Root>, "type" | "collapsible" | "defaultValue" | "value" | "onValueChange" | "disabled">): _$react_jsx_runtime0.JSX.Element;
18
+ } & Omit<React.ComponentProps<typeof AccordionPrimitive.Root>, "type" | "collapsible" | "defaultValue" | "value" | "onValueChange" | "disabled">): import("react/jsx-runtime").JSX.Element;
20
19
  declare function AccordionCardHeader({
21
20
  className,
22
21
  children,
23
22
  ...props
24
- }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): _$react_jsx_runtime0.JSX.Element;
23
+ }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
25
24
  declare function AccordionCardTitle({
26
25
  className,
27
26
  children,
28
27
  ...props
29
- }: React.HTMLAttributes<HTMLHeadingElement>): _$react_jsx_runtime0.JSX.Element;
28
+ }: React.HTMLAttributes<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
30
29
  /**
31
30
  * `className` is forwarded to the inner padding wrapper, not the Radix Content root.
32
31
  * The root always applies overflow-hidden and the accordion animations.
@@ -36,6 +35,6 @@ declare function AccordionCardContent({
36
35
  className,
37
36
  children,
38
37
  ...props
39
- }: React.ComponentProps<typeof AccordionPrimitive.Content>): _$react_jsx_runtime0.JSX.Element;
38
+ }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
40
39
  //#endregion
41
40
  export { AccordionCard, AccordionCardContent, AccordionCardHeader, AccordionCardTitle };
@@ -1,20 +1,19 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React from "react";
4
3
 
5
4
  //#region src/components/accordion.d.ts
6
5
  declare function Accordion({
7
6
  ...props
8
- }: React.ComponentProps<typeof AccordionPrimitive.Root>): _$react_jsx_runtime0.JSX.Element;
7
+ }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
9
8
  declare function AccordionItem({
10
9
  className,
11
10
  ...props
12
- }: React.ComponentProps<typeof AccordionPrimitive.Item>): _$react_jsx_runtime0.JSX.Element;
11
+ }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
13
12
  declare function AccordionTrigger({
14
13
  className,
15
14
  children,
16
15
  ...props
17
- }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): _$react_jsx_runtime0.JSX.Element;
16
+ }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
18
17
  /**
19
18
  * `className` is forwarded to the inner padding wrapper, not the Radix Content root.
20
19
  * The root always applies overflow-hidden and the accordion animations.
@@ -24,6 +23,6 @@ declare function AccordionContent({
24
23
  className,
25
24
  children,
26
25
  ...props
27
- }: React.ComponentProps<typeof AccordionPrimitive.Content>): _$react_jsx_runtime0.JSX.Element;
26
+ }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
28
27
  //#endregion
29
28
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -1,26 +1,24 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { VariantProps } from "class-variance-authority";
3
2
  import * as React from "react";
4
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
3
 
6
4
  //#region src/components/alert.d.ts
7
5
  declare const alertVariants: (props?: ({
8
6
  variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
9
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
8
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {}
11
9
  declare function Alert({
12
10
  className,
13
11
  variant,
14
12
  ...props
15
- }: AlertProps): _$react_jsx_runtime0.JSX.Element;
13
+ }: AlertProps): import("react/jsx-runtime").JSX.Element;
16
14
  declare function AlertTitle({
17
15
  className,
18
16
  ...props
19
- }: React.HTMLAttributes<HTMLParagraphElement>): _$react_jsx_runtime0.JSX.Element;
17
+ }: React.HTMLAttributes<HTMLParagraphElement>): import("react/jsx-runtime").JSX.Element;
20
18
  declare function AlertDescription({
21
19
  className,
22
20
  ...props
23
- }: React.HTMLAttributes<HTMLDivElement>): _$react_jsx_runtime0.JSX.Element;
21
+ }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
24
22
  interface ConvenienceAlertProps {
25
23
  title?: string;
26
24
  description?: React.ReactNode;
@@ -30,11 +28,11 @@ declare function ErrorAlert({
30
28
  title,
31
29
  description,
32
30
  className
33
- }: ConvenienceAlertProps): _$react_jsx_runtime0.JSX.Element;
31
+ }: ConvenienceAlertProps): import("react/jsx-runtime").JSX.Element;
34
32
  declare function WarningAlert({
35
33
  title,
36
34
  description,
37
35
  className
38
- }: ConvenienceAlertProps): _$react_jsx_runtime0.JSX.Element;
36
+ }: ConvenienceAlertProps): import("react/jsx-runtime").JSX.Element;
39
37
  //#endregion
40
38
  export { Alert, AlertDescription, AlertTitle, ErrorAlert, WarningAlert };
@@ -1,5 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
-
3
1
  //#region src/components/attachment-tile.d.ts
4
2
  interface AttachmentTileProps {
5
3
  /** Source URL for the attachment thumbnail */
@@ -21,6 +19,6 @@ declare function AttachmentTile({
21
19
  onRemove,
22
20
  onClick,
23
21
  className
24
- }: AttachmentTileProps): _$react_jsx_runtime0.JSX.Element;
22
+ }: AttachmentTileProps): import("react/jsx-runtime").JSX.Element;
25
23
  //#endregion
26
24
  export { AttachmentTile, type AttachmentTileProps };
@@ -1,13 +1,11 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { VariantProps } from "class-variance-authority";
3
2
  import * as React from "react";
4
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
5
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
6
4
 
7
5
  //#region src/components/avatar.d.ts
8
6
  declare const avatarVariants: (props?: ({
9
7
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
10
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
9
  type AvatarSize = NonNullable<VariantProps<typeof avatarVariants>["size"]>;
12
10
  type AvatarStatus = "online";
13
11
  interface AvatarProps extends React.ComponentProps<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
@@ -19,15 +17,15 @@ declare function Avatar({
19
17
  className,
20
18
  children,
21
19
  ...props
22
- }: AvatarProps): _$react_jsx_runtime0.JSX.Element;
20
+ }: AvatarProps): import("react/jsx-runtime").JSX.Element;
23
21
  declare function AvatarImage({
24
22
  className,
25
23
  ...props
26
- }: React.ComponentProps<typeof AvatarPrimitive.Image>): _$react_jsx_runtime0.JSX.Element;
24
+ }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
27
25
  declare function AvatarFallback({
28
26
  className,
29
27
  ...props
30
- }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): _$react_jsx_runtime0.JSX.Element;
28
+ }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
31
29
  interface AvatarLabelGroupProps extends React.ComponentProps<"div"> {
32
30
  size?: "sm" | "md";
33
31
  src?: string;
@@ -47,6 +45,6 @@ declare function AvatarLabelGroup({
47
45
  status,
48
46
  className,
49
47
  ...props
50
- }: AvatarLabelGroupProps): _$react_jsx_runtime0.JSX.Element;
48
+ }: AvatarLabelGroupProps): import("react/jsx-runtime").JSX.Element;
51
49
  //#endregion
52
50
  export { Avatar, AvatarFallback, AvatarImage, AvatarLabelGroup, type AvatarSize, type AvatarStatus };
@@ -1,12 +1,10 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { VariantProps } from "class-variance-authority";
3
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
4
2
 
5
3
  //#region src/components/badge.d.ts
6
4
  declare const badgeVariants: (props?: ({
7
5
  variant?: "warning" | "success" | "secondary" | "primary" | "error" | null | undefined;
8
6
  size?: "sm" | "md" | null | undefined;
9
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
8
  interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> {}
11
9
  declare function Badge({
12
10
  className,
@@ -14,7 +12,7 @@ declare function Badge({
14
12
  size,
15
13
  children,
16
14
  ...props
17
- }: BadgeProps): _$react_jsx_runtime0.JSX.Element;
15
+ }: BadgeProps): import("react/jsx-runtime").JSX.Element;
18
16
  type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>["variant"]>;
19
17
  //#endregion
20
18
  export { Badge, type BadgeVariant, badgeVariants };
@@ -1,42 +1,41 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
 
4
3
  //#region src/components/breadcrumb.d.ts
5
4
  declare function Breadcrumb({
6
5
  className,
7
6
  ...props
8
- }: React.ComponentProps<"nav">): _$react_jsx_runtime0.JSX.Element;
7
+ }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
9
8
  declare function BreadcrumbList({
10
9
  className,
11
10
  ...props
12
- }: React.ComponentProps<"ol">): _$react_jsx_runtime0.JSX.Element;
11
+ }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
13
12
  declare function BreadcrumbItem({
14
13
  className,
15
14
  ...props
16
- }: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
15
+ }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
17
16
  declare function BreadcrumbLink({
18
17
  asChild,
19
18
  className,
20
19
  ...props
21
20
  }: React.ComponentProps<"a"> & {
22
21
  asChild?: boolean;
23
- }): _$react_jsx_runtime0.JSX.Element;
22
+ }): import("react/jsx-runtime").JSX.Element;
24
23
  declare function BreadcrumbPage({
25
24
  className,
26
25
  ...props
27
- }: React.ComponentProps<"span">): _$react_jsx_runtime0.JSX.Element;
26
+ }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
28
27
  declare function BreadcrumbSeparator({
29
28
  children,
30
29
  className,
31
30
  ...props
32
- }: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
31
+ }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
33
32
  declare function BreadcrumbChevron({
34
33
  className,
35
34
  ...props
36
- }: React.ComponentProps<"span">): _$react_jsx_runtime0.JSX.Element;
35
+ }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
37
36
  declare function BreadcrumbEllipsis({
38
37
  className,
39
38
  ...props
40
- }: React.ComponentProps<"span">): _$react_jsx_runtime0.JSX.Element;
39
+ }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
41
40
  //#endregion
42
41
  export { Breadcrumb, BreadcrumbChevron, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,13 +1,11 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { VariantProps } from "class-variance-authority";
3
2
  import * as React from "react";
4
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
3
 
6
4
  //#region src/components/button.d.ts
7
5
  declare const buttonVariants: (props?: ({
8
6
  variant?: "destructive" | "secondary" | "primary" | "tertiary" | "link" | "link-muted" | "cta" | null | undefined;
9
7
  size?: "default" | "icon" | "icon-rounded" | "pill" | null | undefined;
10
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
9
  interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
12
10
  asChild?: boolean;
13
11
  loading?: boolean;
@@ -26,6 +24,6 @@ declare function Button({
26
24
  disabled,
27
25
  children,
28
26
  ...props
29
- }: ButtonProps): _$react_jsx_runtime0.JSX.Element;
27
+ }: ButtonProps): import("react/jsx-runtime").JSX.Element;
30
28
  //#endregion
31
29
  export { Button, type ButtonProps, buttonVariants };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
 
4
3
  //#region src/components/card.d.ts
@@ -8,30 +7,30 @@ declare function Card({
8
7
  ...props
9
8
  }: React.ComponentProps<"div"> & {
10
9
  hoverable?: boolean;
11
- }): _$react_jsx_runtime0.JSX.Element;
10
+ }): import("react/jsx-runtime").JSX.Element;
12
11
  declare function CardHeader({
13
12
  className,
14
13
  ...props
15
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
14
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
16
15
  declare function CardTitle({
17
16
  className,
18
17
  ...props
19
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
18
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
20
19
  declare function CardDescription({
21
20
  className,
22
21
  ...props
23
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
22
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
24
23
  declare function CardAction({
25
24
  className,
26
25
  ...props
27
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
26
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
28
27
  declare function CardContent({
29
28
  className,
30
29
  ...props
31
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
30
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
32
31
  declare function CardFooter({
33
32
  className,
34
33
  ...props
35
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
34
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
36
35
  //#endregion
37
36
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
3
 
@@ -6,6 +5,6 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
6
5
  declare function Checkbox({
7
6
  className,
8
7
  ...props
9
- }: React.ComponentProps<typeof CheckboxPrimitive.Root>): _$react_jsx_runtime0.JSX.Element;
8
+ }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
10
9
  //#endregion
11
10
  export { Checkbox };
@@ -1,16 +1,15 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
4
3
 
5
4
  //#region src/components/collapsible.d.ts
6
5
  declare function Collapsible({
7
6
  ...props
8
- }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): _$react_jsx_runtime0.JSX.Element;
7
+ }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
9
8
  declare function CollapsibleTrigger({
10
9
  ...props
11
- }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): _$react_jsx_runtime0.JSX.Element;
10
+ }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
12
11
  declare function CollapsibleContent({
13
12
  ...props
14
- }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): _$react_jsx_runtime0.JSX.Element;
13
+ }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
15
14
  //#endregion
16
15
  export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -1,6 +1,5 @@
1
1
  import { PopoverContent } from "./popover.mjs";
2
2
  import { selectTriggerVariants } from "./select-trigger-variants.mjs";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
  import { VariantProps } from "class-variance-authority";
5
4
  import { ReactNode } from "react";
6
5
  import { Command } from "cmdk";
@@ -11,6 +10,8 @@ interface ComboboxBaseProps {
11
10
  open?: boolean;
12
11
  defaultOpen?: boolean;
13
12
  onOpenChange?: (open: boolean) => void;
13
+ /** Resolves a selected value to a display label (e.g. for multi-select tags). Defaults to the value. */
14
+ getOptionLabel?: (value: string) => string;
14
15
  }
15
16
  interface ComboboxSingleProps extends ComboboxBaseProps {
16
17
  multiple?: false;
@@ -25,7 +26,7 @@ interface ComboboxMultipleProps extends ComboboxBaseProps {
25
26
  onValueChange?: (value: string[]) => void;
26
27
  }
27
28
  type ComboboxProps = ComboboxSingleProps | ComboboxMultipleProps;
28
- declare function Combobox(props: ComboboxProps): _$react_jsx_runtime0.JSX.Element;
29
+ declare function Combobox(props: ComboboxProps): import("react/jsx-runtime").JSX.Element;
29
30
  interface ComboboxTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size">, VariantProps<typeof selectTriggerVariants> {
30
31
  placeholder?: string;
31
32
  }
@@ -35,7 +36,7 @@ declare function ComboboxTrigger({
35
36
  placeholder,
36
37
  children,
37
38
  ...props
38
- }: ComboboxTriggerProps): _$react_jsx_runtime0.JSX.Element;
39
+ }: ComboboxTriggerProps): import("react/jsx-runtime").JSX.Element;
39
40
  interface ComboboxContentProps extends React.ComponentProps<typeof PopoverContent> {
40
41
  className?: string;
41
42
  children?: ReactNode;
@@ -46,27 +47,27 @@ declare function ComboboxContent({
46
47
  children,
47
48
  filter,
48
49
  ...props
49
- }: ComboboxContentProps): _$react_jsx_runtime0.JSX.Element;
50
+ }: ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
50
51
  declare function ComboboxSearch({
51
52
  className,
52
53
  ...props
53
- }: React.ComponentProps<typeof Command.Input>): _$react_jsx_runtime0.JSX.Element;
54
+ }: React.ComponentProps<typeof Command.Input>): import("react/jsx-runtime").JSX.Element;
54
55
  declare function ComboboxList({
55
56
  className,
56
57
  ...props
57
- }: React.ComponentProps<typeof Command.List>): _$react_jsx_runtime0.JSX.Element;
58
+ }: React.ComponentProps<typeof Command.List>): import("react/jsx-runtime").JSX.Element;
58
59
  declare function ComboboxEmpty({
59
60
  className,
60
61
  ...props
61
- }: React.ComponentProps<typeof Command.Empty>): _$react_jsx_runtime0.JSX.Element;
62
+ }: React.ComponentProps<typeof Command.Empty>): import("react/jsx-runtime").JSX.Element;
62
63
  declare function ComboboxGroup({
63
64
  className,
64
65
  ...props
65
- }: React.ComponentProps<typeof Command.Group>): _$react_jsx_runtime0.JSX.Element;
66
+ }: React.ComponentProps<typeof Command.Group>): import("react/jsx-runtime").JSX.Element;
66
67
  declare function ComboboxSeparator({
67
68
  className,
68
69
  ...props
69
- }: React.ComponentProps<typeof Command.Separator>): _$react_jsx_runtime0.JSX.Element;
70
+ }: React.ComponentProps<typeof Command.Separator>): import("react/jsx-runtime").JSX.Element;
70
71
  interface ComboboxItemProps extends Omit<React.ComponentProps<typeof Command.Item>, "onSelect"> {
71
72
  /** The value stored when this item is selected */
72
73
  itemValue: string;
@@ -76,11 +77,11 @@ declare function ComboboxItem({
76
77
  children,
77
78
  itemValue,
78
79
  ...props
79
- }: ComboboxItemProps): _$react_jsx_runtime0.JSX.Element;
80
+ }: ComboboxItemProps): import("react/jsx-runtime").JSX.Element;
80
81
  declare function ComboboxItemText({
81
82
  className,
82
83
  children,
83
84
  ...props
84
- }: React.HTMLAttributes<HTMLSpanElement>): _$react_jsx_runtime0.JSX.Element;
85
+ }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
85
86
  //#endregion
86
87
  export { Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxItem, ComboboxItemText, ComboboxList, ComboboxSearch, ComboboxSeparator, ComboboxTrigger };
@@ -15,7 +15,7 @@ function useComboboxContext() {
15
15
  return context;
16
16
  }
17
17
  function Combobox(props) {
18
- const { children, multiple = false, open: controlledOpen, defaultOpen = false, onOpenChange: controlledOnOpenChange } = props;
18
+ const { children, multiple = false, open: controlledOpen, defaultOpen = false, onOpenChange: controlledOnOpenChange, getOptionLabel } = props;
19
19
  const [uncontrolledSingleValue, setUncontrolledSingleValue] = useState(!multiple ? props.defaultValue ?? null : null);
20
20
  const [uncontrolledMultiValue, setUncontrolledMultiValue] = useState(multiple ? props.defaultValue ?? [] : []);
21
21
  const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
@@ -77,7 +77,8 @@ function Combobox(props) {
77
77
  onDeselect,
78
78
  isSelected,
79
79
  open,
80
- onOpenChange
80
+ onOpenChange,
81
+ getOptionLabel
81
82
  }), [
82
83
  multiple,
83
84
  singleValue,
@@ -86,7 +87,8 @@ function Combobox(props) {
86
87
  onDeselect,
87
88
  isSelected,
88
89
  open,
89
- onOpenChange
90
+ onOpenChange,
91
+ getOptionLabel
90
92
  ]);
91
93
  return /* @__PURE__ */ jsx(ComboboxContext.Provider, {
92
94
  value: contextValue,
@@ -120,10 +122,11 @@ function ComboboxTrigger({ className, size, placeholder, children, ...props }) {
120
122
  });
121
123
  }
122
124
  function ComboboxTags({ values, onDeselect }) {
125
+ const { getOptionLabel } = useComboboxContext();
123
126
  return /* @__PURE__ */ jsx(Fragment, { children: values.map((tagValue) => /* @__PURE__ */ jsx(TagDismissible, {
124
127
  onClick: (event) => event.stopPropagation(),
125
128
  onDismiss: () => onDeselect(tagValue),
126
- children: tagValue
129
+ children: getOptionLabel ? getOptionLabel(tagValue) : tagValue
127
130
  }, tagValue)) });
128
131
  }
129
132
  function ComboboxContent({ className, children, filter, ...props }) {
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
  import { Command as Command$1 } from "cmdk";
4
3
 
@@ -6,33 +5,33 @@ import { Command as Command$1 } from "cmdk";
6
5
  declare function Command({
7
6
  className,
8
7
  ...props
9
- }: React.ComponentProps<typeof Command$1>): _$react_jsx_runtime0.JSX.Element;
8
+ }: React.ComponentProps<typeof Command$1>): import("react/jsx-runtime").JSX.Element;
10
9
  declare function CommandInput({
11
10
  className,
12
11
  ...props
13
- }: React.ComponentProps<typeof Command$1.Input>): _$react_jsx_runtime0.JSX.Element;
12
+ }: React.ComponentProps<typeof Command$1.Input>): import("react/jsx-runtime").JSX.Element;
14
13
  declare function CommandList({
15
14
  className,
16
15
  ...props
17
- }: React.ComponentProps<typeof Command$1.List>): _$react_jsx_runtime0.JSX.Element;
16
+ }: React.ComponentProps<typeof Command$1.List>): import("react/jsx-runtime").JSX.Element;
18
17
  declare function CommandEmpty({
19
18
  ...props
20
- }: React.ComponentProps<typeof Command$1.Empty>): _$react_jsx_runtime0.JSX.Element;
19
+ }: React.ComponentProps<typeof Command$1.Empty>): import("react/jsx-runtime").JSX.Element;
21
20
  declare function CommandGroup({
22
21
  className,
23
22
  ...props
24
- }: React.ComponentProps<typeof Command$1.Group>): _$react_jsx_runtime0.JSX.Element;
23
+ }: React.ComponentProps<typeof Command$1.Group>): import("react/jsx-runtime").JSX.Element;
25
24
  declare function CommandSeparator({
26
25
  className,
27
26
  ...props
28
- }: React.ComponentProps<typeof Command$1.Separator>): _$react_jsx_runtime0.JSX.Element;
27
+ }: React.ComponentProps<typeof Command$1.Separator>): import("react/jsx-runtime").JSX.Element;
29
28
  declare function CommandItem({
30
29
  className,
31
30
  ...props
32
- }: React.ComponentProps<typeof Command$1.Item>): _$react_jsx_runtime0.JSX.Element;
31
+ }: React.ComponentProps<typeof Command$1.Item>): import("react/jsx-runtime").JSX.Element;
33
32
  declare function CommandShortcut({
34
33
  className,
35
34
  ...props
36
- }: React.ComponentProps<"span">): _$react_jsx_runtime0.JSX.Element;
35
+ }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
37
36
  //#endregion
38
37
  export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ReactNode } from "react";
3
2
 
4
3
  //#region src/components/copyable.d.ts
@@ -11,12 +10,12 @@ declare function Copyable({
11
10
  content,
12
11
  children,
13
12
  className
14
- }: CopyableProps): _$react_jsx_runtime0.JSX.Element;
13
+ }: CopyableProps): import("react/jsx-runtime").JSX.Element;
15
14
  interface CopyableUrlProps {
16
15
  url: URL;
17
16
  }
18
17
  declare function CopyableUrl({
19
18
  url
20
- }: CopyableUrlProps): _$react_jsx_runtime0.JSX.Element;
19
+ }: CopyableUrlProps): import("react/jsx-runtime").JSX.Element;
21
20
  //#endregion
22
21
  export { Copyable, type CopyableProps, CopyableUrl, type CopyableUrlProps };
@@ -1,22 +1,21 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React from "react";
3
2
 
4
3
  //#region src/components/description-list.d.ts
5
4
  declare function DescriptionList({
6
5
  className,
7
6
  ...props
8
- }: React.ComponentProps<"dl">): _$react_jsx_runtime0.JSX.Element;
7
+ }: React.ComponentProps<"dl">): import("react/jsx-runtime").JSX.Element;
9
8
  declare function DescriptionItem({
10
9
  className,
11
10
  ...props
12
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
11
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
12
  declare function DescriptionTitle({
14
13
  className,
15
14
  ...props
16
- }: React.ComponentProps<"dt">): _$react_jsx_runtime0.JSX.Element;
15
+ }: React.ComponentProps<"dt">): import("react/jsx-runtime").JSX.Element;
17
16
  declare function DescriptionValue({
18
17
  className,
19
18
  ...props
20
- }: React.ComponentProps<"dd">): _$react_jsx_runtime0.JSX.Element;
19
+ }: React.ComponentProps<"dd">): import("react/jsx-runtime").JSX.Element;
21
20
  //#endregion
22
21
  export { DescriptionItem, DescriptionList, DescriptionTitle, DescriptionValue };
@@ -1,27 +1,25 @@
1
1
  import { ButtonProps } from "./button.mjs";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { VariantProps } from "class-variance-authority";
4
3
  import * as React from "react";
5
4
  import * as DialogPrimitive from "@radix-ui/react-dialog";
6
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
7
5
 
8
6
  //#region src/components/dialog.d.ts
9
7
  declare function Dialog({
10
8
  ...props
11
- }: React.ComponentProps<typeof DialogPrimitive.Root>): _$react_jsx_runtime0.JSX.Element;
9
+ }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
12
10
  declare function DialogTrigger({
13
11
  ...props
14
- }: React.ComponentProps<typeof DialogPrimitive.Trigger>): _$react_jsx_runtime0.JSX.Element;
12
+ }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
15
13
  declare function DialogPortal({
16
14
  ...props
17
- }: React.ComponentProps<typeof DialogPrimitive.Portal>): _$react_jsx_runtime0.JSX.Element;
15
+ }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
18
16
  declare function DialogOverlay({
19
17
  className,
20
18
  ...props
21
- }: React.ComponentProps<typeof DialogPrimitive.Overlay>): _$react_jsx_runtime0.JSX.Element;
19
+ }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
22
20
  declare const dialogContentVariants: (props?: ({
23
21
  size?: "sm" | "lg" | null | undefined;
24
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
25
23
  interface DialogContentProps extends React.ComponentProps<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
26
24
  showCloseButton?: boolean;
27
25
  }
@@ -31,31 +29,31 @@ declare function DialogContent({
31
29
  size,
32
30
  showCloseButton,
33
31
  ...props
34
- }: DialogContentProps): _$react_jsx_runtime0.JSX.Element;
32
+ }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
35
33
  declare function DialogHeader({
36
34
  className,
37
35
  ...props
38
- }: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
36
+ }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
39
37
  declare const dialogFooterVariants: (props?: ({
40
38
  layout?: "horizontal" | "vertical" | null | undefined;
41
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
39
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
42
40
  interface DialogFooterProps extends React.ComponentProps<"div">, VariantProps<typeof dialogFooterVariants> {}
43
41
  declare function DialogFooter({
44
42
  className,
45
43
  layout,
46
44
  ...props
47
- }: DialogFooterProps): _$react_jsx_runtime0.JSX.Element;
45
+ }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
48
46
  declare function DialogTitle({
49
47
  className,
50
48
  ...props
51
- }: React.ComponentProps<typeof DialogPrimitive.Title>): _$react_jsx_runtime0.JSX.Element;
49
+ }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
52
50
  declare function DialogClose({
53
51
  children,
54
52
  ...props
55
- }: Omit<ButtonProps, "variant" | "asChild">): _$react_jsx_runtime0.JSX.Element;
53
+ }: Omit<ButtonProps, "variant" | "asChild">): import("react/jsx-runtime").JSX.Element;
56
54
  declare function DialogDescription({
57
55
  className,
58
56
  ...props
59
- }: React.ComponentProps<typeof DialogPrimitive.Description>): _$react_jsx_runtime0.JSX.Element;
57
+ }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
60
58
  //#endregion
61
59
  export { Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, dialogContentVariants, dialogFooterVariants };