@konopskidev/ui 0.1.2 → 0.2.0

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 (339) hide show
  1. package/README.md +102 -13
  2. package/dist/chunks/rolldown-runtime-CmQyd0Gu.cjs +27 -0
  3. package/dist/components/ui/accordion.cjs +62 -0
  4. package/dist/components/ui/accordion.cjs.map +1 -0
  5. package/dist/components/ui/accordion.d.cts +7 -0
  6. package/dist/components/ui/accordion.d.ts.map +1 -1
  7. package/dist/components/ui/accordion.js +9 -8
  8. package/dist/components/ui/accordion.js.map +1 -1
  9. package/dist/components/ui/alert-dialog.cjs +116 -0
  10. package/dist/components/ui/alert-dialog.cjs.map +1 -0
  11. package/dist/components/ui/alert-dialog.d.cts +18 -0
  12. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  13. package/dist/components/ui/alert-dialog.js +13 -12
  14. package/dist/components/ui/alert-dialog.js.map +1 -1
  15. package/dist/components/ui/alert.cjs +49 -0
  16. package/dist/components/ui/alert.cjs.map +1 -0
  17. package/dist/components/ui/alert.d.cts +10 -0
  18. package/dist/components/ui/aspect-ratio.cjs +14 -0
  19. package/dist/components/ui/aspect-ratio.cjs.map +1 -0
  20. package/dist/components/ui/aspect-ratio.d.cts +3 -0
  21. package/dist/components/ui/aspect-ratio.js +4 -5
  22. package/dist/components/ui/aspect-ratio.js.map +1 -1
  23. package/dist/components/ui/attachment.cjs +113 -0
  24. package/dist/components/ui/attachment.cjs.map +1 -0
  25. package/dist/components/ui/attachment.d.cts +24 -0
  26. package/dist/components/ui/avatar.cjs +60 -0
  27. package/dist/components/ui/avatar.cjs.map +1 -0
  28. package/dist/components/ui/avatar.d.cts +11 -0
  29. package/dist/components/ui/avatar.d.ts.map +1 -1
  30. package/dist/components/ui/avatar.js +7 -6
  31. package/dist/components/ui/avatar.js.map +1 -1
  32. package/dist/components/ui/badge.cjs +33 -0
  33. package/dist/components/ui/badge.cjs.map +1 -0
  34. package/dist/components/ui/badge.d.cts +9 -0
  35. package/dist/components/ui/breadcrumb.cjs +81 -0
  36. package/dist/components/ui/breadcrumb.cjs.map +1 -0
  37. package/dist/components/ui/breadcrumb.d.cts +11 -0
  38. package/dist/components/ui/bubble.cjs +79 -0
  39. package/dist/components/ui/bubble.cjs.map +1 -0
  40. package/dist/components/ui/bubble.d.cts +17 -0
  41. package/dist/components/ui/button-group.cjs +43 -0
  42. package/dist/components/ui/button-group.cjs.map +1 -0
  43. package/dist/components/ui/button-group.d.cts +11 -0
  44. package/dist/components/ui/button.cjs +64 -0
  45. package/dist/components/ui/button.cjs.map +1 -0
  46. package/dist/components/ui/button.d.cts +21 -0
  47. package/dist/components/ui/calendar.cjs +114 -0
  48. package/dist/components/ui/calendar.cjs.map +1 -0
  49. package/dist/components/ui/calendar.d.cts +10 -0
  50. package/dist/components/ui/calendar.js +0 -1
  51. package/dist/components/ui/calendar.js.map +1 -1
  52. package/dist/components/ui/card.cjs +80 -0
  53. package/dist/components/ui/card.cjs.map +1 -0
  54. package/dist/components/ui/card.d.cts +33 -0
  55. package/dist/components/ui/card.d.ts +7 -2
  56. package/dist/components/ui/card.d.ts.map +1 -1
  57. package/dist/components/ui/card.js.map +1 -1
  58. package/dist/components/ui/carousel.cjs +142 -0
  59. package/dist/components/ui/carousel.cjs.map +1 -0
  60. package/dist/components/ui/carousel.d.cts +28 -0
  61. package/dist/components/ui/carousel.d.ts +1 -1
  62. package/dist/components/ui/carousel.d.ts.map +1 -1
  63. package/dist/components/ui/carousel.js +1 -0
  64. package/dist/components/ui/carousel.js.map +1 -1
  65. package/dist/components/ui/chart.cjs +159 -0
  66. package/dist/components/ui/chart.cjs.map +1 -0
  67. package/dist/components/ui/chart.d.cts +44 -0
  68. package/dist/components/ui/chart.js +0 -1
  69. package/dist/components/ui/chart.js.map +1 -1
  70. package/dist/components/ui/checkbox.cjs +25 -0
  71. package/dist/components/ui/checkbox.cjs.map +1 -0
  72. package/dist/components/ui/checkbox.d.cts +4 -0
  73. package/dist/components/ui/checkbox.d.ts.map +1 -1
  74. package/dist/components/ui/checkbox.js +6 -5
  75. package/dist/components/ui/checkbox.js.map +1 -1
  76. package/dist/components/ui/code-block.cjs +134 -0
  77. package/dist/components/ui/code-block.cjs.map +1 -0
  78. package/dist/components/ui/code-block.d.cts +26 -0
  79. package/dist/components/ui/code-block.d.ts.map +1 -1
  80. package/dist/components/ui/code-block.js +1 -0
  81. package/dist/components/ui/code-block.js.map +1 -1
  82. package/dist/components/ui/collapsible.cjs +28 -0
  83. package/dist/components/ui/collapsible.cjs.map +1 -0
  84. package/dist/components/ui/collapsible.d.cts +5 -0
  85. package/dist/components/ui/collapsible.js +6 -7
  86. package/dist/components/ui/collapsible.js.map +1 -1
  87. package/dist/components/ui/combobox.cjs +193 -0
  88. package/dist/components/ui/combobox.cjs.map +1 -0
  89. package/dist/components/ui/combobox.d.cts +24 -0
  90. package/dist/components/ui/combobox.d.ts.map +1 -1
  91. package/dist/components/ui/combobox.js +22 -21
  92. package/dist/components/ui/combobox.js.map +1 -1
  93. package/dist/components/ui/command.cjs +99 -0
  94. package/dist/components/ui/command.cjs.map +1 -0
  95. package/dist/components/ui/command.d.cts +18 -0
  96. package/dist/components/ui/command.d.ts.map +1 -1
  97. package/dist/components/ui/command.js +10 -12
  98. package/dist/components/ui/command.js.map +1 -1
  99. package/dist/components/ui/context-menu.cjs +143 -0
  100. package/dist/components/ui/context-menu.cjs.map +1 -0
  101. package/dist/components/ui/context-menu.d.cts +31 -0
  102. package/dist/components/ui/context-menu.d.ts.map +1 -1
  103. package/dist/components/ui/context-menu.js +20 -19
  104. package/dist/components/ui/context-menu.js.map +1 -1
  105. package/dist/components/ui/dialog.cjs +148 -0
  106. package/dist/components/ui/dialog.cjs.map +1 -0
  107. package/dist/components/ui/dialog.d.cts +55 -0
  108. package/dist/components/ui/dialog.d.ts +41 -3
  109. package/dist/components/ui/dialog.d.ts.map +1 -1
  110. package/dist/components/ui/dialog.js +65 -26
  111. package/dist/components/ui/dialog.js.map +1 -1
  112. package/dist/components/ui/direction.cjs +19 -0
  113. package/dist/components/ui/direction.cjs.map +1 -0
  114. package/dist/components/ui/direction.d.cts +11 -0
  115. package/dist/components/ui/direction.d.ts +1 -1
  116. package/dist/components/ui/direction.d.ts.map +1 -1
  117. package/dist/components/ui/direction.js +0 -1
  118. package/dist/components/ui/direction.js.map +1 -1
  119. package/dist/components/ui/drawer.cjs +90 -0
  120. package/dist/components/ui/drawer.cjs.map +1 -0
  121. package/dist/components/ui/drawer.d.cts +13 -0
  122. package/dist/components/ui/drawer.js +11 -11
  123. package/dist/components/ui/drawer.js.map +1 -1
  124. package/dist/components/ui/dropdown-menu.cjs +146 -0
  125. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  126. package/dist/components/ui/dropdown-menu.d.cts +29 -0
  127. package/dist/components/ui/dropdown-menu.js +19 -20
  128. package/dist/components/ui/dropdown-menu.js.map +1 -1
  129. package/dist/components/ui/empty.cjs +66 -0
  130. package/dist/components/ui/empty.cjs.map +1 -0
  131. package/dist/components/ui/empty.d.cts +11 -0
  132. package/dist/components/ui/field.cjs +121 -0
  133. package/dist/components/ui/field.cjs.map +1 -0
  134. package/dist/components/ui/field.d.cts +24 -0
  135. package/dist/components/ui/field.js +0 -1
  136. package/dist/components/ui/field.js.map +1 -1
  137. package/dist/components/ui/hover-card.cjs +38 -0
  138. package/dist/components/ui/hover-card.cjs.map +1 -0
  139. package/dist/components/ui/hover-card.d.cts +6 -0
  140. package/dist/components/ui/hover-card.d.ts.map +1 -1
  141. package/dist/components/ui/hover-card.js +8 -7
  142. package/dist/components/ui/hover-card.js.map +1 -1
  143. package/dist/components/ui/input-group.cjs +87 -0
  144. package/dist/components/ui/input-group.cjs.map +1 -0
  145. package/dist/components/ui/input-group.d.cts +16 -0
  146. package/dist/components/ui/input-otp.cjs +54 -0
  147. package/dist/components/ui/input-otp.cjs.map +1 -0
  148. package/dist/components/ui/input-otp.d.cts +11 -0
  149. package/dist/components/ui/input-otp.js +0 -1
  150. package/dist/components/ui/input-otp.js.map +1 -1
  151. package/dist/components/ui/input.cjs +28 -0
  152. package/dist/components/ui/input.cjs.map +1 -0
  153. package/dist/components/ui/input.d.cts +10 -0
  154. package/dist/components/ui/item.cjs +133 -0
  155. package/dist/components/ui/item.cjs.map +1 -0
  156. package/dist/components/ui/item.d.cts +23 -0
  157. package/dist/components/ui/kbd.cjs +22 -0
  158. package/dist/components/ui/kbd.cjs.map +1 -0
  159. package/dist/components/ui/kbd.d.cts +3 -0
  160. package/dist/components/ui/label.cjs +19 -0
  161. package/dist/components/ui/label.cjs.map +1 -0
  162. package/dist/components/ui/label.d.cts +4 -0
  163. package/dist/components/ui/label.d.ts.map +1 -1
  164. package/dist/components/ui/label.js +5 -4
  165. package/dist/components/ui/label.js.map +1 -1
  166. package/dist/components/ui/marker.cjs +46 -0
  167. package/dist/components/ui/marker.cjs.map +1 -0
  168. package/dist/components/ui/marker.d.cts +11 -0
  169. package/dist/components/ui/menubar.cjs +154 -0
  170. package/dist/components/ui/menubar.cjs.map +1 -0
  171. package/dist/components/ui/menubar.d.cts +30 -0
  172. package/dist/components/ui/menubar.js +20 -21
  173. package/dist/components/ui/menubar.js.map +1 -1
  174. package/dist/components/ui/message-scroller.cjs +87 -0
  175. package/dist/components/ui/message-scroller.cjs.map +1 -0
  176. package/dist/components/ui/message-scroller.d.cts +10 -0
  177. package/dist/components/ui/message-scroller.js +9 -9
  178. package/dist/components/ui/message-scroller.js.map +1 -1
  179. package/dist/components/ui/message.cjs +58 -0
  180. package/dist/components/ui/message.cjs.map +1 -0
  181. package/dist/components/ui/message.d.cts +10 -0
  182. package/dist/components/ui/native-select.cjs +44 -0
  183. package/dist/components/ui/native-select.cjs.map +1 -0
  184. package/dist/components/ui/native-select.d.cts +8 -0
  185. package/dist/components/ui/native-select.d.ts +1 -1
  186. package/dist/components/ui/native-select.d.ts.map +1 -1
  187. package/dist/components/ui/native-select.js.map +1 -1
  188. package/dist/components/ui/navigation-menu.cjs +93 -0
  189. package/dist/components/ui/navigation-menu.cjs.map +1 -0
  190. package/dist/components/ui/navigation-menu.d.cts +14 -0
  191. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  192. package/dist/components/ui/navigation-menu.js +12 -11
  193. package/dist/components/ui/navigation-menu.js.map +1 -1
  194. package/dist/components/ui/pagination.cjs +90 -0
  195. package/dist/components/ui/pagination.cjs.map +1 -0
  196. package/dist/components/ui/pagination.d.cts +17 -0
  197. package/dist/components/ui/pagination.d.ts +1 -1
  198. package/dist/components/ui/pagination.d.ts.map +1 -1
  199. package/dist/components/ui/pagination.js.map +1 -1
  200. package/dist/components/ui/popover.cjs +66 -0
  201. package/dist/components/ui/popover.cjs.map +1 -0
  202. package/dist/components/ui/popover.d.cts +10 -0
  203. package/dist/components/ui/popover.d.ts.map +1 -1
  204. package/dist/components/ui/popover.js +8 -7
  205. package/dist/components/ui/popover.js.map +1 -1
  206. package/dist/components/ui/progress.cjs +25 -0
  207. package/dist/components/ui/progress.cjs.map +1 -0
  208. package/dist/components/ui/progress.d.cts +4 -0
  209. package/dist/components/ui/progress.js +5 -6
  210. package/dist/components/ui/progress.js.map +1 -1
  211. package/dist/components/ui/questionnaire.cjs +187 -0
  212. package/dist/components/ui/questionnaire.cjs.map +1 -0
  213. package/dist/components/ui/questionnaire.d.cts +19 -0
  214. package/dist/components/ui/questionnaire.d.ts.map +1 -1
  215. package/dist/components/ui/questionnaire.js +19 -21
  216. package/dist/components/ui/questionnaire.js.map +1 -1
  217. package/dist/components/ui/radio-group.cjs +32 -0
  218. package/dist/components/ui/radio-group.cjs.map +1 -0
  219. package/dist/components/ui/radio-group.d.cts +5 -0
  220. package/dist/components/ui/radio-group.d.ts.map +1 -1
  221. package/dist/components/ui/radio-group.js +7 -6
  222. package/dist/components/ui/radio-group.js.map +1 -1
  223. package/dist/components/ui/resizable.cjs +33 -0
  224. package/dist/components/ui/resizable.cjs.map +1 -0
  225. package/dist/components/ui/resizable.d.cts +7 -0
  226. package/dist/components/ui/resizable.d.ts.map +1 -1
  227. package/dist/components/ui/resizable.js +0 -2
  228. package/dist/components/ui/resizable.js.map +1 -1
  229. package/dist/components/ui/scroll-area.cjs +43 -0
  230. package/dist/components/ui/scroll-area.cjs.map +1 -0
  231. package/dist/components/ui/scroll-area.d.cts +5 -0
  232. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  233. package/dist/components/ui/scroll-area.js +9 -8
  234. package/dist/components/ui/scroll-area.js.map +1 -1
  235. package/dist/components/ui/select.cjs +113 -0
  236. package/dist/components/ui/select.cjs.map +1 -0
  237. package/dist/components/ui/select.d.cts +15 -0
  238. package/dist/components/ui/select.js +17 -18
  239. package/dist/components/ui/select.js.map +1 -1
  240. package/dist/components/ui/separator.cjs +21 -0
  241. package/dist/components/ui/separator.cjs.map +1 -0
  242. package/dist/components/ui/separator.d.cts +4 -0
  243. package/dist/components/ui/separator.d.ts.map +1 -1
  244. package/dist/components/ui/separator.js +5 -4
  245. package/dist/components/ui/separator.js.map +1 -1
  246. package/dist/components/ui/sheet.cjs +101 -0
  247. package/dist/components/ui/sheet.cjs.map +1 -0
  248. package/dist/components/ui/sheet.d.cts +14 -0
  249. package/dist/components/ui/sheet.d.ts.map +1 -1
  250. package/dist/components/ui/sheet.js +1 -0
  251. package/dist/components/ui/sheet.js.map +1 -1
  252. package/dist/components/ui/sidebar.cjs +405 -0
  253. package/dist/components/ui/sidebar.cjs.map +1 -0
  254. package/dist/components/ui/sidebar.d.cts +69 -0
  255. package/dist/components/ui/sidebar.js +0 -1
  256. package/dist/components/ui/sidebar.js.map +1 -1
  257. package/dist/components/ui/skeleton.cjs +14 -0
  258. package/dist/components/ui/skeleton.cjs.map +1 -0
  259. package/dist/components/ui/skeleton.d.cts +2 -0
  260. package/dist/components/ui/slider.cjs +42 -0
  261. package/dist/components/ui/slider.cjs.map +1 -0
  262. package/dist/components/ui/slider.d.cts +7 -0
  263. package/dist/components/ui/slider.js +7 -8
  264. package/dist/components/ui/slider.js.map +1 -1
  265. package/dist/components/ui/sonner.cjs +36 -0
  266. package/dist/components/ui/sonner.cjs.map +1 -0
  267. package/dist/components/ui/sonner.d.cts +13 -0
  268. package/dist/components/ui/sonner.d.ts.map +1 -1
  269. package/dist/components/ui/sonner.js +4 -6
  270. package/dist/components/ui/sonner.js.map +1 -1
  271. package/dist/components/ui/spinner.cjs +17 -0
  272. package/dist/components/ui/spinner.cjs.map +1 -0
  273. package/dist/components/ui/spinner.d.cts +2 -0
  274. package/dist/components/ui/switch.cjs +24 -0
  275. package/dist/components/ui/switch.cjs.map +1 -0
  276. package/dist/components/ui/switch.d.cts +6 -0
  277. package/dist/components/ui/switch.js +5 -6
  278. package/dist/components/ui/switch.js.map +1 -1
  279. package/dist/components/ui/table.cjs +77 -0
  280. package/dist/components/ui/table.cjs.map +1 -0
  281. package/dist/components/ui/table.d.cts +10 -0
  282. package/dist/components/ui/tabs.cjs +54 -0
  283. package/dist/components/ui/tabs.cjs.map +1 -0
  284. package/dist/components/ui/tabs.d.cts +11 -0
  285. package/dist/components/ui/tabs.js +7 -8
  286. package/dist/components/ui/tabs.js.map +1 -1
  287. package/dist/components/ui/textarea.cjs +39 -0
  288. package/dist/components/ui/textarea.cjs.map +1 -0
  289. package/dist/components/ui/textarea.d.cts +9 -0
  290. package/dist/components/ui/textarea.js +0 -1
  291. package/dist/components/ui/textarea.js.map +1 -1
  292. package/dist/components/ui/toggle-group.cjs +56 -0
  293. package/dist/components/ui/toggle-group.cjs.map +1 -0
  294. package/dist/components/ui/toggle-group.d.cts +10 -0
  295. package/dist/components/ui/toggle-group.js +5 -6
  296. package/dist/components/ui/toggle-group.js.map +1 -1
  297. package/dist/components/ui/toggle.cjs +41 -0
  298. package/dist/components/ui/toggle.cjs.map +1 -0
  299. package/dist/components/ui/toggle.d.cts +9 -0
  300. package/dist/components/ui/toggle.d.ts.map +1 -1
  301. package/dist/components/ui/toggle.js +5 -4
  302. package/dist/components/ui/toggle.js.map +1 -1
  303. package/dist/components/ui/tooltip.cjs +43 -0
  304. package/dist/components/ui/tooltip.cjs.map +1 -0
  305. package/dist/components/ui/tooltip.d.cts +7 -0
  306. package/dist/components/ui/tooltip.js +8 -9
  307. package/dist/components/ui/tooltip.js.map +1 -1
  308. package/dist/components/ui/trace.cjs +86 -0
  309. package/dist/components/ui/trace.cjs.map +1 -0
  310. package/dist/components/ui/trace.d.cts +18 -0
  311. package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
  312. package/dist/hooks/use-highlighted-code.js +56 -0
  313. package/dist/hooks/use-highlighted-code.js.map +1 -0
  314. package/dist/hooks/use-mobile.cjs +26 -0
  315. package/dist/hooks/use-mobile.cjs.map +1 -0
  316. package/dist/hooks/use-mobile.d.cts +1 -0
  317. package/dist/hooks/use-mobile.d.ts.map +1 -1
  318. package/dist/hooks/use-mobile.js +1 -0
  319. package/dist/hooks/use-mobile.js.map +1 -1
  320. package/dist/index.cjs +356 -0
  321. package/dist/index.d.cts +67 -0
  322. package/dist/index.d.ts +5 -11
  323. package/dist/index.d.ts.map +1 -1
  324. package/dist/index.js +3 -14
  325. package/dist/lib/get-placeholder.cjs +13 -0
  326. package/dist/lib/get-placeholder.cjs.map +1 -0
  327. package/dist/lib/get-placeholder.d.cts +5 -0
  328. package/dist/lib/highlighter.js +79 -0
  329. package/dist/lib/highlighter.js.map +1 -0
  330. package/dist/lib/utils.cjs +8 -0
  331. package/dist/lib/utils.d.cts +8 -0
  332. package/{src → dist}/styles/globals.css +11 -0
  333. package/package.json +111 -32
  334. /package/{src → dist}/styles/base.css +0 -0
  335. /package/{src → dist}/styles/prose.css +0 -0
  336. /package/{src → dist}/styles/theme.css +0 -0
  337. /package/{src → dist}/styles/tokens.css +0 -0
  338. /package/{src → dist}/styles/utilities.css +0 -0
  339. /package/{src → dist}/styles/variants.css +0 -0
