@codefast/ui 0.3.13-canary.2 → 0.3.13-canary.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/accordion.d.mts +37 -0
  3. package/dist/components/accordion.mjs +53 -0
  4. package/dist/components/alert-dialog.d.mts +74 -0
  5. package/dist/components/alert-dialog.mjs +92 -0
  6. package/dist/components/alert.d.mts +30 -0
  7. package/dist/components/alert.mjs +49 -0
  8. package/dist/components/aspect-ratio.d.mts +10 -0
  9. package/dist/components/aspect-ratio.mjs +12 -0
  10. package/dist/components/avatar.d.mts +21 -0
  11. package/dist/components/avatar.mjs +28 -0
  12. package/dist/components/badge.d.mts +24 -0
  13. package/dist/components/badge.mjs +56 -0
  14. package/dist/components/breadcrumb.d.mts +44 -0
  15. package/dist/components/breadcrumb.mjs +67 -0
  16. package/dist/components/button-group.d.mts +34 -0
  17. package/dist/components/button-group.mjs +53 -0
  18. package/dist/components/button.d.mts +38 -0
  19. package/dist/components/button.mjs +99 -0
  20. package/dist/components/calendar.d.mts +27 -0
  21. package/dist/components/calendar.mjs +114 -0
  22. package/dist/components/card.d.mts +41 -0
  23. package/dist/components/card.mjs +55 -0
  24. package/dist/components/carousel.d.mts +68 -0
  25. package/dist/components/carousel.mjs +135 -0
  26. package/dist/components/chart.d.mts +93 -0
  27. package/dist/components/chart.mjs +189 -0
  28. package/dist/components/checkbox-cards.d.mts +17 -0
  29. package/dist/components/checkbox-cards.mjs +30 -0
  30. package/dist/components/checkbox-group.d.mts +16 -0
  31. package/dist/components/checkbox-group.mjs +27 -0
  32. package/dist/components/checkbox.d.mts +11 -0
  33. package/dist/components/checkbox.mjs +20 -0
  34. package/dist/components/collapsible.d.mts +18 -0
  35. package/dist/components/collapsible.mjs +24 -0
  36. package/dist/components/command.d.mts +57 -0
  37. package/dist/components/command.mjs +92 -0
  38. package/dist/components/context-menu.d.mts +91 -0
  39. package/dist/components/context-menu.mjs +122 -0
  40. package/dist/components/dialog.d.mts +65 -0
  41. package/dist/components/dialog.mjs +93 -0
  42. package/dist/components/drawer.d.mts +65 -0
  43. package/dist/components/drawer.mjs +78 -0
  44. package/dist/components/dropdown-menu.d.mts +92 -0
  45. package/dist/components/dropdown-menu.mjs +129 -0
  46. package/dist/components/empty.d.mts +44 -0
  47. package/dist/components/empty.mjs +64 -0
  48. package/dist/components/field.d.mts +79 -0
  49. package/dist/components/field.mjs +132 -0
  50. package/dist/components/form.d.mts +48 -0
  51. package/dist/components/form.mjs +92 -0
  52. package/dist/components/hover-card.d.mts +26 -0
  53. package/dist/components/hover-card.mjs +35 -0
  54. package/dist/components/input-group.d.mts +61 -0
  55. package/dist/components/input-group.mjs +142 -0
  56. package/dist/components/input-number.d.mts +28 -0
  57. package/dist/components/input-number.mjs +61 -0
  58. package/dist/components/input-otp.d.mts +29 -0
  59. package/dist/components/input-otp.mjs +48 -0
  60. package/dist/components/input-password.d.mts +13 -0
  61. package/dist/components/input-password.mjs +38 -0
  62. package/dist/components/input-search.d.mts +20 -0
  63. package/dist/components/input-search.mjs +50 -0
  64. package/dist/components/input.d.mts +11 -0
  65. package/dist/components/input.mjs +14 -0
  66. package/dist/components/item.d.mts +82 -0
  67. package/dist/components/item.mjs +137 -0
  68. package/dist/components/kbd.d.mts +15 -0
  69. package/dist/components/kbd.mjs +19 -0
  70. package/dist/components/label.d.mts +11 -0
  71. package/dist/components/label.mjs +14 -0
  72. package/dist/components/menubar.d.mts +100 -0
  73. package/dist/components/menubar.mjs +133 -0
  74. package/dist/components/native-select.d.mts +19 -0
  75. package/dist/components/native-select.mjs +34 -0
  76. package/dist/components/navigation-menu.d.mts +44 -0
  77. package/dist/components/navigation-menu.mjs +79 -0
  78. package/dist/components/pagination.d.mts +46 -0
  79. package/dist/components/pagination.mjs +71 -0
  80. package/dist/components/popover.d.mts +30 -0
  81. package/dist/components/popover.mjs +41 -0
  82. package/dist/components/progress-circle.d.mts +124 -0
  83. package/dist/components/progress-circle.mjs +120 -0
  84. package/dist/components/progress.d.mts +12 -0
  85. package/dist/components/progress.mjs +19 -0
  86. package/dist/components/{radio-cards.d.ts → radio-cards.d.mts} +10 -5
  87. package/dist/components/radio-cards.mjs +29 -0
  88. package/dist/components/radio-group.d.mts +16 -0
  89. package/dist/components/radio-group.mjs +25 -0
  90. package/dist/components/radio.d.mts +14 -0
  91. package/dist/components/radio.mjs +16 -0
  92. package/dist/components/resizable.d.mts +23 -0
  93. package/dist/components/resizable.mjs +32 -0
  94. package/dist/components/scroll-area.d.mts +40 -0
  95. package/dist/components/scroll-area.mjs +101 -0
  96. package/dist/components/select.d.mts +62 -0
  97. package/dist/components/select.mjs +101 -0
  98. package/dist/components/separator.d.mts +32 -0
  99. package/dist/components/separator.mjs +45 -0
  100. package/dist/components/sheet.d.mts +75 -0
  101. package/dist/components/sheet.mjs +134 -0
  102. package/dist/components/sidebar.d.mts +195 -0
  103. package/dist/components/sidebar.mjs +375 -0
  104. package/dist/components/skeleton.d.mts +10 -0
  105. package/dist/components/skeleton.mjs +12 -0
  106. package/dist/components/slider.d.mts +15 -0
  107. package/dist/components/slider.mjs +40 -0
  108. package/dist/components/sonner.d.mts +10 -0
  109. package/dist/components/sonner.mjs +21 -0
  110. package/dist/components/spinner.d.mts +14 -0
  111. package/dist/components/spinner.mjs +40 -0
  112. package/dist/components/switch.d.mts +11 -0
  113. package/dist/components/switch.mjs +18 -0
  114. package/dist/components/table.d.mts +45 -0
  115. package/dist/components/table.mjs +65 -0
  116. package/dist/components/tabs.d.mts +26 -0
  117. package/dist/components/tabs.mjs +35 -0
  118. package/dist/components/textarea.d.mts +10 -0
  119. package/dist/components/textarea.mjs +12 -0
  120. package/dist/components/toggle-group.d.mts +30 -0
  121. package/dist/components/toggle-group.mjs +53 -0
  122. package/dist/components/toggle.d.mts +28 -0
  123. package/dist/components/toggle.mjs +53 -0
  124. package/dist/components/tooltip.d.mts +30 -0
  125. package/dist/components/tooltip.mjs +42 -0
  126. package/dist/hooks/{use-animated-value.d.ts → use-animated-value.d.mts} +4 -2
  127. package/dist/hooks/use-animated-value.mjs +62 -0
  128. package/dist/hooks/{use-copy-to-clipboard.d.ts → use-copy-to-clipboard.d.mts} +11 -6
  129. package/dist/hooks/use-copy-to-clipboard.mjs +43 -0
  130. package/dist/hooks/{use-is-mobile.d.ts → use-is-mobile.d.mts} +4 -2
  131. package/dist/hooks/use-is-mobile.mjs +26 -0
  132. package/dist/hooks/{use-media-query.d.ts → use-media-query.d.mts} +4 -2
  133. package/dist/hooks/use-media-query.mjs +50 -0
  134. package/dist/hooks/{use-mutation-observer.d.ts → use-mutation-observer.d.mts} +6 -3
  135. package/dist/hooks/use-mutation-observer.mjs +41 -0
  136. package/dist/hooks/use-pagination.d.mts +44 -0
  137. package/dist/hooks/use-pagination.mjs +107 -0
  138. package/dist/index.d.mts +69 -0
  139. package/dist/index.mjs +69 -0
  140. package/dist/lib/utils.d.mts +13 -0
  141. package/dist/lib/utils.mjs +10 -0
  142. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/clsx.d.mts +6 -0
  143. package/dist/primitives/checkbox-group.d.mts +144 -0
  144. package/dist/primitives/checkbox-group.mjs +126 -0
  145. package/dist/primitives/input-number.d.mts +73 -0
  146. package/dist/primitives/input-number.mjs +514 -0
  147. package/dist/primitives/input.d.mts +72 -0
  148. package/dist/primitives/input.mjs +75 -0
  149. package/dist/primitives/progress-circle.d.mts +146 -0
  150. package/dist/primitives/progress-circle.mjs +178 -0
  151. package/package.json +164 -170
  152. package/dist/components/accordion.d.ts +0 -19
  153. package/dist/components/accordion.d.ts.map +0 -1
  154. package/dist/components/accordion.js +0 -26
  155. package/dist/components/alert-dialog.d.ts +0 -39
  156. package/dist/components/alert-dialog.d.ts.map +0 -1
  157. package/dist/components/alert-dialog.js +0 -39
  158. package/dist/components/alert.d.ts +0 -19
  159. package/dist/components/alert.d.ts.map +0 -1
  160. package/dist/components/alert.js +0 -41
  161. package/dist/components/aspect-ratio.d.ts +0 -7
  162. package/dist/components/aspect-ratio.d.ts.map +0 -1
  163. package/dist/components/aspect-ratio.js +0 -10
  164. package/dist/components/avatar.d.ts +0 -11
  165. package/dist/components/avatar.d.ts.map +0 -1
  166. package/dist/components/avatar.js +0 -17
  167. package/dist/components/badge.d.ts +0 -18
  168. package/dist/components/badge.d.ts.map +0 -1
  169. package/dist/components/badge.js +0 -59
  170. package/dist/components/breadcrumb.d.ts +0 -22
  171. package/dist/components/breadcrumb.d.ts.map +0 -1
  172. package/dist/components/breadcrumb.js +0 -31
  173. package/dist/components/button-group.d.ts +0 -20
  174. package/dist/components/button-group.d.ts.map +0 -1
  175. package/dist/components/button-group.js +0 -48
  176. package/dist/components/button.d.ts +0 -29
  177. package/dist/components/button.d.ts.map +0 -1
  178. package/dist/components/button.js +0 -92
  179. package/dist/components/calendar.d.ts +0 -13
  180. package/dist/components/calendar.d.ts.map +0 -1
  181. package/dist/components/calendar.js +0 -104
  182. package/dist/components/card.d.ts +0 -18
  183. package/dist/components/card.d.ts.map +0 -1
  184. package/dist/components/card.js +0 -27
  185. package/dist/components/carousel.d.ts +0 -38
  186. package/dist/components/carousel.d.ts.map +0 -1
  187. package/dist/components/carousel.js +0 -103
  188. package/dist/components/chart.d.ts +0 -58
  189. package/dist/components/chart.d.ts.map +0 -1
  190. package/dist/components/chart.js +0 -198
  191. package/dist/components/checkbox-cards.d.ts +0 -11
  192. package/dist/components/checkbox-cards.d.ts.map +0 -1
  193. package/dist/components/checkbox-cards.js +0 -16
  194. package/dist/components/checkbox-group.d.ts +0 -9
  195. package/dist/components/checkbox-group.d.ts.map +0 -1
  196. package/dist/components/checkbox-group.js +0 -15
  197. package/dist/components/checkbox.d.ts +0 -7
  198. package/dist/components/checkbox.d.ts.map +0 -1
  199. package/dist/components/checkbox.js +0 -12
  200. package/dist/components/collapsible.d.ts +0 -11
  201. package/dist/components/collapsible.d.ts.map +0 -1
  202. package/dist/components/collapsible.js +0 -16
  203. package/dist/components/command.d.ts +0 -26
  204. package/dist/components/command.d.ts.map +0 -1
  205. package/dist/components/command.js +0 -41
  206. package/dist/components/context-menu.d.ts +0 -42
  207. package/dist/components/context-menu.d.ts.map +0 -1
  208. package/dist/components/context-menu.js +0 -54
  209. package/dist/components/dialog.d.ts +0 -35
  210. package/dist/components/dialog.d.ts.map +0 -1
  211. package/dist/components/dialog.js +0 -41
  212. package/dist/components/drawer.d.ts +0 -34
  213. package/dist/components/drawer.d.ts.map +0 -1
  214. package/dist/components/drawer.js +0 -36
  215. package/dist/components/dropdown-menu.d.ts +0 -42
  216. package/dist/components/dropdown-menu.d.ts.map +0 -1
  217. package/dist/components/dropdown-menu.js +0 -54
  218. package/dist/components/empty.d.ts +0 -23
  219. package/dist/components/empty.d.ts.map +0 -1
  220. package/dist/components/empty.js +0 -47
  221. package/dist/components/field.d.ts +0 -42
  222. package/dist/components/field.d.ts.map +0 -1
  223. package/dist/components/field.js +0 -85
  224. package/dist/components/form.d.ts +0 -27
  225. package/dist/components/form.d.ts.map +0 -1
  226. package/dist/components/form.js +0 -76
  227. package/dist/components/hover-card.d.ts +0 -13
  228. package/dist/components/hover-card.d.ts.map +0 -1
  229. package/dist/components/hover-card.js +0 -20
  230. package/dist/components/input-group.d.ts +0 -37
  231. package/dist/components/input-group.d.ts.map +0 -1
  232. package/dist/components/input-group.js +0 -127
  233. package/dist/components/input-number.d.ts +0 -8
  234. package/dist/components/input-number.d.ts.map +0 -1
  235. package/dist/components/input-number.js +0 -20
  236. package/dist/components/input-otp.d.ts +0 -16
  237. package/dist/components/input-otp.d.ts.map +0 -1
  238. package/dist/components/input-otp.js +0 -25
  239. package/dist/components/input-password.d.ts +0 -7
  240. package/dist/components/input-password.d.ts.map +0 -1
  241. package/dist/components/input-password.js +0 -17
  242. package/dist/components/input-search.d.ts +0 -11
  243. package/dist/components/input-search.d.ts.map +0 -1
  244. package/dist/components/input-search.js +0 -22
  245. package/dist/components/input.d.ts +0 -6
  246. package/dist/components/input.d.ts.map +0 -1
  247. package/dist/components/input.js +0 -10
  248. package/dist/components/item.d.ts +0 -46
  249. package/dist/components/item.d.ts.map +0 -1
  250. package/dist/components/item.js +0 -94
  251. package/dist/components/kbd.d.ts +0 -8
  252. package/dist/components/kbd.d.ts.map +0 -1
  253. package/dist/components/kbd.js +0 -12
  254. package/dist/components/label.d.ts +0 -7
  255. package/dist/components/label.d.ts.map +0 -1
  256. package/dist/components/label.js +0 -11
  257. package/dist/components/menubar.d.ts +0 -44
  258. package/dist/components/menubar.d.ts.map +0 -1
  259. package/dist/components/menubar.js +0 -57
  260. package/dist/components/native-select.d.ts +0 -10
  261. package/dist/components/native-select.d.ts.map +0 -1
  262. package/dist/components/native-select.js +0 -16
  263. package/dist/components/navigation-menu.d.ts +0 -21
  264. package/dist/components/navigation-menu.d.ts.map +0 -1
  265. package/dist/components/navigation-menu.js +0 -43
  266. package/dist/components/pagination.d.ts +0 -26
  267. package/dist/components/pagination.d.ts.map +0 -1
  268. package/dist/components/pagination.js +0 -29
  269. package/dist/components/popover.d.ts +0 -15
  270. package/dist/components/popover.d.ts.map +0 -1
  271. package/dist/components/popover.js +0 -23
  272. package/dist/components/progress-circle.d.ts +0 -107
  273. package/dist/components/progress-circle.d.ts.map +0 -1
  274. package/dist/components/progress-circle.js +0 -83
  275. package/dist/components/progress.d.ts +0 -7
  276. package/dist/components/progress.d.ts.map +0 -1
  277. package/dist/components/progress.js +0 -13
  278. package/dist/components/radio-cards.d.ts.map +0 -1
  279. package/dist/components/radio-cards.js +0 -15
  280. package/dist/components/radio-group.d.ts +0 -9
  281. package/dist/components/radio-group.d.ts.map +0 -1
  282. package/dist/components/radio-group.js +0 -14
  283. package/dist/components/radio.d.ts +0 -8
  284. package/dist/components/radio.d.ts.map +0 -1
  285. package/dist/components/radio.js +0 -11
  286. package/dist/components/resizable.d.ts +0 -13
  287. package/dist/components/resizable.d.ts.map +0 -1
  288. package/dist/components/resizable.js +0 -18
  289. package/dist/components/scroll-area.d.ts +0 -28
  290. package/dist/components/scroll-area.d.ts.map +0 -1
  291. package/dist/components/scroll-area.js +0 -77
  292. package/dist/components/select.d.ts +0 -29
  293. package/dist/components/select.d.ts.map +0 -1
  294. package/dist/components/select.js +0 -49
  295. package/dist/components/separator.d.ts +0 -23
  296. package/dist/components/separator.d.ts.map +0 -1
  297. package/dist/components/separator.js +0 -36
  298. package/dist/components/sheet.d.ts +0 -43
  299. package/dist/components/sheet.d.ts.map +0 -1
  300. package/dist/components/sheet.js +0 -90
  301. package/dist/components/sidebar.d.ts +0 -102
  302. package/dist/components/sidebar.d.ts.map +0 -1
  303. package/dist/components/sidebar.js +0 -241
  304. package/dist/components/skeleton.d.ts +0 -6
  305. package/dist/components/skeleton.d.ts.map +0 -1
  306. package/dist/components/skeleton.js +0 -9
  307. package/dist/components/slider.d.ts +0 -7
  308. package/dist/components/slider.d.ts.map +0 -1
  309. package/dist/components/slider.js +0 -18
  310. package/dist/components/sonner.d.ts +0 -8
  311. package/dist/components/sonner.d.ts.map +0 -1
  312. package/dist/components/sonner.js +0 -18
  313. package/dist/components/spinner.d.ts +0 -8
  314. package/dist/components/spinner.d.ts.map +0 -1
  315. package/dist/components/spinner.js +0 -27
  316. package/dist/components/switch.d.ts +0 -7
  317. package/dist/components/switch.d.ts.map +0 -1
  318. package/dist/components/switch.js +0 -11
  319. package/dist/components/table.d.ts +0 -20
  320. package/dist/components/table.d.ts.map +0 -1
  321. package/dist/components/table.js +0 -30
  322. package/dist/components/tabs.d.ts +0 -13
  323. package/dist/components/tabs.d.ts.map +0 -1
  324. package/dist/components/tabs.js +0 -20
  325. package/dist/components/textarea.d.ts +0 -6
  326. package/dist/components/textarea.d.ts.map +0 -1
  327. package/dist/components/textarea.js +0 -9
  328. package/dist/components/toggle-group.d.ts +0 -16
  329. package/dist/components/toggle-group.d.ts.map +0 -1
  330. package/dist/components/toggle-group.js +0 -35
  331. package/dist/components/toggle.d.ts +0 -21
  332. package/dist/components/toggle.d.ts.map +0 -1
  333. package/dist/components/toggle.js +0 -49
  334. package/dist/components/tooltip.d.ts +0 -15
  335. package/dist/components/tooltip.d.ts.map +0 -1
  336. package/dist/components/tooltip.js +0 -23
  337. package/dist/hooks/use-animated-value.d.ts.map +0 -1
  338. package/dist/hooks/use-animated-value.js +0 -71
  339. package/dist/hooks/use-copy-to-clipboard.d.ts.map +0 -1
  340. package/dist/hooks/use-copy-to-clipboard.js +0 -46
  341. package/dist/hooks/use-is-mobile.d.ts.map +0 -1
  342. package/dist/hooks/use-is-mobile.js +0 -23
  343. package/dist/hooks/use-media-query.d.ts.map +0 -1
  344. package/dist/hooks/use-media-query.js +0 -53
  345. package/dist/hooks/use-mutation-observer.d.ts.map +0 -1
  346. package/dist/hooks/use-mutation-observer.js +0 -40
  347. package/dist/hooks/use-pagination.d.ts +0 -37
  348. package/dist/hooks/use-pagination.d.ts.map +0 -1
  349. package/dist/hooks/use-pagination.js +0 -107
  350. package/dist/index.d.ts +0 -131
  351. package/dist/index.d.ts.map +0 -1
  352. package/dist/index.js +0 -68
  353. package/dist/lib/utils.d.ts +0 -10
  354. package/dist/lib/utils.d.ts.map +0 -1
  355. package/dist/lib/utils.js +0 -10
  356. package/dist/primitives/checkbox-group.d.ts +0 -123
  357. package/dist/primitives/checkbox-group.d.ts.map +0 -1
  358. package/dist/primitives/checkbox-group.js +0 -112
  359. package/dist/primitives/input-number.d.ts +0 -63
  360. package/dist/primitives/input-number.d.ts.map +0 -1
  361. package/dist/primitives/input-number.js +0 -458
  362. package/dist/primitives/input.d.ts +0 -67
  363. package/dist/primitives/input.d.ts.map +0 -1
  364. package/dist/primitives/input.js +0 -76
  365. package/dist/primitives/progress-circle.d.ts +0 -116
  366. package/dist/primitives/progress-circle.d.ts.map +0 -1
  367. package/dist/primitives/progress-circle.js +0 -163
