@alpic-ai/ui 0.0.0-dev.ga9927da → 0.0.0-dev.gab7d55a
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/components/accordion-card.d.mts +5 -6
- package/dist/components/accordion.d.mts +5 -6
- package/dist/components/alert.d.mts +7 -9
- package/dist/components/attachment-tile.d.mts +1 -3
- package/dist/components/attachment-tile.mjs +1 -1
- package/dist/components/avatar.d.mts +6 -8
- package/dist/components/badge.d.mts +2 -4
- package/dist/components/breadcrumb.d.mts +8 -9
- package/dist/components/button.d.mts +3 -5
- package/dist/components/card.d.mts +7 -8
- package/dist/components/checkbox.d.mts +1 -2
- package/dist/components/collapsible.d.mts +3 -4
- package/dist/components/combobox.d.mts +13 -12
- package/dist/components/combobox.mjs +8 -5
- package/dist/components/command.d.mts +8 -9
- package/dist/components/copyable.d.mts +2 -3
- package/dist/components/copyable.mjs +1 -1
- package/dist/components/description-list.d.mts +4 -5
- package/dist/components/dialog.d.mts +13 -15
- package/dist/components/dropdown-menu.d.mts +15 -17
- package/dist/components/form.d.mts +35 -18
- package/dist/components/form.mjs +1 -1
- package/dist/components/github-button.d.mts +1 -2
- package/dist/components/input-group.d.mts +5 -7
- package/dist/components/input.d.mts +1 -2
- package/dist/components/input.mjs +1 -1
- package/dist/components/label.d.mts +1 -2
- package/dist/components/page-loader.d.mts +1 -3
- package/dist/components/pagination.d.mts +1 -2
- package/dist/components/popover.d.mts +4 -5
- package/dist/components/radio-group.d.mts +2 -3
- package/dist/components/scroll-area.d.mts +2 -3
- package/dist/components/select-trigger-variants.d.mts +1 -3
- package/dist/components/select.d.mts +9 -10
- package/dist/components/separator.d.mts +1 -2
- package/dist/components/sheet.d.mts +9 -10
- package/dist/components/shimmer-text.d.mts +1 -3
- package/dist/components/sidebar.d.mts +24 -26
- package/dist/components/sidebar.mjs +2 -2
- package/dist/components/skeleton.d.mts +2 -4
- package/dist/components/sonner.d.mts +2 -3
- package/dist/components/spinner.d.mts +3 -5
- package/dist/components/status-dot.d.mts +2 -4
- package/dist/components/switch.d.mts +1 -2
- package/dist/components/table.d.mts +8 -9
- package/dist/components/tabs.d.mts +10 -12
- package/dist/components/tabs.mjs +1 -1
- package/dist/components/tag.d.mts +3 -5
- package/dist/components/task-progress.d.mts +1 -3
- package/dist/components/textarea.d.mts +1 -2
- package/dist/components/textarea.mjs +1 -1
- package/dist/components/toggle-group.d.mts +4 -6
- package/dist/components/toggle-group.mjs +1 -1
- package/dist/components/tooltip-icon-button.d.mts +1 -2
- package/dist/components/tooltip-icon-button.mjs +1 -1
- package/dist/components/tooltip.d.mts +4 -5
- package/dist/components/typography.d.mts +4 -5
- package/dist/components/wizard.d.mts +2 -3
- package/package.json +7 -7
- package/src/components/combobox.tsx +9 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
import * as
|
|
2
|
+
import * as React from "react";
|
|
4
3
|
|
|
5
4
|
//#region src/components/accordion-card.d.ts
|
|
6
5
|
declare function AccordionCard({
|
|
@@ -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">):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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
|
-
import * as React from "react";
|
|
2
1
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
import * as
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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 from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
1
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
2
|
+
import * as React from "react";
|
|
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
|
-
} &
|
|
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):
|
|
13
|
+
}: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
16
14
|
declare function AlertTitle({
|
|
17
15
|
className,
|
|
18
16
|
...props
|
|
19
|
-
}: React.HTMLAttributes<HTMLParagraphElement>):
|
|
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>):
|
|
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):
|
|
31
|
+
}: ConvenienceAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
34
32
|
declare function WarningAlert({
|
|
35
33
|
title,
|
|
36
34
|
description,
|
|
37
35
|
className
|
|
38
|
-
}: ConvenienceAlertProps):
|
|
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):
|
|
22
|
+
}: AttachmentTileProps): import("react/jsx-runtime").JSX.Element;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { AttachmentTile, type AttachmentTileProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.mjs";
|
|
3
3
|
import { TooltipIconButton } from "./tooltip-icon-button.mjs";
|
|
4
|
-
import { useState } from "react";
|
|
5
4
|
import { FileText, XIcon } from "lucide-react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useState } from "react";
|
|
7
7
|
//#region src/components/attachment-tile.tsx
|
|
8
8
|
function AttachmentTile({ src, isImage, label, onRemove, onClick, className }) {
|
|
9
9
|
const [hasError, setHasError] = useState(false);
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
1
|
import { VariantProps } from "class-variance-authority";
|
|
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
|
-
} &
|
|
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):
|
|
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>):
|
|
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>):
|
|
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):
|
|
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
|
-
} &
|
|
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):
|
|
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
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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
|
-
}):
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
declare function BreadcrumbPage({
|
|
25
24
|
className,
|
|
26
25
|
...props
|
|
27
|
-
}: React.ComponentProps<"span">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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 from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
1
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
2
|
+
import * as React from "react";
|
|
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
|
-
} &
|
|
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):
|
|
27
|
+
}: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
30
28
|
//#endregion
|
|
31
29
|
export { Button, type ButtonProps, buttonVariants };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
|
|
4
3
|
//#region src/components/card.d.ts
|
|
5
4
|
declare function Card({
|
|
@@ -8,30 +7,30 @@ declare function Card({
|
|
|
8
7
|
...props
|
|
9
8
|
}: React.ComponentProps<"div"> & {
|
|
10
9
|
hoverable?: boolean;
|
|
11
|
-
}):
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
declare function CardHeader({
|
|
13
12
|
className,
|
|
14
13
|
...props
|
|
15
|
-
}: React.ComponentProps<"div">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
34
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
3
|
|
|
5
4
|
//#region src/components/checkbox.d.ts
|
|
6
5
|
declare function Checkbox({
|
|
7
6
|
className,
|
|
8
7
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof CheckboxPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { Checkbox };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
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>):
|
|
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>):
|
|
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>):
|
|
13
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PopoverContent } from "./popover.mjs";
|
|
2
2
|
import { selectTriggerVariants } from "./select-trigger-variants.mjs";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import { ReactNode } from "react";
|
|
6
5
|
import { Command } from "cmdk";
|
|
7
6
|
|
|
8
7
|
//#region src/components/combobox.d.ts
|
|
@@ -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):
|
|
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):
|
|
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):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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):
|
|
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>):
|
|
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 };
|
|
@@ -3,9 +3,9 @@ import { cn } from "../lib/cn.mjs";
|
|
|
3
3
|
import { Popover, PopoverContent, PopoverTrigger } from "./popover.mjs";
|
|
4
4
|
import { selectTriggerVariants } from "./select-trigger-variants.mjs";
|
|
5
5
|
import { TagDismissible } from "./tag.mjs";
|
|
6
|
-
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
7
6
|
import { CheckIcon, ChevronDownIcon, SearchIcon } from "lucide-react";
|
|
8
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
9
9
|
import { Command } from "cmdk";
|
|
10
10
|
//#region src/components/combobox.tsx
|
|
11
11
|
const ComboboxContext = createContext(null);
|
|
@@ -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,38 +1,37 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { Command as Command$1 } from "cmdk";
|
|
4
3
|
|
|
5
4
|
//#region src/components/command.d.ts
|
|
6
5
|
declare function Command({
|
|
7
6
|
className,
|
|
8
7
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command$1>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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>):
|
|
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">):
|
|
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,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
|
|
4
3
|
//#region src/components/copyable.d.ts
|
|
5
4
|
interface CopyableProps {
|
|
@@ -11,12 +10,12 @@ declare function Copyable({
|
|
|
11
10
|
content,
|
|
12
11
|
children,
|
|
13
12
|
className
|
|
14
|
-
}: CopyableProps):
|
|
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):
|
|
19
|
+
}: CopyableUrlProps): import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
//#endregion
|
|
22
21
|
export { Copyable, type CopyableProps, CopyableUrl, type CopyableUrlProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCopyToClipboard } from "../hooks/use-copy-to-clipboard.mjs";
|
|
3
2
|
import { cn } from "../lib/cn.mjs";
|
|
4
3
|
import { Button } from "./button.mjs";
|
|
4
|
+
import { useCopyToClipboard } from "../hooks/use-copy-to-clipboard.mjs";
|
|
5
5
|
import { Check, Copy } from "lucide-react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/copyable.tsx
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
19
|
+
}: React.ComponentProps<"dd">): import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
//#endregion
|
|
22
21
|
export { DescriptionItem, DescriptionList, DescriptionTitle, DescriptionValue };
|