@foundrykit/primitives 2.0.6 → 2.0.8

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 (319) hide show
  1. package/.turbo/turbo-build.log +233 -108
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/README.md +39 -136
  5. package/dist/chunk-25N35Z5M.js +42 -0
  6. package/dist/chunk-2JOT4DV4.js +66 -0
  7. package/dist/chunk-2PXD7LAX.js +172 -0
  8. package/dist/{chunk-VSXKLSEP.js → chunk-3BAO7TAS.js} +2 -2
  9. package/dist/chunk-3MEIDBWZ.js +225 -0
  10. package/dist/{chunk-A3U73FA7.js → chunk-3UKWAM5M.js} +2 -2
  11. package/dist/chunk-44I6VK3H.js +105 -0
  12. package/dist/chunk-46UI3AUE.js +62 -0
  13. package/dist/{chunk-AADRFFPH.js → chunk-5OSYIETI.js} +4 -4
  14. package/dist/chunk-67UXTT4O.js +116 -0
  15. package/dist/{chunk-J57CV3VT.js → chunk-6DRII3XC.js} +2 -2
  16. package/dist/chunk-727ACUWN.js +82 -0
  17. package/dist/chunk-76APYFRN.js +29 -0
  18. package/dist/chunk-AJAAMJYH.js +12 -0
  19. package/dist/chunk-BIFBYERK.js +69 -0
  20. package/dist/{chunk-PHMEWMFS.js → chunk-D4X2ZO5T.js} +7 -7
  21. package/dist/{chunk-UZIMC7AQ.js → chunk-DFGLEAZI.js} +2 -2
  22. package/dist/chunk-DKBMAFIR.js +65 -0
  23. package/dist/{chunk-U2EIVYWP.js → chunk-DXZ4GUQO.js} +2 -2
  24. package/dist/chunk-ED6T7ZZN.js +130 -0
  25. package/dist/{chunk-J4CRGO2P.js → chunk-EDKSYP4L.js} +2 -2
  26. package/dist/chunk-EEAK2RWF.js +23 -0
  27. package/dist/{chunk-FYCANIVJ.js → chunk-FF5D53KL.js} +2 -2
  28. package/dist/chunk-FIRYLO5W.js +253 -0
  29. package/dist/chunk-GPEL656S.js +84 -0
  30. package/dist/chunk-JKKCRFYB.js +36 -0
  31. package/dist/chunk-JTSIBZS4.js +194 -0
  32. package/dist/{chunk-QL4XJD7Y.js → chunk-MCXSVXO4.js} +2 -2
  33. package/dist/chunk-MMZJQ7RW.js +33 -0
  34. package/dist/{chunk-4GPFVBO2.js → chunk-MYIUX3DT.js} +3 -3
  35. package/dist/chunk-PAO3DSEF.js +48 -0
  36. package/dist/chunk-PLLG76QJ.js +32 -0
  37. package/dist/chunk-R3IEOV2B.js +155 -0
  38. package/dist/{chunk-KZMSLRLW.js → chunk-RDQF3IQE.js} +2 -2
  39. package/dist/{chunk-XQAJQKO7.js → chunk-SUEPE6OX.js} +3 -3
  40. package/dist/chunk-TA23RNS4.js +162 -0
  41. package/dist/chunk-TRXU4SOJ.js +224 -0
  42. package/dist/chunk-VA4MKQN7.js +40 -0
  43. package/dist/chunk-VPBVKBZ7.js +25 -0
  44. package/dist/{chunk-I44GXEPN.js → chunk-XVIHRZGJ.js} +1 -1
  45. package/dist/chunk-YT2ZIMZI.js +16 -0
  46. package/dist/components/accordion/index.cjs +104 -0
  47. package/dist/components/accordion/index.d.cts +25 -0
  48. package/dist/components/accordion/index.d.ts +25 -0
  49. package/dist/components/accordion/index.js +13 -0
  50. package/dist/components/alert/index.cjs +96 -0
  51. package/dist/components/alert/index.d.cts +28 -0
  52. package/dist/components/alert/index.d.ts +28 -0
  53. package/dist/components/alert/index.js +12 -0
  54. package/dist/components/alert-dialog/index.cjs +200 -0
  55. package/dist/components/alert-dialog/index.d.cts +42 -0
  56. package/dist/components/alert-dialog/index.d.ts +42 -0
  57. package/dist/components/alert-dialog/index.js +27 -0
  58. package/dist/components/aspect-ratio/index.cjs +47 -0
  59. package/dist/components/aspect-ratio/index.d.cts +19 -0
  60. package/dist/components/aspect-ratio/index.d.ts +19 -0
  61. package/dist/components/aspect-ratio/index.js +7 -0
  62. package/dist/components/avatar/index.cjs +1 -1
  63. package/dist/components/avatar/index.d.cts +16 -1
  64. package/dist/components/avatar/index.d.ts +16 -1
  65. package/dist/components/avatar/index.js +1 -1
  66. package/dist/components/badge/index.cjs +5 -5
  67. package/dist/components/badge/index.d.cts +13 -2
  68. package/dist/components/badge/index.d.ts +13 -2
  69. package/dist/components/badge/index.js +1 -1
  70. package/dist/components/breadcrumb/index.cjs +2 -2
  71. package/dist/components/breadcrumb/index.d.cts +19 -0
  72. package/dist/components/breadcrumb/index.d.ts +19 -0
  73. package/dist/components/breadcrumb/index.js +1 -1
  74. package/dist/components/button/index.cjs +18 -8
  75. package/dist/components/button/index.d.cts +15 -2
  76. package/dist/components/button/index.d.ts +15 -2
  77. package/dist/components/button/index.js +1 -1
  78. package/dist/components/button-group/index.cjs +142 -0
  79. package/dist/components/button-group/index.d.cts +33 -0
  80. package/dist/components/button-group/index.d.ts +33 -0
  81. package/dist/components/button-group/index.js +13 -0
  82. package/dist/components/card/index.cjs +2 -2
  83. package/dist/components/card/index.d.cts +16 -0
  84. package/dist/components/card/index.d.ts +16 -0
  85. package/dist/components/card/index.js +1 -1
  86. package/dist/components/checkbox/index.cjs +2 -2
  87. package/dist/components/checkbox/index.d.cts +11 -1
  88. package/dist/components/checkbox/index.d.ts +11 -1
  89. package/dist/components/checkbox/index.js +1 -1
  90. package/dist/components/collapsible/index.cjs +73 -0
  91. package/dist/components/collapsible/index.d.cts +22 -0
  92. package/dist/components/collapsible/index.d.ts +22 -0
  93. package/dist/components/collapsible/index.js +11 -0
  94. package/dist/components/context-menu/index.cjs +274 -0
  95. package/dist/components/context-menu/index.d.cts +48 -0
  96. package/dist/components/context-menu/index.d.ts +48 -0
  97. package/dist/components/context-menu/index.js +35 -0
  98. package/dist/components/direction/index.cjs +39 -0
  99. package/dist/components/direction/index.d.cts +20 -0
  100. package/dist/components/direction/index.d.ts +20 -0
  101. package/dist/components/direction/index.js +9 -0
  102. package/dist/components/drawer/index.cjs +164 -0
  103. package/dist/components/drawer/index.d.cts +35 -0
  104. package/dist/components/drawer/index.d.ts +35 -0
  105. package/dist/components/drawer/index.js +25 -0
  106. package/dist/components/dropdown/index.cjs +7 -7
  107. package/dist/components/dropdown/index.d.cts +25 -1
  108. package/dist/components/dropdown/index.d.ts +25 -1
  109. package/dist/components/dropdown/index.js +1 -1
  110. package/dist/components/empty/index.cjs +135 -0
  111. package/dist/components/empty/index.d.cts +38 -0
  112. package/dist/components/empty/index.d.ts +38 -0
  113. package/dist/components/empty/index.js +18 -0
  114. package/dist/components/field/index.cjs +269 -0
  115. package/dist/components/field/index.d.cts +42 -0
  116. package/dist/components/field/index.d.ts +42 -0
  117. package/dist/components/field/index.js +27 -0
  118. package/dist/components/hover-card/index.cjs +77 -0
  119. package/dist/components/hover-card/index.d.cts +22 -0
  120. package/dist/components/hover-card/index.d.ts +22 -0
  121. package/dist/components/hover-card/index.js +11 -0
  122. package/dist/components/input/index.cjs +2 -2
  123. package/dist/components/input/index.d.cts +11 -2
  124. package/dist/components/input/index.d.ts +11 -2
  125. package/dist/components/input/index.js +1 -1
  126. package/dist/components/item/index.cjs +262 -0
  127. package/dist/components/item/index.d.cts +47 -0
  128. package/dist/components/item/index.d.ts +47 -0
  129. package/dist/components/item/index.js +29 -0
  130. package/dist/components/kbd/index.cjs +57 -0
  131. package/dist/components/kbd/index.d.cts +19 -0
  132. package/dist/components/kbd/index.d.ts +19 -0
  133. package/dist/components/kbd/index.js +8 -0
  134. package/dist/components/label/index.cjs +2 -2
  135. package/dist/components/label/index.d.cts +10 -1
  136. package/dist/components/label/index.d.ts +10 -1
  137. package/dist/components/label/index.js +1 -1
  138. package/dist/components/menubar/index.cjs +303 -0
  139. package/dist/components/menubar/index.d.cts +49 -0
  140. package/dist/components/menubar/index.d.ts +49 -0
  141. package/dist/components/menubar/index.js +37 -0
  142. package/dist/components/native-select/index.cjs +53 -0
  143. package/dist/components/native-select/index.d.cts +19 -0
  144. package/dist/components/native-select/index.d.ts +19 -0
  145. package/dist/components/native-select/index.js +6 -0
  146. package/dist/components/navigation-menu/index.cjs +215 -0
  147. package/dist/components/navigation-menu/index.d.cts +37 -0
  148. package/dist/components/navigation-menu/index.d.ts +37 -0
  149. package/dist/components/navigation-menu/index.js +23 -0
  150. package/dist/components/popover/index.cjs +2 -2
  151. package/dist/components/popover/index.d.cts +14 -1
  152. package/dist/components/popover/index.d.ts +14 -1
  153. package/dist/components/popover/index.js +1 -1
  154. package/dist/components/progress/index.cjs +68 -0
  155. package/dist/components/progress/index.d.cts +16 -0
  156. package/dist/components/progress/index.d.ts +16 -0
  157. package/dist/components/progress/index.js +7 -0
  158. package/dist/components/radio-group/index.cjs +3 -3
  159. package/dist/components/radio-group/index.d.cts +15 -1
  160. package/dist/components/radio-group/index.d.ts +15 -1
  161. package/dist/components/radio-group/index.js +1 -1
  162. package/dist/components/resizable/index.cjs +75 -0
  163. package/dist/components/resizable/index.d.cts +25 -0
  164. package/dist/components/resizable/index.d.ts +25 -0
  165. package/dist/components/resizable/index.js +11 -0
  166. package/dist/components/scroll-area/index.cjs +3 -3
  167. package/dist/components/scroll-area/index.d.cts +14 -1
  168. package/dist/components/scroll-area/index.d.ts +14 -1
  169. package/dist/components/scroll-area/index.js +1 -1
  170. package/dist/components/select/index.cjs +4 -4
  171. package/dist/components/select/index.d.cts +19 -1
  172. package/dist/components/select/index.d.ts +19 -1
  173. package/dist/components/select/index.js +1 -1
  174. package/dist/components/separator/index.cjs +2 -2
  175. package/dist/components/separator/index.d.cts +12 -1
  176. package/dist/components/separator/index.d.ts +12 -1
  177. package/dist/components/separator/index.js +1 -1
  178. package/dist/components/skeleton/index.d.cts +9 -0
  179. package/dist/components/skeleton/index.d.ts +9 -0
  180. package/dist/components/slider/index.cjs +100 -0
  181. package/dist/components/slider/index.d.cts +18 -0
  182. package/dist/components/slider/index.d.ts +18 -0
  183. package/dist/components/slider/index.js +7 -0
  184. package/dist/components/sonner/index.cjs +51 -0
  185. package/dist/components/sonner/index.d.cts +18 -0
  186. package/dist/components/sonner/index.d.ts +18 -0
  187. package/dist/components/sonner/index.js +9 -0
  188. package/dist/components/spinner/index.cjs +47 -0
  189. package/dist/components/spinner/index.d.cts +17 -0
  190. package/dist/components/spinner/index.d.ts +17 -0
  191. package/dist/components/spinner/index.js +6 -0
  192. package/dist/components/switch/index.cjs +2 -2
  193. package/dist/components/switch/index.d.cts +11 -1
  194. package/dist/components/switch/index.d.ts +11 -1
  195. package/dist/components/switch/index.js +1 -1
  196. package/dist/components/table/index.cjs +147 -0
  197. package/dist/components/table/index.d.cts +35 -0
  198. package/dist/components/table/index.d.ts +35 -0
  199. package/dist/components/table/index.js +20 -0
  200. package/dist/components/tabs/index.cjs +2 -2
  201. package/dist/components/tabs/index.d.cts +18 -1
  202. package/dist/components/tabs/index.d.ts +18 -1
  203. package/dist/components/tabs/index.js +1 -1
  204. package/dist/components/textarea/index.cjs +1 -1
  205. package/dist/components/textarea/index.d.cts +9 -0
  206. package/dist/components/textarea/index.d.ts +9 -0
  207. package/dist/components/textarea/index.js +1 -1
  208. package/dist/components/toggle-group/index.cjs +120 -0
  209. package/dist/components/toggle-group/index.d.cts +27 -0
  210. package/dist/components/toggle-group/index.d.ts +27 -0
  211. package/dist/components/toggle-group/index.js +9 -0
  212. package/dist/components/typography/index.cjs +197 -0
  213. package/dist/components/typography/index.d.cts +28 -0
  214. package/dist/components/typography/index.d.ts +28 -0
  215. package/dist/components/typography/index.js +28 -0
  216. package/dist/index.cjs +3272 -781
  217. package/dist/index.d.cts +128 -24
  218. package/dist/index.d.ts +128 -24
  219. package/dist/index.js +485 -144
  220. package/package.json +25 -8
  221. package/postcss.config.mjs +1 -1
  222. package/registry.json +18 -5
  223. package/src/components/accordion/config.ts +28 -0
  224. package/src/components/accordion/index.tsx +80 -0
  225. package/src/components/alert/config.ts +40 -0
  226. package/src/components/alert/index.tsx +80 -0
  227. package/src/components/alert-dialog/config.ts +28 -0
  228. package/src/components/alert-dialog/index.tsx +188 -0
  229. package/src/components/aspect-ratio/config.ts +27 -0
  230. package/src/components/aspect-ratio/index.tsx +24 -0
  231. package/src/components/avatar/config.ts +1 -1
  232. package/src/components/avatar/index.tsx +18 -4
  233. package/src/components/badge/config.ts +1 -1
  234. package/src/components/badge/index.tsx +17 -7
  235. package/src/components/breadcrumb/config.ts +1 -1
  236. package/src/components/breadcrumb/index.tsx +24 -6
  237. package/src/components/button/config.ts +21 -1
  238. package/src/components/button/index.tsx +33 -9
  239. package/src/components/button-group/config.ts +39 -0
  240. package/src/components/button-group/index.tsx +99 -0
  241. package/src/components/card/config.ts +1 -1
  242. package/src/components/card/index.tsx +21 -6
  243. package/src/components/checkbox/config.ts +1 -1
  244. package/src/components/checkbox/index.tsx +13 -4
  245. package/src/components/collapsible/config.ts +27 -0
  246. package/src/components/collapsible/index.tsx +47 -0
  247. package/src/components/context-menu/config.ts +28 -0
  248. package/src/components/context-menu/index.tsx +271 -0
  249. package/src/components/dialog/config.ts +1 -1
  250. package/src/components/dialog/index.tsx +25 -6
  251. package/src/components/direction/config.ts +28 -0
  252. package/src/components/direction/index.tsx +27 -0
  253. package/src/components/drawer/config.ts +28 -0
  254. package/src/components/drawer/index.tsx +153 -0
  255. package/src/components/dropdown/config.ts +1 -1
  256. package/src/components/dropdown/index.tsx +37 -14
  257. package/src/components/empty/config.ts +38 -0
  258. package/src/components/empty/index.tsx +127 -0
  259. package/src/components/field/config.ts +40 -0
  260. package/src/components/field/index.tsx +252 -0
  261. package/src/components/hover-card/config.ts +27 -0
  262. package/src/components/hover-card/index.tsx +56 -0
  263. package/src/components/input/config.ts +1 -1
  264. package/src/components/input/index.tsx +13 -5
  265. package/src/components/input-group/index.tsx +33 -12
  266. package/src/components/item/config.ts +52 -0
  267. package/src/components/item/index.tsx +215 -0
  268. package/src/components/kbd/config.ts +38 -0
  269. package/src/components/kbd/index.tsx +40 -0
  270. package/src/components/label/config.ts +1 -1
  271. package/src/components/label/index.tsx +12 -4
  272. package/src/components/menubar/config.ts +28 -0
  273. package/src/components/menubar/index.tsx +295 -0
  274. package/src/components/native-select/config.ts +40 -0
  275. package/src/components/native-select/index.tsx +40 -0
  276. package/src/components/navigation-menu/config.ts +32 -0
  277. package/src/components/navigation-menu/index.tsx +188 -0
  278. package/src/components/popover/config.ts +1 -1
  279. package/src/components/popover/index.tsx +17 -5
  280. package/src/components/progress/config.ts +42 -0
  281. package/src/components/progress/index.tsx +39 -0
  282. package/src/components/radio-group/config.ts +1 -1
  283. package/src/components/radio-group/index.tsx +18 -5
  284. package/src/components/resizable/config.ts +28 -0
  285. package/src/components/resizable/index.tsx +67 -0
  286. package/src/components/scroll-area/index.tsx +17 -5
  287. package/src/components/select/config.ts +1 -1
  288. package/src/components/select/index.tsx +23 -6
  289. package/src/components/separator/config.ts +1 -1
  290. package/src/components/separator/index.tsx +14 -4
  291. package/src/components/sheet/index.tsx +21 -7
  292. package/src/components/skeleton/config.ts +1 -1
  293. package/src/components/skeleton/index.tsx +9 -0
  294. package/src/components/slider/config.ts +46 -0
  295. package/src/components/slider/index.tsx +73 -0
  296. package/src/components/sonner/config.ts +27 -0
  297. package/src/components/sonner/index.tsx +37 -0
  298. package/src/components/spinner/config.ts +40 -0
  299. package/src/components/spinner/index.tsx +30 -0
  300. package/src/components/switch/config.ts +1 -1
  301. package/src/components/switch/index.tsx +13 -4
  302. package/src/components/table/config.ts +38 -0
  303. package/src/components/table/index.tsx +135 -0
  304. package/src/components/tabs/config.ts +1 -1
  305. package/src/components/tabs/index.tsx +21 -5
  306. package/src/components/textarea/config.ts +1 -1
  307. package/src/components/textarea/index.tsx +11 -3
  308. package/src/components/toggle/index.tsx +20 -8
  309. package/src/components/toggle-group/config.ts +46 -0
  310. package/src/components/toggle-group/index.tsx +106 -0
  311. package/src/components/tooltip/index.tsx +19 -5
  312. package/src/components/typography/config.ts +38 -0
  313. package/src/components/typography/index.tsx +172 -0
  314. package/src/index.ts +239 -53
  315. package/tsup.config.ts +25 -0
  316. package/dist/chunk-FUWID6MC.js +0 -42
  317. package/dist/chunk-YTUI6MCB.js +0 -52
  318. package/eslint.config.js +0 -4
  319. package/dist/{chunk-VVNIYCKH.js → chunk-3TZXV53R.js} +1 -1
package/dist/index.cjs CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -30,6 +31,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
31
  // src/index.ts
31
32
  var index_exports = {};