@@ -0,0 +1,148 @@
1
+ "use client";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const require_rolldown_runtime = require("../../chunks/rolldown-runtime-CmQyd0Gu.cjs");
4
+ const require_components_ui_button = require("./button.cjs");
5
+ let cn = require("cn");
6
+ let lucide_react = require("lucide-react");
7
+ let radix_ui = require("radix-ui");
8
+ let react = require("react");
9
+ react = require_rolldown_runtime.__toESM(react, 1);
10
+ let react_jsx_runtime = require("react/jsx-runtime");
11
+ // src/components/ui/dialog.tsx
12
+ /**
13
+ * The bare layer: full viewport, none of the card chrome and no entrance
14
+ * animation. A viewer that already covers the screen has nothing to fly in.
15
+ */
16
+ var BARE_CONTENT_CLASS = "fixed inset-0 z-[var(--z-index-modal)] outline-none focus-visible:outline-none";
17
+ var DEFAULT_CONTENT_CLASS = "fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]";
18
+ function Dialog({ ...props }) {
19
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Root, {
20
+ "data-slot": "dialog",
21
+ ...props
22
+ });
23
+ }
24
+ function DialogTrigger({ ...props }) {
25
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Trigger, {
26
+ "data-slot": "dialog-trigger",
27
+ ...props
28
+ });
29
+ }
30
+ function DialogPortal({ ...props }) {
31
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Portal, {
32
+ "data-slot": "dialog-portal",
33
+ ...props
34
+ });
35
+ }
36
+ function DialogClose({ ...props }) {
37
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Close, {
38
+ "data-slot": "dialog-close",
39
+ ...props
40
+ });
41
+ }
42
+ function DialogOverlay({ className, ...props }) {
43
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Overlay, {
44
+ "data-slot": "dialog-overlay",
45
+ className: (0, cn.cn)("fixed inset-0 isolate z-[var(--z-index-overlay)] bg-black/80 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
46
+ ...props
47
+ });
48
+ }
49
+ function DialogContent({ className, children, showCloseButton, closeButton, overlayClassName, showOverlay = true, variant = "default", ...props }) {
50
+ const resolvedCloseButton = closeButton ?? (showCloseButton === false ? false : true);
51
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogPortal, { children: [showOverlay && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogOverlay, { className: overlayClassName }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(radix_ui.Dialog.Content, {
52
+ "data-slot": "dialog-content",
53
+ "data-variant": variant,
54
+ className: (0, cn.cn)(variant === "bare" ? BARE_CONTENT_CLASS : DEFAULT_CONTENT_CLASS, className),
55
+ ...props,
56
+ children: [
57
+ children,
58
+ resolvedCloseButton === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Close, {
59
+ "data-slot": "dialog-close",
60
+ asChild: true,
61
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_ui_button.Button, {
62
+ variant: "ghost",
63
+ size: "icon-sm",
64
+ className: "absolute top-4 right-4",
65
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.XIcon, { className: "size-5" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
66
+ className: "sr-only",
67
+ children: "Close modal"
68
+ })]
69
+ })
70
+ }),
71
+ resolvedCloseButton !== true && resolvedCloseButton !== false && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Close, {
72
+ "data-slot": "dialog-close",
73
+ asChild: true,
74
+ children: resolvedCloseButton
75
+ })
76
+ ]
77
+ })] });
78
+ }
79
+ /**
80
+ * The unstyled content primitive, for a layout `DialogContent` cannot express.
81
+ *
82
+ * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and
83
+ * takes a `className`:
84
+ *
85
+ * ```tsx
86
+ * <DialogPortal>
87
+ * <DialogOverlay className="bg-foreground/50" />
88
+ * <DialogContentPrimitive className="fixed inset-0">…</DialogContentPrimitive>
89
+ * </DialogPortal>
90
+ * ```
91
+ *
92
+ * `variant="bare"` covers the common case; this exists for everything else.
93
+ */
94
+ function DialogContentPrimitive({ className, ...props }) {
95
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Content, {
96
+ "data-slot": "dialog-content",
97
+ className: (0, cn.cn)("outline-none", className),
98
+ ...props
99
+ });
100
+ }
101
+ function DialogHeader({ className, ...props }) {
102
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
103
+ "data-slot": "dialog-header",
104
+ className: (0, cn.cn)("flex flex-col gap-1.5", className),
105
+ ...props
106
+ });
107
+ }
108
+ function DialogFooter({ className, showCloseButton = false, children, ...props }) {
109
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
110
+ "data-slot": "dialog-footer",
111
+ className: (0, cn.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
112
+ ...props,
113
+ children: [children, showCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Close, {
114
+ asChild: true,
115
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_ui_button.Button, {
116
+ variant: "outline",
117
+ children: "Close"
118
+ })
119
+ })]
120
+ });
121
+ }
122
+ function DialogTitle({ className, ...props }) {
123
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Title, {
124
+ "data-slot": "dialog-title",
125
+ className: (0, cn.cn)("font-display text-h3 leading-none font-semibold tracking-tight", className),
126
+ ...props
127
+ });
128
+ }
129
+ function DialogDescription({ className, ...props }) {
130
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Dialog.Description, {
131
+ "data-slot": "dialog-description",
132
+ className: (0, cn.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
133
+ ...props
134
+ });
135
+ }
136
+ exports.Dialog = Dialog;
137
+ exports.DialogClose = DialogClose;
138
+ exports.DialogContent = DialogContent;
139
+ exports.DialogContentPrimitive = DialogContentPrimitive;
140
+ exports.DialogDescription = DialogDescription;
141
+ exports.DialogFooter = DialogFooter;
142
+ exports.DialogHeader = DialogHeader;
143
+ exports.DialogOverlay = DialogOverlay;
144
+ exports.DialogPortal = DialogPortal;
145
+ exports.DialogTitle = DialogTitle;
146
+ exports.DialogTrigger = DialogTrigger;
147
+
148
+ //# sourceMappingURL=dialog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.cjs","names":["DialogPrimitive","Button","XIcon"],"sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport { XIcon } from 'lucide-react';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { Button } from './button';\n\n/**\n * The bare layer: full viewport, none of the card chrome and no entrance\n * animation. A viewer that already covers the screen has nothing to fly in.\n */\nconst BARE_CONTENT_CLASS =\n 'fixed inset-0 z-[var(--z-index-modal)] outline-none focus-visible:outline-none';\n\nconst DEFAULT_CONTENT_CLASS =\n 'fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]';\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 isolate z-[var(--z-index-overlay)] bg-black/80 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',\n className,\n )}\n {...props}\n />\n );\n}\n\ntype DialogContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {\n /**\n * @deprecated Use `closeButton` instead. Kept so existing call sites keep\n * working; `closeButton` wins when both are set.\n */\n showCloseButton?: boolean;\n /**\n * The corner affordance. `false` removes it, `true` (the default) renders the\n * house ghost button, and a node replaces it — pass a single element, since it\n * becomes the `Dialog.Close` trigger. Use this when the surface behind the\n * button is not `bg-background` and the default ghost button would disappear.\n */\n closeButton?: boolean | React.ReactNode;\n /** Classes for the backdrop. The layer is not otherwise reachable. */\n overlayClassName?: string;\n /** Render the backdrop at all. Defaults to `true`. */\n showOverlay?: boolean;\n /**\n * `default` is the centred card. `bare` is a full-viewport layer with no\n * border, background, padding, radius, shadow, cap or animation, for layouts\n * that compose their own surface — an image viewer, a slide-over, a canvas.\n */\n variant?: 'default' | 'bare';\n};\n\nfunction DialogContent({\n className,\n children,\n showCloseButton,\n closeButton,\n overlayClassName,\n showOverlay = true,\n variant = 'default',\n ...props\n}: DialogContentProps) {\n // `showCloseButton` is the older boolean form; `closeButton` supersedes it.\n const resolvedCloseButton = closeButton ?? (showCloseButton === false ? false : true);\n\n return (\n <DialogPortal>\n {showOverlay && <DialogOverlay className={overlayClassName} />}\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n data-variant={variant}\n className={cn(variant === 'bare' ? BARE_CONTENT_CLASS : DEFAULT_CONTENT_CLASS, className)}\n {...props}\n >\n {children}\n {resolvedCloseButton === true && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n <Button variant=\"ghost\" size=\"icon-sm\" className=\"absolute top-4 right-4\">\n <XIcon className=\"size-5\" />\n <span className=\"sr-only\">Close modal</span>\n </Button>\n </DialogPrimitive.Close>\n )}\n {resolvedCloseButton !== true && resolvedCloseButton !== false && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n {resolvedCloseButton}\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/**\n * The unstyled content primitive, for a layout `DialogContent` cannot express.\n *\n * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and\n * takes a `className`:\n *\n * ```tsx\n * <DialogPortal>\n * <DialogOverlay className=\"bg-foreground/50\" />\n * <DialogContentPrimitive className=\"fixed inset-0\">…</DialogContentPrimitive>\n * </DialogPortal>\n * ```\n *\n * `variant=\"bare\"` covers the common case; this exists for everything else.\n */\nfunction DialogContentPrimitive({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content>) {\n return (\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn('outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-1.5', className)} {...props} />\n );\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outline\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('font-display text-h3 leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n 'text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogContentPrimitive,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n type DialogContentProps,\n};\n"],"mappings":";;;;;;;;;;;;;;;AAaA,IAAM,qBACJ;AAEF,IAAM,wBACJ;AAEF,SAAS,OAAO,EAAE,GAAG,SAA4D;CAC/E,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,SAAAA,OAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ,CAAA;AAC9D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CACzF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,SAAAA,OAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ,CAAA;AACzE;AAEA,SAAS,aAAa,EAAE,GAAG,SAA8D;CACvF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,SAAAA,OAAgB,QAAjB;EAAwB,aAAU;EAAgB,GAAI;CAAQ,CAAA;AACvE;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CACrF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CA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I;CACL,CAAA;AAEL"}
@@ -0,0 +1,55 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
+ type DialogContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ /**
10
+ * @deprecated Use `closeButton` instead. Kept so existing call sites keep
11
+ * working; `closeButton` wins when both are set.
12
+ */
13
+ showCloseButton?: boolean;
14
+ /**
15
+ * The corner affordance. `false` removes it, `true` (the default) renders the
16
+ * house ghost button, and a node replaces it — pass a single element, since it
17
+ * becomes the `Dialog.Close` trigger. Use this when the surface behind the
18
+ * button is not `bg-background` and the default ghost button would disappear.
19
+ */
20
+ closeButton?: boolean | React.ReactNode;
21
+ /** Classes for the backdrop. The layer is not otherwise reachable. */
22
+ overlayClassName?: string;
23
+ /** Render the backdrop at all. Defaults to `true`. */
24
+ showOverlay?: boolean;
25
+ /**
26
+ * `default` is the centred card. `bare` is a full-viewport layer with no
27
+ * border, background, padding, radius, shadow, cap or animation, for layouts
28
+ * that compose their own surface — an image viewer, a slide-over, a canvas.
29
+ */
30
+ variant?: 'default' | 'bare';
31
+ };
32
+ declare function DialogContent({ className, children, showCloseButton, closeButton, overlayClassName, showOverlay, variant, ...props }: DialogContentProps): React.JSX.Element;
33
+ /**
34
+ * The unstyled content primitive, for a layout `DialogContent` cannot express.
35
+ *
36
+ * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and
37
+ * takes a `className`:
38
+ *
39
+ * ```tsx
40
+ * <DialogPortal>
41
+ * <DialogOverlay className="bg-foreground/50" />
42
+ * <DialogContentPrimitive className="fixed inset-0">…</DialogContentPrimitive>
43
+ * </DialogPortal>
44
+ * ```
45
+ *
46
+ * `variant="bare"` covers the common case; this exists for everything else.
47
+ */
48
+ declare function DialogContentPrimitive({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>): React.JSX.Element;
49
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
50
+ declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
51
+ showCloseButton?: boolean;
52
+ }): React.JSX.Element;
53
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
54
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
55
+ export { Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type DialogContentProps, };
@@ -5,14 +5,52 @@ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogP
5
5
  declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
