@nayhoo/ui 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/README.md +3 -3
  2. package/dist/avatar.css-BKo21sUI.d.mts +98 -0
  3. package/dist/avatar.css-BKo21sUI.d.ts +98 -0
  4. package/dist/badge.css-ToNvOJof.d.mts +36 -0
  5. package/dist/badge.css-ToNvOJof.d.ts +36 -0
  6. package/dist/box.css-ic5Toaj1.d.mts +7 -0
  7. package/dist/box.css-ic5Toaj1.d.ts +7 -0
  8. package/dist/button.css-CU-ScpcU.d.mts +122 -0
  9. package/dist/button.css-CU-ScpcU.d.ts +122 -0
  10. package/dist/card.css-r1QAh--W.d.mts +19 -0
  11. package/dist/card.css-r1QAh--W.d.ts +19 -0
  12. package/dist/checkbox.css-BlFMNrMD.d.mts +22 -0
  13. package/dist/checkbox.css-BlFMNrMD.d.ts +22 -0
  14. package/dist/chunk-3RLW7QB4.mjs +14 -0
  15. package/dist/chunk-3RLW7QB4.mjs.map +1 -0
  16. package/dist/chunk-3Z2HB2J6.mjs +25 -0
  17. package/dist/chunk-3Z2HB2J6.mjs.map +1 -0
  18. package/dist/chunk-4N6P3Y54.mjs +13 -0
  19. package/dist/chunk-4N6P3Y54.mjs.map +1 -0
  20. package/dist/chunk-52RVZRC4.mjs +25 -0
  21. package/dist/chunk-52RVZRC4.mjs.map +1 -0
  22. package/dist/chunk-65GTB4DD.mjs +10 -0
  23. package/dist/chunk-65GTB4DD.mjs.map +1 -0
  24. package/dist/chunk-7EGQM3ZL.mjs +9 -0
  25. package/dist/chunk-7EGQM3ZL.mjs.map +1 -0
  26. package/dist/chunk-7MD4JYZV.mjs +12 -0
  27. package/dist/chunk-7MD4JYZV.mjs.map +1 -0
  28. package/dist/chunk-A2I7UNX6.mjs +25 -0
  29. package/dist/chunk-A2I7UNX6.mjs.map +1 -0
  30. package/dist/chunk-EXKRRQYL.mjs +8 -0
  31. package/dist/chunk-EXKRRQYL.mjs.map +1 -0
  32. package/dist/chunk-FG2ZBTVM.mjs +8 -0
  33. package/dist/chunk-FG2ZBTVM.mjs.map +1 -0
  34. package/dist/chunk-GI2XNLAW.mjs +39 -0
  35. package/dist/chunk-GI2XNLAW.mjs.map +1 -0
  36. package/dist/chunk-ICX6SDOZ.mjs +8 -0
  37. package/dist/chunk-ICX6SDOZ.mjs.map +1 -0
  38. package/dist/chunk-IPBDMBQP.mjs +8 -0
  39. package/dist/chunk-IPBDMBQP.mjs.map +1 -0
  40. package/dist/chunk-IRWT2CO3.mjs +8 -0
  41. package/dist/chunk-IRWT2CO3.mjs.map +1 -0
  42. package/dist/chunk-JWHPBA5J.mjs +1 -0
  43. package/dist/chunk-JWHPBA5J.mjs.map +1 -0
  44. package/dist/chunk-K625HY3P.mjs +8 -0
  45. package/dist/chunk-K625HY3P.mjs.map +1 -0
  46. package/dist/chunk-KQPNQST6.mjs +8 -0
  47. package/dist/chunk-KQPNQST6.mjs.map +1 -0
  48. package/dist/chunk-LWL4262W.mjs +8 -0
  49. package/dist/chunk-LWL4262W.mjs.map +1 -0
  50. package/dist/chunk-LZOMFHX3.mjs +38 -0
  51. package/dist/chunk-LZOMFHX3.mjs.map +1 -0
  52. package/dist/chunk-M6OYH5UA.mjs +8 -0
  53. package/dist/chunk-M6OYH5UA.mjs.map +1 -0
  54. package/dist/chunk-NU7XYEVP.mjs +43 -0
  55. package/dist/chunk-NU7XYEVP.mjs.map +1 -0
  56. package/dist/chunk-OCXG5SMA.mjs +25 -0
  57. package/dist/chunk-OCXG5SMA.mjs.map +1 -0
  58. package/dist/chunk-OETJQIMJ.mjs +7 -0
  59. package/dist/chunk-OETJQIMJ.mjs.map +1 -0
  60. package/dist/chunk-PHULHA6N.mjs +12 -0
  61. package/dist/chunk-PHULHA6N.mjs.map +1 -0
  62. package/dist/chunk-PUW3KNR3.mjs +8 -0
  63. package/dist/chunk-PUW3KNR3.mjs.map +1 -0
  64. package/dist/chunk-RAS2GZOT.mjs +25 -0
  65. package/dist/chunk-RAS2GZOT.mjs.map +1 -0
  66. package/dist/chunk-RBFEMC5M.mjs +8 -0
  67. package/dist/chunk-RBFEMC5M.mjs.map +1 -0
  68. package/dist/chunk-RD6HAWH5.mjs +8 -0
  69. package/dist/chunk-RD6HAWH5.mjs.map +1 -0
  70. package/dist/chunk-S3GY7GCD.mjs +8 -0
  71. package/dist/chunk-S3GY7GCD.mjs.map +1 -0
  72. package/dist/chunk-SI36SYJ2.mjs +8 -0
  73. package/dist/chunk-SI36SYJ2.mjs.map +1 -0
  74. package/dist/chunk-SRMXCTGE.mjs +8 -0
  75. package/dist/chunk-SRMXCTGE.mjs.map +1 -0
  76. package/dist/chunk-SZB3FEBC.mjs +8 -0
  77. package/dist/chunk-SZB3FEBC.mjs.map +1 -0
  78. package/dist/chunk-WG4IO5EQ.mjs +31 -0
  79. package/dist/chunk-WG4IO5EQ.mjs.map +1 -0
  80. package/dist/chunk-X2Q6GLO5.mjs +8 -0
  81. package/dist/chunk-X2Q6GLO5.mjs.map +1 -0
  82. package/dist/chunk-X6UXW66P.mjs +39 -0
  83. package/dist/chunk-X6UXW66P.mjs.map +1 -0
  84. package/dist/chunk-XALDYHCC.mjs +25 -0
  85. package/dist/chunk-XALDYHCC.mjs.map +1 -0
  86. package/dist/chunk-YQH4Y34B.mjs +10 -0
  87. package/dist/chunk-YQH4Y34B.mjs.map +1 -0
  88. package/dist/chunk-ZJDUO7Y6.mjs +8 -0
  89. package/dist/chunk-ZJDUO7Y6.mjs.map +1 -0
  90. package/dist/component-props-CuOrXFyX.d.mts +5 -0
  91. package/dist/component-props-CuOrXFyX.d.ts +5 -0
  92. package/dist/components/avatar.css +148 -0
  93. package/dist/components/avatar.css.map +1 -0
  94. package/dist/components/avatar.d.mts +16 -0
  95. package/dist/components/avatar.d.ts +16 -0
  96. package/dist/components/avatar.js +179 -0
  97. package/dist/components/avatar.js.map +1 -0
  98. package/dist/components/avatar.mjs +111 -0
  99. package/dist/components/avatar.mjs.map +1 -0
  100. package/dist/components/badge.css +44 -0
  101. package/dist/components/badge.css.map +1 -0
  102. package/dist/components/badge.d.mts +12 -0
  103. package/dist/components/badge.d.ts +12 -0
  104. package/dist/components/badge.js +59 -0
  105. package/dist/components/badge.js.map +1 -0
  106. package/dist/components/badge.mjs +25 -0
  107. package/dist/components/badge.mjs.map +1 -0
  108. package/dist/components/box.css +5 -0
  109. package/dist/components/box.css.map +1 -0
  110. package/dist/components/box.d.mts +10 -0
  111. package/dist/components/box.d.ts +10 -0
  112. package/dist/components/box.js +59 -0
  113. package/dist/components/box.js.map +1 -0
  114. package/dist/components/box.mjs +11 -0
  115. package/dist/components/box.mjs.map +1 -0
  116. package/dist/components/button.css +174 -0
  117. package/dist/components/button.css.map +1 -0
  118. package/dist/components/button.d.mts +10 -0
  119. package/dist/components/button.d.ts +10 -0
  120. package/dist/components/button.js +85 -0
  121. package/dist/components/button.js.map +1 -0
  122. package/dist/components/button.mjs +13 -0
  123. package/dist/components/button.mjs.map +1 -0
  124. package/dist/components/card.css +18 -0
  125. package/dist/components/card.css.map +1 -0
  126. package/dist/components/card.d.mts +10 -0
  127. package/dist/components/card.d.ts +10 -0
  128. package/dist/components/card.js +59 -0
  129. package/dist/components/card.js.map +1 -0
  130. package/dist/components/card.mjs +26 -0
  131. package/dist/components/card.mjs.map +1 -0
  132. package/dist/components/checkbox.css +47 -0
  133. package/dist/components/checkbox.css.map +1 -0
  134. package/dist/components/checkbox.d.mts +9 -0
  135. package/dist/components/checkbox.d.ts +9 -0
  136. package/dist/components/checkbox.js +78 -0
  137. package/dist/components/checkbox.js.map +1 -0
  138. package/dist/components/checkbox.mjs +34 -0
  139. package/dist/components/checkbox.mjs.map +1 -0
  140. package/dist/components/container.css +22 -0
  141. package/dist/components/container.css.map +1 -0
  142. package/dist/components/container.d.mts +10 -0
  143. package/dist/components/container.d.ts +10 -0
  144. package/dist/components/container.js +59 -0
  145. package/dist/components/container.js.map +1 -0
  146. package/dist/components/container.mjs +25 -0
  147. package/dist/components/container.mjs.map +1 -0
  148. package/dist/components/dropdown-menu.css +142 -0
  149. package/dist/components/dropdown-menu.css.map +1 -0
  150. package/dist/components/dropdown-menu.d.mts +25 -0
  151. package/dist/components/dropdown-menu.d.ts +25 -0
  152. package/dist/components/dropdown-menu.js +230 -0
  153. package/dist/components/dropdown-menu.js.map +1 -0
  154. package/dist/components/dropdown-menu.mjs +155 -0
  155. package/dist/components/dropdown-menu.mjs.map +1 -0
  156. package/dist/components/flex.css +81 -0
  157. package/dist/components/flex.css.map +1 -0
  158. package/dist/components/flex.d.mts +10 -0
  159. package/dist/components/flex.d.ts +10 -0
  160. package/dist/components/flex.js +59 -0
  161. package/dist/components/flex.js.map +1 -0
  162. package/dist/components/flex.mjs +11 -0
  163. package/dist/components/flex.mjs.map +1 -0
  164. package/dist/components/form.css +19 -0
  165. package/dist/components/form.css.map +1 -0
  166. package/dist/components/form.d.mts +17 -0
  167. package/dist/components/form.d.ts +17 -0
  168. package/dist/components/form.js +113 -0
  169. package/dist/components/form.js.map +1 -0
  170. package/dist/components/form.mjs +64 -0
  171. package/dist/components/form.mjs.map +1 -0
  172. package/dist/components/grid.css +189 -0
  173. package/dist/components/grid.css.map +1 -0
  174. package/dist/components/grid.d.mts +10 -0
  175. package/dist/components/grid.d.ts +10 -0
  176. package/dist/components/grid.js +59 -0
  177. package/dist/components/grid.js.map +1 -0
  178. package/dist/components/grid.mjs +25 -0
  179. package/dist/components/grid.mjs.map +1 -0
  180. package/dist/components/heading.css +58 -0
  181. package/dist/components/heading.css.map +1 -0
  182. package/dist/components/heading.d.mts +12 -0
  183. package/dist/components/heading.d.ts +12 -0
  184. package/dist/components/heading.js +71 -0
  185. package/dist/components/heading.js.map +1 -0
  186. package/dist/components/heading.mjs +10 -0
  187. package/dist/components/heading.mjs.map +1 -0
  188. package/dist/components/icon-button.css +125 -0
  189. package/dist/components/icon-button.css.map +1 -0
  190. package/dist/components/icon-button.d.mts +10 -0
  191. package/dist/components/icon-button.d.ts +10 -0
  192. package/dist/components/icon-button.js +85 -0
  193. package/dist/components/icon-button.js.map +1 -0
  194. package/dist/components/icon-button.mjs +13 -0
  195. package/dist/components/icon-button.mjs.map +1 -0
  196. package/dist/components/label.css +65 -0
  197. package/dist/components/label.css.map +1 -0
  198. package/dist/components/label.d.mts +12 -0
  199. package/dist/components/label.d.ts +12 -0
  200. package/dist/components/label.js +83 -0
  201. package/dist/components/label.js.map +1 -0
  202. package/dist/components/label.mjs +38 -0
  203. package/dist/components/label.mjs.map +1 -0
  204. package/dist/components/link.css +40 -0
  205. package/dist/components/link.css.map +1 -0
  206. package/dist/components/link.d.mts +10 -0
  207. package/dist/components/link.d.ts +10 -0
  208. package/dist/components/link.js +59 -0
  209. package/dist/components/link.js.map +1 -0
  210. package/dist/components/link.mjs +25 -0
  211. package/dist/components/link.mjs.map +1 -0
  212. package/dist/components/menu.css +142 -0
  213. package/dist/components/menu.css.map +1 -0
  214. package/dist/components/menu.d.mts +27 -0
  215. package/dist/components/menu.d.ts +27 -0
  216. package/dist/components/menu.js +225 -0
  217. package/dist/components/menu.js.map +1 -0
  218. package/dist/components/menu.mjs +151 -0
  219. package/dist/components/menu.mjs.map +1 -0
  220. package/dist/components/panel.css +7 -0
  221. package/dist/components/panel.css.map +1 -0
  222. package/dist/components/panel.d.mts +10 -0
  223. package/dist/components/panel.d.ts +10 -0
  224. package/dist/components/panel.js +59 -0
  225. package/dist/components/panel.js.map +1 -0
  226. package/dist/components/panel.mjs +26 -0
  227. package/dist/components/panel.mjs.map +1 -0
  228. package/dist/components/paragraph.css +58 -0
  229. package/dist/components/paragraph.css.map +1 -0
  230. package/dist/components/paragraph.d.mts +13 -0
  231. package/dist/components/paragraph.d.ts +13 -0
  232. package/dist/components/paragraph.js +59 -0
  233. package/dist/components/paragraph.js.map +1 -0
  234. package/dist/components/paragraph.mjs +10 -0
  235. package/dist/components/paragraph.mjs.map +1 -0
  236. package/dist/components/select.css +179 -0
  237. package/dist/components/select.css.map +1 -0
  238. package/dist/components/select.d.mts +25 -0
  239. package/dist/components/select.d.ts +25 -0
  240. package/dist/components/select.js +5591 -0
  241. package/dist/components/select.js.map +1 -0
  242. package/dist/components/select.mjs +5540 -0
  243. package/dist/components/select.mjs.map +1 -0
  244. package/dist/components/separator.css +13 -0
  245. package/dist/components/separator.css.map +1 -0
  246. package/dist/components/separator.d.mts +9 -0
  247. package/dist/components/separator.d.ts +9 -0
  248. package/dist/components/separator.js +74 -0
  249. package/dist/components/separator.js.map +1 -0
  250. package/dist/components/separator.mjs +30 -0
  251. package/dist/components/separator.mjs.map +1 -0
  252. package/dist/components/skeleton.css +76 -0
  253. package/dist/components/skeleton.css.map +1 -0
  254. package/dist/components/skeleton.d.mts +10 -0
  255. package/dist/components/skeleton.d.ts +10 -0
  256. package/dist/components/skeleton.js +59 -0
  257. package/dist/components/skeleton.js.map +1 -0
  258. package/dist/components/skeleton.mjs +25 -0
  259. package/dist/components/skeleton.mjs.map +1 -0
  260. package/dist/components/spinner.css +51 -0
  261. package/dist/components/spinner.css.map +1 -0
  262. package/dist/components/spinner.d.mts +10 -0
  263. package/dist/components/spinner.d.ts +10 -0
  264. package/dist/components/spinner.js +59 -0
  265. package/dist/components/spinner.js.map +1 -0
  266. package/dist/components/spinner.mjs +11 -0
  267. package/dist/components/spinner.mjs.map +1 -0
  268. package/dist/components/status.css +29 -0
  269. package/dist/components/status.css.map +1 -0
  270. package/dist/components/status.d.mts +10 -0
  271. package/dist/components/status.d.ts +10 -0
  272. package/dist/components/status.js +59 -0
  273. package/dist/components/status.js.map +1 -0
  274. package/dist/components/status.mjs +11 -0
  275. package/dist/components/status.mjs.map +1 -0
  276. package/dist/components/switch.css +49 -0
  277. package/dist/components/switch.css.map +1 -0
  278. package/dist/components/switch.d.mts +11 -0
  279. package/dist/components/switch.d.ts +11 -0
  280. package/dist/components/switch.js +88 -0
  281. package/dist/components/switch.js.map +1 -0
  282. package/dist/components/switch.mjs +43 -0
  283. package/dist/components/switch.mjs.map +1 -0
  284. package/dist/components/text-field.css +95 -0
  285. package/dist/components/text-field.css.map +1 -0
  286. package/dist/components/text-field.d.mts +10 -0
  287. package/dist/components/text-field.d.ts +10 -0
  288. package/dist/components/text-field.js +59 -0
  289. package/dist/components/text-field.js.map +1 -0
  290. package/dist/components/text-field.mjs +25 -0
  291. package/dist/components/text-field.mjs.map +1 -0
  292. package/dist/components/text.css +58 -0
  293. package/dist/components/text.css.map +1 -0
  294. package/dist/components/text.d.mts +10 -0
  295. package/dist/components/text.d.ts +10 -0
  296. package/dist/components/text.js +59 -0
  297. package/dist/components/text.js.map +1 -0
  298. package/dist/components/text.mjs +11 -0
  299. package/dist/components/text.mjs.map +1 -0
  300. package/dist/components/tooltip.css +75 -0
  301. package/dist/components/tooltip.css.map +1 -0
  302. package/dist/components/tooltip.d.mts +11 -0
  303. package/dist/components/tooltip.d.ts +11 -0
  304. package/dist/components/tooltip.js +159 -0
  305. package/dist/components/tooltip.js.map +1 -0
  306. package/dist/components/tooltip.mjs +84 -0
  307. package/dist/components/tooltip.mjs.map +1 -0
  308. package/dist/container.css-DEKRVrvD.d.mts +22 -0
  309. package/dist/container.css-DEKRVrvD.d.ts +22 -0
  310. package/dist/flex.css-CMy65zXP.d.mts +93 -0
  311. package/dist/flex.css-CMy65zXP.d.ts +93 -0
  312. package/dist/form.css-DJxDoc1T.d.mts +17 -0
  313. package/dist/form.css-DJxDoc1T.d.ts +17 -0
  314. package/dist/grid.css-BvgQR1FB.d.mts +207 -0
  315. package/dist/grid.css-BvgQR1FB.d.ts +207 -0
  316. package/dist/icon-button.css-DxZdHUEt.d.mts +54 -0
  317. package/dist/icon-button.css-DxZdHUEt.d.ts +54 -0
  318. package/dist/link.css-J250gDi8.d.mts +26 -0
  319. package/dist/link.css-J250gDi8.d.ts +26 -0
  320. package/dist/menu.css-5kJKHBR_.d.mts +13 -0
  321. package/dist/menu.css-5kJKHBR_.d.ts +13 -0
  322. package/dist/panel.css-DUVSZSQ6.d.mts +7 -0
  323. package/dist/panel.css-DUVSZSQ6.d.ts +7 -0
  324. package/dist/providers/index.css +10071 -9507
  325. package/dist/providers/index.css.map +1 -1
  326. package/dist/providers/index.d.mts +21 -1
  327. package/dist/providers/index.d.ts +21 -1
  328. package/dist/providers/index.js +377 -8
  329. package/dist/providers/index.js.map +1 -1
  330. package/dist/providers/index.mjs +250 -2
  331. package/dist/providers/index.mjs.map +1 -1
  332. package/dist/separator.css-Hl8ZhcXR.d.mts +7 -0
  333. package/dist/separator.css-Hl8ZhcXR.d.ts +7 -0
  334. package/dist/skeleton.css-JJ3Of78e.d.mts +54 -0
  335. package/dist/skeleton.css-JJ3Of78e.d.ts +54 -0
  336. package/dist/spinner.css-DDZLGtPI.d.mts +46 -0
  337. package/dist/spinner.css-DDZLGtPI.d.ts +46 -0
  338. package/dist/status.css-D2Xhx8gm.d.mts +35 -0
  339. package/dist/status.css-D2Xhx8gm.d.ts +35 -0
  340. package/dist/switch.css-Ku46q4IP.d.mts +41 -0
  341. package/dist/switch.css-Ku46q4IP.d.ts +41 -0
  342. package/dist/text-field.css-Da2cQDwY.d.mts +75 -0
  343. package/dist/text-field.css-Da2cQDwY.d.ts +75 -0
  344. package/dist/text.css-onESqiq6.d.mts +62 -0
  345. package/dist/text.css-onESqiq6.d.ts +62 -0
  346. package/dist/theme/index.css +12873 -0
  347. package/dist/theme/index.css.map +1 -0
  348. package/dist/{index.d.mts → theme/index.d.mts} +39 -1138
  349. package/dist/{index.d.ts → theme/index.d.ts} +39 -1138
  350. package/dist/theme/index.js +249 -0
  351. package/dist/theme/index.js.map +1 -0
  352. package/dist/theme/index.mjs +154 -0
  353. package/dist/theme/index.mjs.map +1 -0
  354. package/dist/tooltip.css-kATBcXZP.d.mts +14 -0
  355. package/dist/tooltip.css-kATBcXZP.d.ts +14 -0
  356. package/dist/utils/index.d.mts +8 -0
  357. package/dist/utils/index.d.ts +8 -0
  358. package/dist/utils/index.js +46 -0
  359. package/dist/utils/index.js.map +1 -0
  360. package/dist/utils/index.mjs +12 -0
  361. package/dist/utils/index.mjs.map +1 -0
  362. package/package.json +121 -7
  363. package/dist/chunk-2IKFUUSU.mjs +0 -15
  364. package/dist/chunk-2IKFUUSU.mjs.map +0 -1
  365. package/dist/index.css +0 -12615
  366. package/dist/index.css.map +0 -1
  367. package/dist/index.js +0 -1024
  368. package/dist/index.js.map +0 -1
  369. package/dist/index.mjs +0 -928
  370. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,155 @@
1
+ import {
2
+ menuItemRecipe,
3
+ menuLabelRecipe,
4
+ menuRecipe,
5
+ menuSeparatorRecipe
6
+ } from "../chunk-3RLW7QB4.mjs";
7
+ import {
8
+ panelRecipe
9
+ } from "../chunk-KQPNQST6.mjs";
10
+ import {
11
+ Flex
12
+ } from "../chunk-52RVZRC4.mjs";
13
+ import "../chunk-RD6HAWH5.mjs";
14
+ import {
15
+ theme
16
+ } from "../chunk-OETJQIMJ.mjs";
17
+ import {
18
+ Box
19
+ } from "../chunk-XALDYHCC.mjs";
20
+ import "../chunk-ZJDUO7Y6.mjs";
21
+ import "../chunk-JWHPBA5J.mjs";
22
+ import {
23
+ pick
24
+ } from "../chunk-4N6P3Y54.mjs";
25
+ import {
26
+ mergeClasses
27
+ } from "../chunk-7EGQM3ZL.mjs";
28
+ import "../chunk-LZOMFHX3.mjs";
29
+
30
+ // src/components/dropdown-menu.tsx
31
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
32
+ import { CheckIcon } from "@radix-ui/react-icons";
33
+ import { jsx, jsxs } from "react/jsx-runtime";
34
+ var DropdownMenu = DropdownMenuPrimitive.Root;
35
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
36
+ var DropdownMenuContent = ({ ...props }) => {
37
+ const menu = menuRecipe(pick(props, ...menuRecipe.variants()));
38
+ const panel = panelRecipe(pick(props, ...panelRecipe.variants()));
39
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
40
+ DropdownMenuPrimitive.Content,
41
+ {
42
+ ...props,
43
+ className: mergeClasses(menu, panel, props.className)
44
+ }
45
+ ) });
46
+ };
47
+ var DropdownMenuItem = ({ ...props }) => {
48
+ const variants = pick(props, ...menuItemRecipe.variants());
49
+ const menuItem = menuItemRecipe(variants);
50
+ return /* @__PURE__ */ jsx(
51
+ DropdownMenuPrimitive.Item,
52
+ {
53
+ ...props,
54
+ className: mergeClasses(menuItem, props.className),
55
+ children: props.children
56
+ }
57
+ );
58
+ };
59
+ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
60
+ var DropdownMenuLabel = ({ ...props }) => {
61
+ const variants = pick(props, ...menuLabelRecipe.variants());
62
+ const menuLabel = menuLabelRecipe(variants);
63
+ return /* @__PURE__ */ jsx(
64
+ DropdownMenuPrimitive.Label,
65
+ {
66
+ ...props,
67
+ className: mergeClasses(menuLabel, props.className),
68
+ children: props.children
69
+ }
70
+ );
71
+ };
72
+ var DropdownMenuSeparator = ({
73
+ ...props
74
+ }) => {
75
+ const variants = pick(props, ...menuSeparatorRecipe.variants());
76
+ const menuSeparator = menuSeparatorRecipe(variants);
77
+ return /* @__PURE__ */ jsx(
78
+ DropdownMenuPrimitive.Separator,
79
+ {
80
+ ...props,
81
+ className: mergeClasses(menuSeparator, props.className),
82
+ children: props.children
83
+ }
84
+ );
85
+ };
86
+ var DropdownMenuCheckboxItem = ({
87
+ ...props
88
+ }) => {
89
+ const variants = pick(props, ...menuItemRecipe.variants());
90
+ const menuItem = menuItemRecipe(variants);
91
+ return /* @__PURE__ */ jsxs(
92
+ DropdownMenuPrimitive.CheckboxItem,
93
+ {
94
+ ...props,
95
+ className: mergeClasses(menuItem, props.className),
96
+ children: [
97
+ /* @__PURE__ */ jsx(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) }) }) }),
98
+ props.children
99
+ ]
100
+ }
101
+ );
102
+ };
103
+ var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
104
+ var DropdownMenuRadioItem = ({
105
+ children,
106
+ ...props
107
+ }) => {
108
+ const variants = pick(props, ...menuItemRecipe.variants());
109
+ const menuItem = menuItemRecipe(variants);
110
+ return /* @__PURE__ */ jsxs(
111
+ DropdownMenuPrimitive.RadioItem,
112
+ {
113
+ ...props,
114
+ className: mergeClasses(menuItem, props.className),
115
+ children: [
116
+ /* @__PURE__ */ jsx(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
117
+ Flex,
118
+ {
119
+ style: {
120
+ width: theme.sizes[3],
121
+ height: theme.sizes[3],
122
+ alignItems: "center",
123
+ justifyContent: "center"
124
+ },
125
+ children: /* @__PURE__ */ jsx(
126
+ Box,
127
+ {
128
+ style: {
129
+ width: theme.sizes[1],
130
+ height: theme.sizes[1],
131
+ backgroundColor: "currentColor",
132
+ borderRadius: theme.radii.round
133
+ }
134
+ }
135
+ )
136
+ }
137
+ ) }) }) }),
138
+ children
139
+ ]
140
+ }
141
+ );
142
+ };
143
+ export {
144
+ DropdownMenu,
145
+ DropdownMenuCheckboxItem,
146
+ DropdownMenuContent,
147
+ DropdownMenuGroup,
148
+ DropdownMenuItem,
149
+ DropdownMenuLabel,
150
+ DropdownMenuRadioGroup,
151
+ DropdownMenuRadioItem,
152
+ DropdownMenuSeparator,
153
+ DropdownMenuTrigger
154
+ };
155
+ //# sourceMappingURL=dropdown-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/dropdown-menu.tsx"],"sourcesContent":["import { Box } from \"@/components/box\";\nimport { Flex } from \"@/components/flex\";\nimport {\n MenuItemVariants,\n MenuLabelVariants,\n MenuSeparatorVariants,\n MenuVariants,\n menuItemRecipe,\n menuLabelRecipe,\n menuRecipe,\n menuSeparatorRecipe,\n} from \"@/theme/recipes/menu.css\";\nimport { PanelVariants, panelRecipe } from \"@/theme/recipes/panel.css\";\nimport { theme } from \"@/theme/theme-contracts/theme-contract.css\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { CheckIcon } from \"@radix-ui/react-icons\";\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\ntype DropdownMenuContentProps = DropdownMenuPrimitive.DropdownMenuContentProps &\n MenuVariants &\n PanelVariants;\n\nexport const DropdownMenuContent = ({ ...props }: DropdownMenuContentProps) => {\n const menu = menuRecipe(pick(props, ...menuRecipe.variants()));\n const panel = panelRecipe(pick(props, ...panelRecipe.variants()));\n\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n {...props}\n className={mergeClasses(menu, panel, props.className)}\n />\n </DropdownMenuPrimitive.Portal>\n );\n};\n\ntype DropdownMenuItemProps = DropdownMenuPrimitive.DropdownMenuItemProps &\n MenuItemVariants;\n\nexport const DropdownMenuItem = ({ ...props }: DropdownMenuItemProps) => {\n const variants = pick(props, ...menuItemRecipe.variants());\n const menuItem = menuItemRecipe(variants);\n\n return (\n <DropdownMenuPrimitive.Item\n {...props}\n className={mergeClasses(menuItem, props.className)}\n >\n {props.children}\n </DropdownMenuPrimitive.Item>\n );\n};\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\ntype DropdownMenuLabelProps = DropdownMenuPrimitive.DropdownMenuLabelProps &\n MenuLabelVariants;\n\nexport const DropdownMenuLabel = ({ ...props }: DropdownMenuLabelProps) => {\n const variants = pick(props, ...menuLabelRecipe.variants());\n const menuLabel = menuLabelRecipe(variants);\n\n return (\n <DropdownMenuPrimitive.Label\n {...props}\n className={mergeClasses(menuLabel, props.className)}\n >\n {props.children}\n </DropdownMenuPrimitive.Label>\n );\n};\n\ntype DropdownMenuSeparatorProps =\n DropdownMenuPrimitive.DropdownMenuSeparatorProps & MenuSeparatorVariants;\n\nexport const DropdownMenuSeparator = ({\n ...props\n}: DropdownMenuSeparatorProps) => {\n const variants = pick(props, ...menuSeparatorRecipe.variants());\n const menuSeparator = menuSeparatorRecipe(variants);\n\n return (\n <DropdownMenuPrimitive.Separator\n {...props}\n className={mergeClasses(menuSeparator, props.className)}\n >\n {props.children}\n </DropdownMenuPrimitive.Separator>\n );\n};\n\ntype DropdownMenuCheckboxItemProps =\n DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & MenuItemVariants;\n\nexport const DropdownMenuCheckboxItem = ({\n ...props\n}: DropdownMenuCheckboxItemProps) => {\n const variants = pick(props, ...menuItemRecipe.variants());\n const menuItem = menuItemRecipe(variants);\n\n return (\n <DropdownMenuPrimitive.CheckboxItem\n {...props}\n className={mergeClasses(menuItem, props.className)}\n >\n <Box asChild style={{ position: \"absolute\", left: theme.space[1] }}>\n <span>\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n </Box>\n {props.children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n};\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\ntype DropdownMenuRadioItemProps =\n DropdownMenuPrimitive.DropdownMenuRadioItemProps & MenuItemVariants;\n\nexport const DropdownMenuRadioItem = ({\n children,\n ...props\n}: DropdownMenuRadioItemProps) => {\n const variants = pick(props, ...menuItemRecipe.variants());\n const menuItem = menuItemRecipe(variants);\n\n return (\n <DropdownMenuPrimitive.RadioItem\n {...props}\n className={mergeClasses(menuItem, props.className)}\n >\n <Box asChild style={{ position: \"absolute\", left: theme.space[1] }}>\n <span>\n <DropdownMenuPrimitive.ItemIndicator>\n <Flex\n style={{\n width: theme.sizes[3],\n height: theme.sizes[3],\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <Box\n style={{\n width: theme.sizes[1],\n height: theme.sizes[1],\n backgroundColor: \"currentColor\",\n borderRadius: theme.radii.round,\n }}\n />\n </Flex>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n </Box>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,YAAY,2BAA2B;AACvC,SAAS,iBAAiB;AAgBpB,cAyEF,YAzEE;AAdC,IAAM,eAAqC;AAE3C,IAAM,sBAA4C;AAMlD,IAAM,sBAAsB,CAAC,EAAE,GAAG,MAAM,MAAgC;AAC7E,QAAM,OAAO,WAAW,KAAK,OAAO,GAAG,WAAW,SAAS,CAAC,CAAC;AAC7D,QAAM,QAAQ,YAAY,KAAK,OAAO,GAAG,YAAY,SAAS,CAAC,CAAC;AAEhE,SACE,oBAAuB,8BAAtB,EACC;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,MAAM,OAAO,MAAM,SAAS;AAAA;AAAA,EACtD,GACF;AAEJ;AAKO,IAAM,mBAAmB,CAAC,EAAE,GAAG,MAAM,MAA6B;AACvE,QAAM,WAAW,KAAK,OAAO,GAAG,eAAe,SAAS,CAAC;AACzD,QAAM,WAAW,eAAe,QAAQ;AAExC,SACE;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,UAAU,MAAM,SAAS;AAAA,MAEhD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAEO,IAAM,oBAA0C;AAKhD,IAAM,oBAAoB,CAAC,EAAE,GAAG,MAAM,MAA8B;AACzE,QAAM,WAAW,KAAK,OAAO,GAAG,gBAAgB,SAAS,CAAC;AAC1D,QAAM,YAAY,gBAAgB,QAAQ;AAE1C,SACE;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,WAAW,MAAM,SAAS;AAAA,MAEjD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAKO,IAAM,wBAAwB,CAAC;AAAA,EACpC,GAAG;AACL,MAAkC;AAChC,QAAM,WAAW,KAAK,OAAO,GAAG,oBAAoB,SAAS,CAAC;AAC9D,QAAM,gBAAgB,oBAAoB,QAAQ;AAElD,SACE;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,eAAe,MAAM,SAAS;AAAA,MAErD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAKO,IAAM,2BAA2B,CAAC;AAAA,EACvC,GAAG;AACL,MAAqC;AACnC,QAAM,WAAW,KAAK,OAAO,GAAG,eAAe,SAAS,CAAC;AACzD,QAAM,WAAW,eAAe,QAAQ;AAExC,SACE;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,UAAU,MAAM,SAAS;AAAA,MAEjD;AAAA,4BAAC,OAAI,SAAO,MAAC,OAAO,EAAE,UAAU,YAAY,MAAM,MAAM,MAAM,CAAC,EAAE,GAC/D,8BAAC,UACC,8BAAuB,qCAAtB,EACC,8BAAC,aAAU,GACb,GACF,GACF;AAAA,QACC,MAAM;AAAA;AAAA;AAAA,EACT;AAEJ;AAEO,IAAM,yBAA+C;AAKrD,IAAM,wBAAwB,CAAC;AAAA,EACpC;AAAA,EACA,GAAG;AACL,MAAkC;AAChC,QAAM,WAAW,KAAK,OAAO,GAAG,eAAe,SAAS,CAAC;AACzD,QAAM,WAAW,eAAe,QAAQ;AAExC,SACE;AAAA,IAAuB;AAAA,IAAtB;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,UAAU,MAAM,SAAS;AAAA,MAEjD;AAAA,4BAAC,OAAI,SAAO,MAAC,OAAO,EAAE,UAAU,YAAY,MAAM,MAAM,MAAM,CAAC,EAAE,GAC/D,8BAAC,UACC,8BAAuB,qCAAtB,EACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,OAAO,MAAM,MAAM,CAAC;AAAA,cACpB,QAAQ,MAAM,MAAM,CAAC;AAAA,cACrB,YAAY;AAAA,cACZ,gBAAgB;AAAA,YAClB;AAAA,YAEA;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO;AAAA,kBACL,OAAO,MAAM,MAAM,CAAC;AAAA,kBACpB,QAAQ,MAAM,MAAM,CAAC;AAAA,kBACrB,iBAAiB;AAAA,kBACjB,cAAc,MAAM,MAAM;AAAA,gBAC5B;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF,GACF,GACF;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -0,0 +1,81 @@
1
+ /* vanilla-extract-css-ns:src/theme/recipes/flex.css.ts.vanilla.css?source=#H4sIAAAAAAAACo3UwY6CMBAG4LtP0ePuoUZAAfEtvOyRFBixii0pVXQ3++4bQAaDLewFDv3ny5SEf3ko4B43jz2kvIQ4dkIvebjnFflZEJLIO634Nxd5RBKpMlA0kffdgpCMV2XBHhFpZneL38VyLLGC5yKuNFMaVadV2xPKNVyqbp62qQklBaFBIeO+M11iggCR4bxnWQNENnkVBTo9orJ+V56RCSRhFRRcDB968670GSOTcQWp5lLEStao+K3SXgIDEVGynjFSWVwvApnAyHSh+W32cANVDVcLbUtR1SX/tdxY3U7sOAnnrIwdZFjL5KyMyI2pD0qrkqVAm8BWJBBmq0+r4qKSmBUXFceueKikZsVDxbUra1Qys7JGxbMrG1TArGxQWdsVH5WDWfFR2diVAJXcrASo+HYlROVoVkJUAruyRYWblS0qoVk5XSvND49REZ5a7XlGUyk0CD1bhr01qsOzGZuoxB56LcViYiVbMfZOAroGGHrkYra6T/YMG8FasTIW8qt59ZgYfvjmOCJCNm/7fP06LcfT87PjxilNxEvV/AHz0Fl4RQcAAA== */
2
+ .flex_flexRecipe__183by2k0 {
3
+ box-sizing: border-box;
4
+ display: flex;
5
+ }
6
+ .flex_flexRecipe_align_start__183by2k1 {
7
+ align-items: flex-start;
8
+ }
9
+ .flex_flexRecipe_align_center__183by2k2 {
10
+ align-items: center;
11
+ }
12
+ .flex_flexRecipe_align_end__183by2k3 {
13
+ align-items: flex-end;
14
+ }
15
+ .flex_flexRecipe_align_stretch__183by2k4 {
16
+ align-items: stretch;
17
+ }
18
+ .flex_flexRecipe_align_baseline__183by2k5 {
19
+ align-items: baseline;
20
+ }
21
+ .flex_flexRecipe_direction_row__183by2k6 {
22
+ flex-direction: row;
23
+ }
24
+ .flex_flexRecipe_direction_column__183by2k7 {
25
+ flex-direction: column;
26
+ }
27
+ .flex_flexRecipe_direction_rowReverse__183by2k8 {
28
+ flex-direction: row-reverse;
29
+ }
30
+ .flex_flexRecipe_direction_columnReverse__183by2k9 {
31
+ flex-direction: column-reverse;
32
+ }
33
+ .flex_flexRecipe_gap_1__183by2ka {
34
+ gap: var(--space-1__19nbe8d0);
35
+ }
36
+ .flex_flexRecipe_gap_2__183by2kb {
37
+ gap: var(--space-2__19nbe8d1);
38
+ }
39
+ .flex_flexRecipe_gap_3__183by2kc {
40
+ gap: var(--space-3__19nbe8d2);
41
+ }
42
+ .flex_flexRecipe_gap_4__183by2kd {
43
+ gap: var(--space-4__19nbe8d3);
44
+ }
45
+ .flex_flexRecipe_gap_5__183by2ke {
46
+ gap: var(--space-5__19nbe8d4);
47
+ }
48
+ .flex_flexRecipe_gap_6__183by2kf {
49
+ gap: var(--space-6__19nbe8d5);
50
+ }
51
+ .flex_flexRecipe_gap_7__183by2kg {
52
+ gap: var(--space-7__19nbe8d6);
53
+ }
54
+ .flex_flexRecipe_gap_8__183by2kh {
55
+ gap: var(--space-8__19nbe8d7);
56
+ }
57
+ .flex_flexRecipe_gap_9__183by2ki {
58
+ gap: var(--space-9__19nbe8d8);
59
+ }
60
+ .flex_flexRecipe_justify_start__183by2kj {
61
+ justify-content: flex-start;
62
+ }
63
+ .flex_flexRecipe_justify_center__183by2kk {
64
+ justify-content: center;
65
+ }
66
+ .flex_flexRecipe_justify_end__183by2kl {
67
+ justify-content: flex-end;
68
+ }
69
+ .flex_flexRecipe_justify_between__183by2km {
70
+ justify-content: space-between;
71
+ }
72
+ .flex_flexRecipe_wrap_noWrap__183by2kn {
73
+ flex-wrap: nowrap;
74
+ }
75
+ .flex_flexRecipe_wrap_wrap__183by2ko {
76
+ flex-wrap: wrap;
77
+ }
78
+ .flex_flexRecipe_wrap_wrapReverse__183by2kp {
79
+ flex-wrap: wrap-reverse;
80
+ }
81
+ /*# sourceMappingURL=flex.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["vanilla-extract-css-ns:src/theme/recipes/flex.css.ts.vanilla.css?source=#H4sIAAAAAAAACo3UwY6CMBAG4LtP0ePuoUZAAfEtvOyRFBixii0pVXQ3++4bQAaDLewFDv3ny5SEf3ko4B43jz2kvIQ4dkIvebjnFflZEJLIO634Nxd5RBKpMlA0kffdgpCMV2XBHhFpZneL38VyLLGC5yKuNFMaVadV2xPKNVyqbp62qQklBaFBIeO+M11iggCR4bxnWQNENnkVBTo9orJ+V56RCSRhFRRcDB968670GSOTcQWp5lLEStao+K3SXgIDEVGynjFSWVwvApnAyHSh+W32cANVDVcLbUtR1SX/tdxY3U7sOAnnrIwdZFjL5KyMyI2pD0qrkqVAm8BWJBBmq0+r4qKSmBUXFceueKikZsVDxbUra1Qys7JGxbMrG1TArGxQWdsVH5WDWfFR2diVAJXcrASo+HYlROVoVkJUAruyRYWblS0qoVk5XSvND49REZ5a7XlGUyk0CD1bhr01qsOzGZuoxB56LcViYiVbMfZOAroGGHrkYra6T/YMG8FasTIW8qt59ZgYfvjmOCJCNm/7fP06LcfT87PjxilNxEvV/AHz0Fl4RQcAAA=="],"sourcesContent":[".flex_flexRecipe__183by2k0 {\n box-sizing: border-box;\n display: flex;\n}\n.flex_flexRecipe_align_start__183by2k1 {\n align-items: flex-start;\n}\n.flex_flexRecipe_align_center__183by2k2 {\n align-items: center;\n}\n.flex_flexRecipe_align_end__183by2k3 {\n align-items: flex-end;\n}\n.flex_flexRecipe_align_stretch__183by2k4 {\n align-items: stretch;\n}\n.flex_flexRecipe_align_baseline__183by2k5 {\n align-items: baseline;\n}\n.flex_flexRecipe_direction_row__183by2k6 {\n flex-direction: row;\n}\n.flex_flexRecipe_direction_column__183by2k7 {\n flex-direction: column;\n}\n.flex_flexRecipe_direction_rowReverse__183by2k8 {\n flex-direction: row-reverse;\n}\n.flex_flexRecipe_direction_columnReverse__183by2k9 {\n flex-direction: column-reverse;\n}\n.flex_flexRecipe_gap_1__183by2ka {\n gap: var(--space-1__19nbe8d0);\n}\n.flex_flexRecipe_gap_2__183by2kb {\n gap: var(--space-2__19nbe8d1);\n}\n.flex_flexRecipe_gap_3__183by2kc {\n gap: var(--space-3__19nbe8d2);\n}\n.flex_flexRecipe_gap_4__183by2kd {\n gap: var(--space-4__19nbe8d3);\n}\n.flex_flexRecipe_gap_5__183by2ke {\n gap: var(--space-5__19nbe8d4);\n}\n.flex_flexRecipe_gap_6__183by2kf {\n gap: var(--space-6__19nbe8d5);\n}\n.flex_flexRecipe_gap_7__183by2kg {\n gap: var(--space-7__19nbe8d6);\n}\n.flex_flexRecipe_gap_8__183by2kh {\n gap: var(--space-8__19nbe8d7);\n}\n.flex_flexRecipe_gap_9__183by2ki {\n gap: var(--space-9__19nbe8d8);\n}\n.flex_flexRecipe_justify_start__183by2kj {\n justify-content: flex-start;\n}\n.flex_flexRecipe_justify_center__183by2kk {\n justify-content: center;\n}\n.flex_flexRecipe_justify_end__183by2kl {\n justify-content: flex-end;\n}\n.flex_flexRecipe_justify_between__183by2km {\n justify-content: space-between;\n}\n.flex_flexRecipe_wrap_noWrap__183by2kn {\n flex-wrap: nowrap;\n}\n.flex_flexRecipe_wrap_wrap__183by2ko {\n flex-wrap: wrap;\n}\n.flex_flexRecipe_wrap_wrapReverse__183by2kp {\n flex-wrap: wrap-reverse;\n}"],"mappings":";AAAA,CAAC;AACC,cAAY;AACZ,WAAS;AACX;AACA,CAAC;AACC,eAAa;AACf;AACA,CAAC;AACC,eAAa;AACf;AACA,CAAC;AACC,eAAa;AACf;AACA,CAAC;AACC,eAAa;AACf;AACA,CAAC;AACC,eAAa;AACf;AACA,CAAC;AACC,kBAAgB;AAClB;AACA,CAAC;AACC,kBAAgB;AAClB;AACA,CAAC;AACC,kBAAgB;AAClB;AACA,CAAC;AACC,kBAAgB;AAClB;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,OAAK,IAAI;AACX;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,aAAW;AACb;AACA,CAAC;AACC,aAAW;AACb;AACA,CAAC;AACC,aAAW;AACb;","names":[]}
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { F as FlexVariants } from '../flex.css-CMy65zXP.mjs';
3
+ import { C as ComponentProps } from '../component-props-CuOrXFyX.mjs';
4
+ import '@vanilla-extract/recipes';
5
+
6
+ declare const defaultElement = "div";
7
+ type FlexProps = ComponentProps<typeof defaultElement, FlexVariants>;
8
+ declare const Flex: ({ asChild, ...props }: FlexProps) => react_jsx_runtime.JSX.Element;
9
+
10
+ export { Flex };
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { F as FlexVariants } from '../flex.css-CMy65zXP.js';
3
+ import { C as ComponentProps } from '../component-props-CuOrXFyX.js';
4
+ import '@vanilla-extract/recipes';
5
+
6
+ declare const defaultElement = "div";
7
+ type FlexProps = ComponentProps<typeof defaultElement, FlexVariants>;
8
+ declare const Flex: ({ asChild, ...props }: FlexProps) => react_jsx_runtime.JSX.Element;
9
+
10
+ export { Flex };
@@ -0,0 +1,59 @@
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/flex.tsx
21
+ var flex_exports = {};
22
+ __export(flex_exports, {
23
+ Flex: () => Flex
24
+ });
25
+ module.exports = __toCommonJS(flex_exports);
26
+
27
+ // src/theme/recipes/flex.css.ts
28
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
29
+ var flexRecipe = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "flex_flexRecipe__183by2k0", variantClassNames: { align: { start: "flex_flexRecipe_align_start__183by2k1", center: "flex_flexRecipe_align_center__183by2k2", end: "flex_flexRecipe_align_end__183by2k3", stretch: "flex_flexRecipe_align_stretch__183by2k4", baseline: "flex_flexRecipe_align_baseline__183by2k5" }, direction: { row: "flex_flexRecipe_direction_row__183by2k6", column: "flex_flexRecipe_direction_column__183by2k7", rowReverse: "flex_flexRecipe_direction_rowReverse__183by2k8", columnReverse: "flex_flexRecipe_direction_columnReverse__183by2k9" }, gap: { "1": "flex_flexRecipe_gap_1__183by2ka", "2": "flex_flexRecipe_gap_2__183by2kb", "3": "flex_flexRecipe_gap_3__183by2kc", "4": "flex_flexRecipe_gap_4__183by2kd", "5": "flex_flexRecipe_gap_5__183by2ke", "6": "flex_flexRecipe_gap_6__183by2kf", "7": "flex_flexRecipe_gap_7__183by2kg", "8": "flex_flexRecipe_gap_8__183by2kh", "9": "flex_flexRecipe_gap_9__183by2ki" }, justify: { start: "flex_flexRecipe_justify_start__183by2kj", center: "flex_flexRecipe_justify_center__183by2kk", end: "flex_flexRecipe_justify_end__183by2kl", between: "flex_flexRecipe_justify_between__183by2km" }, wrap: { noWrap: "flex_flexRecipe_wrap_noWrap__183by2kn", wrap: "flex_flexRecipe_wrap_wrap__183by2ko", wrapReverse: "flex_flexRecipe_wrap_wrapReverse__183by2kp" } }, defaultVariants: { align: "stretch", direction: "row", justify: "start", wrap: "noWrap" }, compoundVariants: [] });
30
+
31
+ // src/utils/merge-classes.ts
32
+ function mergeClasses(...classes) {
33
+ return classes.filter((cls) => Boolean(cls)).join(" ");
34
+ }
35
+
36
+ // src/utils/pick.ts
37
+ function pick(obj, ...keys) {
38
+ const ret = {};
39
+ keys.forEach((key) => {
40
+ ret[key] = obj[key];
41
+ });
42
+ return ret;
43
+ }
44
+
45
+ // src/components/flex.tsx
46
+ var import_react_slot = require("@radix-ui/react-slot");
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var defaultElement = "div";
49
+ var Flex = ({ asChild, ...props }) => {
50
+ const variants = pick(props, ...flexRecipe.variants());
51
+ const flex = flexRecipe(variants);
52
+ const Comp = asChild ? import_react_slot.Slot : defaultElement;
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { ...props, className: mergeClasses(flex, props.className), children: props.children });
54
+ };
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ Flex
58
+ });
59
+ //# sourceMappingURL=flex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/flex.tsx","../../src/theme/recipes/flex.css.ts","../../src/utils/merge-classes.ts","../../src/utils/pick.ts"],"sourcesContent":["import { FlexVariants, flexRecipe } from \"@/theme/recipes/flex.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"div\";\n\ntype FlexProps = ComponentProps<typeof defaultElement, FlexVariants>;\n\nexport const Flex = ({ asChild, ...props }: FlexProps) => {\n const variants = pick(props, ...flexRecipe.variants());\n const flex = flexRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp {...props} className={mergeClasses(flex, props.className)}>\n {props.children}\n </Comp>\n );\n};\n","import 'src/theme/recipes/flex.css.ts.vanilla.css?source=#H4sIAAAAAAAACo3UwY6CMBAG4LtP0ePuoUZAAfEtvOyRFBixii0pVXQ3++4bQAaDLewFDv3ny5SEf3ko4B43jz2kvIQ4dkIvebjnFflZEJLIO634Nxd5RBKpMlA0kffdgpCMV2XBHhFpZneL38VyLLGC5yKuNFMaVadV2xPKNVyqbp62qQklBaFBIeO+M11iggCR4bxnWQNENnkVBTo9orJ+V56RCSRhFRRcDB968670GSOTcQWp5lLEStao+K3SXgIDEVGynjFSWVwvApnAyHSh+W32cANVDVcLbUtR1SX/tdxY3U7sOAnnrIwdZFjL5KyMyI2pD0qrkqVAm8BWJBBmq0+r4qKSmBUXFceueKikZsVDxbUra1Qys7JGxbMrG1TArGxQWdsVH5WDWfFR2diVAJXcrASo+HYlROVoVkJUAruyRYWblS0qoVk5XSvND49REZ5a7XlGUyk0CD1bhr01qsOzGZuoxB56LcViYiVbMfZOAroGGHrkYra6T/YMG8FasTIW8qt59ZgYfvjmOCJCNm/7fP06LcfT87PjxilNxEvV/AHz0Fl4RQcAAA==';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var flexRecipe = _7a468({defaultClassName:'flex_flexRecipe__183by2k0',variantClassNames:{align:{start:'flex_flexRecipe_align_start__183by2k1',center:'flex_flexRecipe_align_center__183by2k2',end:'flex_flexRecipe_align_end__183by2k3',stretch:'flex_flexRecipe_align_stretch__183by2k4',baseline:'flex_flexRecipe_align_baseline__183by2k5'},direction:{row:'flex_flexRecipe_direction_row__183by2k6',column:'flex_flexRecipe_direction_column__183by2k7',rowReverse:'flex_flexRecipe_direction_rowReverse__183by2k8',columnReverse:'flex_flexRecipe_direction_columnReverse__183by2k9'},gap:{'1':'flex_flexRecipe_gap_1__183by2ka','2':'flex_flexRecipe_gap_2__183by2kb','3':'flex_flexRecipe_gap_3__183by2kc','4':'flex_flexRecipe_gap_4__183by2kd','5':'flex_flexRecipe_gap_5__183by2ke','6':'flex_flexRecipe_gap_6__183by2kf','7':'flex_flexRecipe_gap_7__183by2kg','8':'flex_flexRecipe_gap_8__183by2kh','9':'flex_flexRecipe_gap_9__183by2ki'},justify:{start:'flex_flexRecipe_justify_start__183by2kj',center:'flex_flexRecipe_justify_center__183by2kk',end:'flex_flexRecipe_justify_end__183by2kl',between:'flex_flexRecipe_justify_between__183by2km'},wrap:{noWrap:'flex_flexRecipe_wrap_noWrap__183by2kn',wrap:'flex_flexRecipe_wrap_wrap__183by2ko',wrapReverse:'flex_flexRecipe_wrap_wrapReverse__183by2kp'}},defaultVariants:{align:'stretch',direction:'row',justify:'start',wrap:'noWrap'},compoundVariants:[]});","export function mergeClasses(...classes: (string | undefined)[]): string {\n return classes.filter((cls): cls is string => Boolean(cls)).join(\" \");\n}\n","/**\n * https://stackoverflow.com/a/47232883\n */\nexport function pick<T, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ret: any = {};\n keys.forEach((key) => {\n ret[key] = obj[key];\n });\n\n return ret;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAA0C;AACnC,IAAI,iBAAa,uBAAAA,iBAAO,EAAC,kBAAiB,6BAA4B,mBAAkB,EAAC,OAAM,EAAC,OAAM,yCAAwC,QAAO,0CAAyC,KAAI,uCAAsC,SAAQ,2CAA0C,UAAS,2CAA0C,GAAE,WAAU,EAAC,KAAI,2CAA0C,QAAO,8CAA6C,YAAW,kDAAiD,eAAc,oDAAmD,GAAE,KAAI,EAAC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,mCAAkC,KAAI,kCAAiC,GAAE,SAAQ,EAAC,OAAM,2CAA0C,QAAO,4CAA2C,KAAI,yCAAwC,SAAQ,4CAA2C,GAAE,MAAK,EAAC,QAAO,yCAAwC,MAAK,uCAAsC,aAAY,6CAA4C,EAAC,GAAE,iBAAgB,EAAC,OAAM,WAAU,WAAU,OAAM,SAAQ,SAAQ,MAAK,SAAQ,GAAE,kBAAiB,CAAC,EAAC,CAAC;;;ACFl2C,SAAS,gBAAgB,SAAyC;AACvE,SAAO,QAAQ,OAAO,CAAC,QAAuB,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG;AACtE;;;ACCO,SAAS,KAA2B,QAAW,MAAuB;AAE3E,QAAM,MAAW,CAAC;AAClB,OAAK,QAAQ,CAAC,QAAQ;AACpB,QAAI,GAAG,IAAI,IAAI,GAAG;AAAA,EACpB,CAAC;AAED,SAAO;AACT;;;AHPA,wBAAqB;AAYjB;AAVJ,IAAM,iBAAiB;AAIhB,IAAM,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,MAAiB;AACxD,QAAM,WAAW,KAAK,OAAO,GAAG,WAAW,SAAS,CAAC;AACrD,QAAM,OAAO,WAAW,QAAQ;AAChC,QAAM,OAAO,UAAU,yBAAO;AAE9B,SACE,4CAAC,QAAM,GAAG,OAAO,WAAW,aAAa,MAAM,MAAM,SAAS,GAC3D,gBAAM,UACT;AAEJ;","names":["_7a468"]}
@@ -0,0 +1,11 @@
1
+ import {
2
+ Flex
3
+ } from "../chunk-52RVZRC4.mjs";
4
+ import "../chunk-RD6HAWH5.mjs";
5
+ import "../chunk-4N6P3Y54.mjs";
6
+ import "../chunk-7EGQM3ZL.mjs";
7
+ import "../chunk-LZOMFHX3.mjs";
8
+ export {
9
+ Flex
10
+ };
11
+ //# sourceMappingURL=flex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,19 @@
1
+ /* vanilla-extract-css-ns:src/theme/recipes/form.css.ts.vanilla.css?source=LmZvcm1fZm9ybUZpZWxkUmVjaXBlX194OHkxM3IwIHsKICBkaXNwbGF5OiBncmlkOwogIG1hcmdpbi1ib3R0b206IHZhcigtLXNwYWNlLTJfXzE5bmJlOGQxKTsKfQouZm9ybV9mb3JtTGFiZWxSZWNpcGVfX3g4eTEzcjEgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy10ZXh0U3VidGxlX18xOW5iZThkMmZjKTsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0zX18xOW5iZThkYik7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWZvbnRXZWlnaHRzLW1lZGl1bV9fMTluYmU4ZDJmbik7CiAgbGluZS1oZWlnaHQ6IHZhcigtLWxpbmVIZWlnaHRzLTZfXzE5bmJlOGQyZnUpOwp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX194OHkxM3IyIHsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0yX18xOW5iZThkYSk7CiAgb3BhY2l0eTogMC44Owp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX2Vycm9yX3RydWVfX3g4eTEzcjMgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy1lcnJvci1lcnJvcjlfXzE5bmJlOGQyZTIpOwp9 */
2
+ .form_formFieldRecipe__x8y13r0 {
3
+ display: grid;
4
+ margin-bottom: var(--space-2__19nbe8d1);
5
+ }
6
+ .form_formLabelRecipe__x8y13r1 {
7
+ color: var(--semanticColors-textSubtle__19nbe8d2fc);
8
+ font-size: var(--fontSizes-3__19nbe8db);
9
+ font-weight: var(--fontWeights-medium__19nbe8d2fn);
10
+ line-height: var(--lineHeights-6__19nbe8d2fu);
11
+ }
12
+ .form_formMessageRecipe__x8y13r2 {
13
+ font-size: var(--fontSizes-2__19nbe8da);
14
+ opacity: 0.8;
15
+ }
16
+ .form_formMessageRecipe_error_true__x8y13r3 {
17
+ color: var(--semanticColors-error-error9__19nbe8d2e2);
18
+ }
19
+ /*# sourceMappingURL=form.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["vanilla-extract-css-ns:src/theme/recipes/form.css.ts.vanilla.css?source=LmZvcm1fZm9ybUZpZWxkUmVjaXBlX194OHkxM3IwIHsKICBkaXNwbGF5OiBncmlkOwogIG1hcmdpbi1ib3R0b206IHZhcigtLXNwYWNlLTJfXzE5bmJlOGQxKTsKfQouZm9ybV9mb3JtTGFiZWxSZWNpcGVfX3g4eTEzcjEgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy10ZXh0U3VidGxlX18xOW5iZThkMmZjKTsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0zX18xOW5iZThkYik7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWZvbnRXZWlnaHRzLW1lZGl1bV9fMTluYmU4ZDJmbik7CiAgbGluZS1oZWlnaHQ6IHZhcigtLWxpbmVIZWlnaHRzLTZfXzE5bmJlOGQyZnUpOwp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX194OHkxM3IyIHsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0yX18xOW5iZThkYSk7CiAgb3BhY2l0eTogMC44Owp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX2Vycm9yX3RydWVfX3g4eTEzcjMgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy1lcnJvci1lcnJvcjlfXzE5bmJlOGQyZTIpOwp9"],"sourcesContent":[".form_formFieldRecipe__x8y13r0 {\n display: grid;\n margin-bottom: var(--space-2__19nbe8d1);\n}\n.form_formLabelRecipe__x8y13r1 {\n color: var(--semanticColors-textSubtle__19nbe8d2fc);\n font-size: var(--fontSizes-3__19nbe8db);\n font-weight: var(--fontWeights-medium__19nbe8d2fn);\n line-height: var(--lineHeights-6__19nbe8d2fu);\n}\n.form_formMessageRecipe__x8y13r2 {\n font-size: var(--fontSizes-2__19nbe8da);\n opacity: 0.8;\n}\n.form_formMessageRecipe_error_true__x8y13r3 {\n color: var(--semanticColors-error-error9__19nbe8d2e2);\n}"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,iBAAe,IAAI;AACrB;AACA,CAAC;AACC,SAAO,IAAI;AACX,aAAW,IAAI;AACf,eAAa,IAAI;AACjB,eAAa,IAAI;AACnB;AACA,CAAC;AACC,aAAW,IAAI;AACf,WAAS;AACX;AACA,CAAC;AACC,SAAO,IAAI;AACb;","names":[]}
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { F as FormFieldVariants, a as FormLabelVariants, b as FormMessageVariants } from '../form.css-DJxDoc1T.mjs';
4
+ import * as FormPrimitive from '@radix-ui/react-form';
5
+ import '@vanilla-extract/recipes';
6
+
7
+ declare const Form: react.ForwardRefExoticComponent<FormPrimitive.FormProps & react.RefAttributes<HTMLFormElement>>;
8
+ declare const FormControl: react.ForwardRefExoticComponent<FormPrimitive.FormControlProps & react.RefAttributes<HTMLInputElement>>;
9
+ type FormFieldProps = FormPrimitive.FormFieldProps & FormFieldVariants;
10
+ declare const FormField: ({ ...props }: FormFieldProps) => react_jsx_runtime.JSX.Element;
11
+ type FormLabelProps = FormPrimitive.FormLabelProps & FormLabelVariants;
12
+ declare const FormLabel: ({ ...props }: FormLabelProps) => react_jsx_runtime.JSX.Element;
13
+ type FormMessageProps = FormPrimitive.FormMessageProps & FormMessageVariants;
14
+ declare const FormMessage: ({ ...props }: FormMessageProps) => react_jsx_runtime.JSX.Element;
15
+ declare const FormSubmit: react.ForwardRefExoticComponent<FormPrimitive.FormSubmitProps & react.RefAttributes<HTMLButtonElement>>;
16
+
17
+ export { Form, FormControl, FormField, FormLabel, FormMessage, FormSubmit };
@@ -0,0 +1,17 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { F as FormFieldVariants, a as FormLabelVariants, b as FormMessageVariants } from '../form.css-DJxDoc1T.js';
4
+ import * as FormPrimitive from '@radix-ui/react-form';
5
+ import '@vanilla-extract/recipes';
6
+
7
+ declare const Form: react.ForwardRefExoticComponent<FormPrimitive.FormProps & react.RefAttributes<HTMLFormElement>>;
8
+ declare const FormControl: react.ForwardRefExoticComponent<FormPrimitive.FormControlProps & react.RefAttributes<HTMLInputElement>>;
9
+ type FormFieldProps = FormPrimitive.FormFieldProps & FormFieldVariants;
10
+ declare const FormField: ({ ...props }: FormFieldProps) => react_jsx_runtime.JSX.Element;
11
+ type FormLabelProps = FormPrimitive.FormLabelProps & FormLabelVariants;
12
+ declare const FormLabel: ({ ...props }: FormLabelProps) => react_jsx_runtime.JSX.Element;
13
+ type FormMessageProps = FormPrimitive.FormMessageProps & FormMessageVariants;
14
+ declare const FormMessage: ({ ...props }: FormMessageProps) => react_jsx_runtime.JSX.Element;
15
+ declare const FormSubmit: react.ForwardRefExoticComponent<FormPrimitive.FormSubmitProps & react.RefAttributes<HTMLButtonElement>>;
16
+
17
+ export { Form, FormControl, FormField, FormLabel, FormMessage, FormSubmit };
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/components/form.tsx
31
+ var form_exports = {};
32
+ __export(form_exports, {
33
+ Form: () => Form,
34
+ FormControl: () => FormControl,
35
+ FormField: () => FormField,
36
+ FormLabel: () => FormLabel,
37
+ FormMessage: () => FormMessage,
38
+ FormSubmit: () => FormSubmit
39
+ });
40
+ module.exports = __toCommonJS(form_exports);
41
+
42
+ // src/theme/recipes/form.css.ts
43
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
44
+ var formFieldRecipe = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "form_formFieldRecipe__x8y13r0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
45
+ var formLabelRecipe = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "form_formLabelRecipe__x8y13r1", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
46
+ var formMessageRecipe = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "form_formMessageRecipe__x8y13r2", variantClassNames: { error: { true: "form_formMessageRecipe_error_true__x8y13r3" } }, defaultVariants: {}, compoundVariants: [] });
47
+
48
+ // src/utils/merge-classes.ts
49
+ function mergeClasses(...classes) {
50
+ return classes.filter((cls) => Boolean(cls)).join(" ");
51
+ }
52
+
53
+ // src/utils/pick.ts
54
+ function pick(obj, ...keys) {
55
+ const ret = {};
56
+ keys.forEach((key) => {
57
+ ret[key] = obj[key];
58
+ });
59
+ return ret;
60
+ }
61
+
62
+ // src/components/form.tsx
63
+ var FormPrimitive = __toESM(require("@radix-ui/react-form"));
64
+ var import_jsx_runtime = require("react/jsx-runtime");
65
+ var Form = FormPrimitive.Root;
66
+ var FormControl = FormPrimitive.Control;
67
+ var FormField = ({ ...props }) => {
68
+ const variants = pick(props, ...formFieldRecipe.variants());
69
+ const formField = formFieldRecipe(variants);
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ FormPrimitive.Field,
72
+ {
73
+ ...props,
74
+ className: mergeClasses(formField, props.className),
75
+ children: props.children
76
+ }
77
+ );
78
+ };
79
+ var FormLabel = ({ ...props }) => {
80
+ const variants = pick(props, ...formLabelRecipe.variants());
81
+ const formLabel = formLabelRecipe(variants);
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
+ FormPrimitive.Label,
84
+ {
85
+ ...props,
86
+ className: mergeClasses(formLabel, props.className),
87
+ children: props.children
88
+ }
89
+ );
90
+ };
91
+ var FormMessage = ({ ...props }) => {
92
+ const variants = pick(props, ...formMessageRecipe.variants());
93
+ const formMessage = formMessageRecipe(variants);
94
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
95
+ FormPrimitive.Message,
96
+ {
97
+ ...props,
98
+ className: mergeClasses(formMessage, props.className),
99
+ children: props.children
100
+ }
101
+ );
102
+ };
103
+ var FormSubmit = FormPrimitive.Submit;
104
+ // Annotate the CommonJS export names for ESM import in node:
105
+ 0 && (module.exports = {
106
+ Form,
107
+ FormControl,
108
+ FormField,
109
+ FormLabel,
110
+ FormMessage,
111
+ FormSubmit
112
+ });
113
+ //# sourceMappingURL=form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/form.tsx","../../src/theme/recipes/form.css.ts","../../src/utils/merge-classes.ts","../../src/utils/pick.ts"],"sourcesContent":["import {\n FormFieldVariants,\n FormLabelVariants,\n FormMessageVariants,\n formFieldRecipe,\n formLabelRecipe,\n formMessageRecipe,\n} from \"@/theme/recipes/form.css\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport * as FormPrimitive from \"@radix-ui/react-form\";\n\nexport const Form = FormPrimitive.Root;\n\nexport const FormControl = FormPrimitive.Control;\n\ntype FormFieldProps = FormPrimitive.FormFieldProps & FormFieldVariants;\n\nexport const FormField = ({ ...props }: FormFieldProps) => {\n const variants = pick(props, ...formFieldRecipe.variants());\n const formField = formFieldRecipe(variants);\n\n return (\n <FormPrimitive.Field\n {...props}\n className={mergeClasses(formField, props.className)}\n >\n {props.children}\n </FormPrimitive.Field>\n );\n};\n\ntype FormLabelProps = FormPrimitive.FormLabelProps & FormLabelVariants;\n\nexport const FormLabel = ({ ...props }: FormLabelProps) => {\n const variants = pick(props, ...formLabelRecipe.variants());\n const formLabel = formLabelRecipe(variants);\n\n return (\n <FormPrimitive.Label\n {...props}\n className={mergeClasses(formLabel, props.className)}\n >\n {props.children}\n </FormPrimitive.Label>\n );\n};\n\ntype FormMessageProps = FormPrimitive.FormMessageProps & FormMessageVariants;\n\nexport const FormMessage = ({ ...props }: FormMessageProps) => {\n const variants = pick(props, ...formMessageRecipe.variants());\n const formMessage = formMessageRecipe(variants);\n\n return (\n <FormPrimitive.Message\n {...props}\n className={mergeClasses(formMessage, props.className)}\n >\n {props.children}\n </FormPrimitive.Message>\n );\n};\n\nexport const FormSubmit = FormPrimitive.Submit;\n","import 'src/theme/recipes/form.css.ts.vanilla.css?source=LmZvcm1fZm9ybUZpZWxkUmVjaXBlX194OHkxM3IwIHsKICBkaXNwbGF5OiBncmlkOwogIG1hcmdpbi1ib3R0b206IHZhcigtLXNwYWNlLTJfXzE5bmJlOGQxKTsKfQouZm9ybV9mb3JtTGFiZWxSZWNpcGVfX3g4eTEzcjEgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy10ZXh0U3VidGxlX18xOW5iZThkMmZjKTsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0zX18xOW5iZThkYik7CiAgZm9udC13ZWlnaHQ6IHZhcigtLWZvbnRXZWlnaHRzLW1lZGl1bV9fMTluYmU4ZDJmbik7CiAgbGluZS1oZWlnaHQ6IHZhcigtLWxpbmVIZWlnaHRzLTZfXzE5bmJlOGQyZnUpOwp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX194OHkxM3IyIHsKICBmb250LXNpemU6IHZhcigtLWZvbnRTaXplcy0yX18xOW5iZThkYSk7CiAgb3BhY2l0eTogMC44Owp9Ci5mb3JtX2Zvcm1NZXNzYWdlUmVjaXBlX2Vycm9yX3RydWVfX3g4eTEzcjMgewogIGNvbG9yOiB2YXIoLS1zZW1hbnRpY0NvbG9ycy1lcnJvci1lcnJvcjlfXzE5bmJlOGQyZTIpOwp9';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var formFieldRecipe = _7a468({defaultClassName:'form_formFieldRecipe__x8y13r0',variantClassNames:{},defaultVariants:{},compoundVariants:[]});\nexport var formLabelRecipe = _7a468({defaultClassName:'form_formLabelRecipe__x8y13r1',variantClassNames:{},defaultVariants:{},compoundVariants:[]});\nexport var formMessageRecipe = _7a468({defaultClassName:'form_formMessageRecipe__x8y13r2',variantClassNames:{error:{true:'form_formMessageRecipe_error_true__x8y13r3'}},defaultVariants:{},compoundVariants:[]});","export function mergeClasses(...classes: (string | undefined)[]): string {\n return classes.filter((cls): cls is string => Boolean(cls)).join(\" \");\n}\n","/**\n * https://stackoverflow.com/a/47232883\n */\nexport function pick<T, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ret: any = {};\n keys.forEach((key) => {\n ret[key] = obj[key];\n });\n\n return ret;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAA0C;AACnC,IAAI,sBAAkB,uBAAAA,iBAAO,EAAC,kBAAiB,iCAAgC,mBAAkB,CAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC3I,IAAI,sBAAkB,uBAAAA,iBAAO,EAAC,kBAAiB,iCAAgC,mBAAkB,CAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC3I,IAAI,wBAAoB,uBAAAA,iBAAO,EAAC,kBAAiB,mCAAkC,mBAAkB,EAAC,OAAM,EAAC,MAAK,6CAA4C,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;;;ACJxM,SAAS,gBAAgB,SAAyC;AACvE,SAAO,QAAQ,OAAO,CAAC,QAAuB,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG;AACtE;;;ACCO,SAAS,KAA2B,QAAW,MAAuB;AAE3E,QAAM,MAAW,CAAC;AAClB,OAAK,QAAQ,CAAC,QAAQ;AACpB,QAAI,GAAG,IAAI,IAAI,GAAG;AAAA,EACpB,CAAC;AAED,SAAO;AACT;;;AHDA,oBAA+B;AAa3B;AAXG,IAAM,OAAqB;AAE3B,IAAM,cAA4B;AAIlC,IAAM,YAAY,CAAC,EAAE,GAAG,MAAM,MAAsB;AACzD,QAAM,WAAW,KAAK,OAAO,GAAG,gBAAgB,SAAS,CAAC;AAC1D,QAAM,YAAY,gBAAgB,QAAQ;AAE1C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,WAAW,MAAM,SAAS;AAAA,MAEjD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAIO,IAAM,YAAY,CAAC,EAAE,GAAG,MAAM,MAAsB;AACzD,QAAM,WAAW,KAAK,OAAO,GAAG,gBAAgB,SAAS,CAAC;AAC1D,QAAM,YAAY,gBAAgB,QAAQ;AAE1C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,WAAW,MAAM,SAAS;AAAA,MAEjD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAIO,IAAM,cAAc,CAAC,EAAE,GAAG,MAAM,MAAwB;AAC7D,QAAM,WAAW,KAAK,OAAO,GAAG,kBAAkB,SAAS,CAAC;AAC5D,QAAM,cAAc,kBAAkB,QAAQ;AAE9C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,aAAa,MAAM,SAAS;AAAA,MAEnD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAEO,IAAM,aAA2B;","names":["_7a468"]}
@@ -0,0 +1,64 @@
1
+ import {
2
+ formFieldRecipe,
3
+ formLabelRecipe,
4
+ formMessageRecipe
5
+ } from "../chunk-PHULHA6N.mjs";
6
+ import {
7
+ pick
8
+ } from "../chunk-4N6P3Y54.mjs";
9
+ import {
10
+ mergeClasses
11
+ } from "../chunk-7EGQM3ZL.mjs";
12
+ import "../chunk-LZOMFHX3.mjs";
13
+
14
+ // src/components/form.tsx
15
+ import * as FormPrimitive from "@radix-ui/react-form";
16
+ import { jsx } from "react/jsx-runtime";
17
+ var Form = FormPrimitive.Root;
18
+ var FormControl = FormPrimitive.Control;
19
+ var FormField = ({ ...props }) => {
20
+ const variants = pick(props, ...formFieldRecipe.variants());
21
+ const formField = formFieldRecipe(variants);
22
+ return /* @__PURE__ */ jsx(
23
+ FormPrimitive.Field,
24
+ {
25
+ ...props,
26
+ className: mergeClasses(formField, props.className),
27
+ children: props.children
28
+ }
29
+ );
30
+ };
31
+ var FormLabel = ({ ...props }) => {
32
+ const variants = pick(props, ...formLabelRecipe.variants());
33
+ const formLabel = formLabelRecipe(variants);
34
+ return /* @__PURE__ */ jsx(
35
+ FormPrimitive.Label,
36
+ {
37
+ ...props,
38
+ className: mergeClasses(formLabel, props.className),
39
+ children: props.children
40
+ }
41
+ );
42
+ };
43
+ var FormMessage = ({ ...props }) => {
44
+ const variants = pick(props, ...formMessageRecipe.variants());
45
+ const formMessage = formMessageRecipe(variants);
46
+ return /* @__PURE__ */ jsx(
47
+ FormPrimitive.Message,
48
+ {
49
+ ...props,
50
+ className: mergeClasses(formMessage, props.className),
51
+ children: props.children
52
+ }
53
+ );
54
+ };
55
+ var FormSubmit = FormPrimitive.Submit;
56
+ export {
57
+ Form,
58
+ FormControl,
59
+ FormField,
60
+ FormLabel,
61
+ FormMessage,
62
+ FormSubmit
63
+ };
64
+ //# sourceMappingURL=form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/form.tsx"],"sourcesContent":["import {\n FormFieldVariants,\n FormLabelVariants,\n FormMessageVariants,\n formFieldRecipe,\n formLabelRecipe,\n formMessageRecipe,\n} from \"@/theme/recipes/form.css\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport * as FormPrimitive from \"@radix-ui/react-form\";\n\nexport const Form = FormPrimitive.Root;\n\nexport const FormControl = FormPrimitive.Control;\n\ntype FormFieldProps = FormPrimitive.FormFieldProps & FormFieldVariants;\n\nexport const FormField = ({ ...props }: FormFieldProps) => {\n const variants = pick(props, ...formFieldRecipe.variants());\n const formField = formFieldRecipe(variants);\n\n return (\n <FormPrimitive.Field\n {...props}\n className={mergeClasses(formField, props.className)}\n >\n {props.children}\n </FormPrimitive.Field>\n );\n};\n\ntype FormLabelProps = FormPrimitive.FormLabelProps & FormLabelVariants;\n\nexport const FormLabel = ({ ...props }: FormLabelProps) => {\n const variants = pick(props, ...formLabelRecipe.variants());\n const formLabel = formLabelRecipe(variants);\n\n return (\n <FormPrimitive.Label\n {...props}\n className={mergeClasses(formLabel, props.className)}\n >\n {props.children}\n </FormPrimitive.Label>\n );\n};\n\ntype FormMessageProps = FormPrimitive.FormMessageProps & FormMessageVariants;\n\nexport const FormMessage = ({ ...props }: FormMessageProps) => {\n const variants = pick(props, ...formMessageRecipe.variants());\n const formMessage = formMessageRecipe(variants);\n\n return (\n <FormPrimitive.Message\n {...props}\n className={mergeClasses(formMessage, props.className)}\n >\n {props.children}\n </FormPrimitive.Message>\n );\n};\n\nexport const FormSubmit = FormPrimitive.Submit;\n"],"mappings":";;;;;;;;;;;;;;AAUA,YAAY,mBAAmB;AAa3B;AAXG,IAAM,OAAqB;AAE3B,IAAM,cAA4B;AAIlC,IAAM,YAAY,CAAC,EAAE,GAAG,MAAM,MAAsB;AACzD,QAAM,WAAW,KAAK,OAAO,GAAG,gBAAgB,SAAS,CAAC;AAC1D,QAAM,YAAY,gBAAgB,QAAQ;AAE1C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,WAAW,MAAM,SAAS;AAAA,MAEjD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAIO,IAAM,YAAY,CAAC,EAAE,GAAG,MAAM,MAAsB;AACzD,QAAM,WAAW,KAAK,OAAO,GAAG,gBAAgB,SAAS,CAAC;AAC1D,QAAM,YAAY,gBAAgB,QAAQ;AAE1C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,WAAW,MAAM,SAAS;AAAA,MAEjD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAIO,IAAM,cAAc,CAAC,EAAE,GAAG,MAAM,MAAwB;AAC7D,QAAM,WAAW,KAAK,OAAO,GAAG,kBAAkB,SAAS,CAAC;AAC5D,QAAM,cAAc,kBAAkB,QAAQ;AAE9C,SACE;AAAA,IAAe;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,aAAa,MAAM,SAAS;AAAA,MAEnD,gBAAM;AAAA;AAAA,EACT;AAEJ;AAEO,IAAM,aAA2B;","names":[]}