32
33
  __export(index_exports, {
34
+ Accordion: () => Accordion,
35
+ AccordionContent: () => AccordionContent,
36
+ AccordionItem: () => AccordionItem,
37
+ AccordionTrigger: () => AccordionTrigger,
38
+ Alert: () => Alert,
39
+ AlertDescription: () => AlertDescription,
40
+ AlertDialog: () => AlertDialog,
41
+ AlertDialogAction: () => AlertDialogAction,
42
+ AlertDialogCancel: () => AlertDialogCancel,
43
+ AlertDialogContent: () => AlertDialogContent,
44
+ AlertDialogDescription: () => AlertDialogDescription,
45
+ AlertDialogFooter: () => AlertDialogFooter,
46
+ AlertDialogHeader: () => AlertDialogHeader,
47
+ AlertDialogOverlay: () => AlertDialogOverlay,
48
+ AlertDialogPortal: () => AlertDialogPortal,
49
+ AlertDialogTitle: () => AlertDialogTitle,
50
+ AlertDialogTrigger: () => AlertDialogTrigger,
51
+ AlertTitle: () => AlertTitle,
52
+ AspectRatio: () => AspectRatio,
33
53
  Avatar: () => Avatar,
34
54
  AvatarFallback: () => AvatarFallback,
35
55
  AvatarImage: () => AvatarImage,
@@ -42,6 +62,9 @@ __export(index_exports, {
42
62
  BreadcrumbPage: () => BreadcrumbPage,
43
63
  BreadcrumbSeparator: () => BreadcrumbSeparator,
44
64
  Button: () => Button,
65
+ ButtonGroup: () => ButtonGroup,
66
+ ButtonGroupSeparator: () => ButtonGroupSeparator,
67
+ ButtonGroupText: () => ButtonGroupText,
45
68
  Card: () => Card,
46
69
  CardContent: () => CardContent,
47
70
  CardDescription: () => CardDescription,
@@ -49,6 +72,24 @@ __export(index_exports, {
49
72
  CardHeader: () => CardHeader,
50
73
  CardTitle: () => CardTitle,
51
74
  Checkbox: () => Checkbox,
75
+ Collapsible: () => Collapsible,
76
+ CollapsibleContent: () => CollapsibleContent2,
77
+ CollapsibleTrigger: () => CollapsibleTrigger2,
78
+ ContextMenu: () => ContextMenu,
79
+ ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
80
+ ContextMenuContent: () => ContextMenuContent,
81
+ ContextMenuGroup: () => ContextMenuGroup,
82
+ ContextMenuItem: () => ContextMenuItem,
83
+ ContextMenuLabel: () => ContextMenuLabel,
84
+ ContextMenuPortal: () => ContextMenuPortal,
85
+ ContextMenuRadioGroup: () => ContextMenuRadioGroup,
86
+ ContextMenuRadioItem: () => ContextMenuRadioItem,
87
+ ContextMenuSeparator: () => ContextMenuSeparator,
88
+ ContextMenuShortcut: () => ContextMenuShortcut,
89
+ ContextMenuSub: () => ContextMenuSub,
90
+ ContextMenuSubContent: () => ContextMenuSubContent,
91
+ ContextMenuSubTrigger: () => ContextMenuSubTrigger,
92
+ ContextMenuTrigger: () => ContextMenuTrigger,
52
93
  Dialog: () => Dialog,
53
94
  DialogClose: () => DialogClose,
54
95
  DialogContent: () => DialogContent,
@@ -57,6 +98,17 @@ __export(index_exports, {
57
98
  DialogHeader: () => DialogHeader,
58
99
  DialogTitle: () => DialogTitle,
59
100
  DialogTrigger: () => DialogTrigger,
101
+ DirectionProvider: () => DirectionProvider,
102
+ Drawer: () => Drawer,
103
+ DrawerClose: () => DrawerClose,
104
+ DrawerContent: () => DrawerContent,
105
+ DrawerDescription: () => DrawerDescription,
106
+ DrawerFooter: () => DrawerFooter,
107
+ DrawerHeader: () => DrawerHeader,
108
+ DrawerOverlay: () => DrawerOverlay,
109
+ DrawerPortal: () => DrawerPortal,
110
+ DrawerTitle: () => DrawerTitle,
111
+ DrawerTrigger: () => DrawerTrigger,
60
112
  DropdownMenu: () => DropdownMenu,
61
113
  DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
62
114
  DropdownMenuContent: () => DropdownMenuContent,
@@ -72,14 +124,74 @@ __export(index_exports, {
72
124
  DropdownMenuSubContent: () => DropdownMenuSubContent,
73
125
  DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
74
126
  DropdownMenuTrigger: () => DropdownMenuTrigger,
127
+ Empty: () => Empty,
128
+ EmptyContent: () => EmptyContent,
129
+ EmptyDescription: () => EmptyDescription,
130
+ EmptyHeader: () => EmptyHeader,
131
+ EmptyMedia: () => EmptyMedia,
132
+ EmptyTitle: () => EmptyTitle,
133
+ Field: () => Field,
134
+ FieldContent: () => FieldContent,
135
+ FieldDescription: () => FieldDescription,
136
+ FieldError: () => FieldError,
137
+ FieldGroup: () => FieldGroup,
138
+ FieldLabel: () => FieldLabel,
139
+ FieldLegend: () => FieldLegend,
140
+ FieldSeparator: () => FieldSeparator,
141
+ FieldSet: () => FieldSet,
142
+ FieldTitle: () => FieldTitle,
143
+ HoverCard: () => HoverCard,
144
+ HoverCardContent: () => HoverCardContent,
145
+ HoverCardTrigger: () => HoverCardTrigger,
75
146
  Input: () => Input,
76
- Label: () => Label2,
147
+ Item: () => Item4,
148
+ ItemActions: () => ItemActions,
149
+ ItemContent: () => ItemContent,
150
+ ItemDescription: () => ItemDescription,
151
+ ItemFooter: () => ItemFooter,
152
+ ItemGroup: () => ItemGroup,
153
+ ItemHeader: () => ItemHeader,
154
+ ItemMedia: () => ItemMedia,
155
+ ItemSeparator: () => ItemSeparator,
156
+ ItemTitle: () => ItemTitle,
157
+ Kbd: () => Kbd,
158
+ KbdGroup: () => KbdGroup,
159
+ Label: () => Label3,
160
+ Menubar: () => Menubar,
161
+ MenubarCheckboxItem: () => MenubarCheckboxItem,
162
+ MenubarContent: () => MenubarContent,
163
+ MenubarGroup: () => MenubarGroup,
164
+ MenubarItem: () => MenubarItem,
165
+ MenubarLabel: () => MenubarLabel,
166
+ MenubarMenu: () => MenubarMenu,
167
+ MenubarPortal: () => MenubarPortal,
168
+ MenubarRadioGroup: () => MenubarRadioGroup,
169
+ MenubarRadioItem: () => MenubarRadioItem,
170
+ MenubarSeparator: () => MenubarSeparator,
171
+ MenubarShortcut: () => MenubarShortcut,
172
+ MenubarSub: () => MenubarSub,
173
+ MenubarSubContent: () => MenubarSubContent,
174
+ MenubarSubTrigger: () => MenubarSubTrigger,
175
+ MenubarTrigger: () => MenubarTrigger,
176
+ NativeSelect: () => NativeSelect,
177
+ NavigationMenu: () => NavigationMenu,
178
+ NavigationMenuContent: () => NavigationMenuContent,
179
+ NavigationMenuIndicator: () => NavigationMenuIndicator,
180
+ NavigationMenuItem: () => NavigationMenuItem,
181
+ NavigationMenuLink: () => NavigationMenuLink,
182
+ NavigationMenuList: () => NavigationMenuList,
183
+ NavigationMenuTrigger: () => NavigationMenuTrigger,
184
+ NavigationMenuViewport: () => NavigationMenuViewport,
77
185
  Popover: () => Popover,
78
186
  PopoverAnchor: () => PopoverAnchor,
79
187
  PopoverContent: () => PopoverContent,
80
188
  PopoverTrigger: () => PopoverTrigger,
81
- RadioGroup: () => RadioGroup2,
189
+ Progress: () => Progress,
190
+ RadioGroup: () => RadioGroup4,
82
191
  RadioGroupItem: () => RadioGroupItem,
192
+ ResizableHandle: () => ResizableHandle,
193
+ ResizablePanel: () => ResizablePanel,
194
+ ResizablePanelGroup: () => ResizablePanelGroup,
83
195
  ScrollArea: () => ScrollArea,
84
196
  ScrollBar: () => ScrollBar,
85
197
  Select: () => Select,
@@ -92,7 +204,7 @@ __export(index_exports, {
92
204
  SelectSeparator: () => SelectSeparator,
93
205
  SelectTrigger: () => SelectTrigger,
94
206
  SelectValue: () => SelectValue,
95
- Separator: () => Separator3,
207
+ Separator: () => Separator,
96
208
  Sheet: () => Sheet,
97
209
  SheetClose: () => SheetClose,
98
210
  SheetContent: () => SheetContent,
@@ -102,84 +214,1821 @@ __export(index_exports, {
102
214
  SheetTitle: () => SheetTitle,
103
215
  SheetTrigger: () => SheetTrigger,
104
216
  Skeleton: () => Skeleton,
217
+ Slider: () => Slider,
218
+ Spinner: () => Spinner,
105
219
  Switch: () => Switch,
220
+ Table: () => Table,
221
+ TableBody: () => TableBody,
222
+ TableCaption: () => TableCaption,
223
+ TableCell: () => TableCell,
224
+ TableFooter: () => TableFooter,
225
+ TableHead: () => TableHead,
226
+ TableHeader: () => TableHeader,
227
+ TableRow: () => TableRow,
106
228
  Tabs: () => Tabs,
107
229
  TabsContent: () => TabsContent,
108
230
  TabsList: () => TabsList,
109
231
  TabsTrigger: () => TabsTrigger,
110
232
  Textarea: () => Textarea,
233
+ Toaster: () => Toaster,
111
234
  Toggle: () => Toggle,
235
+ ToggleGroup: () => ToggleGroup,
236
+ ToggleGroupItem: () => ToggleGroupItem,
112
237
  Tooltip: () => Tooltip,
113
238
  TooltipContent: () => TooltipContent,
114
239
  TooltipProvider: () => TooltipProvider,
115
240
  TooltipTrigger: () => TooltipTrigger,
241
+ TypographyBlockquote: () => TypographyBlockquote,
242
+ TypographyH1: () => TypographyH1,
243
+ TypographyH2: () => TypographyH2,
244
+ TypographyH3: () => TypographyH3,
245
+ TypographyH4: () => TypographyH4,
246
+ TypographyInlineCode: () => TypographyInlineCode,
247
+ TypographyLarge: () => TypographyLarge,
248
+ TypographyLead: () => TypographyLead,
249
+ TypographyList: () => TypographyList,
250
+ TypographyMuted: () => TypographyMuted,
251
+ TypographyP: () => TypographyP,
252
+ TypographySmall: () => TypographySmall,
253
+ alertVariants: () => alertVariants,
116
254
  badgeVariants: () => badgeVariants,
255
+ buttonGroupVariants: () => buttonGroupVariants,
117
256
  buttonVariants: () => buttonVariants,
118
- cn: () => import_utils23.cn,
119
- toggleVariants: () => toggleVariants
257
+ cn: () => import_utils44.cn,
258
+ emptyMediaVariants: () => emptyMediaVariants,
259
+ fieldVariants: () => fieldVariants,
260
+ itemMediaVariants: () => itemMediaVariants,
261
+ itemVariants: () => itemVariants,
262
+ navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
263
+ toast: () => import_sonner.toast,
264
+ toggleVariants: () => toggleVariants,
265
+ useDirection: () => import_react_direction.useDirection
120
266
  });
121
267
  module.exports = __toCommonJS(index_exports);
268
+ var import_utils44 = require("@foundrykit/utils");
122
269
 
123
- // src/components/button/index.tsx
124
- var import_react_slot = require("@radix-ui/react-slot");
125
- var import_class_variance_authority = require("class-variance-authority");
270
+ // src/components/accordion/index.tsx
126
271
  var import_utils = require("@foundrykit/utils");
272
+ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
273
+ var import_lucide_react = require("lucide-react");
127
274
  var import_jsx_runtime = require("react/jsx-runtime");
128
- var buttonVariants = (0, import_class_variance_authority.cva)(
129
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
275
+ function Accordion({
276
+ ...props
277
+ }) {
278
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
279
+ }
280
+ function AccordionItem({
281
+ className,
282
+ ...props
283
+ }) {
284
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
285
+ AccordionPrimitive.Item,
286
+ {
287
+ "data-slot": "accordion-item",
288
+ className: (0, import_utils.cn)("border-b last:border-b-0", className),
289
+ ...props
290
+ }
291
+ );
292
+ }
293
+ function AccordionTrigger({
294
+ className,
295
+ children,
296
+ ...props
297
+ }) {
298
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
299
+ AccordionPrimitive.Trigger,
300
+ {
301
+ "data-slot": "accordion-trigger",
302
+ className: (0, import_utils.cn)(
303
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
304
+ className
305
+ ),
306
+ ...props,
307
+ children: [
308
+ children,
309
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
310
+ ]
311
+ }
312
+ ) });
313
+ }
314
+ function AccordionContent({
315
+ className,
316
+ children,
317
+ ...props
318
+ }) {
319
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
320
+ AccordionPrimitive.Content,
321
+ {
322
+ "data-slot": "accordion-content",
323
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
324
+ ...props,
325
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_utils.cn)("pt-0 pb-4", className), children })
326
+ }
327
+ );
328
+ }
329
+
330
+ // src/components/alert/index.tsx
331
+ var import_utils2 = require("@foundrykit/utils");
332
+ var import_class_variance_authority = require("class-variance-authority");
333
+ var import_jsx_runtime2 = require("react/jsx-runtime");
334
+ var alertVariants = (0, import_class_variance_authority.cva)(
335
+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
130
336
  {
131
337
  variants: {
132
338
  variant: {
133
- default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
134
- destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
135
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
136
- secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
137
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
138
- link: "text-primary underline-offset-4 hover:underline"
139
- },
140
- size: {
141
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
142
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
143
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
144
- icon: "size-9"
339
+ default: "bg-background text-foreground",
340
+ destructive: "text-destructive bg-background *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
145
341
  }
146
342
  },
147
343
  defaultVariants: {
148
- variant: "default",
149
- size: "default"
344
+ variant: "default"
345
+ }
346
+ }
347
+ );
348
+ function Alert({
349
+ className,
350
+ variant,
351
+ ...props
352
+ }) {
353
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
354
+ "div",
355
+ {
356
+ "data-slot": "alert",
357
+ role: "alert",
358
+ className: (0, import_utils2.cn)(alertVariants({ variant }), className),
359
+ ...props
360
+ }
361
+ );
362
+ }
363
+ function AlertTitle({ className, ...props }) {
364
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
365
+ "div",
366
+ {
367
+ "data-slot": "alert-title",
368
+ className: (0, import_utils2.cn)(
369
+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
370
+ className
371
+ ),
372
+ ...props
373
+ }
374
+ );
375
+ }
376
+ function AlertDescription({
377
+ className,
378
+ ...props
379
+ }) {
380
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
381
+ "div",
382
+ {
383
+ "data-slot": "alert-description",
384
+ className: (0, import_utils2.cn)(
385
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
386
+ className
387
+ ),
388
+ ...props
389
+ }
390
+ );
391
+ }
392
+
393
+ // src/components/alert-dialog/index.tsx
394
+ var import_utils3 = require("@foundrykit/utils");
395
+ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
396
+ var import_jsx_runtime3 = require("react/jsx-runtime");
397
+ function AlertDialog({
398
+ ...props
399
+ }) {
400
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
401
+ }
402
+ function AlertDialogTrigger({
403
+ ...props
404
+ }) {
405
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
406
+ }
407
+ function AlertDialogPortal({
408
+ ...props
409
+ }) {
410
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
411
+ }
412
+ function AlertDialogOverlay({
413
+ className,
414
+ ...props
415
+ }) {
416
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
417
+ AlertDialogPrimitive.Overlay,
418
+ {
419
+ "data-slot": "alert-dialog-overlay",
420
+ className: (0, import_utils3.cn)(
421
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
422
+ className
423
+ ),
424
+ ...props
425
+ }
426
+ );
427
+ }
428
+ function AlertDialogContent({
429
+ className,
430
+ ...props
431
+ }) {
432
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(AlertDialogPortal, { children: [
433
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogOverlay, {}),
434
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
435
+ AlertDialogPrimitive.Content,
436
+ {
437
+ "data-slot": "alert-dialog-content",
438
+ className: (0, import_utils3.cn)(
439
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
440
+ className
441
+ ),
442
+ ...props
443
+ }
444
+ )
445
+ ] });
446
+ }
447
+ function AlertDialogHeader({
448
+ className,
449
+ ...props
450
+ }) {
451
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
452
+ "div",
453
+ {
454
+ "data-slot": "alert-dialog-header",
455
+ className: (0, import_utils3.cn)("flex flex-col gap-2 text-center sm:text-left", className),
456
+ ...props
457
+ }
458
+ );
459
+ }
460
+ function AlertDialogFooter({
461
+ className,
462
+ ...props
463
+ }) {
464
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
465
+ "div",
466
+ {
467
+ "data-slot": "alert-dialog-footer",
468
+ className: (0, import_utils3.cn)(
469
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
470
+ className
471
+ ),
472
+ ...props
473
+ }
474
+ );
475
+ }
476
+ function AlertDialogTitle({
477
+ className,
478
+ ...props
479
+ }) {
480
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
481
+ AlertDialogPrimitive.Title,
482
+ {
483
+ "data-slot": "alert-dialog-title",
484
+ className: (0, import_utils3.cn)("text-lg font-semibold", className),
485
+ ...props
486
+ }
487
+ );
488
+ }
489
+ function AlertDialogDescription({
490
+ className,
491
+ ...props
492
+ }) {
493
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
494
+ AlertDialogPrimitive.Description,
495
+ {
496
+ "data-slot": "alert-dialog-description",
497
+ className: (0, import_utils3.cn)("text-muted-foreground text-sm", className),
498
+ ...props
499
+ }
500
+ );
501
+ }
502
+ function AlertDialogAction({
503
+ className,
504
+ ...props
505
+ }) {
506
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
507
+ AlertDialogPrimitive.Action,
508
+ {
509
+ "data-slot": "alert-dialog-action",
510
+ className: (0, import_utils3.cn)(
511
+ "bg-primary text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:bg-primary/90 inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 has-[>svg]:px-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
512
+ className
513
+ ),
514
+ ...props
515
+ }
516
+ );
517
+ }
518
+ function AlertDialogCancel({
519
+ className,
520
+ ...props
521
+ }) {
522
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
523
+ AlertDialogPrimitive.Cancel,
524
+ {
525
+ "data-slot": "alert-dialog-cancel",
526
+ className: (0, import_utils3.cn)(
527
+ "bg-background focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:border-input dark:hover:bg-input/50 hover:bg-accent hover:text-accent-foreground inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-md border px-4 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 has-[>svg]:px-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
528
+ className
529
+ ),
530
+ ...props
531
+ }
532
+ );
533
+ }
534
+
535
+ // src/components/aspect-ratio/index.tsx
536
+ var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"), 1);
537
+ var import_jsx_runtime4 = require("react/jsx-runtime");
538
+ function AspectRatio({
539
+ ...props
540
+ }) {
541
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
542
+ }
543
+
544
+ // src/components/avatar/index.tsx
545
+ var import_utils4 = require("@foundrykit/utils");
546
+ var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
547
+ var import_jsx_runtime5 = require("react/jsx-runtime");
548
+ function Avatar({
549
+ className,
550
+ ...props
551
+ }) {
552
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
553
+ AvatarPrimitive.Root,
554
+ {
555
+ "data-slot": "avatar",
556
+ className: (0, import_utils4.cn)(
557
+ "relative flex size-8 shrink-0 overflow-hidden rounded-full",
558
+ className
559
+ ),
560
+ ...props
561
+ }
562
+ );
563
+ }
564
+ function AvatarImage({
565
+ className,
566
+ ...props
567
+ }) {
568
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
569
+ AvatarPrimitive.Image,
570
+ {
571
+ "data-slot": "avatar-image",
572
+ className: (0, import_utils4.cn)("aspect-square size-full", className),
573
+ ...props
574
+ }
575
+ );
576
+ }
577
+ function AvatarFallback({
578
+ className,
579
+ ...props
580
+ }) {
581
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
582
+ AvatarPrimitive.Fallback,
583
+ {
584
+ "data-slot": "avatar-fallback",
585
+ className: (0, import_utils4.cn)(
586
+ "bg-muted flex size-full items-center justify-center rounded-full",
587
+ className
588
+ ),
589
+ ...props
590
+ }
591
+ );
592
+ }
593
+
594
+ // src/components/badge/index.tsx
595
+ var import_utils5 = require("@foundrykit/utils");
596
+ var import_react_slot = require("@radix-ui/react-slot");
597
+ var import_class_variance_authority2 = require("class-variance-authority");
598
+ var import_jsx_runtime6 = require("react/jsx-runtime");
599
+ var badgeVariants = (0, import_class_variance_authority2.cva)(
600
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
601
+ {
602
+ variants: {
603
+ variant: {
604
+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
605
+ secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
606
+ destructive: "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",
607
+ outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
608
+ }
609
+ },
610
+ defaultVariants: {
611
+ variant: "default"
612
+ }
613
+ }
614
+ );
615
+ function Badge({
616
+ className,
617
+ variant,
618
+ asChild = false,
619
+ ...props
620
+ }) {
621
+ const Comp = asChild ? import_react_slot.Slot : "span";
622
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
623
+ Comp,
624
+ {
625
+ "data-slot": "badge",
626
+ className: (0, import_utils5.cn)(badgeVariants({ variant }), className),
627
+ ...props
628
+ }
629
+ );
630
+ }
631
+
632
+ // src/components/breadcrumb/index.tsx
633
+ var import_utils6 = require("@foundrykit/utils");
634
+ var import_react_slot2 = require("@radix-ui/react-slot");
635
+ var import_lucide_react2 = require("lucide-react");
636
+ var import_jsx_runtime7 = require("react/jsx-runtime");
637
+ function Breadcrumb({ ...props }) {
638
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
639
+ }
640
+ function BreadcrumbList({ className, ...props }) {
641
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
642
+ "ol",
643
+ {
644
+ "data-slot": "breadcrumb-list",
645
+ className: (0, import_utils6.cn)(
646
+ "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
647
+ className
648
+ ),
649
+ ...props
650
+ }
651
+ );
652
+ }
653
+ function BreadcrumbItem({ className, ...props }) {
654
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
655
+ "li",
656
+ {
657
+ "data-slot": "breadcrumb-item",
658
+ className: (0, import_utils6.cn)("inline-flex items-center gap-1.5", className),
659
+ ...props
660
+ }
661
+ );
662
+ }
663
+ function BreadcrumbLink({
664
+ asChild,
665
+ className,
666
+ ...props
667
+ }) {
668
+ const Comp = asChild ? import_react_slot2.Slot : "a";
669
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
670
+ Comp,
671
+ {
672
+ "data-slot": "breadcrumb-link",
673
+ className: (0, import_utils6.cn)("hover:text-foreground transition-colors", className),
674
+ ...props
675
+ }
676
+ );
677
+ }
678
+ function BreadcrumbPage({ className, ...props }) {
679
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
680
+ "span",
681
+ {
682
+ "data-slot": "breadcrumb-page",
683
+ role: "link",
684
+ "aria-disabled": "true",
685
+ "aria-current": "page",
686
+ className: (0, import_utils6.cn)("text-foreground font-normal", className),
687
+ ...props
688
+ }
689
+ );
690
+ }
691
+ function BreadcrumbSeparator({
692
+ children,
693
+ className,
694
+ ...props
695
+ }) {
696
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
697
+ "li",
698
+ {
699
+ "data-slot": "breadcrumb-separator",
700
+ role: "presentation",
701
+ "aria-hidden": "true",
702
+ className: (0, import_utils6.cn)("[&>svg]:size-3.5", className),
703
+ ...props,
704
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ChevronRight, {})
705
+ }
706
+ );
707
+ }
708
+ function BreadcrumbEllipsis({
709
+ className,
710
+ ...props
711
+ }) {
712
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
713
+ "span",
714
+ {
715
+ "data-slot": "breadcrumb-ellipsis",
716
+ role: "presentation",
717
+ "aria-hidden": "true",
718
+ className: (0, import_utils6.cn)("flex size-9 items-center justify-center", className),
719
+ ...props,
720
+ children: [
721
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.MoreHorizontal, { className: "size-4" }),
722
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sr-only", children: "More" })
723
+ ]
724
+ }
725
+ );
726
+ }
727
+
728
+ // src/components/button/index.tsx
729
+ var import_utils7 = require("@foundrykit/utils");
730
+ var import_react_slot3 = require("@radix-ui/react-slot");
731
+ var import_class_variance_authority3 = require("class-variance-authority");
732
+ var import_jsx_runtime8 = require("react/jsx-runtime");
733
+ var buttonVariants = (0, import_class_variance_authority3.cva)(
734
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
735
+ {
736
+ variants: {
737
+ variant: {
738
+ default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
739
+ destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
740
+ outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
741
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
742
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
743
+ link: "text-primary underline-offset-4 hover:underline",
744
+ "inline-link": "inline align-baseline text-inherit underline underline-offset-4 hover:text-inherit",
745
+ navlink: "text-foreground hover:text-accent-foreground underline-offset-4 hover:underline"
746
+ },
747
+ size: {
748
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
749
+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
750
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
751
+ icon: "size-9"
752
+ }
753
+ },
754
+ // The link-style variants read as inline text, not a button box: strip the
755
+ // height/padding/radius that `size` would otherwise apply, across all sizes.
756
+ compoundVariants: [
757
+ {
758
+ variant: ["inline-link", "navlink"],
759
+ className: "h-auto rounded-none p-0 has-[>svg]:px-0"
760
+ }
761
+ ],
762
+ defaultVariants: {
763
+ variant: "default",
764
+ size: "default"
765
+ }
766
+ }
767
+ );
768
+ function Button({
769
+ className,
770
+ variant,
771
+ size,
772
+ asChild = false,
773
+ ...props
774
+ }) {
775
+ const Comp = asChild ? import_react_slot3.Slot : "button";
776
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
777
+ Comp,
778
+ {
779
+ "data-slot": "button",
780
+ className: (0, import_utils7.cn)(buttonVariants({ variant, size, className })),
781
+ ...props
782
+ }
783
+ );
784
+ }
785
+
786
+ // src/components/button-group/index.tsx
787
+ var import_utils9 = require("@foundrykit/utils");
788
+ var import_react_slot4 = require("@radix-ui/react-slot");
789
+ var import_class_variance_authority4 = require("class-variance-authority");
790
+
791
+ // src/components/separator/index.tsx
792
+ var import_utils8 = require("@foundrykit/utils");
793
+ var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
794
+ var import_jsx_runtime9 = require("react/jsx-runtime");
795
+ function Separator({
796
+ className,
797
+ orientation = "horizontal",
798
+ decorative = true,
799
+ ...props
800
+ }) {
801
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
802
+ SeparatorPrimitive.Root,
803
+ {
804
+ "data-slot": "separator",
805
+ decorative,
806
+ orientation,
807
+ className: (0, import_utils8.cn)(
808
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
809
+ className
810
+ ),
811
+ ...props
812
+ }
813
+ );
814
+ }
815
+
816
+ // src/components/button-group/index.tsx
817
+ var import_jsx_runtime10 = require("react/jsx-runtime");
818
+ var buttonGroupVariants = (0, import_class_variance_authority4.cva)(
819
+ "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
820
+ {
821
+ variants: {
822
+ orientation: {
823
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
824
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
825
+ }
826
+ },
827
+ defaultVariants: {
828
+ orientation: "horizontal"
829
+ }
830
+ }
831
+ );
832
+ function ButtonGroup({
833
+ className,
834
+ orientation,
835
+ ...props
836
+ }) {
837
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
838
+ "div",
839
+ {
840
+ "data-slot": "button-group",
841
+ "data-orientation": orientation,
842
+ role: "group",
843
+ className: (0, import_utils9.cn)(buttonGroupVariants({ orientation }), className),
844
+ ...props
845
+ }
846
+ );
847
+ }
848
+ function ButtonGroupText({
849
+ className,
850
+ asChild = false,
851
+ ...props
852
+ }) {
853
+ const Comp = asChild ? import_react_slot4.Slot : "div";
854
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
855
+ Comp,
856
+ {
857
+ "data-slot": "button-group-text",
858
+ className: (0, import_utils9.cn)(
859
+ "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
860
+ className
861
+ ),
862
+ ...props
863
+ }
864
+ );
865
+ }
866
+ function ButtonGroupSeparator({
867
+ className,
868
+ orientation = "vertical",
869
+ ...props
870
+ }) {
871
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
872
+ Separator,
873
+ {
874
+ "data-slot": "button-group-separator",
875
+ orientation,
876
+ className: (0, import_utils9.cn)(
877
+ "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
878
+ className
879
+ ),
880
+ ...props
881
+ }
882
+ );
883
+ }
884
+
885
+ // src/components/card/index.tsx
886
+ var import_utils10 = require("@foundrykit/utils");
887
+ var React = __toESM(require("react"), 1);
888
+ var import_jsx_runtime11 = require("react/jsx-runtime");
889
+ var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
890
+ "div",
891
+ {
892
+ ref,
893
+ className: (0, import_utils10.cn)(
894
+ "bg-card text-card-foreground rounded-xl border shadow",
895
+ className
896
+ ),
897
+ ...props
898
+ }
899
+ ));
900
+ Card.displayName = "Card";
901
+ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
902
+ "div",
903
+ {
904
+ ref,
905
+ className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
906
+ ...props
907
+ }
908
+ ));
909
+ CardHeader.displayName = "CardHeader";
910
+ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
911
+ "h3",
912
+ {
913
+ ref,
914
+ className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
915
+ ...props
916
+ }
917
+ ));
918
+ CardTitle.displayName = "CardTitle";
919
+ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
920
+ "p",
921
+ {
922
+ ref,
923
+ className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
924
+ ...props
925
+ }
926
+ ));
927
+ CardDescription.displayName = "CardDescription";
928
+ var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref, className: (0, import_utils10.cn)("p-6 pt-0", className), ...props }));
929
+ CardContent.displayName = "CardContent";
930
+ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
931
+ "div",
932
+ {
933
+ ref,
934
+ className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
935
+ ...props
936
+ }
937
+ ));
938
+ CardFooter.displayName = "CardFooter";
939
+
940
+ // src/components/checkbox/index.tsx
941
+ var import_utils11 = require("@foundrykit/utils");
942
+ var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
943
+ var import_lucide_react3 = require("lucide-react");
944
+ var import_jsx_runtime12 = require("react/jsx-runtime");
945
+ function Checkbox({
946
+ className,
947
+ ...props
948
+ }) {
949
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
950
+ CheckboxPrimitive.Root,
951
+ {
952
+ "data-slot": "checkbox",
953
+ className: (0, import_utils11.cn)(
954
+ "border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
955
+ className
956
+ ),
957
+ ...props,
958
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
959
+ CheckboxPrimitive.Indicator,
960
+ {
961
+ "data-slot": "checkbox-indicator",
962
+ className: "flex items-center justify-center text-current transition-none",
963
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react3.CheckIcon, { className: "size-3.5" })
964
+ }
965
+ )
966
+ }
967
+ );
968
+ }
969
+
970
+ // src/components/collapsible/index.tsx
971
+ var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
972
+ var import_jsx_runtime13 = require("react/jsx-runtime");
973
+ function Collapsible({
974
+ ...props
975
+ }) {
976
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
977
+ }
978
+ function CollapsibleTrigger2({
979
+ ...props
980
+ }) {
981
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
982
+ CollapsiblePrimitive.CollapsibleTrigger,
983
+ {
984
+ "data-slot": "collapsible-trigger",
985
+ ...props
986
+ }
987
+ );
988
+ }
989
+ function CollapsibleContent2({
990
+ ...props
991
+ }) {
992
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
993
+ CollapsiblePrimitive.CollapsibleContent,
994
+ {
995
+ "data-slot": "collapsible-content",
996
+ ...props
997
+ }
998
+ );
999
+ }
1000
+
1001
+ // src/components/context-menu/index.tsx
1002
+ var import_utils12 = require("@foundrykit/utils");
1003
+ var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
1004
+ var import_lucide_react4 = require("lucide-react");
1005
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1006
+ function ContextMenu({
1007
+ ...props
1008
+ }) {
1009
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
1010
+ }
1011
+ function ContextMenuTrigger({
1012
+ ...props
1013
+ }) {
1014
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
1015
+ }
1016
+ function ContextMenuGroup({
1017
+ ...props
1018
+ }) {
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
1020
+ }
1021
+ function ContextMenuPortal({
1022
+ ...props
1023
+ }) {
1024
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
1025
+ }
1026
+ function ContextMenuSub({
1027
+ ...props
1028
+ }) {
1029
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
1030
+ }
1031
+ function ContextMenuRadioGroup({
1032
+ ...props
1033
+ }) {
1034
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1035
+ ContextMenuPrimitive.RadioGroup,
1036
+ {
1037
+ "data-slot": "context-menu-radio-group",
1038
+ ...props
1039
+ }
1040
+ );
1041
+ }
1042
+ function ContextMenuSubTrigger({
1043
+ className,
1044
+ inset,
1045
+ children,
1046
+ ...props
1047
+ }) {
1048
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1049
+ ContextMenuPrimitive.SubTrigger,
1050
+ {
1051
+ "data-slot": "context-menu-sub-trigger",
1052
+ "data-inset": inset,
1053
+ className: (0, import_utils12.cn)(
1054
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1055
+ className
1056
+ ),
1057
+ ...props,
1058
+ children: [
1059
+ children,
1060
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.ChevronRightIcon, { className: "ml-auto size-4" })
1061
+ ]
1062
+ }
1063
+ );
1064
+ }
1065
+ function ContextMenuSubContent({
1066
+ className,
1067
+ ...props
1068
+ }) {
1069
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1070
+ ContextMenuPrimitive.SubContent,
1071
+ {
1072
+ "data-slot": "context-menu-sub-content",
1073
+ className: (0, import_utils12.cn)(
1074
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1075
+ className
1076
+ ),
1077
+ ...props
1078
+ }
1079
+ );
1080
+ }
1081
+ function ContextMenuContent({
1082
+ className,
1083
+ ...props
1084
+ }) {
1085
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1086
+ ContextMenuPrimitive.Content,
1087
+ {
1088
+ "data-slot": "context-menu-content",
1089
+ className: (0, import_utils12.cn)(
1090
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1091
+ className
1092
+ ),
1093
+ ...props
1094
+ }
1095
+ ) });
1096
+ }
1097
+ function ContextMenuItem({
1098
+ className,
1099
+ inset,
1100
+ variant = "default",
1101
+ ...props
1102
+ }) {
1103
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1104
+ ContextMenuPrimitive.Item,
1105
+ {
1106
+ "data-slot": "context-menu-item",
1107
+ "data-inset": inset,
1108
+ "data-variant": variant,
1109
+ className: (0, import_utils12.cn)(
1110
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1111
+ className
1112
+ ),
1113
+ ...props
1114
+ }
1115
+ );
1116
+ }
1117
+ function ContextMenuCheckboxItem({
1118
+ className,
1119
+ children,
1120
+ checked,
1121
+ ...props
1122
+ }) {
1123
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1124
+ ContextMenuPrimitive.CheckboxItem,
1125
+ {
1126
+ "data-slot": "context-menu-checkbox-item",
1127
+ className: (0, import_utils12.cn)(
1128
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1129
+ className
1130
+ ),
1131
+ checked,
1132
+ ...props,
1133
+ children: [
1134
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
1135
+ children
1136
+ ]
1137
+ }
1138
+ );
1139
+ }
1140
+ function ContextMenuRadioItem({
1141
+ className,
1142
+ children,
1143
+ ...props
1144
+ }) {
1145
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1146
+ ContextMenuPrimitive.RadioItem,
1147
+ {
1148
+ "data-slot": "context-menu-radio-item",
1149
+ className: (0, import_utils12.cn)(
1150
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1151
+ className
1152
+ ),
1153
+ ...props,
1154
+ children: [
1155
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.CircleIcon, { className: "size-2 fill-current" }) }) }),
1156
+ children
1157
+ ]
1158
+ }
1159
+ );
1160
+ }
1161
+ function ContextMenuLabel({
1162
+ className,
1163
+ inset,
1164
+ ...props
1165
+ }) {
1166
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1167
+ ContextMenuPrimitive.Label,
1168
+ {
1169
+ "data-slot": "context-menu-label",
1170
+ "data-inset": inset,
1171
+ className: (0, import_utils12.cn)(
1172
+ "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
1173
+ className
1174
+ ),
1175
+ ...props
1176
+ }
1177
+ );
1178
+ }
1179
+ function ContextMenuSeparator({
1180
+ className,
1181
+ ...props
1182
+ }) {
1183
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1184
+ ContextMenuPrimitive.Separator,
1185
+ {
1186
+ "data-slot": "context-menu-separator",
1187
+ className: (0, import_utils12.cn)("bg-border -mx-1 my-1 h-px", className),
1188
+ ...props
1189
+ }
1190
+ );
1191
+ }
1192
+ function ContextMenuShortcut({
1193
+ className,
1194
+ ...props
1195
+ }) {
1196
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1197
+ "span",
1198
+ {
1199
+ "data-slot": "context-menu-shortcut",
1200
+ className: (0, import_utils12.cn)(
1201
+ "text-muted-foreground ml-auto text-xs tracking-widest",
1202
+ className
1203
+ ),
1204
+ ...props
1205
+ }
1206
+ );
1207
+ }
1208
+
1209
+ // src/components/dialog/index.tsx
1210
+ var import_utils13 = require("@foundrykit/utils");
1211
+ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1212
+ var import_lucide_react5 = require("lucide-react");
1213
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1214
+ function Dialog({
1215
+ ...props
1216
+ }) {
1217
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
1218
+ }
1219
+ function DialogTrigger({
1220
+ ...props
1221
+ }) {
1222
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
1223
+ }
1224
+ function DialogPortal({
1225
+ ...props
1226
+ }) {
1227
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
1228
+ }
1229
+ function DialogClose({
1230
+ ...props
1231
+ }) {
1232
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
1233
+ }
1234
+ function DialogOverlay({
1235
+ className,
1236
+ ...props
1237
+ }) {
1238
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1239
+ DialogPrimitive.Overlay,
1240
+ {
1241
+ "data-slot": "dialog-overlay",
1242
+ className: (0, import_utils13.cn)(
1243
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1244
+ className
1245
+ ),
1246
+ ...props
1247
+ }
1248
+ );
1249
+ }
1250
+ function DialogContent({
1251
+ className,
1252
+ children,
1253
+ showCloseButton = true,
1254
+ ...props
1255
+ }) {
1256
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
1257
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogOverlay, {}),
1258
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1259
+ DialogPrimitive.Content,
1260
+ {
1261
+ "data-slot": "dialog-content",
1262
+ className: (0, import_utils13.cn)(
1263
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1264
+ className
1265
+ ),
1266
+ ...props,
1267
+ children: [
1268
+ children,
1269
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1270
+ DialogPrimitive.Close,
1271
+ {
1272
+ "data-slot": "dialog-close",
1273
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1274
+ children: [
1275
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.XIcon, {}),
1276
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: "Close" })
1277
+ ]
1278
+ }
1279
+ )
1280
+ ]
1281
+ }
1282
+ )
1283
+ ] });
1284
+ }
1285
+ function DialogHeader({ className, ...props }) {
1286
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1287
+ "div",
1288
+ {
1289
+ "data-slot": "dialog-header",
1290
+ className: (0, import_utils13.cn)("flex flex-col gap-2 text-center sm:text-left", className),
1291
+ ...props
1292
+ }
1293
+ );
1294
+ }
1295
+ function DialogFooter({ className, ...props }) {
1296
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1297
+ "div",
1298
+ {
1299
+ "data-slot": "dialog-footer",
1300
+ className: (0, import_utils13.cn)(
1301
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1302
+ className
1303
+ ),
1304
+ ...props
1305
+ }
1306
+ );
1307
+ }
1308
+ function DialogTitle({
1309
+ className,
1310
+ ...props
1311
+ }) {
1312
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1313
+ DialogPrimitive.Title,
1314
+ {
1315
+ "data-slot": "dialog-title",
1316
+ className: (0, import_utils13.cn)("text-lg leading-none font-semibold", className),
1317
+ ...props
1318
+ }
1319
+ );
1320
+ }
1321
+ function DialogDescription({
1322
+ className,
1323
+ ...props
1324
+ }) {
1325
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1326
+ DialogPrimitive.Description,
1327
+ {
1328
+ "data-slot": "dialog-description",
1329
+ className: (0, import_utils13.cn)("text-muted-foreground text-sm", className),
1330
+ ...props
1331
+ }
1332
+ );
1333
+ }
1334
+
1335
+ // src/components/direction/index.tsx
1336
+ var import_react_direction = require("@radix-ui/react-direction");
1337
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1338
+ function DirectionProvider({
1339
+ ...props
1340
+ }) {
1341
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_direction.DirectionProvider, { ...props });
1342
+ }
1343
+
1344
+ // src/components/drawer/index.tsx
1345
+ var import_utils14 = require("@foundrykit/utils");
1346
+ var import_vaul = require("vaul");
1347
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1348
+ function Drawer({
1349
+ ...props
1350
+ }) {
1351
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Root, { "data-slot": "drawer", ...props });
1352
+ }
1353
+ function DrawerTrigger({
1354
+ ...props
1355
+ }) {
1356
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
1357
+ }
1358
+ function DrawerPortal({
1359
+ ...props
1360
+ }) {
1361
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
1362
+ }
1363
+ function DrawerClose({
1364
+ ...props
1365
+ }) {
1366
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
1367
+ }
1368
+ function DrawerOverlay({
1369
+ className,
1370
+ ...props
1371
+ }) {
1372
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1373
+ import_vaul.Drawer.Overlay,
1374
+ {
1375
+ "data-slot": "drawer-overlay",
1376
+ className: (0, import_utils14.cn)(
1377
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1378
+ className
1379
+ ),
1380
+ ...props
1381
+ }
1382
+ );
1383
+ }
1384
+ function DrawerContent({
1385
+ className,
1386
+ children,
1387
+ ...props
1388
+ }) {
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DrawerPortal, { children: [
1390
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerOverlay, {}),
1391
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1392
+ import_vaul.Drawer.Content,
1393
+ {
1394
+ "data-slot": "drawer-content",
1395
+ className: (0, import_utils14.cn)(
1396
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
1397
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
1398
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
1399
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
1400
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
1401
+ className
1402
+ ),
1403
+ ...props,
1404
+ children: [
1405
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
1406
+ children
1407
+ ]
1408
+ }
1409
+ )
1410
+ ] });
1411
+ }
1412
+ function DrawerHeader({ className, ...props }) {
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1414
+ "div",
1415
+ {
1416
+ "data-slot": "drawer-header",
1417
+ className: (0, import_utils14.cn)(
1418
+ "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
1419
+ className
1420
+ ),
1421
+ ...props
1422
+ }
1423
+ );
1424
+ }
1425
+ function DrawerFooter({ className, ...props }) {
1426
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1427
+ "div",
1428
+ {
1429
+ "data-slot": "drawer-footer",
1430
+ className: (0, import_utils14.cn)("mt-auto flex flex-col gap-2 p-4", className),
1431
+ ...props
1432
+ }
1433
+ );
1434
+ }
1435
+ function DrawerTitle({
1436
+ className,
1437
+ ...props
1438
+ }) {
1439
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1440
+ import_vaul.Drawer.Title,
1441
+ {
1442
+ "data-slot": "drawer-title",
1443
+ className: (0, import_utils14.cn)("text-foreground font-semibold", className),
1444
+ ...props
1445
+ }
1446
+ );
1447
+ }
1448
+ function DrawerDescription({
1449
+ className,
1450
+ ...props
1451
+ }) {
1452
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1453
+ import_vaul.Drawer.Description,
1454
+ {
1455
+ "data-slot": "drawer-description",
1456
+ className: (0, import_utils14.cn)("text-muted-foreground text-sm", className),
1457
+ ...props
1458
+ }
1459
+ );
1460
+ }
1461
+
1462
+ // src/components/dropdown/index.tsx
1463
+ var import_utils15 = require("@foundrykit/utils");
1464
+ var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
1465
+ var import_lucide_react6 = require("lucide-react");
1466
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1467
+ function DropdownMenu({
1468
+ ...props
1469
+ }) {
1470
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1471
+ }
1472
+ function DropdownMenuPortal({
1473
+ ...props
1474
+ }) {
1475
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
1476
+ }
1477
+ function DropdownMenuTrigger({
1478
+ ...props
1479
+ }) {
1480
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1481
+ DropdownMenuPrimitive.Trigger,
1482
+ {
1483
+ "data-slot": "dropdown-menu-trigger",
1484
+ ...props
1485
+ }
1486
+ );
1487
+ }
1488
+ function DropdownMenuContent({
1489
+ className,
1490
+ sideOffset = 4,
1491
+ ...props
1492
+ }) {
1493
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1494
+ DropdownMenuPrimitive.Content,
1495
+ {
1496
+ "data-slot": "dropdown-menu-content",
1497
+ sideOffset,
1498
+ className: (0, import_utils15.cn)(
1499
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1500
+ className
1501
+ ),
1502
+ ...props
1503
+ }
1504
+ ) });
1505
+ }
1506
+ function DropdownMenuGroup({
1507
+ ...props
1508
+ }) {
1509
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
1510
+ }
1511
+ function DropdownMenuItem({
1512
+ className,
1513
+ inset,
1514
+ variant = "default",
1515
+ ...props
1516
+ }) {
1517
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1518
+ DropdownMenuPrimitive.Item,
1519
+ {
1520
+ "data-slot": "dropdown-menu-item",
1521
+ "data-inset": inset,
1522
+ "data-variant": variant,
1523
+ className: (0, import_utils15.cn)(
1524
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1525
+ className
1526
+ ),
1527
+ ...props
1528
+ }
1529
+ );
1530
+ }
1531
+ function DropdownMenuCheckboxItem({
1532
+ className,
1533
+ children,
1534
+ checked,
1535
+ ...props
1536
+ }) {
1537
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1538
+ DropdownMenuPrimitive.CheckboxItem,
1539
+ {
1540
+ "data-slot": "dropdown-menu-checkbox-item",
1541
+ className: (0, import_utils15.cn)(
1542
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1543
+ className
1544
+ ),
1545
+ checked,
1546
+ ...props,
1547
+ children: [
1548
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.CheckIcon, { className: "size-4" }) }) }),
1549
+ children
1550
+ ]
1551
+ }
1552
+ );
1553
+ }
1554
+ function DropdownMenuRadioGroup({
1555
+ ...props
1556
+ }) {
1557
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1558
+ DropdownMenuPrimitive.RadioGroup,
1559
+ {
1560
+ "data-slot": "dropdown-menu-radio-group",
1561
+ ...props
1562
+ }
1563
+ );
1564
+ }
1565
+ function DropdownMenuRadioItem({
1566
+ className,
1567
+ children,
1568
+ ...props
1569
+ }) {
1570
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1571
+ DropdownMenuPrimitive.RadioItem,
1572
+ {
1573
+ "data-slot": "dropdown-menu-radio-item",
1574
+ className: (0, import_utils15.cn)(
1575
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1576
+ className
1577
+ ),
1578
+ ...props,
1579
+ children: [
1580
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.CircleIcon, { className: "size-2 fill-current" }) }) }),
1581
+ children
1582
+ ]
1583
+ }
1584
+ );
1585
+ }
1586
+ function DropdownMenuLabel({
1587
+ className,
1588
+ inset,
1589
+ ...props
1590
+ }) {
1591
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1592
+ DropdownMenuPrimitive.Label,
1593
+ {
1594
+ "data-slot": "dropdown-menu-label",
1595
+ "data-inset": inset,
1596
+ className: (0, import_utils15.cn)(
1597
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
1598
+ className
1599
+ ),
1600
+ ...props
1601
+ }
1602
+ );
1603
+ }
1604
+ function DropdownMenuSeparator({
1605
+ className,
1606
+ ...props
1607
+ }) {
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1609
+ DropdownMenuPrimitive.Separator,
1610
+ {
1611
+ "data-slot": "dropdown-menu-separator",
1612
+ className: (0, import_utils15.cn)("bg-border -mx-1 my-1 h-px", className),
1613
+ ...props
1614
+ }
1615
+ );
1616
+ }
1617
+ function DropdownMenuShortcut({
1618
+ className,
1619
+ ...props
1620
+ }) {
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1622
+ "span",
1623
+ {
1624
+ "data-slot": "dropdown-menu-shortcut",
1625
+ className: (0, import_utils15.cn)(
1626
+ "text-muted-foreground ml-auto text-xs tracking-widest",
1627
+ className
1628
+ ),
1629
+ ...props
1630
+ }
1631
+ );
1632
+ }
1633
+ function DropdownMenuSub({
1634
+ ...props
1635
+ }) {
1636
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
1637
+ }
1638
+ function DropdownMenuSubTrigger({
1639
+ className,
1640
+ inset,
1641
+ children,
1642
+ ...props
1643
+ }) {
1644
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1645
+ DropdownMenuPrimitive.SubTrigger,
1646
+ {
1647
+ "data-slot": "dropdown-menu-sub-trigger",
1648
+ "data-inset": inset,
1649
+ className: (0, import_utils15.cn)(
1650
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
1651
+ className
1652
+ ),
1653
+ ...props,
1654
+ children: [
1655
+ children,
1656
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.ChevronRightIcon, { className: "ml-auto size-4" })
1657
+ ]
1658
+ }
1659
+ );
1660
+ }
1661
+ function DropdownMenuSubContent({
1662
+ className,
1663
+ ...props
1664
+ }) {
1665
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1666
+ DropdownMenuPrimitive.SubContent,
1667
+ {
1668
+ "data-slot": "dropdown-menu-sub-content",
1669
+ className: (0, import_utils15.cn)(
1670
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1671
+ className
1672
+ ),
1673
+ ...props
1674
+ }
1675
+ );
1676
+ }
1677
+
1678
+ // src/components/empty/index.tsx
1679
+ var import_utils16 = require("@foundrykit/utils");
1680
+ var import_class_variance_authority5 = require("class-variance-authority");
1681
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1682
+ function Empty({ className, ...props }) {
1683
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1684
+ "div",
1685
+ {
1686
+ "data-slot": "empty",
1687
+ className: (0, import_utils16.cn)(
1688
+ "flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",
1689
+ className
1690
+ ),
1691
+ ...props
1692
+ }
1693
+ );
1694
+ }
1695
+ function EmptyHeader({ className, ...props }) {
1696
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1697
+ "div",
1698
+ {
1699
+ "data-slot": "empty-header",
1700
+ className: (0, import_utils16.cn)(
1701
+ "flex max-w-sm flex-col items-center gap-2 text-center",
1702
+ className
1703
+ ),
1704
+ ...props
1705
+ }
1706
+ );
1707
+ }
1708
+ var emptyMediaVariants = (0, import_class_variance_authority5.cva)(
1709
+ "mb-2 flex shrink-0 items-center justify-center [&_svg:not([class*=size-])]:size-6",
1710
+ {
1711
+ variants: {
1712
+ variant: {
1713
+ default: "bg-transparent",
1714
+ icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-6"
1715
+ }
1716
+ },
1717
+ defaultVariants: {
1718
+ variant: "default"
1719
+ }
1720
+ }
1721
+ );
1722
+ function EmptyMedia({
1723
+ className,
1724
+ variant,
1725
+ ...props
1726
+ }) {
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1728
+ "div",
1729
+ {
1730
+ "data-slot": "empty-media",
1731
+ "data-variant": variant,
1732
+ className: (0, import_utils16.cn)(emptyMediaVariants({ variant }), className),
1733
+ ...props
1734
+ }
1735
+ );
1736
+ }
1737
+ function EmptyTitle({ className, ...props }) {
1738
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1739
+ "div",
1740
+ {
1741
+ "data-slot": "empty-title",
1742
+ className: (0, import_utils16.cn)("text-lg font-medium tracking-tight", className),
1743
+ ...props
1744
+ }
1745
+ );
1746
+ }
1747
+ function EmptyDescription({ className, ...props }) {
1748
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1749
+ "p",
1750
+ {
1751
+ "data-slot": "empty-description",
1752
+ className: (0, import_utils16.cn)(
1753
+ "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
1754
+ className
1755
+ ),
1756
+ ...props
1757
+ }
1758
+ );
1759
+ }
1760
+ function EmptyContent({ className, ...props }) {
1761
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1762
+ "div",
1763
+ {
1764
+ "data-slot": "empty-content",
1765
+ className: (0, import_utils16.cn)(
1766
+ "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
1767
+ className
1768
+ ),
1769
+ ...props
1770
+ }
1771
+ );
1772
+ }
1773
+
1774
+ // src/components/field/index.tsx
1775
+ var import_utils17 = require("@foundrykit/utils");
1776
+ var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
1777
+ var import_class_variance_authority6 = require("class-variance-authority");
1778
+ var React2 = __toESM(require("react"), 1);
1779
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1780
+ var fieldVariants = (0, import_class_variance_authority6.cva)(
1781
+ "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
1782
+ {
1783
+ variants: {
1784
+ orientation: {
1785
+ vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
1786
+ horizontal: [
1787
+ "flex-row items-center",
1788
+ "[&>[data-slot=field-label]]:flex-auto",
1789
+ "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox]]:mt-px has-[>[data-slot=field-content]]:[&>[role=radio]]:mt-px"
1790
+ ],
1791
+ responsive: [
1792
+ "flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
1793
+ "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
1794
+ "@md/field-group:has-[>[data-slot=field-content]]:items-start"
1795
+ ]
1796
+ }
1797
+ },
1798
+ defaultVariants: {
1799
+ orientation: "vertical"
1800
+ }
1801
+ }
1802
+ );
1803
+ function Field({
1804
+ className,
1805
+ orientation = "vertical",
1806
+ ...props
1807
+ }) {
1808
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1809
+ "div",
1810
+ {
1811
+ role: "group",
1812
+ "data-slot": "field",
1813
+ "data-orientation": orientation,
1814
+ className: (0, import_utils17.cn)(fieldVariants({ orientation }), className),
1815
+ ...props
1816
+ }
1817
+ );
1818
+ }
1819
+ function FieldSet({ className, ...props }) {
1820
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1821
+ "fieldset",
1822
+ {
1823
+ "data-slot": "field-set",
1824
+ className: (0, import_utils17.cn)(
1825
+ "flex flex-col gap-6",
1826
+ "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
1827
+ className
1828
+ ),
1829
+ ...props
1830
+ }
1831
+ );
1832
+ }
1833
+ function FieldLegend({
1834
+ className,
1835
+ variant = "legend",
1836
+ ...props
1837
+ }) {
1838
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1839
+ "legend",
1840
+ {
1841
+ "data-slot": "field-legend",
1842
+ "data-variant": variant,
1843
+ className: (0, import_utils17.cn)(
1844
+ "mb-3 font-medium",
1845
+ "data-[variant=legend]:text-base",
1846
+ "data-[variant=label]:text-sm",
1847
+ className
1848
+ ),
1849
+ ...props
1850
+ }
1851
+ );
1852
+ }
1853
+ function FieldGroup({ className, ...props }) {
1854
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1855
+ "div",
1856
+ {
1857
+ "data-slot": "field-group",
1858
+ className: (0, import_utils17.cn)(
1859
+ "group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
1860
+ className
1861
+ ),
1862
+ ...props
1863
+ }
1864
+ );
1865
+ }
1866
+ function FieldContent({ className, ...props }) {
1867
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1868
+ "div",
1869
+ {
1870
+ "data-slot": "field-content",
1871
+ className: (0, import_utils17.cn)(
1872
+ "group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
1873
+ className
1874
+ ),
1875
+ ...props
150
1876
  }
151
- }
152
- );
153
- function Button({
1877
+ );
1878
+ }
1879
+ function FieldLabel({
154
1880
  className,
155
- variant,
156
- size,
157
- asChild = false,
158
1881
  ...props
159
1882
  }) {
160
- const Comp = asChild ? import_react_slot.Slot : "button";
161
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
- Comp,
1883
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1884
+ LabelPrimitive.Root,
163
1885
  {
164
- "data-slot": "button",
165
- className: (0, import_utils.cn)(buttonVariants({ variant, size, className })),
1886
+ "data-slot": "field-label",
1887
+ className: (0, import_utils17.cn)(
1888
+ "group/field-label peer/field-label flex w-fit gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
1889
+ "has-[[data-slot=field]]:w-full has-[[data-slot=field]]:flex-col has-[[data-slot=field]]:rounded-md has-[[data-slot=field]]:border",
1890
+ className
1891
+ ),
1892
+ ...props
1893
+ }
1894
+ );
1895
+ }
1896
+ function FieldTitle({ className, ...props }) {
1897
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1898
+ "div",
1899
+ {
1900
+ "data-slot": "field-title",
1901
+ className: (0, import_utils17.cn)(
1902
+ "flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
1903
+ className
1904
+ ),
1905
+ ...props
1906
+ }
1907
+ );
1908
+ }
1909
+ function FieldDescription({ className, ...props }) {
1910
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1911
+ "p",
1912
+ {
1913
+ "data-slot": "field-description",
1914
+ className: (0, import_utils17.cn)(
1915
+ "text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
1916
+ "last:mt-0 [[data-variant=legend]+&]:-mt-1.5",
1917
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
1918
+ className
1919
+ ),
166
1920
  ...props
167
1921
  }
168
1922
  );
