@arolariu/components 0.0.2 → 0.0.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.
Files changed (106) hide show
  1. package/dist/cjs/components/ui/accordion.js +1 -0
  2. package/dist/cjs/components/ui/alert-dialog.js +1 -0
  3. package/dist/cjs/components/ui/alert.js +1 -0
  4. package/dist/cjs/components/ui/aspect-ratio.js +1 -0
  5. package/dist/cjs/components/ui/avatar.js +1 -0
  6. package/dist/cjs/components/ui/badge.js +1 -0
  7. package/dist/cjs/components/ui/breadcrumb.js +1 -0
  8. package/dist/cjs/components/ui/button.js +1 -0
  9. package/dist/cjs/components/ui/calendar.js +1 -0
  10. package/dist/cjs/components/ui/card.js +1 -0
  11. package/dist/cjs/components/ui/carousel.js +1 -0
  12. package/dist/cjs/components/ui/chart.js +7 -0
  13. package/dist/cjs/components/ui/checkbox.js +1 -0
  14. package/dist/cjs/components/ui/collapsible.js +1 -0
  15. package/dist/cjs/components/ui/command.js +1 -0
  16. package/dist/cjs/components/ui/context-menu.js +1 -0
  17. package/dist/cjs/components/ui/dialog.js +1 -0
  18. package/dist/cjs/components/ui/drawer.js +1 -0
  19. package/dist/cjs/components/ui/dropdown-menu.js +1 -0
  20. package/dist/cjs/components/ui/form.js +1 -0
  21. package/dist/cjs/components/ui/hover-card.js +1 -0
  22. package/dist/cjs/components/ui/input-otp.js +1 -0
  23. package/dist/cjs/components/ui/input.js +1 -0
  24. package/dist/cjs/components/ui/label.js +1 -0
  25. package/dist/cjs/components/ui/menubar.js +1 -0
  26. package/dist/cjs/components/ui/navigation-menu.js +1 -0
  27. package/dist/cjs/components/ui/pagination.js +1 -0
  28. package/dist/cjs/components/ui/popover.js +1 -0
  29. package/dist/cjs/components/ui/progress.js +1 -0
  30. package/dist/cjs/components/ui/radio-group.js +1 -0
  31. package/dist/cjs/components/ui/resizable.js +1 -0
  32. package/dist/cjs/components/ui/scroll-area.js +1 -0
  33. package/dist/cjs/components/ui/select.js +1 -0
  34. package/dist/cjs/components/ui/separator.js +1 -0
  35. package/dist/cjs/components/ui/sheet.js +1 -0
  36. package/dist/cjs/components/ui/sidebar.js +1 -0
  37. package/dist/cjs/components/ui/skeleton.js +1 -0
  38. package/dist/cjs/components/ui/slider.js +1 -0
  39. package/dist/cjs/components/ui/sonner.js +1 -0
  40. package/dist/cjs/components/ui/switch.js +1 -0
  41. package/dist/cjs/components/ui/table.js +1 -0
  42. package/dist/cjs/components/ui/tabs.js +1 -0
  43. package/dist/cjs/components/ui/textarea.js +1 -0
  44. package/dist/cjs/components/ui/toggle-group.js +1 -0
  45. package/dist/cjs/components/ui/toggle.js +1 -0
  46. package/dist/cjs/components/ui/tooltip.js +1 -0
  47. package/dist/cjs/hooks/use-mobile.js +1 -0
  48. package/dist/cjs/index.js +1 -0
  49. package/dist/cjs/lib/utils.js +1 -0
  50. package/dist/es/components/ui/accordion.js +64 -0
  51. package/dist/es/components/ui/alert-dialog.js +146 -0
  52. package/dist/es/components/ui/alert.js +66 -0
  53. package/dist/es/components/ui/aspect-ratio.js +10 -0
  54. package/dist/es/components/ui/avatar.js +53 -0
  55. package/dist/es/components/ui/badge.js +39 -0
  56. package/dist/es/components/ui/breadcrumb.js +102 -0
  57. package/dist/es/components/ui/button.js +49 -0
  58. package/dist/es/components/ui/calendar.js +61 -0
  59. package/dist/es/components/ui/card.js +73 -0
  60. package/dist/es/components/ui/carousel.js +177 -0
  61. package/dist/es/components/ui/chart.js +215 -0
  62. package/dist/es/components/ui/checkbox.js +31 -0
  63. package/dist/es/components/ui/collapsible.js +34 -0
  64. package/dist/es/components/ui/command.js +161 -0
  65. package/dist/es/components/ui/context-menu.js +223 -0
  66. package/dist/es/components/ui/dialog.js +128 -0
  67. package/dist/es/components/ui/drawer.js +125 -0
  68. package/dist/es/components/ui/dropdown-menu.js +231 -0
  69. package/dist/es/components/ui/form.js +101 -0
  70. package/dist/es/components/ui/hover-card.js +38 -0
  71. package/dist/es/components/ui/input-otp.js +65 -0
  72. package/dist/es/components/ui/input.js +21 -0
  73. package/dist/es/components/ui/label.js +22 -0
  74. package/dist/es/components/ui/menubar.js +251 -0
  75. package/dist/es/components/ui/navigation-menu.js +170 -0
  76. package/dist/es/components/ui/pagination.js +118 -0
  77. package/dist/es/components/ui/popover.js +44 -0
  78. package/dist/es/components/ui/progress.js +31 -0
  79. package/dist/es/components/ui/radio-group.js +45 -0
  80. package/dist/es/components/ui/resizable.js +48 -0
  81. package/dist/es/components/ui/scroll-area.js +60 -0
  82. package/dist/es/components/ui/select.js +167 -0
  83. package/dist/es/components/ui/separator.js +26 -0
  84. package/dist/es/components/ui/sheet.js +126 -0
  85. package/dist/es/components/ui/sidebar.js +590 -0
  86. package/dist/es/components/ui/skeleton.js +15 -0
  87. package/dist/es/components/ui/slider.js +63 -0
  88. package/dist/es/components/ui/sonner.js +25 -0
  89. package/dist/es/components/ui/switch.js +31 -0
  90. package/dist/es/components/ui/table.js +114 -0
  91. package/dist/es/components/ui/tabs.js +67 -0
  92. package/dist/es/components/ui/textarea.js +18 -0
  93. package/dist/es/components/ui/toggle-group.js +62 -0
  94. package/dist/es/components/ui/toggle.js +43 -0
  95. package/dist/es/components/ui/tooltip.js +55 -0
  96. package/dist/es/hooks/use-mobile.js +14 -0
  97. package/dist/es/index.js +291 -0
  98. package/dist/es/lib/utils.js +8 -0
  99. package/dist/umd/arolariu-components.umd.js +7 -0
  100. package/package.json +11 -3
  101. package/dist/arolariu-components.cjs.js +0 -38
  102. package/dist/arolariu-components.cjs.js.map +0 -1
  103. package/dist/arolariu-components.es.js +0 -4643
  104. package/dist/arolariu-components.es.js.map +0 -1
  105. package/dist/arolariu-components.umd.js +0 -38
  106. package/dist/arolariu-components.umd.js.map +0 -1
