@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
@@ -1,8 +1,30 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import * as t from "@radix-ui/react-progress";
3
3
  import { cn as e } from "../../lib/utils.js";
4
- function i({ className: l, value: a, ...o }) {
5
- return r(t.Root, { "data-slot": "progress", className: e("bg-neutral-900/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-neutral-50/20", l), ...o, children: r(t.Indicator, { "data-slot": "progress-indicator", className: "bg-neutral-900 h-full w-full flex-1 transition-all dark:bg-neutral-50", style: { transform: `translateX(-${100 - (a || 0)}%)` } }) });
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
+ );
6
28
  }
7
29
  export {
8
30
  i as Progress
@@ -2,11 +2,42 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import * as e from "@radix-ui/react-radio-group";
3
3
  import { CircleIcon as t } from "lucide-react";
4
4
  import { cn as o } from "../../lib/utils.js";
5
- function s({ className: a, ...i }) {
6
- return r(e.Root, { "data-slot": "radio-group", className: o("grid gap-3", a), ...i });
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
+ );
7
17
  }
8
- function u({ className: a, ...i }) {
9
- return r(e.Item, { "data-slot": "radio-group-item", className: o("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", a), ...i, children: r(e.Indicator, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: r(t, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) }) });
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
+ );
10
41
  }
11
42
  export {
12
43
  s as RadioGroup,
@@ -2,14 +2,44 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import { GripVerticalIcon as n } from "lucide-react";
3
3
  import * as t from "react-resizable-panels";
4
4
  import { cn as l } from "../../lib/utils.js";
5
- function u({ className: e, ...r }) {
6
- return a(t.PanelGroup, { "data-slot": "resizable-panel-group", className: l("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...r });
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
+ );
7
20
  }
8
- function d({ ...e }) {
9
- return a(t.Panel, { "data-slot": "resizable-panel", ...e });
21
+ function d({
22
+ ...e
23
+ }) {
24
+ return /* @__PURE__ */ a(t.Panel, { "data-slot": "resizable-panel", ...e });
10
25
  }
11
- function f({ withHandle: e, className: r, ...i }) {
12
- return a(t.PanelResizeHandle, { "data-slot": "resizable-handle", className: l("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", r), ...i, children: e && 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: a(n, { className: "size-2.5" }) }) });
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
+ );
13
43
  }
14
44
  export {
15
45
  f as ResizableHandle,
@@ -1,11 +1,58 @@
1
1
  import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
2
  import * as a from "@radix-ui/react-scroll-area";
3
3
  import { cn as t } from "../../lib/utils.js";
4
- function u({ className: e, children: r, ...o }) {
5
- return n(a.Root, { "data-slot": "scroll-area", className: t("relative", e), ...o, children: [l(a.Viewport, { "data-slot": "scroll-area-viewport", 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", children: r }), l(i, {}), l(a.Corner, {})] });
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
+ );
6
29
  }
7
- function i({ className: e, orientation: r = "vertical", ...o }) {
8
- return l(a.ScrollAreaScrollbar, { "data-slot": "scroll-area-scrollbar", orientation: r, className: t("flex touch-none p-px transition-colors select-none", r === "vertical" && "h-full w-2.5 border-l border-l-transparent", r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e), ...o, children: l(a.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "bg-neutral-200 relative flex-1 rounded-full dark:bg-neutral-800" }) });
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
+ );
9
56
  }
10
57
  export {
11
58
  u as ScrollArea,
@@ -1,36 +1,157 @@
1
1
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
2
  import * as a from "@radix-ui/react-select";
3
- import { ChevronDownIcon as o, CheckIcon as d, ChevronUpIcon as c } from "lucide-react";
3
+ import { CheckIcon as d, ChevronDownIcon as o, ChevronUpIcon as c } from "lucide-react";
4
4
  import { cn as l } from "../../lib/utils.js";
5
- function x({ ...e }) {
6
- return t(a.Root, { "data-slot": "select", ...e });
5
+ function x({
6
+ ...e
7
+ }) {
8
+ return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
7
9
  }
8
- function v({ ...e }) {
9
- return t(a.Group, { "data-slot": "select-group", ...e });
10
+ function v({
11
+ ...e
12
+ }) {
13
+ return /* @__PURE__ */ t(a.Group, { "data-slot": "select-group", ...e });
10
14
  }
11
- function b({ ...e }) {
12
- return t(a.Value, { "data-slot": "select-value", ...e });
15
+ function b({
16
+ ...e
17
+ }) {
18
+ return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
13
19
  }
14
- function h({ className: e, children: r, ...s }) {
15
- return n(a.Trigger, { "data-slot": "select-trigger", className: l("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", e), ...s, children: [r, t(a.Icon, { asChild: !0, children: t(o, { className: "size-4 opacity-50" }) })] });
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
+ );
16
40
  }
17
- function k({ className: e, children: r, position: s = "popper", ...i }) {
18
- return t(a.Portal, { children: n(a.Content, { "data-slot": "select-content", className: l("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", 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", e), position: s, ...i, children: [t(u, {}), t(a.Viewport, { className: l("p-1", s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"), children: r }), t(p, {})] }) });
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
+ ) });
19
74
  }
20
- function w({ className: e, ...r }) {
21
- return t(a.Label, { "data-slot": "select-label", className: l("px-2 py-1.5 text-sm font-medium", e), ...r });
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
+ );
22
87
  }
23
- function S({ className: e, children: r, ...s }) {
24
- return n(a.Item, { "data-slot": "select-item", className: l("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", e), ...s, children: [t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: t(a.ItemIndicator, { children: t(d, { className: "size-4" }) }) }), t(a.ItemText, { children: r })] });
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
+ );
25
108
  }
26
- function y({ className: e, ...r }) {
27
- return t(a.Separator, { "data-slot": "select-separator", className: l("bg-neutral-200 pointer-events-none -mx-1 my-1 h-px dark:bg-neutral-800", e), ...r });
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
+ );
28
121
  }
29
- function u({ className: e, ...r }) {
30
- return t(a.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: l("flex cursor-default items-center justify-center py-1", e), ...r, children: t(c, { className: "size-4" }) });
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
+ );
31
138
  }
32
- function p({ className: e, ...r }) {
33
- return t(a.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: l("flex cursor-default items-center justify-center py-1", e), ...r, children: t(o, { className: "size-4" }) });
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
+ );
34
155
  }
35
156
  export {
36
157
  x as Select,
@@ -38,7 +159,7 @@ export {
38
159
  v as SelectGroup,
39
160
  S as SelectItem,
40
161
  w as SelectLabel,
41
- p as SelectScrollDownButton,
162
+ m as SelectScrollDownButton,
42
163
  u as SelectScrollUpButton,
43
164
  y as SelectSeparator,
44
165
  h as SelectTrigger,
@@ -1,8 +1,25 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as n from "@radix-ui/react-separator";
3
3
  import { cn as e } from "../../lib/utils.js";
4
- function m({ className: t, orientation: a = "horizontal", decorative: o = !0, ...r }) {
5
- return i(n.Root, { "data-slot": "separator-root", decorative: o, orientation: a, className: e("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", t), ...r });
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
+ );
6
23
  }
7
24
  export {
8
25
  m as Separator
@@ -3,34 +3,116 @@ import * as o from "@radix-ui/react-dialog";
3
3
  import { XIcon as l } from "lucide-react";
4
4
  import { cn as s } from "../../lib/utils.js";
5
5
  function m({ ...t }) {
6
- return e(o.Root, { "data-slot": "sheet", ...t });
6
+ return /* @__PURE__ */ e(o.Root, { "data-slot": "sheet", ...t });
7
7
  }
8
- function p({ ...t }) {
9
- return e(o.Trigger, { "data-slot": "sheet-trigger", ...t });
8
+ function p({
9
+ ...t
10
+ }) {
11
+ return /* @__PURE__ */ e(o.Trigger, { "data-slot": "sheet-trigger", ...t });
10
12
  }
11
- function g({ ...t }) {
12
- return e(o.Close, { "data-slot": "sheet-close", ...t });
13
+ function g({
14
+ ...t
15
+ }) {
16
+ return /* @__PURE__ */ e(o.Close, { "data-slot": "sheet-close", ...t });
13
17
  }
14
- function d({ ...t }) {
15
- return e(o.Portal, { "data-slot": "sheet-portal", ...t });
18
+ function d({
19
+ ...t
20
+ }) {
21
+ return /* @__PURE__ */ e(o.Portal, { "data-slot": "sheet-portal", ...t });
16
22
  }
17
- function u({ className: t, ...a }) {
18
- return e(o.Overlay, { "data-slot": "sheet-overlay", className: s("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), ...a });
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
+ );
19
38
  }
20
- function x({ className: t, children: a, side: n = "right", ...i }) {
21
- return r(d, { children: [e(u, {}), r(o.Content, { "data-slot": "sheet-content", className: s("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", 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", 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", 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", 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", t), ...i, children: [a, 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: [e(l, { className: "size-4" }), e("span", { className: "sr-only", children: "Close" })] })] })] });
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
+ ] });
22
70
  }
23
71
  function b({ className: t, ...a }) {
24
- return e("div", { "data-slot": "sheet-header", className: s("flex flex-col gap-1.5 p-4", 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
+ );
25
80
  }
26
81
  function S({ className: t, ...a }) {
27
- return e("div", { "data-slot": "sheet-footer", className: s("mt-auto flex flex-col gap-2 p-4", 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
+ );
28
90
  }
29
- function y({ className: t, ...a }) {
30
- return e(o.Title, { "data-slot": "sheet-title", className: s("text-neutral-950 font-semibold dark:text-neutral-50", t), ...a });
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
+ );
31
103
  }
32
- function N({ className: t, ...a }) {
33
- return e(o.Description, { "data-slot": "sheet-description", className: s("text-neutral-500 text-sm dark:text-neutral-400", t), ...a });
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
+ );
34
116
  }
35
117
  export {
36
118
  m as Sheet,