@krak-stack/registry 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/app-brand.js +20 -20
- package/dist/components/ui/bubble.d.ts +16 -0
- package/dist/components/ui/code-block.js +38 -38
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/copy-button.js +16 -16
- package/dist/components/ui/data-table.js +687 -687
- package/dist/components/ui/editing-locale-switcher.js +54 -54
- package/dist/components/ui/effect-form.js +490 -490
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/file-picker.js +96 -96
- package/dist/components/ui/form.js +418 -418
- package/dist/components/ui/google-map.js +27 -27
- package/dist/components/ui/icon-input.js +93 -93
- package/dist/components/ui/loading.js +5 -5
- package/dist/components/ui/locale-switcher.js +48 -48
- package/dist/components/ui/marker.d.ts +10 -0
- package/dist/components/ui/message-scroller.d.ts +10 -0
- package/dist/components/ui/message.d.ts +10 -0
- package/dist/components/ui/pagination.js +92 -92
- package/dist/components/ui/search-menu.js +93 -93
- package/dist/components/ui/sidebar-layout.js +156 -156
- package/dist/components/ui/stats-card.js +28 -28
- package/dist/components/ui/theme-switcher.js +64 -64
- package/dist/components/ui/virtualized-combobox.js +66 -66
- package/dist/lib/docs-ai.d.ts +136 -0
- package/dist/lib/docs-ai.js +310 -0
- package/dist/lib/docs-core.d.ts +681 -0
- package/dist/lib/docs-core.js +2571 -0
- package/dist/lib/httpapi-ai.d.ts +54 -0
- package/dist/lib/httpapi-ai.js +361 -0
- package/dist/lib/httpapi-cli.d.ts +22 -0
- package/dist/lib/httpapi-cli.js +412 -0
- package/dist/lib/httpapi-client.d.ts +20 -0
- package/dist/lib/httpapi-client.js +50 -0
- package/dist/lib/httpapi-helpers.d.ts +105 -0
- package/dist/lib/httpapi-helpers.js +237 -0
- package/dist/lib/httpapi-mcp.d.ts +20 -0
- package/dist/lib/httpapi-mcp.js +366 -0
- package/dist/lib/query.js +128 -0
- package/dist/services/agent/client/atom.d.ts +56 -0
- package/dist/services/agent/client/index.d.ts +2 -0
- package/dist/services/agent/client/index.js +2239 -0
- package/dist/services/agent/client/widget.d.ts +52 -0
- package/dist/services/agent/index.d.ts +111 -0
- package/dist/services/agent/index.js +190 -0
- package/dist/services/agent/schema.d.ts +161 -0
- package/dist/services/agent/schema.js +135 -0
- package/package.json +59 -3
|
@@ -438,7 +438,7 @@ function cn(...inputs) {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
// ../../src/components/ui/button.tsx
|
|
441
|
-
import {
|
|
441
|
+
import { jsx } from "react/jsx-runtime";
|
|
442
442
|
var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
443
443
|
variants: {
|
|
444
444
|
variant: {
|
|
@@ -471,28 +471,28 @@ function Button({
|
|
|
471
471
|
size = "default",
|
|
472
472
|
...props
|
|
473
473
|
}) {
|
|
474
|
-
return /* @__PURE__ */
|
|
474
|
+
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
475
475
|
"data-slot": "button",
|
|
476
476
|
className: cn(buttonVariants({ variant, size, className })),
|
|
477
477
|
...props
|
|
478
|
-
}
|
|
478
|
+
});
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
// ../../src/components/ui/dropdown-menu.tsx
|
|
482
482
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
483
483
|
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
484
|
-
import {
|
|
484
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
485
485
|
function DropdownMenu({ ...props }) {
|
|
486
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.Root, {
|
|
487
487
|
"data-slot": "dropdown-menu",
|
|
488
488
|
...props
|
|
489
|
-
}
|
|
489
|
+
});
|
|
490
490
|
}
|
|
491
491
|
function DropdownMenuTrigger({ ...props }) {
|
|
492
|
-
return /* @__PURE__ */
|
|
492
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.Trigger, {
|
|
493
493
|
"data-slot": "dropdown-menu-trigger",
|
|
494
494
|
...props
|
|
495
|
-
}
|
|
495
|
+
});
|
|
496
496
|
}
|
|
497
497
|
function DropdownMenuContent({
|
|
498
498
|
align = "start",
|
|
@@ -502,44 +502,44 @@ function DropdownMenuContent({
|
|
|
502
502
|
className,
|
|
503
503
|
...props
|
|
504
504
|
}) {
|
|
505
|
-
return /* @__PURE__ */
|
|
506
|
-
children: /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.Portal, {
|
|
506
|
+
children: /* @__PURE__ */ jsx2(MenuPrimitive.Positioner, {
|
|
507
507
|
className: "isolate z-50 outline-none",
|
|
508
508
|
align,
|
|
509
509
|
alignOffset,
|
|
510
510
|
side,
|
|
511
511
|
sideOffset,
|
|
512
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ jsx2(MenuPrimitive.Popup, {
|
|
513
513
|
"data-slot": "dropdown-menu-content",
|
|
514
514
|
className: cn("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
515
515
|
...props
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
516
|
+
})
|
|
517
|
+
})
|
|
518
|
+
});
|
|
519
519
|
}
|
|
520
520
|
function DropdownMenuGroup({ ...props }) {
|
|
521
|
-
return /* @__PURE__ */
|
|
521
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.Group, {
|
|
522
522
|
"data-slot": "dropdown-menu-group",
|
|
523
523
|
...props
|
|
524
|
-
}
|
|
524
|
+
});
|
|
525
525
|
}
|
|
526
526
|
function DropdownMenuLabel({
|
|
527
527
|
className,
|
|
528
528
|
inset,
|
|
529
529
|
...props
|
|
530
530
|
}) {
|
|
531
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.GroupLabel, {
|
|
532
532
|
"data-slot": "dropdown-menu-label",
|
|
533
533
|
"data-inset": inset,
|
|
534
534
|
className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", className),
|
|
535
535
|
...props
|
|
536
|
-
}
|
|
536
|
+
});
|
|
537
537
|
}
|
|
538
538
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
539
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ jsx2(MenuPrimitive.RadioGroup, {
|
|
540
540
|
"data-slot": "dropdown-menu-radio-group",
|
|
541
541
|
...props
|
|
542
|
-
}
|
|
542
|
+
});
|
|
543
543
|
}
|
|
544
544
|
function DropdownMenuRadioItem({
|
|
545
545
|
className,
|
|
@@ -547,27 +547,27 @@ function DropdownMenuRadioItem({
|
|
|
547
547
|
inset,
|
|
548
548
|
...props
|
|
549
549
|
}) {
|
|
550
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ jsxs(MenuPrimitive.RadioItem, {
|
|
551
551
|
"data-slot": "dropdown-menu-radio-item",
|
|
552
552
|
"data-inset": inset,
|
|
553
553
|
className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
554
554
|
...props,
|
|
555
555
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ jsx2("span", {
|
|
557
557
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
558
558
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
559
|
-
children: /* @__PURE__ */
|
|
560
|
-
children: /* @__PURE__ */
|
|
561
|
-
}
|
|
562
|
-
}
|
|
559
|
+
children: /* @__PURE__ */ jsx2(MenuPrimitive.RadioItemIndicator, {
|
|
560
|
+
children: /* @__PURE__ */ jsx2(CheckIcon, {})
|
|
561
|
+
})
|
|
562
|
+
}),
|
|
563
563
|
children
|
|
564
564
|
]
|
|
565
|
-
}
|
|
565
|
+
});
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
// ../../src/components/ui/locale-switcher.tsx
|
|
569
569
|
import { Languages } from "lucide-react";
|
|
570
|
-
import {
|
|
570
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
571
571
|
var messages = {
|
|
572
572
|
en: {
|
|
573
573
|
title: "Switch language",
|
|
@@ -587,45 +587,45 @@ var localeMessages = (overrides) => ({
|
|
|
587
587
|
var LocaleSwitcher = ({ messages: messages2 }) => {
|
|
588
588
|
const locale = getLocale();
|
|
589
589
|
const labels = localeMessages(messages2);
|
|
590
|
-
return /* @__PURE__ */
|
|
590
|
+
return /* @__PURE__ */ jsxs2(DropdownMenu, {
|
|
591
591
|
children: [
|
|
592
|
-
/* @__PURE__ */
|
|
593
|
-
render: /* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ jsx3(DropdownMenuTrigger, {
|
|
593
|
+
render: /* @__PURE__ */ jsxs2(Button, {
|
|
594
594
|
variant: "outline",
|
|
595
595
|
size: "icon",
|
|
596
596
|
"aria-label": labels.title,
|
|
597
597
|
children: [
|
|
598
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ jsx3(Languages, {
|
|
599
599
|
className: "size-4"
|
|
600
|
-
}
|
|
601
|
-
/* @__PURE__ */
|
|
600
|
+
}),
|
|
601
|
+
/* @__PURE__ */ jsx3("span", {
|
|
602
602
|
className: "sr-only",
|
|
603
603
|
children: labels.title
|
|
604
|
-
}
|
|
604
|
+
})
|
|
605
605
|
]
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
/* @__PURE__ */
|
|
606
|
+
})
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ jsx3(DropdownMenuContent, {
|
|
609
609
|
className: "w-32",
|
|
610
|
-
children: /* @__PURE__ */
|
|
610
|
+
children: /* @__PURE__ */ jsxs2(DropdownMenuGroup, {
|
|
611
611
|
children: [
|
|
612
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ jsx3(DropdownMenuLabel, {
|
|
613
613
|
children: labels.title
|
|
614
|
-
}
|
|
615
|
-
/* @__PURE__ */
|
|
614
|
+
}),
|
|
615
|
+
/* @__PURE__ */ jsx3(DropdownMenuRadioGroup, {
|
|
616
616
|
"aria-label": labels.title,
|
|
617
617
|
value: locale,
|
|
618
618
|
onValueChange: (v) => setLocale(v),
|
|
619
|
-
children: locales.map((l) => /* @__PURE__ */
|
|
619
|
+
children: locales.map((l) => /* @__PURE__ */ jsx3(DropdownMenuRadioItem, {
|
|
620
620
|
value: l,
|
|
621
621
|
children: labels[l]
|
|
622
|
-
}, l
|
|
623
|
-
}
|
|
622
|
+
}, l))
|
|
623
|
+
})
|
|
624
624
|
]
|
|
625
|
-
}
|
|
626
|
-
}
|
|
625
|
+
})
|
|
626
|
+
})
|
|
627
627
|
]
|
|
628
|
-
}
|
|
628
|
+
});
|
|
629
629
|
};
|
|
630
630
|
export {
|
|
631
631
|
LocaleSwitcher
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const markerVariants: (props?: ({
|
|
5
|
+
variant?: "border" | "default" | "separator" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Marker({ className, variant, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
8
|
+
declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
9
|
+
declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
10
|
+
export { Marker, MarkerIcon, MarkerContent, markerVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { MessageScroller as MessageScrollerPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>): React.JSX.Element;
|
|
5
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Root>): React.JSX.Element;
|
|
6
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>): React.JSX.Element;
|
|
7
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Content>): React.JSX.Element;
|
|
8
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Item>): React.JSX.Element;
|
|
9
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
10
|
+
export { MessageScrollerProvider, MessageScroller, MessageScrollerViewport, MessageScrollerContent, MessageScrollerItem, MessageScrollerButton, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
3
|
+
declare function Message({ className, align, ...props }: React.ComponentProps<"div"> & {
|
|
4
|
+
align?: "start" | "end";
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function MessageAvatar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
+
declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
+
declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
+
declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
export { MessageGroup, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader, };
|
|
@@ -19,7 +19,7 @@ function cn(...inputs) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// ../../src/components/ui/button.tsx
|
|
22
|
-
import {
|
|
22
|
+
import { jsx } from "react/jsx-runtime";
|
|
23
23
|
var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
24
24
|
variants: {
|
|
25
25
|
variant: {
|
|
@@ -52,36 +52,36 @@ function Button({
|
|
|
52
52
|
size = "default",
|
|
53
53
|
...props
|
|
54
54
|
}) {
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
56
56
|
"data-slot": "button",
|
|
57
57
|
className: cn(buttonVariants({ variant, size, className })),
|
|
58
58
|
...props
|
|
59
|
-
}
|
|
59
|
+
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// ../../src/components/ui/label.tsx
|
|
63
|
-
import {
|
|
63
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
64
64
|
"use client";
|
|
65
65
|
function Label({ className, ...props }) {
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ jsx2("label", {
|
|
67
67
|
"data-slot": "label",
|
|
68
68
|
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
69
69
|
...props
|
|
70
|
-
}
|
|
70
|
+
});
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// ../../src/components/ui/select.tsx
|
|
74
74
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
75
75
|
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
|
|
76
|
-
import {
|
|
76
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
77
77
|
"use client";
|
|
78
78
|
var Select = SelectPrimitive.Root;
|
|
79
79
|
function SelectValue({ className, ...props }) {
|
|
80
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ jsx3(SelectPrimitive.Value, {
|
|
81
81
|
"data-slot": "select-value",
|
|
82
82
|
className: cn("flex flex-1 text-left", className),
|
|
83
83
|
...props
|
|
84
|
-
}
|
|
84
|
+
});
|
|
85
85
|
}
|
|
86
86
|
function SelectTrigger({
|
|
87
87
|
className,
|
|
@@ -89,20 +89,20 @@ function SelectTrigger({
|
|
|
89
89
|
children,
|
|
90
90
|
...props
|
|
91
91
|
}) {
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
93
93
|
"data-slot": "select-trigger",
|
|
94
94
|
"data-size": size,
|
|
95
95
|
className: cn("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
96
96
|
...props,
|
|
97
97
|
children: [
|
|
98
98
|
children,
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
render: /* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ jsx3(SelectPrimitive.Icon, {
|
|
100
|
+
render: /* @__PURE__ */ jsx3(ChevronDownIcon, {
|
|
101
101
|
className: "text-muted-foreground pointer-events-none size-4"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
104
|
]
|
|
105
|
-
}
|
|
105
|
+
});
|
|
106
106
|
}
|
|
107
107
|
function SelectContent({
|
|
108
108
|
className,
|
|
@@ -114,76 +114,76 @@ function SelectContent({
|
|
|
114
114
|
alignItemWithTrigger = true,
|
|
115
115
|
...props
|
|
116
116
|
}) {
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
children: /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ jsx3(SelectPrimitive.Portal, {
|
|
118
|
+
children: /* @__PURE__ */ jsx3(SelectPrimitive.Positioner, {
|
|
119
119
|
side,
|
|
120
120
|
sideOffset,
|
|
121
121
|
align,
|
|
122
122
|
alignOffset,
|
|
123
123
|
alignItemWithTrigger,
|
|
124
124
|
className: "isolate z-50",
|
|
125
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
|
|
126
126
|
"data-slot": "select-content",
|
|
127
127
|
"data-align-trigger": alignItemWithTrigger,
|
|
128
128
|
className: cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
129
129
|
...props,
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ jsx3(SelectScrollUpButton, {}),
|
|
132
|
+
/* @__PURE__ */ jsx3(SelectPrimitive.List, {
|
|
133
133
|
children
|
|
134
|
-
}
|
|
135
|
-
/* @__PURE__ */
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx3(SelectScrollDownButton, {})
|
|
136
136
|
]
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
140
|
}
|
|
141
141
|
function SelectItem({
|
|
142
142
|
className,
|
|
143
143
|
children,
|
|
144
144
|
...props
|
|
145
145
|
}) {
|
|
146
|
-
return /* @__PURE__ */
|
|
146
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
147
147
|
"data-slot": "select-item",
|
|
148
148
|
className: cn("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
149
149
|
...props,
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ jsx3(SelectPrimitive.ItemText, {
|
|
152
152
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
153
153
|
children
|
|
154
|
-
}
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
render: /* @__PURE__ */
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ jsx3(SelectPrimitive.ItemIndicator, {
|
|
156
|
+
render: /* @__PURE__ */ jsx3("span", {
|
|
157
157
|
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
|
|
158
|
-
}
|
|
159
|
-
children: /* @__PURE__ */
|
|
158
|
+
}),
|
|
159
|
+
children: /* @__PURE__ */ jsx3(CheckIcon, {
|
|
160
160
|
className: "pointer-events-none"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
161
|
+
})
|
|
162
|
+
})
|
|
163
163
|
]
|
|
164
|
-
}
|
|
164
|
+
});
|
|
165
165
|
}
|
|
166
166
|
function SelectScrollUpButton({
|
|
167
167
|
className,
|
|
168
168
|
...props
|
|
169
169
|
}) {
|
|
170
|
-
return /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollUpArrow, {
|
|
171
171
|
"data-slot": "select-scroll-up-button",
|
|
172
172
|
className: cn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
173
173
|
...props,
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
}
|
|
174
|
+
children: /* @__PURE__ */ jsx3(ChevronUpIcon, {})
|
|
175
|
+
});
|
|
176
176
|
}
|
|
177
177
|
function SelectScrollDownButton({
|
|
178
178
|
className,
|
|
179
179
|
...props
|
|
180
180
|
}) {
|
|
181
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollDownArrow, {
|
|
182
182
|
"data-slot": "select-scroll-down-button",
|
|
183
183
|
className: cn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
184
184
|
...props,
|
|
185
|
-
children: /* @__PURE__ */
|
|
186
|
-
}
|
|
185
|
+
children: /* @__PURE__ */ jsx3(ChevronDownIcon, {})
|
|
186
|
+
});
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// ../../src/paraglide/runtime.js
|
|
@@ -615,7 +615,7 @@ function isCustomStrategy(strategy2) {
|
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
// ../../src/components/ui/pagination.tsx
|
|
618
|
-
import {
|
|
618
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
619
619
|
var messages = {
|
|
620
620
|
en: {
|
|
621
621
|
pageSize: "Page size",
|
|
@@ -659,32 +659,32 @@ function Pagination({
|
|
|
659
659
|
const pageSizeId = useId();
|
|
660
660
|
const canGoBack = page > 0;
|
|
661
661
|
const canGoForward = page + 1 < pageCount;
|
|
662
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ jsxs2("div", {
|
|
663
663
|
className: cn("flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between", compact && "gap-2 px-0 sm:flex-col sm:items-stretch"),
|
|
664
664
|
children: [
|
|
665
|
-
showResults ? /* @__PURE__ */
|
|
665
|
+
showResults ? /* @__PURE__ */ jsxs2("div", {
|
|
666
666
|
className: "text-muted-foreground flex flex-wrap items-center gap-x-3 gap-y-1 text-sm",
|
|
667
667
|
children: [
|
|
668
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ jsx4("span", {
|
|
669
669
|
children: labels.results(totalRows)
|
|
670
|
-
}
|
|
671
|
-
selectedRows > 0 ? /* @__PURE__ */
|
|
670
|
+
}),
|
|
671
|
+
selectedRows > 0 ? /* @__PURE__ */ jsx4("span", {
|
|
672
672
|
children: labels.selectedOf(selectedRows, totalRows)
|
|
673
|
-
}
|
|
673
|
+
}) : null
|
|
674
674
|
]
|
|
675
|
-
}
|
|
676
|
-
/* @__PURE__ */
|
|
675
|
+
}) : null,
|
|
676
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
677
677
|
className: cn("flex items-center gap-4 sm:justify-end", compact && "flex-wrap justify-between gap-2 sm:justify-between"),
|
|
678
678
|
children: [
|
|
679
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
680
680
|
className: "flex items-center gap-2",
|
|
681
681
|
children: [
|
|
682
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ jsx4(Label, {
|
|
683
683
|
htmlFor: pageSizeId,
|
|
684
684
|
className: cn("hidden text-sm sm:block", compact && "block"),
|
|
685
685
|
children: labels.pageSize
|
|
686
|
-
}
|
|
687
|
-
/* @__PURE__ */
|
|
686
|
+
}),
|
|
687
|
+
/* @__PURE__ */ jsxs2(Select, {
|
|
688
688
|
items: pageSizes.map((size) => ({
|
|
689
689
|
label: size.toString(),
|
|
690
690
|
value: size.toString()
|
|
@@ -692,94 +692,94 @@ function Pagination({
|
|
|
692
692
|
value: `${pageSize}`,
|
|
693
693
|
onValueChange: (value) => onPageSizeChange(Number(value)),
|
|
694
694
|
children: [
|
|
695
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ jsx4(SelectTrigger, {
|
|
696
696
|
className: "h-8 w-[70px]",
|
|
697
697
|
id: pageSizeId,
|
|
698
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ jsx4(SelectValue, {
|
|
699
699
|
placeholder: pageSize
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
/* @__PURE__ */
|
|
700
|
+
})
|
|
701
|
+
}),
|
|
702
|
+
/* @__PURE__ */ jsx4(SelectContent, {
|
|
703
703
|
side: "top",
|
|
704
|
-
children: pageSizes.map((size) => /* @__PURE__ */
|
|
704
|
+
children: pageSizes.map((size) => /* @__PURE__ */ jsx4(SelectItem, {
|
|
705
705
|
value: `${size}`,
|
|
706
706
|
children: size
|
|
707
|
-
}, size
|
|
708
|
-
}
|
|
707
|
+
}, size))
|
|
708
|
+
})
|
|
709
709
|
]
|
|
710
|
-
}
|
|
710
|
+
})
|
|
711
711
|
]
|
|
712
|
-
}
|
|
713
|
-
/* @__PURE__ */
|
|
712
|
+
}),
|
|
713
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
714
714
|
className: "flex items-center gap-2",
|
|
715
715
|
children: [
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ jsx4("div", {
|
|
717
717
|
className: "flex items-center justify-center text-sm font-medium sm:block",
|
|
718
718
|
children: labels.pageOf(page + 1, pageCount)
|
|
719
|
-
}
|
|
720
|
-
/* @__PURE__ */
|
|
719
|
+
}),
|
|
720
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
721
721
|
className: "flex items-center gap-1",
|
|
722
722
|
children: [
|
|
723
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ jsxs2(Button, {
|
|
724
724
|
className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
|
|
725
725
|
disabled: !canGoBack,
|
|
726
726
|
onClick: () => onPageChange(0),
|
|
727
727
|
type: "button",
|
|
728
728
|
children: [
|
|
729
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ jsx4("span", {
|
|
730
730
|
className: "sr-only",
|
|
731
731
|
children: labels.goToFirstPage
|
|
732
|
-
}
|
|
733
|
-
/* @__PURE__ */
|
|
732
|
+
}),
|
|
733
|
+
/* @__PURE__ */ jsx4(ChevronsLeft, {})
|
|
734
734
|
]
|
|
735
|
-
}
|
|
736
|
-
/* @__PURE__ */
|
|
735
|
+
}),
|
|
736
|
+
/* @__PURE__ */ jsxs2(Button, {
|
|
737
737
|
className: "h-8 w-8 p-0",
|
|
738
738
|
disabled: !canGoBack,
|
|
739
739
|
onClick: () => onPageChange(page - 1),
|
|
740
740
|
type: "button",
|
|
741
741
|
children: [
|
|
742
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ jsx4("span", {
|
|
743
743
|
className: "sr-only",
|
|
744
744
|
children: labels.goToPreviousPage
|
|
745
|
-
}
|
|
746
|
-
/* @__PURE__ */
|
|
745
|
+
}),
|
|
746
|
+
/* @__PURE__ */ jsx4(ChevronLeft, {})
|
|
747
747
|
]
|
|
748
|
-
}
|
|
749
|
-
/* @__PURE__ */
|
|
748
|
+
}),
|
|
749
|
+
/* @__PURE__ */ jsxs2(Button, {
|
|
750
750
|
className: "h-8 w-8 p-0",
|
|
751
751
|
disabled: !canGoForward,
|
|
752
752
|
onClick: () => onPageChange(page + 1),
|
|
753
753
|
type: "button",
|
|
754
754
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ jsx4("span", {
|
|
756
756
|
className: "sr-only",
|
|
757
757
|
children: labels.goToNextPage
|
|
758
|
-
}
|
|
759
|
-
/* @__PURE__ */
|
|
758
|
+
}),
|
|
759
|
+
/* @__PURE__ */ jsx4(ChevronRight, {})
|
|
760
760
|
]
|
|
761
|
-
}
|
|
762
|
-
/* @__PURE__ */
|
|
761
|
+
}),
|
|
762
|
+
/* @__PURE__ */ jsxs2(Button, {
|
|
763
763
|
className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
|
|
764
764
|
disabled: !canGoForward,
|
|
765
765
|
onClick: () => onPageChange(pageCount - 1),
|
|
766
766
|
type: "button",
|
|
767
767
|
children: [
|
|
768
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ jsx4("span", {
|
|
769
769
|
className: "sr-only",
|
|
770
770
|
children: labels.goToLastPage
|
|
771
|
-
}
|
|
772
|
-
/* @__PURE__ */
|
|
771
|
+
}),
|
|
772
|
+
/* @__PURE__ */ jsx4(ChevronsRight, {})
|
|
773
773
|
]
|
|
774
|
-
}
|
|
774
|
+
})
|
|
775
775
|
]
|
|
776
|
-
}
|
|
776
|
+
})
|
|
777
777
|
]
|
|
778
|
-
}
|
|
778
|
+
})
|
|
779
779
|
]
|
|
780
|
-
}
|
|
780
|
+
})
|
|
781
781
|
]
|
|
782
|
-
}
|
|
782
|
+
});
|
|
783
783
|
}
|
|
784
784
|
export {
|
|
785
785
|
paginationMessages,
|