@@ -0,0 +1,118 @@
1
+ import { jsx as i, jsxs as e } from "react/jsx-runtime";
2
+ import { ChevronLeftIcon as l, ChevronRightIcon as c, MoreHorizontalIcon as p } from "lucide-react";
3
+ import { cn as t } from "../../lib/utils.js";
4
+ import { buttonVariants as u } from "./button.js";
5
+ function h({ className: a, ...n }) {
6
+ return /* @__PURE__ */ i(
7
+ "nav",
8
+ {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ "data-slot": "pagination",
12
+ className: t("mx-auto flex w-full justify-center", a),
13
+ ...n
14
+ }
15
+ );
16
+ }
17
+ function x({
18
+ className: a,
19
+ ...n
20
+ }) {
21
+ return /* @__PURE__ */ i(
22
+ "ul",
23
+ {
24
+ "data-slot": "pagination-content",
25
+ className: t("flex flex-row items-center gap-1", a),
26
+ ...n
27
+ }
28
+ );
29
+ }
30
+ function N({ ...a }) {
31
+ return /* @__PURE__ */ i("li", { "data-slot": "pagination-item", ...a });
32
+ }
33
+ function o({
34
+ className: a,
35
+ isActive: n,
36
+ size: r = "icon",
37
+ ...s
38
+ }) {
39
+ return /* @__PURE__ */ i(
40
+ "a",
41
+ {
42
+ "aria-current": n ? "page" : void 0,
43
+ "data-slot": "pagination-link",
44
+ "data-active": n,
45
+ className: t(
46
+ u({
47
+ variant: n ? "outline" : "ghost",
48
+ size: r
49
+ }),
50
+ a
51
+ ),
52
+ ...s
53
+ }
54
+ );
55
+ }
56
+ function P({
57
+ className: a,
58
+ ...n
59
+ }) {
60
+ return /* @__PURE__ */ e(
61
+ o,
62
+ {
63
+ "aria-label": "Go to previous page",
64
+ size: "default",
65
+ className: t("gap-1 px-2.5 sm:pl-2.5", a),
66
+ ...n,
67
+ children: [
68
+ /* @__PURE__ */ i(l, {}),
69
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Previous" })
70
+ ]
71
+ }
72
+ );
73
+ }
74
+ function v({
75
+ className: a,
76
+ ...n
77
+ }) {
78
+ return /* @__PURE__ */ e(
79
+ o,
80
+ {
81
+ "aria-label": "Go to next page",
82
+ size: "default",
83
+ className: t("gap-1 px-2.5 sm:pr-2.5", a),
84
+ ...n,
85
+ children: [
86
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Next" }),
87
+ /* @__PURE__ */ i(c, {})
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ function b({
93
+ className: a,
94
+ ...n
95
+ }) {
96
+ return /* @__PURE__ */ e(
97
+ "span",
98
+ {
99
+ "aria-hidden": !0,
100
+ "data-slot": "pagination-ellipsis",
101
+ className: t("flex size-9 items-center justify-center", a),
102
+ ...n,
103
+ children: [
104
+ /* @__PURE__ */ i(p, { className: "size-4" }),
105
+ /* @__PURE__ */ i("span", { className: "sr-only", children: "More pages" })
106
+ ]
107
+ }
108
+ );
109
+ }
110
+ export {
111
+ h as Pagination,
112
+ x as PaginationContent,
113
+ b as PaginationEllipsis,
114
+ N as PaginationItem,
115
+ o as PaginationLink,
116
+ v as PaginationNext,
117
+ P as PaginationPrevious
118
+ };
@@ -0,0 +1,44 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as e from "@radix-ui/react-popover";
3
+ import { cn as d } from "../../lib/utils.js";
4
+ function p({
5
+ ...t
6
+ }) {
7
+ return /* @__PURE__ */ o(e.Root, { "data-slot": "popover", ...t });
8
+ }
9
+ function l({
10
+ ...t
11
+ }) {
12
+ return /* @__PURE__ */ o(e.Trigger, { "data-slot": "popover-trigger", ...t });
13
+ }
14
+ function m({
15
+ className: t,
16
+ align: r = "center",
17
+ sideOffset: a = 4,
18
+ ...n
19
+ }) {
20
+ return /* @__PURE__ */ o(e.Portal, { children: /* @__PURE__ */ o(
21
+ e.Content,
22
+ {
23
+ "data-slot": "popover-content",
24
+ align: r,
25
+ sideOffset: a,
26
+ className: d(
27
+ "bg-white text-neutral-950 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 z-50 w-72 rounded-md border border-neutral-200 p-4 shadow-md outline-hidden dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
28
+ t
29
+ ),
30
+ ...n
31
+ }
32
+ ) });
33
+ }
34
+ function u({
35
+ ...t
36
+ }) {
37
+ return /* @__PURE__ */ o(e.Anchor, { "data-slot": "popover-anchor", ...t });
38
+ }
39
+ export {
40
+ p as Popover,
41
+ u as PopoverAnchor,
42
+ m as PopoverContent,
43
+ l as PopoverTrigger
44
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-progress";
3
+ import { cn as e } from "../../lib/utils.js";
4
+ function i({
5
+ className: l,
6
+ value: a,
7
+ ...o
8
+ }) {
9
+ return /* @__PURE__ */ r(
10
+ t.Root,
11
+ {
12
+ "data-slot": "progress",
13
+ className: e(
14
+ "bg-neutral-900/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-neutral-50/20",
15
+ l
16
+ ),
17
+ ...o,
18
+ children: /* @__PURE__ */ r(
19
+ t.Indicator,
20
+ {
21
+ "data-slot": "progress-indicator",
22
+ className: "bg-neutral-900 h-full w-full flex-1 transition-all dark:bg-neutral-50",
23
+ style: { transform: `translateX(-${100 - (a || 0)}%)` }
24
+ }
25
+ )
26
+ }
27
+ );
28
+ }
29
+ export {
30
+ i as Progress
31
+ };
@@ -0,0 +1,45 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as e from "@radix-ui/react-radio-group";
3
+ import { CircleIcon as t } from "lucide-react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ function s({
6
+ className: a,
7
+ ...i
8
+ }) {
9
+ return /* @__PURE__ */ r(
10
+ e.Root,
11
+ {
12
+ "data-slot": "radio-group",
13
+ className: o("grid gap-3", a),
14
+ ...i
15
+ }
16
+ );
17
+ }
18
+ function u({
19
+ className: a,
20
+ ...i
21
+ }) {
22
+ return /* @__PURE__ */ r(
23
+ e.Item,
24
+ {
25
+ "data-slot": "radio-group-item",
26
+ className: o(
27
+ "border-neutral-200 text-neutral-900 focus-visible:border-neutral-950 focus-visible:ring-neutral-950/50 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:text-neutral-50 dark:focus-visible:border-neutral-300 dark:focus-visible:ring-neutral-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",
28
+ a
29
+ ),
30
+ ...i,
31
+ children: /* @__PURE__ */ r(
32
+ e.Indicator,
33
+ {
34
+ "data-slot": "radio-group-indicator",
35
+ className: "relative flex items-center justify-center",
36
+ children: /* @__PURE__ */ r(t, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
37
+ }
38
+ )
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ s as RadioGroup,
44
+ u as RadioGroupItem
45
+ };
@@ -0,0 +1,48 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { GripVerticalIcon as n } from "lucide-react";
3
+ import * as t from "react-resizable-panels";
4
+ import { cn as l } from "../../lib/utils.js";
5
+ function u({
6
+ className: e,
7
+ ...r
8
+ }) {
9
+ return /* @__PURE__ */ a(
10
+ t.PanelGroup,
11
+ {
12
+ "data-slot": "resizable-panel-group",
13
+ className: l(
14
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
15
+ e
16
+ ),
17
+ ...r
18
+ }
19
+ );
20
+ }
21
+ function d({
22
+ ...e
23
+ }) {
24
+ return /* @__PURE__ */ a(t.Panel, { "data-slot": "resizable-panel", ...e });
25
+ }
26
+ function f({
27
+ withHandle: e,
28
+ className: r,
29
+ ...i
30
+ }) {
31
+ return /* @__PURE__ */ a(
32
+ t.PanelResizeHandle,
33
+ {
34
+ "data-slot": "resizable-handle",
35
+ className: l(
36
+ "bg-neutral-200 focus-visible:ring-neutral-950 relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 dark:bg-neutral-800 dark:focus-visible:ring-neutral-300",
37
+ r
38
+ ),
39
+ ...i,
40
+ children: e && /* @__PURE__ */ a("div", { className: "bg-neutral-200 z-10 flex h-4 w-3 items-center justify-center rounded-xs border dark:bg-neutral-800", children: /* @__PURE__ */ a(n, { className: "size-2.5" }) })
41
+ }
42
+ );
43
+ }
44
+ export {
45
+ f as ResizableHandle,
46
+ d as ResizablePanel,
47
+ u as ResizablePanelGroup
48
+ };
@@ -0,0 +1,60 @@
1
+ import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-scroll-area";
3
+ import { cn as t } from "../../lib/utils.js";
4
+ function u({
5
+ className: e,
6
+ children: r,
7
+ ...o
8
+ }) {
9
+ return /* @__PURE__ */ n(
10
+ a.Root,
11
+ {
12
+ "data-slot": "scroll-area",
13
+ className: t("relative", e),
14
+ ...o,
15
+ children: [
16
+ /* @__PURE__ */ l(
17
+ a.Viewport,
18
+ {
19
+ "data-slot": "scroll-area-viewport",
20
+ className: "ring-neutral-950/10 dark:ring-neutral-950/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:ring-neutral-300/10 dark:dark:ring-neutral-300/20",
21
+ children: r
22
+ }
23
+ ),
24
+ /* @__PURE__ */ l(i, {}),
25
+ /* @__PURE__ */ l(a.Corner, {})
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ function i({
31
+ className: e,
32
+ orientation: r = "vertical",
33
+ ...o
34
+ }) {
35
+ return /* @__PURE__ */ l(
36
+ a.ScrollAreaScrollbar,
37
+ {
38
+ "data-slot": "scroll-area-scrollbar",
39
+ orientation: r,
40
+ className: t(
41
+ "flex touch-none p-px transition-colors select-none",
42
+ r === "vertical" && "h-full w-2.5 border-l border-l-transparent",
43
+ r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
44
+ e
45
+ ),
46
+ ...o,
47
+ children: /* @__PURE__ */ l(
48
+ a.ScrollAreaThumb,
49
+ {
50
+ "data-slot": "scroll-area-thumb",
51
+ className: "bg-neutral-200 relative flex-1 rounded-full dark:bg-neutral-800"
52
+ }
53
+ )
54
+ }
55
+ );
56
+ }
57
+ export {
58
+ u as ScrollArea,
59
+ i as ScrollBar
60
+ };
@@ -0,0 +1,167 @@
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-select";
3
+ import { ChevronDownIcon as o, CheckIcon as d, ChevronUpIcon as c } from "lucide-react";
4
+ import { cn as l } from "../../lib/utils.js";
5
+ function x({
6
+ ...e
7
+ }) {
8
+ return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
9
+ }
10
+ function v({
11
+ ...e
12
+ }) {
13
+ return /* @__PURE__ */ t(a.Group, { "data-slot": "select-group", ...e });
14
+ }
15
+ function b({
16
+ ...e
17
+ }) {
18
+ return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
19
+ }
20
+ function h({
21
+ className: e,
22
+ children: r,
23
+ ...s
24
+ }) {
25
+ return /* @__PURE__ */ n(
26
+ a.Trigger,
27
+ {
28
+ "data-slot": "select-trigger",
29
+ className: l(
30
+ "border-neutral-200 data-[placeholder]:text-neutral-500 [&_svg:not([class*='text-'])]:text-neutral-500 focus-visible:border-neutral-950 focus-visible:ring-neutral-950/50 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 flex h-9 w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:border-neutral-800 dark:data-[placeholder]:text-neutral-400 dark:[&_svg:not([class*='text-'])]:text-neutral-400 dark:focus-visible:border-neutral-300 dark:focus-visible:ring-neutral-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",
31
+ e
32
+ ),
33
+ ...s,
34
+ children: [
35
+ r,
36
+ /* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(o, { className: "size-4 opacity-50" }) })
37
+ ]
38
+ }
39
+ );
40
+ }
41
+ function k({
42
+ className: e,
43
+ children: r,
44
+ position: s = "popper",
45
+ ...i
46
+ }) {
47
+ return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ n(
48
+ a.Content,
49
+ {
50
+ "data-slot": "select-content",
51
+ className: l(
52
+ "bg-white text-neutral-950 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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 shadow-md dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
53
+ s === "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",
54
+ e
55
+ ),
56
+ position: s,
57
+ ...i,
58
+ children: [
59
+ /* @__PURE__ */ t(u, {}),
60
+ /* @__PURE__ */ t(
61
+ a.Viewport,
62
+ {
63
+ className: l(
64
+ "p-1",
65
+ s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
66
+ ),
67
+ children: r
68
+ }
69
+ ),
70
+ /* @__PURE__ */ t(m, {})
71
+ ]
72
+ }
73
+ ) });
74
+ }
75
+ function w({
76
+ className: e,
77
+ ...r
78
+ }) {
79
+ return /* @__PURE__ */ t(
80
+ a.Label,
81
+ {
82
+ "data-slot": "select-label",
83
+ className: l("px-2 py-1.5 text-sm font-medium", e),
84
+ ...r
85
+ }
86
+ );
87
+ }
88
+ function S({
89
+ className: e,
90
+ children: r,
91
+ ...s
92
+ }) {
93
+ return /* @__PURE__ */ n(
94
+ a.Item,
95
+ {
96
+ "data-slot": "select-item",
97
+ className: l(
98
+ "focus:bg-neutral-100 focus:text-neutral-900 [&_svg:not([class*='text-'])]:text-neutral-500 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 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 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
99
+ e
100
+ ),
101
+ ...s,
102
+ children: [
103
+ /* @__PURE__ */ t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(d, { className: "size-4" }) }) }),
104
+ /* @__PURE__ */ t(a.ItemText, { children: r })
105
+ ]
106
+ }
107
+ );
108
+ }
109
+ function y({
110
+ className: e,
111
+ ...r
112
+ }) {
113
+ return /* @__PURE__ */ t(
114
+ a.Separator,
115
+ {
116
+ "data-slot": "select-separator",
117
+ className: l("bg-neutral-200 pointer-events-none -mx-1 my-1 h-px dark:bg-neutral-800", e),
118
+ ...r
119
+ }
120
+ );
121
+ }
122
+ function u({
123
+ className: e,
124
+ ...r
125
+ }) {
126
+ return /* @__PURE__ */ t(
127
+ a.ScrollUpButton,
128
+ {
129
+ "data-slot": "select-scroll-up-button",
130
+ className: l(
131
+ "flex cursor-default items-center justify-center py-1",
132
+ e
133
+ ),
134
+ ...r,
135
+ children: /* @__PURE__ */ t(c, { className: "size-4" })
136
+ }
137
+ );
138
+ }
139
+ function m({
140
+ className: e,
141
+ ...r
142
+ }) {
143
+ return /* @__PURE__ */ t(
144
+ a.ScrollDownButton,
145
+ {
146
+ "data-slot": "select-scroll-down-button",
147
+ className: l(
148
+ "flex cursor-default items-center justify-center py-1",
149
+ e
150
+ ),
151
+ ...r,
152
+ children: /* @__PURE__ */ t(o, { className: "size-4" })
153
+ }
154
+ );
155
+ }
156
+ export {
157
+ x as Select,
158
+ k as SelectContent,
159
+ v as SelectGroup,
160
+ S as SelectItem,
161
+ w as SelectLabel,
162
+ m as SelectScrollDownButton,
163
+ u as SelectScrollUpButton,
164
+ y as SelectSeparator,
165
+ h as SelectTrigger,
166
+ b as SelectValue
167
+ };
@@ -0,0 +1,26 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-separator";
3
+ import { cn as e } from "../../lib/utils.js";
4
+ function m({
5
+ className: t,
6
+ orientation: a = "horizontal",
7
+ decorative: r = !0,
8
+ ...o
9
+ }) {
10
+ return /* @__PURE__ */ i(
11
+ n.Root,
12
+ {
13
+ "data-slot": "separator-root",
14
+ decorative: r,
15
+ orientation: a,
16
+ className: e(
17
+ "bg-neutral-200 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px dark:bg-neutral-800",
18
+ t
19
+ ),
20
+ ...o
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ m as Separator
26
+ };
@@ -0,0 +1,126 @@
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-dialog";
3
+ import { XIcon as l } from "lucide-react";
4
+ import { cn as s } from "../../lib/utils.js";
5
+ function m({ ...t }) {
6
+ return /* @__PURE__ */ e(o.Root, { "data-slot": "sheet", ...t });
7
+ }
8
+ function p({
9
+ ...t
10
+ }) {
11
+ return /* @__PURE__ */ e(o.Trigger, { "data-slot": "sheet-trigger", ...t });
12
+ }
13
+ function g({
14
+ ...t
15
+ }) {
16
+ return /* @__PURE__ */ e(o.Close, { "data-slot": "sheet-close", ...t });
17
+ }
18
+ function d({
19
+ ...t
20
+ }) {
21
+ return /* @__PURE__ */ e(o.Portal, { "data-slot": "sheet-portal", ...t });
22
+ }
23
+ function u({
24
+ className: t,
25
+ ...a
26
+ }) {
27
+ return /* @__PURE__ */ e(
28
+ o.Overlay,
29
+ {
30
+ "data-slot": "sheet-overlay",
31
+ className: s(
32
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
33
+ t
34
+ ),
35
+ ...a
36
+ }
37
+ );
38
+ }
39
+ function x({
40
+ className: t,
41
+ children: a,
42
+ side: n = "right",
43
+ ...i
44
+ }) {
45
+ return /* @__PURE__ */ r(d, { children: [
46
+ /* @__PURE__ */ e(u, {}),
47
+ /* @__PURE__ */ r(
48
+ o.Content,
49
+ {
50
+ "data-slot": "sheet-content",
51
+ className: s(
52
+ "bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-neutral-950",
53
+ n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
54
+ n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
55
+ n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
56
+ n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
57
+ t
58
+ ),
59
+ ...i,
60
+ children: [
61
+ a,
62
+ /* @__PURE__ */ r(o.Close, { className: "ring-offset-white focus:ring-neutral-950 data-[state=open]:bg-neutral-100 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800", children: [
63
+ /* @__PURE__ */ e(l, { className: "size-4" }),
64
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
65
+ ] })
66
+ ]
67
+ }
68
+ )
69
+ ] });
70
+ }
71
+ function b({ className: t, ...a }) {
72
+ return /* @__PURE__ */ e(
73
+ "div",
74
+ {
75
+ "data-slot": "sheet-header",
76
+ className: s("flex flex-col gap-1.5 p-4", t),
77
+ ...a
78
+ }
79
+ );
80
+ }
81
+ function S({ className: t, ...a }) {
82
+ return /* @__PURE__ */ e(
83
+ "div",
84
+ {
85
+ "data-slot": "sheet-footer",
86
+ className: s("mt-auto flex flex-col gap-2 p-4", t),
87
+ ...a
88
+ }
89
+ );
90
+ }
91
+ function y({
92
+ className: t,
93
+ ...a
94
+ }) {
95
+ return /* @__PURE__ */ e(
96
+ o.Title,
97
+ {
98
+ "data-slot": "sheet-title",
99
+ className: s("text-neutral-950 font-semibold dark:text-neutral-50", t),
100
+ ...a
101
+ }
102
+ );
103
+ }
104
+ function N({
105
+ className: t,
106
+ ...a
107
+ }) {
108
+ return /* @__PURE__ */ e(
109
+ o.Description,
110
+ {
111
+ "data-slot": "sheet-description",
112
+ className: s("text-neutral-500 text-sm dark:text-neutral-400", t),
113
+ ...a
114
+ }
115
+ );
116
+ }
117
+ export {
118
+ m as Sheet,
119
+ g as SheetClose,
120
+ x as SheetContent,
121
+ N as SheetDescription,
122
+ S as SheetFooter,
123
+ b as SheetHeader,
124
+ y as SheetTitle,
125
+ p as SheetTrigger
126
+ };