169
1923
  }
1924
+ function FieldSeparator({
1925
+ children,
1926
+ className,
1927
+ ...props
1928
+ }) {
1929
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1930
+ "div",
1931
+ {
1932
+ "data-slot": "field-separator",
1933
+ "data-content": !!children,
1934
+ className: (0, import_utils17.cn)("relative -my-2 h-5 text-sm", className),
1935
+ ...props,
1936
+ children: [
1937
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "bg-border absolute inset-0 top-1/2 h-px" }),
1938
+ children && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1939
+ "span",
1940
+ {
1941
+ className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
1942
+ "data-slot": "field-separator-content",
1943
+ children
1944
+ }
1945
+ )
1946
+ ]
1947
+ }
1948
+ );
1949
+ }
1950
+ function FieldError({
1951
+ className,
1952
+ children,
1953
+ errors,
1954
+ ...props
1955
+ }) {
1956
+ const content = React2.useMemo(() => {
1957
+ if (children) {
1958
+ return children;
1959
+ }
1960
+ if (!errors) {
1961
+ return null;
1962
+ }
1963
+ if (errors.length === 1 && errors[0]?.message) {
1964
+ return errors[0].message;
1965
+ }
1966
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
1967
+ (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { children: error.message }, index)
1968
+ ) });
1969
+ }, [children, errors]);
1970
+ if (!content) {
1971
+ return null;
1972
+ }
1973
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1974
+ "div",
1975
+ {
1976
+ role: "alert",
1977
+ "data-slot": "field-error",
1978
+ className: (0, import_utils17.cn)("text-destructive text-sm font-normal", className),
1979
+ ...props,
1980
+ children: content
1981
+ }
1982
+ );
1983
+ }
1984
+
1985
+ // src/components/hover-card/index.tsx
1986
+ var import_utils18 = require("@foundrykit/utils");
1987
+ var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
1988
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1989
+ function HoverCard({
1990
+ ...props
1991
+ }) {
1992
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
1993
+ }
1994
+ function HoverCardTrigger({
1995
+ ...props
1996
+ }) {
1997
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
1998
+ }
1999
+ function HoverCardContent({
2000
+ className,
2001
+ align = "center",
2002
+ sideOffset = 4,
2003
+ ...props
2004
+ }) {
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2006
+ HoverCardPrimitive.Content,
2007
+ {
2008
+ "data-slot": "hover-card-content",
2009
+ align,
2010
+ sideOffset,
2011
+ className: (0, import_utils18.cn)(
2012
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2013
+ className
2014
+ ),
2015
+ ...props
2016
+ }
2017
+ ) });
2018
+ }
170
2019
 
171
2020
  // src/components/input/index.tsx
172
- var React = __toESM(require("react"), 1);
173
- var import_utils2 = require("@foundrykit/utils");
174
- var import_jsx_runtime2 = require("react/jsx-runtime");
175
- var Input = React.forwardRef(
2021
+ var import_utils19 = require("@foundrykit/utils");
2022
+ var React3 = __toESM(require("react"), 1);
2023
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2024
+ var Input = React3.forwardRef(
176
2025
  ({ className, type, ...props }, ref) => {
177
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2026
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
178
2027
  "input",
179
2028
  {
180
2029
  type,
181
- className: (0, import_utils2.cn)(
182
- "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
2030
+ className: (0, import_utils19.cn)(
2031
+ "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
183
2032
  className
184
2033
  ),
185
2034
  ref,
@@ -190,572 +2039,886 @@ var Input = React.forwardRef(
190
2039
  );
191
2040
  Input.displayName = "Input";
192
2041
 
193
- // src/components/badge/index.tsx
194
- var import_react_slot2 = require("@radix-ui/react-slot");
195
- var import_class_variance_authority2 = require("class-variance-authority");
196
- var import_utils3 = require("@foundrykit/utils");
197
- var import_jsx_runtime3 = require("react/jsx-runtime");
198
- var badgeVariants = (0, import_class_variance_authority2.cva)(
199
- "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
2042
+ // src/components/item/index.tsx
2043
+ var import_utils20 = require("@foundrykit/utils");
2044
+ var import_react_slot5 = require("@radix-ui/react-slot");
2045
+ var import_class_variance_authority7 = require("class-variance-authority");
2046
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2047
+ function ItemGroup({ className, ...props }) {
2048
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2049
+ "div",
2050
+ {
2051
+ role: "list",
2052
+ "data-slot": "item-group",
2053
+ className: (0, import_utils20.cn)("group/item-group flex flex-col", className),
2054
+ ...props
2055
+ }
2056
+ );
2057
+ }
2058
+ function ItemSeparator({
2059
+ className,
2060
+ ...props
2061
+ }) {
2062
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2063
+ Separator,
2064
+ {
2065
+ "data-slot": "item-separator",
2066
+ orientation: "horizontal",
2067
+ className: (0, import_utils20.cn)("my-0", className),
2068
+ ...props
2069
+ }
2070
+ );
2071
+ }
2072
+ var itemVariants = (0, import_class_variance_authority7.cva)(
2073
+ "group/item focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-accent/50 flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors",
200
2074
  {
201
2075
  variants: {
202
2076
  variant: {
203
- default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
204
- secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
205
- destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
206
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
2077
+ default: "bg-transparent",
2078
+ outline: "border-border",
2079
+ muted: "bg-muted/50"
2080
+ },
2081
+ size: {
2082
+ default: "gap-4 p-4",
2083
+ sm: "gap-2.5 px-4 py-3"
207
2084
  }
208
2085
  },
209
2086
  defaultVariants: {
210
- variant: "default"
2087
+ variant: "default",
2088
+ size: "default"
211
2089
  }
212
2090
  }
213
2091
  );
214
- function Badge({
2092
+ function Item4({
215
2093
  className,
216
2094
  variant,
2095
+ size,
217
2096
  asChild = false,
218
2097
  ...props
219
2098
  }) {
220
- const Comp = asChild ? import_react_slot2.Slot : "span";
221
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2099
+ const Comp = asChild ? import_react_slot5.Slot : "div";
2100
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
222
2101
  Comp,
223
2102
  {
224
- "data-slot": "badge",
225
- className: (0, import_utils3.cn)(badgeVariants({ variant }), className),
2103
+ "data-slot": "item",
2104
+ "data-variant": variant,
2105
+ "data-size": size,
2106
+ className: (0, import_utils20.cn)(itemVariants({ variant, size, className })),
226
2107
  ...props
227
2108
  }
228
2109
  );
229
2110
  }
230
-
231
- // src/components/toggle/index.tsx
232
- var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
233
- var import_class_variance_authority3 = require("class-variance-authority");
234
- var import_utils4 = require("@foundrykit/utils");
235
- var import_jsx_runtime4 = require("react/jsx-runtime");
236
- var toggleVariants = (0, import_class_variance_authority3.cva)(
237
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
2111
+ var itemMediaVariants = (0, import_class_variance_authority7.cva)(
2112
+ "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
238
2113
  {
239
2114
  variants: {
240
2115
  variant: {
241
2116
  default: "bg-transparent",
242
- outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
243
- },
244
- size: {
245
- default: "h-9 px-2 min-w-9",
246
- sm: "h-8 px-1.5 min-w-8",
247
- lg: "h-10 px-2.5 min-w-10"
2117
+ icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
2118
+ image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
248
2119
  }
249
2120
  },
250
2121
  defaultVariants: {
251
- variant: "default",
252
- size: "default"
2122
+ variant: "default"
253
2123
  }
254
2124
  }
255
2125
  );
256
- function Toggle({
2126
+ function ItemMedia({
257
2127
  className,
258
2128
  variant,
259
- size,
260
2129
  ...props
261
2130
  }) {
262
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
263
- TogglePrimitive.Root,
2131
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2132
+ "div",
264
2133
  {
265
- "data-slot": "toggle",
266
- className: (0, import_utils4.cn)(toggleVariants({ variant, size, className })),
2134
+ "data-slot": "item-media",
2135
+ "data-variant": variant,
2136
+ className: (0, import_utils20.cn)(itemMediaVariants({ variant, className })),
2137
+ ...props
2138
+ }
2139
+ );
2140
+ }
2141
+ function ItemContent({ className, ...props }) {
2142
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2143
+ "div",
2144
+ {
2145
+ "data-slot": "item-content",
2146
+ className: (0, import_utils20.cn)(
2147
+ "flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",
2148
+ className
2149
+ ),
2150
+ ...props
2151
+ }
2152
+ );
2153
+ }
2154
+ function ItemTitle({ className, ...props }) {
2155
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2156
+ "div",
2157
+ {
2158
+ "data-slot": "item-title",
2159
+ className: (0, import_utils20.cn)(
2160
+ "flex w-fit items-center gap-2 text-sm leading-snug font-medium",
2161
+ className
2162
+ ),
2163
+ ...props
2164
+ }
2165
+ );
2166
+ }
2167
+ function ItemDescription({ className, ...props }) {
2168
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2169
+ "p",
2170
+ {
2171
+ "data-slot": "item-description",
2172
+ className: (0, import_utils20.cn)(
2173
+ "text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
2174
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
2175
+ className
2176
+ ),
2177
+ ...props
2178
+ }
2179
+ );
2180
+ }
2181
+ function ItemActions({ className, ...props }) {
2182
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2183
+ "div",
2184
+ {
2185
+ "data-slot": "item-actions",
2186
+ className: (0, import_utils20.cn)("flex items-center gap-2", className),
2187
+ ...props
2188
+ }
2189
+ );
2190
+ }
2191
+ function ItemHeader({ className, ...props }) {
2192
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2193
+ "div",
2194
+ {
2195
+ "data-slot": "item-header",
2196
+ className: (0, import_utils20.cn)(
2197
+ "flex basis-full items-center justify-between gap-2",
2198
+ className
2199
+ ),
2200
+ ...props
2201
+ }
2202
+ );
2203
+ }
2204
+ function ItemFooter({ className, ...props }) {
2205
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2206
+ "div",
2207
+ {
2208
+ "data-slot": "item-footer",
2209
+ className: (0, import_utils20.cn)(
2210
+ "flex basis-full items-center justify-between gap-2",
2211
+ className
2212
+ ),
267
2213
  ...props
268
2214
  }
269
2215
  );
270
2216
  }
271
2217
 
272
- // src/components/card/index.tsx
273
- var React2 = __toESM(require("react"), 1);
274
- var import_utils5 = require("@foundrykit/utils");
275
- var import_jsx_runtime5 = require("react/jsx-runtime");
276
- var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
277
- "div",
278
- {
279
- ref,
280
- className: (0, import_utils5.cn)(
281
- "bg-card text-card-foreground rounded-xl border shadow",
282
- className
283
- ),
284
- ...props
285
- }
286
- ));
287
- Card.displayName = "Card";
288
- var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
289
- "div",
290
- {
291
- ref,
292
- className: (0, import_utils5.cn)("flex flex-col space-y-1.5 p-6", className),
293
- ...props
294
- }
295
- ));
296
- CardHeader.displayName = "CardHeader";
297
- var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
298
- "h3",
299
- {
300
- ref,
301
- className: (0, import_utils5.cn)("font-semibold leading-none tracking-tight", className),
302
- ...props
303
- }
304
- ));
305
- CardTitle.displayName = "CardTitle";
306
- var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
307
- "p",
308
- {
309
- ref,
310
- className: (0, import_utils5.cn)("text-muted-foreground text-sm", className),
311
- ...props
312
- }
313
- ));
314
- CardDescription.displayName = "CardDescription";
315
- var CardContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref, className: (0, import_utils5.cn)("p-6 pt-0", className), ...props }));
316
- CardContent.displayName = "CardContent";
317
- var CardFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
318
- "div",
319
- {
320
- ref,
321
- className: (0, import_utils5.cn)("flex items-center p-6 pt-0", className),
322
- ...props
323
- }
324
- ));
325
- CardFooter.displayName = "CardFooter";
326
-
327
- // src/components/avatar/index.tsx
328
- var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
329
- var import_utils6 = require("@foundrykit/utils");
330
- var import_jsx_runtime6 = require("react/jsx-runtime");
331
- function Avatar({
2218
+ // src/components/kbd/index.tsx
2219
+ var import_utils21 = require("@foundrykit/utils");
2220
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2221
+ function Kbd({ className, ...props }) {
2222
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2223
+ "kbd",
2224
+ {
2225
+ "data-slot": "kbd",
2226
+ className: (0, import_utils21.cn)(
2227
+ "bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [&_svg:not([class*='size-'])]:size-3",
2228
+ "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
2229
+ className
2230
+ ),
2231
+ ...props
2232
+ }
2233
+ );
2234
+ }
2235
+ function KbdGroup({ className, ...props }) {
2236
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2237
+ "kbd",
2238
+ {
2239
+ "data-slot": "kbd-group",
2240
+ className: (0, import_utils21.cn)("inline-flex items-center gap-1", className),
2241
+ ...props
2242
+ }
2243
+ );
2244
+ }
2245
+
2246
+ // src/components/label/index.tsx
2247
+ var import_utils22 = require("@foundrykit/utils");
2248
+ var LabelPrimitive2 = __toESM(require("@radix-ui/react-label"), 1);
2249
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2250
+ function Label3({
332
2251
  className,
333
2252
  ...props
334
2253
  }) {
335
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
336
- AvatarPrimitive.Root,
2254
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2255
+ LabelPrimitive2.Root,
337
2256
  {
338
- "data-slot": "avatar",
339
- className: (0, import_utils6.cn)(
340
- "relative flex size-8 shrink-0 overflow-hidden rounded-full",
2257
+ "data-slot": "label",
2258
+ className: (0, import_utils22.cn)(
2259
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
341
2260
  className
342
2261
  ),
343
2262
  ...props
344
2263
  }
345
2264
  );
346
2265
  }
347
- function AvatarImage({
2266
+
2267
+ // src/components/menubar/index.tsx
2268
+ var import_utils23 = require("@foundrykit/utils");
2269
+ var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
2270
+ var import_lucide_react7 = require("lucide-react");
2271
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2272
+ function Menubar({
348
2273
  className,
349
2274
  ...props
350
2275
  }) {
351
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
352
- AvatarPrimitive.Image,
2276
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2277
+ MenubarPrimitive.Root,
353
2278
  {
354
- "data-slot": "avatar-image",
355
- className: (0, import_utils6.cn)("aspect-square size-full", className),
2279
+ "data-slot": "menubar",
2280
+ className: (0, import_utils23.cn)(
2281
+ "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
2282
+ className
2283
+ ),
356
2284
  ...props
357
2285
  }
358
2286
  );
359
2287
  }
360
- function AvatarFallback({
2288
+ function MenubarMenu({
2289
+ ...props
2290
+ }) {
2291
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
2292
+ }
2293
+ function MenubarGroup({
2294
+ ...props
2295
+ }) {
2296
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
2297
+ }
2298
+ function MenubarPortal({
2299
+ ...props
2300
+ }) {
2301
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
2302
+ }
2303
+ function MenubarRadioGroup({
2304
+ ...props
2305
+ }) {
2306
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
2307
+ }
2308
+ function MenubarTrigger({
361
2309
  className,
362
2310
  ...props
363
2311
  }) {
364
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
365
- AvatarPrimitive.Fallback,
2312
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2313
+ MenubarPrimitive.Trigger,
366
2314
  {
367
- "data-slot": "avatar-fallback",
368
- className: (0, import_utils6.cn)(
369
- "bg-muted flex size-full items-center justify-center rounded-full",
2315
+ "data-slot": "menubar-trigger",
2316
+ className: (0, import_utils23.cn)(
2317
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
370
2318
  className
371
2319
  ),
372
2320
  ...props
373
2321
  }
374
2322
  );
375
2323
  }
376
-
377
- // src/components/breadcrumb/index.tsx
378
- var import_react_slot3 = require("@radix-ui/react-slot");
379
- var import_lucide_react = require("lucide-react");
380
- var import_utils7 = require("@foundrykit/utils");
381
- var import_jsx_runtime7 = require("react/jsx-runtime");
382
- function Breadcrumb({ ...props }) {
383
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
2324
+ function MenubarContent({
2325
+ className,
2326
+ align = "start",
2327
+ alignOffset = -4,
2328
+ sideOffset = 8,
2329
+ ...props
2330
+ }) {
2331
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2332
+ MenubarPrimitive.Content,
2333
+ {
2334
+ "data-slot": "menubar-content",
2335
+ align,
2336
+ alignOffset,
2337
+ sideOffset,
2338
+ className: (0, import_utils23.cn)(
2339
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2340
+ className
2341
+ ),
2342
+ ...props
2343
+ }
2344
+ ) });
384
2345
  }
385
- function BreadcrumbList({ className, ...props }) {
386
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
387
- "ol",
2346
+ function MenubarItem({
2347
+ className,
2348
+ inset,
2349
+ variant = "default",
2350
+ ...props
2351
+ }) {
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2353
+ MenubarPrimitive.Item,
388
2354
  {
389
- "data-slot": "breadcrumb-list",
390
- className: (0, import_utils7.cn)(
391
- "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",
2355
+ "data-slot": "menubar-item",
2356
+ "data-inset": inset,
2357
+ "data-variant": variant,
2358
+ className: (0, import_utils23.cn)(
2359
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
392
2360
  className
393
2361
  ),
394
2362
  ...props
395
2363
  }
396
2364
  );
397
2365
  }
398
- function BreadcrumbItem({ className, ...props }) {
399
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
400
- "li",
2366
+ function MenubarCheckboxItem({
2367
+ className,
2368
+ children,
2369
+ checked,
2370
+ ...props
2371
+ }) {
2372
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2373
+ MenubarPrimitive.CheckboxItem,
401
2374
  {
402
- "data-slot": "breadcrumb-item",
403
- className: (0, import_utils7.cn)("inline-flex items-center gap-1.5", className),
404
- ...props
2375
+ "data-slot": "menubar-checkbox-item",
2376
+ className: (0, import_utils23.cn)(
2377
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2378
+ className
2379
+ ),
2380
+ checked,
2381
+ ...props,
2382
+ children: [
2383
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.CheckIcon, { className: "size-4" }) }) }),
2384
+ children
2385
+ ]
405
2386
  }
406
2387
  );
407
2388
  }
408
- function BreadcrumbLink({
409
- asChild,
2389
+ function MenubarRadioItem({
410
2390
  className,
2391
+ children,
411
2392
  ...props
412
2393
  }) {
413
- const Comp = asChild ? import_react_slot3.Slot : "a";
414
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
415
- Comp,
2394
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2395
+ MenubarPrimitive.RadioItem,
416
2396
  {
417
- "data-slot": "breadcrumb-link",
418
- className: (0, import_utils7.cn)("hover:text-foreground transition-colors", className),
419
- ...props
2397
+ "data-slot": "menubar-radio-item",
2398
+ className: (0, import_utils23.cn)(
2399
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2400
+ className
2401
+ ),
2402
+ ...props,
2403
+ children: [
2404
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.CircleIcon, { className: "size-2 fill-current" }) }) }),
2405
+ children
2406
+ ]
420
2407
  }
421
2408
  );
422
2409
  }
423
- function BreadcrumbPage({ className, ...props }) {
424
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
425
- "span",
2410
+ function MenubarLabel({
2411
+ className,
2412
+ inset,
2413
+ ...props
2414
+ }) {
2415
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2416
+ MenubarPrimitive.Label,
426
2417
  {
427
- "data-slot": "breadcrumb-page",
428
- role: "link",
429
- "aria-disabled": "true",
430
- "aria-current": "page",
431
- className: (0, import_utils7.cn)("text-foreground font-normal", className),
2418
+ "data-slot": "menubar-label",
2419
+ "data-inset": inset,
2420
+ className: (0, import_utils23.cn)(
2421
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2422
+ className
2423
+ ),
432
2424
  ...props
433
2425
  }
434
2426
  );
435
2427
  }
436
- function BreadcrumbSeparator({
437
- children,
2428
+ function MenubarSeparator({
438
2429
  className,
439
2430
  ...props
440
2431
  }) {
441
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
442
- "li",
2432
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2433
+ MenubarPrimitive.Separator,
443
2434
  {
444
- "data-slot": "breadcrumb-separator",
445
- role: "presentation",
446
- "aria-hidden": "true",
447
- className: (0, import_utils7.cn)("[&>svg]:size-3.5", className),
448
- ...props,
449
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.ChevronRight, {})
2435
+ "data-slot": "menubar-separator",
2436
+ className: (0, import_utils23.cn)("bg-border -mx-1 my-1 h-px", className),
2437
+ ...props
450
2438
  }
451
2439
  );
452
2440
  }
453
- function BreadcrumbEllipsis({
2441
+ function MenubarShortcut({
454
2442
  className,
455
2443
  ...props
456
2444
  }) {
457
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2445
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
458
2446
  "span",
459
2447
  {
460
- "data-slot": "breadcrumb-ellipsis",
461
- role: "presentation",
462
- "aria-hidden": "true",
463
- className: (0, import_utils7.cn)("flex size-9 items-center justify-center", className),
2448
+ "data-slot": "menubar-shortcut",
2449
+ className: (0, import_utils23.cn)(
2450
+ "text-muted-foreground ml-auto text-xs tracking-widest",
2451
+ className
2452
+ ),
2453
+ ...props
2454
+ }
2455
+ );
2456
+ }
2457
+ function MenubarSub({
2458
+ ...props
2459
+ }) {
2460
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
2461
+ }
2462
+ function MenubarSubTrigger({
2463
+ className,
2464
+ inset,
2465
+ children,
2466
+ ...props
2467
+ }) {
2468
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2469
+ MenubarPrimitive.SubTrigger,
2470
+ {
2471
+ "data-slot": "menubar-sub-trigger",
2472
+ "data-inset": inset,
2473
+ className: (0, import_utils23.cn)(
2474
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
2475
+ className
2476
+ ),
464
2477
  ...props,
465
2478
  children: [
466
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react.MoreHorizontal, { className: "size-4" }),
467
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sr-only", children: "More" })
2479
+ children,
2480
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.ChevronRightIcon, { className: "ml-auto size-4" })
468
2481
  ]
469
2482
  }
470
2483
  );
471
2484
  }
472
-
473
- // src/components/checkbox/index.tsx
474
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
475
- var import_lucide_react2 = require("lucide-react");
476
- var import_utils8 = require("@foundrykit/utils");
477
- var import_jsx_runtime8 = require("react/jsx-runtime");
478
- function Checkbox({
2485
+ function MenubarSubContent({
479
2486
  className,
480
2487
  ...props
481
2488
  }) {
482
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
483
- CheckboxPrimitive.Root,
2489
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2490
+ MenubarPrimitive.SubContent,
484
2491
  {
485
- "data-slot": "checkbox",
486
- className: (0, import_utils8.cn)(
487
- "border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2492
+ "data-slot": "menubar-sub-content",
2493
+ className: (0, import_utils23.cn)(
2494
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
488
2495
  className
489
2496
  ),
490
- ...props,
491
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
492
- CheckboxPrimitive.Indicator,
493
- {
494
- "data-slot": "checkbox-indicator",
495
- className: "flex items-center justify-center text-current transition-none",
496
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react2.CheckIcon, { className: "size-3.5" })
497
- }
498
- )
2497
+ ...props
499
2498
  }
500
2499
  );
501
2500
  }
502
2501
 
503
- // src/components/dropdown/index.tsx
504
- var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
505
- var import_lucide_react3 = require("lucide-react");
506
- var import_utils9 = require("@foundrykit/utils");
507
- var import_jsx_runtime9 = require("react/jsx-runtime");
508
- function DropdownMenu({
2502
+ // src/components/native-select/index.tsx
2503
+ var import_utils24 = require("@foundrykit/utils");
2504
+ var import_lucide_react8 = require("lucide-react");
2505
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2506
+ function NativeSelect({
2507
+ className,
2508
+ children,
509
2509
  ...props
510
2510
  }) {
511
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
2511
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { "data-slot": "native-select-wrapper", className: "relative w-full", children: [
2512
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2513
+ "select",
2514
+ {
2515
+ "data-slot": "native-select",
2516
+ className: (0, import_utils24.cn)(
2517
+ "border-input text-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 [&>option]:text-foreground flex h-9 w-full appearance-none items-center rounded-md border bg-transparent py-2 pr-8 pl-3 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2518
+ className
2519
+ ),
2520
+ ...props,
2521
+ children
2522
+ }
2523
+ ),
2524
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 opacity-50" })
2525
+ ] });
512
2526
  }
513
- function DropdownMenuPortal({
2527
+
2528
+ // src/components/navigation-menu/index.tsx
2529
+ var import_utils25 = require("@foundrykit/utils");
2530
+ var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
2531
+ var import_class_variance_authority8 = require("class-variance-authority");
2532
+ var import_lucide_react9 = require("lucide-react");
2533
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2534
+ function NavigationMenu({
2535
+ className,
2536
+ children,
2537
+ viewport = true,
2538
+ ...props
2539
+ }) {
2540
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2541
+ NavigationMenuPrimitive.Root,
2542
+ {
2543
+ "data-slot": "navigation-menu",
2544
+ "data-viewport": viewport,
2545
+ className: (0, import_utils25.cn)(
2546
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
2547
+ className
2548
+ ),
2549
+ ...props,
2550
+ children: [
2551
+ children,
2552
+ viewport && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(NavigationMenuViewport, {})
2553
+ ]
2554
+ }
2555
+ );
2556
+ }
2557
+ function NavigationMenuList({
2558
+ className,
514
2559
  ...props
515
2560
  }) {
516
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
2561
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2562
+ NavigationMenuPrimitive.List,
2563
+ {
2564
+ "data-slot": "navigation-menu-list",
2565
+ className: (0, import_utils25.cn)(
2566
+ "group flex flex-1 list-none items-center justify-center gap-1",
2567
+ className
2568
+ ),
2569
+ ...props
2570
+ }
2571
+ );
517
2572
  }
518
- function DropdownMenuTrigger({
2573
+ function NavigationMenuItem({
2574
+ className,
519
2575
  ...props
520
2576
  }) {
521
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
522
- DropdownMenuPrimitive.Trigger,
2577
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2578
+ NavigationMenuPrimitive.Item,
523
2579
  {
524
- "data-slot": "dropdown-menu-trigger",
2580
+ "data-slot": "navigation-menu-item",
2581
+ className: (0, import_utils25.cn)("relative", className),
525
2582
  ...props
526
2583
  }
527
2584
  );
528
2585
  }
529
- function DropdownMenuContent({
2586
+ var navigationMenuTriggerStyle = (0, import_class_variance_authority8.cva)(
2587
+ "group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50"
2588
+ );
2589
+ function NavigationMenuTrigger({
530
2590
  className,
531
- sideOffset = 4,
2591
+ children,
532
2592
  ...props
533
2593
  }) {
534
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
535
- DropdownMenuPrimitive.Content,
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2595
+ NavigationMenuPrimitive.Trigger,
536
2596
  {
537
- "data-slot": "dropdown-menu-content",
538
- sideOffset,
539
- className: (0, import_utils9.cn)(
540
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md",
2597
+ "data-slot": "navigation-menu-trigger",
2598
+ className: (0, import_utils25.cn)(navigationMenuTriggerStyle(), "group", className),
2599
+ ...props,
2600
+ children: [
2601
+ children,
2602
+ " ",
2603
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2604
+ import_lucide_react9.ChevronDownIcon,
2605
+ {
2606
+ className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
2607
+ "aria-hidden": "true"
2608
+ }
2609
+ )
2610
+ ]
2611
+ }
2612
+ );
2613
+ }
2614
+ function NavigationMenuContent({
2615
+ className,
2616
+ ...props
2617
+ }) {
2618
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2619
+ NavigationMenuPrimitive.Content,
2620
+ {
2621
+ "data-slot": "navigation-menu-content",
2622
+ className: (0, import_utils25.cn)(
2623
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
2624
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
541
2625
  className
542
2626
  ),
543
2627
  ...props
544
2628
  }
545
- ) });
2629
+ );
546
2630
  }
547
- function DropdownMenuGroup({
2631
+ function NavigationMenuViewport({
2632
+ className,
548
2633
  ...props
549
2634
  }) {
550
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
2635
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2636
+ "div",
2637
+ {
2638
+ className: (0, import_utils25.cn)(
2639
+ "absolute top-full left-0 isolate z-50 flex justify-center"
2640
+ ),
2641
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2642
+ NavigationMenuPrimitive.Viewport,
2643
+ {
2644
+ "data-slot": "navigation-menu-viewport",
2645
+ className: (0, import_utils25.cn)(
2646
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
2647
+ className
2648
+ ),
2649
+ ...props
2650
+ }
2651
+ )
2652
+ }
2653
+ );
551
2654
  }
552
- function DropdownMenuItem({
2655
+ function NavigationMenuLink({
553
2656
  className,
554
- inset,
555
- variant = "default",
556
2657
  ...props
557
2658
  }) {
558
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
559
- DropdownMenuPrimitive.Item,
2659
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2660
+ NavigationMenuPrimitive.Link,
560
2661
  {
561
- "data-slot": "dropdown-menu-item",
562
- "data-inset": inset,
563
- "data-variant": variant,
564
- className: (0, import_utils9.cn)(
565
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2662
+ "data-slot": "navigation-menu-link",
2663
+ className: (0, import_utils25.cn)(
2664
+ "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
566
2665
  className
567
2666
  ),
568
2667
  ...props
569
2668
  }
570
2669
  );
571
2670
  }
572
- function DropdownMenuCheckboxItem({
2671
+ function NavigationMenuIndicator({
573
2672
  className,
574
- children,
575
- checked,
576
2673
  ...props
577
2674
  }) {
578
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
579
- DropdownMenuPrimitive.CheckboxItem,
2675
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2676
+ NavigationMenuPrimitive.Indicator,
580
2677
  {
581
- "data-slot": "dropdown-menu-checkbox-item",
582
- className: (0, import_utils9.cn)(
583
- "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2678
+ "data-slot": "navigation-menu-indicator",
2679
+ className: (0, import_utils25.cn)(
2680
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
584
2681
  className
585
2682
  ),
586
- checked,
587
2683
  ...props,
588
- children: [
589
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.CheckIcon, { className: "size-4" }) }) }),
590
- children
591
- ]
2684
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "bg-border relative top-[60%] size-2 rotate-45 rounded-tl-sm shadow-md" })
592
2685
  }
593
2686
  );
594
2687
  }
595
- function DropdownMenuRadioGroup({
2688
+
2689
+ // src/components/popover/index.tsx
2690
+ var import_utils26 = require("@foundrykit/utils");
2691
+ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
2692
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2693
+ function Popover({
596
2694
  ...props
597
2695
  }) {
598
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
599
- DropdownMenuPrimitive.RadioGroup,
2696
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
2697
+ }
2698
+ function PopoverTrigger({
2699
+ ...props
2700
+ }) {
2701
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
2702
+ }
2703
+ function PopoverContent({
2704
+ className,
2705
+ align = "center",
2706
+ sideOffset = 4,
2707
+ ...props
2708
+ }) {
2709
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2710
+ PopoverPrimitive.Content,
600
2711
  {
601
- "data-slot": "dropdown-menu-radio-group",
2712
+ "data-slot": "popover-content",
2713
+ align,
2714
+ sideOffset,
2715
+ className: (0, import_utils26.cn)(
2716
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2717
+ className
2718
+ ),
602
2719
  ...props
603
2720
  }
604
- );
2721
+ ) });
605
2722
  }
606
- function DropdownMenuRadioItem({
2723
+ function PopoverAnchor({
2724
+ ...props
2725
+ }) {
2726
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
2727
+ }
2728
+
2729
+ // src/components/progress/index.tsx
2730
+ var import_utils27 = require("@foundrykit/utils");
2731
+ var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
2732
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2733
+ function Progress({
607
2734
  className,
608
- children,
2735
+ value,
609
2736
  ...props
610
2737
  }) {
611
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
612
- DropdownMenuPrimitive.RadioItem,
2738
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2739
+ ProgressPrimitive.Root,
613
2740
  {
614
- "data-slot": "dropdown-menu-radio-item",
615
- className: (0, import_utils9.cn)(
616
- "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2741
+ "data-slot": "progress",
2742
+ className: (0, import_utils27.cn)(
2743
+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
617
2744
  className
618
2745
  ),
619
2746
  ...props,
620
- children: [
621
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.CircleIcon, { className: "size-2 fill-current" }) }) }),
622
- children
623
- ]
2747
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2748
+ ProgressPrimitive.Indicator,
2749
+ {
2750
+ "data-slot": "progress-indicator",
2751
+ className: "bg-primary h-full w-full flex-1 transition-all",
2752
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
2753
+ }
2754
+ )
624
2755
  }
625
2756
  );
626
2757
  }
627
- function DropdownMenuLabel({
2758
+
2759
+ // src/components/radio-group/index.tsx
2760
+ var import_utils28 = require("@foundrykit/utils");
2761
+ var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
2762
+ var import_lucide_react10 = require("lucide-react");
2763
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2764
+ function RadioGroup4({
628
2765
  className,
629
- inset,
630
2766
  ...props
631
2767
  }) {
632
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
633
- DropdownMenuPrimitive.Label,
2768
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2769
+ RadioGroupPrimitive.Root,
634
2770
  {
635
- "data-slot": "dropdown-menu-label",
636
- "data-inset": inset,
637
- className: (0, import_utils9.cn)(
638
- "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
639
- className
640
- ),
2771
+ "data-slot": "radio-group",
2772
+ className: (0, import_utils28.cn)("grid gap-3", className),
641
2773
  ...props
642
2774
  }
643
2775
  );
644
2776
  }
645
- function DropdownMenuSeparator({
2777
+ function RadioGroupItem({
646
2778
  className,
647
2779
  ...props
648
2780
  }) {
649
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
650
- DropdownMenuPrimitive.Separator,
2781
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2782
+ RadioGroupPrimitive.Item,
651
2783
  {
652
- "data-slot": "dropdown-menu-separator",
653
- className: (0, import_utils9.cn)("bg-border -mx-1 my-1 h-px", className),
654
- ...props
2784
+ "data-slot": "radio-group-item",
2785
+ className: (0, import_utils28.cn)(
2786
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2787
+ className
2788
+ ),
2789
+ ...props,
2790
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2791
+ RadioGroupPrimitive.Indicator,
2792
+ {
2793
+ "data-slot": "radio-group-indicator",
2794
+ className: "relative flex items-center justify-center",
2795
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
2796
+ }
2797
+ )
655
2798
  }
656
2799
  );
657
2800
  }
658
- function DropdownMenuShortcut({
2801
+
2802
+ // src/components/resizable/index.tsx
2803
+ var import_utils29 = require("@foundrykit/utils");
2804
+ var import_lucide_react11 = require("lucide-react");
2805
+ var import_react_resizable_panels = require("react-resizable-panels");
2806
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2807
+ function ResizablePanelGroup({
659
2808
  className,
660
2809
  ...props
661
2810
  }) {
662
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
663
- "span",
2811
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2812
+ import_react_resizable_panels.Group,
664
2813
  {
665
- "data-slot": "dropdown-menu-shortcut",
666
- className: (0, import_utils9.cn)(
667
- "text-muted-foreground ml-auto text-xs tracking-widest",
2814
+ "data-slot": "resizable-panel-group",
2815
+ className: (0, import_utils29.cn)(
2816
+ "flex h-full w-full aria-[orientation=vertical]:flex-col",
668
2817
  className
669
2818
  ),
670
2819
  ...props
671
2820
  }
672
2821
  );
673
2822
  }
674
- function DropdownMenuSub({
675
- ...props
676
- }) {
677
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
2823
+ function ResizablePanel({ ...props }) {
2824
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_resizable_panels.Panel, { "data-slot": "resizable-panel", ...props });
678
2825
  }
679
- function DropdownMenuSubTrigger({
2826
+ function ResizableHandle({
2827
+ withHandle,
680
2828
  className,
681
- inset,
682
- children,
683
2829
  ...props
684
2830
  }) {
685
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
686
- DropdownMenuPrimitive.SubTrigger,
2831
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2832
+ import_react_resizable_panels.Separator,
687
2833
  {
688
- "data-slot": "dropdown-menu-sub-trigger",
689
- "data-inset": inset,
690
- className: (0, import_utils9.cn)(
691
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8",
2834
+ "data-slot": "resizable-handle",
2835
+ className: (0, import_utils29.cn)(
2836
+ "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2",
692
2837
  className
693
2838
  ),
694
2839
  ...props,
695
- children: [
696
- children,
697
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto size-4" })
698
- ]
2840
+ children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react11.GripVerticalIcon, { className: "size-2.5" }) })
699
2841
  }
700
2842
  );
701
2843
  }
702
- function DropdownMenuSubContent({
2844
+
2845
+ // src/components/scroll-area/index.tsx
2846
+ var import_utils30 = require("@foundrykit/utils");
2847
+ var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
2848
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2849
+ function ScrollArea({
703
2850
  className,
2851
+ children,
704
2852
  ...props
705
2853
  }) {
706
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
707
- DropdownMenuPrimitive.SubContent,
2854
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2855
+ ScrollAreaPrimitive.Root,
708
2856
  {
709
- "data-slot": "dropdown-menu-sub-content",
710
- className: (0, import_utils9.cn)(
711
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
712
- className
713
- ),
714
- ...props
2857
+ "data-slot": "scroll-area",
2858
+ className: (0, import_utils30.cn)("relative", className),
2859
+ ...props,
2860
+ children: [
2861
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2862
+ ScrollAreaPrimitive.Viewport,
2863
+ {
2864
+ "data-slot": "scroll-area-viewport",
2865
+ className: "focus-visible:ring-ring/50 size-full h-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
2866
+ children
2867
+ }
2868
+ ),
2869
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ScrollBar, {}),
2870
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ScrollAreaPrimitive.Corner, {})
2871
+ ]
715
2872
  }
716
2873
  );
717
2874
  }
718
-
719
- // src/components/label/index.tsx
720
- var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
721
- var import_utils10 = require("@foundrykit/utils");
722
- var import_jsx_runtime10 = require("react/jsx-runtime");
723
- function Label2({
2875
+ function ScrollBar({
724
2876
  className,
2877
+ orientation = "vertical",
725
2878
  ...props
726
2879
  }) {
727
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
728
- LabelPrimitive.Root,
2880
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2881
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
729
2882
  {
730
- "data-slot": "label",
731
- className: (0, import_utils10.cn)(
732
- "flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",
2883
+ "data-slot": "scroll-area-scrollbar",
2884
+ orientation,
2885
+ className: (0, import_utils30.cn)(
2886
+ "flex touch-none p-px transition-colors select-none",
2887
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
2888
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
733
2889
  className
734
2890
  ),
735
- ...props
2891
+ ...props,
2892
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2893
+ ScrollAreaPrimitive.ScrollAreaThumb,
2894
+ {
2895
+ "data-slot": "scroll-area-thumb",
2896
+ className: "bg-border relative flex-1 rounded-full"
2897
+ }
2898
+ )
736
2899
  }
737
2900
  );
738
2901
  }
739
2902
 
740
2903
  // src/components/select/index.tsx
2904
+ var import_utils31 = require("@foundrykit/utils");
741
2905
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
742
- var import_lucide_react4 = require("lucide-react");
743
- var import_utils11 = require("@foundrykit/utils");
744
- var import_jsx_runtime11 = require("react/jsx-runtime");
2906
+ var import_lucide_react12 = require("lucide-react");
2907
+ var import_jsx_runtime34 = require("react/jsx-runtime");
745
2908
  function Select({
746
2909
  ...props
747
2910
  }) {
748
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
2911
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
749
2912
  }
750
2913
  function SelectGroup({
751
2914
  ...props
752
2915
  }) {
753
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
2916
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
754
2917
  }
755
2918
  function SelectValue({
756
2919
  ...props
757
2920
  }) {
758
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
2921
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
759
2922
  }
760
2923
  function SelectTrigger({
761
2924
  className,
@@ -763,19 +2926,19 @@ function SelectTrigger({
763
2926
  children,
764
2927
  ...props
765
2928
  }) {
766
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2929
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
767
2930
  SelectPrimitive.Trigger,
768
2931
  {
769
2932
  "data-slot": "select-trigger",
770
2933
  "data-size": size,
771
- className: (0, import_utils11.cn)(
772
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
2934
+ className: (0, import_utils31.cn)(
2935
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
773
2936
  className
774
2937
  ),
775
2938
  ...props,
776
2939
  children: [
777
2940
  children,
778
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
2941
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4 opacity-50" }) })
779
2942
  ]
780
2943
  }
781
2944
  );
@@ -786,30 +2949,30 @@ function SelectContent({
786
2949
  position = "popper",
787
2950
  ...props
788
2951
  }) {
789
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2952
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
790
2953
  SelectPrimitive.Content,
791
2954
  {
792
2955
  "data-slot": "select-content",
793
- className: (0, import_utils11.cn)(
794
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) relative z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border shadow-md",
2956
+ className: (0, import_utils31.cn)(
2957
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
795
2958
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
796
2959
  className
797
2960
  ),
798
2961
  position,
799
2962
  ...props,
800
2963
  children: [
801
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollUpButton, {}),
802
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2964
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectScrollUpButton, {}),
2965
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
803
2966
  SelectPrimitive.Viewport,
804
2967
  {
805
- className: (0, import_utils11.cn)(
2968
+ className: (0, import_utils31.cn)(
806
2969
  "p-1",
807
2970
  position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
808
2971
  ),
809
2972
  children
810
2973
  }
811
2974
  ),
812
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollDownButton, {})
2975
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectScrollDownButton, {})
813
2976
  ]
814
2977
  }
815
2978
  ) });
@@ -818,11 +2981,11 @@ function SelectLabel({
818
2981
  className,
819
2982
  ...props
820
2983
  }) {
821
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2984
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
822
2985
  SelectPrimitive.Label,
823
2986
  {
824
2987
  "data-slot": "select-label",
825
- className: (0, import_utils11.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
2988
+ className: (0, import_utils31.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
826
2989
  ...props
827
2990
  }
828
2991
  );
@@ -832,18 +2995,18 @@ function SelectItem({
832
2995
  children,
833
2996
  ...props
834
2997
  }) {
835
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2998
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
836
2999
  SelectPrimitive.Item,
837
3000
  {
838
3001
  "data-slot": "select-item",
839
- className: (0, import_utils11.cn)(
840
- "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3002
+ className: (0, import_utils31.cn)(
3003
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
841
3004
  className
842
3005
  ),
843
3006
  ...props,
844
3007
  children: [
845
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
846
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemText, { children })
3008
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
3009
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.ItemText, { children })
847
3010
  ]
848
3011
  }
849
3012
  );
@@ -852,140 +3015,307 @@ function SelectSeparator({
852
3015
  className,
853
3016
  ...props
854
3017
  }) {
855
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3018
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
856
3019
  SelectPrimitive.Separator,
857
3020
  {
858
3021
  "data-slot": "select-separator",
859
- className: (0, import_utils11.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
3022
+ className: (0, import_utils31.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
3023
+ ...props
3024
+ }
3025
+ );
3026
+ }
3027
+ function SelectScrollUpButton({
3028
+ className,
3029
+ ...props
3030
+ }) {
3031
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3032
+ SelectPrimitive.ScrollUpButton,
3033
+ {
3034
+ "data-slot": "select-scroll-up-button",
3035
+ className: (0, import_utils31.cn)(
3036
+ "flex cursor-default items-center justify-center py-1",
3037
+ className
3038
+ ),
3039
+ ...props,
3040
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.ChevronUpIcon, { className: "size-4" })
3041
+ }
3042
+ );
3043
+ }
3044
+ function SelectScrollDownButton({
3045
+ className,
3046
+ ...props
3047
+ }) {
3048
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3049
+ SelectPrimitive.ScrollDownButton,
3050
+ {
3051
+ "data-slot": "select-scroll-down-button",
3052
+ className: (0, import_utils31.cn)(
3053
+ "flex cursor-default items-center justify-center py-1",
3054
+ className
3055
+ ),
3056
+ ...props,
3057
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4" })
3058
+ }
3059
+ );
3060
+ }
3061
+
3062
+ // src/components/sheet/index.tsx
3063
+ var import_utils32 = require("@foundrykit/utils");
3064
+ var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
3065
+ var import_lucide_react13 = require("lucide-react");
3066
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3067
+ function Sheet({ ...props }) {
3068
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
3069
+ }
3070
+ function SheetTrigger({
3071
+ ...props
3072
+ }) {
3073
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
3074
+ }
3075
+ function SheetClose({
3076
+ ...props
3077
+ }) {
3078
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
3079
+ }
3080
+ function SheetPortal({
3081
+ ...props
3082
+ }) {
3083
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
3084
+ }
3085
+ function SheetOverlay({
3086
+ className,
3087
+ ...props
3088
+ }) {
3089
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3090
+ SheetPrimitive.Overlay,
3091
+ {
3092
+ "data-slot": "sheet-overlay",
3093
+ className: (0, import_utils32.cn)(
3094
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
3095
+ className
3096
+ ),
3097
+ ...props
3098
+ }
3099
+ );
3100
+ }
3101
+ function SheetContent({
3102
+ className,
3103
+ children,
3104
+ side = "right",
3105
+ ...props
3106
+ }) {
3107
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(SheetPortal, { children: [
3108
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SheetOverlay, {}),
3109
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3110
+ SheetPrimitive.Content,
3111
+ {
3112
+ "data-slot": "sheet-content",
3113
+ className: (0, import_utils32.cn)(
3114
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
3115
+ side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
3116
+ side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
3117
+ side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
3118
+ side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
3119
+ className
3120
+ ),
3121
+ ...props,
3122
+ children: [
3123
+ children,
3124
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
3125
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react13.XIcon, { className: "size-4" }),
3126
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "sr-only", children: "Close" })
3127
+ ] })
3128
+ ]
3129
+ }
3130
+ )
3131
+ ] });
3132
+ }
3133
+ function SheetHeader({ className, ...props }) {
3134
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3135
+ "div",
3136
+ {
3137
+ "data-slot": "sheet-header",
3138
+ className: (0, import_utils32.cn)("flex flex-col gap-1.5 p-4", className),
3139
+ ...props
3140
+ }
3141
+ );
3142
+ }
3143
+ function SheetFooter({ className, ...props }) {
3144
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3145
+ "div",
3146
+ {
3147
+ "data-slot": "sheet-footer",
3148
+ className: (0, import_utils32.cn)("mt-auto flex flex-col gap-2 p-4", className),
860
3149
  ...props
861
3150
  }
862
3151
  );
863
3152
  }
864
- function SelectScrollUpButton({
3153
+ function SheetTitle({
865
3154
  className,
866
3155
  ...props
867
3156
  }) {
868
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
869
- SelectPrimitive.ScrollUpButton,
3157
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3158
+ SheetPrimitive.Title,
870
3159
  {
871
- "data-slot": "select-scroll-up-button",
872
- className: (0, import_utils11.cn)(
873
- "flex cursor-default items-center justify-center py-1",
874
- className
875
- ),
876
- ...props,
877
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
3160
+ "data-slot": "sheet-title",
3161
+ className: (0, import_utils32.cn)("text-foreground font-semibold", className),
3162
+ ...props
878
3163
  }
879
3164
  );
880
3165
  }
881
- function SelectScrollDownButton({
3166
+ function SheetDescription({
882
3167
  className,
883
3168
  ...props
884
3169
  }) {
885
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
886
- SelectPrimitive.ScrollDownButton,
3170
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3171
+ SheetPrimitive.Description,
887
3172
  {
888
- "data-slot": "select-scroll-down-button",
889
- className: (0, import_utils11.cn)(
890
- "flex cursor-default items-center justify-center py-1",
891
- className
892
- ),
893
- ...props,
894
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
3173
+ "data-slot": "sheet-description",
3174
+ className: (0, import_utils32.cn)("text-muted-foreground text-sm", className),
3175
+ ...props
895
3176
  }
896
3177
  );
897
3178
  }
898
3179
 
899
- // src/components/radio-group/index.tsx
900
- var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
901
- var import_lucide_react5 = require("lucide-react");
902
- var import_utils12 = require("@foundrykit/utils");
903
- var import_jsx_runtime12 = require("react/jsx-runtime");
904
- function RadioGroup2({
905
- className,
906
- ...props
907
- }) {
908
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
909
- RadioGroupPrimitive.Root,
3180
+ // src/components/skeleton/index.tsx
3181
+ var import_utils33 = require("@foundrykit/utils");
3182
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3183
+ function Skeleton({ className, ...props }) {
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3185
+ "div",
910
3186
  {
911
- "data-slot": "radio-group",
912
- className: (0, import_utils12.cn)("grid gap-3", className),
3187
+ "data-slot": "skeleton",
3188
+ className: (0, import_utils33.cn)("bg-accent animate-pulse rounded-md", className),
913
3189
  ...props
914
3190
  }
915
3191
  );
916
3192
  }
917
- function RadioGroupItem({
3193
+
3194
+ // src/components/slider/index.tsx
3195
+ var import_utils34 = require("@foundrykit/utils");
3196
+ var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
3197
+ var React4 = __toESM(require("react"), 1);
3198
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3199
+ function Slider({
918
3200
  className,
3201
+ defaultValue,
3202
+ value,
3203
+ min = 0,
3204
+ max = 100,
919
3205
  ...props
920
3206
  }) {
921
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
922
- RadioGroupPrimitive.Item,
3207
+ const _values = React4.useMemo(
3208
+ () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
3209
+ [value, defaultValue, min, max]
3210
+ );
3211
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3212
+ SliderPrimitive.Root,
923
3213
  {
924
- "data-slot": "radio-group-item",
925
- className: (0, import_utils12.cn)(
926
- "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
3214
+ "data-slot": "slider",
3215
+ defaultValue,
3216
+ value,
3217
+ min,
3218
+ max,
3219
+ className: (0, import_utils34.cn)(
3220
+ "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
927
3221
  className
928
3222
  ),
929
3223
  ...props,
930
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
931
- RadioGroupPrimitive.Indicator,
932
- {
933
- "data-slot": "radio-group-indicator",
934
- className: "relative flex items-center justify-center",
935
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.CircleIcon, { className: "fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
936
- }
937
- )
3224
+ children: [
3225
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3226
+ SliderPrimitive.Track,
3227
+ {
3228
+ "data-slot": "slider-track",
3229
+ className: (0, import_utils34.cn)(
3230
+ "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
3231
+ ),
3232
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3233
+ SliderPrimitive.Range,
3234
+ {
3235
+ "data-slot": "slider-range",
3236
+ className: (0, import_utils34.cn)(
3237
+ "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
3238
+ )
3239
+ }
3240
+ )
3241
+ }
3242
+ ),
3243
+ Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3244
+ SliderPrimitive.Thumb,
3245
+ {
3246
+ "data-slot": "slider-thumb",
3247
+ className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
3248
+ },
3249
+ index
3250
+ ))
3251
+ ]
938
3252
  }
939
3253
  );
940
3254
  }
941
3255
 
942
- // src/components/separator/index.tsx
943
- var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
944
- var import_utils13 = require("@foundrykit/utils");
945
- var import_jsx_runtime13 = require("react/jsx-runtime");
946
- function Separator3({
3256
+ // src/components/sonner/index.tsx
3257
+ var import_next_themes = require("next-themes");
3258
+ var import_sonner = require("sonner");
3259
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3260
+ function Toaster({ ...props }) {
3261
+ const { theme = "system" } = (0, import_next_themes.useTheme)();
3262
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3263
+ import_sonner.Toaster,
3264
+ {
3265
+ theme,
3266
+ className: "toaster group",
3267
+ style: {
3268
+ "--normal-bg": "var(--popover)",
3269
+ "--normal-text": "var(--popover-foreground)",
3270
+ "--normal-border": "var(--border)"
3271
+ },
3272
+ ...props
3273
+ }
3274
+ );
3275
+ }
3276
+
3277
+ // src/components/spinner/index.tsx
3278
+ var import_utils35 = require("@foundrykit/utils");
3279
+ var import_lucide_react14 = require("lucide-react");
3280
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3281
+ function Spinner({
947
3282
  className,
948
- orientation = "horizontal",
949
- decorative = true,
950
3283
  ...props
951
3284
  }) {
952
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
953
- SeparatorPrimitive.Root,
3285
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3286
+ import_lucide_react14.Loader2Icon,
954
3287
  {
955
- "data-slot": "separator",
956
- decorative,
957
- orientation,
958
- className: (0, import_utils13.cn)(
959
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
960
- className
961
- ),
3288
+ role: "status",
3289
+ "aria-label": "Loading",
3290
+ "data-slot": "spinner",
3291
+ className: (0, import_utils35.cn)("size-4 animate-spin", className),
962
3292
  ...props
963
3293
  }
964
3294
  );
965
3295
  }
966
3296
 
967
3297
  // src/components/switch/index.tsx
3298
+ var import_utils36 = require("@foundrykit/utils");
968
3299
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
969
- var import_utils14 = require("@foundrykit/utils");
970
- var import_jsx_runtime14 = require("react/jsx-runtime");
3300
+ var import_jsx_runtime40 = require("react/jsx-runtime");
971
3301
  function Switch({
972
3302
  className,
973
3303
  ...props
974
3304
  }) {
975
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3305
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
976
3306
  SwitchPrimitive.Root,
977
3307
  {
978
3308
  "data-slot": "switch",
979
- className: (0, import_utils14.cn)(
980
- "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 shadow-xs peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
3309
+ className: (0, import_utils36.cn)(
3310
+ "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
981
3311
  className
982
3312
  ),
983
3313
  ...props,
984
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3314
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
985
3315
  SwitchPrimitive.Thumb,
986
3316
  {
987
3317
  "data-slot": "switch-thumb",
988
- className: (0, import_utils14.cn)(
3318
+ className: (0, import_utils36.cn)(
989
3319
  "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
990
3320
  )
991
3321
  }
@@ -994,393 +3324,322 @@ function Switch({
994
3324
  );
995
3325
  }
996
3326
 
997
- // src/components/tabs/index.tsx
998
- var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
999
- var import_utils15 = require("@foundrykit/utils");
1000
- var import_jsx_runtime15 = require("react/jsx-runtime");
1001
- function Tabs({
1002
- className,
1003
- ...props
1004
- }) {
1005
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1006
- TabsPrimitive.Root,
1007
- {
1008
- "data-slot": "tabs",
1009
- className: (0, import_utils15.cn)("flex flex-col gap-2", className),
1010
- ...props
1011
- }
1012
- );
1013
- }
1014
- function TabsList({
1015
- className,
1016
- ...props
1017
- }) {
1018
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1019
- TabsPrimitive.List,
3327
+ // src/components/table/index.tsx
3328
+ var import_utils37 = require("@foundrykit/utils");
3329
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3330
+ function Table({ className, ...props }) {
3331
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3332
+ "div",
1020
3333
  {
1021
- "data-slot": "tabs-list",
1022
- className: (0, import_utils15.cn)(
1023
- "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
1024
- className
1025
- ),
1026
- ...props
3334
+ "data-slot": "table-container",
3335
+ className: "relative w-full overflow-x-auto",
3336
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3337
+ "table",
3338
+ {
3339
+ "data-slot": "table",
3340
+ className: (0, import_utils37.cn)("w-full caption-bottom text-sm", className),
3341
+ ...props
3342
+ }
3343
+ )
1027
3344
  }
1028
3345
  );
1029
3346
  }
1030
- function TabsTrigger({
1031
- className,
1032
- ...props
1033
- }) {
1034
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1035
- TabsPrimitive.Trigger,
3347
+ function TableHeader({ className, ...props }) {
3348
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3349
+ "thead",
1036
3350
  {
1037
- "data-slot": "tabs-trigger",
1038
- className: (0, import_utils15.cn)(
1039
- "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
1040
- className
1041
- ),
3351
+ "data-slot": "table-header",
3352
+ className: (0, import_utils37.cn)("[&_tr]:border-b", className),
1042
3353
  ...props
1043
3354
  }
1044
3355
  );
1045
3356
  }
1046
- function TabsContent({
1047
- className,
1048
- ...props
1049
- }) {
1050
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1051
- TabsPrimitive.Content,
3357
+ function TableBody({ className, ...props }) {
3358
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3359
+ "tbody",
1052
3360
  {
1053
- "data-slot": "tabs-content",
1054
- className: (0, import_utils15.cn)("flex-1 outline-none", className),
3361
+ "data-slot": "table-body",
3362
+ className: (0, import_utils37.cn)("[&_tr:last-child]:border-0", className),
1055
3363
  ...props
1056
3364
  }
1057
3365
  );
1058
3366
  }
1059
-
1060
- // src/components/textarea/index.tsx
1061
- var import_utils16 = require("@foundrykit/utils");
1062
- var import_jsx_runtime16 = require("react/jsx-runtime");
1063
- function Textarea({ className, ...props }) {
1064
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1065
- "textarea",
3367
+ function TableFooter({ className, ...props }) {
3368
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3369
+ "tfoot",
1066
3370
  {
1067
- "data-slot": "textarea",
1068
- className: (0, import_utils16.cn)(
1069
- "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
3371
+ "data-slot": "table-footer",
3372
+ className: (0, import_utils37.cn)(
3373
+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
1070
3374
  className
1071
3375
  ),
1072
3376
  ...props
1073
3377
  }
1074
3378
  );
1075
3379
  }
1076
-
1077
- // src/components/skeleton/index.tsx
1078
- var import_utils17 = require("@foundrykit/utils");
1079
- var import_jsx_runtime17 = require("react/jsx-runtime");
1080
- function Skeleton({ className, ...props }) {
1081
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1082
- "div",
3380
+ function TableRow({ className, ...props }) {
3381
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3382
+ "tr",
1083
3383
  {
1084
- "data-slot": "skeleton",
1085
- className: (0, import_utils17.cn)("bg-accent animate-pulse rounded-md", className),
3384
+ "data-slot": "table-row",
3385
+ className: (0, import_utils37.cn)(
3386
+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
3387
+ className
3388
+ ),
1086
3389
  ...props
1087
3390
  }
1088
3391
  );
1089
3392
  }
1090
-
1091
- // src/components/popover/index.tsx
1092
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
1093
- var import_utils18 = require("@foundrykit/utils");
1094
- var import_jsx_runtime18 = require("react/jsx-runtime");
1095
- function Popover({
1096
- ...props
1097
- }) {
1098
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1099
- }
1100
- function PopoverTrigger({
1101
- ...props
1102
- }) {
1103
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1104
- }
1105
- function PopoverContent({
1106
- className,
1107
- align = "center",
1108
- sideOffset = 4,
1109
- ...props
1110
- }) {
1111
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1112
- PopoverPrimitive.Content,
3393
+ function TableHead({ className, ...props }) {
3394
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3395
+ "th",
1113
3396
  {
1114
- "data-slot": "popover-content",
1115
- align,
1116
- sideOffset,
1117
- className: (0, import_utils18.cn)(
1118
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md",
3397
+ "data-slot": "table-head",
3398
+ className: (0, import_utils37.cn)(
3399
+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
1119
3400
  className
1120
3401
  ),
1121
3402
  ...props
1122
3403
  }
1123
- ) });
1124
- }
1125
- function PopoverAnchor({
1126
- ...props
1127
- }) {
1128
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
1129
- }
1130
-
1131
- // src/components/dialog/index.tsx
1132
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1133
- var import_lucide_react6 = require("lucide-react");
1134
- var import_utils19 = require("@foundrykit/utils");
1135
- var import_jsx_runtime19 = require("react/jsx-runtime");
1136
- function Dialog({
1137
- ...props
1138
- }) {
1139
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
1140
- }
1141
- function DialogTrigger({
1142
- ...props
1143
- }) {
1144
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
1145
- }
1146
- function DialogPortal({
1147
- ...props
1148
- }) {
1149
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
1150
- }
1151
- function DialogClose({
1152
- ...props
1153
- }) {
1154
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
3404
+ );
1155
3405
  }
1156
- function DialogOverlay({
1157
- className,
1158
- ...props
1159
- }) {
1160
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1161
- DialogPrimitive.Overlay,
3406
+ function TableCell({ className, ...props }) {
3407
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3408
+ "td",
1162
3409
  {
1163
- "data-slot": "dialog-overlay",
1164
- className: (0, import_utils19.cn)(
1165
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
3410
+ "data-slot": "table-cell",
3411
+ className: (0, import_utils37.cn)(
3412
+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
1166
3413
  className
1167
3414
  ),
1168
3415
  ...props
1169
3416
  }
1170
3417
  );
1171
3418
  }
1172
- function DialogContent({
3419
+ function TableCaption({
1173
3420
  className,
1174
- children,
1175
- showCloseButton = true,
1176
3421
  ...props
1177
3422
  }) {
1178
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
1179
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogOverlay, {}),
1180
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1181
- DialogPrimitive.Content,
1182
- {
1183
- "data-slot": "dialog-content",
1184
- className: (0, import_utils19.cn)(
1185
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1186
- className
1187
- ),
1188
- ...props,
1189
- children: [
1190
- children,
1191
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1192
- DialogPrimitive.Close,
1193
- {
1194
- "data-slot": "dialog-close",
1195
- className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
1196
- children: [
1197
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react6.XIcon, {}),
1198
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "Close" })
1199
- ]
1200
- }
1201
- )
1202
- ]
1203
- }
1204
- )
1205
- ] });
1206
- }
1207
- function DialogHeader({ className, ...props }) {
1208
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1209
- "div",
3423
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3424
+ "caption",
1210
3425
  {
1211
- "data-slot": "dialog-header",
1212
- className: (0, import_utils19.cn)("flex flex-col gap-2 text-center sm:text-left", className),
1213
- ...props
1214
- }
1215
- );
1216
- }
1217
- function DialogFooter({ className, ...props }) {
1218
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1219
- "div",
1220
- {
1221
- "data-slot": "dialog-footer",
1222
- className: (0, import_utils19.cn)(
1223
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1224
- className
1225
- ),
3426
+ "data-slot": "table-caption",
3427
+ className: (0, import_utils37.cn)("text-muted-foreground mt-4 text-sm", className),
1226
3428
  ...props
1227
3429
  }
1228
3430
  );
1229
3431
  }
1230
- function DialogTitle({
3432
+
3433
+ // src/components/tabs/index.tsx
3434
+ var import_utils38 = require("@foundrykit/utils");
3435
+ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
3436
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3437
+ function Tabs({
1231
3438
  className,
1232
3439
  ...props
1233
3440
  }) {
1234
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1235
- DialogPrimitive.Title,
3441
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3442
+ TabsPrimitive.Root,
1236
3443
  {
1237
- "data-slot": "dialog-title",
1238
- className: (0, import_utils19.cn)("text-lg font-semibold leading-none", className),
3444
+ "data-slot": "tabs",
3445
+ className: (0, import_utils38.cn)("flex flex-col gap-2", className),
1239
3446
  ...props
1240
3447
  }
1241
3448
  );
1242
3449
  }
1243
- function DialogDescription({
3450
+ function TabsList({
1244
3451
  className,
1245
3452
  ...props
1246
3453
  }) {
1247
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1248
- DialogPrimitive.Description,
3454
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3455
+ TabsPrimitive.List,
1249
3456
  {
1250
- "data-slot": "dialog-description",
1251
- className: (0, import_utils19.cn)("text-muted-foreground text-sm", className),
3457
+ "data-slot": "tabs-list",
3458
+ className: (0, import_utils38.cn)(
3459
+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
3460
+ className
3461
+ ),
1252
3462
  ...props
1253
3463
  }
1254
3464
  );
1255
3465
  }
1256
-
1257
- // src/components/sheet/index.tsx
1258
- var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1259
- var import_lucide_react7 = require("lucide-react");
1260
- var import_utils20 = require("@foundrykit/utils");
1261
- var import_jsx_runtime20 = require("react/jsx-runtime");
1262
- function Sheet({ ...props }) {
1263
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
1264
- }
1265
- function SheetTrigger({
1266
- ...props
1267
- }) {
1268
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
1269
- }
1270
- function SheetClose({
1271
- ...props
1272
- }) {
1273
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
1274
- }
1275
- function SheetPortal({
1276
- ...props
1277
- }) {
1278
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
1279
- }
1280
- function SheetOverlay({
3466
+ function TabsTrigger({
1281
3467
  className,
1282
3468
  ...props
1283
3469
  }) {
1284
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1285
- SheetPrimitive.Overlay,
3470
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3471
+ TabsPrimitive.Trigger,
1286
3472
  {
1287
- "data-slot": "sheet-overlay",
1288
- className: (0, import_utils20.cn)(
1289
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
3473
+ "data-slot": "tabs-trigger",
3474
+ className: (0, import_utils38.cn)(
3475
+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1290
3476
  className
1291
3477
  ),
1292
3478
  ...props
1293
3479
  }
1294
3480
  );
1295
3481
  }
1296
- function SheetContent({
3482
+ function TabsContent({
1297
3483
  className,
1298
- children,
1299
- side = "right",
1300
3484
  ...props
1301
3485
  }) {
1302
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPortal, { children: [
1303
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetOverlay, {}),
1304
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1305
- SheetPrimitive.Content,
1306
- {
1307
- "data-slot": "sheet-content",
1308
- className: (0, import_utils20.cn)(
1309
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1310
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1311
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1312
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1313
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1314
- className
1315
- ),
1316
- ...props,
1317
- children: [
1318
- children,
1319
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
1320
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react7.XIcon, { className: "size-4" }),
1321
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "sr-only", children: "Close" })
1322
- ] })
1323
- ]
1324
- }
1325
- )
1326
- ] });
1327
- }
1328
- function SheetHeader({ className, ...props }) {
1329
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1330
- "div",
3486
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3487
+ TabsPrimitive.Content,
1331
3488
  {
1332
- "data-slot": "sheet-header",
1333
- className: (0, import_utils20.cn)("flex flex-col gap-1.5 p-4", className),
3489
+ "data-slot": "tabs-content",
3490
+ className: (0, import_utils38.cn)("flex-1 outline-none", className),
1334
3491
  ...props
1335
3492
  }
1336
3493
  );
1337
3494
  }
1338
- function SheetFooter({ className, ...props }) {
1339
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1340
- "div",
3495
+
3496
+ // src/components/textarea/index.tsx
3497
+ var import_utils39 = require("@foundrykit/utils");
3498
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3499
+ function Textarea({ className, ...props }) {
3500
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3501
+ "textarea",
1341
3502
  {
1342
- "data-slot": "sheet-footer",
1343
- className: (0, import_utils20.cn)("mt-auto flex flex-col gap-2 p-4", className),
3503
+ "data-slot": "textarea",
3504
+ className: (0, import_utils39.cn)(
3505
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
3506
+ className
3507
+ ),
1344
3508
  ...props
1345
3509
  }
1346
3510
  );
1347
3511
  }
1348
- function SheetTitle({
3512
+
3513
+ // src/components/toggle/index.tsx
3514
+ var import_utils40 = require("@foundrykit/utils");
3515
+ var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
3516
+ var import_class_variance_authority9 = require("class-variance-authority");
3517
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3518
+ var toggleVariants = (0, import_class_variance_authority9.cva)(
3519
+ "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3520
+ {
3521
+ variants: {
3522
+ variant: {
3523
+ default: "bg-transparent",
3524
+ outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
3525
+ },
3526
+ size: {
3527
+ default: "h-9 min-w-9 px-2",
3528
+ sm: "h-8 min-w-8 px-1.5",
3529
+ lg: "h-10 min-w-10 px-2.5"
3530
+ }
3531
+ },
3532
+ defaultVariants: {
3533
+ variant: "default",
3534
+ size: "default"
3535
+ }
3536
+ }
3537
+ );
3538
+ function Toggle({
1349
3539
  className,
3540
+ variant,
3541
+ size,
1350
3542
  ...props
1351
3543
  }) {
1352
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1353
- SheetPrimitive.Title,
3544
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3545
+ TogglePrimitive.Root,
1354
3546
  {
1355
- "data-slot": "sheet-title",
1356
- className: (0, import_utils20.cn)("text-foreground font-semibold", className),
3547
+ "data-slot": "toggle",
3548
+ className: (0, import_utils40.cn)(toggleVariants({ variant, size, className })),
1357
3549
  ...props
1358
3550
  }
1359
3551
  );
1360
3552
  }
1361
- function SheetDescription({
3553
+
3554
+ // src/components/toggle-group/index.tsx
3555
+ var import_utils41 = require("@foundrykit/utils");
3556
+ var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
3557
+ var import_class_variance_authority10 = require("class-variance-authority");
3558
+ var React5 = __toESM(require("react"), 1);
3559
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3560
+ var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
3561
+ "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3562
+ {
3563
+ variants: {
3564
+ variant: {
3565
+ default: "bg-transparent",
3566
+ outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
3567
+ },
3568
+ size: {
3569
+ default: "h-9 min-w-9 px-2",
3570
+ sm: "h-8 min-w-8 px-1.5",
3571
+ lg: "h-10 min-w-10 px-2.5"
3572
+ }
3573
+ },
3574
+ defaultVariants: {
3575
+ variant: "default",
3576
+ size: "default"
3577
+ }
3578
+ }
3579
+ );
3580
+ var ToggleGroupContext = React5.createContext({
3581
+ size: "default",
3582
+ variant: "default"
3583
+ });
3584
+ function ToggleGroup({
1362
3585
  className,
3586
+ variant,
3587
+ size,
3588
+ children,
1363
3589
  ...props
1364
3590
  }) {
1365
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1366
- SheetPrimitive.Description,
3591
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3592
+ ToggleGroupPrimitive.Root,
1367
3593
  {
1368
- "data-slot": "sheet-description",
1369
- className: (0, import_utils20.cn)("text-muted-foreground text-sm", className),
1370
- ...props
3594
+ "data-slot": "toggle-group",
3595
+ "data-variant": variant,
3596
+ "data-size": size,
3597
+ className: (0, import_utils41.cn)(
3598
+ "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
3599
+ className
3600
+ ),
3601
+ ...props,
3602
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
3603
+ }
3604
+ );
3605
+ }
3606
+ function ToggleGroupItem({
3607
+ className,
3608
+ children,
3609
+ variant,
3610
+ size,
3611
+ ...props
3612
+ }) {
3613
+ const context = React5.useContext(ToggleGroupContext);
3614
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3615
+ ToggleGroupPrimitive.Item,
3616
+ {
3617
+ "data-slot": "toggle-group-item",
3618
+ "data-variant": context.variant || variant,
3619
+ "data-size": context.size || size,
3620
+ className: (0, import_utils41.cn)(
3621
+ toggleGroupItemVariants({
3622
+ variant: context.variant || variant,
3623
+ size: context.size || size
3624
+ }),
3625
+ "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
3626
+ className
3627
+ ),
3628
+ ...props,
3629
+ children
1371
3630
  }
1372
3631
  );
1373
3632
  }
1374
3633
 
1375
3634
  // src/components/tooltip/index.tsx
3635
+ var import_utils42 = require("@foundrykit/utils");
1376
3636
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
1377
- var import_utils21 = require("@foundrykit/utils");
1378
- var import_jsx_runtime21 = require("react/jsx-runtime");
3637
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1379
3638
  function TooltipProvider({
1380
3639
  delayDuration = 0,
1381
3640
  ...props
1382
3641
  }) {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3642
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1384
3643
  TooltipPrimitive.Provider,
1385
3644
  {
1386
3645
  "data-slot": "tooltip-provider",
@@ -1392,12 +3651,12 @@ function TooltipProvider({
1392
3651
  function Tooltip({
1393
3652
  ...props
1394
3653
  }) {
1395
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
3654
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
1396
3655
  }
1397
3656
  function TooltipTrigger({
1398
3657
  ...props
1399
3658
  }) {
1400
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
3659
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
1401
3660
  }
1402
3661
  function TooltipContent({
1403
3662
  className,
@@ -1405,86 +3664,192 @@ function TooltipContent({
1405
3664
  children,
1406
3665
  ...props
1407
3666
  }) {
1408
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
3667
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
1409
3668
  TooltipPrimitive.Content,
1410
3669
  {
1411
3670
  "data-slot": "tooltip-content",
1412
3671
  sideOffset,
1413
- className: (0, import_utils21.cn)(
1414
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs",
3672
+ className: (0, import_utils42.cn)(
3673
+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
1415
3674
  className
1416
3675
  ),
1417
3676
  ...props,
1418
3677
  children: [
1419
3678
  children,
1420
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
3679
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1421
3680
  ]
1422
3681
  }
1423
3682
  ) });
1424
3683
  }
1425
3684
 
1426
- // src/components/scroll-area/index.tsx
1427
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
1428
- var import_utils22 = require("@foundrykit/utils");
1429
- var import_jsx_runtime22 = require("react/jsx-runtime");
1430
- function ScrollArea({
3685
+ // src/components/typography/index.tsx
3686
+ var import_utils43 = require("@foundrykit/utils");
3687
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3688
+ function TypographyH1({ className, ...props }) {
3689
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3690
+ "h1",
3691
+ {
3692
+ "data-slot": "typography-h1",
3693
+ className: (0, import_utils43.cn)(
3694
+ "scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",
3695
+ className
3696
+ ),
3697
+ ...props
3698
+ }
3699
+ );
3700
+ }
3701
+ function TypographyH2({ className, ...props }) {
3702
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3703
+ "h2",
3704
+ {
3705
+ "data-slot": "typography-h2",
3706
+ className: (0, import_utils43.cn)(
3707
+ "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0",
3708
+ className
3709
+ ),
3710
+ ...props
3711
+ }
3712
+ );
3713
+ }
3714
+ function TypographyH3({ className, ...props }) {
3715
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3716
+ "h3",
3717
+ {
3718
+ "data-slot": "typography-h3",
3719
+ className: (0, import_utils43.cn)(
3720
+ "scroll-m-20 text-2xl font-semibold tracking-tight",
3721
+ className
3722
+ ),
3723
+ ...props
3724
+ }
3725
+ );
3726
+ }
3727
+ function TypographyH4({ className, ...props }) {
3728
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3729
+ "h4",
3730
+ {
3731
+ "data-slot": "typography-h4",
3732
+ className: (0, import_utils43.cn)(
3733
+ "scroll-m-20 text-xl font-semibold tracking-tight",
3734
+ className
3735
+ ),
3736
+ ...props
3737
+ }
3738
+ );
3739
+ }
3740
+ function TypographyP({ className, ...props }) {
3741
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3742
+ "p",
3743
+ {
3744
+ "data-slot": "typography-p",
3745
+ className: (0, import_utils43.cn)("leading-7 [&:not(:first-child)]:mt-6", className),
3746
+ ...props
3747
+ }
3748
+ );
3749
+ }
3750
+ function TypographyBlockquote({
1431
3751
  className,
1432
- children,
1433
3752
  ...props
1434
3753
  }) {
1435
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1436
- ScrollAreaPrimitive.Root,
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3755
+ "blockquote",
1437
3756
  {
1438
- "data-slot": "scroll-area",
1439
- className: (0, import_utils22.cn)("relative", className),
1440
- ...props,
1441
- children: [
1442
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1443
- ScrollAreaPrimitive.Viewport,
1444
- {
1445
- "data-slot": "scroll-area-viewport",
1446
- className: "focus-visible:ring-ring/50 size-full h-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px]",
1447
- children
1448
- }
1449
- ),
1450
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ScrollBar, {}),
1451
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ScrollAreaPrimitive.Corner, {})
1452
- ]
3757
+ "data-slot": "typography-blockquote",
3758
+ className: (0, import_utils43.cn)("mt-6 border-l-2 pl-6 italic", className),
3759
+ ...props
1453
3760
  }
1454
3761
  );
1455
3762
  }
1456
- function ScrollBar({
3763
+ function TypographyList({ className, ...props }) {
3764
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3765
+ "ul",
3766
+ {
3767
+ "data-slot": "typography-list",
3768
+ className: (0, import_utils43.cn)("my-6 ml-6 list-disc [&>li]:mt-2", className),
3769
+ ...props
3770
+ }
3771
+ );
3772
+ }
3773
+ function TypographyInlineCode({
1457
3774
  className,
1458
- orientation = "vertical",
1459
3775
  ...props
1460
3776
  }) {
1461
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1462
- ScrollAreaPrimitive.ScrollAreaScrollbar,
3777
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3778
+ "code",
1463
3779
  {
1464
- "data-slot": "scroll-area-scrollbar",
1465
- orientation,
1466
- className: (0, import_utils22.cn)(
1467
- "flex touch-none select-none p-px transition-colors",
1468
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
1469
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
3780
+ "data-slot": "typography-inline-code",
3781
+ className: (0, import_utils43.cn)(
3782
+ "bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",
1470
3783
  className
1471
3784
  ),
1472
- ...props,
1473
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1474
- ScrollAreaPrimitive.ScrollAreaThumb,
1475
- {
1476
- "data-slot": "scroll-area-thumb",
1477
- className: "bg-border relative flex-1 rounded-full"
1478
- }
1479
- )
3785
+ ...props
3786
+ }
3787
+ );
3788
+ }
3789
+ function TypographyLead({ className, ...props }) {
3790
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3791
+ "p",
3792
+ {
3793
+ "data-slot": "typography-lead",
3794
+ className: (0, import_utils43.cn)("text-muted-foreground text-xl", className),
3795
+ ...props
3796
+ }
3797
+ );
3798
+ }
3799
+ function TypographyLarge({ className, ...props }) {
3800
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3801
+ "div",
3802
+ {
3803
+ "data-slot": "typography-large",
3804
+ className: (0, import_utils43.cn)("text-lg font-semibold", className),
3805
+ ...props
3806
+ }
3807
+ );
3808
+ }
3809
+ function TypographySmall({
3810
+ className,
3811
+ ...props
3812
+ }) {
3813
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3814
+ "small",
3815
+ {
3816
+ "data-slot": "typography-small",
3817
+ className: (0, import_utils43.cn)("text-sm leading-none font-medium", className),
3818
+ ...props
3819
+ }
3820
+ );
3821
+ }
3822
+ function TypographyMuted({ className, ...props }) {
3823
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3824
+ "p",
3825
+ {
3826
+ "data-slot": "typography-muted",
3827
+ className: (0, import_utils43.cn)("text-muted-foreground text-sm", className),
3828
+ ...props
1480
3829
  }
1481
3830
  );
1482
3831
  }
1483
-
1484
- // src/index.ts
1485
- var import_utils23 = require("@foundrykit/utils");
1486
3832
  // Annotate the CommonJS export names for ESM import in node:
1487
3833
  0 && (module.exports = {
3834
+ Accordion,
3835
+ AccordionContent,
3836
+ AccordionItem,
3837
+ AccordionTrigger,
3838
+ Alert,
3839
+ AlertDescription,
3840
+ AlertDialog,
3841
+ AlertDialogAction,
3842
+ AlertDialogCancel,
3843
+ AlertDialogContent,
3844
+ AlertDialogDescription,
3845
+ AlertDialogFooter,
3846
+ AlertDialogHeader,
3847
+ AlertDialogOverlay,
3848
+ AlertDialogPortal,
3849
+ AlertDialogTitle,
3850
+ AlertDialogTrigger,
3851
+ AlertTitle,
3852
+ AspectRatio,
1488
3853
  Avatar,
1489
3854
  AvatarFallback,
1490
3855
  AvatarImage,
@@ -1497,6 +3862,9 @@ var import_utils23 = require("@foundrykit/utils");
1497
3862
  BreadcrumbPage,
1498
3863
  BreadcrumbSeparator,
1499
3864
  Button,
3865
+ ButtonGroup,
3866
+ ButtonGroupSeparator,
3867
+ ButtonGroupText,
1500
3868
  Card,
1501
3869
  CardContent,
1502
3870
  CardDescription,
@@ -1504,6 +3872,24 @@ var import_utils23 = require("@foundrykit/utils");
1504
3872
  CardHeader,
1505
3873
  CardTitle,
1506
3874
  Checkbox,
3875
+ Collapsible,
3876
+ CollapsibleContent,
3877
+ CollapsibleTrigger,
3878
+ ContextMenu,
3879
+ ContextMenuCheckboxItem,
3880
+ ContextMenuContent,
3881
+ ContextMenuGroup,
3882
+ ContextMenuItem,
3883
+ ContextMenuLabel,
3884
+ ContextMenuPortal,
3885
+ ContextMenuRadioGroup,
3886
+ ContextMenuRadioItem,
3887
+ ContextMenuSeparator,
3888
+ ContextMenuShortcut,
3889
+ ContextMenuSub,
3890
+ ContextMenuSubContent,
3891
+ ContextMenuSubTrigger,
3892
+ ContextMenuTrigger,
1507
3893
  Dialog,
1508
3894
  DialogClose,
1509
3895
  DialogContent,
@@ -1512,6 +3898,17 @@ var import_utils23 = require("@foundrykit/utils");
1512
3898
  DialogHeader,
1513
3899
  DialogTitle,
1514
3900
  DialogTrigger,
3901
+ DirectionProvider,
3902
+ Drawer,
3903
+ DrawerClose,
3904
+ DrawerContent,
3905
+ DrawerDescription,
3906
+ DrawerFooter,
3907
+ DrawerHeader,
3908
+ DrawerOverlay,
3909
+ DrawerPortal,
3910
+ DrawerTitle,
3911
+ DrawerTrigger,
1515
3912
  DropdownMenu,
1516
3913
  DropdownMenuCheckboxItem,
1517
3914
  DropdownMenuContent,
@@ -1527,14 +3924,74 @@ var import_utils23 = require("@foundrykit/utils");
1527
3924
  DropdownMenuSubContent,
1528
3925
  DropdownMenuSubTrigger,
1529
3926
  DropdownMenuTrigger,
3927
+ Empty,
3928
+ EmptyContent,
3929
+ EmptyDescription,
3930
+ EmptyHeader,
3931
+ EmptyMedia,
3932
+ EmptyTitle,
3933
+ Field,
3934
+ FieldContent,
3935
+ FieldDescription,
3936
+ FieldError,
3937
+ FieldGroup,
3938
+ FieldLabel,
3939
+ FieldLegend,
3940
+ FieldSeparator,
3941
+ FieldSet,
3942
+ FieldTitle,
3943
+ HoverCard,
3944
+ HoverCardContent,
3945
+ HoverCardTrigger,
1530
3946
  Input,
3947
+ Item,
3948
+ ItemActions,
3949
+ ItemContent,
3950
+ ItemDescription,
3951
+ ItemFooter,
3952
+ ItemGroup,
3953
+ ItemHeader,
3954
+ ItemMedia,
3955
+ ItemSeparator,
3956
+ ItemTitle,
3957
+ Kbd,
3958
+ KbdGroup,
1531
3959
  Label,
3960
+ Menubar,
3961
+ MenubarCheckboxItem,
3962
+ MenubarContent,
3963
+ MenubarGroup,
3964
+ MenubarItem,
3965
+ MenubarLabel,
3966
+ MenubarMenu,
3967
+ MenubarPortal,
3968
+ MenubarRadioGroup,
3969
+ MenubarRadioItem,
3970
+ MenubarSeparator,
3971
+ MenubarShortcut,
3972
+ MenubarSub,
3973
+ MenubarSubContent,
3974
+ MenubarSubTrigger,
3975
+ MenubarTrigger,
3976
+ NativeSelect,
3977
+ NavigationMenu,
3978
+ NavigationMenuContent,
3979
+ NavigationMenuIndicator,
3980
+ NavigationMenuItem,
3981
+ NavigationMenuLink,
3982
+ NavigationMenuList,
3983
+ NavigationMenuTrigger,
3984
+ NavigationMenuViewport,
1532
3985
  Popover,
1533
3986
  PopoverAnchor,
1534
3987
  PopoverContent,
1535
3988
  PopoverTrigger,
3989
+ Progress,
1536
3990
  RadioGroup,
1537
3991
  RadioGroupItem,
3992
+ ResizableHandle,
3993
+ ResizablePanel,
3994
+ ResizablePanelGroup,
1538
3995
  ScrollArea,
1539
3996
  ScrollBar,
1540
3997
  Select,
@@ -1557,19 +4014,53 @@ var import_utils23 = require("@foundrykit/utils");
1557
4014
  SheetTitle,
1558
4015
  SheetTrigger,
1559
4016
  Skeleton,
4017
+ Slider,
4018
+ Spinner,
1560
4019
  Switch,
4020
+ Table,
4021
+ TableBody,
4022
+ TableCaption,
4023
+ TableCell,
4024
+ TableFooter,
4025
+ TableHead,
4026
+ TableHeader,
4027
+ TableRow,
1561
4028
  Tabs,
1562
4029
  TabsContent,
1563
4030
  TabsList,
1564
4031
  TabsTrigger,
1565
4032
  Textarea,
4033
+ Toaster,
1566
4034
  Toggle,
4035
+ ToggleGroup,
4036
+ ToggleGroupItem,
1567
4037
  Tooltip,
1568
4038
  TooltipContent,
1569
4039
  TooltipProvider,
1570
4040
  TooltipTrigger,
4041
+ TypographyBlockquote,
4042
+ TypographyH1,
4043
+ TypographyH2,
4044
+ TypographyH3,
4045
+ TypographyH4,
4046
+ TypographyInlineCode,
4047
+ TypographyLarge,
4048
+ TypographyLead,
4049
+ TypographyList,
4050
+ TypographyMuted,
4051
+ TypographyP,
4052
+ TypographySmall,
4053
+ alertVariants,
1571
4054
  badgeVariants,
4055
+ buttonGroupVariants,
1572
4056
  buttonVariants,
1573
4057
  cn,
1574
- toggleVariants
4058
+ emptyMediaVariants,
4059
+ fieldVariants,
4060
+ itemMediaVariants,
4061
+ itemVariants,
4062
+ navigationMenuTriggerStyle,
4063
+ toast,
4064
+ toggleVariants,
4065
+ useDirection
1575
4066
  });