@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,223 @@
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-context-menu";
3
+ import { CheckIcon as u, CircleIcon as i, ChevronRightIcon as l } from "lucide-react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ e(n.Root, { "data-slot": "context-menu", ...t });
9
+ }
10
+ function p({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ e(n.Trigger, { "data-slot": "context-menu-trigger", ...t });
14
+ }
15
+ function g({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ e(n.Group, { "data-slot": "context-menu-group", ...t });
19
+ }
20
+ function b({
21
+ ...t
22
+ }) {
23
+ return /* @__PURE__ */ e(n.Portal, { "data-slot": "context-menu-portal", ...t });
24
+ }
25
+ function v({
26
+ ...t
27
+ }) {
28
+ return /* @__PURE__ */ e(n.Sub, { "data-slot": "context-menu-sub", ...t });
29
+ }
30
+ function h({
31
+ ...t
32
+ }) {
33
+ return /* @__PURE__ */ e(
34
+ n.RadioGroup,
35
+ {
36
+ "data-slot": "context-menu-radio-group",
37
+ ...t
38
+ }
39
+ );
40
+ }
41
+ function k({
42
+ className: t,
43
+ inset: a,
44
+ children: r,
45
+ ...s
46
+ }) {
47
+ return /* @__PURE__ */ d(
48
+ n.SubTrigger,
49
+ {
50
+ "data-slot": "context-menu-sub-trigger",
51
+ "data-inset": a,
52
+ className: o(
53
+ "focus:bg-neutral-100 focus:text-neutral-900 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-900 flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
54
+ t
55
+ ),
56
+ ...s,
57
+ children: [
58
+ r,
59
+ /* @__PURE__ */ e(l, { className: "ml-auto" })
60
+ ]
61
+ }
62
+ );
63
+ }
64
+ function C({
65
+ className: t,
66
+ ...a
67
+ }) {
68
+ return /* @__PURE__ */ e(
69
+ n.SubContent,
70
+ {
71
+ "data-slot": "context-menu-sub-content",
72
+ className: o(
73
+ "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 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-lg dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
74
+ t
75
+ ),
76
+ ...a
77
+ }
78
+ );
79
+ }
80
+ function z({
81
+ className: t,
82
+ ...a
83
+ }) {
84
+ return /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
85
+ n.Content,
86
+ {
87
+ "data-slot": "context-menu-content",
88
+ className: o(
89
+ "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 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-md dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
90
+ t
91
+ ),
92
+ ...a
93
+ }
94
+ ) });
95
+ }
96
+ function M({
97
+ className: t,
98
+ inset: a,
99
+ variant: r = "default",
100
+ ...s
101
+ }) {
102
+ return /* @__PURE__ */ e(
103
+ n.Item,
104
+ {
105
+ "data-slot": "context-menu-item",
106
+ "data-inset": a,
107
+ "data-variant": r,
108
+ className: o(
109
+ "focus:bg-neutral-100 focus:text-neutral-900 data-[variant=destructive]:text-neutral-50 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/40 data-[variant=destructive]:focus:text-neutral-50 data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-neutral-500 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[variant=destructive]:text-neutral-50 dark:data-[variant=destructive]:focus:bg-red-900/10 dark:dark:data-[variant=destructive]:focus:bg-red-900/40 dark:data-[variant=destructive]:focus:text-neutral-50 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
110
+ t
111
+ ),
112
+ ...s
113
+ }
114
+ );
115
+ }
116
+ function N({
117
+ className: t,
118
+ children: a,
119
+ checked: r,
120
+ ...s
121
+ }) {
122
+ return /* @__PURE__ */ d(
123
+ n.CheckboxItem,
124
+ {
125
+ "data-slot": "context-menu-checkbox-item",
126
+ className: o(
127
+ "focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
128
+ t
129
+ ),
130
+ checked: r,
131
+ ...s,
132
+ children: [
133
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(u, { className: "size-4" }) }) }),
134
+ a
135
+ ]
136
+ }
137
+ );
138
+ }
139
+ function _({
140
+ className: t,
141
+ children: a,
142
+ ...r
143
+ }) {
144
+ return /* @__PURE__ */ d(
145
+ n.RadioItem,
146
+ {
147
+ "data-slot": "context-menu-radio-item",
148
+ className: o(
149
+ "focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
150
+ t
151
+ ),
152
+ ...r,
153
+ children: [
154
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(i, { className: "size-2 fill-current" }) }) }),
155
+ a
156
+ ]
157
+ }
158
+ );
159
+ }
160
+ function I({
161
+ className: t,
162
+ inset: a,
163
+ ...r
164
+ }) {
165
+ return /* @__PURE__ */ e(
166
+ n.Label,
167
+ {
168
+ "data-slot": "context-menu-label",
169
+ "data-inset": a,
170
+ className: o(
171
+ "text-neutral-950 px-2 py-1.5 text-sm font-medium data-[inset]:pl-8 dark:text-neutral-50",
172
+ t
173
+ ),
174
+ ...r
175
+ }
176
+ );
177
+ }
178
+ function y({
179
+ className: t,
180
+ ...a
181
+ }) {
182
+ return /* @__PURE__ */ e(
183
+ n.Separator,
184
+ {
185
+ "data-slot": "context-menu-separator",
186
+ className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t),
187
+ ...a
188
+ }
189
+ );
190
+ }
191
+ function w({
192
+ className: t,
193
+ ...a
194
+ }) {
195
+ return /* @__PURE__ */ e(
196
+ "span",
197
+ {
198
+ "data-slot": "context-menu-shortcut",
199
+ className: o(
200
+ "text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
201
+ t
202
+ ),
203
+ ...a
204
+ }
205
+ );
206
+ }
207
+ export {
208
+ f as ContextMenu,
209
+ N as ContextMenuCheckboxItem,
210
+ z as ContextMenuContent,
211
+ g as ContextMenuGroup,
212
+ M as ContextMenuItem,
213
+ I as ContextMenuLabel,
214
+ b as ContextMenuPortal,
215
+ h as ContextMenuRadioGroup,
216
+ _ as ContextMenuRadioItem,
217
+ y as ContextMenuSeparator,
218
+ w as ContextMenuShortcut,
219
+ v as ContextMenuSub,
220
+ C as ContextMenuSubContent,
221
+ k as ContextMenuSubTrigger,
222
+ p as ContextMenuTrigger
223
+ };
@@ -0,0 +1,128 @@
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-dialog";
3
+ import { XIcon as i } from "lucide-react";
4
+ import { cn as n } from "../../lib/utils.js";
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
9
+ }
10
+ function m({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
14
+ }
15
+ function s({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
19
+ }
20
+ function p({
21
+ ...t
22
+ }) {
23
+ return /* @__PURE__ */ a(o.Close, { "data-slot": "dialog-close", ...t });
24
+ }
25
+ function d({
26
+ className: t,
27
+ ...e
28
+ }) {
29
+ return /* @__PURE__ */ a(
30
+ o.Overlay,
31
+ {
32
+ "data-slot": "dialog-overlay",
33
+ className: n(
34
+ "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",
35
+ t
36
+ ),
37
+ ...e
38
+ }
39
+ );
40
+ }
41
+ function x({
42
+ className: t,
43
+ children: e,
44
+ ...r
45
+ }) {
46
+ return /* @__PURE__ */ l(s, { "data-slot": "dialog-portal", children: [
47
+ /* @__PURE__ */ a(d, {}),
48
+ /* @__PURE__ */ l(
49
+ o.Content,
50
+ {
51
+ "data-slot": "dialog-content",
52
+ className: n(
53
+ "bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-neutral-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-neutral-950 dark:border-neutral-800",
54
+ t
55
+ ),
56
+ ...r,
57
+ children: [
58
+ e,
59
+ /* @__PURE__ */ l(o.Close, { className: "ring-offset-white focus:ring-neutral-950 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400", children: [
60
+ /* @__PURE__ */ a(i, {}),
61
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
62
+ ] })
63
+ ]
64
+ }
65
+ )
66
+ ] });
67
+ }
68
+ function v({ className: t, ...e }) {
69
+ return /* @__PURE__ */ a(
70
+ "div",
71
+ {
72
+ "data-slot": "dialog-header",
73
+ className: n("flex flex-col gap-2 text-center sm:text-left", t),
74
+ ...e
75
+ }
76
+ );
77
+ }
78
+ function D({ className: t, ...e }) {
79
+ return /* @__PURE__ */ a(
80
+ "div",
81
+ {
82
+ "data-slot": "dialog-footer",
83
+ className: n(
84
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
85
+ t
86
+ ),
87
+ ...e
88
+ }
89
+ );
90
+ }
91
+ function b({
92
+ className: t,
93
+ ...e
94
+ }) {
95
+ return /* @__PURE__ */ a(
96
+ o.Title,
97
+ {
98
+ "data-slot": "dialog-title",
99
+ className: n("text-lg leading-none font-semibold", t),
100
+ ...e
101
+ }
102
+ );
103
+ }
104
+ function h({
105
+ className: t,
106
+ ...e
107
+ }) {
108
+ return /* @__PURE__ */ a(
109
+ o.Description,
110
+ {
111
+ "data-slot": "dialog-description",
112
+ className: n("text-neutral-500 text-sm dark:text-neutral-400", t),
113
+ ...e
114
+ }
115
+ );
116
+ }
117
+ export {
118
+ f as Dialog,
119
+ p as DialogClose,
120
+ x as DialogContent,
121
+ h as DialogDescription,
122
+ D as DialogFooter,
123
+ v as DialogHeader,
124
+ d as DialogOverlay,
125
+ s as DialogPortal,
126
+ b as DialogTitle,
127
+ m as DialogTrigger
128
+ };
@@ -0,0 +1,125 @@
1
+ import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
+ import { Drawer as e } from "vaul";
3
+ import { cn as d } from "../../lib/utils.js";
4
+ function w({
5
+ ...a
6
+ }) {
7
+ return /* @__PURE__ */ r(e.Root, { "data-slot": "drawer", ...a });
8
+ }
9
+ function m({
10
+ ...a
11
+ }) {
12
+ return /* @__PURE__ */ r(e.Trigger, { "data-slot": "drawer-trigger", ...a });
13
+ }
14
+ function i({
15
+ ...a
16
+ }) {
17
+ return /* @__PURE__ */ r(e.Portal, { "data-slot": "drawer-portal", ...a });
18
+ }
19
+ function f({
20
+ ...a
21
+ }) {
22
+ return /* @__PURE__ */ r(e.Close, { "data-slot": "drawer-close", ...a });
23
+ }
24
+ function l({
25
+ className: a,
26
+ ...t
27
+ }) {
28
+ return /* @__PURE__ */ r(
29
+ e.Overlay,
30
+ {
31
+ "data-slot": "drawer-overlay",
32
+ className: d(
33
+ "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",
34
+ a
35
+ ),
36
+ ...t
37
+ }
38
+ );
39
+ }
40
+ function v({
41
+ className: a,
42
+ children: t,
43
+ ...n
44
+ }) {
45
+ return /* @__PURE__ */ o(i, { "data-slot": "drawer-portal", children: [
46
+ /* @__PURE__ */ r(l, {}),
47
+ /* @__PURE__ */ o(
48
+ e.Content,
49
+ {
50
+ "data-slot": "drawer-content",
51
+ className: d(
52
+ "group/drawer-content bg-white fixed z-50 flex h-auto flex-col dark:bg-neutral-950",
53
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg",
54
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
55
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm",
56
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm",
57
+ a
58
+ ),
59
+ ...n,
60
+ children: [
61
+ /* @__PURE__ */ r("div", { className: "bg-neutral-100 mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block dark:bg-neutral-800" }),
62
+ t
63
+ ]
64
+ }
65
+ )
66
+ ] });
67
+ }
68
+ function p({ className: a, ...t }) {
69
+ return /* @__PURE__ */ r(
70
+ "div",
71
+ {
72
+ "data-slot": "drawer-header",
73
+ className: d("flex flex-col gap-1.5 p-4", a),
74
+ ...t
75
+ }
76
+ );
77
+ }
78
+ function x({ className: a, ...t }) {
79
+ return /* @__PURE__ */ r(
80
+ "div",
81
+ {
82
+ "data-slot": "drawer-footer",
83
+ className: d("mt-auto flex flex-col gap-2 p-4", a),
84
+ ...t
85
+ }
86
+ );
87
+ }
88
+ function g({
89
+ className: a,
90
+ ...t
91
+ }) {
92
+ return /* @__PURE__ */ r(
93
+ e.Title,
94
+ {
95
+ "data-slot": "drawer-title",
96
+ className: d("text-neutral-950 font-semibold dark:text-neutral-50", a),
97
+ ...t
98
+ }
99
+ );
100
+ }
101
+ function b({
102
+ className: a,
103
+ ...t
104
+ }) {
105
+ return /* @__PURE__ */ r(
106
+ e.Description,
107
+ {
108
+ "data-slot": "drawer-description",
109
+ className: d("text-neutral-500 text-sm dark:text-neutral-400", a),
110
+ ...t
111
+ }
112
+ );
113
+ }
114
+ export {
115
+ w as Drawer,
116
+ f as DrawerClose,
117
+ v as DrawerContent,
118
+ b as DrawerDescription,
119
+ x as DrawerFooter,
120
+ p as DrawerHeader,
121
+ l as DrawerOverlay,
122
+ i as DrawerPortal,
123
+ g as DrawerTitle,
124
+ m as DrawerTrigger
125
+ };
@@ -0,0 +1,231 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-dropdown-menu";
3
+ import { CheckIcon as u, CircleIcon as i, ChevronRightIcon as l } from "lucide-react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ e(n.Root, { "data-slot": "dropdown-menu", ...t });
9
+ }
10
+ function g({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ e(n.Portal, { "data-slot": "dropdown-menu-portal", ...t });
14
+ }
15
+ function b({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ e(
19
+ n.Trigger,
20
+ {
21
+ "data-slot": "dropdown-menu-trigger",
22
+ ...t
23
+ }
24
+ );
25
+ }
26
+ function x({
27
+ className: t,
28
+ sideOffset: a = 4,
29
+ ...r
30
+ }) {
31
+ return /* @__PURE__ */ e(n.Portal, { children: /* @__PURE__ */ e(
32
+ n.Content,
33
+ {
34
+ "data-slot": "dropdown-menu-content",
35
+ sideOffset: a,
36
+ className: o(
37
+ "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 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-md dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
38
+ t
39
+ ),
40
+ ...r
41
+ }
42
+ ) });
43
+ }
44
+ function v({
45
+ ...t
46
+ }) {
47
+ return /* @__PURE__ */ e(n.Group, { "data-slot": "dropdown-menu-group", ...t });
48
+ }
49
+ function w({
50
+ className: t,
51
+ inset: a,
52
+ variant: r = "default",
53
+ ...d
54
+ }) {
55
+ return /* @__PURE__ */ e(
56
+ n.Item,
57
+ {
58
+ "data-slot": "dropdown-menu-item",
59
+ "data-inset": a,
60
+ "data-variant": r,
61
+ className: o(
62
+ "focus:bg-neutral-100 focus:text-neutral-900 data-[variant=destructive]:text-neutral-50 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/40 data-[variant=destructive]:focus:text-neutral-50 data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-neutral-500 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[variant=destructive]:text-neutral-50 dark:data-[variant=destructive]:focus:bg-red-900/10 dark:dark:data-[variant=destructive]:focus:bg-red-900/40 dark:data-[variant=destructive]:focus:text-neutral-50 dark:[&_svg:not([class*='text-'])]:text-neutral-400",
63
+ t
64
+ ),
65
+ ...d
66
+ }
67
+ );
68
+ }
69
+ function h({
70
+ className: t,
71
+ children: a,
72
+ checked: r,
73
+ ...d
74
+ }) {
75
+ return /* @__PURE__ */ s(
76
+ n.CheckboxItem,
77
+ {
78
+ "data-slot": "dropdown-menu-checkbox-item",
79
+ className: o(
80
+ "focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
81
+ t
82
+ ),
83
+ checked: r,
84
+ ...d,
85
+ children: [
86
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(u, { className: "size-4" }) }) }),
87
+ a
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ function k({
93
+ ...t
94
+ }) {
95
+ return /* @__PURE__ */ e(
96
+ n.RadioGroup,
97
+ {
98
+ "data-slot": "dropdown-menu-radio-group",
99
+ ...t
100
+ }
101
+ );
102
+ }
103
+ function z({
104
+ className: t,
105
+ children: a,
106
+ ...r
107
+ }) {
108
+ return /* @__PURE__ */ s(
109
+ n.RadioItem,
110
+ {
111
+ "data-slot": "dropdown-menu-radio-item",
112
+ className: o(
113
+ "focus:bg-neutral-100 focus:text-neutral-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
114
+ t
115
+ ),
116
+ ...r,
117
+ children: [
118
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(i, { className: "size-2 fill-current" }) }) }),
119
+ a
120
+ ]
121
+ }
122
+ );
123
+ }
124
+ function D({
125
+ className: t,
126
+ inset: a,
127
+ ...r
128
+ }) {
129
+ return /* @__PURE__ */ e(
130
+ n.Label,
131
+ {
132
+ "data-slot": "dropdown-menu-label",
133
+ "data-inset": a,
134
+ className: o(
135
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
136
+ t
137
+ ),
138
+ ...r
139
+ }
140
+ );
141
+ }
142
+ function M({
143
+ className: t,
144
+ ...a
145
+ }) {
146
+ return /* @__PURE__ */ e(
147
+ n.Separator,
148
+ {
149
+ "data-slot": "dropdown-menu-separator",
150
+ className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t),
151
+ ...a
152
+ }
153
+ );
154
+ }
155
+ function N({
156
+ className: t,
157
+ ...a
158
+ }) {
159
+ return /* @__PURE__ */ e(
160
+ "span",
161
+ {
162
+ "data-slot": "dropdown-menu-shortcut",
163
+ className: o(
164
+ "text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400",
165
+ t
166
+ ),
167
+ ...a
168
+ }
169
+ );
170
+ }
171
+ function I({
172
+ ...t
173
+ }) {
174
+ return /* @__PURE__ */ e(n.Sub, { "data-slot": "dropdown-menu-sub", ...t });
175
+ }
176
+ function y({
177
+ className: t,
178
+ inset: a,
179
+ children: r,
180
+ ...d
181
+ }) {
182
+ return /* @__PURE__ */ s(
183
+ n.SubTrigger,
184
+ {
185
+ "data-slot": "dropdown-menu-sub-trigger",
186
+ "data-inset": a,
187
+ className: o(
188
+ "focus:bg-neutral-100 focus:text-neutral-900 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-900 flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
189
+ t
190
+ ),
191
+ ...d,
192
+ children: [
193
+ r,
194
+ /* @__PURE__ */ e(l, { className: "ml-auto size-4" })
195
+ ]
196
+ }
197
+ );
198
+ }
199
+ function _({
200
+ className: t,
201
+ ...a
202
+ }) {
203
+ return /* @__PURE__ */ e(
204
+ n.SubContent,
205
+ {
206
+ "data-slot": "dropdown-menu-sub-content",
207
+ className: o(
208
+ "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 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 p-1 shadow-lg dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800",
209
+ t
210
+ ),
211
+ ...a
212
+ }
213
+ );
214
+ }
215
+ export {
216
+ f as DropdownMenu,
217
+ h as DropdownMenuCheckboxItem,
218
+ x as DropdownMenuContent,
219
+ v as DropdownMenuGroup,
220
+ w as DropdownMenuItem,
221
+ D as DropdownMenuLabel,
222
+ g as DropdownMenuPortal,
223
+ k as DropdownMenuRadioGroup,
224
+ z as DropdownMenuRadioItem,
225
+ M as DropdownMenuSeparator,
226
+ N as DropdownMenuShortcut,
227
+ I as DropdownMenuSub,
228
+ _ as DropdownMenuSubContent,
229
+ y as DropdownMenuSubTrigger,
230
+ b as DropdownMenuTrigger
231
+ };