@hai3/uikit 0.1.0-alpha.9 → 0.2.0-alpha.0
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/index.cjs +1167 -630
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +548 -42
- package/dist/index.d.ts +548 -42
- package/dist/index.js +1061 -548
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
- package/src/styles/applyTheme.ts +1 -1
- package/src/styles/globals.css +3 -0
package/dist/index.js
CHANGED
|
@@ -3,30 +3,27 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
6
|
+
import * as React26 from 'react';
|
|
7
|
+
import React26__default, { useMemo } from 'react';
|
|
8
8
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
9
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
|
-
import
|
|
11
|
-
export { ButtonSize, ButtonVariant, IconButtonSize } from '@hai3/uikit-contracts';
|
|
10
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
12
11
|
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
13
12
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
13
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
15
14
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
16
15
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
17
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
18
16
|
import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
|
|
19
17
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
20
18
|
import { useReactTable, getFilteredRowModel, getSortedRowModel, getPaginationRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
21
19
|
export { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
|
|
22
|
-
import { Loader2, X, ArrowLeft, ArrowRight, ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight, ArrowDown, ArrowUp, ChevronsUpDown, EyeOff, Settings2, XOctagon, AlertTriangle, Info, CheckCircle2, MoreHorizontal, GripVertical, User, Bot, Paperclip, Send, Plus, Search } from 'lucide-react';
|
|
20
|
+
import { Loader2, X, ArrowLeft, ArrowRight, ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight, ArrowDown, ArrowUp, ChevronsUpDown, EyeOff, Settings2, XOctagon, AlertTriangle, Info, CheckCircle2, MoreHorizontal, GripVertical, SearchIcon, User, Bot, Paperclip, Send, Plus, Search } from 'lucide-react';
|
|
23
21
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
24
22
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
25
23
|
import { trim, toUpper } from 'lodash';
|
|
26
24
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
27
25
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
28
|
-
import { Toaster as Toaster$1 } from 'sonner';
|
|
29
|
-
export { toast } from 'sonner';
|
|
26
|
+
import { Toaster as Toaster$1, toast } from 'sonner';
|
|
30
27
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
31
28
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
32
29
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
@@ -43,6 +40,9 @@ import useEmblaCarousel from 'embla-carousel-react';
|
|
|
43
40
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
44
41
|
export { Area, AreaChart, Bar, BarChart, Brush, CartesianGrid, Cell, Label as ChartLabel, Legend as ChartLegend, Tooltip as ChartTooltip, ComposedChart, Cross, Curve, Customized, Dot, ErrorBar, Funnel, FunnelChart, LabelList, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Polygon, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceArea, ReferenceDot, ReferenceLine, ResponsiveContainer, Sankey, Scatter, ScatterChart, Sector, Text, Treemap, XAxis, YAxis, ZAxis } from 'recharts';
|
|
45
42
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
43
|
+
import { Command as Command$1 } from 'cmdk';
|
|
44
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
45
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
46
46
|
import { format } from 'date-fns';
|
|
47
47
|
|
|
48
48
|
// src/base/alert.tsx
|
|
@@ -203,7 +203,7 @@ function EmptyContent({ className, ...props }) {
|
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
|
-
var Avatar =
|
|
206
|
+
var Avatar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
207
207
|
AvatarPrimitive.Root,
|
|
208
208
|
{
|
|
209
209
|
ref,
|
|
@@ -215,7 +215,7 @@ var Avatar = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
215
215
|
}
|
|
216
216
|
));
|
|
217
217
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
218
|
-
var AvatarImage =
|
|
218
|
+
var AvatarImage = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
219
219
|
AvatarPrimitive.Image,
|
|
220
220
|
{
|
|
221
221
|
ref,
|
|
@@ -224,7 +224,7 @@ var AvatarImage = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
224
224
|
}
|
|
225
225
|
));
|
|
226
226
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
227
|
-
var AvatarFallback =
|
|
227
|
+
var AvatarFallback = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
228
228
|
AvatarPrimitive.Fallback,
|
|
229
229
|
{
|
|
230
230
|
ref,
|
|
@@ -236,32 +236,88 @@ var AvatarFallback = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
236
236
|
}
|
|
237
237
|
));
|
|
238
238
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
239
|
+
|
|
240
|
+
// src/types.ts
|
|
241
|
+
var ButtonVariant = /* @__PURE__ */ ((ButtonVariant2) => {
|
|
242
|
+
ButtonVariant2["Default"] = "default";
|
|
243
|
+
ButtonVariant2["Destructive"] = "destructive";
|
|
244
|
+
ButtonVariant2["Outline"] = "outline";
|
|
245
|
+
ButtonVariant2["Secondary"] = "secondary";
|
|
246
|
+
ButtonVariant2["Ghost"] = "ghost";
|
|
247
|
+
ButtonVariant2["Link"] = "link";
|
|
248
|
+
return ButtonVariant2;
|
|
249
|
+
})(ButtonVariant || {});
|
|
250
|
+
var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
251
|
+
ButtonSize2["Default"] = "default";
|
|
252
|
+
ButtonSize2["Sm"] = "sm";
|
|
253
|
+
ButtonSize2["Lg"] = "lg";
|
|
254
|
+
ButtonSize2["Icon"] = "icon";
|
|
255
|
+
return ButtonSize2;
|
|
256
|
+
})(ButtonSize || {});
|
|
257
|
+
var IconButtonSize = /* @__PURE__ */ ((IconButtonSize2) => {
|
|
258
|
+
IconButtonSize2["Default"] = "default";
|
|
259
|
+
IconButtonSize2["Small"] = "sm";
|
|
260
|
+
IconButtonSize2["Large"] = "lg";
|
|
261
|
+
return IconButtonSize2;
|
|
262
|
+
})(IconButtonSize || {});
|
|
263
|
+
var UiKitComponent = /* @__PURE__ */ ((UiKitComponent2) => {
|
|
264
|
+
UiKitComponent2["Button"] = "Button";
|
|
265
|
+
UiKitComponent2["IconButton"] = "IconButton";
|
|
266
|
+
UiKitComponent2["DropdownButton"] = "DropdownButton";
|
|
267
|
+
UiKitComponent2["Switch"] = "Switch";
|
|
268
|
+
UiKitComponent2["Skeleton"] = "Skeleton";
|
|
269
|
+
UiKitComponent2["Spinner"] = "Spinner";
|
|
270
|
+
UiKitComponent2["Header"] = "Header";
|
|
271
|
+
UiKitComponent2["Sidebar"] = "Sidebar";
|
|
272
|
+
UiKitComponent2["SidebarContent"] = "SidebarContent";
|
|
273
|
+
UiKitComponent2["SidebarHeader"] = "SidebarHeader";
|
|
274
|
+
UiKitComponent2["SidebarMenu"] = "SidebarMenu";
|
|
275
|
+
UiKitComponent2["SidebarMenuItem"] = "SidebarMenuItem";
|
|
276
|
+
UiKitComponent2["SidebarMenuButton"] = "SidebarMenuButton";
|
|
277
|
+
UiKitComponent2["SidebarMenuIcon"] = "SidebarMenuIcon";
|
|
278
|
+
UiKitComponent2["SidebarMenuLabel"] = "SidebarMenuLabel";
|
|
279
|
+
UiKitComponent2["UserInfo"] = "UserInfo";
|
|
280
|
+
UiKitComponent2["DropdownMenu"] = "DropdownMenu";
|
|
281
|
+
UiKitComponent2["DropdownMenuTrigger"] = "DropdownMenuTrigger";
|
|
282
|
+
UiKitComponent2["DropdownMenuContent"] = "DropdownMenuContent";
|
|
283
|
+
UiKitComponent2["DropdownMenuItem"] = "DropdownMenuItem";
|
|
284
|
+
UiKitComponent2["DropdownMenuSub"] = "DropdownMenuSub";
|
|
285
|
+
UiKitComponent2["DropdownMenuSubTrigger"] = "DropdownMenuSubTrigger";
|
|
286
|
+
UiKitComponent2["DropdownMenuSubContent"] = "DropdownMenuSubContent";
|
|
287
|
+
return UiKitComponent2;
|
|
288
|
+
})(UiKitComponent || {});
|
|
289
|
+
var UiKitIcon = /* @__PURE__ */ ((UiKitIcon2) => {
|
|
290
|
+
UiKitIcon2["Close"] = "close";
|
|
291
|
+
UiKitIcon2["AppLogo"] = "app-logo";
|
|
292
|
+
UiKitIcon2["AppLogoText"] = "app-logo-text";
|
|
293
|
+
return UiKitIcon2;
|
|
294
|
+
})(UiKitIcon || {});
|
|
239
295
|
var buttonVariants = cva(
|
|
240
296
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
241
297
|
{
|
|
242
298
|
variants: {
|
|
243
299
|
variant: {
|
|
244
|
-
[
|
|
245
|
-
[
|
|
246
|
-
[
|
|
247
|
-
[
|
|
248
|
-
[
|
|
249
|
-
[
|
|
300
|
+
["default" /* Default */]: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
301
|
+
["destructive" /* Destructive */]: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
302
|
+
["outline" /* Outline */]: "border border-input bg-background shadow-sm hover:bg-accent data-[state=open]:bg-accent",
|
|
303
|
+
["secondary" /* Secondary */]: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
304
|
+
["ghost" /* Ghost */]: "hover:bg-accent data-[state=open]:bg-accent",
|
|
305
|
+
["link" /* Link */]: "text-primary underline-offset-4 hover:underline"
|
|
250
306
|
},
|
|
251
307
|
size: {
|
|
252
|
-
[
|
|
253
|
-
[
|
|
254
|
-
[
|
|
255
|
-
[
|
|
308
|
+
["default" /* Default */]: "h-9 px-4 py-2",
|
|
309
|
+
["sm" /* Sm */]: "h-8 rounded-md px-3 text-xs",
|
|
310
|
+
["lg" /* Lg */]: "h-10 rounded-md px-8",
|
|
311
|
+
["icon" /* Icon */]: "h-9 w-9"
|
|
256
312
|
}
|
|
257
313
|
},
|
|
258
314
|
defaultVariants: {
|
|
259
|
-
variant:
|
|
260
|
-
size:
|
|
315
|
+
variant: "default" /* Default */,
|
|
316
|
+
size: "default" /* Default */
|
|
261
317
|
}
|
|
262
318
|
}
|
|
263
319
|
);
|
|
264
|
-
var Button =
|
|
320
|
+
var Button = React26.forwardRef(
|
|
265
321
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
266
322
|
const Comp = asChild ? Slot : "button";
|
|
267
323
|
return /* @__PURE__ */ jsx(
|
|
@@ -275,6 +331,91 @@ var Button = React24.forwardRef(
|
|
|
275
331
|
}
|
|
276
332
|
);
|
|
277
333
|
Button.displayName = "Button";
|
|
334
|
+
function Separator({
|
|
335
|
+
className,
|
|
336
|
+
orientation = "horizontal",
|
|
337
|
+
decorative = true,
|
|
338
|
+
...props
|
|
339
|
+
}) {
|
|
340
|
+
return /* @__PURE__ */ jsx(
|
|
341
|
+
SeparatorPrimitive.Root,
|
|
342
|
+
{
|
|
343
|
+
"data-slot": "separator",
|
|
344
|
+
decorative,
|
|
345
|
+
orientation,
|
|
346
|
+
className: cn(
|
|
347
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
348
|
+
className
|
|
349
|
+
),
|
|
350
|
+
...props
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
var buttonGroupVariants = cva(
|
|
355
|
+
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
356
|
+
{
|
|
357
|
+
variants: {
|
|
358
|
+
orientation: {
|
|
359
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
360
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
defaultVariants: {
|
|
364
|
+
orientation: "horizontal"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
);
|
|
368
|
+
function ButtonGroup({
|
|
369
|
+
className,
|
|
370
|
+
orientation,
|
|
371
|
+
...props
|
|
372
|
+
}) {
|
|
373
|
+
return /* @__PURE__ */ jsx(
|
|
374
|
+
"div",
|
|
375
|
+
{
|
|
376
|
+
role: "group",
|
|
377
|
+
"data-slot": "button-group",
|
|
378
|
+
"data-orientation": orientation,
|
|
379
|
+
className: cn(buttonGroupVariants({ orientation }), className),
|
|
380
|
+
...props
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
function ButtonGroupText({
|
|
385
|
+
className,
|
|
386
|
+
asChild = false,
|
|
387
|
+
...props
|
|
388
|
+
}) {
|
|
389
|
+
const Comp = asChild ? Slot : "div";
|
|
390
|
+
return /* @__PURE__ */ jsx(
|
|
391
|
+
Comp,
|
|
392
|
+
{
|
|
393
|
+
className: cn(
|
|
394
|
+
"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
395
|
+
className
|
|
396
|
+
),
|
|
397
|
+
...props
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
function ButtonGroupSeparator({
|
|
402
|
+
className,
|
|
403
|
+
orientation = "vertical",
|
|
404
|
+
...props
|
|
405
|
+
}) {
|
|
406
|
+
return /* @__PURE__ */ jsx(
|
|
407
|
+
Separator,
|
|
408
|
+
{
|
|
409
|
+
"data-slot": "button-group-separator",
|
|
410
|
+
orientation,
|
|
411
|
+
className: cn(
|
|
412
|
+
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
413
|
+
className
|
|
414
|
+
),
|
|
415
|
+
...props
|
|
416
|
+
}
|
|
417
|
+
);
|
|
418
|
+
}
|
|
278
419
|
var badgeVariants = cva(
|
|
279
420
|
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
280
421
|
{
|
|
@@ -366,7 +507,7 @@ function Calendar({
|
|
|
366
507
|
classNames,
|
|
367
508
|
showOutsideDays = true,
|
|
368
509
|
captionLayout = "label",
|
|
369
|
-
buttonVariant =
|
|
510
|
+
buttonVariant = "ghost" /* Ghost */,
|
|
370
511
|
formatters,
|
|
371
512
|
components,
|
|
372
513
|
...props
|
|
@@ -508,16 +649,16 @@ function CalendarDayButton({
|
|
|
508
649
|
...props
|
|
509
650
|
}) {
|
|
510
651
|
const defaultClassNames = getDefaultClassNames();
|
|
511
|
-
const ref =
|
|
512
|
-
|
|
652
|
+
const ref = React26.useRef(null);
|
|
653
|
+
React26.useEffect(() => {
|
|
513
654
|
if (modifiers.focused) ref.current?.focus();
|
|
514
655
|
}, [modifiers.focused]);
|
|
515
656
|
return /* @__PURE__ */ jsx(
|
|
516
657
|
Button,
|
|
517
658
|
{
|
|
518
659
|
ref,
|
|
519
|
-
variant:
|
|
520
|
-
size:
|
|
660
|
+
variant: "ghost" /* Ghost */,
|
|
661
|
+
size: "icon" /* Icon */,
|
|
521
662
|
"data-day": day.date.toLocaleDateString(),
|
|
522
663
|
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
523
664
|
"data-range-start": modifiers.range_start,
|
|
@@ -729,7 +870,7 @@ function InputOTPSlot({
|
|
|
729
870
|
className,
|
|
730
871
|
...props
|
|
731
872
|
}) {
|
|
732
|
-
const inputOTPContext =
|
|
873
|
+
const inputOTPContext = React26.useContext(OTPInputContext);
|
|
733
874
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
734
875
|
return /* @__PURE__ */ jsxs(
|
|
735
876
|
"div",
|
|
@@ -751,7 +892,7 @@ function InputOTPSlot({
|
|
|
751
892
|
function InputOTPSeparator({ ...props }) {
|
|
752
893
|
return /* @__PURE__ */ jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(MinusIcon, {}) });
|
|
753
894
|
}
|
|
754
|
-
var Input =
|
|
895
|
+
var Input = React26.forwardRef(
|
|
755
896
|
({ className, type, ...props }, ref) => {
|
|
756
897
|
return /* @__PURE__ */ jsx(
|
|
757
898
|
"input",
|
|
@@ -784,26 +925,6 @@ function Label({
|
|
|
784
925
|
}
|
|
785
926
|
);
|
|
786
927
|
}
|
|
787
|
-
function Separator({
|
|
788
|
-
className,
|
|
789
|
-
orientation = "horizontal",
|
|
790
|
-
decorative = true,
|
|
791
|
-
...props
|
|
792
|
-
}) {
|
|
793
|
-
return /* @__PURE__ */ jsx(
|
|
794
|
-
SeparatorPrimitive.Root,
|
|
795
|
-
{
|
|
796
|
-
"data-slot": "separator",
|
|
797
|
-
decorative,
|
|
798
|
-
orientation,
|
|
799
|
-
className: cn(
|
|
800
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
801
|
-
className
|
|
802
|
-
),
|
|
803
|
-
...props
|
|
804
|
-
}
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
928
|
function FieldSet({ className, ...props }) {
|
|
808
929
|
return /* @__PURE__ */ jsx(
|
|
809
930
|
"fieldset",
|
|
@@ -1016,7 +1137,7 @@ function FieldError({
|
|
|
1016
1137
|
);
|
|
1017
1138
|
}
|
|
1018
1139
|
var Form = FormProvider;
|
|
1019
|
-
var FormFieldContext =
|
|
1140
|
+
var FormFieldContext = React26.createContext(
|
|
1020
1141
|
{}
|
|
1021
1142
|
);
|
|
1022
1143
|
var FormField = ({
|
|
@@ -1024,12 +1145,12 @@ var FormField = ({
|
|
|
1024
1145
|
}) => {
|
|
1025
1146
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
1026
1147
|
};
|
|
1027
|
-
var FormItemContext =
|
|
1148
|
+
var FormItemContext = React26.createContext(
|
|
1028
1149
|
{}
|
|
1029
1150
|
);
|
|
1030
1151
|
var useFormField = () => {
|
|
1031
|
-
const fieldContext =
|
|
1032
|
-
const itemContext =
|
|
1152
|
+
const fieldContext = React26.useContext(FormFieldContext);
|
|
1153
|
+
const itemContext = React26.useContext(FormItemContext);
|
|
1033
1154
|
const { getFieldState } = useFormContext();
|
|
1034
1155
|
const formState = useFormState({ name: fieldContext.name });
|
|
1035
1156
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1047,7 +1168,7 @@ var useFormField = () => {
|
|
|
1047
1168
|
};
|
|
1048
1169
|
};
|
|
1049
1170
|
function FormItem({ className, ...props }) {
|
|
1050
|
-
const id =
|
|
1171
|
+
const id = React26.useId();
|
|
1051
1172
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx(
|
|
1052
1173
|
"div",
|
|
1053
1174
|
{
|
|
@@ -1115,10 +1236,10 @@ function FormMessage({ className, ...props }) {
|
|
|
1115
1236
|
}
|
|
1116
1237
|
);
|
|
1117
1238
|
}
|
|
1118
|
-
var Textarea =
|
|
1239
|
+
var Textarea = React26.forwardRef(
|
|
1119
1240
|
({ className, autoResize = false, minHeight = 50, maxHeight = 350, size = "default", onChange, ...props }, ref) => {
|
|
1120
|
-
const internalRef =
|
|
1121
|
-
|
|
1241
|
+
const internalRef = React26.useRef(null);
|
|
1242
|
+
React26.useImperativeHandle(ref, () => internalRef.current);
|
|
1122
1243
|
const sizeClasses = {
|
|
1123
1244
|
sm: "min-h-11 h-11",
|
|
1124
1245
|
// 44px / 2.75rem - exact height
|
|
@@ -1135,7 +1256,7 @@ var Textarea = React24.forwardRef(
|
|
|
1135
1256
|
lg: "py-2"
|
|
1136
1257
|
// 8px top + 8px bottom (default)
|
|
1137
1258
|
};
|
|
1138
|
-
const handleResize =
|
|
1259
|
+
const handleResize = React26.useCallback(() => {
|
|
1139
1260
|
if (autoResize && size !== "sm" && internalRef.current) {
|
|
1140
1261
|
const textarea = internalRef.current;
|
|
1141
1262
|
textarea.style.height = "auto";
|
|
@@ -1143,10 +1264,10 @@ var Textarea = React24.forwardRef(
|
|
|
1143
1264
|
textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
|
|
1144
1265
|
}
|
|
1145
1266
|
}, [autoResize, size, minHeight, maxHeight]);
|
|
1146
|
-
|
|
1267
|
+
React26.useEffect(() => {
|
|
1147
1268
|
handleResize();
|
|
1148
1269
|
}, [handleResize, props.value]);
|
|
1149
|
-
const handleChange =
|
|
1270
|
+
const handleChange = React26.useCallback(
|
|
1150
1271
|
(e) => {
|
|
1151
1272
|
handleResize();
|
|
1152
1273
|
onChange?.(e);
|
|
@@ -1170,7 +1291,7 @@ var Textarea = React24.forwardRef(
|
|
|
1170
1291
|
}
|
|
1171
1292
|
);
|
|
1172
1293
|
Textarea.displayName = "Textarea";
|
|
1173
|
-
var Switch =
|
|
1294
|
+
var Switch = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1174
1295
|
SwitchPrimitives.Root,
|
|
1175
1296
|
{
|
|
1176
1297
|
className: cn(
|
|
@@ -1318,7 +1439,7 @@ var ChevronUpIcon = ({
|
|
|
1318
1439
|
var Select = SelectPrimitive.Root;
|
|
1319
1440
|
var SelectGroup = SelectPrimitive.Group;
|
|
1320
1441
|
var SelectValue = SelectPrimitive.Value;
|
|
1321
|
-
var SelectTrigger =
|
|
1442
|
+
var SelectTrigger = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1322
1443
|
SelectPrimitive.Trigger,
|
|
1323
1444
|
{
|
|
1324
1445
|
ref,
|
|
@@ -1335,7 +1456,7 @@ var SelectTrigger = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1335
1456
|
}
|
|
1336
1457
|
));
|
|
1337
1458
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1338
|
-
var SelectScrollUpButton =
|
|
1459
|
+
var SelectScrollUpButton = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1339
1460
|
SelectPrimitive.ScrollUpButton,
|
|
1340
1461
|
{
|
|
1341
1462
|
ref,
|
|
@@ -1348,7 +1469,7 @@ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) =>
|
|
|
1348
1469
|
}
|
|
1349
1470
|
));
|
|
1350
1471
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1351
|
-
var SelectScrollDownButton =
|
|
1472
|
+
var SelectScrollDownButton = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1352
1473
|
SelectPrimitive.ScrollDownButton,
|
|
1353
1474
|
{
|
|
1354
1475
|
ref,
|
|
@@ -1361,7 +1482,7 @@ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
1361
1482
|
}
|
|
1362
1483
|
));
|
|
1363
1484
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1364
|
-
var SelectContent =
|
|
1485
|
+
var SelectContent = React26.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
1365
1486
|
SelectPrimitive.Content,
|
|
1366
1487
|
{
|
|
1367
1488
|
ref,
|
|
@@ -1389,7 +1510,7 @@ var SelectContent = React24.forwardRef(({ className, children, position = "poppe
|
|
|
1389
1510
|
}
|
|
1390
1511
|
) }));
|
|
1391
1512
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1392
|
-
var SelectLabel =
|
|
1513
|
+
var SelectLabel = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1393
1514
|
SelectPrimitive.Label,
|
|
1394
1515
|
{
|
|
1395
1516
|
ref,
|
|
@@ -1398,7 +1519,7 @@ var SelectLabel = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1398
1519
|
}
|
|
1399
1520
|
));
|
|
1400
1521
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1401
|
-
var SelectItem =
|
|
1522
|
+
var SelectItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1402
1523
|
SelectPrimitive.Item,
|
|
1403
1524
|
{
|
|
1404
1525
|
ref,
|
|
@@ -1414,7 +1535,7 @@ var SelectItem = React24.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1414
1535
|
}
|
|
1415
1536
|
));
|
|
1416
1537
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1417
|
-
var SelectSeparator =
|
|
1538
|
+
var SelectSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1418
1539
|
SelectPrimitive.Separator,
|
|
1419
1540
|
{
|
|
1420
1541
|
ref,
|
|
@@ -1463,8 +1584,8 @@ function DataTablePagination({
|
|
|
1463
1584
|
/* @__PURE__ */ jsxs(
|
|
1464
1585
|
Button,
|
|
1465
1586
|
{
|
|
1466
|
-
variant:
|
|
1467
|
-
size:
|
|
1587
|
+
variant: "outline" /* Outline */,
|
|
1588
|
+
size: "icon" /* Icon */,
|
|
1468
1589
|
className: "hidden size-8 lg:flex",
|
|
1469
1590
|
onClick: () => table.setPageIndex(0),
|
|
1470
1591
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -1477,8 +1598,8 @@ function DataTablePagination({
|
|
|
1477
1598
|
/* @__PURE__ */ jsxs(
|
|
1478
1599
|
Button,
|
|
1479
1600
|
{
|
|
1480
|
-
variant:
|
|
1481
|
-
size:
|
|
1601
|
+
variant: "outline" /* Outline */,
|
|
1602
|
+
size: "icon" /* Icon */,
|
|
1482
1603
|
className: "size-8",
|
|
1483
1604
|
onClick: () => table.previousPage(),
|
|
1484
1605
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -1491,8 +1612,8 @@ function DataTablePagination({
|
|
|
1491
1612
|
/* @__PURE__ */ jsxs(
|
|
1492
1613
|
Button,
|
|
1493
1614
|
{
|
|
1494
|
-
variant:
|
|
1495
|
-
size:
|
|
1615
|
+
variant: "outline" /* Outline */,
|
|
1616
|
+
size: "icon" /* Icon */,
|
|
1496
1617
|
className: "size-8",
|
|
1497
1618
|
onClick: () => table.nextPage(),
|
|
1498
1619
|
disabled: !table.getCanNextPage(),
|
|
@@ -1505,8 +1626,8 @@ function DataTablePagination({
|
|
|
1505
1626
|
/* @__PURE__ */ jsxs(
|
|
1506
1627
|
Button,
|
|
1507
1628
|
{
|
|
1508
|
-
variant:
|
|
1509
|
-
size:
|
|
1629
|
+
variant: "outline" /* Outline */,
|
|
1630
|
+
size: "icon" /* Icon */,
|
|
1510
1631
|
className: "hidden size-8 lg:flex",
|
|
1511
1632
|
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
|
1512
1633
|
disabled: !table.getCanNextPage(),
|
|
@@ -1530,10 +1651,10 @@ function DataTable({
|
|
|
1530
1651
|
pageSize = 10,
|
|
1531
1652
|
noResultsMessage = "No results."
|
|
1532
1653
|
}) {
|
|
1533
|
-
const [sorting, setSorting] =
|
|
1534
|
-
const [columnFilters, setColumnFilters] =
|
|
1535
|
-
const [columnVisibility, setColumnVisibility] =
|
|
1536
|
-
const [rowSelection, setRowSelection] =
|
|
1654
|
+
const [sorting, setSorting] = React26.useState([]);
|
|
1655
|
+
const [columnFilters, setColumnFilters] = React26.useState([]);
|
|
1656
|
+
const [columnVisibility, setColumnVisibility] = React26.useState({});
|
|
1657
|
+
const [rowSelection, setRowSelection] = React26.useState({});
|
|
1537
1658
|
const internalTable = useReactTable({
|
|
1538
1659
|
data,
|
|
1539
1660
|
columns,
|
|
@@ -1603,12 +1724,12 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1603
1724
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1604
1725
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1605
1726
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1606
|
-
var DropdownMenuSubTrigger =
|
|
1727
|
+
var DropdownMenuSubTrigger = React26.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1607
1728
|
DropdownMenuPrimitive.SubTrigger,
|
|
1608
1729
|
{
|
|
1609
1730
|
ref,
|
|
1610
1731
|
className: cn(
|
|
1611
|
-
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1732
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1612
1733
|
inset && "pl-8",
|
|
1613
1734
|
className
|
|
1614
1735
|
),
|
|
@@ -1620,7 +1741,7 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
1620
1741
|
}
|
|
1621
1742
|
));
|
|
1622
1743
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1623
|
-
var DropdownMenuSubContent =
|
|
1744
|
+
var DropdownMenuSubContent = React26.forwardRef(({ className, container, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
|
|
1624
1745
|
DropdownMenuPrimitive.SubContent,
|
|
1625
1746
|
{
|
|
1626
1747
|
ref,
|
|
@@ -1632,7 +1753,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, container, ...prop
|
|
|
1632
1753
|
}
|
|
1633
1754
|
) }));
|
|
1634
1755
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1635
|
-
var DropdownMenuContent =
|
|
1756
|
+
var DropdownMenuContent = React26.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
|
|
1636
1757
|
DropdownMenuPrimitive.Content,
|
|
1637
1758
|
{
|
|
1638
1759
|
ref,
|
|
@@ -1646,12 +1767,12 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, conta
|
|
|
1646
1767
|
}
|
|
1647
1768
|
) }));
|
|
1648
1769
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1649
|
-
var DropdownMenuItem =
|
|
1770
|
+
var DropdownMenuItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1650
1771
|
DropdownMenuPrimitive.Item,
|
|
1651
1772
|
{
|
|
1652
1773
|
ref,
|
|
1653
1774
|
className: cn(
|
|
1654
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1775
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1655
1776
|
inset && "pl-8",
|
|
1656
1777
|
className
|
|
1657
1778
|
),
|
|
@@ -1659,12 +1780,12 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1659
1780
|
}
|
|
1660
1781
|
));
|
|
1661
1782
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1662
|
-
var DropdownMenuCheckboxItem =
|
|
1783
|
+
var DropdownMenuCheckboxItem = React26.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1663
1784
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1664
1785
|
{
|
|
1665
1786
|
ref,
|
|
1666
1787
|
className: cn(
|
|
1667
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1788
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1668
1789
|
className
|
|
1669
1790
|
),
|
|
1670
1791
|
checked,
|
|
@@ -1676,12 +1797,12 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
|
|
|
1676
1797
|
}
|
|
1677
1798
|
));
|
|
1678
1799
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1679
|
-
var DropdownMenuRadioItem =
|
|
1800
|
+
var DropdownMenuRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1680
1801
|
DropdownMenuPrimitive.RadioItem,
|
|
1681
1802
|
{
|
|
1682
1803
|
ref,
|
|
1683
1804
|
className: cn(
|
|
1684
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1805
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1685
1806
|
className
|
|
1686
1807
|
),
|
|
1687
1808
|
...props,
|
|
@@ -1692,7 +1813,7 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
|
|
|
1692
1813
|
}
|
|
1693
1814
|
));
|
|
1694
1815
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1695
|
-
var DropdownMenuLabel =
|
|
1816
|
+
var DropdownMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1696
1817
|
DropdownMenuPrimitive.Label,
|
|
1697
1818
|
{
|
|
1698
1819
|
ref,
|
|
@@ -1705,7 +1826,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1705
1826
|
}
|
|
1706
1827
|
));
|
|
1707
1828
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1708
|
-
var DropdownMenuSeparator =
|
|
1829
|
+
var DropdownMenuSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1709
1830
|
DropdownMenuPrimitive.Separator,
|
|
1710
1831
|
{
|
|
1711
1832
|
ref,
|
|
@@ -1739,8 +1860,8 @@ function DataTableColumnHeader({
|
|
|
1739
1860
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1740
1861
|
Button,
|
|
1741
1862
|
{
|
|
1742
|
-
variant:
|
|
1743
|
-
size:
|
|
1863
|
+
variant: "ghost" /* Ghost */,
|
|
1864
|
+
size: "sm" /* Sm */,
|
|
1744
1865
|
className: "data-[state=open]:bg-accent -ml-3 h-8",
|
|
1745
1866
|
children: [
|
|
1746
1867
|
/* @__PURE__ */ jsx("span", { children: title }),
|
|
@@ -1774,8 +1895,8 @@ function DataTableViewOptions({
|
|
|
1774
1895
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1775
1896
|
Button,
|
|
1776
1897
|
{
|
|
1777
|
-
variant:
|
|
1778
|
-
size:
|
|
1898
|
+
variant: "outline" /* Outline */,
|
|
1899
|
+
size: "sm" /* Sm */,
|
|
1779
1900
|
className: "ml-auto hidden h-8 lg:flex",
|
|
1780
1901
|
children: [
|
|
1781
1902
|
/* @__PURE__ */ jsx(Settings2, { className: "size-4" }),
|
|
@@ -1820,7 +1941,7 @@ function Skeleton({
|
|
|
1820
1941
|
}
|
|
1821
1942
|
);
|
|
1822
1943
|
}
|
|
1823
|
-
var Spinner =
|
|
1944
|
+
var Spinner = React26.forwardRef(
|
|
1824
1945
|
({ className, icon: Icon2 = Loader2, size = "size-4", ...props }, ref) => {
|
|
1825
1946
|
const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
|
|
1826
1947
|
const wrapperClasses = trim(className?.replace(/\btext-\S+/g, "") || "");
|
|
@@ -1836,7 +1957,7 @@ var Spinner = React24.forwardRef(
|
|
|
1836
1957
|
}
|
|
1837
1958
|
);
|
|
1838
1959
|
Spinner.displayName = "Spinner";
|
|
1839
|
-
var Slider =
|
|
1960
|
+
var Slider = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1840
1961
|
SliderPrimitive.Root,
|
|
1841
1962
|
{
|
|
1842
1963
|
ref,
|
|
@@ -1848,7 +1969,7 @@ var Slider = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1848
1969
|
}
|
|
1849
1970
|
));
|
|
1850
1971
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1851
|
-
var SliderTrack =
|
|
1972
|
+
var SliderTrack = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1852
1973
|
SliderPrimitive.Track,
|
|
1853
1974
|
{
|
|
1854
1975
|
ref,
|
|
@@ -1860,7 +1981,7 @@ var SliderTrack = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1860
1981
|
}
|
|
1861
1982
|
));
|
|
1862
1983
|
SliderTrack.displayName = SliderPrimitive.Track.displayName;
|
|
1863
|
-
var SliderRange =
|
|
1984
|
+
var SliderRange = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1864
1985
|
SliderPrimitive.Range,
|
|
1865
1986
|
{
|
|
1866
1987
|
ref,
|
|
@@ -1869,7 +1990,7 @@ var SliderRange = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1869
1990
|
}
|
|
1870
1991
|
));
|
|
1871
1992
|
SliderRange.displayName = SliderPrimitive.Range.displayName;
|
|
1872
|
-
var SliderThumb =
|
|
1993
|
+
var SliderThumb = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1873
1994
|
SliderPrimitive.Thumb,
|
|
1874
1995
|
{
|
|
1875
1996
|
ref,
|
|
@@ -1881,7 +2002,7 @@ var SliderThumb = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1881
2002
|
}
|
|
1882
2003
|
));
|
|
1883
2004
|
SliderThumb.displayName = SliderPrimitive.Thumb.displayName;
|
|
1884
|
-
var Progress =
|
|
2005
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1885
2006
|
ProgressPrimitive.Root,
|
|
1886
2007
|
{
|
|
1887
2008
|
ref,
|
|
@@ -1916,6 +2037,26 @@ var Toaster = ({ ...props }) => {
|
|
|
1916
2037
|
}
|
|
1917
2038
|
);
|
|
1918
2039
|
};
|
|
2040
|
+
function useToast(options = {}) {
|
|
2041
|
+
const { defaultDuration, defaultPosition } = options;
|
|
2042
|
+
return useMemo(() => {
|
|
2043
|
+
const mergeDefaults = (opts) => ({
|
|
2044
|
+
duration: defaultDuration,
|
|
2045
|
+
position: defaultPosition,
|
|
2046
|
+
...opts
|
|
2047
|
+
});
|
|
2048
|
+
return {
|
|
2049
|
+
toast: (message, opts) => toast(message, mergeDefaults(opts)),
|
|
2050
|
+
success: (message, opts) => toast.success(message, mergeDefaults(opts)),
|
|
2051
|
+
error: (message, opts) => toast.error(message, mergeDefaults(opts)),
|
|
2052
|
+
warning: (message, opts) => toast.warning(message, mergeDefaults(opts)),
|
|
2053
|
+
info: (message, opts) => toast.info(message, mergeDefaults(opts)),
|
|
2054
|
+
loading: (message, opts) => toast.loading(message, mergeDefaults(opts)),
|
|
2055
|
+
promise: (promiseOrFn, opts) => toast.promise(promiseOrFn, opts),
|
|
2056
|
+
dismiss: (toastId) => toast.dismiss(toastId)
|
|
2057
|
+
};
|
|
2058
|
+
}, [defaultDuration, defaultPosition]);
|
|
2059
|
+
}
|
|
1919
2060
|
var TooltipProvider = ({
|
|
1920
2061
|
delayDuration = 0,
|
|
1921
2062
|
...props
|
|
@@ -1931,9 +2072,9 @@ var Tooltip = ({
|
|
|
1931
2072
|
...props
|
|
1932
2073
|
}) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props }) });
|
|
1933
2074
|
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
|
1934
|
-
var TooltipTrigger =
|
|
2075
|
+
var TooltipTrigger = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ref, ...props }));
|
|
1935
2076
|
TooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;
|
|
1936
|
-
var TooltipContent =
|
|
2077
|
+
var TooltipContent = React26.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1937
2078
|
TooltipPrimitive.Content,
|
|
1938
2079
|
{
|
|
1939
2080
|
ref,
|
|
@@ -1948,7 +2089,7 @@ var TooltipContent = React24.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1948
2089
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1949
2090
|
var Popover = PopoverPrimitive.Root;
|
|
1950
2091
|
Popover.displayName = "Popover";
|
|
1951
|
-
var PopoverTrigger =
|
|
2092
|
+
var PopoverTrigger = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1952
2093
|
PopoverPrimitive.Trigger,
|
|
1953
2094
|
{
|
|
1954
2095
|
ref,
|
|
@@ -1957,7 +2098,7 @@ var PopoverTrigger = React24.forwardRef(({ ...props }, ref) => /* @__PURE__ */ j
|
|
|
1957
2098
|
}
|
|
1958
2099
|
));
|
|
1959
2100
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
1960
|
-
var PopoverContent =
|
|
2101
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1961
2102
|
PopoverPrimitive.Content,
|
|
1962
2103
|
{
|
|
1963
2104
|
ref,
|
|
@@ -1972,7 +2113,7 @@ var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffs
|
|
|
1972
2113
|
}
|
|
1973
2114
|
) }));
|
|
1974
2115
|
PopoverContent.displayName = "PopoverContent";
|
|
1975
|
-
var PopoverAnchor =
|
|
2116
|
+
var PopoverAnchor = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1976
2117
|
PopoverPrimitive.Anchor,
|
|
1977
2118
|
{
|
|
1978
2119
|
ref,
|
|
@@ -1983,7 +2124,7 @@ var PopoverAnchor = React24.forwardRef(({ ...props }, ref) => /* @__PURE__ */ js
|
|
|
1983
2124
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
1984
2125
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1985
2126
|
HoverCard.displayName = "HoverCard";
|
|
1986
|
-
var HoverCardTrigger =
|
|
2127
|
+
var HoverCardTrigger = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1987
2128
|
HoverCardPrimitive.Trigger,
|
|
1988
2129
|
{
|
|
1989
2130
|
ref,
|
|
@@ -1992,7 +2133,7 @@ var HoverCardTrigger = React24.forwardRef(({ ...props }, ref) => /* @__PURE__ */
|
|
|
1992
2133
|
}
|
|
1993
2134
|
));
|
|
1994
2135
|
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
1995
|
-
var HoverCardContent =
|
|
2136
|
+
var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx(
|
|
1996
2137
|
HoverCardPrimitive.Content,
|
|
1997
2138
|
{
|
|
1998
2139
|
ref,
|
|
@@ -2007,7 +2148,7 @@ var HoverCardContent = React24.forwardRef(({ className, align = "center", sideOf
|
|
|
2007
2148
|
}
|
|
2008
2149
|
) }));
|
|
2009
2150
|
HoverCardContent.displayName = "HoverCardContent";
|
|
2010
|
-
var Card =
|
|
2151
|
+
var Card = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2011
2152
|
"div",
|
|
2012
2153
|
{
|
|
2013
2154
|
ref,
|
|
@@ -2019,7 +2160,7 @@ var Card = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2019
2160
|
}
|
|
2020
2161
|
));
|
|
2021
2162
|
Card.displayName = "Card";
|
|
2022
|
-
var CardHeader =
|
|
2163
|
+
var CardHeader = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2023
2164
|
"div",
|
|
2024
2165
|
{
|
|
2025
2166
|
ref,
|
|
@@ -2028,7 +2169,7 @@ var CardHeader = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2028
2169
|
}
|
|
2029
2170
|
));
|
|
2030
2171
|
CardHeader.displayName = "CardHeader";
|
|
2031
|
-
var CardTitle =
|
|
2172
|
+
var CardTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2032
2173
|
"div",
|
|
2033
2174
|
{
|
|
2034
2175
|
ref,
|
|
@@ -2037,7 +2178,7 @@ var CardTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2037
2178
|
}
|
|
2038
2179
|
));
|
|
2039
2180
|
CardTitle.displayName = "CardTitle";
|
|
2040
|
-
var CardDescription =
|
|
2181
|
+
var CardDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2041
2182
|
"div",
|
|
2042
2183
|
{
|
|
2043
2184
|
ref,
|
|
@@ -2046,9 +2187,9 @@ var CardDescription = React24.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2046
2187
|
}
|
|
2047
2188
|
));
|
|
2048
2189
|
CardDescription.displayName = "CardDescription";
|
|
2049
|
-
var CardContent =
|
|
2190
|
+
var CardContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
2050
2191
|
CardContent.displayName = "CardContent";
|
|
2051
|
-
var CardFooter =
|
|
2192
|
+
var CardFooter = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2052
2193
|
"div",
|
|
2053
2194
|
{
|
|
2054
2195
|
ref,
|
|
@@ -2057,7 +2198,7 @@ var CardFooter = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2057
2198
|
}
|
|
2058
2199
|
));
|
|
2059
2200
|
CardFooter.displayName = "CardFooter";
|
|
2060
|
-
var Header =
|
|
2201
|
+
var Header = React26__default.forwardRef(
|
|
2061
2202
|
({ children, className }, ref) => {
|
|
2062
2203
|
return /* @__PURE__ */ jsx(
|
|
2063
2204
|
"header",
|
|
@@ -2073,7 +2214,7 @@ var Header = React24__default.forwardRef(
|
|
|
2073
2214
|
}
|
|
2074
2215
|
);
|
|
2075
2216
|
Header.displayName = "Header";
|
|
2076
|
-
var NavigationMenu =
|
|
2217
|
+
var NavigationMenu = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2077
2218
|
NavigationMenuPrimitive.Root,
|
|
2078
2219
|
{
|
|
2079
2220
|
ref,
|
|
@@ -2089,7 +2230,7 @@ var NavigationMenu = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
2089
2230
|
}
|
|
2090
2231
|
));
|
|
2091
2232
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2092
|
-
var NavigationMenuList =
|
|
2233
|
+
var NavigationMenuList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2093
2234
|
NavigationMenuPrimitive.List,
|
|
2094
2235
|
{
|
|
2095
2236
|
ref,
|
|
@@ -2105,7 +2246,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2105
2246
|
var navigationMenuTriggerStyle = cva(
|
|
2106
2247
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
2107
2248
|
);
|
|
2108
|
-
var NavigationMenuTrigger =
|
|
2249
|
+
var NavigationMenuTrigger = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2109
2250
|
NavigationMenuPrimitive.Trigger,
|
|
2110
2251
|
{
|
|
2111
2252
|
ref,
|
|
@@ -2125,7 +2266,7 @@ var NavigationMenuTrigger = React24.forwardRef(({ className, children, ...props
|
|
|
2125
2266
|
}
|
|
2126
2267
|
));
|
|
2127
2268
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2128
|
-
var NavigationMenuContent =
|
|
2269
|
+
var NavigationMenuContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2129
2270
|
NavigationMenuPrimitive.Content,
|
|
2130
2271
|
{
|
|
2131
2272
|
ref,
|
|
@@ -2138,7 +2279,7 @@ var NavigationMenuContent = React24.forwardRef(({ className, ...props }, ref) =>
|
|
|
2138
2279
|
));
|
|
2139
2280
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2140
2281
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2141
|
-
var NavigationMenuViewport =
|
|
2282
|
+
var NavigationMenuViewport = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
2142
2283
|
NavigationMenuPrimitive.Viewport,
|
|
2143
2284
|
{
|
|
2144
2285
|
className: cn(
|
|
@@ -2150,7 +2291,7 @@ var NavigationMenuViewport = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
2150
2291
|
}
|
|
2151
2292
|
) }));
|
|
2152
2293
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2153
|
-
var NavigationMenuIndicator =
|
|
2294
|
+
var NavigationMenuIndicator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2154
2295
|
NavigationMenuPrimitive.Indicator,
|
|
2155
2296
|
{
|
|
2156
2297
|
ref,
|
|
@@ -2534,7 +2675,7 @@ function PaginationItem({ ...props }) {
|
|
|
2534
2675
|
function PaginationLink({
|
|
2535
2676
|
className,
|
|
2536
2677
|
isActive,
|
|
2537
|
-
size =
|
|
2678
|
+
size = "icon" /* Icon */,
|
|
2538
2679
|
asChild,
|
|
2539
2680
|
...props
|
|
2540
2681
|
}) {
|
|
@@ -2547,7 +2688,7 @@ function PaginationLink({
|
|
|
2547
2688
|
"data-active": isActive,
|
|
2548
2689
|
className: cn(
|
|
2549
2690
|
buttonVariants({
|
|
2550
|
-
variant: isActive ?
|
|
2691
|
+
variant: isActive ? "outline" /* Outline */ : "ghost" /* Ghost */,
|
|
2551
2692
|
size
|
|
2552
2693
|
}),
|
|
2553
2694
|
className
|
|
@@ -2565,7 +2706,7 @@ function PaginationPrevious({
|
|
|
2565
2706
|
PaginationLink,
|
|
2566
2707
|
{
|
|
2567
2708
|
"aria-label": "Go to previous page",
|
|
2568
|
-
size:
|
|
2709
|
+
size: "default" /* Default */,
|
|
2569
2710
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2570
2711
|
...props,
|
|
2571
2712
|
children: [
|
|
@@ -2584,7 +2725,7 @@ function PaginationNext({
|
|
|
2584
2725
|
PaginationLink,
|
|
2585
2726
|
{
|
|
2586
2727
|
"aria-label": "Go to next page",
|
|
2587
|
-
size:
|
|
2728
|
+
size: "default" /* Default */,
|
|
2588
2729
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
2589
2730
|
...props,
|
|
2590
2731
|
children: [
|
|
@@ -2674,7 +2815,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
2674
2815
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2675
2816
|
var SheetClose = SheetPrimitive.Close;
|
|
2676
2817
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2677
|
-
var SheetOverlay =
|
|
2818
|
+
var SheetOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2678
2819
|
SheetPrimitive.Overlay,
|
|
2679
2820
|
{
|
|
2680
2821
|
className: cn(
|
|
@@ -2702,7 +2843,7 @@ var sheetVariants = cva(
|
|
|
2702
2843
|
}
|
|
2703
2844
|
}
|
|
2704
2845
|
);
|
|
2705
|
-
var SheetContent =
|
|
2846
|
+
var SheetContent = React26.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
2706
2847
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
2707
2848
|
/* @__PURE__ */ jsxs(
|
|
2708
2849
|
SheetPrimitive.Content,
|
|
@@ -2749,7 +2890,7 @@ var SheetFooter = ({
|
|
|
2749
2890
|
}
|
|
2750
2891
|
);
|
|
2751
2892
|
SheetFooter.displayName = "SheetFooter";
|
|
2752
|
-
var SheetTitle =
|
|
2893
|
+
var SheetTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2753
2894
|
SheetPrimitive.Title,
|
|
2754
2895
|
{
|
|
2755
2896
|
ref,
|
|
@@ -2758,7 +2899,7 @@ var SheetTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2758
2899
|
}
|
|
2759
2900
|
));
|
|
2760
2901
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2761
|
-
var SheetDescription =
|
|
2902
|
+
var SheetDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2762
2903
|
SheetPrimitive.Description,
|
|
2763
2904
|
{
|
|
2764
2905
|
ref,
|
|
@@ -2771,7 +2912,7 @@ var Dialog = SheetPrimitive.Root;
|
|
|
2771
2912
|
var DialogTrigger = SheetPrimitive.Trigger;
|
|
2772
2913
|
var DialogPortal = SheetPrimitive.Portal;
|
|
2773
2914
|
var DialogClose = SheetPrimitive.Close;
|
|
2774
|
-
var DialogOverlay =
|
|
2915
|
+
var DialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2775
2916
|
SheetPrimitive.Overlay,
|
|
2776
2917
|
{
|
|
2777
2918
|
ref,
|
|
@@ -2783,7 +2924,7 @@ var DialogOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2783
2924
|
}
|
|
2784
2925
|
));
|
|
2785
2926
|
DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
2786
|
-
var DialogContent =
|
|
2927
|
+
var DialogContent = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
2787
2928
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
2788
2929
|
/* @__PURE__ */ jsxs(
|
|
2789
2930
|
SheetPrimitive.Content,
|
|
@@ -2833,7 +2974,7 @@ var DialogFooter = ({
|
|
|
2833
2974
|
}
|
|
2834
2975
|
);
|
|
2835
2976
|
DialogFooter.displayName = "DialogFooter";
|
|
2836
|
-
var DialogTitle =
|
|
2977
|
+
var DialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2837
2978
|
SheetPrimitive.Title,
|
|
2838
2979
|
{
|
|
2839
2980
|
ref,
|
|
@@ -2845,7 +2986,7 @@ var DialogTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2845
2986
|
}
|
|
2846
2987
|
));
|
|
2847
2988
|
DialogTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2848
|
-
var DialogDescription =
|
|
2989
|
+
var DialogDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2849
2990
|
SheetPrimitive.Description,
|
|
2850
2991
|
{
|
|
2851
2992
|
ref,
|
|
@@ -2854,290 +2995,252 @@ var DialogDescription = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2854
2995
|
}
|
|
2855
2996
|
));
|
|
2856
2997
|
DialogDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2857
|
-
|
|
2998
|
+
var AlertDialog = ({
|
|
2858
2999
|
...props
|
|
2859
|
-
}) {
|
|
2860
|
-
|
|
2861
|
-
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
}
|
|
2872
|
-
function AlertDialogOverlay({
|
|
2873
|
-
className,
|
|
3000
|
+
}) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
3001
|
+
AlertDialog.displayName = "AlertDialog";
|
|
3002
|
+
var AlertDialogTrigger = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3003
|
+
AlertDialogPrimitive.Trigger,
|
|
3004
|
+
{
|
|
3005
|
+
ref,
|
|
3006
|
+
"data-slot": "alert-dialog-trigger",
|
|
3007
|
+
...props
|
|
3008
|
+
}
|
|
3009
|
+
));
|
|
3010
|
+
AlertDialogTrigger.displayName = AlertDialogPrimitive.Trigger.displayName;
|
|
3011
|
+
var AlertDialogPortal = ({
|
|
2874
3012
|
...props
|
|
2875
|
-
}) {
|
|
2876
|
-
|
|
2877
|
-
|
|
3013
|
+
}) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
3014
|
+
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
3015
|
+
var AlertDialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3016
|
+
AlertDialogPrimitive.Overlay,
|
|
3017
|
+
{
|
|
3018
|
+
ref,
|
|
3019
|
+
"data-slot": "alert-dialog-overlay",
|
|
3020
|
+
className: cn(
|
|
3021
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3022
|
+
className
|
|
3023
|
+
),
|
|
3024
|
+
...props
|
|
3025
|
+
}
|
|
3026
|
+
));
|
|
3027
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
3028
|
+
var AlertDialogContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
3029
|
+
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
3030
|
+
/* @__PURE__ */ jsx(
|
|
3031
|
+
AlertDialogPrimitive.Content,
|
|
2878
3032
|
{
|
|
2879
|
-
|
|
3033
|
+
ref,
|
|
3034
|
+
"data-slot": "alert-dialog-content",
|
|
2880
3035
|
className: cn(
|
|
2881
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed
|
|
3036
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out 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 top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
2882
3037
|
className
|
|
2883
3038
|
),
|
|
2884
3039
|
...props
|
|
2885
3040
|
}
|
|
2886
|
-
)
|
|
2887
|
-
}
|
|
2888
|
-
|
|
3041
|
+
)
|
|
3042
|
+
] }));
|
|
3043
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
3044
|
+
var AlertDialogHeader = ({
|
|
2889
3045
|
className,
|
|
2890
3046
|
...props
|
|
2891
|
-
})
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
),
|
|
2902
|
-
...props
|
|
2903
|
-
}
|
|
2904
|
-
)
|
|
2905
|
-
] });
|
|
2906
|
-
}
|
|
2907
|
-
function AlertDialogHeader({
|
|
3047
|
+
}) => /* @__PURE__ */ jsx(
|
|
3048
|
+
"div",
|
|
3049
|
+
{
|
|
3050
|
+
"data-slot": "alert-dialog-header",
|
|
3051
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
3052
|
+
...props
|
|
3053
|
+
}
|
|
3054
|
+
);
|
|
3055
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
3056
|
+
var AlertDialogFooter = ({
|
|
2908
3057
|
className,
|
|
2909
3058
|
...props
|
|
2910
|
-
})
|
|
2911
|
-
|
|
2912
|
-
|
|
3059
|
+
}) => /* @__PURE__ */ jsx(
|
|
3060
|
+
"div",
|
|
3061
|
+
{
|
|
3062
|
+
"data-slot": "alert-dialog-footer",
|
|
3063
|
+
className: cn(
|
|
3064
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
3065
|
+
className
|
|
3066
|
+
),
|
|
3067
|
+
...props
|
|
3068
|
+
}
|
|
3069
|
+
);
|
|
3070
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3071
|
+
var AlertDialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3072
|
+
AlertDialogPrimitive.Title,
|
|
3073
|
+
{
|
|
3074
|
+
ref,
|
|
3075
|
+
"data-slot": "alert-dialog-title",
|
|
3076
|
+
className: cn("text-lg font-semibold", className),
|
|
3077
|
+
...props
|
|
3078
|
+
}
|
|
3079
|
+
));
|
|
3080
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
3081
|
+
var AlertDialogDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3082
|
+
AlertDialogPrimitive.Description,
|
|
3083
|
+
{
|
|
3084
|
+
ref,
|
|
3085
|
+
"data-slot": "alert-dialog-description",
|
|
3086
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
3087
|
+
...props
|
|
3088
|
+
}
|
|
3089
|
+
));
|
|
3090
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
3091
|
+
var AlertDialogAction = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3092
|
+
AlertDialogPrimitive.Action,
|
|
3093
|
+
{
|
|
3094
|
+
ref,
|
|
3095
|
+
className: cn(buttonVariants(), className),
|
|
3096
|
+
...props
|
|
3097
|
+
}
|
|
3098
|
+
));
|
|
3099
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
3100
|
+
var AlertDialogCancel = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3101
|
+
AlertDialogPrimitive.Cancel,
|
|
3102
|
+
{
|
|
3103
|
+
ref,
|
|
3104
|
+
className: cn(buttonVariants({ variant: "outline" /* Outline */ }), className),
|
|
3105
|
+
...props
|
|
3106
|
+
}
|
|
3107
|
+
));
|
|
3108
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
3109
|
+
var Drawer = ({
|
|
3110
|
+
...props
|
|
3111
|
+
}) => /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
|
|
3112
|
+
Drawer.displayName = "Drawer";
|
|
3113
|
+
var DrawerTrigger = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Trigger, { ref, "data-slot": "drawer-trigger", ...props }));
|
|
3114
|
+
DrawerTrigger.displayName = Drawer$1.Trigger.displayName;
|
|
3115
|
+
var DrawerPortal = ({
|
|
3116
|
+
...props
|
|
3117
|
+
}) => /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3118
|
+
DrawerPortal.displayName = "DrawerPortal";
|
|
3119
|
+
var DrawerClose = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Close, { ref, "data-slot": "drawer-close", ...props }));
|
|
3120
|
+
DrawerClose.displayName = Drawer$1.Close.displayName;
|
|
3121
|
+
var DrawerOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3122
|
+
Drawer$1.Overlay,
|
|
3123
|
+
{
|
|
3124
|
+
ref,
|
|
3125
|
+
"data-slot": "drawer-overlay",
|
|
3126
|
+
className: cn(
|
|
3127
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3128
|
+
className
|
|
3129
|
+
),
|
|
3130
|
+
...props
|
|
3131
|
+
}
|
|
3132
|
+
));
|
|
3133
|
+
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
3134
|
+
var DrawerContent = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3135
|
+
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
3136
|
+
/* @__PURE__ */ jsxs(
|
|
3137
|
+
Drawer$1.Content,
|
|
2913
3138
|
{
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
3139
|
+
ref,
|
|
3140
|
+
"data-slot": "drawer-content",
|
|
3141
|
+
className: cn(
|
|
3142
|
+
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3143
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
3144
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
3145
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
3146
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
3147
|
+
className
|
|
3148
|
+
),
|
|
3149
|
+
...props,
|
|
3150
|
+
children: [
|
|
3151
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3152
|
+
children
|
|
3153
|
+
]
|
|
2917
3154
|
}
|
|
2918
|
-
)
|
|
2919
|
-
}
|
|
2920
|
-
|
|
3155
|
+
)
|
|
3156
|
+
] }));
|
|
3157
|
+
DrawerContent.displayName = Drawer$1.Content.displayName;
|
|
3158
|
+
var DrawerHeader = ({
|
|
3159
|
+
className,
|
|
3160
|
+
...props
|
|
3161
|
+
}) => /* @__PURE__ */ jsx(
|
|
3162
|
+
"div",
|
|
3163
|
+
{
|
|
3164
|
+
"data-slot": "drawer-header",
|
|
3165
|
+
className: cn("flex flex-col gap-1.5 p-4 text-center sm:text-left", className),
|
|
3166
|
+
...props
|
|
3167
|
+
}
|
|
3168
|
+
);
|
|
3169
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
3170
|
+
var DrawerFooter = ({
|
|
3171
|
+
className,
|
|
3172
|
+
...props
|
|
3173
|
+
}) => /* @__PURE__ */ jsx(
|
|
3174
|
+
"div",
|
|
3175
|
+
{
|
|
3176
|
+
"data-slot": "drawer-footer",
|
|
3177
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
3178
|
+
...props
|
|
3179
|
+
}
|
|
3180
|
+
);
|
|
3181
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
3182
|
+
var DrawerTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3183
|
+
Drawer$1.Title,
|
|
3184
|
+
{
|
|
3185
|
+
ref,
|
|
3186
|
+
"data-slot": "drawer-title",
|
|
3187
|
+
className: cn("text-lg font-semibold text-foreground", className),
|
|
3188
|
+
...props
|
|
3189
|
+
}
|
|
3190
|
+
));
|
|
3191
|
+
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
3192
|
+
var DrawerDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3193
|
+
Drawer$1.Description,
|
|
3194
|
+
{
|
|
3195
|
+
ref,
|
|
3196
|
+
"data-slot": "drawer-description",
|
|
3197
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
3198
|
+
...props
|
|
3199
|
+
}
|
|
3200
|
+
));
|
|
3201
|
+
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
3202
|
+
function ResizablePanelGroup({
|
|
2921
3203
|
className,
|
|
2922
3204
|
...props
|
|
2923
3205
|
}) {
|
|
2924
3206
|
return /* @__PURE__ */ jsx(
|
|
2925
|
-
|
|
3207
|
+
ResizablePrimitive.PanelGroup,
|
|
2926
3208
|
{
|
|
2927
|
-
"data-slot": "
|
|
3209
|
+
"data-slot": "resizable-panel-group",
|
|
2928
3210
|
className: cn(
|
|
2929
|
-
"flex
|
|
3211
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
2930
3212
|
className
|
|
2931
3213
|
),
|
|
2932
3214
|
...props
|
|
2933
3215
|
}
|
|
2934
3216
|
);
|
|
2935
3217
|
}
|
|
2936
|
-
function
|
|
2937
|
-
className,
|
|
3218
|
+
function ResizablePanel({
|
|
2938
3219
|
...props
|
|
2939
3220
|
}) {
|
|
2940
|
-
return /* @__PURE__ */ jsx(
|
|
2941
|
-
AlertDialogPrimitive.Title,
|
|
2942
|
-
{
|
|
2943
|
-
"data-slot": "alert-dialog-title",
|
|
2944
|
-
className: cn("text-lg font-semibold", className),
|
|
2945
|
-
...props
|
|
2946
|
-
}
|
|
2947
|
-
);
|
|
3221
|
+
return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
2948
3222
|
}
|
|
2949
|
-
function
|
|
3223
|
+
function ResizableHandle({
|
|
3224
|
+
withHandle,
|
|
2950
3225
|
className,
|
|
2951
3226
|
...props
|
|
2952
3227
|
}) {
|
|
2953
3228
|
return /* @__PURE__ */ jsx(
|
|
2954
|
-
|
|
3229
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
2955
3230
|
{
|
|
2956
|
-
"data-slot": "
|
|
2957
|
-
className: cn(
|
|
2958
|
-
|
|
3231
|
+
"data-slot": "resizable-handle",
|
|
3232
|
+
className: cn(
|
|
3233
|
+
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
3234
|
+
className
|
|
3235
|
+
),
|
|
3236
|
+
...props,
|
|
3237
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsx(GripVertical, { className: "size-2.5" }) })
|
|
2959
3238
|
}
|
|
2960
3239
|
);
|
|
2961
3240
|
}
|
|
2962
|
-
function
|
|
3241
|
+
function ScrollArea({
|
|
2963
3242
|
className,
|
|
2964
|
-
|
|
2965
|
-
}) {
|
|
2966
|
-
return /* @__PURE__ */ jsx(
|
|
2967
|
-
AlertDialogPrimitive.Action,
|
|
2968
|
-
{
|
|
2969
|
-
className: cn(buttonVariants(), className),
|
|
2970
|
-
...props
|
|
2971
|
-
}
|
|
2972
|
-
);
|
|
2973
|
-
}
|
|
2974
|
-
function AlertDialogCancel({
|
|
2975
|
-
className,
|
|
2976
|
-
...props
|
|
2977
|
-
}) {
|
|
2978
|
-
return /* @__PURE__ */ jsx(
|
|
2979
|
-
AlertDialogPrimitive.Cancel,
|
|
2980
|
-
{
|
|
2981
|
-
className: cn(buttonVariants({ variant: ButtonVariant.Outline }), className),
|
|
2982
|
-
...props
|
|
2983
|
-
}
|
|
2984
|
-
);
|
|
2985
|
-
}
|
|
2986
|
-
function Drawer({
|
|
2987
|
-
...props
|
|
2988
|
-
}) {
|
|
2989
|
-
return /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
|
|
2990
|
-
}
|
|
2991
|
-
function DrawerTrigger({
|
|
2992
|
-
...props
|
|
2993
|
-
}) {
|
|
2994
|
-
return /* @__PURE__ */ jsx(Drawer$1.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
2995
|
-
}
|
|
2996
|
-
function DrawerPortal({
|
|
2997
|
-
...props
|
|
2998
|
-
}) {
|
|
2999
|
-
return /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3000
|
-
}
|
|
3001
|
-
function DrawerClose({
|
|
3002
|
-
...props
|
|
3003
|
-
}) {
|
|
3004
|
-
return /* @__PURE__ */ jsx(Drawer$1.Close, { "data-slot": "drawer-close", ...props });
|
|
3005
|
-
}
|
|
3006
|
-
function DrawerOverlay({
|
|
3007
|
-
className,
|
|
3008
|
-
...props
|
|
3009
|
-
}) {
|
|
3010
|
-
return /* @__PURE__ */ jsx(
|
|
3011
|
-
Drawer$1.Overlay,
|
|
3012
|
-
{
|
|
3013
|
-
"data-slot": "drawer-overlay",
|
|
3014
|
-
className: cn(
|
|
3015
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3016
|
-
className
|
|
3017
|
-
),
|
|
3018
|
-
...props
|
|
3019
|
-
}
|
|
3020
|
-
);
|
|
3021
|
-
}
|
|
3022
|
-
function DrawerContent({
|
|
3023
|
-
className,
|
|
3024
|
-
children,
|
|
3025
|
-
...props
|
|
3026
|
-
}) {
|
|
3027
|
-
return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3028
|
-
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
3029
|
-
/* @__PURE__ */ jsxs(
|
|
3030
|
-
Drawer$1.Content,
|
|
3031
|
-
{
|
|
3032
|
-
"data-slot": "drawer-content",
|
|
3033
|
-
className: cn(
|
|
3034
|
-
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
3035
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
3036
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
3037
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
3038
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
3039
|
-
className
|
|
3040
|
-
),
|
|
3041
|
-
...props,
|
|
3042
|
-
children: [
|
|
3043
|
-
/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3044
|
-
children
|
|
3045
|
-
]
|
|
3046
|
-
}
|
|
3047
|
-
)
|
|
3048
|
-
] });
|
|
3049
|
-
}
|
|
3050
|
-
function DrawerHeader({ className, ...props }) {
|
|
3051
|
-
return /* @__PURE__ */ jsx(
|
|
3052
|
-
"div",
|
|
3053
|
-
{
|
|
3054
|
-
"data-slot": "drawer-header",
|
|
3055
|
-
className: cn(
|
|
3056
|
-
"flex flex-col gap-1.5 p-4 text-center sm:text-left",
|
|
3057
|
-
className
|
|
3058
|
-
),
|
|
3059
|
-
...props
|
|
3060
|
-
}
|
|
3061
|
-
);
|
|
3062
|
-
}
|
|
3063
|
-
function DrawerFooter({ className, ...props }) {
|
|
3064
|
-
return /* @__PURE__ */ jsx(
|
|
3065
|
-
"div",
|
|
3066
|
-
{
|
|
3067
|
-
"data-slot": "drawer-footer",
|
|
3068
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
3069
|
-
...props
|
|
3070
|
-
}
|
|
3071
|
-
);
|
|
3072
|
-
}
|
|
3073
|
-
function DrawerTitle({
|
|
3074
|
-
className,
|
|
3075
|
-
...props
|
|
3076
|
-
}) {
|
|
3077
|
-
return /* @__PURE__ */ jsx(
|
|
3078
|
-
Drawer$1.Title,
|
|
3079
|
-
{
|
|
3080
|
-
"data-slot": "drawer-title",
|
|
3081
|
-
className: cn("text-lg font-semibold text-foreground", className),
|
|
3082
|
-
...props
|
|
3083
|
-
}
|
|
3084
|
-
);
|
|
3085
|
-
}
|
|
3086
|
-
function DrawerDescription({
|
|
3087
|
-
className,
|
|
3088
|
-
...props
|
|
3089
|
-
}) {
|
|
3090
|
-
return /* @__PURE__ */ jsx(
|
|
3091
|
-
Drawer$1.Description,
|
|
3092
|
-
{
|
|
3093
|
-
"data-slot": "drawer-description",
|
|
3094
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
3095
|
-
...props
|
|
3096
|
-
}
|
|
3097
|
-
);
|
|
3098
|
-
}
|
|
3099
|
-
function ResizablePanelGroup({
|
|
3100
|
-
className,
|
|
3101
|
-
...props
|
|
3102
|
-
}) {
|
|
3103
|
-
return /* @__PURE__ */ jsx(
|
|
3104
|
-
ResizablePrimitive.PanelGroup,
|
|
3105
|
-
{
|
|
3106
|
-
"data-slot": "resizable-panel-group",
|
|
3107
|
-
className: cn(
|
|
3108
|
-
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
3109
|
-
className
|
|
3110
|
-
),
|
|
3111
|
-
...props
|
|
3112
|
-
}
|
|
3113
|
-
);
|
|
3114
|
-
}
|
|
3115
|
-
function ResizablePanel({
|
|
3116
|
-
...props
|
|
3117
|
-
}) {
|
|
3118
|
-
return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
3119
|
-
}
|
|
3120
|
-
function ResizableHandle({
|
|
3121
|
-
withHandle,
|
|
3122
|
-
className,
|
|
3123
|
-
...props
|
|
3124
|
-
}) {
|
|
3125
|
-
return /* @__PURE__ */ jsx(
|
|
3126
|
-
ResizablePrimitive.PanelResizeHandle,
|
|
3127
|
-
{
|
|
3128
|
-
"data-slot": "resizable-handle",
|
|
3129
|
-
className: cn(
|
|
3130
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
3131
|
-
className
|
|
3132
|
-
),
|
|
3133
|
-
...props,
|
|
3134
|
-
children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsx(GripVertical, { className: "size-2.5" }) })
|
|
3135
|
-
}
|
|
3136
|
-
);
|
|
3137
|
-
}
|
|
3138
|
-
function ScrollArea({
|
|
3139
|
-
className,
|
|
3140
|
-
children,
|
|
3243
|
+
children,
|
|
3141
3244
|
...props
|
|
3142
3245
|
}) {
|
|
3143
3246
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3358,7 +3461,7 @@ function ItemFooter({ className, ...props }) {
|
|
|
3358
3461
|
}
|
|
3359
3462
|
);
|
|
3360
3463
|
}
|
|
3361
|
-
var Accordion =
|
|
3464
|
+
var Accordion = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3362
3465
|
AccordionPrimitive.Root,
|
|
3363
3466
|
{
|
|
3364
3467
|
ref,
|
|
@@ -3367,7 +3470,7 @@ var Accordion = React24.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
|
3367
3470
|
}
|
|
3368
3471
|
));
|
|
3369
3472
|
Accordion.displayName = "Accordion";
|
|
3370
|
-
var AccordionItem =
|
|
3473
|
+
var AccordionItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3371
3474
|
AccordionPrimitive.Item,
|
|
3372
3475
|
{
|
|
3373
3476
|
ref,
|
|
@@ -3377,7 +3480,7 @@ var AccordionItem = React24.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3377
3480
|
}
|
|
3378
3481
|
));
|
|
3379
3482
|
AccordionItem.displayName = "AccordionItem";
|
|
3380
|
-
var AccordionTrigger =
|
|
3483
|
+
var AccordionTrigger = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
3381
3484
|
AccordionPrimitive.Trigger,
|
|
3382
3485
|
{
|
|
3383
3486
|
ref,
|
|
@@ -3394,7 +3497,7 @@ var AccordionTrigger = React24.forwardRef(({ className, children, ...props }, re
|
|
|
3394
3497
|
}
|
|
3395
3498
|
) }));
|
|
3396
3499
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
3397
|
-
var AccordionContent =
|
|
3500
|
+
var AccordionContent = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3398
3501
|
AccordionPrimitive.Content,
|
|
3399
3502
|
{
|
|
3400
3503
|
ref,
|
|
@@ -3405,15 +3508,15 @@ var AccordionContent = React24.forwardRef(({ className, children, ...props }, re
|
|
|
3405
3508
|
}
|
|
3406
3509
|
));
|
|
3407
3510
|
AccordionContent.displayName = "AccordionContent";
|
|
3408
|
-
var CarouselContext =
|
|
3511
|
+
var CarouselContext = React26.createContext(null);
|
|
3409
3512
|
function useCarousel() {
|
|
3410
|
-
const context =
|
|
3513
|
+
const context = React26.useContext(CarouselContext);
|
|
3411
3514
|
if (!context) {
|
|
3412
3515
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
3413
3516
|
}
|
|
3414
3517
|
return context;
|
|
3415
3518
|
}
|
|
3416
|
-
var Carousel =
|
|
3519
|
+
var Carousel = React26.forwardRef(
|
|
3417
3520
|
({
|
|
3418
3521
|
orientation = "horizontal",
|
|
3419
3522
|
opts,
|
|
@@ -3430,20 +3533,20 @@ var Carousel = React24.forwardRef(
|
|
|
3430
3533
|
},
|
|
3431
3534
|
plugins
|
|
3432
3535
|
);
|
|
3433
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
3434
|
-
const [canScrollNext, setCanScrollNext] =
|
|
3435
|
-
const onSelect =
|
|
3536
|
+
const [canScrollPrev, setCanScrollPrev] = React26.useState(false);
|
|
3537
|
+
const [canScrollNext, setCanScrollNext] = React26.useState(false);
|
|
3538
|
+
const onSelect = React26.useCallback((api2) => {
|
|
3436
3539
|
if (!api2) return;
|
|
3437
3540
|
setCanScrollPrev(api2.canScrollPrev());
|
|
3438
3541
|
setCanScrollNext(api2.canScrollNext());
|
|
3439
3542
|
}, []);
|
|
3440
|
-
const scrollPrev =
|
|
3543
|
+
const scrollPrev = React26.useCallback(() => {
|
|
3441
3544
|
api?.scrollPrev();
|
|
3442
3545
|
}, [api]);
|
|
3443
|
-
const scrollNext =
|
|
3546
|
+
const scrollNext = React26.useCallback(() => {
|
|
3444
3547
|
api?.scrollNext();
|
|
3445
3548
|
}, [api]);
|
|
3446
|
-
const handleKeyDown =
|
|
3549
|
+
const handleKeyDown = React26.useCallback(
|
|
3447
3550
|
(event) => {
|
|
3448
3551
|
if (event.key === "ArrowLeft") {
|
|
3449
3552
|
event.preventDefault();
|
|
@@ -3455,11 +3558,11 @@ var Carousel = React24.forwardRef(
|
|
|
3455
3558
|
},
|
|
3456
3559
|
[scrollPrev, scrollNext]
|
|
3457
3560
|
);
|
|
3458
|
-
|
|
3561
|
+
React26.useEffect(() => {
|
|
3459
3562
|
if (!api || !setApi) return;
|
|
3460
3563
|
setApi(api);
|
|
3461
3564
|
}, [api, setApi]);
|
|
3462
|
-
|
|
3565
|
+
React26.useEffect(() => {
|
|
3463
3566
|
if (!api) return;
|
|
3464
3567
|
onSelect(api);
|
|
3465
3568
|
api.on("reInit", onSelect);
|
|
@@ -3499,7 +3602,7 @@ var Carousel = React24.forwardRef(
|
|
|
3499
3602
|
}
|
|
3500
3603
|
);
|
|
3501
3604
|
Carousel.displayName = "Carousel";
|
|
3502
|
-
var CarouselContent =
|
|
3605
|
+
var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
3503
3606
|
const { carouselRef, orientation } = useCarousel();
|
|
3504
3607
|
return /* @__PURE__ */ jsx(
|
|
3505
3608
|
"div",
|
|
@@ -3523,7 +3626,7 @@ var CarouselContent = React24.forwardRef(({ className, ...props }, ref) => {
|
|
|
3523
3626
|
);
|
|
3524
3627
|
});
|
|
3525
3628
|
CarouselContent.displayName = "CarouselContent";
|
|
3526
|
-
var CarouselItem =
|
|
3629
|
+
var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
3527
3630
|
const { orientation } = useCarousel();
|
|
3528
3631
|
return /* @__PURE__ */ jsx(
|
|
3529
3632
|
"div",
|
|
@@ -3542,7 +3645,7 @@ var CarouselItem = React24.forwardRef(({ className, ...props }, ref) => {
|
|
|
3542
3645
|
);
|
|
3543
3646
|
});
|
|
3544
3647
|
CarouselItem.displayName = "CarouselItem";
|
|
3545
|
-
var CarouselPrevious =
|
|
3648
|
+
var CarouselPrevious = React26.forwardRef(({ className, variant = "outline" /* Outline */, size = "icon" /* Icon */, ...props }, ref) => {
|
|
3546
3649
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3547
3650
|
return /* @__PURE__ */ jsxs(
|
|
3548
3651
|
Button,
|
|
@@ -3567,7 +3670,7 @@ var CarouselPrevious = React24.forwardRef(({ className, variant = ButtonVariant.
|
|
|
3567
3670
|
);
|
|
3568
3671
|
});
|
|
3569
3672
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3570
|
-
var CarouselNext =
|
|
3673
|
+
var CarouselNext = React26.forwardRef(({ className, variant = "outline" /* Outline */, size = "icon" /* Icon */, ...props }, ref) => {
|
|
3571
3674
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3572
3675
|
return /* @__PURE__ */ jsxs(
|
|
3573
3676
|
Button,
|
|
@@ -3592,7 +3695,7 @@ var CarouselNext = React24.forwardRef(({ className, variant = ButtonVariant.Outl
|
|
|
3592
3695
|
);
|
|
3593
3696
|
});
|
|
3594
3697
|
CarouselNext.displayName = "CarouselNext";
|
|
3595
|
-
var Collapsible =
|
|
3698
|
+
var Collapsible = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3596
3699
|
CollapsiblePrimitive.Root,
|
|
3597
3700
|
{
|
|
3598
3701
|
ref,
|
|
@@ -3601,7 +3704,7 @@ var Collapsible = React24.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
|
3601
3704
|
}
|
|
3602
3705
|
));
|
|
3603
3706
|
Collapsible.displayName = "Collapsible";
|
|
3604
|
-
var CollapsibleTrigger2 =
|
|
3707
|
+
var CollapsibleTrigger2 = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3605
3708
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
3606
3709
|
{
|
|
3607
3710
|
ref,
|
|
@@ -3610,7 +3713,7 @@ var CollapsibleTrigger2 = React24.forwardRef(({ ...props }, ref) => /* @__PURE__
|
|
|
3610
3713
|
}
|
|
3611
3714
|
));
|
|
3612
3715
|
CollapsibleTrigger2.displayName = "CollapsibleTrigger";
|
|
3613
|
-
var CollapsibleContent2 =
|
|
3716
|
+
var CollapsibleContent2 = React26.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3614
3717
|
CollapsiblePrimitive.CollapsibleContent,
|
|
3615
3718
|
{
|
|
3616
3719
|
ref,
|
|
@@ -3745,7 +3848,7 @@ function ContextMenuSubTrigger({
|
|
|
3745
3848
|
"data-slot": "context-menu-sub-trigger",
|
|
3746
3849
|
"data-inset": inset,
|
|
3747
3850
|
className: cn(
|
|
3748
|
-
"focus:bg-accent focus:text-
|
|
3851
|
+
"focus:bg-accent focus:text-foreground data-[state=open]:bg-accent data-[state=open]:text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3749
3852
|
className
|
|
3750
3853
|
),
|
|
3751
3854
|
...props,
|
|
@@ -3801,7 +3904,7 @@ function ContextMenuItem({
|
|
|
3801
3904
|
"data-inset": inset,
|
|
3802
3905
|
"data-variant": variant,
|
|
3803
3906
|
className: cn(
|
|
3804
|
-
"focus:bg-accent focus:text-
|
|
3907
|
+
"focus:bg-accent focus:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3805
3908
|
className
|
|
3806
3909
|
),
|
|
3807
3910
|
...props
|
|
@@ -3819,7 +3922,7 @@ function ContextMenuCheckboxItem({
|
|
|
3819
3922
|
{
|
|
3820
3923
|
"data-slot": "context-menu-checkbox-item",
|
|
3821
3924
|
className: cn(
|
|
3822
|
-
"focus:bg-accent focus:text-
|
|
3925
|
+
"focus:bg-accent focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3823
3926
|
className
|
|
3824
3927
|
),
|
|
3825
3928
|
checked,
|
|
@@ -3841,7 +3944,7 @@ function ContextMenuRadioItem({
|
|
|
3841
3944
|
{
|
|
3842
3945
|
"data-slot": "context-menu-radio-item",
|
|
3843
3946
|
className: cn(
|
|
3844
|
-
"focus:bg-accent focus:text-
|
|
3947
|
+
"focus:bg-accent focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3845
3948
|
className
|
|
3846
3949
|
),
|
|
3847
3950
|
...props,
|
|
@@ -3899,182 +4002,592 @@ function ContextMenuShortcut({
|
|
|
3899
4002
|
}
|
|
3900
4003
|
);
|
|
3901
4004
|
}
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
4005
|
+
function Command({
|
|
4006
|
+
className,
|
|
4007
|
+
...props
|
|
4008
|
+
}) {
|
|
4009
|
+
return /* @__PURE__ */ jsx(
|
|
4010
|
+
Command$1,
|
|
4011
|
+
{
|
|
4012
|
+
"data-slot": "command",
|
|
4013
|
+
className: cn(
|
|
4014
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
4015
|
+
className
|
|
4016
|
+
),
|
|
4017
|
+
...props
|
|
4018
|
+
}
|
|
4019
|
+
);
|
|
4020
|
+
}
|
|
4021
|
+
function CommandDialog({
|
|
4022
|
+
title = "Command Palette",
|
|
4023
|
+
description = "Search for a command to run...",
|
|
4024
|
+
children,
|
|
4025
|
+
className,
|
|
4026
|
+
...props
|
|
4027
|
+
}) {
|
|
4028
|
+
return /* @__PURE__ */ jsxs(Dialog, { ...props, children: [
|
|
4029
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: "sr-only", children: [
|
|
4030
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: title }),
|
|
4031
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: description })
|
|
4032
|
+
] }),
|
|
4033
|
+
/* @__PURE__ */ jsx(DialogContent, { className: cn("overflow-hidden p-0 [&>button]:hidden", className), children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) })
|
|
4034
|
+
] });
|
|
4035
|
+
}
|
|
4036
|
+
function CommandInput({
|
|
4037
|
+
className,
|
|
4038
|
+
...props
|
|
4039
|
+
}) {
|
|
3923
4040
|
return /* @__PURE__ */ jsxs(
|
|
3924
|
-
|
|
4041
|
+
"div",
|
|
3925
4042
|
{
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
className: cn("min-w-40 justify-between rtl:flex-row-reverse", className),
|
|
3929
|
-
...props,
|
|
4043
|
+
"data-slot": "command-input-wrapper",
|
|
4044
|
+
className: "flex h-12 items-center gap-2 border-b px-3",
|
|
3930
4045
|
children: [
|
|
3931
|
-
/* @__PURE__ */ jsx(
|
|
3932
|
-
/* @__PURE__ */ jsx(
|
|
4046
|
+
/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
4047
|
+
/* @__PURE__ */ jsx(
|
|
4048
|
+
Command$1.Input,
|
|
4049
|
+
{
|
|
4050
|
+
"data-slot": "command-input",
|
|
4051
|
+
className: cn(
|
|
4052
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
4053
|
+
className
|
|
4054
|
+
),
|
|
4055
|
+
...props
|
|
4056
|
+
}
|
|
4057
|
+
)
|
|
3933
4058
|
]
|
|
3934
4059
|
}
|
|
3935
4060
|
);
|
|
3936
|
-
}
|
|
3937
|
-
|
|
3938
|
-
|
|
4061
|
+
}
|
|
4062
|
+
function CommandList({
|
|
4063
|
+
className,
|
|
4064
|
+
...props
|
|
4065
|
+
}) {
|
|
3939
4066
|
return /* @__PURE__ */ jsx(
|
|
3940
|
-
|
|
4067
|
+
Command$1.List,
|
|
3941
4068
|
{
|
|
3942
|
-
"data-slot": "
|
|
3943
|
-
role: "group",
|
|
4069
|
+
"data-slot": "command-list",
|
|
3944
4070
|
className: cn(
|
|
3945
|
-
"
|
|
3946
|
-
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
3947
|
-
// Variants based on alignment.
|
|
3948
|
-
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
3949
|
-
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
3950
|
-
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
3951
|
-
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
3952
|
-
// Focus state.
|
|
3953
|
-
"has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
|
|
3954
|
-
// Error state.
|
|
3955
|
-
"has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
|
|
4071
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
3956
4072
|
className
|
|
3957
4073
|
),
|
|
3958
4074
|
...props
|
|
3959
4075
|
}
|
|
3960
4076
|
);
|
|
3961
4077
|
}
|
|
3962
|
-
|
|
3963
|
-
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
3964
|
-
{
|
|
3965
|
-
variants: {
|
|
3966
|
-
align: {
|
|
3967
|
-
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
3968
|
-
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
|
|
3969
|
-
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
|
|
3970
|
-
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
|
|
3971
|
-
}
|
|
3972
|
-
},
|
|
3973
|
-
defaultVariants: {
|
|
3974
|
-
align: "inline-start"
|
|
3975
|
-
}
|
|
3976
|
-
}
|
|
3977
|
-
);
|
|
3978
|
-
function InputGroupAddon({
|
|
3979
|
-
className,
|
|
3980
|
-
align = "inline-start",
|
|
4078
|
+
function CommandEmpty({
|
|
3981
4079
|
...props
|
|
3982
4080
|
}) {
|
|
3983
4081
|
return /* @__PURE__ */ jsx(
|
|
3984
|
-
|
|
4082
|
+
Command$1.Empty,
|
|
3985
4083
|
{
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
"data-align": align,
|
|
3989
|
-
className: cn(inputGroupAddonVariants({ align }), className),
|
|
3990
|
-
onClick: (e) => {
|
|
3991
|
-
if (e.target.closest("button")) {
|
|
3992
|
-
return;
|
|
3993
|
-
}
|
|
3994
|
-
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
3995
|
-
},
|
|
4084
|
+
"data-slot": "command-empty",
|
|
4085
|
+
className: "py-6 text-center text-sm",
|
|
3996
4086
|
...props
|
|
3997
4087
|
}
|
|
3998
4088
|
);
|
|
3999
4089
|
}
|
|
4000
|
-
|
|
4001
|
-
"text-sm shadow-none flex gap-2 items-center",
|
|
4002
|
-
{
|
|
4003
|
-
variants: {
|
|
4004
|
-
size: {
|
|
4005
|
-
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
4006
|
-
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
4007
|
-
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
4008
|
-
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
4009
|
-
}
|
|
4010
|
-
},
|
|
4011
|
-
defaultVariants: {
|
|
4012
|
-
size: "xs"
|
|
4013
|
-
}
|
|
4014
|
-
}
|
|
4015
|
-
);
|
|
4016
|
-
function InputGroupButton({
|
|
4090
|
+
function CommandGroup({
|
|
4017
4091
|
className,
|
|
4018
|
-
type = "button",
|
|
4019
|
-
variant = ButtonVariant.Ghost,
|
|
4020
|
-
size = "xs",
|
|
4021
4092
|
...props
|
|
4022
4093
|
}) {
|
|
4023
4094
|
return /* @__PURE__ */ jsx(
|
|
4024
|
-
|
|
4095
|
+
Command$1.Group,
|
|
4025
4096
|
{
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4097
|
+
"data-slot": "command-group",
|
|
4098
|
+
className: cn(
|
|
4099
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
4100
|
+
className
|
|
4101
|
+
),
|
|
4030
4102
|
...props
|
|
4031
4103
|
}
|
|
4032
4104
|
);
|
|
4033
4105
|
}
|
|
4034
|
-
function
|
|
4106
|
+
function CommandSeparator({
|
|
4107
|
+
className,
|
|
4108
|
+
...props
|
|
4109
|
+
}) {
|
|
4035
4110
|
return /* @__PURE__ */ jsx(
|
|
4036
|
-
|
|
4111
|
+
Command$1.Separator,
|
|
4037
4112
|
{
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
className
|
|
4041
|
-
),
|
|
4113
|
+
"data-slot": "command-separator",
|
|
4114
|
+
className: cn("bg-border -mx-1 h-px", className),
|
|
4042
4115
|
...props
|
|
4043
4116
|
}
|
|
4044
4117
|
);
|
|
4045
4118
|
}
|
|
4046
|
-
function
|
|
4119
|
+
function CommandItem({
|
|
4047
4120
|
className,
|
|
4048
4121
|
...props
|
|
4049
4122
|
}) {
|
|
4050
4123
|
return /* @__PURE__ */ jsx(
|
|
4051
|
-
|
|
4124
|
+
Command$1.Item,
|
|
4052
4125
|
{
|
|
4053
|
-
"data-slot": "
|
|
4126
|
+
"data-slot": "command-item",
|
|
4054
4127
|
className: cn(
|
|
4055
|
-
"flex-
|
|
4128
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4056
4129
|
className
|
|
4057
4130
|
),
|
|
4058
4131
|
...props
|
|
4059
4132
|
}
|
|
4060
4133
|
);
|
|
4061
4134
|
}
|
|
4062
|
-
function
|
|
4135
|
+
function CommandShortcut({
|
|
4063
4136
|
className,
|
|
4064
4137
|
...props
|
|
4065
4138
|
}) {
|
|
4066
4139
|
return /* @__PURE__ */ jsx(
|
|
4067
|
-
|
|
4140
|
+
"span",
|
|
4068
4141
|
{
|
|
4069
|
-
"data-slot": "
|
|
4142
|
+
"data-slot": "command-shortcut",
|
|
4070
4143
|
className: cn(
|
|
4071
|
-
"
|
|
4144
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
4072
4145
|
className
|
|
4073
4146
|
),
|
|
4074
4147
|
...props
|
|
4075
4148
|
}
|
|
4076
4149
|
);
|
|
4077
4150
|
}
|
|
4151
|
+
var toggleVariants = cva(
|
|
4152
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4153
|
+
{
|
|
4154
|
+
variants: {
|
|
4155
|
+
variant: {
|
|
4156
|
+
default: "bg-transparent",
|
|
4157
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
4158
|
+
},
|
|
4159
|
+
size: {
|
|
4160
|
+
default: "h-9 px-2 min-w-9",
|
|
4161
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
4162
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
4163
|
+
}
|
|
4164
|
+
},
|
|
4165
|
+
defaultVariants: {
|
|
4166
|
+
variant: "default",
|
|
4167
|
+
size: "default"
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
);
|
|
4171
|
+
function Toggle({
|
|
4172
|
+
className,
|
|
4173
|
+
variant,
|
|
4174
|
+
size,
|
|
4175
|
+
...props
|
|
4176
|
+
}) {
|
|
4177
|
+
return /* @__PURE__ */ jsx(
|
|
4178
|
+
TogglePrimitive.Root,
|
|
4179
|
+
{
|
|
4180
|
+
"data-slot": "toggle",
|
|
4181
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
4182
|
+
...props
|
|
4183
|
+
}
|
|
4184
|
+
);
|
|
4185
|
+
}
|
|
4186
|
+
var ToggleGroupContext = React26.createContext({
|
|
4187
|
+
size: "default",
|
|
4188
|
+
variant: "default",
|
|
4189
|
+
spacing: 0
|
|
4190
|
+
});
|
|
4191
|
+
function ToggleGroup({
|
|
4192
|
+
className,
|
|
4193
|
+
variant,
|
|
4194
|
+
size,
|
|
4195
|
+
spacing = 0,
|
|
4196
|
+
children,
|
|
4197
|
+
...props
|
|
4198
|
+
}) {
|
|
4199
|
+
return /* @__PURE__ */ jsx(
|
|
4200
|
+
ToggleGroupPrimitive.Root,
|
|
4201
|
+
{
|
|
4202
|
+
"data-slot": "toggle-group",
|
|
4203
|
+
"data-variant": variant,
|
|
4204
|
+
"data-size": size,
|
|
4205
|
+
"data-spacing": spacing,
|
|
4206
|
+
className: cn(
|
|
4207
|
+
"group/toggle-group flex w-fit items-center rounded-md",
|
|
4208
|
+
spacing > 0 && "gap-1",
|
|
4209
|
+
spacing === 0 && variant === "outline" && "shadow-xs",
|
|
4210
|
+
className
|
|
4211
|
+
),
|
|
4212
|
+
...props,
|
|
4213
|
+
children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
4214
|
+
}
|
|
4215
|
+
);
|
|
4216
|
+
}
|
|
4217
|
+
function ToggleGroupItem({
|
|
4218
|
+
className,
|
|
4219
|
+
children,
|
|
4220
|
+
variant,
|
|
4221
|
+
size,
|
|
4222
|
+
...props
|
|
4223
|
+
}) {
|
|
4224
|
+
const context = React26.useContext(ToggleGroupContext);
|
|
4225
|
+
const resolvedSpacing = context.spacing ?? 0;
|
|
4226
|
+
return /* @__PURE__ */ jsx(
|
|
4227
|
+
ToggleGroupPrimitive.Item,
|
|
4228
|
+
{
|
|
4229
|
+
"data-slot": "toggle-group-item",
|
|
4230
|
+
"data-variant": context.variant || variant,
|
|
4231
|
+
"data-size": context.size || size,
|
|
4232
|
+
"data-spacing": resolvedSpacing,
|
|
4233
|
+
className: cn(
|
|
4234
|
+
toggleVariants({
|
|
4235
|
+
variant: context.variant || variant,
|
|
4236
|
+
size: context.size || size
|
|
4237
|
+
}),
|
|
4238
|
+
"min-w-0 shrink-0 focus:z-10 focus-visible:z-10",
|
|
4239
|
+
resolvedSpacing === 0 && "rounded-none shadow-none first:rounded-l-md last:rounded-r-md",
|
|
4240
|
+
resolvedSpacing === 0 && (context.variant || variant) === "outline" && "border-l-0 first:border-l",
|
|
4241
|
+
className
|
|
4242
|
+
),
|
|
4243
|
+
...props,
|
|
4244
|
+
children
|
|
4245
|
+
}
|
|
4246
|
+
);
|
|
4247
|
+
}
|
|
4248
|
+
function Kbd({ className, ...props }) {
|
|
4249
|
+
return /* @__PURE__ */ jsx(
|
|
4250
|
+
"kbd",
|
|
4251
|
+
{
|
|
4252
|
+
"data-slot": "kbd",
|
|
4253
|
+
className: cn(
|
|
4254
|
+
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
|
|
4255
|
+
"[&_svg:not([class*='size-'])]:size-3",
|
|
4256
|
+
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
|
|
4257
|
+
className
|
|
4258
|
+
),
|
|
4259
|
+
...props
|
|
4260
|
+
}
|
|
4261
|
+
);
|
|
4262
|
+
}
|
|
4263
|
+
function KbdGroup({ className, ...props }) {
|
|
4264
|
+
return /* @__PURE__ */ jsx(
|
|
4265
|
+
"span",
|
|
4266
|
+
{
|
|
4267
|
+
"data-slot": "kbd-group",
|
|
4268
|
+
className: cn("inline-flex items-center gap-1", className),
|
|
4269
|
+
...props
|
|
4270
|
+
}
|
|
4271
|
+
);
|
|
4272
|
+
}
|
|
4273
|
+
function TypographyH1({
|
|
4274
|
+
className,
|
|
4275
|
+
...props
|
|
4276
|
+
}) {
|
|
4277
|
+
return /* @__PURE__ */ jsx(
|
|
4278
|
+
"h1",
|
|
4279
|
+
{
|
|
4280
|
+
"data-slot": "typography-h1",
|
|
4281
|
+
className: cn(
|
|
4282
|
+
"scroll-m-20 text-4xl font-extrabold tracking-tight",
|
|
4283
|
+
className
|
|
4284
|
+
),
|
|
4285
|
+
...props
|
|
4286
|
+
}
|
|
4287
|
+
);
|
|
4288
|
+
}
|
|
4289
|
+
function TypographyH2({
|
|
4290
|
+
className,
|
|
4291
|
+
...props
|
|
4292
|
+
}) {
|
|
4293
|
+
return /* @__PURE__ */ jsx(
|
|
4294
|
+
"h2",
|
|
4295
|
+
{
|
|
4296
|
+
"data-slot": "typography-h2",
|
|
4297
|
+
className: cn(
|
|
4298
|
+
"scroll-m-20 text-3xl font-semibold tracking-tight",
|
|
4299
|
+
className
|
|
4300
|
+
),
|
|
4301
|
+
...props
|
|
4302
|
+
}
|
|
4303
|
+
);
|
|
4304
|
+
}
|
|
4305
|
+
function TypographyH3({
|
|
4306
|
+
className,
|
|
4307
|
+
...props
|
|
4308
|
+
}) {
|
|
4309
|
+
return /* @__PURE__ */ jsx(
|
|
4310
|
+
"h3",
|
|
4311
|
+
{
|
|
4312
|
+
"data-slot": "typography-h3",
|
|
4313
|
+
className: cn(
|
|
4314
|
+
"scroll-m-20 text-2xl font-semibold tracking-tight",
|
|
4315
|
+
className
|
|
4316
|
+
),
|
|
4317
|
+
...props
|
|
4318
|
+
}
|
|
4319
|
+
);
|
|
4320
|
+
}
|
|
4321
|
+
function TypographyH4({
|
|
4322
|
+
className,
|
|
4323
|
+
...props
|
|
4324
|
+
}) {
|
|
4325
|
+
return /* @__PURE__ */ jsx(
|
|
4326
|
+
"h4",
|
|
4327
|
+
{
|
|
4328
|
+
"data-slot": "typography-h4",
|
|
4329
|
+
className: cn(
|
|
4330
|
+
"scroll-m-20 text-xl font-semibold tracking-tight",
|
|
4331
|
+
className
|
|
4332
|
+
),
|
|
4333
|
+
...props
|
|
4334
|
+
}
|
|
4335
|
+
);
|
|
4336
|
+
}
|
|
4337
|
+
function TypographyP({
|
|
4338
|
+
className,
|
|
4339
|
+
...props
|
|
4340
|
+
}) {
|
|
4341
|
+
return /* @__PURE__ */ jsx(
|
|
4342
|
+
"p",
|
|
4343
|
+
{
|
|
4344
|
+
"data-slot": "typography-p",
|
|
4345
|
+
className: cn("leading-7 [&:not(:first-child)]:mt-6", className),
|
|
4346
|
+
...props
|
|
4347
|
+
}
|
|
4348
|
+
);
|
|
4349
|
+
}
|
|
4350
|
+
function TypographyBlockquote({
|
|
4351
|
+
className,
|
|
4352
|
+
...props
|
|
4353
|
+
}) {
|
|
4354
|
+
return /* @__PURE__ */ jsx(
|
|
4355
|
+
"blockquote",
|
|
4356
|
+
{
|
|
4357
|
+
"data-slot": "typography-blockquote",
|
|
4358
|
+
className: cn("mt-6 border-l-2 pl-6 italic", className),
|
|
4359
|
+
...props
|
|
4360
|
+
}
|
|
4361
|
+
);
|
|
4362
|
+
}
|
|
4363
|
+
function TypographyList({
|
|
4364
|
+
className,
|
|
4365
|
+
...props
|
|
4366
|
+
}) {
|
|
4367
|
+
return /* @__PURE__ */ jsx(
|
|
4368
|
+
"ul",
|
|
4369
|
+
{
|
|
4370
|
+
"data-slot": "typography-list",
|
|
4371
|
+
className: cn("my-6 ml-6 list-disc [&>li]:mt-2", className),
|
|
4372
|
+
...props
|
|
4373
|
+
}
|
|
4374
|
+
);
|
|
4375
|
+
}
|
|
4376
|
+
function TypographyInlineCode({
|
|
4377
|
+
className,
|
|
4378
|
+
...props
|
|
4379
|
+
}) {
|
|
4380
|
+
return /* @__PURE__ */ jsx(
|
|
4381
|
+
"code",
|
|
4382
|
+
{
|
|
4383
|
+
"data-slot": "typography-inline-code",
|
|
4384
|
+
className: cn(
|
|
4385
|
+
"bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",
|
|
4386
|
+
className
|
|
4387
|
+
),
|
|
4388
|
+
...props
|
|
4389
|
+
}
|
|
4390
|
+
);
|
|
4391
|
+
}
|
|
4392
|
+
function TypographyLarge({
|
|
4393
|
+
className,
|
|
4394
|
+
...props
|
|
4395
|
+
}) {
|
|
4396
|
+
return /* @__PURE__ */ jsx(
|
|
4397
|
+
"div",
|
|
4398
|
+
{
|
|
4399
|
+
"data-slot": "typography-large",
|
|
4400
|
+
className: cn("text-lg font-semibold", className),
|
|
4401
|
+
...props
|
|
4402
|
+
}
|
|
4403
|
+
);
|
|
4404
|
+
}
|
|
4405
|
+
function TypographySmall({
|
|
4406
|
+
className,
|
|
4407
|
+
...props
|
|
4408
|
+
}) {
|
|
4409
|
+
return /* @__PURE__ */ jsx(
|
|
4410
|
+
"small",
|
|
4411
|
+
{
|
|
4412
|
+
"data-slot": "typography-small",
|
|
4413
|
+
className: cn("text-sm leading-none font-medium", className),
|
|
4414
|
+
...props
|
|
4415
|
+
}
|
|
4416
|
+
);
|
|
4417
|
+
}
|
|
4418
|
+
function TypographyMuted({
|
|
4419
|
+
className,
|
|
4420
|
+
...props
|
|
4421
|
+
}) {
|
|
4422
|
+
return /* @__PURE__ */ jsx(
|
|
4423
|
+
"p",
|
|
4424
|
+
{
|
|
4425
|
+
"data-slot": "typography-muted",
|
|
4426
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
4427
|
+
...props
|
|
4428
|
+
}
|
|
4429
|
+
);
|
|
4430
|
+
}
|
|
4431
|
+
var IconButton = React26__default.forwardRef(
|
|
4432
|
+
({ variant = "ghost" /* Ghost */, size = "default" /* Default */, className, ...props }, ref) => {
|
|
4433
|
+
const sizeStyles = {
|
|
4434
|
+
["sm" /* Small */]: "h-8 w-8",
|
|
4435
|
+
["default" /* Default */]: "h-9 w-9",
|
|
4436
|
+
["lg" /* Large */]: "h-10 w-10"
|
|
4437
|
+
};
|
|
4438
|
+
return /* @__PURE__ */ jsx(
|
|
4439
|
+
Button,
|
|
4440
|
+
{
|
|
4441
|
+
ref,
|
|
4442
|
+
variant,
|
|
4443
|
+
size: "icon" /* Icon */,
|
|
4444
|
+
className: cn(sizeStyles[size], className),
|
|
4445
|
+
...props
|
|
4446
|
+
}
|
|
4447
|
+
);
|
|
4448
|
+
}
|
|
4449
|
+
);
|
|
4450
|
+
IconButton.displayName = "IconButton";
|
|
4451
|
+
var DropdownButton = React26__default.forwardRef(({ children, variant = "outline" /* Outline */, className, ...props }, ref) => {
|
|
4452
|
+
return /* @__PURE__ */ jsxs(
|
|
4453
|
+
Button,
|
|
4454
|
+
{
|
|
4455
|
+
ref,
|
|
4456
|
+
variant,
|
|
4457
|
+
className: cn("min-w-40 justify-between rtl:flex-row-reverse", className),
|
|
4458
|
+
...props,
|
|
4459
|
+
children: [
|
|
4460
|
+
/* @__PURE__ */ jsx("span", { children }),
|
|
4461
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "h-4 w-4" })
|
|
4462
|
+
]
|
|
4463
|
+
}
|
|
4464
|
+
);
|
|
4465
|
+
});
|
|
4466
|
+
DropdownButton.displayName = "DropdownButton";
|
|
4467
|
+
var InputGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4468
|
+
"div",
|
|
4469
|
+
{
|
|
4470
|
+
ref,
|
|
4471
|
+
"data-slot": "input-group",
|
|
4472
|
+
role: "group",
|
|
4473
|
+
className: cn(
|
|
4474
|
+
"group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none",
|
|
4475
|
+
"h-9 min-w-0 has-[>textarea]:h-auto",
|
|
4476
|
+
// Variants based on alignment.
|
|
4477
|
+
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
4478
|
+
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
4479
|
+
"has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
|
|
4480
|
+
"has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
|
|
4481
|
+
// Focus state.
|
|
4482
|
+
"has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
|
|
4483
|
+
// Error state.
|
|
4484
|
+
"has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
|
|
4485
|
+
className
|
|
4486
|
+
),
|
|
4487
|
+
...props
|
|
4488
|
+
}
|
|
4489
|
+
));
|
|
4490
|
+
InputGroup.displayName = "InputGroup";
|
|
4491
|
+
var inputGroupAddonVariants = cva(
|
|
4492
|
+
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
4493
|
+
{
|
|
4494
|
+
variants: {
|
|
4495
|
+
align: {
|
|
4496
|
+
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
4497
|
+
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
|
|
4498
|
+
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
|
|
4499
|
+
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
|
|
4500
|
+
}
|
|
4501
|
+
},
|
|
4502
|
+
defaultVariants: {
|
|
4503
|
+
align: "inline-start"
|
|
4504
|
+
}
|
|
4505
|
+
}
|
|
4506
|
+
);
|
|
4507
|
+
var InputGroupAddon = React26.forwardRef(({ className, align = "inline-start", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4508
|
+
"div",
|
|
4509
|
+
{
|
|
4510
|
+
ref,
|
|
4511
|
+
role: "group",
|
|
4512
|
+
"data-slot": "input-group-addon",
|
|
4513
|
+
"data-align": align,
|
|
4514
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
4515
|
+
onClick: (e) => {
|
|
4516
|
+
if (e.target.closest("button")) {
|
|
4517
|
+
return;
|
|
4518
|
+
}
|
|
4519
|
+
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
4520
|
+
},
|
|
4521
|
+
...props
|
|
4522
|
+
}
|
|
4523
|
+
));
|
|
4524
|
+
InputGroupAddon.displayName = "InputGroupAddon";
|
|
4525
|
+
var inputGroupButtonVariants = cva(
|
|
4526
|
+
"text-sm shadow-none flex gap-2 items-center",
|
|
4527
|
+
{
|
|
4528
|
+
variants: {
|
|
4529
|
+
size: {
|
|
4530
|
+
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
4531
|
+
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
4532
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
4533
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
4534
|
+
}
|
|
4535
|
+
},
|
|
4536
|
+
defaultVariants: {
|
|
4537
|
+
size: "xs"
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
);
|
|
4541
|
+
var InputGroupButton = React26.forwardRef(({ className, type = "button", variant = "ghost" /* Ghost */, size = "xs", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4542
|
+
Button,
|
|
4543
|
+
{
|
|
4544
|
+
ref,
|
|
4545
|
+
type,
|
|
4546
|
+
"data-size": size,
|
|
4547
|
+
variant,
|
|
4548
|
+
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4549
|
+
...props
|
|
4550
|
+
}
|
|
4551
|
+
));
|
|
4552
|
+
InputGroupButton.displayName = "InputGroupButton";
|
|
4553
|
+
var InputGroupText = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4554
|
+
"span",
|
|
4555
|
+
{
|
|
4556
|
+
ref,
|
|
4557
|
+
className: cn(
|
|
4558
|
+
"text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
4559
|
+
className
|
|
4560
|
+
),
|
|
4561
|
+
...props
|
|
4562
|
+
}
|
|
4563
|
+
));
|
|
4564
|
+
InputGroupText.displayName = "InputGroupText";
|
|
4565
|
+
var InputGroupInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4566
|
+
Input,
|
|
4567
|
+
{
|
|
4568
|
+
ref,
|
|
4569
|
+
"data-slot": "input-group-control",
|
|
4570
|
+
className: cn(
|
|
4571
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
4572
|
+
className
|
|
4573
|
+
),
|
|
4574
|
+
...props
|
|
4575
|
+
}
|
|
4576
|
+
));
|
|
4577
|
+
InputGroupInput.displayName = "InputGroupInput";
|
|
4578
|
+
var InputGroupTextarea = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4579
|
+
Textarea,
|
|
4580
|
+
{
|
|
4581
|
+
ref,
|
|
4582
|
+
"data-slot": "input-group-control",
|
|
4583
|
+
className: cn(
|
|
4584
|
+
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
4585
|
+
className
|
|
4586
|
+
),
|
|
4587
|
+
...props
|
|
4588
|
+
}
|
|
4589
|
+
));
|
|
4590
|
+
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
4078
4591
|
var CalendarIcon = ({
|
|
4079
4592
|
className = "",
|
|
4080
4593
|
...props
|
|
@@ -4101,9 +4614,9 @@ var CalendarIcon = ({
|
|
|
4101
4614
|
}
|
|
4102
4615
|
);
|
|
4103
4616
|
};
|
|
4104
|
-
var DatePickerContext =
|
|
4617
|
+
var DatePickerContext = React26.createContext(null);
|
|
4105
4618
|
function useDatePickerContext() {
|
|
4106
|
-
const context =
|
|
4619
|
+
const context = React26.useContext(DatePickerContext);
|
|
4107
4620
|
if (!context) {
|
|
4108
4621
|
throw new Error("DatePicker components must be used within a DatePicker");
|
|
4109
4622
|
}
|
|
@@ -4122,25 +4635,25 @@ function DatePicker({
|
|
|
4122
4635
|
defaultOpen = false,
|
|
4123
4636
|
formatDate: formatDateProp = defaultFormatDate
|
|
4124
4637
|
}) {
|
|
4125
|
-
const [uncontrolledDate, setUncontrolledDate] =
|
|
4126
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
4638
|
+
const [uncontrolledDate, setUncontrolledDate] = React26.useState(defaultDate);
|
|
4639
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React26.useState(defaultOpen);
|
|
4127
4640
|
const isDateControlled = controlledDate !== void 0;
|
|
4128
4641
|
const isOpenControlled = controlledOpen !== void 0;
|
|
4129
4642
|
const date = isDateControlled ? controlledDate : uncontrolledDate;
|
|
4130
4643
|
const open = isOpenControlled ? controlledOpen : uncontrolledOpen;
|
|
4131
|
-
const setDate =
|
|
4644
|
+
const setDate = React26.useCallback((newDate) => {
|
|
4132
4645
|
if (!isDateControlled) {
|
|
4133
4646
|
setUncontrolledDate(newDate);
|
|
4134
4647
|
}
|
|
4135
4648
|
onDateChange?.(newDate);
|
|
4136
4649
|
}, [isDateControlled, onDateChange]);
|
|
4137
|
-
const setOpen =
|
|
4650
|
+
const setOpen = React26.useCallback((newOpen) => {
|
|
4138
4651
|
if (!isOpenControlled) {
|
|
4139
4652
|
setUncontrolledOpen(newOpen);
|
|
4140
4653
|
}
|
|
4141
4654
|
onOpenChange?.(newOpen);
|
|
4142
4655
|
}, [isOpenControlled, onOpenChange]);
|
|
4143
|
-
const contextValue =
|
|
4656
|
+
const contextValue = React26.useMemo(() => ({
|
|
4144
4657
|
date,
|
|
4145
4658
|
setDate,
|
|
4146
4659
|
open,
|
|
@@ -4160,7 +4673,7 @@ function DatePickerTrigger({
|
|
|
4160
4673
|
return /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
4161
4674
|
Button,
|
|
4162
4675
|
{
|
|
4163
|
-
variant:
|
|
4676
|
+
variant: "outline" /* Outline */,
|
|
4164
4677
|
"data-slot": "date-picker-trigger",
|
|
4165
4678
|
"data-empty": !date,
|
|
4166
4679
|
className: cn(
|
|
@@ -4213,9 +4726,9 @@ function DatePickerInput({
|
|
|
4213
4726
|
id
|
|
4214
4727
|
}) {
|
|
4215
4728
|
const { date, setDate, setOpen, formatDate } = useDatePickerContext();
|
|
4216
|
-
const [inputValue, setInputValue] =
|
|
4217
|
-
const [month, setMonth] =
|
|
4218
|
-
|
|
4729
|
+
const [inputValue, setInputValue] = React26.useState(date ? formatDate(date) : "");
|
|
4730
|
+
const [month, setMonth] = React26.useState(date);
|
|
4731
|
+
React26.useEffect(() => {
|
|
4219
4732
|
setInputValue(date ? formatDate(date) : "");
|
|
4220
4733
|
}, [date, formatDate]);
|
|
4221
4734
|
const handleInputChange = (e) => {
|
|
@@ -4254,7 +4767,7 @@ function DatePickerInput({
|
|
|
4254
4767
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
4255
4768
|
Button,
|
|
4256
4769
|
{
|
|
4257
|
-
variant:
|
|
4770
|
+
variant: "ghost" /* Ghost */,
|
|
4258
4771
|
className: "absolute top-1/2 right-2 size-6 -translate-y-1/2 p-0",
|
|
4259
4772
|
"aria-label": "Select date",
|
|
4260
4773
|
children: /* @__PURE__ */ jsx(CalendarIcon, { className: "size-3.5" })
|
|
@@ -4282,7 +4795,7 @@ function DatePickerInput({
|
|
|
4282
4795
|
)
|
|
4283
4796
|
] });
|
|
4284
4797
|
}
|
|
4285
|
-
var Sidebar =
|
|
4798
|
+
var Sidebar = React26.forwardRef(({ collapsed = false, className, children, ...props }, ref) => {
|
|
4286
4799
|
return /* @__PURE__ */ jsx(
|
|
4287
4800
|
"aside",
|
|
4288
4801
|
{
|
|
@@ -4301,7 +4814,7 @@ var Sidebar = React24.forwardRef(({ collapsed = false, className, children, ...p
|
|
|
4301
4814
|
);
|
|
4302
4815
|
});
|
|
4303
4816
|
Sidebar.displayName = "Sidebar";
|
|
4304
|
-
var SidebarContent =
|
|
4817
|
+
var SidebarContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4305
4818
|
"div",
|
|
4306
4819
|
{
|
|
4307
4820
|
ref,
|
|
@@ -4315,7 +4828,7 @@ var SidebarContent = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4315
4828
|
}
|
|
4316
4829
|
));
|
|
4317
4830
|
SidebarContent.displayName = "SidebarContent";
|
|
4318
|
-
var SidebarMenu =
|
|
4831
|
+
var SidebarMenu = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4319
4832
|
"ul",
|
|
4320
4833
|
{
|
|
4321
4834
|
ref,
|
|
@@ -4325,7 +4838,7 @@ var SidebarMenu = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4325
4838
|
}
|
|
4326
4839
|
));
|
|
4327
4840
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4328
|
-
var SidebarMenuItem =
|
|
4841
|
+
var SidebarMenuItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4329
4842
|
"li",
|
|
4330
4843
|
{
|
|
4331
4844
|
ref,
|
|
@@ -4357,7 +4870,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
4357
4870
|
}
|
|
4358
4871
|
}
|
|
4359
4872
|
);
|
|
4360
|
-
var SidebarMenuButton =
|
|
4873
|
+
var SidebarMenuButton = React26.forwardRef(
|
|
4361
4874
|
({
|
|
4362
4875
|
asChild = false,
|
|
4363
4876
|
isActive = false,
|
|
@@ -4383,7 +4896,7 @@ var SidebarMenuButton = React24.forwardRef(
|
|
|
4383
4896
|
}
|
|
4384
4897
|
);
|
|
4385
4898
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4386
|
-
var SidebarMenuIcon =
|
|
4899
|
+
var SidebarMenuIcon = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4387
4900
|
"span",
|
|
4388
4901
|
{
|
|
4389
4902
|
ref,
|
|
@@ -4392,7 +4905,7 @@ var SidebarMenuIcon = React24.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4392
4905
|
}
|
|
4393
4906
|
));
|
|
4394
4907
|
SidebarMenuIcon.displayName = "SidebarMenuIcon";
|
|
4395
|
-
var SidebarMenuLabel =
|
|
4908
|
+
var SidebarMenuLabel = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4396
4909
|
"span",
|
|
4397
4910
|
{
|
|
4398
4911
|
ref,
|
|
@@ -4401,7 +4914,7 @@ var SidebarMenuLabel = React24.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4401
4914
|
}
|
|
4402
4915
|
));
|
|
4403
4916
|
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
4404
|
-
var SidebarHeader =
|
|
4917
|
+
var SidebarHeader = React26.forwardRef(
|
|
4405
4918
|
({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
|
|
4406
4919
|
return /* @__PURE__ */ jsxs(
|
|
4407
4920
|
"div",
|
|
@@ -4424,7 +4937,7 @@ var SidebarHeader = React24.forwardRef(
|
|
|
4424
4937
|
}
|
|
4425
4938
|
);
|
|
4426
4939
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4427
|
-
var UserInfo =
|
|
4940
|
+
var UserInfo = React26__default.forwardRef(
|
|
4428
4941
|
({ displayName, email, avatarUrl, className, loading }, ref) => {
|
|
4429
4942
|
const getInitials = () => {
|
|
4430
4943
|
if (!displayName) return toUpper(email?.[0] || "") || "?";
|
|
@@ -4592,8 +5105,8 @@ var ChatInput = ({
|
|
|
4592
5105
|
onAttachFile && /* @__PURE__ */ jsx(
|
|
4593
5106
|
Button,
|
|
4594
5107
|
{
|
|
4595
|
-
variant:
|
|
4596
|
-
size:
|
|
5108
|
+
variant: "ghost" /* Ghost */,
|
|
5109
|
+
size: "icon" /* Icon */,
|
|
4597
5110
|
onClick: onAttachFile,
|
|
4598
5111
|
disabled,
|
|
4599
5112
|
className: "flex-shrink-0",
|
|
@@ -4652,8 +5165,8 @@ var ThreadList = ({
|
|
|
4652
5165
|
/* @__PURE__ */ jsx(
|
|
4653
5166
|
Button,
|
|
4654
5167
|
{
|
|
4655
|
-
variant:
|
|
4656
|
-
size:
|
|
5168
|
+
variant: "ghost" /* Ghost */,
|
|
5169
|
+
size: "icon" /* Icon */,
|
|
4657
5170
|
onClick: onNewThread,
|
|
4658
5171
|
"aria-label": "New chat",
|
|
4659
5172
|
children: /* @__PURE__ */ jsx(Plus, { size: 16 })
|
|
@@ -4838,6 +5351,6 @@ var applyTheme = (theme, themeName) => {
|
|
|
4838
5351
|
}
|
|
4839
5352
|
};
|
|
4840
5353
|
|
|
4841
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTablePagination, DataTableViewOptions, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item6 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, alertVariants, applyTheme, badgeVariants, emptyMediaVariants, useFormField };
|
|
5354
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonSize, ButtonVariant, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTablePagination, DataTableViewOptions, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IconButtonSize, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item6 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyList, TypographyMuted, TypographyP, TypographySmall, UiKitComponent, UiKitIcon, UserInfo, alertVariants, applyTheme, badgeVariants, buttonGroupVariants, emptyMediaVariants, toggleVariants, useFormField, useToast };
|
|
4842
5355
|
//# sourceMappingURL=index.js.map
|
|
4843
5356
|
//# sourceMappingURL=index.js.map
|