@@ -1,15 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import { CheckIcon } from "lucide-react";
5
- import * as CheckboxGroupPrimitive from "#primitives/checkbox-group";
6
- function CheckboxGroup({ className, ...props }) {
7
- return (_jsx(CheckboxGroupPrimitive.Root, { className: cn("grid gap-2", className), "data-slot": "checkbox-group", ...props }));
8
- }
9
- function CheckboxGroupItem({ className, ...props }) {
10
- return (_jsx(CheckboxGroupPrimitive.Item, { className: cn("peer flex size-4 shrink-0 items-center justify-center", "rounded-sm border border-input shadow-xs outline-hidden", "text-primary-foreground", "transition", "hover:not-disabled:not-aria-checked:border-ring/60", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-checked:border-primary aria-checked:bg-primary", "focus-visible:aria-checked:ring-primary/20", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60", "aria-checked:aria-invalid:bg-destructive", "dark:bg-input/30", "dark:focus-visible:aria-checked:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className), "data-slot": "checkbox-group-item", ...props, children: _jsx(CheckboxGroupPrimitive.CheckboxGroupIndicator, { className: cn("flex items-center justify-center text-current", "transition-none"), "data-slot": "checkbox-group-indicator", children: _jsx(CheckIcon, { className: "size-3.5" }) }) }));
11
- }
12
- /* -----------------------------------------------------------------------------
13
- * Exports
14
- * -------------------------------------------------------------------------- */
15
- export { CheckboxGroup, CheckboxGroupItem };
@@ -1,7 +0,0 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
- type CheckboxProps = ComponentProps<typeof CheckboxPrimitive.Root>;
4
- declare function Checkbox({ className, ...props }: CheckboxProps): JSX.Element;
5
- export { Checkbox };
6
- export type { CheckboxProps };
7
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAO9D,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAgCrE;AAMD,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
5
- import { CheckIcon } from "lucide-react";
6
- function Checkbox({ className, ...props }) {
7
- return (_jsx(CheckboxPrimitive.Root, { className: cn("peer flex size-4 shrink-0 items-center justify-center", "rounded-sm border border-input shadow-xs outline-hidden", "text-primary-foreground", "transition", "hover:not-disabled:not-aria-checked:border-ring/60", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-checked:border-primary aria-checked:bg-primary", "aria-checked:focus-visible:ring-primary/20", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60", "aria-checked:aria-invalid:bg-destructive", "dark:bg-input/30", "dark:aria-checked:focus-visible:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className), "data-slot": "checkbox", ...props, children: _jsx(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current", "transition-none"), "data-slot": "checkbox-indicator", children: _jsx(CheckIcon, { className: "size-3.5" }) }) }));
8
- }
9
- /* -----------------------------------------------------------------------------
10
- * Exports
11
- * -------------------------------------------------------------------------- */
12
- export { Checkbox };
@@ -1,11 +0,0 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
- type CollapsibleProps = ComponentProps<typeof CollapsiblePrimitive.Root>;
4
- declare function Collapsible({ ...props }: CollapsibleProps): JSX.Element;
5
- type CollapsibleTriggerProps = ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>;
6
- declare function CollapsibleTrigger({ ...props }: CollapsibleTriggerProps): JSX.Element;
7
- type CollapsibleContentProps = ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>;
8
- declare function CollapsibleContent({ ...props }: CollapsibleContentProps): JSX.Element;
9
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
10
- export type { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps };
11
- //# sourceMappingURL=collapsible.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/components/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAMpE,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAEzE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAEhE;AAMD,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;AAE9F,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAE9E;AAMD,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;AAE9F,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAE9E;AAMD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;AAC/D,YAAY,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
4
- function Collapsible({ ...props }) {
5
- return _jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
6
- }
7
- function CollapsibleTrigger({ ...props }) {
8
- return _jsx(CollapsiblePrimitive.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
9
- }
10
- function CollapsibleContent({ ...props }) {
11
- return _jsx(CollapsiblePrimitive.CollapsibleContent, { "data-slot": "collapsible-content", ...props });
12
- }
13
- /* -----------------------------------------------------------------------------
14
- * Exports
15
- * -------------------------------------------------------------------------- */
16
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -1,26 +0,0 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import { Command as CommandPrimitive } from "cmdk";
3
- import { Dialog } from "#components/dialog";
4
- type CommandProps = ComponentProps<typeof CommandPrimitive>;
5
- declare function Command({ className, ...props }: CommandProps): JSX.Element;
6
- type CommandDialogProps = ComponentProps<typeof Dialog>;
7
- declare function CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element;
8
- type CommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;
9
- declare function CommandInput({ className, ...props }: CommandInputProps): JSX.Element;
10
- type CommandListProps = ComponentProps<typeof CommandPrimitive.List>;
11
- declare function CommandList({ className, ...props }: CommandListProps): JSX.Element;
12
- type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;
13
- declare function CommandEmpty({ className, ...props }: CommandEmptyProps): JSX.Element;
14
- type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>;
15
- declare function CommandGroup({ className, ...props }: CommandGroupProps): JSX.Element;
16
- type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>;
17
- declare function CommandSeparator({ className, ...props }: CommandSeparatorProps): JSX.Element;
18
- type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>;
19
- declare function CommandItem({ className, ...props }: CommandItemProps): JSX.Element;
20
- type CommandLoadingProps = ComponentProps<typeof CommandPrimitive.Loading>;
21
- declare function CommandLoading({ className, ...props }: CommandLoadingProps): JSX.Element;
22
- type CommandShortcutProps = ComponentProps<"span">;
23
- declare function CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element;
24
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, };
25
- export type { CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandLoadingProps, CommandProps, CommandSeparatorProps, CommandShortcutProps, };
26
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/components/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAiD,MAAM,oBAAoB,CAAC;AAM3F,KAAK,YAAY,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE5D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAanE;AAMD,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAyB9E;AAMD,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEvE,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,GAAG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SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAQnF;AAMD,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,CAAC;AACF,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,CAAC"}
@@ -1,41 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
5
- import { Command as CommandPrimitive } from "cmdk";
6
- import { SearchIcon } from "lucide-react";
7
- import { Dialog, DialogContent, DialogDescription, DialogTitle } from "#components/dialog";
8
- function Command({ className, ...props }) {
9
- return (_jsx(CommandPrimitive, { className: cn("flex flex-col overflow-hidden", "rounded-[inherit]", "bg-popover text-popover-foreground outline-hidden", className), "data-slot": "command", ...props }));
10
- }
11
- function CommandDialog({ children, ...props }) {
12
- return (_jsx(Dialog, { "data-slot": "command-dialog", ...props, children: _jsxs(DialogContent, { className: cn("rounded-t-lg", "sm:rounded-lg"), "data-slot": "command-dialog-content", children: [_jsxs(VisuallyHidden, { children: [_jsx(DialogTitle, { children: "Search command" }), _jsx(DialogDescription, { children: "Use the search bar to find and select the desired command." })] }), _jsx(Command, { className: cn("[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0", "[&_[cmdk-input]]:h-12"), children: children })] }) }));
13
- }
14
- function CommandInput({ className, ...props }) {
15
- return (_jsxs("div", { "cmdk-input-wrapper": true, className: cn("flex items-center gap-2", "px-3", "border-b"), "data-slot": "command-input-wrapper", children: [_jsx(SearchIcon, { className: cn("size-4 shrink-0", "opacity-50") }), _jsx(CommandPrimitive.Input, { className: cn("flex h-10 w-full", "text-base", "outline-hidden", "placeholder:text-muted-foreground", "disabled:opacity-50", "md:text-sm", className), "data-slot": "command-input", ...props })] }));
16
- }
17
- function CommandList({ className, ...props }) {
18
- return (_jsx(CommandPrimitive.List, { className: cn("max-h-75 overflow-x-hidden overflow-y-auto", className), "data-slot": "command-list", ...props }));
19
- }
20
- function CommandEmpty({ className, ...props }) {
21
- return (_jsx(CommandPrimitive.Empty, { className: cn("py-6", "text-center text-sm", className), "data-slot": "command-empty", ...props }));
22
- }
23
- function CommandGroup({ className, ...props }) {
24
- return (_jsx(CommandPrimitive.Group, { className: cn("overflow-hidden p-1 text-foreground", "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), "data-slot": "command-group", ...props }));
25
- }
26
- function CommandSeparator({ className, ...props }) {
27
- return (_jsx(CommandPrimitive.Separator, { className: cn("-mx-1 h-px", "bg-border", className), "data-slot": "command-separator", ...props }));
28
- }
29
- function CommandItem({ className, ...props }) {
30
- return (_jsx(CommandPrimitive.Item, { className: cn("group/command-item relative flex items-center gap-x-2", "px-2 py-1.5", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "aria-disabled:opacity-50", "aria-selected:bg-accent aria-selected:text-accent-foreground", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", className), "data-slot": "command-item", ...props }));
31
- }
32
- function CommandLoading({ className, ...props }) {
33
- return (_jsx(CommandPrimitive.Loading, { className: cn("flex justify-center", "p-2", className), "data-slot": "command-loading", ...props }));
34
- }
35
- function CommandShortcut({ className, ...props }) {
36
- return (_jsx("span", { className: cn("ml-auto", "text-xs tracking-widest text-muted-foreground", className), "data-slot": "command-shortcut", ...props }));
37
- }
38
- /* -----------------------------------------------------------------------------
39
- * Exports
40
- * -------------------------------------------------------------------------- */
41
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, };
@@ -1,42 +0,0 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
3
- type ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;
4
- declare function ContextMenu({ ...props }: ContextMenuProps): JSX.Element;
5
- type ContextMenuTriggerProps = ComponentProps<typeof ContextMenuPrimitive.Trigger>;
6
- declare function ContextMenuTrigger({ ...props }: ContextMenuTriggerProps): JSX.Element;
7
- type ContextMenuGroupProps = ComponentProps<typeof ContextMenuPrimitive.Group>;
8
- declare function ContextMenuGroup({ ...props }: ContextMenuGroupProps): JSX.Element;
9
- type ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;
10
- declare function ContextMenuSub({ ...props }: ContextMenuSubProps): JSX.Element;
11
- type ContextMenuRadioGroupProps = ComponentProps<typeof ContextMenuPrimitive.RadioGroup>;
12
- declare function ContextMenuRadioGroup({ ...props }: ContextMenuRadioGroupProps): JSX.Element;
13
- interface ContextMenuSubTriggerProps extends ComponentProps<typeof ContextMenuPrimitive.SubTrigger> {
14
- inset?: boolean;
15
- }
16
- declare function ContextMenuSubTrigger({ children, className, inset, ...props }: ContextMenuSubTriggerProps): JSX.Element;
17
- type ContextMenuSubContentProps = ComponentProps<typeof ContextMenuPrimitive.SubContent>;
18
- declare function ContextMenuSubContent({ className, ...props }: ContextMenuSubContentProps): JSX.Element;
19
- type ContextMenuContentProps = ComponentProps<typeof ContextMenuPrimitive.Content>;
20
- declare function ContextMenuContent({ className, ...props }: ContextMenuContentProps): JSX.Element;
21
- interface ContextMenuItemProps extends ComponentProps<typeof ContextMenuPrimitive.Item> {
22
- inset?: boolean;
23
- variant?: "default" | "destructive";
24
- }
25
- declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenuItemProps): JSX.Element;
26
- type ContextMenuCheckboxItemProps = ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>;
27
- declare function ContextMenuCheckboxItem({ checked, children, className, ...props }: ContextMenuCheckboxItemProps): JSX.Element;
28
- type ContextMenuRadioItemProps = ComponentProps<typeof ContextMenuPrimitive.RadioItem>;
29
- declare function ContextMenuRadioItem({ children, className, ...props }: ContextMenuRadioItemProps): JSX.Element;
30
- interface ContextMenuLabelProps extends ComponentProps<typeof ContextMenuPrimitive.Label> {
31
- inset?: boolean;
32
- }
33
- declare function ContextMenuLabel({ className, inset, ...props }: ContextMenuLabelProps): JSX.Element;
34
- type ContextMenuSeparatorProps = ComponentProps<typeof ContextMenuPrimitive.Separator>;
35
- declare function ContextMenuSeparator({ className, ...props }: ContextMenuSeparatorProps): JSX.Element;
36
- type ContextMenuShortcutProps = ComponentProps<"span">;
37
- declare function ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element;
38
- type ContextMenuArrowProps = ComponentProps<typeof ContextMenuPrimitive.Arrow>;
39
- declare function ContextMenuArrow({ className, ...props }: ContextMenuArrowProps): JSX.Element;
40
- export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
41
- export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, };
42
- //# sourceMappingURL=context-men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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
5
- import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
6
- function ContextMenu({ ...props }) {
7
- return _jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
8
- }
9
- function ContextMenuTrigger({ ...props }) {
10
- return _jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
11
- }
12
- function ContextMenuGroup({ ...props }) {
13
- return _jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
14
- }
15
- function ContextMenuSub({ ...props }) {
16
- return _jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
17
- }
18
- function ContextMenuRadioGroup({ ...props }) {
19
- return _jsx(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
20
- }
21
- function ContextMenuSubTrigger({ children, className, inset, ...props }) {
22
- return (_jsxs(ContextMenuPrimitive.SubTrigger, { className: cn("flex items-center gap-x-2", "px-2 py-1.5", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "data-inset:pl-8", "data-open:bg-accent data-open:text-accent-foreground", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", className), "data-inset": inset, "data-slot": "context-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: cn("size-4", "ml-auto") })] }));
23
- }
24
- function ContextMenuSubContent({ className, ...props }) {
25
- return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.SubContent, { className: cn("z-50", "min-w-32 overflow-hidden p-1", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "origin-(--radix-context-menu-content-transform-origin)", className), "data-slot": "context-menu-sub-content", ...props }) }));
26
- }
27
- function ContextMenuContent({ className, ...props }) {
28
- return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { className: cn("z-50", "max-h-(--radix-context-menu-content-available-height) min-w-32 overflow-x-hidden overflow-y-auto p-1", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "origin-(--radix-context-menu-content-transform-origin)", className), "data-slot": "context-menu-content", ...props }) }));
29
- }
30
- function ContextMenuItem({ className, inset, variant, ...props }) {
31
- return (_jsx(ContextMenuPrimitive.Item, { className: cn("group/context-menu-item relative flex items-center gap-x-2", "px-2 py-1.5", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "data-inset:pl-8", "data-[variant=destructive]:text-destructive", "data-[variant=destructive]:focus:bg-destructive/10", "dark:data-[variant=destructive]:focus:bg-destructive/20", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", "data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", className), "data-inset": inset, "data-slot": "context-menu-item", "data-variant": variant, ...props }));
32
- }
33
- function ContextMenuCheckboxItem({ checked, children, className, ...props }) {
34
- return (_jsxs(ContextMenuPrimitive.CheckboxItem, { checked: checked, className: cn("group/context-menu-item relative flex items-center gap-x-2", "py-1.5 pr-2 pl-8", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", className), "data-slot": "context-menu-checkbox-item", ...props, children: [_jsx("span", { className: cn("absolute flex items-center justify-center", "left-2"), children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
35
- }
36
- function ContextMenuRadioItem({ children, className, ...props }) {
37
- return (_jsxs(ContextMenuPrimitive.RadioItem, { className: cn("group/context-menu-item relative flex items-center gap-x-2", "py-1.5 pr-2 pl-8", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", className), "data-slot": "context-menu-radio-item", ...props, children: [_jsx("span", { className: cn("absolute flex items-center justify-center", "left-2"), children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(DotIcon, { className: cn("size-4", "fill-current") }) }) }), children] }));
38
- }
39
- function ContextMenuLabel({ className, inset, ...props }) {
40
- return (_jsx(ContextMenuPrimitive.Label, { className: cn("flex items-center gap-x-2", "px-2 py-1.5", "text-sm font-semibold", "data-inset:pl-8", className), "data-inset": inset, "data-slot": "context-menu-label", ...props }));
41
- }
42
- function ContextMenuSeparator({ className, ...props }) {
43
- return (_jsx(ContextMenuPrimitive.Separator, { className: cn("mx-2 my-1 h-px", "bg-border", className), "data-slot": "context-menu-separator", ...props }));
44
- }
45
- function ContextMenuShortcut({ className, ...props }) {
46
- return (_jsx("span", { className: cn("ml-auto", "text-xs tracking-widest text-muted-foreground", "group-data-[variant=destructive]/context-menu-item:text-destructive/80", className), "data-slot": "context-menu-shortcut", ...props }));
47
- }
48
- function ContextMenuArrow({ className, ...props }) {
49
- return (_jsx(ContextMenuPrimitive.Arrow, { className: cn("fill-popover", className), "data-slot": "context-menu-arrow", ...props }));
50
- }
51
- /* -----------------------------------------------------------------------------
52
- * Exports
53
- * -------------------------------------------------------------------------- */
54
- export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
@@ -1,35 +0,0 @@
1
- import type { VariantProps } from "#lib/utils";
2
- import type { ComponentProps, JSX } from "react";
3
- import * as DialogPrimitive from "@radix-ui/react-dialog";
4
- import { buttonVariants } from "#components/button";
5
- type DialogProps = ComponentProps<typeof DialogPrimitive.Root>;
6
- declare function Dialog({ ...props }: DialogProps): JSX.Element;
7
- type DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;
8
- declare function DialogTrigger({ ...props }: DialogTriggerProps): JSX.Element;
9
- interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
10
- classNames?: {
11
- close?: string;
12
- content?: string;
13
- overlay?: string;
14
- wrapper?: string;
15
- };
16
- }
17
- declare function DialogContent({ children, className, classNames, ...props }: DialogContentProps): JSX.Element;
18
- type DialogHeaderProps = ComponentProps<"div">;
19
- declare function DialogHeader({ className, ...props }: DialogHeaderProps): JSX.Element;
20
- type DialogBodyProps = ComponentProps<"div">;
21
- declare function DialogBody({ className, ...props }: DialogBodyProps): JSX.Element;
22
- type DialogFooterProps = ComponentProps<"div">;
23
- declare function DialogFooter({ className, ...props }: DialogFooterProps): JSX.Element;
24
- type DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
25
- declare function DialogTitle({ className, ...props }: DialogTitleProps): JSX.Element;
26
- type DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
27
- declare function DialogDescription({ className, ...props }: DialogDescriptionProps): JSX.Element;
28
- interface DialogCloseProps extends Omit<ComponentProps<typeof DialogPrimitive.Close>, "ref"> {
29
- size?: VariantProps<typeof buttonVariants>["size"];
30
- variant?: VariantProps<typeof buttonVariants>["variant"];
31
- }
32
- declare function DialogClose({ className, size, variant, ...props }: DialogCloseProps): JSX.Element;
33
- export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
34
- export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, };
35
- //# sourceMappingURL=dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMpD,KAAK,WAAW,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAE/D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAEtD;AAMD,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AAEzE,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEpE;AAMD,UAAU,kBAAmB,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC;IACjF,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB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AAC,SAAS,CAAC,CAAC;CAC1D;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,IAAI,EACJ,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAQhC;AAMD,OAAO,EACL,MAAM,EACN,UAAU,EACV,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC;AACF,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
@@ -1,41 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import * as DialogPrimitive from "@radix-ui/react-dialog";
5
- import { XIcon } from "lucide-react";
6
- import { buttonVariants } from "#components/button";
7
- function Dialog({ ...props }) {
8
- return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
9
- }
10
- function DialogTrigger({ ...props }) {
11
- return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
12
- }
13
- function DialogContent({ children, className, classNames, ...props }) {
14
- return (_jsxs(DialogPrimitive.Portal, { children: [_jsx(DialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50", "bg-black/50", "ease-ui data-open:animate-in data-open:fade-in-0", "data-closed:animate-out data-closed:fade-out-0", classNames?.overlay), "data-slot": "dialog-overlay" }), _jsx(DialogPrimitive.Content, { className: cn("fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto", "sm:grid-rows-[1fr_auto_3fr] sm:p-4", "ease-ui data-open:animate-in", "max-sm:data-open:animation-duration-500 max-sm:data-open:slide-in-from-bottom", "sm:data-open:fade-in-0 sm:data-open:zoom-in-95", "data-closed:animate-out", "max-sm:data-closed:animation-duration-500 max-sm:data-closed:slide-out-to-bottom", "sm:data-closed:fade-out-0 sm:data-closed:zoom-out-95", classNames?.wrapper), "data-slot": "dialog-content-wrapper", ...props, children: _jsxs("div", { className: cn("relative row-start-2 flex w-full flex-col", "rounded-t-2xl border", "bg-popover text-popover-foreground shadow-lg", "sm:max-w-lg sm:rounded-2xl", classNames?.content, className), "data-slot": "dialog-content", children: [children, _jsxs(DialogPrimitive.Close, { className: buttonVariants({
15
- className: ["absolute top-2.5 right-2.5 size-7", classNames?.close],
16
- size: "icon",
17
- variant: "ghost",
18
- }), "data-slot": "dialog-close", children: [_jsx(XIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] }) })] }));
19
- }
20
- function DialogHeader({ className, ...props }) {
21
- return (_jsx("header", { className: cn("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center", "sm:text-left", className), "data-slot": "dialog-header", ...props }));
22
- }
23
- function DialogBody({ className, ...props }) {
24
- return (_jsx("main", { className: cn("overflow-auto", "px-6 py-2", className), "data-slot": "dialog-body", ...props }));
25
- }
26
- function DialogFooter({ className, ...props }) {
27
- return (_jsx("footer", { className: cn("flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6", "sm:flex-row sm:justify-end", className), "data-slot": "dialog-footer", ...props }));
28
- }
29
- function DialogTitle({ className, ...props }) {
30
- return (_jsx(DialogPrimitive.Title, { className: cn("text-lg leading-none font-semibold tracking-tight", className), "data-slot": "dialog-title", ...props }));
31
- }
32
- function DialogDescription({ className, ...props }) {
33
- return (_jsx(DialogPrimitive.Description, { className: cn("text-sm text-muted-foreground", className), "data-slot": "dialog-description", ...props }));
34
- }
35
- function DialogClose({ className, size, variant = "outline", ...props }) {
36
- return (_jsx(DialogPrimitive.Close, { className: buttonVariants({ className, size, variant }), "data-slot": "dialog-close", ...props }));
37
- }
38
- /* -----------------------------------------------------------------------------
39
- * Exports
40
- * -------------------------------------------------------------------------- */
41
- export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
@@ -1,34 +0,0 @@
1
- import type { VariantProps } from "#lib/utils";
2
- import type { ComponentProps, JSX } from "react";
3
- import { Drawer as DrawerPrimitive } from "vaul";
4
- import { buttonVariants } from "#components/button";
5
- type DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;
6
- declare function Drawer({ shouldScaleBackground, ...props }: DrawerProps): JSX.Element;
7
- type DrawerTriggerProps = ComponentProps<typeof DrawerPrimitive.Trigger>;
8
- declare function DrawerTrigger({ ...props }: DrawerTriggerProps): JSX.Element;
9
- interface DrawerContentProps extends ComponentProps<typeof DrawerPrimitive.Content> {
10
- classNames?: {
11
- content?: string;
12
- handle?: string;
13
- overlay?: string;
14
- };
15
- }
16
- declare function DrawerContent({ children, className, classNames, ...props }: DrawerContentProps): JSX.Element;
17
- type DrawerHeaderProps = ComponentProps<"div">;
18
- declare function DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element;
19
- type DrawerBodyProps = ComponentProps<"div">;
20
- declare function DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element;
21
- type DrawerFooterProps = ComponentProps<"div">;
22
- declare function DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element;
23
- type DrawerTitleProps = ComponentProps<typeof DrawerPrimitive.Title>;
24
- declare function DrawerTitle({ className, ...props }: DrawerTitleProps): JSX.Element;
25
- type DrawerDescriptionProps = ComponentProps<typeof DrawerPrimitive.Description>;
26
- declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): JSX.Element;
27
- interface DrawerCloseProps extends ComponentProps<typeof DrawerPrimitive.Close> {
28
- size?: VariantProps<typeof buttonVariants>["size"];
29
- variant?: VariantProps<typeof buttonVariants>["variant"];
30
- }
31
- declare function DrawerClose({ className, size, variant, ...props }: DrawerCloseProps): JSX.Element;
32
- export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, };
33
- export type { DrawerBodyProps, DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerTitleProps, DrawerTriggerProps, };
34
- //# sourceMappingURL=drawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMpD,KAAK,WAAW,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAE/D,iBAAS,MAAM,CAAC,EAAE,qBAA4B,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAQpF;AAMD,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AAEzE,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEpE;AAMD,UAAU,kBAAmB,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC;IACjF,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAqClC;AAMD,KAAK,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/C,iBAAS,YAAY,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,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC;AACF,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
@@ -1,36 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import { Drawer as DrawerPrimitive } from "vaul";
5
- import { buttonVariants } from "#components/button";
6
- function Drawer({ shouldScaleBackground = true, ...props }) {
7
- return (_jsx(DrawerPrimitive.Root, { "data-slot": "drawer", shouldScaleBackground: shouldScaleBackground, ...props }));
8
- }
9
- function DrawerTrigger({ ...props }) {
10
- return _jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
11
- }
12
- function DrawerContent({ children, className, classNames, ...props }) {
13
- return (_jsxs(DrawerPrimitive.Portal, { children: [_jsx(DrawerPrimitive.Overlay, { className: cn("fixed inset-0 z-50", "bg-black/50", classNames?.overlay), "data-slot": "drawer-overlay" }), _jsxs(DrawerPrimitive.Content, { className: cn("group/drawer-content fixed z-50 flex h-auto flex-col", "bg-background", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl", "data-[vaul-drawer-direction=left]:sm:max-w-sm", "data-[vaul-drawer-direction=right]:sm:max-w-sm", classNames?.content, className), "data-slot": "drawer-content", ...props, children: [_jsx("div", { className: cn("hidden", "mx-auto mt-4 h-1.5 w-12 shrink-0", "rounded-full", "bg-muted", "group-data-[vaul-drawer-direction=bottom]/drawer-content:block", classNames?.handle) }), children] })] }));
14
- }
15
- function DrawerHeader({ className, ...props }) {
16
- return (_jsx("div", { className: cn("flex flex-col gap-1.5", "p-4", className), "data-slot": "drawer-header", ...props }));
17
- }
18
- function DrawerBody({ className, ...props }) {
19
- return (_jsx("main", { className: cn("overflow-auto", "px-6 py-2", className), "data-slot": "drawer-body", ...props }));
20
- }
21
- function DrawerFooter({ className, ...props }) {
22
- return (_jsx("div", { className: cn("flex flex-col gap-2", "mt-auto p-4", className), "data-slot": "drawer-footer", ...props }));
23
- }
24
- function DrawerTitle({ className, ...props }) {
25
- return (_jsx(DrawerPrimitive.Title, { className: cn("font-semibold text-foreground", className), "data-slot": "drawer-title", ...props }));
26
- }
27
- function DrawerDescription({ className, ...props }) {
28
- return (_jsx(DrawerPrimitive.Description, { className: cn("text-sm text-muted-foreground", className), "data-slot": "drawer-description", ...props }));
29
- }
30
- function DrawerClose({ className, size, variant = "outline", ...props }) {
31
- return (_jsx(DrawerPrimitive.Close, { className: buttonVariants({ className, size, variant }), "data-slot": "drawer-close", ...props }));
32
- }
33
- /* -----------------------------------------------------------------------------
34
- * Exports
35
- * -------------------------------------------------------------------------- */
36
- export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, };
@@ -1,42 +0,0 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
- type DropdownMenuProps = ComponentProps<typeof DropdownMenuPrimitive.Root>;
4
- declare function DropdownMenu({ ...props }: DropdownMenuProps): JSX.Element;
5
- type DropdownMenuTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.Trigger>;
6
- declare function DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps): JSX.Element;
7
- type DropdownMenuGroupProps = ComponentProps<typeof DropdownMenuPrimitive.Group>;
8
- declare function DropdownMenuGroup({ ...props }: DropdownMenuGroupProps): JSX.Element;
9
- type DropdownMenuSubProps = ComponentProps<typeof DropdownMenuPrimitive.Sub>;
10
- declare function DropdownMenuSub({ ...props }: DropdownMenuSubProps): JSX.Element;
11
- type DropdownMenuRadioGroupProps = ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>;
12
- declare function DropdownMenuRadioGroup({ ...props }: DropdownMenuRadioGroupProps): JSX.Element;
13
- interface DropdownMenuSubTriggerProps extends ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> {
14
- inset?: boolean;
15
- }
16
- declare function DropdownMenuSubTrigger({ children, className, inset, ...props }: DropdownMenuSubTriggerProps): JSX.Element;
17
- type DropdownMenuSubContentProps = ComponentProps<typeof DropdownMenuPrimitive.SubContent>;
18
- declare function DropdownMenuSubContent({ className, ...props }: DropdownMenuSubContentProps): JSX.Element;
19
- type DropdownMenuContentProps = ComponentProps<typeof DropdownMenuPrimitive.Content>;
20
- declare function DropdownMenuContent({ className, sideOffset, ...props }: DropdownMenuContentProps): JSX.Element;
21
- interface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenuPrimitive.Item> {
22
- inset?: boolean;
23
- variant?: "default" | "destructive";
24
- }
25
- declare function DropdownMenuItem({ className, inset, variant, ...props }: DropdownMenuItemProps): JSX.Element;
26
- type DropdownMenuCheckboxItemProps = ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;
27
- declare function DropdownMenuCheckboxItem({ checked, children, className, ...props }: DropdownMenuCheckboxItemProps): JSX.Element;
28
- type DropdownMenuRadioItemProps = ComponentProps<typeof DropdownMenuPrimitive.RadioItem>;
29
- declare function DropdownMenuRadioItem({ children, className, ...props }: DropdownMenuRadioItemProps): JSX.Element;
30
- interface DropdownMenuLabelProps extends ComponentProps<typeof DropdownMenuPrimitive.Label> {
31
- inset?: boolean;
32
- }
33
- declare function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProps): JSX.Element;
34
- type DropdownMenuSeparatorProps = ComponentProps<typeof DropdownMenuPrimitive.Separator>;
35
- declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): JSX.Element;
36
- type DropdownMenuShortcutProps = ComponentProps<"span">;
37
- declare function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element;
38
- type DropdownMenuArrowProps = ComponentProps<typeof DropdownMenuPrimitive.Arrow>;
39
- declare function DropdownMenuArrow({ className, ...props }: DropdownMenuArrowProps): JSX.Element;
40
- export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
41
- export type { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuShortcutProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps, };
42
- //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAOvE,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,qBAAqB,CAAC,IA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S,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CAQ/F;AAMD,KAAK,yBAAyB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAExD,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAa7F;AAMD,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjF,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAQvF;AAMD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACpB,CAAC;AACF,YAAY,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,GACzB,CAAC"}
@@ -1,54 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "#lib/utils";
4
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
5
- import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
6
- function DropdownMenu({ ...props }) {
7
- return _jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
8
- }
9
- function DropdownMenuTrigger({ ...props }) {
10
- return _jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
11
- }
12
- function DropdownMenuGroup({ ...props }) {
13
- return _jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
14
- }
15
- function DropdownMenuSub({ ...props }) {
16
- return _jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
17
- }
18
- function DropdownMenuRadioGroup({ ...props }) {
19
- return _jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
20
- }
21
- function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
22
- return (_jsxs(DropdownMenuPrimitive.SubTrigger, { className: cn("flex items-center gap-x-2", "px-2 py-1.5", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "data-inset:pl-8", "data-open:bg-accent data-open:text-accent-foreground", className), "data-inset": inset, "data-slot": "dropdown-menu-sub-trigger", ...props, children: [children, _jsx(ChevronRightIcon, { className: cn("size-4", "ml-auto") })] }));
23
- }
24
- function DropdownMenuSubContent({ className, ...props }) {
25
- return (_jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", children: _jsx(DropdownMenuPrimitive.SubContent, { className: cn("z-50", "min-w-32 overflow-hidden p-1", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "origin-(--radix-dropdown-menu-content-transform-origin)", className), "data-slot": "dropdown-menu-sub-content", ...props }) }));
26
- }
27
- function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
28
- return (_jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", children: _jsx(DropdownMenuPrimitive.Content, { className: cn("z-50", "max-h-(--radix-dropdown-menu-content-available-height) min-w-32 overflow-x-hidden overflow-y-auto p-1", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "origin-(--radix-dropdown-menu-content-transform-origin)", className), "data-slot": "dropdown-menu-content", sideOffset: sideOffset, ...props }) }));
29
- }
30
- function DropdownMenuItem({ className, inset, variant, ...props }) {
31
- return (_jsx(DropdownMenuPrimitive.Item, { className: cn("group/dropdown-menu-item relative flex items-center gap-x-2", "px-2 py-1.5", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "data-inset:pl-8", "data-[variant=destructive]:text-destructive", "data-[variant=destructive]:focus:bg-destructive/10", "dark:data-[variant=destructive]:focus:bg-destructive/20", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", "data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", className), "data-inset": inset, "data-slot": "dropdown-menu-item", "data-variant": variant, ...props }));
32
- }
33
- function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
34
- return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { checked: checked, className: cn("group/dropdown-menu-item relative flex items-center gap-x-2", "py-1.5 pr-2 pl-8", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", className), "data-slot": "dropdown-menu-checkbox-item", ...props, children: [_jsx("span", { className: cn("absolute flex items-center justify-center", "left-2"), children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
35
- }
36
- function DropdownMenuRadioItem({ children, className, ...props }) {
37
- return (_jsxs(DropdownMenuPrimitive.RadioItem, { className: cn("group/dropdown-menu-item relative flex items-center gap-x-2", "py-1.5 pr-2 pl-8", "rounded-sm outline-hidden", "text-sm", "cursor-default select-none", "focus:bg-accent focus:text-accent-foreground", "aria-disabled:opacity-50", "[&_svg]:shrink-0", "[&_svg:not([class*='size-'])]:size-4", className), "data-slot": "dropdown-menu-radio-item", ...props, children: [_jsx("span", { className: cn("absolute flex items-center justify-center", "left-2"), children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(DotIcon, { className: cn("size-4", "fill-current") }) }) }), children] }));
38
- }
39
- function DropdownMenuLabel({ className, inset, ...props }) {
40
- return (_jsx(DropdownMenuPrimitive.Label, { className: cn("flex items-center gap-x-2", "px-2 py-1.5", "text-sm font-semibold", "data-inset:pl-8", className), "data-inset": inset, "data-slot": "dropdown-menu-label", ...props }));
41
- }
42
- function DropdownMenuSeparator({ className, ...props }) {
43
- return (_jsx(DropdownMenuPrimitive.Separator, { className: cn("mx-2 my-1 h-px", "bg-border", className), "data-slot": "dropdown-menu-separator", ...props }));
44
- }
45
- function DropdownMenuShortcut({ className, ...props }) {
46
- return (_jsx("span", { className: cn("ml-auto", "text-xs tracking-widest text-muted-foreground", "group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80", className), "data-slot": "dropdown-menu-shortcut", ...props }));
47
- }
48
- function DropdownMenuArrow({ className, ...props }) {
49
- return (_jsx(DropdownMenuPrimitive.Arrow, { className: cn("fill-popover", className), "data-slot": "dropdown-menu-arrow", ...props }));
50
- }
51
- /* -----------------------------------------------------------------------------
52
- * Exports
53
- * -------------------------------------------------------------------------- */
54
- export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
@@ -1,23 +0,0 @@
1
- import type { VariantProps } from "#lib/utils";
2
- import type { ComponentProps, JSX } from "react";
3
- declare const emptyMediaVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
- variant: {
5
- default: string;
6
- icon: string[];
7
- };
8
- }, Record<string, never>>;
9
- type EmptyProps = ComponentProps<"div">;
10
- declare function Empty({ className, ...props }: EmptyProps): JSX.Element;
11
- type EmptyHeaderProps = ComponentProps<"div">;
12
- declare function EmptyHeader({ className, ...props }: EmptyHeaderProps): JSX.Element;
13
- type EmptyMediaProps = ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>;
14
- declare function EmptyMedia({ className, variant, ...props }: EmptyMediaProps): JSX.Element;
15
- type EmptyTitleProps = ComponentProps<"div">;
16
- declare function EmptyTitle({ className, ...props }: EmptyTitleProps): JSX.Element;
17
- type EmptyDescriptionProps = ComponentProps<"p">;
18
- declare function EmptyDescription({ className, ...props }: EmptyDescriptionProps): JSX.Element;
19
- type EmptyContentProps = ComponentProps<"div">;
20
- declare function EmptyContent({ className, ...props }: EmptyContentProps): JSX.Element;
21
- export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, };
22
- export type { EmptyContentProps, EmptyDescriptionProps, EmptyHeaderProps, EmptyMediaProps, EmptyProps, EmptyTitleProps, };
23
- //# sourceMappingURL=empty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"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