@siyahi/ui 0.1.9-next.34 → 0.1.9-next.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/DESIGN.md +43 -26
  2. package/README.md +12 -14
  3. package/THIRD_PARTY_NOTICES.md +10 -11
  4. package/agents/examples/app-sidebar.tsx +0 -2
  5. package/agents/examples/chart-panels.tsx +0 -4
  6. package/agents/examples/{section-cards-select.tsx → metric-strip-select.tsx} +5 -5
  7. package/agents/examples/metric-strip-trend.tsx +33 -0
  8. package/agents/examples/overview-dashboard.tsx +4 -4
  9. package/agents/examples/scatter-chart.tsx +0 -1
  10. package/agents/examples/stale-blocks.tsx +9 -9
  11. package/agents/examples/surfaces.tsx +2 -3
  12. package/agents/manifest.json +27 -49
  13. package/dist/components/registry/dashboardcn/kpi-row-card.d.ts +14 -6
  14. package/dist/components/registry/dashboardcn/kpi-row-card.js +49 -32
  15. package/dist/components/registry/niko-table/core/data-table-error-boundary.js +1 -1
  16. package/dist/components/registry/niko-table/filters/table-faceted-filter.js +2 -2
  17. package/dist/components/siyahi/panel-grid.d.ts +5 -6
  18. package/dist/components/siyahi/panel-grid.js +10 -9
  19. package/dist/components/siyahi/scatter-chart.d.ts +3 -3
  20. package/dist/components/siyahi/scatter-chart.js +6 -3
  21. package/dist/components/siyahi/siyahi-provider.d.ts +5 -6
  22. package/dist/components/siyahi/siyahi-provider.js +1 -1
  23. package/dist/components/siyahi/status-badge.js +1 -0
  24. package/dist/components/ui/alert-dialog.d.ts +20 -0
  25. package/dist/components/ui/alert-dialog.js +94 -0
  26. package/dist/components/ui/aspect-ratio.d.ts +6 -0
  27. package/dist/components/ui/aspect-ratio.js +13 -0
  28. package/dist/components/ui/attachment.d.ts +25 -0
  29. package/dist/components/ui/attachment.js +104 -0
  30. package/dist/components/ui/bubble.d.ts +18 -0
  31. package/dist/components/ui/bubble.js +73 -0
  32. package/dist/components/ui/button-group.d.ts +12 -0
  33. package/dist/components/ui/button-group.js +41 -0
  34. package/dist/components/ui/button.d.ts +1 -1
  35. package/dist/components/ui/button.js +1 -1
  36. package/dist/components/ui/carousel.d.ts +30 -0
  37. package/dist/components/ui/carousel.js +131 -0
  38. package/dist/components/ui/checkbox.d.ts +5 -0
  39. package/dist/components/ui/checkbox.js +20 -0
  40. package/dist/components/ui/combobox.d.ts +26 -0
  41. package/dist/components/ui/combobox.js +162 -0
  42. package/dist/components/ui/command.js +1 -1
  43. package/dist/components/ui/direction.d.ts +2 -0
  44. package/dist/components/ui/direction.js +1 -0
  45. package/dist/components/ui/drawer.d.ts +18 -0
  46. package/dist/components/ui/drawer.js +123 -0
  47. package/dist/components/ui/empty.d.ts +13 -0
  48. package/dist/components/ui/empty.js +59 -0
  49. package/dist/components/ui/field.js +1 -1
  50. package/dist/components/ui/hover-card.d.ts +7 -0
  51. package/dist/components/ui/hover-card.js +36 -0
  52. package/dist/components/ui/input-otp.d.ts +13 -0
  53. package/dist/components/ui/input-otp.js +46 -0
  54. package/dist/components/ui/item.d.ts +24 -0
  55. package/dist/components/ui/item.js +121 -0
  56. package/dist/components/ui/kbd.d.ts +5 -0
  57. package/dist/components/ui/kbd.js +19 -0
  58. package/dist/components/ui/marker.d.ts +12 -0
  59. package/dist/components/ui/marker.js +43 -0
  60. package/dist/components/ui/menubar.d.ts +31 -0
  61. package/dist/components/ui/menubar.js +136 -0
  62. package/dist/components/ui/message-scroller.d.ts +12 -0
  63. package/dist/components/ui/message-scroller.js +60 -0
  64. package/dist/components/ui/message.d.ts +12 -0
  65. package/dist/components/ui/message.js +49 -0
  66. package/dist/components/ui/native-select.d.ts +10 -0
  67. package/dist/components/ui/native-select.js +38 -0
  68. package/dist/components/ui/navigation-menu.d.ts +13 -0
  69. package/dist/components/ui/navigation-menu.js +82 -0
  70. package/dist/components/ui/pagination.d.ts +19 -0
  71. package/dist/components/ui/pagination.js +80 -0
  72. package/dist/components/ui/questionnaire.d.ts +21 -0
  73. package/dist/components/ui/questionnaire.js +170 -0
  74. package/dist/components/ui/radio-group.d.ts +7 -0
  75. package/dist/components/ui/radio-group.js +26 -0
  76. package/dist/components/ui/resizable.d.ts +9 -0
  77. package/dist/components/ui/resizable.js +28 -0
  78. package/dist/components/ui/sidebar.js +1 -1
  79. package/dist/components/ui/spinner.d.ts +4 -0
  80. package/dist/components/ui/spinner.js +15 -0
  81. package/dist/components/ui/switch.d.ts +7 -0
  82. package/dist/components/ui/switch.js +19 -0
  83. package/dist/components/ui/toast.d.ts +18 -0
  84. package/dist/components/ui/toast.js +123 -0
  85. package/dist/components/ui/trace.d.ts +20 -0
  86. package/dist/components/ui/trace.js +75 -0
  87. package/dist/index.d.ts +32 -3
  88. package/dist/index.js +35 -5
  89. package/dist/lib/chart-frame.d.ts +1 -1
  90. package/dist/lib/chart-frame.js +3 -1
  91. package/dist/lib/chart-series.d.ts +10 -2
  92. package/dist/lib/chart-series.js +10 -0
  93. package/package.json +5 -3
  94. package/registry.lock.json +0 -8
  95. package/styles/siyahi.css +257 -109
  96. package/agents/examples/section-cards-trend.tsx +0 -32
  97. package/agents/examples/section-cards.tsx +0 -48
  98. package/agents/report-rules.json +0 -7
  99. package/dist/components/registry/dashboard-01/section-cards.d.ts +0 -30
  100. package/dist/components/registry/dashboard-01/section-cards.js +0 -74
  101. package/report.css +0 -146
