@kumix/ui 0.1.1 → 0.1.3
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/README.md +21 -8
- package/dist/hooks.d.ts +78 -52
- package/dist/hooks.d.ts.map +1 -1
- package/dist/index.d.ts +546 -1871
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +848 -147
- package/dist/index.js.map +1 -1
- package/dist/source.css +1 -0
- package/dist/source.css.d.ts +3 -0
- package/dist/style.css +247 -0
- package/package.json +19 -5
package/dist/index.js
CHANGED
|
@@ -7,9 +7,11 @@ import { cn } from "@kumix/utils";
|
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { AlertCircleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftToLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleIcon, CirclePlusIcon, CopyIcon, GripHorizontalIcon, GripVerticalIcon, Loader2Icon, LoaderIcon, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, PinOffIcon, PlusIcon, SearchIcon, Settings2Icon, SquareMinusIcon, SquarePlusIcon, StarIcon, XIcon } from "lucide-react";
|
|
10
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
10
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, Direction, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
11
11
|
import { DayPicker } from "react-day-picker";
|
|
12
12
|
import useEmblaCarousel from "embla-carousel-react";
|
|
13
|
+
import * as RechartsPrimitive from "recharts";
|
|
14
|
+
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
13
15
|
import { Command as Command$1 } from "cmdk";
|
|
14
16
|
import { flexRender } from "@tanstack/react-table";
|
|
15
17
|
import { DndContext, DragOverlay, KeyboardSensor, MouseSensor, PointerSensor, TouchSensor, closestCenter, defaultDropAnimation, defaultDropAnimationSideEffects, useSensor, useSensors } from "@dnd-kit/core";
|
|
@@ -20,6 +22,7 @@ import { DateField as DateField$1, DateInput as DateInput$1, DateSegment as Date
|
|
|
20
22
|
import { Drawer as Drawer$1 } from "vaul";
|
|
21
23
|
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
22
24
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
25
|
+
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
23
26
|
import { Group, Panel, Separator as Separator$2 } from "react-resizable-panels";
|
|
24
27
|
import { useTheme } from "next-themes";
|
|
25
28
|
import { Toaster as Toaster$1 } from "sonner";
|
|
@@ -2933,6 +2936,99 @@ function AspectRatio({ ...props }) {
|
|
|
2933
2936
|
});
|
|
2934
2937
|
}
|
|
2935
2938
|
//#endregion
|
|
2939
|
+
//#region src/ui/attachment.tsx
|
|
2940
|
+
const attachmentVariants = cva("group/attachment relative flex w-fit min-w-0 max-w-full shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", { variants: {
|
|
2941
|
+
size: {
|
|
2942
|
+
default: "gap-2 text-sm has-data-[slot=attachment-media]:p-2 has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2",
|
|
2943
|
+
sm: "gap-2.5 text-xs has-data-[slot=attachment-media]:p-1.5 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5",
|
|
2944
|
+
xs: "gap-1.5 rounded-lg text-xs has-data-[slot=attachment-media]:p-1 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1"
|
|
2945
|
+
},
|
|
2946
|
+
orientation: {
|
|
2947
|
+
horizontal: "min-w-40 items-center",
|
|
2948
|
+
vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
|
|
2949
|
+
}
|
|
2950
|
+
} });
|
|
2951
|
+
function Attachment({ className, state = "done", size = "default", orientation = "horizontal", ...props }) {
|
|
2952
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2953
|
+
"data-slot": "attachment",
|
|
2954
|
+
"data-state": state,
|
|
2955
|
+
"data-size": size,
|
|
2956
|
+
"data-orientation": orientation,
|
|
2957
|
+
className: cn(attachmentVariants({
|
|
2958
|
+
size,
|
|
2959
|
+
orientation
|
|
2960
|
+
}), className),
|
|
2961
|
+
...props
|
|
2962
|
+
});
|
|
2963
|
+
}
|
|
2964
|
+
const attachmentMediaVariants = cva("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none", {
|
|
2965
|
+
variants: { variant: {
|
|
2966
|
+
icon: "",
|
|
2967
|
+
image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
|
|
2968
|
+
} },
|
|
2969
|
+
defaultVariants: { variant: "icon" }
|
|
2970
|
+
});
|
|
2971
|
+
function AttachmentMedia({ className, variant = "icon", ...props }) {
|
|
2972
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2973
|
+
"data-slot": "attachment-media",
|
|
2974
|
+
"data-variant": variant,
|
|
2975
|
+
className: cn(attachmentMediaVariants({ variant }), className),
|
|
2976
|
+
...props
|
|
2977
|
+
});
|
|
2978
|
+
}
|
|
2979
|
+
function AttachmentContent({ className, ...props }) {
|
|
2980
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2981
|
+
"data-slot": "attachment-content",
|
|
2982
|
+
className: cn("min-w-0 max-w-full flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
2983
|
+
...props
|
|
2984
|
+
});
|
|
2985
|
+
}
|
|
2986
|
+
function AttachmentTitle({ className, ...props }) {
|
|
2987
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2988
|
+
"data-slot": "attachment-title",
|
|
2989
|
+
className: cn("group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block min-w-0 max-w-full truncate font-medium", className),
|
|
2990
|
+
...props
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
function AttachmentDescription({ className, ...props }) {
|
|
2994
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2995
|
+
"data-slot": "attachment-description",
|
|
2996
|
+
className: cn("mt-0.5 block min-w-0 truncate text-muted-foreground text-xs group-data-[state=error]/attachment:text-destructive/80", "max-w-full", className),
|
|
2997
|
+
...props
|
|
2998
|
+
});
|
|
2999
|
+
}
|
|
3000
|
+
function AttachmentActions({ className, ...props }) {
|
|
3001
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3002
|
+
"data-slot": "attachment-actions",
|
|
3003
|
+
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
3004
|
+
...props
|
|
3005
|
+
});
|
|
3006
|
+
}
|
|
3007
|
+
function AttachmentAction({ className, variant, size = "icon", ...props }) {
|
|
3008
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
3009
|
+
"data-slot": "attachment-action",
|
|
3010
|
+
variant: variant ?? "ghost",
|
|
3011
|
+
size,
|
|
3012
|
+
className: cn(className),
|
|
3013
|
+
...props
|
|
3014
|
+
});
|
|
3015
|
+
}
|
|
3016
|
+
function AttachmentTrigger({ className, asChild = false, type, ...props }) {
|
|
3017
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
3018
|
+
"data-slot": "attachment-trigger",
|
|
3019
|
+
type: asChild ? void 0 : type ?? "button",
|
|
3020
|
+
className: cn("absolute inset-0 z-10 outline-none", className),
|
|
3021
|
+
...props
|
|
3022
|
+
});
|
|
3023
|
+
}
|
|
3024
|
+
function AttachmentGroup({ className, ...props }) {
|
|
3025
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3026
|
+
"data-slot": "attachment-group",
|
|
3027
|
+
className: cn("scroll-fade-x scrollbar-none flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
3028
|
+
...props
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
//#endregion
|
|
2936
3032
|
//#region src/ui/avatar.tsx
|
|
2937
3033
|
const avatarStatusVariants = cva("flex size-2 items-center rounded-full border-2 border-background", {
|
|
2938
3034
|
variants: { variant: {
|
|
@@ -3214,6 +3310,71 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx("spa
|
|
|
3214
3310
|
})
|
|
3215
3311
|
});
|
|
3216
3312
|
//#endregion
|
|
3313
|
+
//#region src/ui/bubble.tsx
|
|
3314
|
+
function BubbleGroup({ className, ...props }) {
|
|
3315
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3316
|
+
"data-slot": "bubble-group",
|
|
3317
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
3318
|
+
...props
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3321
|
+
const bubbleVariants = cva("group/bubble relative flex w-fit min-w-0 max-w-[80%] flex-col gap-1 data-[variant=ghost]:max-w-full data-[align=end]:self-end group-data-[align=end]/message:self-end", {
|
|
3322
|
+
variants: { variant: {
|
|
3323
|
+
default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
|
|
3324
|
+
secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
|
|
3325
|
+
muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
|
|
3326
|
+
tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
|
|
3327
|
+
outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
|
|
3328
|
+
ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
|
|
3329
|
+
destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
|
|
3330
|
+
} },
|
|
3331
|
+
defaultVariants: { variant: "default" }
|
|
3332
|
+
});
|
|
3333
|
+
function Bubble({ variant = "default", align = "start", className, ...props }) {
|
|
3334
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3335
|
+
"data-slot": "bubble",
|
|
3336
|
+
"data-variant": variant,
|
|
3337
|
+
"data-align": align,
|
|
3338
|
+
className: cn(bubbleVariants({ variant }), className),
|
|
3339
|
+
...props
|
|
3340
|
+
});
|
|
3341
|
+
}
|
|
3342
|
+
function BubbleContent({ asChild = false, className, ...props }) {
|
|
3343
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
3344
|
+
"data-slot": "bubble-content",
|
|
3345
|
+
className: cn("wrap-break-word w-fit min-w-0 max-w-full overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed group-data-[align=end]/bubble:self-end [button,a]:outline-none [button,a]:transition-colors [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50 [button]:text-left", className),
|
|
3346
|
+
...props
|
|
3347
|
+
});
|
|
3348
|
+
}
|
|
3349
|
+
const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
|
|
3350
|
+
variants: {
|
|
3351
|
+
side: {
|
|
3352
|
+
top: "top-0 -translate-y-3/4",
|
|
3353
|
+
bottom: "bottom-0 translate-y-3/4"
|
|
3354
|
+
},
|
|
3355
|
+
align: {
|
|
3356
|
+
start: "left-3",
|
|
3357
|
+
end: "right-3"
|
|
3358
|
+
}
|
|
3359
|
+
},
|
|
3360
|
+
defaultVariants: {
|
|
3361
|
+
side: "bottom",
|
|
3362
|
+
align: "end"
|
|
3363
|
+
}
|
|
3364
|
+
});
|
|
3365
|
+
function BubbleReactions({ side = "bottom", align = "end", className, ...props }) {
|
|
3366
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3367
|
+
"data-slot": "bubble-reactions",
|
|
3368
|
+
"data-align": align,
|
|
3369
|
+
"data-side": side,
|
|
3370
|
+
className: cn(bubbleReactionsVariants({
|
|
3371
|
+
side,
|
|
3372
|
+
align
|
|
3373
|
+
}), className),
|
|
3374
|
+
...props
|
|
3375
|
+
});
|
|
3376
|
+
}
|
|
3377
|
+
//#endregion
|
|
3217
3378
|
//#region src/ui/separator.tsx
|
|
3218
3379
|
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
3219
3380
|
return /* @__PURE__ */ jsx(Separator$1.Root, {
|
|
@@ -3528,6 +3689,149 @@ function CarouselNext({ className, variant = "outline", size = "icon", ...props
|
|
|
3528
3689
|
});
|
|
3529
3690
|
}
|
|
3530
3691
|
//#endregion
|
|
3692
|
+
//#region src/ui/chart.tsx
|
|
3693
|
+
const THEMES = {
|
|
3694
|
+
light: "",
|
|
3695
|
+
dark: ".dark"
|
|
3696
|
+
};
|
|
3697
|
+
const INITIAL_DIMENSION = {
|
|
3698
|
+
width: 320,
|
|
3699
|
+
height: 200
|
|
3700
|
+
};
|
|
3701
|
+
const ChartContext = React$1.createContext(null);
|
|
3702
|
+
function useChart() {
|
|
3703
|
+
const context = React$1.useContext(ChartContext);
|
|
3704
|
+
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
3705
|
+
return context;
|
|
3706
|
+
}
|
|
3707
|
+
function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
3708
|
+
const uniqueId = React$1.useId();
|
|
3709
|
+
const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
|
|
3710
|
+
return /* @__PURE__ */ jsx(ChartContext.Provider, {
|
|
3711
|
+
value: { config },
|
|
3712
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
3713
|
+
"data-slot": "chart",
|
|
3714
|
+
"data-chart": chartId,
|
|
3715
|
+
className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden", className),
|
|
3716
|
+
...props,
|
|
3717
|
+
children: [/* @__PURE__ */ jsx(ChartStyle, {
|
|
3718
|
+
id: chartId,
|
|
3719
|
+
config
|
|
3720
|
+
}), /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, {
|
|
3721
|
+
initialDimension,
|
|
3722
|
+
children
|
|
3723
|
+
})]
|
|
3724
|
+
})
|
|
3725
|
+
});
|
|
3726
|
+
}
|
|
3727
|
+
const ChartStyle = ({ id, config }) => {
|
|
3728
|
+
const colorConfig = Object.entries(config).filter(([, config]) => config.theme ?? config.color);
|
|
3729
|
+
if (!colorConfig.length) return null;
|
|
3730
|
+
return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: Object.entries(THEMES).map(([theme, prefix]) => `
|
|
3731
|
+
${prefix} [data-chart=${id}] {
|
|
3732
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
3733
|
+
const color = itemConfig.theme?.[theme] ?? itemConfig.color;
|
|
3734
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
3735
|
+
}).join("\n")}
|
|
3736
|
+
}
|
|
3737
|
+
`).join("\n") } });
|
|
3738
|
+
};
|
|
3739
|
+
const ChartTooltip = RechartsPrimitive.Tooltip;
|
|
3740
|
+
function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }) {
|
|
3741
|
+
const { config } = useChart();
|
|
3742
|
+
const tooltipLabel = React$1.useMemo(() => {
|
|
3743
|
+
if (hideLabel || !payload?.length) return null;
|
|
3744
|
+
const [item] = payload;
|
|
3745
|
+
const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
|
|
3746
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3747
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label ?? label : itemConfig?.label;
|
|
3748
|
+
if (labelFormatter) return /* @__PURE__ */ jsx("div", {
|
|
3749
|
+
className: cn("font-medium", labelClassName),
|
|
3750
|
+
children: labelFormatter(value, payload)
|
|
3751
|
+
});
|
|
3752
|
+
if (!value) return null;
|
|
3753
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3754
|
+
className: cn("font-medium", labelClassName),
|
|
3755
|
+
children: value
|
|
3756
|
+
});
|
|
3757
|
+
}, [
|
|
3758
|
+
label,
|
|
3759
|
+
labelFormatter,
|
|
3760
|
+
payload,
|
|
3761
|
+
hideLabel,
|
|
3762
|
+
labelClassName,
|
|
3763
|
+
config,
|
|
3764
|
+
labelKey
|
|
3765
|
+
]);
|
|
3766
|
+
if (!active || !payload?.length) return null;
|
|
3767
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
3768
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3769
|
+
className: cn("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className),
|
|
3770
|
+
children: [!nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("div", {
|
|
3771
|
+
className: "grid gap-1.5",
|
|
3772
|
+
children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
3773
|
+
const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
|
|
3774
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3775
|
+
const indicatorColor = color ?? item.payload?.fill ?? item.color;
|
|
3776
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3777
|
+
className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"),
|
|
3778
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment$1, { children: [itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx("div", {
|
|
3779
|
+
className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
3780
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
3781
|
+
"w-1": indicator === "line",
|
|
3782
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
3783
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
3784
|
+
}),
|
|
3785
|
+
style: {
|
|
3786
|
+
"--color-bg": indicatorColor,
|
|
3787
|
+
"--color-border": indicatorColor
|
|
3788
|
+
}
|
|
3789
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
3790
|
+
className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
3791
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
3792
|
+
className: "grid gap-1.5",
|
|
3793
|
+
children: [nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("span", {
|
|
3794
|
+
className: "text-muted-foreground",
|
|
3795
|
+
children: itemConfig?.label ?? item.name
|
|
3796
|
+
})]
|
|
3797
|
+
}), item.value != null && /* @__PURE__ */ jsx("span", {
|
|
3798
|
+
className: "font-medium font-mono text-foreground tabular-nums",
|
|
3799
|
+
children: typeof item.value === "number" ? item.value.toLocaleString() : String(item.value)
|
|
3800
|
+
})]
|
|
3801
|
+
})] })
|
|
3802
|
+
}, index);
|
|
3803
|
+
})
|
|
3804
|
+
})]
|
|
3805
|
+
});
|
|
3806
|
+
}
|
|
3807
|
+
const ChartLegend = RechartsPrimitive.Legend;
|
|
3808
|
+
function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }) {
|
|
3809
|
+
const { config } = useChart();
|
|
3810
|
+
if (!payload?.length) return null;
|
|
3811
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3812
|
+
className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
|
|
3813
|
+
children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
3814
|
+
const key = `${nameKey ?? item.dataKey ?? "value"}`;
|
|
3815
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3816
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3817
|
+
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
3818
|
+
children: [itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
3819
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
3820
|
+
style: { backgroundColor: item.color }
|
|
3821
|
+
}), itemConfig?.label]
|
|
3822
|
+
}, index);
|
|
3823
|
+
})
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
3827
|
+
if (typeof payload !== "object" || payload === null) return;
|
|
3828
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
3829
|
+
let configLabelKey = key;
|
|
3830
|
+
if (key in payload && typeof payload[key] === "string") configLabelKey = payload[key];
|
|
3831
|
+
else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") configLabelKey = payloadPayload[key];
|
|
3832
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
3833
|
+
}
|
|
3834
|
+
//#endregion
|
|
3531
3835
|
//#region src/ui/checkbox.tsx
|
|
3532
3836
|
const checkboxVariants = cva(`
|
|
3533
3837
|
group peer bg-background shrink-0 rounded-md border border-input ring-offset-background focus-visible:outline-none
|
|
@@ -3606,28 +3910,384 @@ function Code({ className, variant, size, asChild = false, showCopyButton = fals
|
|
|
3606
3910
|
})]
|
|
3607
3911
|
});
|
|
3608
3912
|
}
|
|
3609
|
-
//#endregion
|
|
3610
|
-
//#region src/ui/collapsible.tsx
|
|
3611
|
-
function Collapsible({ ...props }) {
|
|
3612
|
-
return /* @__PURE__ */ jsx(Collapsible$1.Root, {
|
|
3613
|
-
"data-slot": "collapsible",
|
|
3913
|
+
//#endregion
|
|
3914
|
+
//#region src/ui/collapsible.tsx
|
|
3915
|
+
function Collapsible({ ...props }) {
|
|
3916
|
+
return /* @__PURE__ */ jsx(Collapsible$1.Root, {
|
|
3917
|
+
"data-slot": "collapsible",
|
|
3918
|
+
...props
|
|
3919
|
+
});
|
|
3920
|
+
}
|
|
3921
|
+
function CollapsibleTrigger({ ...props }) {
|
|
3922
|
+
return /* @__PURE__ */ jsx(Collapsible$1.CollapsibleTrigger, {
|
|
3923
|
+
"data-slot": "collapsible-trigger",
|
|
3924
|
+
...props
|
|
3925
|
+
});
|
|
3926
|
+
}
|
|
3927
|
+
function CollapsibleContent({ className, children, ...props }) {
|
|
3928
|
+
return /* @__PURE__ */ jsx(Collapsible$1.CollapsibleContent, {
|
|
3929
|
+
"data-slot": "collapsible-content",
|
|
3930
|
+
className: cn("overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down", className),
|
|
3931
|
+
...props,
|
|
3932
|
+
children
|
|
3933
|
+
});
|
|
3934
|
+
}
|
|
3935
|
+
//#endregion
|
|
3936
|
+
//#region src/ui/input.tsx
|
|
3937
|
+
const inputVariants = cva(`
|
|
3938
|
+
flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80
|
|
3939
|
+
focus-visible:ring-ring/30 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
3940
|
+
disabled:cursor-not-allowed disabled:opacity-60
|
|
3941
|
+
[[readonly]]:bg-muted/80 [[readonly]]:cursor-not-allowed
|
|
3942
|
+
file:h-full [[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent
|
|
3943
|
+
file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
|
|
3944
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
3945
|
+
`, {
|
|
3946
|
+
variants: { variant: {
|
|
3947
|
+
lg: "h-10 rounded-md px-4 text-sm file:me-4 file:pe-4",
|
|
3948
|
+
md: "h-9 rounded-md px-3 text-sm file:me-3 file:pe-3",
|
|
3949
|
+
sm: "h-8 rounded-md px-2.5 text-xs file:me-2.5 file:pe-2.5"
|
|
3950
|
+
} },
|
|
3951
|
+
defaultVariants: { variant: "md" }
|
|
3952
|
+
});
|
|
3953
|
+
const inputAddonVariants = cva("flex shrink-0 items-center justify-center border border-input bg-muted text-secondary-foreground shadow-[rgba(0,0,0,0.05)] shadow-xs [&_svg]:text-secondary-foreground/60", {
|
|
3954
|
+
variants: {
|
|
3955
|
+
variant: {
|
|
3956
|
+
lg: "h-10 min-w-10 rounded-md px-4 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
3957
|
+
md: "h-9 min-w-9 rounded-md px-3 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
3958
|
+
sm: "h-8 min-w-7 rounded-md px-2.5 text-xs [&_svg:not([class*=size-])]:size-3.5"
|
|
3959
|
+
},
|
|
3960
|
+
mode: {
|
|
3961
|
+
default: "",
|
|
3962
|
+
icon: "justify-center px-0"
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
defaultVariants: {
|
|
3966
|
+
variant: "md",
|
|
3967
|
+
mode: "default"
|
|
3968
|
+
}
|
|
3969
|
+
});
|
|
3970
|
+
const inputGroupClasses = "flex items-stretch **:data-[slot=input]:grow [&_[data-slot=input-addon]:has(+[data-slot=input])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=input])]:border-e-0 [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:border-e-0 [&_[data-slot=input]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=input]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=input-addon]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]+[data-slot=button]]:rounded-s-none [&_[data-slot=button]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=datefield]]:**:data-[slot=input]:rounded-s-none [&_[data-slot=datefield]:has(+[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=input-addon])]:rounded-e-none **:data-[slot=datefield]:grow [&_[data-slot=datefield]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=datefield]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=datefield]:has(~[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=datefield]~[data-slot=input-addon]]:rounded-s-none";
|
|
3971
|
+
const inputWrapperVariants = cva(`
|
|
3972
|
+
flex items-center gap-1.5
|
|
3973
|
+
has-focus-visible:ring-ring/30
|
|
3974
|
+
has-focus-visible:border-ring
|
|
3975
|
+
has-focus-visible:outline-none
|
|
3976
|
+
has-focus-visible:ring-[3px]
|
|
3977
|
+
|
|
3978
|
+
**:data-[slot=datefield]:grow
|
|
3979
|
+
**:data-[slot=input]:data-focus-within:ring-transparent
|
|
3980
|
+
**:data-[slot=input]:data-focus-within:ring-0
|
|
3981
|
+
**:data-[slot=input]:data-focus-within:border-0
|
|
3982
|
+
**:data-[slot=input]:flex
|
|
3983
|
+
**:data-[slot=input]:w-full
|
|
3984
|
+
**:data-[slot=input]:outline-none
|
|
3985
|
+
**:data-[slot=input]:transition-colors
|
|
3986
|
+
**:data-[slot=input]:text-foreground
|
|
3987
|
+
**:data-[slot=input]:placeholder:text-muted-foreground
|
|
3988
|
+
**:data-[slot=input]:border-0
|
|
3989
|
+
**:data-[slot=input]:bg-transparent
|
|
3990
|
+
**:data-[slot=input]:p-0
|
|
3991
|
+
**:data-[slot=input]:shadow-none
|
|
3992
|
+
**:data-[slot=input]:focus-visible:ring-0
|
|
3993
|
+
**:data-[slot=input]:h-auto
|
|
3994
|
+
**:data-[slot=input]:disabled:cursor-not-allowed
|
|
3995
|
+
**:data-[slot=input]:disabled:opacity-50
|
|
3996
|
+
|
|
3997
|
+
[&_svg]:text-muted-foreground
|
|
3998
|
+
[&_svg]:shrink-0
|
|
3999
|
+
|
|
4000
|
+
has-aria-invalid:border-destructive/60
|
|
4001
|
+
has-aria-invalid:ring-destructive/10
|
|
4002
|
+
dark:has-aria-invalid:border-destructive
|
|
4003
|
+
dark:has-aria-invalid:ring-destructive/20
|
|
4004
|
+
`, {
|
|
4005
|
+
variants: { variant: {
|
|
4006
|
+
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
4007
|
+
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
4008
|
+
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
4009
|
+
} },
|
|
4010
|
+
defaultVariants: { variant: "md" }
|
|
4011
|
+
});
|
|
4012
|
+
function Input({ className, type, variant, ...props }) {
|
|
4013
|
+
return /* @__PURE__ */ jsx("input", {
|
|
4014
|
+
"data-slot": "input",
|
|
4015
|
+
type,
|
|
4016
|
+
className: cn(inputVariants({ variant }), className),
|
|
4017
|
+
...props
|
|
4018
|
+
});
|
|
4019
|
+
}
|
|
4020
|
+
function InputAddon({ className, variant, mode, ...props }) {
|
|
4021
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4022
|
+
"data-slot": "input-addon",
|
|
4023
|
+
className: cn(inputAddonVariants({
|
|
4024
|
+
variant,
|
|
4025
|
+
mode
|
|
4026
|
+
}), className),
|
|
4027
|
+
...props
|
|
4028
|
+
});
|
|
4029
|
+
}
|
|
4030
|
+
function InputGroup({ className, ...props }) {
|
|
4031
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4032
|
+
"data-slot": "input-group",
|
|
4033
|
+
className: cn(inputGroupClasses, className),
|
|
4034
|
+
...props
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
function InputWrapper({ className, variant, ...props }) {
|
|
4038
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4039
|
+
"data-slot": "input-wrapper",
|
|
4040
|
+
className: cn(inputVariants({ variant }), inputWrapperVariants({ variant }), className),
|
|
4041
|
+
...props
|
|
4042
|
+
});
|
|
4043
|
+
}
|
|
4044
|
+
//#endregion
|
|
4045
|
+
//#region src/ui/textarea.tsx
|
|
4046
|
+
const textareaVariants = cva(`
|
|
4047
|
+
w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow]
|
|
4048
|
+
text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
4049
|
+
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 read-only:opacity-70
|
|
4050
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
4051
|
+
in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10 dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20
|
|
4052
|
+
`, {
|
|
4053
|
+
variants: { variant: {
|
|
4054
|
+
sm: "rounded-md px-2.5 py-2.5 text-xs",
|
|
4055
|
+
md: "rounded-md px-3 py-3 text-sm",
|
|
4056
|
+
lg: "rounded-md px-4 py-4 text-sm"
|
|
4057
|
+
} },
|
|
4058
|
+
defaultVariants: { variant: "md" }
|
|
4059
|
+
});
|
|
4060
|
+
function Textarea({ className, variant, ...props }) {
|
|
4061
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
4062
|
+
"data-slot": "textarea",
|
|
4063
|
+
className: cn(textareaVariants({ variant }), className),
|
|
4064
|
+
...props
|
|
4065
|
+
});
|
|
4066
|
+
}
|
|
4067
|
+
//#endregion
|
|
4068
|
+
//#region src/ui/input-group.tsx
|
|
4069
|
+
function InputGroup$1({ className, ...props }) {
|
|
4070
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4071
|
+
"data-slot": "input-group",
|
|
4072
|
+
role: "group",
|
|
4073
|
+
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-start]]:h-auto has-[>textarea]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:flex-col has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
4074
|
+
...props
|
|
4075
|
+
});
|
|
4076
|
+
}
|
|
4077
|
+
const inputGroupAddonVariants = cva("flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium text-muted-foreground text-sm group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
4078
|
+
variants: { align: {
|
|
4079
|
+
"inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
|
|
4080
|
+
"inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
|
|
4081
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
4082
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
4083
|
+
} },
|
|
4084
|
+
defaultVariants: { align: "inline-start" }
|
|
4085
|
+
});
|
|
4086
|
+
function InputGroupAddon({ className, align = "inline-start", ...props }) {
|
|
4087
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4088
|
+
role: "group",
|
|
4089
|
+
"data-slot": "input-group-addon",
|
|
4090
|
+
"data-align": align,
|
|
4091
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
4092
|
+
onClick: (e) => {
|
|
4093
|
+
if (e.target.closest("button")) return;
|
|
4094
|
+
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
4095
|
+
},
|
|
4096
|
+
...props
|
|
4097
|
+
});
|
|
4098
|
+
}
|
|
4099
|
+
const inputGroupButtonVariants = cva("flex items-center gap-2 text-sm shadow-none", {
|
|
4100
|
+
variants: { size: {
|
|
4101
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
4102
|
+
sm: "",
|
|
4103
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
4104
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
4105
|
+
} },
|
|
4106
|
+
defaultVariants: { size: "xs" }
|
|
4107
|
+
});
|
|
4108
|
+
function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs", ...props }) {
|
|
4109
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
4110
|
+
type,
|
|
4111
|
+
"data-size": size,
|
|
4112
|
+
variant,
|
|
4113
|
+
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4114
|
+
...props
|
|
4115
|
+
});
|
|
4116
|
+
}
|
|
4117
|
+
function InputGroupText({ className, ...props }) {
|
|
4118
|
+
return /* @__PURE__ */ jsx("span", {
|
|
4119
|
+
className: cn("flex items-center gap-2 text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className),
|
|
4120
|
+
...props
|
|
4121
|
+
});
|
|
4122
|
+
}
|
|
4123
|
+
function InputGroupInput({ className, ...props }) {
|
|
4124
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
4125
|
+
"data-slot": "input-group-control",
|
|
4126
|
+
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
4127
|
+
...props
|
|
4128
|
+
});
|
|
4129
|
+
}
|
|
4130
|
+
function InputGroupTextarea({ className, ...props }) {
|
|
4131
|
+
return /* @__PURE__ */ jsx(Textarea, {
|
|
4132
|
+
"data-slot": "input-group-control",
|
|
4133
|
+
className: cn("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
4134
|
+
...props
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
//#endregion
|
|
4138
|
+
//#region src/ui/combobox.tsx
|
|
4139
|
+
const Combobox = Combobox$1.Root;
|
|
4140
|
+
function ComboboxValue({ ...props }) {
|
|
4141
|
+
return /* @__PURE__ */ jsx(Combobox$1.Value, {
|
|
4142
|
+
"data-slot": "combobox-value",
|
|
4143
|
+
...props
|
|
4144
|
+
});
|
|
4145
|
+
}
|
|
4146
|
+
function ComboboxTrigger({ className, children, ...props }) {
|
|
4147
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Trigger, {
|
|
4148
|
+
"data-slot": "combobox-trigger",
|
|
4149
|
+
className: cn("[&_svg:not([class*='size-'])]:size-4", className),
|
|
4150
|
+
...props,
|
|
4151
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })]
|
|
4152
|
+
});
|
|
4153
|
+
}
|
|
4154
|
+
function ComboboxClear({ className, ...props }) {
|
|
4155
|
+
return /* @__PURE__ */ jsx(Combobox$1.Clear, {
|
|
4156
|
+
"data-slot": "combobox-clear",
|
|
4157
|
+
render: /* @__PURE__ */ jsx(InputGroupButton, {
|
|
4158
|
+
variant: "ghost",
|
|
4159
|
+
size: "icon-xs"
|
|
4160
|
+
}),
|
|
4161
|
+
className: cn(className),
|
|
4162
|
+
...props,
|
|
4163
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
|
|
4164
|
+
});
|
|
4165
|
+
}
|
|
4166
|
+
function ComboboxInput({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
|
|
4167
|
+
return /* @__PURE__ */ jsxs(InputGroup$1, {
|
|
4168
|
+
className: cn("w-auto", className),
|
|
4169
|
+
children: [
|
|
4170
|
+
/* @__PURE__ */ jsx(Combobox$1.Input, {
|
|
4171
|
+
render: /* @__PURE__ */ jsx(InputGroupInput, { disabled }),
|
|
4172
|
+
...props
|
|
4173
|
+
}),
|
|
4174
|
+
/* @__PURE__ */ jsxs(InputGroupAddon, {
|
|
4175
|
+
align: "inline-end",
|
|
4176
|
+
children: [showTrigger && /* @__PURE__ */ jsx(InputGroupButton, {
|
|
4177
|
+
size: "icon-xs",
|
|
4178
|
+
variant: "ghost",
|
|
4179
|
+
asChild: true,
|
|
4180
|
+
"data-slot": "input-group-button",
|
|
4181
|
+
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
4182
|
+
disabled,
|
|
4183
|
+
children: /* @__PURE__ */ jsx(ComboboxTrigger, {})
|
|
4184
|
+
}), showClear && /* @__PURE__ */ jsx(ComboboxClear, { disabled })]
|
|
4185
|
+
}),
|
|
4186
|
+
children
|
|
4187
|
+
]
|
|
4188
|
+
});
|
|
4189
|
+
}
|
|
4190
|
+
function ComboboxContent({ className, side = "bottom", sideOffset = 6, align = "start", alignOffset = 0, anchor, ...props }) {
|
|
4191
|
+
return /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
4192
|
+
side,
|
|
4193
|
+
sideOffset,
|
|
4194
|
+
align,
|
|
4195
|
+
alignOffset,
|
|
4196
|
+
anchor,
|
|
4197
|
+
className: "isolate z-50",
|
|
4198
|
+
children: /* @__PURE__ */ jsx(Combobox$1.Popup, {
|
|
4199
|
+
"data-slot": "combobox-content",
|
|
4200
|
+
"data-chips": !!anchor,
|
|
4201
|
+
className: cn("group/combobox-content data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 relative max-h-(--available-height) w-(--anchor-width) min-w-[calc(var(--anchor-width)+--spacing(7))] max-w-(--available-width) origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-closed:animate-out data-open:animate-in *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none", className),
|
|
4202
|
+
...props
|
|
4203
|
+
})
|
|
4204
|
+
}) });
|
|
4205
|
+
}
|
|
4206
|
+
function ComboboxList({ className, ...props }) {
|
|
4207
|
+
return /* @__PURE__ */ jsx(Combobox$1.List, {
|
|
4208
|
+
"data-slot": "combobox-list",
|
|
4209
|
+
className: cn("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", className),
|
|
4210
|
+
...props
|
|
4211
|
+
});
|
|
4212
|
+
}
|
|
4213
|
+
function ComboboxItem({ className, children, ...props }) {
|
|
4214
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Item, {
|
|
4215
|
+
"data-slot": "combobox-item",
|
|
4216
|
+
className: cn("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-50 not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
4217
|
+
...props,
|
|
4218
|
+
children: [children, /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, {
|
|
4219
|
+
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
4220
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" })
|
|
4221
|
+
})]
|
|
4222
|
+
});
|
|
4223
|
+
}
|
|
4224
|
+
function ComboboxGroup({ className, ...props }) {
|
|
4225
|
+
return /* @__PURE__ */ jsx(Combobox$1.Group, {
|
|
4226
|
+
"data-slot": "combobox-group",
|
|
4227
|
+
className: cn(className),
|
|
3614
4228
|
...props
|
|
3615
4229
|
});
|
|
3616
4230
|
}
|
|
3617
|
-
function
|
|
3618
|
-
return /* @__PURE__ */ jsx(
|
|
3619
|
-
"data-slot": "
|
|
4231
|
+
function ComboboxLabel({ className, ...props }) {
|
|
4232
|
+
return /* @__PURE__ */ jsx(Combobox$1.GroupLabel, {
|
|
4233
|
+
"data-slot": "combobox-label",
|
|
4234
|
+
className: cn("px-2 py-1.5 text-muted-foreground text-xs", className),
|
|
3620
4235
|
...props
|
|
3621
4236
|
});
|
|
3622
4237
|
}
|
|
3623
|
-
function
|
|
3624
|
-
return /* @__PURE__ */ jsx(
|
|
3625
|
-
"data-slot": "
|
|
3626
|
-
|
|
4238
|
+
function ComboboxCollection({ ...props }) {
|
|
4239
|
+
return /* @__PURE__ */ jsx(Combobox$1.Collection, {
|
|
4240
|
+
"data-slot": "combobox-collection",
|
|
4241
|
+
...props
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4244
|
+
function ComboboxEmpty({ className, ...props }) {
|
|
4245
|
+
return /* @__PURE__ */ jsx(Combobox$1.Empty, {
|
|
4246
|
+
"data-slot": "combobox-empty",
|
|
4247
|
+
className: cn("hidden w-full justify-center py-2 text-center text-muted-foreground text-sm group-data-empty/combobox-content:flex", className),
|
|
4248
|
+
...props
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
function ComboboxSeparator({ className, ...props }) {
|
|
4252
|
+
return /* @__PURE__ */ jsx(Combobox$1.Separator, {
|
|
4253
|
+
"data-slot": "combobox-separator",
|
|
4254
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
4255
|
+
...props
|
|
4256
|
+
});
|
|
4257
|
+
}
|
|
4258
|
+
function ComboboxChips({ className, ...props }) {
|
|
4259
|
+
return /* @__PURE__ */ jsx(Combobox$1.Chips, {
|
|
4260
|
+
"data-slot": "combobox-chips",
|
|
4261
|
+
className: cn("flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-data-[slot=combobox-chip]:px-1.5 has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", className),
|
|
4262
|
+
...props
|
|
4263
|
+
});
|
|
4264
|
+
}
|
|
4265
|
+
function ComboboxChip({ className, children, showRemove = true, ...props }) {
|
|
4266
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Chip, {
|
|
4267
|
+
"data-slot": "combobox-chip",
|
|
4268
|
+
className: cn("flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 whitespace-nowrap rounded-sm bg-muted px-1.5 font-medium text-foreground text-xs has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-data-[slot=combobox-chip-remove]:pr-0 has-disabled:opacity-50", className),
|
|
3627
4269
|
...props,
|
|
3628
|
-
children
|
|
4270
|
+
children: [children, showRemove && /* @__PURE__ */ jsx(Combobox$1.ChipRemove, {
|
|
4271
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
4272
|
+
variant: "ghost",
|
|
4273
|
+
size: "icon"
|
|
4274
|
+
}),
|
|
4275
|
+
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
4276
|
+
"data-slot": "combobox-chip-remove",
|
|
4277
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
|
|
4278
|
+
})]
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4281
|
+
function ComboboxChipsInput({ className, ...props }) {
|
|
4282
|
+
return /* @__PURE__ */ jsx(Combobox$1.Input, {
|
|
4283
|
+
"data-slot": "combobox-chip-input",
|
|
4284
|
+
className: cn("min-w-16 flex-1 outline-none", className),
|
|
4285
|
+
...props
|
|
3629
4286
|
});
|
|
3630
4287
|
}
|
|
4288
|
+
function useComboboxAnchor() {
|
|
4289
|
+
return React$1.useRef(null);
|
|
4290
|
+
}
|
|
3631
4291
|
//#endregion
|
|
3632
4292
|
//#region src/ui/dialog.tsx
|
|
3633
4293
|
const dialogContentVariants = cva("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 flex flex-col border border-border bg-background p-6 shadow-black/5 shadow-lg outline-0 duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg", {
|
|
@@ -5207,6 +5867,15 @@ const DescriptionList = DescriptionListBase;
|
|
|
5207
5867
|
DescriptionList.Term = DescriptionTerm;
|
|
5208
5868
|
DescriptionList.Details = DescriptionDetails;
|
|
5209
5869
|
//#endregion
|
|
5870
|
+
//#region src/ui/direction.tsx
|
|
5871
|
+
function DirectionProvider({ dir, direction, children }) {
|
|
5872
|
+
return /* @__PURE__ */ jsx(Direction.DirectionProvider, {
|
|
5873
|
+
dir: direction ?? dir ?? "ltr",
|
|
5874
|
+
children
|
|
5875
|
+
});
|
|
5876
|
+
}
|
|
5877
|
+
const useDirection = Direction.useDirection;
|
|
5878
|
+
//#endregion
|
|
5210
5879
|
//#region src/ui/drawer.tsx
|
|
5211
5880
|
const Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ jsx(Drawer$1.Root, {
|
|
5212
5881
|
shouldScaleBackground,
|
|
@@ -7333,115 +8002,6 @@ function HoverCardContent({ className, align = "center", sideOffset = 4, ...prop
|
|
|
7333
8002
|
});
|
|
7334
8003
|
}
|
|
7335
8004
|
//#endregion
|
|
7336
|
-
//#region src/ui/input.tsx
|
|
7337
|
-
const inputVariants = cva(`
|
|
7338
|
-
flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80
|
|
7339
|
-
focus-visible:ring-ring/30 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
7340
|
-
disabled:cursor-not-allowed disabled:opacity-60
|
|
7341
|
-
[[readonly]]:bg-muted/80 [[readonly]]:cursor-not-allowed
|
|
7342
|
-
file:h-full [[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent
|
|
7343
|
-
file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
|
|
7344
|
-
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
7345
|
-
`, {
|
|
7346
|
-
variants: { variant: {
|
|
7347
|
-
lg: "h-10 rounded-md px-4 text-sm file:me-4 file:pe-4",
|
|
7348
|
-
md: "h-9 rounded-md px-3 text-sm file:me-3 file:pe-3",
|
|
7349
|
-
sm: "h-8 rounded-md px-2.5 text-xs file:me-2.5 file:pe-2.5"
|
|
7350
|
-
} },
|
|
7351
|
-
defaultVariants: { variant: "md" }
|
|
7352
|
-
});
|
|
7353
|
-
const inputAddonVariants = cva("flex shrink-0 items-center justify-center border border-input bg-muted text-secondary-foreground shadow-[rgba(0,0,0,0.05)] shadow-xs [&_svg]:text-secondary-foreground/60", {
|
|
7354
|
-
variants: {
|
|
7355
|
-
variant: {
|
|
7356
|
-
lg: "h-10 min-w-10 rounded-md px-4 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
7357
|
-
md: "h-9 min-w-9 rounded-md px-3 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
7358
|
-
sm: "h-8 min-w-7 rounded-md px-2.5 text-xs [&_svg:not([class*=size-])]:size-3.5"
|
|
7359
|
-
},
|
|
7360
|
-
mode: {
|
|
7361
|
-
default: "",
|
|
7362
|
-
icon: "justify-center px-0"
|
|
7363
|
-
}
|
|
7364
|
-
},
|
|
7365
|
-
defaultVariants: {
|
|
7366
|
-
variant: "md",
|
|
7367
|
-
mode: "default"
|
|
7368
|
-
}
|
|
7369
|
-
});
|
|
7370
|
-
const inputGroupClasses = "flex items-stretch **:data-[slot=input]:grow [&_[data-slot=input-addon]:has(+[data-slot=input])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=input])]:border-e-0 [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:border-e-0 [&_[data-slot=input]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=input]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=input-addon]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]+[data-slot=button]]:rounded-s-none [&_[data-slot=button]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=datefield]]:**:data-[slot=input]:rounded-s-none [&_[data-slot=datefield]:has(+[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=input-addon])]:rounded-e-none **:data-[slot=datefield]:grow [&_[data-slot=datefield]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=datefield]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=datefield]:has(~[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=datefield]~[data-slot=input-addon]]:rounded-s-none";
|
|
7371
|
-
const inputWrapperVariants = cva(`
|
|
7372
|
-
flex items-center gap-1.5
|
|
7373
|
-
has-focus-visible:ring-ring/30
|
|
7374
|
-
has-focus-visible:border-ring
|
|
7375
|
-
has-focus-visible:outline-none
|
|
7376
|
-
has-focus-visible:ring-[3px]
|
|
7377
|
-
|
|
7378
|
-
**:data-[slot=datefield]:grow
|
|
7379
|
-
**:data-[slot=input]:data-focus-within:ring-transparent
|
|
7380
|
-
**:data-[slot=input]:data-focus-within:ring-0
|
|
7381
|
-
**:data-[slot=input]:data-focus-within:border-0
|
|
7382
|
-
**:data-[slot=input]:flex
|
|
7383
|
-
**:data-[slot=input]:w-full
|
|
7384
|
-
**:data-[slot=input]:outline-none
|
|
7385
|
-
**:data-[slot=input]:transition-colors
|
|
7386
|
-
**:data-[slot=input]:text-foreground
|
|
7387
|
-
**:data-[slot=input]:placeholder:text-muted-foreground
|
|
7388
|
-
**:data-[slot=input]:border-0
|
|
7389
|
-
**:data-[slot=input]:bg-transparent
|
|
7390
|
-
**:data-[slot=input]:p-0
|
|
7391
|
-
**:data-[slot=input]:shadow-none
|
|
7392
|
-
**:data-[slot=input]:focus-visible:ring-0
|
|
7393
|
-
**:data-[slot=input]:h-auto
|
|
7394
|
-
**:data-[slot=input]:disabled:cursor-not-allowed
|
|
7395
|
-
**:data-[slot=input]:disabled:opacity-50
|
|
7396
|
-
|
|
7397
|
-
[&_svg]:text-muted-foreground
|
|
7398
|
-
[&_svg]:shrink-0
|
|
7399
|
-
|
|
7400
|
-
has-aria-invalid:border-destructive/60
|
|
7401
|
-
has-aria-invalid:ring-destructive/10
|
|
7402
|
-
dark:has-aria-invalid:border-destructive
|
|
7403
|
-
dark:has-aria-invalid:ring-destructive/20
|
|
7404
|
-
`, {
|
|
7405
|
-
variants: { variant: {
|
|
7406
|
-
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
7407
|
-
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
7408
|
-
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
7409
|
-
} },
|
|
7410
|
-
defaultVariants: { variant: "md" }
|
|
7411
|
-
});
|
|
7412
|
-
function Input({ className, type, variant, ...props }) {
|
|
7413
|
-
return /* @__PURE__ */ jsx("input", {
|
|
7414
|
-
"data-slot": "input",
|
|
7415
|
-
type,
|
|
7416
|
-
className: cn(inputVariants({ variant }), className),
|
|
7417
|
-
...props
|
|
7418
|
-
});
|
|
7419
|
-
}
|
|
7420
|
-
function InputAddon({ className, variant, mode, ...props }) {
|
|
7421
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7422
|
-
"data-slot": "input-addon",
|
|
7423
|
-
className: cn(inputAddonVariants({
|
|
7424
|
-
variant,
|
|
7425
|
-
mode
|
|
7426
|
-
}), className),
|
|
7427
|
-
...props
|
|
7428
|
-
});
|
|
7429
|
-
}
|
|
7430
|
-
function InputGroup({ className, ...props }) {
|
|
7431
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7432
|
-
"data-slot": "input-group",
|
|
7433
|
-
className: cn(inputGroupClasses, className),
|
|
7434
|
-
...props
|
|
7435
|
-
});
|
|
7436
|
-
}
|
|
7437
|
-
function InputWrapper({ className, variant, ...props }) {
|
|
7438
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7439
|
-
"data-slot": "input-wrapper",
|
|
7440
|
-
className: cn(inputVariants({ variant }), inputWrapperVariants({ variant }), className),
|
|
7441
|
-
...props
|
|
7442
|
-
});
|
|
7443
|
-
}
|
|
7444
|
-
//#endregion
|
|
7445
8005
|
//#region src/ui/input-otp.tsx
|
|
7446
8006
|
function InputOTP({ className, containerClassName, ...props }) {
|
|
7447
8007
|
return /* @__PURE__ */ jsx(OTPInput, {
|
|
@@ -7917,6 +8477,39 @@ function KbdGroup({ className, ...props }) {
|
|
|
7917
8477
|
});
|
|
7918
8478
|
}
|
|
7919
8479
|
//#endregion
|
|
8480
|
+
//#region src/ui/marker.tsx
|
|
8481
|
+
const markerVariants = cva("group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground", { variants: { variant: {
|
|
8482
|
+
default: "",
|
|
8483
|
+
separator: "before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
8484
|
+
border: "border-border border-b pb-2"
|
|
8485
|
+
} } });
|
|
8486
|
+
function Marker({ className, variant = "default", asChild = false, ...props }) {
|
|
8487
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
8488
|
+
"data-slot": "marker",
|
|
8489
|
+
"data-variant": variant,
|
|
8490
|
+
className: cn(markerVariants({
|
|
8491
|
+
variant,
|
|
8492
|
+
className
|
|
8493
|
+
})),
|
|
8494
|
+
...props
|
|
8495
|
+
});
|
|
8496
|
+
}
|
|
8497
|
+
function MarkerIcon({ className, ...props }) {
|
|
8498
|
+
return /* @__PURE__ */ jsx("span", {
|
|
8499
|
+
"data-slot": "marker-icon",
|
|
8500
|
+
"aria-hidden": "true",
|
|
8501
|
+
className: cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
8502
|
+
...props
|
|
8503
|
+
});
|
|
8504
|
+
}
|
|
8505
|
+
function MarkerContent({ className, ...props }) {
|
|
8506
|
+
return /* @__PURE__ */ jsx("span", {
|
|
8507
|
+
"data-slot": "marker-content",
|
|
8508
|
+
className: cn("wrap-break-word min-w-0 group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
8509
|
+
...props
|
|
8510
|
+
});
|
|
8511
|
+
}
|
|
8512
|
+
//#endregion
|
|
7920
8513
|
//#region src/ui/menubar.tsx
|
|
7921
8514
|
function MenubarMenu({ ...props }) {
|
|
7922
8515
|
return /* @__PURE__ */ jsx(Menubar$1.Menu, {
|
|
@@ -8039,6 +8632,137 @@ const MenubarShortcut = ({ className, ...props }) => {
|
|
|
8039
8632
|
});
|
|
8040
8633
|
};
|
|
8041
8634
|
//#endregion
|
|
8635
|
+
//#region src/ui/message-scroller.tsx
|
|
8636
|
+
function MessageScrollerProvider(props) {
|
|
8637
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Provider, { ...props });
|
|
8638
|
+
}
|
|
8639
|
+
function MessageScroller({ className, ...props }) {
|
|
8640
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Root, {
|
|
8641
|
+
"data-slot": "message-scroller",
|
|
8642
|
+
className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", className),
|
|
8643
|
+
...props
|
|
8644
|
+
});
|
|
8645
|
+
}
|
|
8646
|
+
function MessageScrollerViewport({ className, ...props }) {
|
|
8647
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Viewport, {
|
|
8648
|
+
"data-slot": "message-scroller-viewport",
|
|
8649
|
+
className: cn("scroll-fade-b scrollbar-thin scrollbar-gutter-stable data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent size-full min-h-0 min-w-0 overflow-y-auto overscroll-contain contain-content", className),
|
|
8650
|
+
...props
|
|
8651
|
+
});
|
|
8652
|
+
}
|
|
8653
|
+
function MessageScrollerContent({ className, ...props }) {
|
|
8654
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Content, {
|
|
8655
|
+
"data-slot": "message-scroller-content",
|
|
8656
|
+
className: cn("flex h-max min-h-full flex-col gap-8", className),
|
|
8657
|
+
...props
|
|
8658
|
+
});
|
|
8659
|
+
}
|
|
8660
|
+
function MessageScrollerItem({ className, scrollAnchor = false, ...props }) {
|
|
8661
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Item, {
|
|
8662
|
+
"data-slot": "message-scroller-item",
|
|
8663
|
+
scrollAnchor,
|
|
8664
|
+
className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", className),
|
|
8665
|
+
...props
|
|
8666
|
+
});
|
|
8667
|
+
}
|
|
8668
|
+
function MessageScrollerButton({ direction = "end", className, children, render, variant = "secondary", size = "icon", ...props }) {
|
|
8669
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Button, {
|
|
8670
|
+
"data-slot": "message-scroller-button",
|
|
8671
|
+
"data-direction": direction,
|
|
8672
|
+
"data-variant": variant,
|
|
8673
|
+
"data-size": size,
|
|
8674
|
+
direction,
|
|
8675
|
+
className: cn("absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:data-[active=false]:-translate-y-full data-[active=false]:pointer-events-none data-[direction=start]:top-4 data-[direction=end]:bottom-4 data-[active=true]:translate-y-0 data-[active=false]:scale-95 data-[active=true]:scale-100 data-[active=false]:opacity-0 data-[active=true]:opacity-100 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180", className),
|
|
8676
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
8677
|
+
variant,
|
|
8678
|
+
size
|
|
8679
|
+
}),
|
|
8680
|
+
...props,
|
|
8681
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ArrowDownIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
8682
|
+
className: "sr-only",
|
|
8683
|
+
children: direction === "end" ? "Scroll to end" : "Scroll to start"
|
|
8684
|
+
})] })
|
|
8685
|
+
});
|
|
8686
|
+
}
|
|
8687
|
+
//#endregion
|
|
8688
|
+
//#region src/ui/message.tsx
|
|
8689
|
+
function MessageGroup({ className, ...props }) {
|
|
8690
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8691
|
+
"data-slot": "message-group",
|
|
8692
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
8693
|
+
...props
|
|
8694
|
+
});
|
|
8695
|
+
}
|
|
8696
|
+
function Message({ className, align = "start", ...props }) {
|
|
8697
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8698
|
+
"data-slot": "message",
|
|
8699
|
+
"data-align": align,
|
|
8700
|
+
className: cn("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse", className),
|
|
8701
|
+
...props
|
|
8702
|
+
});
|
|
8703
|
+
}
|
|
8704
|
+
function MessageAvatar({ className, ...props }) {
|
|
8705
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8706
|
+
"data-slot": "message-avatar",
|
|
8707
|
+
className: cn("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8", className),
|
|
8708
|
+
...props
|
|
8709
|
+
});
|
|
8710
|
+
}
|
|
8711
|
+
function MessageContent({ className, ...props }) {
|
|
8712
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8713
|
+
"data-slot": "message-content",
|
|
8714
|
+
className: cn("wrap-break-word flex w-full min-w-0 flex-col gap-2.5 group-data-[align=end]/message:*:data-slot:self-end", className),
|
|
8715
|
+
...props
|
|
8716
|
+
});
|
|
8717
|
+
}
|
|
8718
|
+
function MessageHeader({ className, ...props }) {
|
|
8719
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8720
|
+
"data-slot": "message-header",
|
|
8721
|
+
className: cn("flex min-w-0 max-w-full items-center px-3 font-medium text-muted-foreground text-xs group-has-data-[variant=ghost]/message:px-0", className),
|
|
8722
|
+
...props
|
|
8723
|
+
});
|
|
8724
|
+
}
|
|
8725
|
+
function MessageFooter({ className, ...props }) {
|
|
8726
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8727
|
+
"data-slot": "message-footer",
|
|
8728
|
+
className: cn("flex min-w-0 max-w-full items-center px-3 font-medium text-muted-foreground text-xs group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end", className),
|
|
8729
|
+
...props
|
|
8730
|
+
});
|
|
8731
|
+
}
|
|
8732
|
+
//#endregion
|
|
8733
|
+
//#region src/ui/native-select.tsx
|
|
8734
|
+
function NativeSelect({ className, size = "default", ...props }) {
|
|
8735
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8736
|
+
className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className),
|
|
8737
|
+
"data-slot": "native-select-wrapper",
|
|
8738
|
+
"data-size": size,
|
|
8739
|
+
children: [/* @__PURE__ */ jsx("select", {
|
|
8740
|
+
"data-slot": "native-select",
|
|
8741
|
+
"data-size": size,
|
|
8742
|
+
className: "h-9 w-full min-w-0 select-none appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50",
|
|
8743
|
+
...props
|
|
8744
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
8745
|
+
className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 select-none text-muted-foreground",
|
|
8746
|
+
"aria-hidden": "true",
|
|
8747
|
+
"data-slot": "native-select-icon"
|
|
8748
|
+
})]
|
|
8749
|
+
});
|
|
8750
|
+
}
|
|
8751
|
+
function NativeSelectOption({ className, ...props }) {
|
|
8752
|
+
return /* @__PURE__ */ jsx("option", {
|
|
8753
|
+
"data-slot": "native-select-option",
|
|
8754
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
8755
|
+
...props
|
|
8756
|
+
});
|
|
8757
|
+
}
|
|
8758
|
+
function NativeSelectOptGroup({ className, ...props }) {
|
|
8759
|
+
return /* @__PURE__ */ jsx("optgroup", {
|
|
8760
|
+
"data-slot": "native-select-optgroup",
|
|
8761
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
8762
|
+
...props
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8765
|
+
//#endregion
|
|
8042
8766
|
//#region src/ui/navigation-menu.tsx
|
|
8043
8767
|
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
8044
8768
|
return /* @__PURE__ */ jsxs(NavigationMenu$1.Root, {
|
|
@@ -9755,29 +10479,6 @@ function TabsContent({ className, ...props }) {
|
|
|
9755
10479
|
});
|
|
9756
10480
|
}
|
|
9757
10481
|
//#endregion
|
|
9758
|
-
//#region src/ui/textarea.tsx
|
|
9759
|
-
const textareaVariants = cva(`
|
|
9760
|
-
w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow]
|
|
9761
|
-
text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
9762
|
-
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 read-only:opacity-70
|
|
9763
|
-
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
9764
|
-
in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10 dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20
|
|
9765
|
-
`, {
|
|
9766
|
-
variants: { variant: {
|
|
9767
|
-
sm: "rounded-md px-2.5 py-2.5 text-xs",
|
|
9768
|
-
md: "rounded-md px-3 py-3 text-sm",
|
|
9769
|
-
lg: "rounded-md px-4 py-4 text-sm"
|
|
9770
|
-
} },
|
|
9771
|
-
defaultVariants: { variant: "md" }
|
|
9772
|
-
});
|
|
9773
|
-
function Textarea({ className, variant, ...props }) {
|
|
9774
|
-
return /* @__PURE__ */ jsx("textarea", {
|
|
9775
|
-
"data-slot": "textarea",
|
|
9776
|
-
className: cn(textareaVariants({ variant }), className),
|
|
9777
|
-
...props
|
|
9778
|
-
});
|
|
9779
|
-
}
|
|
9780
|
-
//#endregion
|
|
9781
10482
|
//#region src/ui/toggle.tsx
|
|
9782
10483
|
const toggleVariants = cva("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
9783
10484
|
variants: {
|
|
@@ -9941,6 +10642,6 @@ function TreeDragLine({ className, ...props }) {
|
|
|
9941
10642
|
});
|
|
9942
10643
|
}
|
|
9943
10644
|
//#endregion
|
|
9944
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionMenu, AccordionMenuGroup, AccordionMenuIndicator, AccordionMenuItem, AccordionMenuLabel, AccordionMenuSeparator, AccordionMenuSub, AccordionMenuSubContent, AccordionMenuSubTrigger, AccordionTrigger, Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, BadgeDot, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonArrow, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountingNumber, DEFAULT_I18N, DEFAULT_OPERATORS, DataGrid, DataGridColumnFilter, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableDnd, DataGridTableDndRowHandle, DataGridTableDndRows, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, DateField, DateInput, DateSegment, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, DefaultFallback as ErrorFallback, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filters, FiltersContent, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GithubButton, GradientBackground, GridBackground, Heading, HoverBackground, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAddon, InputGroup, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWrapper, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kanban, KanbanBoard, KanbanColumn, KanbanColumnContent, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Kbd, KbdGroup, Label, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressCircle, ProgressRadial, RadioGroup, RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmeringText, ShowMore, 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, SliderThumb, SlidingNumber, Sortable, SortableItem, SortableItemHandle, Spinner, SpinnerDefault, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperNav, StepperPanel, StepperSeparator, StepperTitle, StepperTrigger, SvgText, Switch, SwitchIndicator, SwitchWrapper, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextReveal, Textarea, TimeField, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, TypingText, VideoText, WordRotate, avatarStatusVariants, badgeVariants, buttonGroupVariants, buttonVariants, codeVariants, createFilter, createFilterGroup, dateInputStyles, githubButtonVariants, inputAddonVariants, inputVariants, navigationMenuTriggerStyle, textareaVariants, toggleVariants, useDataGrid, useFormField, useSidebar, useStepItem, useStepper };
|
|
10645
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionMenu, AccordionMenuGroup, AccordionMenuIndicator, AccordionMenuItem, AccordionMenuLabel, AccordionMenuSeparator, AccordionMenuSub, AccordionMenuSubContent, AccordionMenuSubTrigger, AccordionTrigger, Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, BadgeDot, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonArrow, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountingNumber, DEFAULT_I18N, DEFAULT_OPERATORS, DataGrid, DataGridColumnFilter, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableDnd, DataGridTableDndRowHandle, DataGridTableDndRows, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, DateField, DateInput, DateSegment, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, DefaultFallback as ErrorFallback, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filters, FiltersContent, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GithubButton, GradientBackground, GridBackground, Heading, HoverBackground, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAddon, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroup$1 as InputGroupNew, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWrapper, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kanban, KanbanBoard, KanbanColumn, KanbanColumnContent, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Kbd, KbdGroup, Label, Marker, MarkerContent, MarkerIcon, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressCircle, ProgressRadial, RadioGroup, RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmeringText, ShowMore, 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, SliderThumb, SlidingNumber, Sortable, SortableItem, SortableItemHandle, Spinner, SpinnerDefault, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperNav, StepperPanel, StepperSeparator, StepperTitle, StepperTrigger, SvgText, Switch, SwitchIndicator, SwitchWrapper, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextReveal, Textarea, TimeField, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, TypingText, VideoText, WordRotate, avatarStatusVariants, badgeVariants, buttonGroupVariants, buttonVariants, codeVariants, createFilter, createFilterGroup, dateInputStyles, githubButtonVariants, inputAddonVariants, inputVariants, markerVariants, navigationMenuTriggerStyle, textareaVariants, toggleVariants, useComboboxAnchor, useDataGrid, useDirection, useFormField, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useSidebar, useStepItem, useStepper };
|
|
9945
10646
|
|
|
9946
10647
|
//# sourceMappingURL=index.js.map
|