6
  declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
7
  declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
8
+ type DialogContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ /**
10
+ * @deprecated Use `closeButton` instead. Kept so existing call sites keep
11
+ * working; `closeButton` wins when both are set.
12
+ */
9
13
  showCloseButton?: boolean;
10
- }): React.JSX.Element;
14
+ /**
15
+ * The corner affordance. `false` removes it, `true` (the default) renders the
16
+ * house ghost button, and a node replaces it — pass a single element, since it
17
+ * becomes the `Dialog.Close` trigger. Use this when the surface behind the
18
+ * button is not `bg-background` and the default ghost button would disappear.
19
+ */
20
+ closeButton?: boolean | React.ReactNode;
21
+ /** Classes for the backdrop. The layer is not otherwise reachable. */
22
+ overlayClassName?: string;
23
+ /** Render the backdrop at all. Defaults to `true`. */
24
+ showOverlay?: boolean;
25
+ /**
26
+ * `default` is the centred card. `bare` is a full-viewport layer with no
27
+ * border, background, padding, radius, shadow, cap or animation, for layouts
28
+ * that compose their own surface — an image viewer, a slide-over, a canvas.
29
+ */
30
+ variant?: 'default' | 'bare';
31
+ };
32
+ declare function DialogContent({ className, children, showCloseButton, closeButton, overlayClassName, showOverlay, variant, ...props }: DialogContentProps): React.JSX.Element;
33
+ /**
34
+ * The unstyled content primitive, for a layout `DialogContent` cannot express.
35
+ *
36
+ * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and
37
+ * takes a `className`:
38
+ *
39
+ * ```tsx
40
+ * <DialogPortal>
41
+ * <DialogOverlay className="bg-foreground/50" />
42
+ * <DialogContentPrimitive className="fixed inset-0">…</DialogContentPrimitive>
43
+ * </DialogPortal>
44
+ * ```
45
+ *
46
+ * `variant="bare"` covers the common case; this exists for everything else.
47
+ */
48
+ declare function DialogContentPrimitive({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>): React.JSX.Element;
11
49
  declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
12
50
  declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
13
51
  showCloseButton?: boolean;
14
52
  }): React.JSX.Element;
15
53
  declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
16
54
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
17
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
55
+ export { Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type DialogContentProps, };
18
56
  //# sourceMappingURL=dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,qBAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAEpF;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAWtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,qBAwBA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,C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AO,eAAe,CAAC,KAAK,CAAC,qBAQ/F;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,qBAW1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,KAAK,kBAAkB,GACxB,CAAC"}
@@ -1,61 +1,100 @@
1
+ "use client";
1
2
  import { Button } from "./button.js";
2
3
  import { cn } from "cn";
3
4
  import { XIcon } from "lucide-react";
4
- import { Dialog } from "radix-ui";
5
+ import { Dialog as Dialog$1 } from "radix-ui";
5
6
  import "react";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
8
  // src/components/ui/dialog.tsx
8
- function Dialog$1({ ...props }) {
9
- return /* @__PURE__ */ jsx(Dialog.Root, {
9
+ /**
10
+ * The bare layer: full viewport, none of the card chrome and no entrance
11
+ * animation. A viewer that already covers the screen has nothing to fly in.
12
+ */
13
+ var BARE_CONTENT_CLASS = "fixed inset-0 z-[var(--z-index-modal)] outline-none focus-visible:outline-none";
14
+ var DEFAULT_CONTENT_CLASS = "fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]";
15
+ function Dialog({ ...props }) {
16
+ return /* @__PURE__ */ jsx(Dialog$1.Root, {
10
17
  "data-slot": "dialog",
11
18
  ...props
12
19
  });
13
20
  }
14
21
  function DialogTrigger({ ...props }) {
15
- return /* @__PURE__ */ jsx(Dialog.Trigger, {
22
+ return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
16
23
  "data-slot": "dialog-trigger",
17
24
  ...props
18
25
  });
19
26
  }
20
27
  function DialogPortal({ ...props }) {
21
- return /* @__PURE__ */ jsx(Dialog.Portal, {
28
+ return /* @__PURE__ */ jsx(Dialog$1.Portal, {
22
29
  "data-slot": "dialog-portal",
23
30
  ...props
24
31
  });
25
32
  }
26
33
  function DialogClose({ ...props }) {
27
- return /* @__PURE__ */ jsx(Dialog.Close, {
34
+ return /* @__PURE__ */ jsx(Dialog$1.Close, {
28
35
  "data-slot": "dialog-close",
29
36
  ...props
30
37
  });
31
38
  }
32
39
  function DialogOverlay({ className, ...props }) {
33
- return /* @__PURE__ */ jsx(Dialog.Overlay, {
40
+ return /* @__PURE__ */ jsx(Dialog$1.Overlay, {
34
41
  "data-slot": "dialog-overlay",
35
42
  className: cn("fixed inset-0 isolate z-[var(--z-index-overlay)] bg-black/80 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
36
43
  ...props
37
44
  });
38
45
  }
39
- function DialogContent({ className, children, showCloseButton = true, ...props }) {
40
- return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(Dialog.Content, {
46
+ function DialogContent({ className, children, showCloseButton, closeButton, overlayClassName, showOverlay = true, variant = "default", ...props }) {
47
+ const resolvedCloseButton = closeButton ?? (showCloseButton === false ? false : true);
48
+ return /* @__PURE__ */ jsxs(DialogPortal, { children: [showOverlay && /* @__PURE__ */ jsx(DialogOverlay, { className: overlayClassName }), /* @__PURE__ */ jsxs(Dialog$1.Content, {
41
49
  "data-slot": "dialog-content",
42
- className: cn("fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]", className),
50
+ "data-variant": variant,
51
+ className: cn(variant === "bare" ? BARE_CONTENT_CLASS : DEFAULT_CONTENT_CLASS, className),
43
52
  ...props,
44
- children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog.Close, {
45
- "data-slot": "dialog-close",
46
- asChild: true,
47
- children: /* @__PURE__ */ jsxs(Button, {
48
- variant: "ghost",
49
- size: "icon-sm",
50
- className: "absolute top-4 right-4",
51
- children: [/* @__PURE__ */ jsx(XIcon, { className: "size-5" }), /* @__PURE__ */ jsx("span", {
52
- className: "sr-only",
53
- children: "Close modal"
54
- })]
53
+ children: [
54
+ children,
55
+ resolvedCloseButton === true && /* @__PURE__ */ jsx(Dialog$1.Close, {
56
+ "data-slot": "dialog-close",
57
+ asChild: true,
58
+ children: /* @__PURE__ */ jsxs(Button, {
59
+ variant: "ghost",
60
+ size: "icon-sm",
61
+ className: "absolute top-4 right-4",
62
+ children: [/* @__PURE__ */ jsx(XIcon, { className: "size-5" }), /* @__PURE__ */ jsx("span", {
63
+ className: "sr-only",
64
+ children: "Close modal"
65
+ })]
66
+ })
67
+ }),
68
+ resolvedCloseButton !== true && resolvedCloseButton !== false && /* @__PURE__ */ jsx(Dialog$1.Close, {
69
+ "data-slot": "dialog-close",
70
+ asChild: true,
71
+ children: resolvedCloseButton
55
72
  })
56
- })]
73
+ ]
57
74
  })] });
58
75
  }
76
+ /**
77
+ * The unstyled content primitive, for a layout `DialogContent` cannot express.
78
+ *
79
+ * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and
80
+ * takes a `className`:
81
+ *
82
+ * ```tsx
83
+ * <DialogPortal>
84
+ * <DialogOverlay className="bg-foreground/50" />
85
+ * <DialogContentPrimitive className="fixed inset-0">…</DialogContentPrimitive>
86
+ * </DialogPortal>
87
+ * ```
88
+ *
89
+ * `variant="bare"` covers the common case; this exists for everything else.
90
+ */
91
+ function DialogContentPrimitive({ className, ...props }) {
92
+ return /* @__PURE__ */ jsx(Dialog$1.Content, {
93
+ "data-slot": "dialog-content",
94
+ className: cn("outline-none", className),
95
+ ...props
96
+ });
97
+ }
59
98
  function DialogHeader({ className, ...props }) {
60
99
  return /* @__PURE__ */ jsx("div", {
61
100
  "data-slot": "dialog-header",
@@ -68,7 +107,7 @@ function DialogFooter({ className, showCloseButton = false, children, ...props }
68
107
  "data-slot": "dialog-footer",
69
108
  className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
70
109
  ...props,
71
- children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog.Close, {
110
+ children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
72
111
  asChild: true,
73
112
  children: /* @__PURE__ */ jsx(Button, {
74
113
  variant: "outline",
@@ -78,19 +117,19 @@ function DialogFooter({ className, showCloseButton = false, children, ...props }
78
117
  });
79
118
  }
80
119
  function DialogTitle({ className, ...props }) {
81
- return /* @__PURE__ */ jsx(Dialog.Title, {
120
+ return /* @__PURE__ */ jsx(Dialog$1.Title, {
82
121
  "data-slot": "dialog-title",
83
122
  className: cn("font-display text-h3 leading-none font-semibold tracking-tight", className),
84
123
  ...props
85
124
  });
86
125
  }
87
126
  function DialogDescription({ className, ...props }) {
88
- return /* @__PURE__ */ jsx(Dialog.Description, {
127
+ return /* @__PURE__ */ jsx(Dialog$1.Description, {
89
128
  "data-slot": "dialog-description",
90
129
  className: cn("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
91
130
  ...props
92
131
  });
93
132
  }
94
- export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
133
+ export { Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
95
134
 
96
135
  //# sourceMappingURL=dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","names":["Dialog","DialogPrimitive"],"sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { XIcon } from 'lucide-react';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { Button } from './button';\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 isolate z-[var(--z-index-overlay)] bg-black/80 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n <Button variant=\"ghost\" size=\"icon-sm\" className=\"absolute top-4 right-4\">\n <XIcon className=\"size-5\" />\n <span className=\"sr-only\">Close modal</span>\n </Button>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-1.5', className)} {...props} />\n );\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outline\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('font-display text-h3 leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n 'text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n D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AAK,aAAU;EAAgB,WAAW,GAAG,yBAAyB,SAAS;EAAG,GAAI;CAAQ,CAAA;AAElG;AAEA,SAAS,aAAa,EACpB,WACA,kBAAkB,OAClB,UACA,GAAG,SAGF;CACD,OACE,qBAAC,OAAD;EACE,aAAU;EACV,WAAW,GAAG,0DAA0D,SAAS;EACjF,GAAI;EAHN,UAAA,CAKG,UACA,mBACC,oBAACA,OAAgB,OAAjB;GAAuB,SAAA;GACrB,UAAA,oBAAC,QAAD;IAAQ,SAAQ;IAAU,UAAA;GAAa,CAAA;EAClB,CAAA,CAEtB;;AAET;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CAChG,OACE,oBAACA,OAAgB,OAAjB;EACE,aAAU;EACV,WAAW,GAAG,kEAAkE,SAAS;EACzF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SACwD;CAC3D,OACE,oBAACA,OAAgB,aAAjB;EACE,aAAU;EACV,WAAW,GACT,sGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"dialog.js","names":["DialogPrimitive"],"sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport { XIcon } from 'lucide-react';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport { Button } from './button';\n\n/**\n * The bare layer: full viewport, none of the card chrome and no entrance\n * animation. A viewer that already covers the screen has nothing to fly in.\n */\nconst BARE_CONTENT_CLASS =\n 'fixed inset-0 z-[var(--z-index-modal)] outline-none focus-visible:outline-none';\n\nconst DEFAULT_CONTENT_CLASS =\n 'fixed top-1/3 left-1/2 z-[var(--z-index-modal)] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-sm border border-border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg md:top-1/2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-open:slide-in-from-top-[20%] data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:slide-out-to-top-[20%]';\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 isolate z-[var(--z-index-overlay)] bg-black/80 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',\n className,\n )}\n {...props}\n />\n );\n}\n\ntype DialogContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {\n /**\n * @deprecated Use `closeButton` instead. Kept so existing call sites keep\n * working; `closeButton` wins when both are set.\n */\n showCloseButton?: boolean;\n /**\n * The corner affordance. `false` removes it, `true` (the default) renders the\n * house ghost button, and a node replaces it — pass a single element, since it\n * becomes the `Dialog.Close` trigger. Use this when the surface behind the\n * button is not `bg-background` and the default ghost button would disappear.\n */\n closeButton?: boolean | React.ReactNode;\n /** Classes for the backdrop. The layer is not otherwise reachable. */\n overlayClassName?: string;\n /** Render the backdrop at all. Defaults to `true`. */\n showOverlay?: boolean;\n /**\n * `default` is the centred card. `bare` is a full-viewport layer with no\n * border, background, padding, radius, shadow, cap or animation, for layouts\n * that compose their own surface — an image viewer, a slide-over, a canvas.\n */\n variant?: 'default' | 'bare';\n};\n\nfunction DialogContent({\n className,\n children,\n showCloseButton,\n closeButton,\n overlayClassName,\n showOverlay = true,\n variant = 'default',\n ...props\n}: DialogContentProps) {\n // `showCloseButton` is the older boolean form; `closeButton` supersedes it.\n const resolvedCloseButton = closeButton ?? (showCloseButton === false ? false : true);\n\n return (\n <DialogPortal>\n {showOverlay && <DialogOverlay className={overlayClassName} />}\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n data-variant={variant}\n className={cn(variant === 'bare' ? BARE_CONTENT_CLASS : DEFAULT_CONTENT_CLASS, className)}\n {...props}\n >\n {children}\n {resolvedCloseButton === true && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n <Button variant=\"ghost\" size=\"icon-sm\" className=\"absolute top-4 right-4\">\n <XIcon className=\"size-5\" />\n <span className=\"sr-only\">Close modal</span>\n </Button>\n </DialogPrimitive.Close>\n )}\n {resolvedCloseButton !== true && resolvedCloseButton !== false && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n {resolvedCloseButton}\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/**\n * The unstyled content primitive, for a layout `DialogContent` cannot express.\n *\n * Compose it inside `DialogPortal` with `DialogOverlay`, which is exported and\n * takes a `className`:\n *\n * ```tsx\n * <DialogPortal>\n * <DialogOverlay className=\"bg-foreground/50\" />\n * <DialogContentPrimitive className=\"fixed inset-0\">…</DialogContentPrimitive>\n * </DialogPortal>\n * ```\n *\n * `variant=\"bare\"` covers the common case; this exists for everything else.\n */\nfunction DialogContentPrimitive({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content>) {\n return (\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn('outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-1.5', className)} {...props} />\n );\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<'div'> & {\n showCloseButton?: boolean;\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outline\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n );\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('font-display text-h3 leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n 'text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogContentPrimitive,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n type DialogContentProps,\n};\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,qBACJ;AAEF,IAAM,wBACJ;AAEF,SAAS,OAAO,EAAE,GAAG,SAA4D;CAC/E,OAAO,oBAACA,SAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ,CAAA;AAC9D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CACzF,OAAO,oBAACA,SAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ,CAAA;AACzE;AAEA,SAAS,aAAa,EAAE,GAAG,SAA8D;CACvF,OAAO,oBAACA,SAAgB,QAAjB;EAAwB,aAAU;EAAgB,GAAI;CAAQ,CAAA;AACvE;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CAC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;EAAgB,WAAW,GAAG,yBAAyB,SAAS;EAAG,GAAI;CAAQ,CAAA;AAElG;AAEA,SAAS,aAAa,EACpB,WACA,kBAAkB,OAClB,UACA,GAAG,SAGF;CACD,OACE,qBAAC,OAAD;EACE,aAAU;EACV,WAAW,GAAG,0DAA0D,SAAS;EACjF,GAAI;EAHN,UAAA,CAKG,UACA,mBACC,oBAACA,SAAgB,OAAjB;GAAuB,SAAA;GACrB,UAAA,oBAAC,QAAD;IAAQ,SAAQ;IAAU,UAAA;GAAa,CAAA;EAClB,CAAA,CAEtB;;AAET;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CAChG,OACE,oBAACA,SAAgB,OAAjB;EACE,aAAU;EACV,WAAW,GAAG,kEAAkE,SAAS;EACzF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SACwD;CAC3D,OACE,oBAACA,SAAgB,aAAjB;EACE,aAAU;EACV,WAAW,GACT,sGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const require_rolldown_runtime = require("../../chunks/rolldown-runtime-CmQyd0Gu.cjs");
4
+ let radix_ui = require("radix-ui");
5
+ let react = require("react");
6
+ react = require_rolldown_runtime.__toESM(react, 1);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ // src/components/ui/direction.tsx
9
+ function DirectionProvider({ dir, direction, children }) {
10
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Direction.DirectionProvider, {
11
+ dir: dir ?? direction ?? "ltr",
12
+ children
13
+ });
14
+ }
15
+ var useDirection = radix_ui.Direction.useDirection;
16
+ exports.DirectionProvider = DirectionProvider;
17
+ exports.useDirection = useDirection;
18
+
19
+ //# sourceMappingURL=direction.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.cjs","names":["Direction"],"sources":["../../../src/components/ui/direction.tsx"],"sourcesContent":["'use client';\n\nimport { Direction } from 'radix-ui';\nimport * as React from 'react';\n\ntype DirectionValue = 'ltr' | 'rtl';\n\ntype DirectionProviderProps = Omit<\n React.ComponentProps<typeof Direction.DirectionProvider>,\n 'dir'\n> & {\n dir?: DirectionValue;\n /** @deprecated use `dir` */\n direction?: DirectionValue;\n};\n\nfunction DirectionProvider({ dir, direction, children }: DirectionProviderProps) {\n return (\n <Direction.DirectionProvider dir={dir ?? direction ?? 'ltr'}>\n {children}\n </Direction.DirectionProvider>\n );\n}\n\nconst useDirection = Direction.useDirection;\n\nexport { DirectionProvider, useDirection, type DirectionProviderProps, type DirectionValue };\n"],"mappings":";;;;;;;;AAgBA,SAAS,kBAAkB,EAAE,KAAK,WAAW,YAAoC;CAC/E,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,SAAAA,UAAU,mBAAX;EAA6B,KAAK,OAAO,aAAa;EACnD;CAC0B,CAAA;AAEjC;AAEA,IAAM,eAAeA,SAAAA,UAAU"}
@@ -0,0 +1,11 @@
1
+ import { Direction } from 'radix-ui';
2
+ import * as React from 'react';
3
+ type DirectionValue = 'ltr' | 'rtl';
4
+ type DirectionProviderProps = Omit<React.ComponentProps<typeof Direction.DirectionProvider>, 'dir'> & {
5
+ dir?: DirectionValue;
6
+ /** @deprecated use `dir` */
7
+ direction?: DirectionValue;
8
+ };
9
+ declare function DirectionProvider({ dir, direction, children }: DirectionProviderProps): React.JSX.Element;
10
+ declare const useDirection: typeof Direction.useDirection;
11
+ export { DirectionProvider, useDirection, type DirectionProviderProps, type DirectionValue };
@@ -8,5 +8,5 @@ type DirectionProviderProps = Omit<React.ComponentProps<typeof Direction.Directi
8
8
  };
9
9
  declare function DirectionProvider({ dir, direction, children }: DirectionProviderProps): React.JSX.Element;
10
10
  declare const useDirection: typeof Direction.useDirection;
11
- export { DirectionProvider, useDirection };
11
+ export { DirectionProvider, useDirection, type DirectionProviderProps, type DirectionValue };
12
12
  //# sourceMappingURL=direction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../src/components/ui/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpC,KAAK,sBAAsB,GAAG,IAAI,CAChC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,EACxD,KAAK,CACN,GAAG;IACF,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBAM9E;AAED,QAAA,MAAM,YAAY,+BAAyB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../src/components/ui/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpC,KAAK,sBAAsB,GAAG,IAAI,CAChC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,EACxD,KAAK,CACN,GAAG;IACF,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBAM9E;AAED,QAAA,MAAM,YAAY,+BAAyB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- "use client";
3
2
  import { Direction } from "radix-ui";
4
3
  import "react";
5
4
  import { jsx } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"direction.js","names":[],"sources":["../../../src/components/ui/direction.tsx"],"sourcesContent":["'use client';\n\nimport { Direction } from 'radix-ui';\nimport * as React from 'react';\n\ntype DirectionValue = 'ltr' | 'rtl';\n\ntype DirectionProviderProps = Omit<\n React.ComponentProps<typeof Direction.DirectionProvider>,\n 'dir'\n> & {\n dir?: DirectionValue;\n /** @deprecated use `dir` */\n direction?: DirectionValue;\n};\n\nfunction DirectionProvider({ dir, direction, children }: DirectionProviderProps) {\n return (\n <Direction.DirectionProvider dir={dir ?? direction ?? 'ltr'}>\n {children}\n </Direction.DirectionProvider>\n );\n}\n\nconst useDirection = Direction.useDirection;\n\nexport { DirectionProvider, useDirection };\n"],"mappings":";;;;;;AAiBE,SACE,kBAAA,EAAC,KAAA,WAAU,YAAX;CAA6B,OAAY,oBAAa,UAAA,mBAAA;EACnD,KAAA,OAAA,aAAA;EAC0B;CAEjC,CAAA;AAEA"}
1
+ {"version":3,"file":"direction.js","names":[],"sources":["../../../src/components/ui/direction.tsx"],"sourcesContent":["'use client';\n\nimport { Direction } from 'radix-ui';\nimport * as React from 'react';\n\ntype DirectionValue = 'ltr' | 'rtl';\n\ntype DirectionProviderProps = Omit<\n React.ComponentProps<typeof Direction.DirectionProvider>,\n 'dir'\n> & {\n dir?: DirectionValue;\n /** @deprecated use `dir` */\n direction?: DirectionValue;\n};\n\nfunction DirectionProvider({ dir, direction, children }: DirectionProviderProps) {\n return (\n <Direction.DirectionProvider dir={dir ?? direction ?? 'ltr'}>\n {children}\n </Direction.DirectionProvider>\n );\n}\n\nconst useDirection = Direction.useDirection;\n\nexport { DirectionProvider, useDirection, type DirectionProviderProps, type DirectionValue };\n"],"mappings":";;;;;AAgBA,SAAS,kBAAkB,EAAE,KAAK,WAAW,YAAoC;CAC/E,OACE,oBAAC,UAAU,mBAAX;EAA6B,KAAK,OAAO,aAAa;EACnD;CAC0B,CAAA;AAEjC;AAEA,IAAM,eAAe,UAAU"}