@@ -0,0 +1,73 @@
1
+ import { cn } from "cn";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import "react";
4
+ import { cva } from "class-variance-authority";
5
+ import { mergeProps } from "@base-ui/react/merge-props";
6
+ import { useRender } from "@base-ui/react/use-render";
7
+ //#region src/components/ui/bubble.tsx
8
+ function BubbleGroup({ className, ...props }) {
9
+ return /* @__PURE__ */ jsx("div", {
10
+ "data-slot": "bubble-group",
11
+ className: cn("flex min-w-0 flex-col gap-2", className),
12
+ ...props
13
+ });
14
+ }
15
+ const bubbleVariants = cva("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
16
+ variants: { variant: {
17
+ default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
18
+ secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
19
+ muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
20
+ tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
21
+ outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
22
+ ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
23
+ destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
24
+ } },
25
+ defaultVariants: { variant: "default" }
26
+ });
27
+ function Bubble({ variant = "default", align = "start", className, ...props }) {
28
+ return /* @__PURE__ */ jsx("div", {
29
+ "data-slot": "bubble",
30
+ "data-variant": variant,
31
+ "data-align": align,
32
+ className: cn(bubbleVariants({ variant }), className),
33
+ ...props
34
+ });
35
+ }
36
+ function BubbleContent({ className, render, ...props }) {
37
+ return useRender({
38
+ defaultTagName: "div",
39
+ props: mergeProps({ className: cn("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", className) }, props),
40
+ render,
41
+ state: { slot: "bubble-content" }
42
+ });
43
+ }
44
+ const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
45
+ variants: {
46
+ side: {
47
+ top: "top-0 -translate-y-3/4",
48
+ bottom: "bottom-0 translate-y-3/4"
49
+ },
50
+ align: {
51
+ start: "left-3",
52
+ end: "right-3"
53
+ }
54
+ },
55
+ defaultVariants: {
56
+ side: "bottom",
57
+ align: "end"
58
+ }
59
+ });
60
+ function BubbleReactions({ side = "bottom", align = "end", className, ...props }) {
61
+ return /* @__PURE__ */ jsx("div", {
62
+ "data-slot": "bubble-reactions",
63
+ "data-align": align,
64
+ "data-side": side,
65
+ className: cn(bubbleReactionsVariants({
66
+ side,
67
+ align
68
+ }), className),
69
+ ...props
70
+ });
71
+ }
72
+ //#endregion
73
+ export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
@@ -0,0 +1,12 @@
1
+ import { Separator } from "./separator.js";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { useRender } from "@base-ui/react/use-render";
4
+ //#region src/components/ui/button-group.d.ts
5
+ declare const buttonGroupVariants: (props?: ({
6
+ orientation?: "horizontal" | "vertical" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): import("react").JSX.Element;
9
+ declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react").JSX.Element;
11
+ //#endregion
12
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -0,0 +1,41 @@
1
+ import { Separator } from "./separator.js";
2
+ import { cn } from "cn";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
+ import { mergeProps } from "@base-ui/react/merge-props";
6
+ import { useRender } from "@base-ui/react/use-render";
7
+ //#region src/components/ui/button-group.tsx
8
+ const buttonGroupVariants = cva("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
9
+ variants: { orientation: {
10
+ horizontal: "*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",
11
+ vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"
12
+ } },
13
+ defaultVariants: { orientation: "horizontal" }
14
+ });
15
+ function ButtonGroup({ className, orientation, ...props }) {
16
+ return /* @__PURE__ */ jsx("div", {
17
+ role: "group",
18
+ "data-slot": "button-group",
19
+ "data-orientation": orientation,
20
+ className: cn(buttonGroupVariants({ orientation }), className),
21
+ ...props
22
+ });
23
+ }
24
+ function ButtonGroupText({ className, render, ...props }) {
25
+ return useRender({
26
+ defaultTagName: "div",
27
+ props: mergeProps({ className: cn("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className) }, props),
28
+ render,
29
+ state: { slot: "button-group-text" }
30
+ });
31
+ }
32
+ function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
33
+ return /* @__PURE__ */ jsx(Separator, {
34
+ "data-slot": "button-group-separator",
35
+ orientation,
36
+ className: cn("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", className),
37
+ ...props
38
+ });
39
+ }
40
+ //#endregion
41
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import { Button as Button$1 } from "@base-ui/react/button";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  //#region src/components/ui/button.d.ts
4
4
  declare const buttonVariants: (props?: ({
5
5
  variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { cn } from "cn";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { cva } from "class-variance-authority";
4
3
  import { Button as Button$1 } from "@base-ui/react/button";
4
+ import { cva } from "class-variance-authority";
5
5
  //#region src/components/ui/button.tsx
6
6
  const buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-lg 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", {
7
7
  variants: {
@@ -0,0 +1,30 @@
1
+ import { Button } from "./button.js";
2
+ import * as React$1 from "react";
3
+ import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
4
+ //#region src/components/ui/carousel.d.ts
5
+ type CarouselApi = UseEmblaCarouselType[1];
6
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
7
+ type CarouselOptions = UseCarouselParameters[0];
8
+ type CarouselPlugin = UseCarouselParameters[1];
9
+ type CarouselProps = {
10
+ opts?: CarouselOptions;
11
+ plugins?: CarouselPlugin;
12
+ orientation?: "horizontal" | "vertical";
13
+ setApi?: (api: CarouselApi) => void;
14
+ };
15
+ type CarouselContextProps = {
16
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
17
+ api: ReturnType<typeof useEmblaCarousel>[1];
18
+ scrollPrev: () => void;
19
+ scrollNext: () => void;
20
+ canScrollPrev: boolean;
21
+ canScrollNext: boolean;
22
+ } & CarouselProps;
23
+ declare function useCarousel(): CarouselContextProps;
24
+ declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): React$1.JSX.Element;
25
+ declare function CarouselContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
26
+ declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
27
+ declare function CarouselPrevious({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
28
+ declare function CarouselNext({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
29
+ //#endregion
30
+ export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel };
@@ -0,0 +1,131 @@
1
+ import { Button } from "./button.js";
2
+ import { cn } from "cn";
3
+ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as React$1 from "react";
6
+ import useEmblaCarousel from "embla-carousel-react";
7
+ //#region src/components/ui/carousel.tsx
8
+ const CarouselContext = React$1.createContext(null);
9
+ function useCarousel() {
10
+ const context = React$1.useContext(CarouselContext);
11
+ if (!context) throw new Error("useCarousel must be used within a <Carousel />");
12
+ return context;
13
+ }
14
+ function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
15
+ const [carouselRef, api] = useEmblaCarousel({
16
+ ...opts,
17
+ axis: orientation === "horizontal" ? "x" : "y"
18
+ }, plugins);
19
+ const [canScrollPrev, setCanScrollPrev] = React$1.useState(false);
20
+ const [canScrollNext, setCanScrollNext] = React$1.useState(false);
21
+ const onSelect = React$1.useCallback((api) => {
22
+ if (!api) return;
23
+ setCanScrollPrev(api.canScrollPrev());
24
+ setCanScrollNext(api.canScrollNext());
25
+ }, []);
26
+ const scrollPrev = React$1.useCallback(() => {
27
+ api?.scrollPrev();
28
+ }, [api]);
29
+ const scrollNext = React$1.useCallback(() => {
30
+ api?.scrollNext();
31
+ }, [api]);
32
+ const handleKeyDown = React$1.useCallback((event) => {
33
+ if (event.key === "ArrowLeft") {
34
+ event.preventDefault();
35
+ scrollPrev();
36
+ } else if (event.key === "ArrowRight") {
37
+ event.preventDefault();
38
+ scrollNext();
39
+ }
40
+ }, [scrollPrev, scrollNext]);
41
+ React$1.useEffect(() => {
42
+ if (!api || !setApi) return;
43
+ setApi(api);
44
+ }, [api, setApi]);
45
+ React$1.useEffect(() => {
46
+ if (!api) return;
47
+ onSelect(api);
48
+ api.on("reInit", onSelect);
49
+ api.on("select", onSelect);
50
+ return () => {
51
+ api?.off("select", onSelect);
52
+ };
53
+ }, [api, onSelect]);
54
+ return /* @__PURE__ */ jsx(CarouselContext.Provider, {
55
+ value: {
56
+ carouselRef,
57
+ api,
58
+ opts,
59
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
60
+ scrollPrev,
61
+ scrollNext,
62
+ canScrollPrev,
63
+ canScrollNext
64
+ },
65
+ children: /* @__PURE__ */ jsx("div", {
66
+ onKeyDownCapture: handleKeyDown,
67
+ className: cn("relative", className),
68
+ role: "region",
69
+ "aria-roledescription": "carousel",
70
+ "data-slot": "carousel",
71
+ ...props,
72
+ children
73
+ })
74
+ });
75
+ }
76
+ function CarouselContent({ className, ...props }) {
77
+ const { carouselRef, orientation } = useCarousel();
78
+ return /* @__PURE__ */ jsx("div", {
79
+ ref: carouselRef,
80
+ className: "overflow-hidden",
81
+ "data-slot": "carousel-content",
82
+ children: /* @__PURE__ */ jsx("div", {
83
+ className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
84
+ ...props
85
+ })
86
+ });
87
+ }
88
+ function CarouselItem({ className, ...props }) {
89
+ const { orientation } = useCarousel();
90
+ return /* @__PURE__ */ jsx("div", {
91
+ role: "group",
92
+ "aria-roledescription": "slide",
93
+ "data-slot": "carousel-item",
94
+ className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
95
+ ...props
96
+ });
97
+ }
98
+ function CarouselPrevious({ className, variant = "outline", size = "icon-sm", ...props }) {
99
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
100
+ return /* @__PURE__ */ jsxs(Button, {
101
+ "data-slot": "carousel-previous",
102
+ variant,
103
+ size,
104
+ className: cn("absolute touch-manipulation rounded-full", orientation === "horizontal" ? "inset-y-0 -left-12 my-auto" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
105
+ disabled: !canScrollPrev,
106
+ onClick: scrollPrev,
107
+ ...props,
108
+ children: [/* @__PURE__ */ jsx(ChevronLeftIcon, {}), /* @__PURE__ */ jsx("span", {
109
+ className: "sr-only",
110
+ children: "Previous slide"
111
+ })]
112
+ });
113
+ }
114
+ function CarouselNext({ className, variant = "outline", size = "icon-sm", ...props }) {
115
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
116
+ return /* @__PURE__ */ jsxs(Button, {
117
+ "data-slot": "carousel-next",
118
+ variant,
119
+ size,
120
+ className: cn("absolute touch-manipulation rounded-full", orientation === "horizontal" ? "inset-y-0 -right-12 my-auto" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
121
+ disabled: !canScrollNext,
122
+ onClick: scrollNext,
123
+ ...props,
124
+ children: [/* @__PURE__ */ jsx(ChevronRightIcon, {}), /* @__PURE__ */ jsx("span", {
125
+ className: "sr-only",
126
+ children: "Next slide"
127
+ })]
128
+ });
129
+ }
130
+ //#endregion
131
+ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel };
@@ -0,0 +1,5 @@
1
+ import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
2
+ //#region src/components/ui/checkbox.d.ts
3
+ declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): import("react").JSX.Element;
4
+ //#endregion
5
+ export { Checkbox };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { cn } from "cn";
3
+ import { CheckIcon } from "lucide-react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
6
+ //#region src/components/ui/checkbox.tsx
7
+ function Checkbox({ className, ...props }) {
8
+ return /* @__PURE__ */ jsx(Checkbox$1.Root, {
9
+ "data-slot": "checkbox",
10
+ className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 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 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary", className),
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
13
+ "data-slot": "checkbox-indicator",
14
+ className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
15
+ children: /* @__PURE__ */ jsx(CheckIcon, {})
16
+ })
17
+ });
18
+ }
19
+ //#endregion
20
+ export { Checkbox };
@@ -0,0 +1,26 @@
1
+ import * as React$1 from "react";
2
+ import { Combobox as Combobox$1 } from "@base-ui/react";
3
+ //#region src/components/ui/combobox.d.ts
4
+ declare const Combobox: typeof Combobox$1.Root;
5
+ declare function ComboboxValue({ ...props }: Combobox$1.Value.Props): React$1.JSX.Element;
6
+ declare function ComboboxTrigger({ className, children, ...props }: Combobox$1.Trigger.Props): React$1.JSX.Element;
7
+ declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: Combobox$1.Input.Props & {
8
+ showTrigger?: boolean;
9
+ showClear?: boolean;
10
+ }): React$1.JSX.Element;
11
+ declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: Combobox$1.Popup.Props & Pick<Combobox$1.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): React$1.JSX.Element;
12
+ declare function ComboboxList({ className, ...props }: Combobox$1.List.Props): React$1.JSX.Element;
13
+ declare function ComboboxItem({ className, children, ...props }: Combobox$1.Item.Props): React$1.JSX.Element;
14
+ declare function ComboboxGroup({ className, ...props }: Combobox$1.Group.Props): React$1.JSX.Element;
15
+ declare function ComboboxLabel({ className, ...props }: Combobox$1.GroupLabel.Props): React$1.JSX.Element;
16
+ declare function ComboboxCollection({ ...props }: Combobox$1.Collection.Props): React$1.JSX.Element;
17
+ declare function ComboboxEmpty({ className, ...props }: Combobox$1.Empty.Props): React$1.JSX.Element;
18
+ declare function ComboboxSeparator({ className, ...props }: Combobox$1.Separator.Props): React$1.JSX.Element;
19
+ declare function ComboboxChips({ className, ...props }: React$1.ComponentPropsWithRef<typeof Combobox$1.Chips> & Combobox$1.Chips.Props): React$1.JSX.Element;
20
+ declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox$1.Chip.Props & {
21
+ showRemove?: boolean;
22
+ }): React$1.JSX.Element;
23
+ declare function ComboboxChipsInput({ className, ...props }: Combobox$1.Input.Props): React$1.JSX.Element;
24
+ declare function useComboboxAnchor(): React$1.RefObject<HTMLDivElement | null>;
25
+ //#endregion
26
+ export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
@@ -0,0 +1,162 @@
1
+ "use client";
2
+ import { Button } from "./button.js";
3
+ import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group.js";
4
+ import { cn } from "cn";
5
+ import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import * as React$1 from "react";
8
+ import { Combobox as Combobox$1 } from "@base-ui/react";
9
+ //#region src/components/ui/combobox.tsx
10
+ const Combobox = Combobox$1.Root;
11
+ function ComboboxValue({ ...props }) {
12
+ return /* @__PURE__ */ jsx(Combobox$1.Value, {
13
+ "data-slot": "combobox-value",
14
+ ...props
15
+ });
16
+ }
17
+ function ComboboxTrigger({ className, children, ...props }) {
18
+ return /* @__PURE__ */ jsxs(Combobox$1.Trigger, {
19
+ "data-slot": "combobox-trigger",
20
+ className: cn("[&_svg:not([class*='size-'])]:size-4", className),
21
+ ...props,
22
+ children: [children, /* @__PURE__ */ jsx(ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })]
23
+ });
24
+ }
25
+ function ComboboxClear({ className, ...props }) {
26
+ return /* @__PURE__ */ jsx(Combobox$1.Clear, {
27
+ "data-slot": "combobox-clear",
28
+ render: /* @__PURE__ */ jsx(InputGroupButton, {
29
+ variant: "ghost",
30
+ size: "icon-xs"
31
+ }),
32
+ className: cn(className),
33
+ ...props,
34
+ children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
35
+ });
36
+ }
37
+ function ComboboxInput({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
38
+ return /* @__PURE__ */ jsxs(InputGroup, {
39
+ className: cn("w-auto", className),
40
+ children: [
41
+ /* @__PURE__ */ jsx(Combobox$1.Input, {
42
+ render: /* @__PURE__ */ jsx(InputGroupInput, { disabled }),
43
+ ...props
44
+ }),
45
+ /* @__PURE__ */ jsxs(InputGroupAddon, {
46
+ align: "inline-end",
47
+ children: [showTrigger && /* @__PURE__ */ jsx(InputGroupButton, {
48
+ size: "icon-xs",
49
+ variant: "ghost",
50
+ render: /* @__PURE__ */ jsx(ComboboxTrigger, {}),
51
+ "data-slot": "input-group-button",
52
+ className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
53
+ disabled
54
+ }), showClear && /* @__PURE__ */ jsx(ComboboxClear, { disabled })]
55
+ }),
56
+ children
57
+ ]
58
+ });
59
+ }
60
+ function ComboboxContent({ className, side = "bottom", sideOffset = 6, align = "start", alignOffset = 0, anchor, ...props }) {
61
+ return /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, {
62
+ side,
63
+ sideOffset,
64
+ align,
65
+ alignOffset,
66
+ anchor,
67
+ className: "isolate z-50",
68
+ children: /* @__PURE__ */ jsx(Combobox$1.Popup, {
69
+ "data-slot": "combobox-content",
70
+ "data-chips": !!anchor,
71
+ className: cn("group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) 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-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none 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),
72
+ ...props
73
+ })
74
+ }) });
75
+ }
76
+ function ComboboxList({ className, ...props }) {
77
+ return /* @__PURE__ */ jsx(Combobox$1.List, {
78
+ "data-slot": "combobox-list",
79
+ className: cn("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", className),
80
+ ...props
81
+ });
82
+ }
83
+ function ComboboxItem({ className, children, ...props }) {
84
+ return /* @__PURE__ */ jsxs(Combobox$1.Item, {
85
+ "data-slot": "combobox-item",
86
+ className: cn("relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**: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", className),
87
+ ...props,
88
+ children: [children, /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, {
89
+ render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
90
+ children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" })
91
+ })]
92
+ });
93
+ }
94
+ function ComboboxGroup({ className, ...props }) {
95
+ return /* @__PURE__ */ jsx(Combobox$1.Group, {
96
+ "data-slot": "combobox-group",
97
+ className: cn(className),
98
+ ...props
99
+ });
100
+ }
101
+ function ComboboxLabel({ className, ...props }) {
102
+ return /* @__PURE__ */ jsx(Combobox$1.GroupLabel, {
103
+ "data-slot": "combobox-label",
104
+ className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
105
+ ...props
106
+ });
107
+ }
108
+ function ComboboxCollection({ ...props }) {
109
+ return /* @__PURE__ */ jsx(Combobox$1.Collection, {
110
+ "data-slot": "combobox-collection",
111
+ ...props
112
+ });
113
+ }
114
+ function ComboboxEmpty({ className, ...props }) {
115
+ return /* @__PURE__ */ jsx(Combobox$1.Empty, {
116
+ "data-slot": "combobox-empty",
117
+ className: cn("hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex", className),
118
+ ...props
119
+ });
120
+ }
121
+ function ComboboxSeparator({ className, ...props }) {
122
+ return /* @__PURE__ */ jsx(Combobox$1.Separator, {
123
+ "data-slot": "combobox-separator",
124
+ className: cn("-mx-1 my-1 h-px bg-border", className),
125
+ ...props
126
+ });
127
+ }
128
+ function ComboboxChips({ className, ...props }) {
129
+ return /* @__PURE__ */ jsx(Combobox$1.Chips, {
130
+ "data-slot": "combobox-chips",
131
+ className: cn("flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", className),
132
+ ...props
133
+ });
134
+ }
135
+ function ComboboxChip({ className, children, showRemove = true, ...props }) {
136
+ return /* @__PURE__ */ jsxs(Combobox$1.Chip, {
137
+ "data-slot": "combobox-chip",
138
+ className: cn("flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0", className),
139
+ ...props,
140
+ children: [children, showRemove && /* @__PURE__ */ jsx(Combobox$1.ChipRemove, {
141
+ render: /* @__PURE__ */ jsx(Button, {
142
+ variant: "ghost",
143
+ size: "icon-xs"
144
+ }),
145
+ className: "-ml-1 opacity-50 hover:opacity-100",
146
+ "data-slot": "combobox-chip-remove",
147
+ children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
148
+ })]
149
+ });
150
+ }
151
+ function ComboboxChipsInput({ className, ...props }) {
152
+ return /* @__PURE__ */ jsx(Combobox$1.Input, {
153
+ "data-slot": "combobox-chip-input",
154
+ className: cn("min-w-16 flex-1 outline-none", className),
155
+ ...props
156
+ });
157
+ }
158
+ function useComboboxAnchor() {
159
+ return React$1.useRef(null);
160
+ }
161
+ //#endregion
162
+ export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
3
2
  import { InputGroup, InputGroupAddon } from "./input-group.js";
