@arolariu/components 0.0.11 → 0.0.13

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 (58) hide show
  1. package/dist/cjs/components/ui/alert-dialog.js +1 -1
  2. package/dist/cjs/components/ui/carousel.js +1 -1
  3. package/dist/cjs/components/ui/menubar.js +1 -1
  4. package/dist/cjs/components/ui/pagination.js +1 -1
  5. package/dist/cjs/components/ui/popover.js +1 -1
  6. package/dist/cjs/components/ui/scroll-area.js +1 -1
  7. package/dist/cjs/components/ui/sidebar.js +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/es/components/ui/accordion.js +50 -8
  10. package/dist/es/components/ui/alert-dialog.js +118 -22
  11. package/dist/es/components/ui/alert.js +52 -14
  12. package/dist/es/components/ui/aspect-ratio.js +4 -2
  13. package/dist/es/components/ui/avatar.js +42 -6
  14. package/dist/es/components/ui/badge.js +28 -13
  15. package/dist/es/components/ui/breadcrumb.js +78 -10
  16. package/dist/es/components/ui/button.js +37 -21
  17. package/dist/es/components/ui/calendar.js +52 -29
  18. package/dist/es/components/ui/card.js +51 -6
  19. package/dist/es/components/ui/carousel.js +142 -32
  20. package/dist/es/components/ui/chart.js +169 -42
  21. package/dist/es/components/ui/checkbox.js +23 -2
  22. package/dist/es/components/ui/collapsible.js +24 -6
  23. package/dist/es/components/ui/command.js +136 -18
  24. package/dist/es/components/ui/context-menu.js +187 -30
  25. package/dist/es/components/ui/dialog.js +100 -18
  26. package/dist/es/components/ui/drawer.js +98 -18
  27. package/dist/es/components/ui/dropdown-menu.js +195 -30
  28. package/dist/es/components/ui/form.js +59 -8
  29. package/dist/es/components/ui/hover-card.js +30 -9
  30. package/dist/es/components/ui/input-otp.js +47 -6
  31. package/dist/es/components/ui/input.js +14 -1
  32. package/dist/es/components/ui/label.js +15 -2
  33. package/dist/es/components/ui/menubar.js +228 -47
  34. package/dist/es/components/ui/navigation-menu.js +146 -17
  35. package/dist/es/components/ui/pagination.js +96 -15
  36. package/dist/es/components/ui/popover.js +33 -10
  37. package/dist/es/components/ui/progress.js +24 -2
  38. package/dist/es/components/ui/radio-group.js +35 -4
  39. package/dist/es/components/ui/resizable.js +36 -6
  40. package/dist/es/components/ui/scroll-area.js +51 -4
  41. package/dist/es/components/ui/select.js +143 -22
  42. package/dist/es/components/ui/separator.js +19 -2
  43. package/dist/es/components/ui/sheet.js +99 -17
  44. package/dist/es/components/ui/sidebar.js +512 -112
  45. package/dist/es/components/ui/skeleton.js +8 -1
  46. package/dist/es/components/ui/slider.js +56 -4
  47. package/dist/es/components/ui/sonner.js +15 -7
  48. package/dist/es/components/ui/switch.js +24 -2
  49. package/dist/es/components/ui/table.js +87 -9
  50. package/dist/es/components/ui/tabs.js +54 -8
  51. package/dist/es/components/ui/textarea.js +11 -1
  52. package/dist/es/components/ui/toggle-group.js +48 -9
  53. package/dist/es/components/ui/toggle.js +31 -16
  54. package/dist/es/components/ui/tooltip.js +45 -11
  55. package/dist/types/index.d.ts +46 -46
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/package.json +12 -2
  58. package/dist/umd/arolariu-components.umd.js +0 -7
@@ -2,50 +2,207 @@ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
2
  import * as n from "@radix-ui/react-context-menu";
3
3
  import { CheckIcon as u, CircleIcon as i, ChevronRightIcon as l } from "lucide-react";
4
4
  import { cn as o } from "../../lib/utils.js";
5
- function f({ ...t }) {
6
- return e(n.Root, { "data-slot": "context-menu", ...t });
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ e(n.Root, { "data-slot": "context-menu", ...t });
7
9
  }
