@plyaz/ui 0.7.10 → 0.7.12

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 (110) hide show
  1. package/dist/Button-B7sEajdG.js +89 -0
  2. package/dist/Button-BoTQH4v8.cjs +39 -0
  3. package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
  4. package/dist/Skeleton-Cj9Od_Nd.js +37 -0
  5. package/dist/Textarea-BTbJSVLU.js +837 -0
  6. package/dist/Textarea-DmFDDtNg.cjs +24 -0
  7. package/dist/client/accordion.cjs.js +1 -0
  8. package/dist/client/accordion.es.js +62 -0
  9. package/dist/client/alert-dialog.cjs.js +1 -0
  10. package/dist/client/alert-dialog.es.js +127 -0
  11. package/dist/client/avatar.cjs.js +1 -0
  12. package/dist/client/avatar.es.js +41 -0
  13. package/dist/client/calendar.cjs.js +1 -0
  14. package/dist/client/calendar.es.js +160 -0
  15. package/dist/client/carousel.cjs.js +1 -0
  16. package/dist/client/carousel.es.js +170 -0
  17. package/dist/client/checkbox.cjs.js +1 -0
  18. package/dist/client/checkbox.es.js +28 -0
  19. package/dist/client/combobox.cjs.js +1 -0
  20. package/dist/client/combobox.es.js +77 -0
  21. package/dist/client/command.cjs.js +1 -0
  22. package/dist/client/command.es.js +143 -0
  23. package/dist/client/context-menu.cjs.js +1 -0
  24. package/dist/client/context-menu.es.js +200 -0
  25. package/dist/client/dialog.cjs.js +1 -0
  26. package/dist/client/dialog.es.js +122 -0
  27. package/dist/client/drawer.cjs.js +1 -0
  28. package/dist/client/drawer.es.js +117 -0
  29. package/dist/client/dropdown-menu.cjs.js +1 -0
  30. package/dist/client/dropdown-menu.es.js +204 -0
  31. package/dist/client/hover-card.cjs.js +1 -0
  32. package/dist/client/hover-card.es.js +34 -0
  33. package/dist/client/input-otp.cjs.js +1 -0
  34. package/dist/client/input-otp.es.js +55 -0
  35. package/dist/client/label.cjs.js +1 -0
  36. package/dist/client/label.es.js +19 -0
  37. package/dist/client/menu-bar.cjs.js +1 -0
  38. package/dist/client/menu-bar.es.js +229 -0
  39. package/dist/client/popover.cjs.js +1 -0
  40. package/dist/client/popover.es.js +38 -0
  41. package/dist/client/progress.cjs.js +1 -0
  42. package/dist/client/progress.es.js +29 -0
  43. package/dist/client/radio-group.cjs.js +1 -0
  44. package/dist/client/radio-group.es.js +45 -0
  45. package/dist/client/reveal-text.cjs.js +1 -0
  46. package/dist/client/reveal-text.es.js +5066 -0
  47. package/dist/client/scroll-area.cjs.js +1 -0
  48. package/dist/client/scroll-area.es.js +60 -0
  49. package/dist/client/sheet.cjs.js +1 -0
  50. package/dist/client/sheet.es.js +117 -0
  51. package/dist/client/slider.cjs.js +1 -0
  52. package/dist/client/slider.es.js +63 -0
  53. package/dist/client/switch.cjs.js +1 -0
  54. package/dist/client/switch.es.js +28 -0
  55. package/dist/client/tabs.cjs.js +1 -0
  56. package/dist/client/tabs.es.js +55 -0
  57. package/dist/client/toaster.cjs.js +1 -0
  58. package/dist/client/toaster.es.js +22 -0
  59. package/dist/client/toggle.cjs.js +1 -0
  60. package/dist/client/toggle.es.js +43 -0
  61. package/dist/client/tooltip.cjs.js +1 -0
  62. package/dist/client/tooltip.es.js +51 -0
  63. package/dist/client.cjs.js +1 -93
  64. package/dist/client.es.js +495 -21191
  65. package/dist/index.cjs.js +6 -6
  66. package/dist/index.es.js +285 -538
  67. package/dist/types/client/accordion.d.ts +2 -0
  68. package/dist/types/client/alert-dialog.d.ts +2 -0
  69. package/dist/types/client/avatar.d.ts +2 -0
  70. package/dist/types/client/calendar.d.ts +2 -0
  71. package/dist/types/client/carousel.d.ts +2 -0
  72. package/dist/types/client/checkbox.d.ts +2 -0
  73. package/dist/types/client/combobox.d.ts +2 -0
  74. package/dist/types/client/command.d.ts +2 -0
  75. package/dist/types/client/context-menu.d.ts +2 -0
  76. package/dist/types/client/dialog.d.ts +2 -0
  77. package/dist/types/client/drawer.d.ts +2 -0
  78. package/dist/types/client/dropdown-menu.d.ts +2 -0
  79. package/dist/types/client/hover-card.d.ts +2 -0
  80. package/dist/types/client/input-otp.d.ts +2 -0
  81. package/dist/types/client/label.d.ts +2 -0
  82. package/dist/types/client/menu-bar.d.ts +2 -0
  83. package/dist/types/client/popover.d.ts +2 -0
  84. package/dist/types/client/progress.d.ts +2 -0
  85. package/dist/types/client/radio-group.d.ts +2 -0
  86. package/dist/types/client/reveal-text.d.ts +2 -0
  87. package/dist/types/client/scroll-area.d.ts +2 -0
  88. package/dist/types/client/sheet.d.ts +2 -0
  89. package/dist/types/client/slider.d.ts +2 -0
  90. package/dist/types/client/switch.d.ts +2 -0
  91. package/dist/types/client/tabs.d.ts +2 -0
  92. package/dist/types/client/toaster.d.ts +2 -0
  93. package/dist/types/client/toggle.d.ts +2 -0
  94. package/dist/types/client/tooltip.d.ts +2 -0
  95. package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  96. package/dist/types/components/Label/Label.stories.d.ts +1 -1
  97. package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
  98. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  99. package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
  100. package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
  101. package/dist/types/components/client.d.ts +1 -0
  102. package/dist/types/components/client.d.ts.map +1 -1
  103. package/dist/types/components/index.d.ts +0 -1
  104. package/dist/types/components/index.d.ts.map +1 -1
  105. package/dist/ui.css +1 -1
  106. package/dist/utils-B6yFEsav.js +8 -0
  107. package/dist/utils-IjLH3w2e.cjs +1 -0
  108. package/package.json +186 -1
  109. package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
  110. package/dist/Skeleton-CnBXKh2c.js +0 -3511
@@ -0,0 +1,170 @@
1
+ import { jsx as n, jsxs as h } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import k from "embla-carousel-react";
4
+ import { ChevronLeft as z, ChevronRight as g } from "lucide-react";
5
+ import { c as d } from "../utils-B6yFEsav.js";
6
+ import "../Textarea-BTbJSVLU.js";
7
+ import { B as v } from "../Button-B7sEajdG.js";
8
+ import "@radix-ui/react-select";
9
+ import "next-intl";
10
+ import "@radix-ui/react-slot";
11
+ import "@radix-ui/react-separator";
12
+ const N = l.createContext(null);
13
+ function m() {
14
+ const o = l.useContext(N);
15
+ if (!o)
16
+ throw new Error("useCarousel must be used within a <Carousel />");
17
+ return o;
18
+ }
19
+ function F({
20
+ orientation: o = "horizontal",
21
+ opts: r,
22
+ setApi: t,
23
+ plugins: s,
24
+ className: c,
25
+ children: i,
26
+ ...u
27
+ }) {
28
+ const [b, e] = k(
29
+ {
30
+ ...r,
31
+ axis: o === "horizontal" ? "x" : "y"
32
+ },
33
+ s
34
+ ), [p, S] = l.useState(!1), [w, y] = l.useState(!1), f = l.useCallback((a) => {
35
+ a && (S(a.canScrollPrev()), y(a.canScrollNext()));
36
+ }, []), C = l.useCallback(() => {
37
+ e == null || e.scrollPrev();
38
+ }, [e]), x = l.useCallback(() => {
39
+ e == null || e.scrollNext();
40
+ }, [e]), P = l.useCallback(
41
+ (a) => {
42
+ a.key === "ArrowLeft" ? (a.preventDefault(), C()) : a.key === "ArrowRight" && (a.preventDefault(), x());
43
+ },
44
+ [C, x]
45
+ );
46
+ return l.useEffect(() => {
47
+ !e || !t || t(e);
48
+ }, [e, t]), l.useEffect(() => {
49
+ if (e)
50
+ return f(e), e.on("reInit", f), e.on("select", f), () => {
51
+ e == null || e.off("select", f);
52
+ };
53
+ }, [e, f]), /* @__PURE__ */ n(
54
+ N.Provider,
55
+ {
56
+ value: {
57
+ carouselRef: b,
58
+ api: e,
59
+ opts: r,
60
+ orientation: o || ((r == null ? void 0 : r.axis) === "y" ? "vertical" : "horizontal"),
61
+ scrollPrev: C,
62
+ scrollNext: x,
63
+ canScrollPrev: p,
64
+ canScrollNext: w
65
+ },
66
+ children: /* @__PURE__ */ n(
67
+ "div",
68
+ {
69
+ onKeyDownCapture: P,
70
+ className: d("relative", c),
71
+ role: "region",
72
+ "aria-roledescription": "carousel",
73
+ "data-slot": "carousel",
74
+ ...u,
75
+ children: i
76
+ }
77
+ )
78
+ }
79
+ );
80
+ }
81
+ function G({ className: o, ...r }) {
82
+ const { carouselRef: t, orientation: s } = m();
83
+ return /* @__PURE__ */ n("div", { ref: t, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ n(
84
+ "div",
85
+ {
86
+ className: d("flex", s === "horizontal" ? "-ml-4" : "-mt-4 flex-col", o),
87
+ ...r
88
+ }
89
+ ) });
90
+ }
91
+ function H({ className: o, ...r }) {
92
+ const { orientation: t } = m();
93
+ return /* @__PURE__ */ n(
94
+ "div",
95
+ {
96
+ role: "group",
97
+ "aria-roledescription": "slide",
98
+ "data-slot": "carousel-item",
99
+ className: d(
100
+ "min-w-0 shrink-0 grow-0 basis-full",
101
+ t === "horizontal" ? "pl-4" : "pt-4",
102
+ o
103
+ ),
104
+ ...r
105
+ }
106
+ );
107
+ }
108
+ function J({
109
+ className: o,
110
+ variant: r = "outline",
111
+ size: t = "icon",
112
+ ...s
113
+ }) {
114
+ const { orientation: c, scrollPrev: i, canScrollPrev: u } = m();
115
+ return /* @__PURE__ */ h(
116
+ v,
117
+ {
118
+ "data-slot": "carousel-previous",
119
+ variant: r,
120
+ size: t,
121
+ className: d(
122
+ "absolute size-8 rounded-full",
123
+ c === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
124
+ o
125
+ ),
126
+ disabled: !u,
127
+ onClick: i,
128
+ ...s,
129
+ children: [
130
+ /* @__PURE__ */ n(z, {}),
131
+ /* @__PURE__ */ n("span", { className: "sr-only", children: "Previous slide" })
132
+ ]
133
+ }
134
+ );
135
+ }
136
+ function M({
137
+ className: o,
138
+ variant: r = "outline",
139
+ size: t = "icon",
140
+ ...s
141
+ }) {
142
+ const { orientation: c, scrollNext: i, canScrollNext: u } = m();
143
+ return /* @__PURE__ */ h(
144
+ v,
145
+ {
146
+ "data-slot": "carousel-next",
147
+ variant: r,
148
+ size: t,
149
+ className: d(
150
+ "absolute size-8 rounded-full",
151
+ c === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
152
+ o
153
+ ),
154
+ disabled: !u,
155
+ onClick: i,
156
+ ...s,
157
+ children: [
158
+ /* @__PURE__ */ n(g, {}),
159
+ /* @__PURE__ */ n("span", { className: "sr-only", children: "Next slide" })
160
+ ]
161
+ }
162
+ );
163
+ }
164
+ export {
165
+ F as Carousel,
166
+ G as CarouselContent,
167
+ H as CarouselItem,
168
+ M as CarouselNext,
169
+ J as CarouselPrevious
170
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@radix-ui/react-checkbox"),a=require("lucide-react"),s=require("../utils-IjLH3w2e.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(o);function l({className:e,...t}){return i.jsx(n.Root,{"data-slot":"checkbox",className:s.cn("peer data-[state=checked]:bg-secondary data-[state=checked]:text-icon-accent-marketing data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border border-subtle transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:border-subtle disabled:data-[state=checked]:opacity-50",e),...t,children:i.jsx(n.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsx(a.CheckIcon,{className:"size-3.5"})})})}exports.Checkbox=l;
@@ -0,0 +1,28 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as r from "@radix-ui/react-checkbox";
3
+ import { CheckIcon as a } from "lucide-react";
4
+ import { c as o } from "../utils-B6yFEsav.js";
5
+ function n({ className: t, ...i }) {
6
+ return /* @__PURE__ */ e(
7
+ r.Root,
8
+ {
9
+ "data-slot": "checkbox",
10
+ className: o(
11
+ "peer data-[state=checked]:bg-secondary data-[state=checked]:text-icon-accent-marketing data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border border-subtle transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:border-subtle disabled:data-[state=checked]:opacity-50",
12
+ t
13
+ ),
14
+ ...i,
15
+ children: /* @__PURE__ */ e(
16
+ r.Indicator,
17
+ {
18
+ "data-slot": "checkbox-indicator",
19
+ className: "flex items-center justify-center text-current transition-none",
20
+ children: /* @__PURE__ */ e(a, { className: "size-3.5" })
21
+ }
22
+ )
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ n as Checkbox
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("react"),m=require("lucide-react"),l=require("../utils-IjLH3w2e.cjs");require("../Textarea-DmFDDtNg.cjs");const O=require("../Button-BoTQH4v8.cjs");require("@radix-ui/react-select");require("next-intl");require("@radix-ui/react-slot");require("@radix-ui/react-separator");const o=require("./command.cjs.js"),a=require("./popover.cjs.js");function S(r){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(c,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}return c.default=r,Object.freeze(c)}const w=S(C);function g({options:r,value:c,onValueChange:n,placeholder:s="Select option...",searchPlaceholder:p="Search...",emptyText:f="No option found.",disabled:b=!1,triggerClassName:j,contentClassName:x,buttonVariant:h="outline",buttonSize:q="default"}){const[i,u]=w.useState(!1),d=r.find(t=>t.value===c),v=t=>{const y=t===c?"":t;n==null||n(y),u(!1)};return e.jsxs(a.Popover,{open:i,onOpenChange:u,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(O.Button,{variant:h,size:q,role:"combobox","aria-expanded":i,disabled:b,className:l.cn("w-full justify-between",j),children:[d?d.label:s,e.jsx(m.ChevronsUpDownIcon,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:l.cn("w-full p-0",x),children:e.jsxs(o.Command,{children:[e.jsx(o.CommandInput,{placeholder:p}),e.jsxs(o.CommandList,{children:[e.jsx(o.CommandEmpty,{children:f}),e.jsx(o.CommandGroup,{children:r.map(t=>e.jsxs(o.CommandItem,{value:t.value,disabled:t.disabled,onSelect:()=>v(t.value),children:[e.jsx(m.CheckIcon,{className:l.cn("mr-2 h-4 w-4",c===t.value?"opacity-100":"opacity-0")}),t.label]},t.value))})]})]})})]})}exports.Combobox=g;
@@ -0,0 +1,77 @@
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import * as x from "react";
3
+ import { ChevronsUpDownIcon as y, CheckIcon as N } from "lucide-react";
4
+ import { c as l } from "../utils-B6yFEsav.js";
5
+ import "../Textarea-BTbJSVLU.js";
6
+ import { B as S } from "../Button-B7sEajdG.js";
7
+ import "@radix-ui/react-select";
8
+ import "next-intl";
9
+ import "@radix-ui/react-slot";
10
+ import "@radix-ui/react-separator";
11
+ import { Command as I, CommandInput as j, CommandList as O, CommandEmpty as P, CommandGroup as k, CommandItem as B } from "./command.es.js";
12
+ import { Popover as z, PopoverTrigger as D, PopoverContent as E } from "./popover.es.js";
13
+ function M({
14
+ options: a,
15
+ value: m,
16
+ onValueChange: t,
17
+ placeholder: s = "Select option...",
18
+ searchPlaceholder: d = "Search...",
19
+ emptyText: p = "No option found.",
20
+ disabled: f = !1,
21
+ triggerClassName: h,
22
+ contentClassName: u,
23
+ buttonVariant: b = "outline",
24
+ buttonSize: v = "default"
25
+ }) {
26
+ const [i, n] = x.useState(!1), c = a.find((e) => e.value === m), C = (e) => {
27
+ const w = e === m ? "" : e;
28
+ t == null || t(w), n(!1);
29
+ };
30
+ return /* @__PURE__ */ r(z, { open: i, onOpenChange: n, children: [
31
+ /* @__PURE__ */ o(D, { asChild: !0, children: /* @__PURE__ */ r(
32
+ S,
33
+ {
34
+ variant: b,
35
+ size: v,
36
+ role: "combobox",
37
+ "aria-expanded": i,
38
+ disabled: f,
39
+ className: l("w-full justify-between", h),
40
+ children: [
41
+ c ? c.label : s,
42
+ /* @__PURE__ */ o(y, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
43
+ ]
44
+ }
45
+ ) }),
46
+ /* @__PURE__ */ o(E, { className: l("w-full p-0", u), children: /* @__PURE__ */ r(I, { children: [
47
+ /* @__PURE__ */ o(j, { placeholder: d }),
48
+ /* @__PURE__ */ r(O, { children: [
49
+ /* @__PURE__ */ o(P, { children: p }),
50
+ /* @__PURE__ */ o(k, { children: a.map((e) => /* @__PURE__ */ r(
51
+ B,
52
+ {
53
+ value: e.value,
54
+ disabled: e.disabled,
55
+ onSelect: () => C(e.value),
56
+ children: [
57
+ /* @__PURE__ */ o(
58
+ N,
59
+ {
60
+ className: l(
61
+ "mr-2 h-4 w-4",
62
+ m === e.value ? "opacity-100" : "opacity-0"
63
+ )
64
+ }
65
+ ),
66
+ e.label
67
+ ]
68
+ },
69
+ e.value
70
+ )) })
71
+ ] })
72
+ ] }) })
73
+ ] });
74
+ }
75
+ export {
76
+ M as Combobox
77
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("cmdk"),u=require("lucide-react"),n=require("../utils-IjLH3w2e.cjs"),d=require("./dialog.cjs.js");function m({className:e,...o}){return t.jsx(a.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}function l({title:e="Command Palette",description:o="Search for a command to run...",children:r,className:s,showCloseButton:c=!0,...i}){return t.jsxs(d.Dialog,{...i,children:[t.jsxs(d.DialogHeader,{className:"sr-only",children:[t.jsx(d.DialogTitle,{children:e}),t.jsx(d.DialogDescription,{children:o})]}),t.jsx(d.DialogContent,{className:n.cn("overflow-hidden p-0",s),showCloseButton:c,children:t.jsx(m,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function p({className:e,...o}){return t.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[t.jsx(u.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),t.jsx(a.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...o})]})}function g({className:e,...o}){return t.jsx(a.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}function x({...e}){return t.jsx(a.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function h({className:e,...o}){return t.jsx(a.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o})}function f({className:e,...o}){return t.jsx(a.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",e),...o})}function C({className:e,...o}){return t.jsx(a.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function _({className:e,...o}){return t.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}exports.Command=m;exports.CommandDialog=l;exports.CommandEmpty=x;exports.CommandGroup=h;exports.CommandInput=p;exports.CommandItem=C;exports.CommandList=g;exports.CommandSeparator=f;exports.CommandShortcut=_;
@@ -0,0 +1,143 @@
1
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
+ import { Command as n } from "cmdk";
3
+ import { SearchIcon as i } from "lucide-react";
4
+ import { c as a } from "../utils-B6yFEsav.js";
5
+ import { Dialog as l, DialogHeader as u, DialogTitle as p, DialogDescription as g, DialogContent as f } from "./dialog.es.js";
6
+ function h({ className: e, ...t }) {
7
+ return /* @__PURE__ */ o(
8
+ n,
9
+ {
10
+ "data-slot": "command",
11
+ className: a(
12
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
13
+ e
14
+ ),
15
+ ...t
16
+ }
17
+ );
18
+ }
19
+ function y({
20
+ title: e = "Command Palette",
21
+ description: t = "Search for a command to run...",
22
+ children: r,
23
+ className: m,
24
+ showCloseButton: s = !0,
25
+ ...c
26
+ }) {
27
+ return /* @__PURE__ */ d(l, { ...c, children: [
28
+ /* @__PURE__ */ d(u, { className: "sr-only", children: [
29
+ /* @__PURE__ */ o(p, { children: e }),
30
+ /* @__PURE__ */ o(g, { children: t })
31
+ ] }),
32
+ /* @__PURE__ */ o(
33
+ f,
34
+ {
35
+ className: a("overflow-hidden p-0", m),
36
+ showCloseButton: s,
37
+ children: /* @__PURE__ */ o(h, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r })
38
+ }
39
+ )
40
+ ] });
41
+ }
42
+ function C({
43
+ className: e,
44
+ ...t
45
+ }) {
46
+ return /* @__PURE__ */ d("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [
47
+ /* @__PURE__ */ o(i, { className: "size-4 shrink-0 opacity-50" }),
48
+ /* @__PURE__ */ o(
49
+ n.Input,
50
+ {
51
+ "data-slot": "command-input",
52
+ className: a(
53
+ "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
54
+ e
55
+ ),
56
+ ...t
57
+ }
58
+ )
59
+ ] });
60
+ }
61
+ function N({ className: e, ...t }) {
62
+ return /* @__PURE__ */ o(
63
+ n.List,
64
+ {
65
+ "data-slot": "command-list",
66
+ className: a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
67
+ ...t
68
+ }
69
+ );
70
+ }
71
+ function b({ ...e }) {
72
+ return /* @__PURE__ */ o(
73
+ n.Empty,
74
+ {
75
+ "data-slot": "command-empty",
76
+ className: "py-6 text-center text-sm",
77
+ ...e
78
+ }
79
+ );
80
+ }
81
+ function D({
82
+ className: e,
83
+ ...t
84
+ }) {
85
+ return /* @__PURE__ */ o(
86
+ n.Group,
87
+ {
88
+ "data-slot": "command-group",
89
+ className: a(
90
+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
91
+ e
92
+ ),
93
+ ...t
94
+ }
95
+ );
96
+ }
97
+ function I({
98
+ className: e,
99
+ ...t
100
+ }) {
101
+ return /* @__PURE__ */ o(
102
+ n.Separator,
103
+ {
104
+ "data-slot": "command-separator",
105
+ className: a("bg-border -mx-1 h-px", e),
106
+ ...t
107
+ }
108
+ );
109
+ }
110
+ function S({ className: e, ...t }) {
111
+ return /* @__PURE__ */ o(
112
+ n.Item,
113
+ {
114
+ "data-slot": "command-item",
115
+ className: a(
116
+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
117
+ e
118
+ ),
119
+ ...t
120
+ }
121
+ );
122
+ }
123
+ function z({ className: e, ...t }) {
124
+ return /* @__PURE__ */ o(
125
+ "span",
126
+ {
127
+ "data-slot": "command-shortcut",
128
+ className: a("text-muted-foreground ml-auto text-xs tracking-widest", e),
129
+ ...t
130
+ }
131
+ );
132
+ }
133
+ export {
134
+ h as Command,
135
+ y as CommandDialog,
136
+ b as CommandEmpty,
137
+ D as CommandGroup,
138
+ C as CommandInput,
139
+ S as CommandItem,
140
+ N as CommandList,
141
+ I as CommandSeparator,
142
+ z as CommandShortcut
143
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@radix-ui/react-context-menu"),i=require("lucide-react"),s=require("../utils-IjLH3w2e.cjs");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const o=d(u);function c({...t}){return e.jsx(o.Root,{"data-slot":"context-menu",...t})}function l({...t}){return e.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function x({...t}){return e.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function m({...t}){return e.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function f({...t}){return e.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function p({...t}){return e.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function g({className:t,inset:n,children:a,...r}){return e.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground 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",t),...r,children:[a,e.jsx(i.ChevronRightIcon,{className:"ml-auto"})]})}function v({className:t,...n}){return e.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:s.cn("bg-popover text-popover-foreground 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] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function b({className:t,...n}){return e.jsx(o.Portal,{children:e.jsx(o.Content,{"data-slot":"context-menu-content",className:s.cn("bg-popover text-popover-foreground 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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function C({className:t,inset:n,variant:a="default",...r}){return e.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":a,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground 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",t),...r})}function h({className:t,children:n,checked:a,...r}){return e.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground 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",t),checked:a,...r,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(o.ItemIndicator,{children:e.jsx(i.CheckIcon,{className:"size-4"})})}),n]})}function M({className:t,children:n,...a}){return e.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground 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",t),...a,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(o.ItemIndicator,{children:e.jsx(i.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function j({className:t,inset:n,...a}){return e.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:s.cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...a})}function z({className:t,...n}){return e.jsx(o.Separator,{"data-slot":"context-menu-separator",className:s.cn("bg-border -mx-1 my-1 h-px",t),...n})}function S({className:t,...n}){return e.jsx("span",{"data-slot":"context-menu-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n})}exports.ContextMenu=c;exports.ContextMenuCheckboxItem=h;exports.ContextMenuContent=b;exports.ContextMenuGroup=x;exports.ContextMenuItem=C;exports.ContextMenuLabel=j;exports.ContextMenuPortal=m;exports.ContextMenuRadioGroup=p;exports.ContextMenuRadioItem=M;exports.ContextMenuSeparator=z;exports.ContextMenuShortcut=S;exports.ContextMenuSub=f;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=l;
@@ -0,0 +1,200 @@
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-context-menu";
3
+ import { CheckIcon as d, CircleIcon as c, ChevronRightIcon as u } from "lucide-react";
4
+ import { c as s } from "../utils-B6yFEsav.js";
5
+ function x({ ...t }) {
6
+ return /* @__PURE__ */ e(o.Root, { "data-slot": "context-menu", ...t });
7
+ }
8
+ function p({
9
+ ...t
10
+ }) {
11
+ return /* @__PURE__ */ e(o.Trigger, { "data-slot": "context-menu-trigger", ...t });
12
+ }
13
+ function g({ ...t }) {
14
+ return /* @__PURE__ */ e(o.Group, { "data-slot": "context-menu-group", ...t });
15
+ }
16
+ function v({ ...t }) {
17
+ return /* @__PURE__ */ e(o.Portal, { "data-slot": "context-menu-portal", ...t });
18
+ }
19
+ function b({ ...t }) {
20
+ return /* @__PURE__ */ e(o.Sub, { "data-slot": "context-menu-sub", ...t });
21
+ }
22
+ function h({
23
+ ...t
24
+ }) {
25
+ return /* @__PURE__ */ e(o.RadioGroup, { "data-slot": "context-menu-radio-group", ...t });
26
+ }
27
+ function C({
28
+ className: t,
29
+ inset: n,
30
+ children: a,
31
+ ...r
32
+ }) {
33
+ return /* @__PURE__ */ i(
34
+ o.SubTrigger,
35
+ {
36
+ "data-slot": "context-menu-sub-trigger",
37
+ "data-inset": n,
38
+ className: s(
39
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground 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",
40
+ t
41
+ ),
42
+ ...r,
43
+ children: [
44
+ a,
45
+ /* @__PURE__ */ e(u, { className: "ml-auto" })
46
+ ]
47
+ }
48
+ );
49
+ }
50
+ function z({
51
+ className: t,
52
+ ...n
53
+ }) {
54
+ return /* @__PURE__ */ e(
55
+ o.SubContent,
56
+ {
57
+ "data-slot": "context-menu-sub-content",
58
+ className: s(
59
+ "bg-popover text-popover-foreground 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] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
60
+ t
61
+ ),
62
+ ...n
63
+ }
64
+ );
65
+ }
66
+ function M({
67
+ className: t,
68
+ ...n
69
+ }) {
70
+ return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(
71
+ o.Content,
72
+ {
73
+ "data-slot": "context-menu-content",
74
+ className: s(
75
+ "bg-popover text-popover-foreground 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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
76
+ t
77
+ ),
78
+ ...n
79
+ }
80
+ ) });
81
+ }
82
+ function N({
83
+ className: t,
84
+ inset: n,
85
+ variant: a = "default",
86
+ ...r
87
+ }) {
88
+ return /* @__PURE__ */ e(
89
+ o.Item,
90
+ {
91
+ "data-slot": "context-menu-item",
92
+ "data-inset": n,
93
+ "data-variant": a,
94
+ className: s(
95
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground 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",
96
+ t
97
+ ),
98
+ ...r
99
+ }
100
+ );
101
+ }
102
+ function I({
103
+ className: t,
104
+ children: n,
105
+ checked: a,
106
+ ...r
107
+ }) {
108
+ return /* @__PURE__ */ i(
109
+ o.CheckboxItem,
110
+ {
111
+ "data-slot": "context-menu-checkbox-item",
112
+ className: s(
113
+ "focus:bg-accent focus:text-accent-foreground 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",
114
+ t
115
+ ),
116
+ checked: a,
117
+ ...r,
118
+ children: [
119
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(d, { className: "size-4" }) }) }),
120
+ n
121
+ ]
122
+ }
123
+ );
124
+ }
125
+ function _({
126
+ className: t,
127
+ children: n,
128
+ ...a
129
+ }) {
130
+ return /* @__PURE__ */ i(
131
+ o.RadioItem,
132
+ {
133
+ "data-slot": "context-menu-radio-item",
134
+ className: s(
135
+ "focus:bg-accent focus:text-accent-foreground 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",
136
+ t
137
+ ),
138
+ ...a,
139
+ children: [
140
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(c, { className: "size-2 fill-current" }) }) }),
141
+ n
142
+ ]
143
+ }
144
+ );
145
+ }
146
+ function y({
147
+ className: t,
148
+ inset: n,
149
+ ...a
150
+ }) {
151
+ return /* @__PURE__ */ e(
152
+ o.Label,
153
+ {
154
+ "data-slot": "context-menu-label",
155
+ "data-inset": n,
156
+ className: s("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
157
+ ...a
158
+ }
159
+ );
160
+ }
161
+ function k({
162
+ className: t,
163
+ ...n
164
+ }) {
165
+ return /* @__PURE__ */ e(
166
+ o.Separator,
167
+ {
168
+ "data-slot": "context-menu-separator",
169
+ className: s("bg-border -mx-1 my-1 h-px", t),
170
+ ...n
171
+ }
172
+ );
173
+ }
174
+ function S({ className: t, ...n }) {
175
+ return /* @__PURE__ */ e(
176
+ "span",
177
+ {
178
+ "data-slot": "context-menu-shortcut",
179
+ className: s("text-muted-foreground ml-auto text-xs tracking-widest", t),
180
+ ...n
181
+ }
182
+ );
183
+ }
184
+ export {
185
+ x as ContextMenu,
186
+ I as ContextMenuCheckboxItem,
187
+ M as ContextMenuContent,
188
+ g as ContextMenuGroup,
189
+ N as ContextMenuItem,
190
+ y as ContextMenuLabel,
191
+ v as ContextMenuPortal,
192
+ h as ContextMenuRadioGroup,
193
+ _ as ContextMenuRadioItem,
194
+ k as ContextMenuSeparator,
195
+ S as ContextMenuShortcut,
196
+ b as ContextMenuSub,
197
+ z as ContextMenuSubContent,
198
+ C as ContextMenuSubTrigger,
199
+ p as ContextMenuTrigger
200
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=g(d);function u({...t}){return a.jsx(o.Root,{"data-slot":"dialog",...t})}function f({...t}){return a.jsx(o.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return a.jsx(o.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return a.jsx(o.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return a.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:i.cn("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/50",t),...e})}function x({className:t,children:e,showCloseButton:n=!0,...s}){return a.jsxs(r,{"data-slot":"dialog-portal",children:[a.jsx(l,{}),a.jsxs(o.Content,{"data-slot":"dialog-content",className:i.cn("bg-background 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-md border border-subtle p-6 shadow-lg duration-200 sm:max-w-lg",t),...s,children:[e,n&&a.jsxs(o.Close,{"data-slot":"dialog-close",className:"ring-offset-background cursor-pointer text-secondary focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-primary 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",children:[a.jsx(c.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:i.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function D({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:i.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsx(o.Title,{"data-slot":"dialog-title",className:i.cn("text-primary-foreground text-lg font-semibold",t),...e})}function b({className:t,...e}){return a.jsx(o.Description,{"data-slot":"dialog-description",className:i.cn("text-secondary-foreground text-sm",t),...e})}exports.Dialog=u;exports.DialogClose=p;exports.DialogContent=x;exports.DialogDescription=b;exports.DialogFooter=D;exports.DialogHeader=m;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=j;exports.DialogTrigger=f;