3
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
4
4
  import { cn } from "cn";
5
5
  import { CheckIcon, SearchIcon } from "lucide-react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -0,0 +1,2 @@
1
+ import { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
2
+ export { DirectionProvider, useDirection };
@@ -0,0 +1 @@
1
+ export { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
@@ -0,0 +1,18 @@
1
+ import * as React$1 from "react";
2
+ import { Drawer as Drawer$1 } from "@base-ui/react/drawer";
3
+ //#region src/components/ui/drawer.d.ts
4
+ declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: Drawer$1.Root.Props & {
5
+ showSwipeHandle?: boolean;
6
+ }): React$1.JSX.Element;
7
+ declare function DrawerTrigger({ ...props }: Drawer$1.Trigger.Props): React$1.JSX.Element;
8
+ declare function DrawerPortal({ ...props }: Drawer$1.Portal.Props): React$1.JSX.Element;
9
+ declare function DrawerClose({ ...props }: Drawer$1.Close.Props): React$1.JSX.Element;
10
+ declare function DrawerOverlay({ className, ...props }: Drawer$1.Backdrop.Props): React$1.JSX.Element;
11
+ declare function DrawerSwipeHandle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
12
+ declare function DrawerContent({ className, children, ...props }: Drawer$1.Popup.Props): React$1.JSX.Element;
13
+ declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
14
+ declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
15
+ declare function DrawerTitle({ className, ...props }: Drawer$1.Title.Props): React$1.JSX.Element;
16
+ declare function DrawerDescription({ className, ...props }: Drawer$1.Description.Props): React$1.JSX.Element;
17
+ //#endregion
18
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger };