@boriaui/react 0.0.0-stage → 0.1.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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -2
  3. package/dist/components/alert-dialog.d.ts +29 -0
  4. package/dist/components/alert-dialog.js +62 -0
  5. package/dist/components/alert.d.ts +12 -0
  6. package/dist/components/alert.js +35 -0
  7. package/dist/components/autosize-textarea.d.ts +26 -0
  8. package/dist/components/autosize-textarea.js +66 -0
  9. package/dist/components/avatar.d.ts +9 -0
  10. package/dist/components/avatar.js +30 -0
  11. package/dist/components/badge.d.ts +16 -0
  12. package/dist/components/badge.js +24 -0
  13. package/dist/components/breadcrumb.d.ts +29 -0
  14. package/dist/components/breadcrumb.js +64 -0
  15. package/dist/components/button.d.ts +15 -0
  16. package/dist/components/button.js +45 -0
  17. package/dist/components/calendar.d.ts +25 -0
  18. package/dist/components/calendar.js +109 -0
  19. package/dist/components/card.d.ts +11 -0
  20. package/dist/components/card.js +44 -0
  21. package/dist/components/checkbox.d.ts +20 -0
  22. package/dist/components/checkbox.js +29 -0
  23. package/dist/components/collapsible.d.ts +9 -0
  24. package/dist/components/collapsible.js +12 -0
  25. package/dist/components/command.d.ts +89 -0
  26. package/dist/components/command.js +79 -0
  27. package/dist/components/context-menu.d.ts +36 -0
  28. package/dist/components/context-menu.js +136 -0
  29. package/dist/components/dialog.d.ts +31 -0
  30. package/dist/components/dialog.js +58 -0
  31. package/dist/components/dropdown-menu.d.ts +33 -0
  32. package/dist/components/dropdown-menu.js +85 -0
  33. package/dist/components/empty.d.ts +35 -0
  34. package/dist/components/empty.js +61 -0
  35. package/dist/components/field.d.ts +64 -0
  36. package/dist/components/field.js +121 -0
  37. package/dist/components/hover-card.d.ts +9 -0
  38. package/dist/components/hover-card.js +25 -0
  39. package/dist/components/input-group.d.ts +42 -0
  40. package/dist/components/input-group.js +83 -0
  41. package/dist/components/input.d.ts +6 -0
  42. package/dist/components/input.js +17 -0
  43. package/dist/components/item.d.ts +61 -0
  44. package/dist/components/item.js +118 -0
  45. package/dist/components/kbd.d.ts +13 -0
  46. package/dist/components/kbd.js +21 -0
  47. package/dist/components/label.d.ts +7 -0
  48. package/dist/components/label.js +18 -0
  49. package/dist/components/popover.d.ts +10 -0
  50. package/dist/components/popover.js +23 -0
  51. package/dist/components/radio-group.d.ts +14 -0
  52. package/dist/components/radio-group.js +39 -0
  53. package/dist/components/resizable.d.ts +34 -0
  54. package/dist/components/resizable.js +25 -0
  55. package/dist/components/scroll-area.d.ts +11 -0
  56. package/dist/components/scroll-area.js +35 -0
  57. package/dist/components/select.d.ts +16 -0
  58. package/dist/components/select.js +77 -0
  59. package/dist/components/separator.d.ts +7 -0
  60. package/dist/components/separator.js +20 -0
  61. package/dist/components/sheet.d.ts +34 -0
  62. package/dist/components/sheet.js +68 -0
  63. package/dist/components/sidebar.d.ts +72 -0
  64. package/dist/components/sidebar.js +382 -0
  65. package/dist/components/skeleton.d.ts +9 -0
  66. package/dist/components/skeleton.js +13 -0
  67. package/dist/components/spinner.d.ts +9 -0
  68. package/dist/components/spinner.js +16 -0
  69. package/dist/components/switch.d.ts +28 -0
  70. package/dist/components/switch.js +31 -0
  71. package/dist/components/tabs.d.ts +10 -0
  72. package/dist/components/tabs.js +31 -0
  73. package/dist/components/textarea.d.ts +6 -0
  74. package/dist/components/textarea.js +16 -0
  75. package/dist/components/toaster.d.ts +10 -0
  76. package/dist/components/toaster.js +19 -0
  77. package/dist/components/toggle-group.d.ts +16 -0
  78. package/dist/components/toggle-group.js +43 -0
  79. package/dist/components/toggle.d.ts +16 -0
  80. package/dist/components/toggle.js +40 -0
  81. package/dist/components/tooltip.d.ts +10 -0
  82. package/dist/components/tooltip.js +22 -0
  83. package/dist/hooks/index.d.ts +3 -0
  84. package/dist/hooks/index.js +4 -0
  85. package/dist/hooks/use-media-query.d.ts +8 -0
  86. package/dist/hooks/use-media-query.js +20 -0
  87. package/dist/hooks/use-mobile.d.ts +4 -0
  88. package/dist/hooks/use-mobile.js +20 -0
  89. package/dist/lib/index.d.ts +3 -0
  90. package/dist/lib/index.js +4 -0
  91. package/dist/lib/keyboard-guards.d.ts +11 -0
  92. package/dist/lib/keyboard-guards.js +21 -0
  93. package/dist/lib/utils.d.ts +6 -0
  94. package/dist/lib/utils.js +10 -0
  95. package/dist/theme/index.d.ts +3 -0
  96. package/dist/theme/index.js +4 -0
  97. package/dist/theme/theme-options.d.ts +16 -0
  98. package/dist/theme/theme-options.js +25 -0
  99. package/dist/theme/theme-provider.d.ts +50 -0
  100. package/dist/theme/theme-provider.js +94 -0
  101. package/package.json +122 -4
@@ -0,0 +1,61 @@
1
+ import { Separator } from "./separator.js";
2
+ import * as React from "react";
3
+ import { VariantProps } from "class-variance-authority";
4
+ import * as class_variance_authority_types8 from "class-variance-authority/types";
5
+
6
+ //#region src/components/item.d.ts
7
+ declare function ItemGroup({
8
+ className,
9
+ ...props
10
+ }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function ItemSeparator({
12
+ className,
13
+ ...props
14
+ }: React.ComponentProps<typeof Separator>): React.JSX.Element;
15
+ declare const itemVariants: (props?: ({
16
+ variant?: "default" | "outline" | "muted" | null | undefined;
17
+ size?: "default" | "sm" | null | undefined;
18
+ } & class_variance_authority_types8.ClassProp) | undefined) => string;
19
+ declare function Item({
20
+ className,
21
+ variant,
22
+ size,
23
+ asChild,
24
+ ...props
25
+ }: React.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
26
+ asChild?: boolean;
27
+ }): React.JSX.Element;
28
+ declare const itemMediaVariants: (props?: ({
29
+ variant?: "default" | "icon" | "image" | null | undefined;
30
+ } & class_variance_authority_types8.ClassProp) | undefined) => string;
31
+ declare function ItemMedia({
32
+ className,
33
+ variant,
34
+ ...props
35
+ }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
36
+ declare function ItemContent({
37
+ className,
38
+ ...props
39
+ }: React.ComponentProps<"div">): React.JSX.Element;
40
+ declare function ItemTitle({
41
+ className,
42
+ ...props
43
+ }: React.ComponentProps<"div">): React.JSX.Element;
44
+ declare function ItemDescription({
45
+ className,
46
+ ...props
47
+ }: React.ComponentProps<"p">): React.JSX.Element;
48
+ declare function ItemActions({
49
+ className,
50
+ ...props
51
+ }: React.ComponentProps<"div">): React.JSX.Element;
52
+ declare function ItemHeader({
53
+ className,
54
+ ...props
55
+ }: React.ComponentProps<"div">): React.JSX.Element;
56
+ declare function ItemFooter({
57
+ className,
58
+ ...props
59
+ }: React.ComponentProps<"div">): React.JSX.Element;
60
+ //#endregion
61
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
@@ -0,0 +1,118 @@
1
+ import { cn } from "../lib/utils.js";
2
+ import { Separator } from "./separator.js";
3
+ import "react";
4
+ import { Slot } from "@radix-ui/react-slot";
5
+ import { cva } from "class-variance-authority";
6
+ import { jsx } from "react/jsx-runtime";
7
+
8
+ //#region src/components/item.tsx
9
+ function ItemGroup({ className,...props }) {
10
+ return /* @__PURE__ */ jsx("div", {
11
+ role: "list",
12
+ "data-slot": "item-group",
13
+ className: cn("group/item-group flex flex-col", className),
14
+ ...props
15
+ });
16
+ }
17
+ function ItemSeparator({ className,...props }) {
18
+ return /* @__PURE__ */ jsx(Separator, {
19
+ "data-slot": "item-separator",
20
+ orientation: "horizontal",
21
+ className: cn("my-0", className),
22
+ ...props
23
+ });
24
+ }
25
+ const itemVariants = cva("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]", {
26
+ variants: {
27
+ variant: {
28
+ default: "bg-transparent",
29
+ outline: "border-border",
30
+ muted: "bg-muted/50"
31
+ },
32
+ size: {
33
+ default: "gap-4 p-4 ",
34
+ sm: "gap-2.5 px-4 py-3"
35
+ }
36
+ },
37
+ defaultVariants: {
38
+ variant: "default",
39
+ size: "default"
40
+ }
41
+ });
42
+ function Item({ className, variant = "default", size = "default", asChild = false,...props }) {
43
+ return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
44
+ "data-slot": "item",
45
+ "data-variant": variant,
46
+ "data-size": size,
47
+ className: cn(itemVariants({
48
+ variant,
49
+ size,
50
+ className
51
+ })),
52
+ ...props
53
+ });
54
+ }
55
+ const itemMediaVariants = cva("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", {
56
+ variants: { variant: {
57
+ default: "bg-transparent",
58
+ icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
59
+ image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
60
+ } },
61
+ defaultVariants: { variant: "default" }
62
+ });
63
+ function ItemMedia({ className, variant = "default",...props }) {
64
+ return /* @__PURE__ */ jsx("div", {
65
+ "data-slot": "item-media",
66
+ "data-variant": variant,
67
+ className: cn(itemMediaVariants({
68
+ variant,
69
+ className
70
+ })),
71
+ ...props
72
+ });
73
+ }
74
+ function ItemContent({ className,...props }) {
75
+ return /* @__PURE__ */ jsx("div", {
76
+ "data-slot": "item-content",
77
+ className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
78
+ ...props
79
+ });
80
+ }
81
+ function ItemTitle({ className,...props }) {
82
+ return /* @__PURE__ */ jsx("div", {
83
+ "data-slot": "item-title",
84
+ className: cn("flex w-fit items-center gap-2 text-sm font-medium leading-snug", className),
85
+ ...props
86
+ });
87
+ }
88
+ function ItemDescription({ className,...props }) {
89
+ return /* @__PURE__ */ jsx("p", {
90
+ "data-slot": "item-description",
91
+ className: cn("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
92
+ ...props
93
+ });
94
+ }
95
+ function ItemActions({ className,...props }) {
96
+ return /* @__PURE__ */ jsx("div", {
97
+ "data-slot": "item-actions",
98
+ className: cn("flex items-center gap-2", className),
99
+ ...props
100
+ });
101
+ }
102
+ function ItemHeader({ className,...props }) {
103
+ return /* @__PURE__ */ jsx("div", {
104
+ "data-slot": "item-header",
105
+ className: cn("flex basis-full items-center justify-between gap-2", className),
106
+ ...props
107
+ });
108
+ }
109
+ function ItemFooter({ className,...props }) {
110
+ return /* @__PURE__ */ jsx("div", {
111
+ "data-slot": "item-footer",
112
+ className: cn("flex basis-full items-center justify-between gap-2", className),
113
+ ...props
114
+ });
115
+ }
116
+
117
+ //#endregion
118
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
@@ -0,0 +1,13 @@
1
+ import * as react24 from "react";
2
+
3
+ //#region src/components/kbd.d.ts
4
+ declare function Kbd({
5
+ className,
6
+ ...props
7
+ }: React.ComponentProps<"kbd">): react24.JSX.Element;
8
+ declare function KbdGroup({
9
+ className,
10
+ ...props
11
+ }: React.ComponentProps<"div">): react24.JSX.Element;
12
+ //#endregion
13
+ export { Kbd, KbdGroup };
@@ -0,0 +1,21 @@
1
+ import { cn } from "../lib/utils.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/components/kbd.tsx
5
+ function Kbd({ className,...props }) {
6
+ return /* @__PURE__ */ jsx("kbd", {
7
+ "data-slot": "kbd",
8
+ className: cn("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className),
9
+ ...props
10
+ });
11
+ }
12
+ function KbdGroup({ className,...props }) {
13
+ return /* @__PURE__ */ jsx("kbd", {
14
+ "data-slot": "kbd-group",
15
+ className: cn("inline-flex items-center gap-1", className),
16
+ ...props
17
+ });
18
+ }
19
+
20
+ //#endregion
21
+ export { Kbd, KbdGroup };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+
4
+ //#region src/components/label.d.ts
5
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
6
+ //#endregion
7
+ export { Label };
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import * as LabelPrimitive from "@radix-ui/react-label";
8
+
9
+ //#region src/components/label.tsx
10
+ const Label = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(LabelPrimitive.Root, {
11
+ ref,
12
+ className: cn("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
13
+ ...props
14
+ }));
15
+ Label.displayName = LabelPrimitive.Root.displayName;
16
+
17
+ //#endregion
18
+ export { Label };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+
4
+ //#region src/components/popover.d.ts
5
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
6
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ //#endregion
10
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
8
+
9
+ //#region src/components/popover.tsx
10
+ const Popover = PopoverPrimitive.Root;
11
+ const PopoverTrigger = PopoverPrimitive.Trigger;
12
+ const PopoverAnchor = PopoverPrimitive.Anchor;
13
+ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4,...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
14
+ ref,
15
+ align,
16
+ sideOffset,
17
+ className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 data-[side=bottom]:slide-in-from-top-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 origin-[--radix-popover-content-transform-origin]", className),
18
+ ...props
19
+ }) }));
20
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
21
+
22
+ //#endregion
23
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+
4
+ //#region src/components/radio-group.d.ts
5
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ /**
8
+ * Unstyled radio item for custom option shapes (segmented pills, cards, tiles,
9
+ * chips). Keeps the Radix radio semantics and roving focus; the caller draws
10
+ * the selected state from `data-state="checked"`.
11
+ */
12
+ declare const RadioGroupOption: React.ForwardRefExoticComponent<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
13
+ //#endregion
14
+ export { RadioGroup, RadioGroupItem, RadioGroupOption };
@@ -0,0 +1,39 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { Circle } from "lucide-react";
8
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
9
+
10
+ //#region src/components/radio-group.tsx
11
+ const RadioGroup = React.forwardRef(({ className,...props }, ref) => {
12
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
13
+ className: cn("grid gap-2", className),
14
+ ...props,
15
+ ref
16
+ });
17
+ });
18
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
19
+ const RadioGroupItem = React.forwardRef(({ className,...props }, ref) => {
20
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
21
+ ref,
22
+ className: cn("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow-xs focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className),
23
+ ...props,
24
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
25
+ className: "flex items-center justify-center",
26
+ children: /* @__PURE__ */ jsx(Circle, { className: "h-3.5 w-3.5 fill-primary" })
27
+ })
28
+ });
29
+ });
30
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
31
+ /**
32
+ * Unstyled radio item for custom option shapes (segmented pills, cards, tiles,
33
+ * chips). Keeps the Radix radio semantics and roving focus; the caller draws
34
+ * the selected state from `data-state="checked"`.
35
+ */
36
+ const RadioGroupOption = RadioGroupPrimitive.Item;
37
+
38
+ //#endregion
39
+ export { RadioGroup, RadioGroupItem, RadioGroupOption };
@@ -0,0 +1,34 @@
1
+ import * as react26 from "react";
2
+ import * as ResizablePrimitive from "react-resizable-panels";
3
+
4
+ //#region src/components/resizable.d.ts
5
+ declare const ResizablePanelGroup: ({
6
+ className,
7
+ ...props
8
+ }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react26.JSX.Element;
9
+ declare const ResizablePanel: react26.ForwardRefExoticComponent<Omit<react26.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLSpanElement | HTMLDivElement | HTMLTextAreaElement | HTMLHeadingElement | HTMLParagraphElement | HTMLInputElement | HTMLAnchorElement | HTMLLabelElement | HTMLUListElement | HTMLLIElement | HTMLOListElement | HTMLImageElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
10
+ className?: string;
11
+ collapsedSize?: number | undefined;
12
+ collapsible?: boolean | undefined;
13
+ defaultSize?: number | undefined;
14
+ id?: string;
15
+ maxSize?: number | undefined;
16
+ minSize?: number | undefined;
17
+ onCollapse?: ResizablePrimitive.PanelOnCollapse;
18
+ onExpand?: ResizablePrimitive.PanelOnExpand;
19
+ onResize?: ResizablePrimitive.PanelOnResize;
20
+ order?: number;
21
+ style?: object;
22
+ tagName?: keyof HTMLElementTagNameMap | undefined;
23
+ } & {
24
+ children?: react26.ReactNode | undefined;
25
+ } & react26.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
26
+ declare const ResizableHandle: ({
27
+ withHandle,
28
+ className,
29
+ ...props
30
+ }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
31
+ withHandle?: boolean;
32
+ }) => react26.JSX.Element;
33
+ //#endregion
34
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { GripVertical } from "lucide-react";
7
+ import * as ResizablePrimitive from "react-resizable-panels";
8
+
9
+ //#region src/components/resizable.tsx
10
+ const ResizablePanelGroup = ({ className,...props }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelGroup, {
11
+ className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
12
+ ...props
13
+ });
14
+ const ResizablePanel = ResizablePrimitive.Panel;
15
+ const ResizableHandle = ({ withHandle, className,...props }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelResizeHandle, {
16
+ className: cn("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 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-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
17
+ ...props,
18
+ children: withHandle && /* @__PURE__ */ jsx("div", {
19
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
20
+ children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" })
21
+ })
22
+ });
23
+
24
+ //#endregion
25
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+
4
+ //#region src/components/scroll-area.d.ts
5
+ declare const ScrollArea: React.NamedExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
6
+ viewportRef?: React.Ref<React.ComponentRef<typeof ScrollAreaPrimitive.Viewport>>;
7
+ viewportClassName?: string;
8
+ } & React.RefAttributes<HTMLDivElement>>;
9
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ //#endregion
11
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,35 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
8
+
9
+ //#region src/components/scroll-area.tsx
10
+ const ScrollArea = React.memo(React.forwardRef(({ className, children, viewportRef, viewportClassName,...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
11
+ ref,
12
+ className: cn("relative overflow-hidden", className),
13
+ ...props,
14
+ children: [
15
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
16
+ className: cn("h-full w-full rounded-[inherit] sf-scroll-viewport", viewportClassName),
17
+ ref: viewportRef,
18
+ children
19
+ }),
20
+ /* @__PURE__ */ jsx(ScrollBar, {}),
21
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
22
+ ]
23
+ })));
24
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
25
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical",...props }, ref) => /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
26
+ ref,
27
+ orientation,
28
+ className: cn("flex touch-none select-none transition-colors", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px", className),
29
+ ...props,
30
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
31
+ }));
32
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
33
+
34
+ //#endregion
35
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+
4
+ //#region src/components/select.d.ts
5
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
6
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
7
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
8
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ //#endregion
16
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,77 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Check, ChevronDown, ChevronUp } from "lucide-react";
8
+ import * as SelectPrimitive from "@radix-ui/react-select";
9
+
10
+ //#region src/components/select.tsx
11
+ const Select = SelectPrimitive.Root;
12
+ const SelectGroup = SelectPrimitive.Group;
13
+ const SelectValue = SelectPrimitive.Value;
14
+ const SelectTrigger = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
15
+ ref,
16
+ className: cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs ring-offset-background data-placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className),
17
+ ...props,
18
+ children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
19
+ asChild: true,
20
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" })
21
+ })]
22
+ }));
23
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
24
+ const SelectScrollUpButton = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
25
+ ref,
26
+ className: cn("flex cursor-default items-center justify-center py-1", className),
27
+ ...props,
28
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
29
+ }));
30
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
31
+ const SelectScrollDownButton = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
32
+ ref,
33
+ className: cn("flex cursor-default items-center justify-center py-1", className),
34
+ ...props,
35
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
36
+ }));
37
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
38
+ const SelectContent = React.forwardRef(({ className, children, position = "popper",...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
39
+ ref,
40
+ className: cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-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 origin-(--radix-select-content-transform-origin)", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
41
+ position,
42
+ ...props,
43
+ children: [
44
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
45
+ /* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
46
+ className: cn("p-1", position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),
47
+ children
48
+ }),
49
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
50
+ ]
51
+ }) }));
52
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
53
+ const SelectLabel = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, {
54
+ ref,
55
+ className: cn("px-2 py-1.5 text-sm font-semibold", className),
56
+ ...props
57
+ }));
58
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
59
+ const SelectItem = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
60
+ ref,
61
+ className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50", className),
62
+ ...props,
63
+ children: [/* @__PURE__ */ jsx("span", {
64
+ className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
65
+ children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
66
+ }), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
67
+ }));
68
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
69
+ const SelectSeparator = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
70
+ ref,
71
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
72
+ ...props
73
+ }));
74
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
75
+
76
+ //#endregion
77
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+
4
+ //#region src/components/separator.d.ts
5
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ //#endregion
7
+ export { Separator };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+
3
+
4
+ import { cn } from "../lib/utils.js";
5
+ import * as React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
8
+
9
+ //#region src/components/separator.tsx
10
+ const Separator = React.forwardRef(({ className, orientation = "horizontal", decorative = true,...props }, ref) => /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
11
+ ref,
12
+ decorative,
13
+ orientation,
14
+ className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className),
15
+ ...props
16
+ }));
17
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
18
+
19
+ //#endregion
20
+ export { Separator };
@@ -0,0 +1,34 @@
1
+ import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
4
+ import * as class_variance_authority_types2 from "class-variance-authority/types";
5
+
6
+ //#region src/components/sheet.d.ts
7
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
8
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const sheetVariants: (props?: ({
13
+ side?: "top" | "bottom" | "left" | "right" | null | undefined;
14
+ } & class_variance_authority_types2.ClassProp) | undefined) => string;
15
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
16
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const SheetHeader: {
18
+ ({
19
+ className,
20
+ ...props
21
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare const SheetFooter: {
25
+ ({
26
+ className,
27
+ ...props
28
+ }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
29
+ displayName: string;
30
+ };
31
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
32
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
33
+ //#endregion
34
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };