@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
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/drawer/index.tsx
22
+ var drawer_exports = {};
23
+ __export(drawer_exports, {
24
+ Drawer: () => Drawer,
25
+ DrawerClose: () => DrawerClose,
26
+ DrawerContent: () => DrawerContent,
27
+ DrawerDescription: () => DrawerDescription,
28
+ DrawerFooter: () => DrawerFooter,
29
+ DrawerHeader: () => DrawerHeader,
30
+ DrawerOverlay: () => DrawerOverlay,
31
+ DrawerPortal: () => DrawerPortal,
32
+ DrawerTitle: () => DrawerTitle,
33
+ DrawerTrigger: () => DrawerTrigger
34
+ });
35
+ module.exports = __toCommonJS(drawer_exports);
36
+ var import_utils = require("@foundrykit/utils");
37
+ var import_vaul = require("vaul");
38
+ var import_jsx_runtime = require("react/jsx-runtime");
39
+ function Drawer({
40
+ ...props
41
+ }) {
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vaul.Drawer.Root, { "data-slot": "drawer", ...props });
43
+ }
44
+ function DrawerTrigger({
45
+ ...props
46
+ }) {
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
48
+ }
49
+ function DrawerPortal({
50
+ ...props
51
+ }) {
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
53
+ }
54
+ function DrawerClose({
55
+ ...props
56
+ }) {
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
58
+ }
59
+ function DrawerOverlay({
60
+ className,
61
+ ...props
62
+ }) {
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ import_vaul.Drawer.Overlay,
65
+ {
66
+ "data-slot": "drawer-overlay",
67
+ className: (0, import_utils.cn)(
68
+ "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",
69
+ className
70
+ ),
71
+ ...props
72
+ }
73
+ );
74
+ }
75
+ function DrawerContent({
76
+ className,
77
+ children,
78
+ ...props
79
+ }) {
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerPortal, { children: [
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerOverlay, {}),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
83
+ import_vaul.Drawer.Content,
84
+ {
85
+ "data-slot": "drawer-content",
86
+ className: (0, import_utils.cn)(
87
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
88
+ "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",
89
+ "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",
90
+ "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",
91
+ "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",
92
+ className
93
+ ),
94
+ ...props,
95
+ children: [
96
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
97
+ children
98
+ ]
99
+ }
100
+ )
101
+ ] });
102
+ }
103
+ function DrawerHeader({ className, ...props }) {
104
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
+ "div",
106
+ {
107
+ "data-slot": "drawer-header",
108
+ className: (0, import_utils.cn)(
109
+ "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",
110
+ className
111
+ ),
112
+ ...props
113
+ }
114
+ );
115
+ }
116
+ function DrawerFooter({ className, ...props }) {
117
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
118
+ "div",
119
+ {
120
+ "data-slot": "drawer-footer",
121
+ className: (0, import_utils.cn)("mt-auto flex flex-col gap-2 p-4", className),
122
+ ...props
123
+ }
124
+ );
125
+ }
126
+ function DrawerTitle({
127
+ className,
128
+ ...props
129
+ }) {
130
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
131
+ import_vaul.Drawer.Title,
132
+ {
133
+ "data-slot": "drawer-title",
134
+ className: (0, import_utils.cn)("text-foreground font-semibold", className),
135
+ ...props
136
+ }
137
+ );
138
+ }
139
+ function DrawerDescription({
140
+ className,
141
+ ...props
142
+ }) {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
144
+ import_vaul.Drawer.Description,
145
+ {
146
+ "data-slot": "drawer-description",
147
+ className: (0, import_utils.cn)("text-muted-foreground text-sm", className),
148
+ ...props
149
+ }
150
+ );
151
+ }
152
+ // Annotate the CommonJS export names for ESM import in node:
153
+ 0 && (module.exports = {
154
+ Drawer,
155
+ DrawerClose,
156
+ DrawerContent,
157
+ DrawerDescription,
158
+ DrawerFooter,
159
+ DrawerHeader,
160
+ DrawerOverlay,
161
+ DrawerPortal,
162
+ DrawerTitle,
163
+ DrawerTrigger
164
+ });
@@ -0,0 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Drawer as Drawer$1 } from 'vaul';
4
+
5
+ /**
6
+ * Drawer built on `vaul` for touch-friendly, swipe-dismissable panels that
7
+ * slide in from any edge. Compose with {@link DrawerTrigger},
8
+ * {@link DrawerContent}, {@link DrawerHeader}, {@link DrawerTitle},
9
+ * {@link DrawerDescription} and {@link DrawerFooter}.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Drawer>
14
+ * <DrawerTrigger>Open</DrawerTrigger>
15
+ * <DrawerContent>
16
+ * <DrawerHeader>
17
+ * <DrawerTitle>Are you sure?</DrawerTitle>
18
+ * <DrawerDescription>This cannot be undone.</DrawerDescription>
19
+ * </DrawerHeader>
20
+ * </DrawerContent>
21
+ * </Drawer>
22
+ * ```
23
+ */
24
+ declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
25
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
26
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
27
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
28
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
29
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
30
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
31
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
32
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
33
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
34
+
35
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
@@ -0,0 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Drawer as Drawer$1 } from 'vaul';
4
+
5
+ /**
6
+ * Drawer built on `vaul` for touch-friendly, swipe-dismissable panels that
7
+ * slide in from any edge. Compose with {@link DrawerTrigger},
8
+ * {@link DrawerContent}, {@link DrawerHeader}, {@link DrawerTitle},
9
+ * {@link DrawerDescription} and {@link DrawerFooter}.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Drawer>
14
+ * <DrawerTrigger>Open</DrawerTrigger>
15
+ * <DrawerContent>
16
+ * <DrawerHeader>
17
+ * <DrawerTitle>Are you sure?</DrawerTitle>
18
+ * <DrawerDescription>This cannot be undone.</DrawerDescription>
19
+ * </DrawerHeader>
20
+ * </DrawerContent>
21
+ * </Drawer>
22
+ * ```
23
+ */
24
+ declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
25
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
26
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
27
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
28
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
29
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
30
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
31
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
32
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
33
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
34
+
35
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import {
3
+ Drawer,
4
+ DrawerClose,
5
+ DrawerContent,
6
+ DrawerDescription,
7
+ DrawerFooter,
8
+ DrawerHeader,
9
+ DrawerOverlay,
10
+ DrawerPortal,
11
+ DrawerTitle,
12
+ DrawerTrigger
13
+ } from "../../chunk-ED6T7ZZN.js";
14
+ export {
15
+ Drawer,
16
+ DrawerClose,
17
+ DrawerContent,
18
+ DrawerDescription,
19
+ DrawerFooter,
20
+ DrawerHeader,
21
+ DrawerOverlay,
22
+ DrawerPortal,
23
+ DrawerTitle,
24
+ DrawerTrigger
25
+ };
@@ -48,9 +48,9 @@ __export(dropdown_exports, {
48
48
  DropdownMenuTrigger: () => DropdownMenuTrigger
49
49
  });
50
50
  module.exports = __toCommonJS(dropdown_exports);
51
+ var import_utils = require("@foundrykit/utils");
51
52
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
52
53
  var import_lucide_react = require("lucide-react");
53
- var import_utils = require("@foundrykit/utils");
54
54
  var import_jsx_runtime = require("react/jsx-runtime");
55
55
  function DropdownMenu({
56
56
  ...props
@@ -84,7 +84,7 @@ function DropdownMenuContent({
84
84
  "data-slot": "dropdown-menu-content",
85
85
  sideOffset,
86
86
  className: (0, import_utils.cn)(
87
- "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",
87
+ "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",
88
88
  className
89
89
  ),
90
90
  ...props
@@ -109,7 +109,7 @@ function DropdownMenuItem({
109
109
  "data-inset": inset,
110
110
  "data-variant": variant,
111
111
  className: (0, import_utils.cn)(
112
- "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",
112
+ "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",
113
113
  className
114
114
  ),
115
115
  ...props
@@ -127,7 +127,7 @@ function DropdownMenuCheckboxItem({
127
127
  {
128
128
  "data-slot": "dropdown-menu-checkbox-item",
129
129
  className: (0, import_utils.cn)(
130
- "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",
130
+ "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",
131
131
  className
132
132
  ),
133
133
  checked,
@@ -160,7 +160,7 @@ function DropdownMenuRadioItem({
160
160
  {
161
161
  "data-slot": "dropdown-menu-radio-item",
162
162
  className: (0, import_utils.cn)(
163
- "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",
163
+ "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",
164
164
  className
165
165
  ),
166
166
  ...props,
@@ -235,7 +235,7 @@ function DropdownMenuSubTrigger({
235
235
  "data-slot": "dropdown-menu-sub-trigger",
236
236
  "data-inset": inset,
237
237
  className: (0, import_utils.cn)(
238
- "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",
238
+ "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",
239
239
  className
240
240
  ),
241
241
  ...props,
@@ -255,7 +255,7 @@ function DropdownMenuSubContent({
255
255
  {
256
256
  "data-slot": "dropdown-menu-sub-content",
257
257
  className: (0, import_utils.cn)(
258
- "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",
258
+ "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",
259
259
  className
260
260
  ),
261
261
  ...props
@@ -1,12 +1,36 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
2
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ import * as React from 'react';
4
4
 
5
+ /**
6
+ * Dropdown menu root built on Radix `DropdownMenu.Root`. Compose with
7
+ * {@link DropdownMenuTrigger}, {@link DropdownMenuContent} and items such as
8
+ * {@link DropdownMenuItem}, {@link DropdownMenuCheckboxItem},
9
+ * {@link DropdownMenuRadioItem}, {@link DropdownMenuLabel},
10
+ * {@link DropdownMenuSeparator}, {@link DropdownMenuShortcut} and submenus
11
+ * ({@link DropdownMenuSub}, {@link DropdownMenuSubTrigger},
12
+ * {@link DropdownMenuSubContent}).
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <DropdownMenu>
17
+ * <DropdownMenuTrigger>Open</DropdownMenuTrigger>
18
+ * <DropdownMenuContent>
19
+ * <DropdownMenuItem>Edit</DropdownMenuItem>
20
+ * <DropdownMenuItem variant="destructive">Delete</DropdownMenuItem>
21
+ * </DropdownMenuContent>
22
+ * </DropdownMenu>
23
+ * ```
24
+ */
5
25
  declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
26
  declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
7
27
  declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
8
28
  declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
9
29
  declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
30
+ /**
31
+ * Selectable menu item. Use `variant="destructive"` for dangerous actions and
32
+ * `inset` to align text with items that have leading icons.
33
+ */
10
34
  declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
11
35
  inset?: boolean;
12
36
  variant?: 'default' | 'destructive';
@@ -1,12 +1,36 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
2
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ import * as React from 'react';
4
4
 
5
+ /**
6
+ * Dropdown menu root built on Radix `DropdownMenu.Root`. Compose with
7
+ * {@link DropdownMenuTrigger}, {@link DropdownMenuContent} and items such as
8
+ * {@link DropdownMenuItem}, {@link DropdownMenuCheckboxItem},
9
+ * {@link DropdownMenuRadioItem}, {@link DropdownMenuLabel},
10
+ * {@link DropdownMenuSeparator}, {@link DropdownMenuShortcut} and submenus
11
+ * ({@link DropdownMenuSub}, {@link DropdownMenuSubTrigger},
12
+ * {@link DropdownMenuSubContent}).
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <DropdownMenu>
17
+ * <DropdownMenuTrigger>Open</DropdownMenuTrigger>
18
+ * <DropdownMenuContent>
19
+ * <DropdownMenuItem>Edit</DropdownMenuItem>
20
+ * <DropdownMenuItem variant="destructive">Delete</DropdownMenuItem>
21
+ * </DropdownMenuContent>
22
+ * </DropdownMenu>
23
+ * ```
24
+ */
5
25
  declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
26
  declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
7
27
  declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
8
28
  declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
9
29
  declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
30
+ /**
31
+ * Selectable menu item. Use `variant="destructive"` for dangerous actions and
32
+ * `inset` to align text with items that have leading icons.
33
+ */
10
34
  declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
11
35
  inset?: boolean;
12
36
  variant?: 'default' | 'destructive';
@@ -15,7 +15,7 @@ import {
15
15
  DropdownMenuSubContent,
16
16
  DropdownMenuSubTrigger,
17
17
  DropdownMenuTrigger
18
- } from "../../chunk-PHMEWMFS.js";
18
+ } from "../../chunk-D4X2ZO5T.js";
19
19
  export {
20
20
  DropdownMenu,
21
21
  DropdownMenuCheckboxItem,
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/empty/index.tsx
21
+ var empty_exports = {};
22
+ __export(empty_exports, {
23
+ Empty: () => Empty,
24
+ EmptyContent: () => EmptyContent,
25
+ EmptyDescription: () => EmptyDescription,
26
+ EmptyHeader: () => EmptyHeader,
27
+ EmptyMedia: () => EmptyMedia,
28
+ EmptyTitle: () => EmptyTitle,
29
+ emptyMediaVariants: () => emptyMediaVariants
30
+ });
31
+ module.exports = __toCommonJS(empty_exports);
32
+ var import_utils = require("@foundrykit/utils");
33
+ var import_class_variance_authority = require("class-variance-authority");
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ function Empty({ className, ...props }) {
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
+ "div",
38
+ {
39
+ "data-slot": "empty",
40
+ className: (0, import_utils.cn)(
41
+ "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",
42
+ className
43
+ ),
44
+ ...props
45
+ }
46
+ );
47
+ }
48
+ function EmptyHeader({ className, ...props }) {
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ "div",
51
+ {
52
+ "data-slot": "empty-header",
53
+ className: (0, import_utils.cn)(
54
+ "flex max-w-sm flex-col items-center gap-2 text-center",
55
+ className
56
+ ),
57
+ ...props
58
+ }
59
+ );
60
+ }
61
+ var emptyMediaVariants = (0, import_class_variance_authority.cva)(
62
+ "mb-2 flex shrink-0 items-center justify-center [&_svg:not([class*=size-])]:size-6",
63
+ {
64
+ variants: {
65
+ variant: {
66
+ default: "bg-transparent",
67
+ icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-6"
68
+ }
69
+ },
70
+ defaultVariants: {
71
+ variant: "default"
72
+ }
73
+ }
74
+ );
75
+ function EmptyMedia({
76
+ className,
77
+ variant,
78
+ ...props
79
+ }) {
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
81
+ "div",
82
+ {
83
+ "data-slot": "empty-media",
84
+ "data-variant": variant,
85
+ className: (0, import_utils.cn)(emptyMediaVariants({ variant }), className),
86
+ ...props
87
+ }
88
+ );
89
+ }
90
+ function EmptyTitle({ className, ...props }) {
91
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
92
+ "div",
93
+ {
94
+ "data-slot": "empty-title",
95
+ className: (0, import_utils.cn)("text-lg font-medium tracking-tight", className),
96
+ ...props
97
+ }
98
+ );
99
+ }
100
+ function EmptyDescription({ className, ...props }) {
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ "p",
103
+ {
104
+ "data-slot": "empty-description",
105
+ className: (0, import_utils.cn)(
106
+ "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
107
+ className
108
+ ),
109
+ ...props
110
+ }
111
+ );
112
+ }
113
+ function EmptyContent({ className, ...props }) {
114
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
115
+ "div",
116
+ {
117
+ "data-slot": "empty-content",
118
+ className: (0, import_utils.cn)(
119
+ "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
120
+ className
121
+ ),
122
+ ...props
123
+ }
124
+ );
125
+ }
126
+ // Annotate the CommonJS export names for ESM import in node:
127
+ 0 && (module.exports = {
128
+ Empty,
129
+ EmptyContent,
130
+ EmptyDescription,
131
+ EmptyHeader,
132
+ EmptyMedia,
133
+ EmptyTitle,
134
+ emptyMediaVariants
135
+ });
@@ -0,0 +1,38 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as React from 'react';
5
+
6
+ /**
7
+ * Empty-state container for communicating that there is no content to show.
8
+ * Compose with {@link EmptyHeader}, {@link EmptyMedia}, {@link EmptyTitle},
9
+ * {@link EmptyDescription} and {@link EmptyContent} to build a centered,
10
+ * illustrated message with optional actions.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <Empty>
15
+ * <EmptyHeader>
16
+ * <EmptyMedia variant="icon">
17
+ * <InboxIcon />
18
+ * </EmptyMedia>
19
+ * <EmptyTitle>No messages</EmptyTitle>
20
+ * <EmptyDescription>You're all caught up.</EmptyDescription>
21
+ * </EmptyHeader>
22
+ * <EmptyContent>
23
+ * <Button>Refresh</Button>
24
+ * </EmptyContent>
25
+ * </Empty>
26
+ * ```
27
+ */
28
+ declare function Empty({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
29
+ declare function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
30
+ declare const emptyMediaVariants: (props?: ({
31
+ variant?: "default" | "icon" | null | undefined;
32
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
33
+ declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime.JSX.Element;
34
+ declare function EmptyTitle({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
35
+ declare function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
36
+ declare function EmptyContent({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
37
+
38
+ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants };
@@ -0,0 +1,38 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as React from 'react';
5
+
6
+ /**
7
+ * Empty-state container for communicating that there is no content to show.
8
+ * Compose with {@link EmptyHeader}, {@link EmptyMedia}, {@link EmptyTitle},
9
+ * {@link EmptyDescription} and {@link EmptyContent} to build a centered,
10
+ * illustrated message with optional actions.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <Empty>
15
+ * <EmptyHeader>
16
+ * <EmptyMedia variant="icon">
17
+ * <InboxIcon />
18
+ * </EmptyMedia>
19
+ * <EmptyTitle>No messages</EmptyTitle>
20
+ * <EmptyDescription>You're all caught up.</EmptyDescription>
21
+ * </EmptyHeader>
22
+ * <EmptyContent>
23
+ * <Button>Refresh</Button>
24
+ * </EmptyContent>
25
+ * </Empty>
26
+ * ```
27
+ */
28
+ declare function Empty({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
29
+ declare function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
30
+ declare const emptyMediaVariants: (props?: ({
31
+ variant?: "default" | "icon" | null | undefined;
32
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
33
+ declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime.JSX.Element;
34
+ declare function EmptyTitle({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
35
+ declare function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
36
+ declare function EmptyContent({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
37
+
38
+ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants };
@@ -0,0 +1,18 @@
1
+ import {
2
+ Empty,
3
+ EmptyContent,
4
+ EmptyDescription,
5
+ EmptyHeader,
6
+ EmptyMedia,
7
+ EmptyTitle,
8
+ emptyMediaVariants
9
+ } from "../../chunk-44I6VK3H.js";
10
+ export {
11
+ Empty,
12
+ EmptyContent,
13
+ EmptyDescription,
14
+ EmptyHeader,
15
+ EmptyMedia,
16
+ EmptyTitle,
17
+ emptyMediaVariants
18
+ };