8
- function p({ ...t }) {
9
- return e(n.Trigger, { "data-slot": "context-menu-trigger", ...t });
10
+ function p({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ e(n.Trigger, { "data-slot": "context-menu-trigger", ...t });
10
14
  }
11
- function g({ ...t }) {
12
- return e(n.Group, { "data-slot": "context-menu-group", ...t });
15
+ function g({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ e(n.Group, { "data-slot": "context-menu-group", ...t });
13
19
  }
14
- function b({ ...t }) {
15
- return e(n.Portal, { "data-slot": "context-menu-portal", ...t });
20
+ function b({
21
+ ...t
22
+ }) {
23
+ return /* @__PURE__ */ e(n.Portal, { "data-slot": "context-menu-portal", ...t });
16
24
  }
17
- function v({ ...t }) {
18
- return e(n.Sub, { "data-slot": "context-menu-sub", ...t });
25
+ function v({
26
+ ...t
27
+ }) {
28
+ return /* @__PURE__ */ e(n.Sub, { "data-slot": "context-menu-sub", ...t });
19
29
  }
20
- function h({ ...t }) {
21
- return e(n.RadioGroup, { "data-slot": "context-menu-radio-group", ...t });
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
+ );
22
40
  }
23
- function k({ className: t, inset: a, children: r, ...s }) {
24
- return d(n.SubTrigger, { "data-slot": "context-menu-sub-trigger", "data-inset": a, className: o("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", t), ...s, children: [r, e(l, { className: "ml-auto" })] });
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
+ );
25
63
  }
26
- function C({ className: t, ...a }) {
27
- return e(n.SubContent, { "data-slot": "context-menu-sub-content", className: o("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", t), ...a });
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
+ );
28
79
  }
29
- function z({ className: t, ...a }) {
30
- return e(n.Portal, { children: e(n.Content, { "data-slot": "context-menu-content", className: o("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", t), ...a }) });
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
+ ) });
31
95
  }
32
- function M({ className: t, inset: a, variant: r = "default", ...s }) {
33
- return e(n.Item, { "data-slot": "context-menu-item", "data-inset": a, "data-variant": r, className: o("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", t), ...s });
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
+ );
34
115
  }
35
- function N({ className: t, children: a, checked: r, ...s }) {
36
- return d(n.CheckboxItem, { "data-slot": "context-menu-checkbox-item", className: o("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", t), checked: r, ...s, children: [e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: e(n.ItemIndicator, { children: e(u, { className: "size-4" }) }) }), a] });
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
+ );
37
138
  }
38
- function _({ className: t, children: a, ...r }) {
39
- return d(n.RadioItem, { "data-slot": "context-menu-radio-item", className: o("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", t), ...r, children: [e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: e(n.ItemIndicator, { children: e(i, { className: "size-2 fill-current" }) }) }), a] });
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
+ );
40
159
  }
41
- function I({ className: t, inset: a, ...r }) {
42
- return e(n.Label, { "data-slot": "context-menu-label", "data-inset": a, className: o("text-neutral-950 px-2 py-1.5 text-sm font-medium data-[inset]:pl-8 dark:text-neutral-50", t), ...r });
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
+ );
43
177
  }
44
- function y({ className: t, ...a }) {
45
- return e(n.Separator, { "data-slot": "context-menu-separator", className: o("bg-neutral-200 -mx-1 my-1 h-px dark:bg-neutral-800", t), ...a });
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
+ );
46
190
  }
47
- function w({ className: t, ...a }) {
48
- return e("span", { "data-slot": "context-menu-shortcut", className: o("text-neutral-500 ml-auto text-xs tracking-widest dark:text-neutral-400", t), ...a });
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
+ );
49
206
  }
50
207
  export {
51
208
  f as ContextMenu,
@@ -2,35 +2,117 @@ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
2
  import * as o from "@radix-ui/react-dialog";
3
3
  import { XIcon as i } from "lucide-react";
4
4
  import { cn as n } from "../../lib/utils.js";
5
- function f({ ...t }) {
6
- return a(o.Root, { "data-slot": "dialog", ...t });
5
+ function f({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
7
9
  }
8
- function m({ ...t }) {
9
- return a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
10
+ function m({
11
+ ...t
12
+ }) {
13
+ return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
10
14
  }
11
- function s({ ...t }) {
12
- return a(o.Portal, { "data-slot": "dialog-portal", ...t });
15
+ function s({
16
+ ...t
17
+ }) {
18
+ return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
13
19
  }
14
- function p({ ...t }) {
15
- return a(o.Close, { "data-slot": "dialog-close", ...t });
20
+ function p({
21
+ ...t
22
+ }) {
23
+ return /* @__PURE__ */ a(o.Close, { "data-slot": "dialog-close", ...t });
16
24
  }
17
- function d({ className: t, ...e }) {
18
- return a(o.Overlay, { "data-slot": "dialog-overlay", className: n("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", t), ...e });
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
+ );
19
40
  }
20
- function x({ className: t, children: e, ...r }) {
21
- return l(s, { "data-slot": "dialog-portal", children: [a(d, {}), l(o.Content, { "data-slot": "dialog-content", className: n("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", t), ...r, children: [e, 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: [a(i, {}), a("span", { className: "sr-only", children: "Close" })] })] })] });
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
+ ] });
22
67
  }
23
68
  function v({ className: t, ...e }) {
24
- return a("div", { "data-slot": "dialog-header", className: n("flex flex-col gap-2 text-center sm:text-left", 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
+ );
25
77
  }
26
78
  function D({ className: t, ...e }) {
27
- return a("div", { "data-slot": "dialog-footer", className: n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", 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
+ );
28
90
  }
29
- function b({ className: t, ...e }) {
30
- return a(o.Title, { "data-slot": "dialog-title", className: n("text-lg leading-none font-semibold", t), ...e });
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
+ );
31
103
  }
32
- function h({ className: t, ...e }) {
33
- return a(o.Description, { "data-slot": "dialog-description", className: n("text-neutral-500 text-sm dark:text-neutral-400", t), ...e });
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
+ );
34
116
  }
35
117
  export {
36
118
  f as Dialog,
@@ -1,35 +1,115 @@
1
1
  import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
2
  import { Drawer as e } from "vaul";
3
3
  import { cn as d } from "../../lib/utils.js";
4
- function w({ ...a }) {
5
- return r(e.Root, { "data-slot": "drawer", ...a });
4
+ function w({
5
+ ...a
6
+ }) {
7
+ return /* @__PURE__ */ r(e.Root, { "data-slot": "drawer", ...a });
6
8
  }
7
- function m({ ...a }) {
8
- return r(e.Trigger, { "data-slot": "drawer-trigger", ...a });
9
+ function m({
10
+ ...a
11
+ }) {
12
+ return /* @__PURE__ */ r(e.Trigger, { "data-slot": "drawer-trigger", ...a });
9
13
  }
10
- function i({ ...a }) {
11
- return r(e.Portal, { "data-slot": "drawer-portal", ...a });
14
+ function i({
15
+ ...a
16
+ }) {
17
+ return /* @__PURE__ */ r(e.Portal, { "data-slot": "drawer-portal", ...a });
12
18
  }
13
- function f({ ...a }) {
14
- return r(e.Close, { "data-slot": "drawer-close", ...a });
19
+ function f({
20
+ ...a
21
+ }) {
22
+ return /* @__PURE__ */ r(e.Close, { "data-slot": "drawer-close", ...a });
15
23
  }
16
- function l({ className: a, ...t }) {
17
- return r(e.Overlay, { "data-slot": "drawer-overlay", className: d("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", a), ...t });
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
+ );
18
39
  }
19
- function v({ className: a, children: t, ...n }) {
20
- return o(i, { "data-slot": "drawer-portal", children: [r(l, {}), o(e.Content, { "data-slot": "drawer-content", className: d("group/drawer-content bg-white fixed z-50 flex h-auto flex-col dark:bg-neutral-950", "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", "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", "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", "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", a), ...n, children: [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" }), t] })] });
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
+ ] });
21
67
  }
22
68
  function p({ className: a, ...t }) {
23
- return r("div", { "data-slot": "drawer-header", className: d("flex flex-col gap-1.5 p-4", 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
+ );
24
77
  }
25
78
  function x({ className: a, ...t }) {
26
- return r("div", { "data-slot": "drawer-footer", className: d("mt-auto flex flex-col gap-2 p-4", 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
+ );
27
87
  }
28
- function g({ className: a, ...t }) {
29
- return r(e.Title, { "data-slot": "drawer-title", className: d("text-neutral-950 font-semibold dark:text-neutral-50", a), ...t });
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
+ );
30
100
  }
31
- function b({ className: a, ...t }) {
32
- return r(e.Description, { "data-slot": "drawer-description", className: d("text-neutral-500 text-sm dark:text-neutral-400", a), ...t });
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
+ );
33
113
  }
34
114
  export {
35
115
  w as Drawer,