@customafk/lunas-ui 0.2.39 → 0.2.41

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 (646) hide show
  1. package/dist/{alert-CNFuxKp7.d.cts → alert-BVsYpWFX.d.cts} +5 -5
  2. package/dist/{alert-BzBDfGk2.js → alert-D5VmhFT9.js} +2 -2
  3. package/dist/{alert-BzBDfGk2.js.map → alert-D5VmhFT9.js.map} +1 -1
  4. package/dist/{alert-DOpQdSIC.d.ts → alert-DXmXDeGs.d.ts} +7 -7
  5. package/dist/{alert-B2PaDJp6.cjs → alert-JwECRZfz.cjs} +2 -2
  6. package/dist/{alert-B2PaDJp6.cjs.map → alert-JwECRZfz.cjs.map} +1 -1
  7. package/dist/{button-IMi0bEY_.d.cts → button-BBfGvggN.d.ts} +4 -4
  8. package/dist/{button-D4YMSwqK.d.ts → button-BEjRVw6s.d.cts} +5 -5
  9. package/dist/{button.variants-CoSpd71B.js → button.variants-BruXd4VM.js} +1 -1
  10. package/dist/{button.variants-CoSpd71B.js.map → button.variants-BruXd4VM.js.map} +1 -1
  11. package/dist/{button.variants-4kw6plrv.cjs → button.variants-DgVFNsVc.cjs} +2 -2
  12. package/dist/{button.variants-4kw6plrv.cjs.map → button.variants-DgVFNsVc.cjs.map} +1 -1
  13. package/dist/cards/grid-product-card.cjs +1 -1
  14. package/dist/cards/grid-product-card.cjs.map +1 -1
  15. package/dist/cards/grid-product-card.js +1 -1
  16. package/dist/cards/grid-product-card.js.map +1 -1
  17. package/dist/cards/product-card.cjs +1 -1
  18. package/dist/cards/product-card.cjs.map +1 -1
  19. package/dist/cards/product-card.js +1 -1
  20. package/dist/cards/product-card.js.map +1 -1
  21. package/dist/cards/simple-card.cjs +1 -1
  22. package/dist/cards/simple-card.d.ts +2 -2
  23. package/dist/cards/simple-card.js +1 -1
  24. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  25. package/dist/{close-Dlo1bI8x.cjs → close-Dflkky9q.cjs} +2 -2
  26. package/dist/{close-Dlo1bI8x.cjs.map → close-Dflkky9q.cjs.map} +1 -1
  27. package/dist/{close-C0PdZGxr.js → close-DrkwaVXK.js} +1 -1
  28. package/dist/{close-C0PdZGxr.js.map → close-DrkwaVXK.js.map} +1 -1
  29. package/dist/cms-layout-B8maJRLp.cjs +2 -0
  30. package/dist/{cms-layout-BCH4NroR.cjs.map → cms-layout-B8maJRLp.cjs.map} +1 -1
  31. package/dist/cms-layout-CLeGdpMb.js +2 -0
  32. package/dist/{cms-layout-tPwrgJZc.js.map → cms-layout-CLeGdpMb.js.map} +1 -1
  33. package/dist/data-display/country.cjs +1 -1
  34. package/dist/data-display/country.cjs.map +1 -1
  35. package/dist/data-display/country.d.cts +1 -1
  36. package/dist/data-display/country.d.ts +1 -1
  37. package/dist/data-display/country.js +1 -1
  38. package/dist/data-display/country.js.map +1 -1
  39. package/dist/data-display/data-list.cjs +1 -1
  40. package/dist/data-display/date-tooltip.cjs +1 -1
  41. package/dist/data-display/date-tooltip.cjs.map +1 -1
  42. package/dist/data-display/date-tooltip.js +1 -1
  43. package/dist/data-display/date-tooltip.js.map +1 -1
  44. package/dist/data-display/date.cjs +2 -1
  45. package/dist/data-display/date.cjs.map +1 -0
  46. package/dist/data-display/date.js +2 -1
  47. package/dist/data-display/date.js.map +1 -0
  48. package/dist/data-display/empty.cjs +1 -1
  49. package/dist/data-display/name.cjs +1 -1
  50. package/dist/data-display/name.cjs.map +1 -1
  51. package/dist/data-display/name.js +1 -1
  52. package/dist/data-display/name.js.map +1 -1
  53. package/dist/data-display/phone-number.cjs +1 -1
  54. package/dist/data-display/phone-number.cjs.map +1 -1
  55. package/dist/data-display/phone-number.js +1 -1
  56. package/dist/data-display/phone-number.js.map +1 -1
  57. package/dist/data-display/role-badge.cjs +1 -1
  58. package/dist/data-display/role-badge.cjs.map +1 -1
  59. package/dist/data-display/role-badge.d.cts +1 -1
  60. package/dist/data-display/role-badge.d.ts +1 -1
  61. package/dist/data-display/role-badge.js +1 -1
  62. package/dist/data-display/role-badge.js.map +1 -1
  63. package/dist/data-display/statistic.cjs +2 -1
  64. package/dist/data-display/statistic.cjs.map +1 -0
  65. package/dist/data-display/statistic.d.cts +3 -3
  66. package/dist/data-display/statistic.d.ts +3 -3
  67. package/dist/data-display/statistic.js +2 -1
  68. package/dist/data-display/statistic.js.map +1 -0
  69. package/dist/data-display/user.cjs +2 -1
  70. package/dist/data-display/user.cjs.map +1 -0
  71. package/dist/data-display/user.js +2 -1
  72. package/dist/data-display/user.js.map +1 -0
  73. package/dist/dialogs/confirm-dialog.cjs +1 -1
  74. package/dist/dialogs/confirm-dialog.js +1 -1
  75. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  76. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
  77. package/dist/dialogs/detail-dialog/components/sidebar.d.ts +6 -6
  78. package/dist/dialogs/detail-dialog/components/sidebar.js +1 -1
  79. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  80. package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
  81. package/dist/dialogs/detail-dialog/index.js +1 -1
  82. package/dist/dialogs/detail-dialog/index.js.map +1 -1
  83. package/dist/dialogs/error-dialog.cjs +1 -1
  84. package/dist/dialogs/error-dialog.js +1 -1
  85. package/dist/dialogs/loading-dialog.cjs +1 -1
  86. package/dist/dialogs/loading-dialog.cjs.map +1 -1
  87. package/dist/dialogs/loading-dialog.js +1 -1
  88. package/dist/dialogs/loading-dialog.js.map +1 -1
  89. package/dist/features/descriptions/index.cjs +1 -1
  90. package/dist/features/descriptions/index.cjs.map +1 -1
  91. package/dist/features/descriptions/index.d.cts +3 -3
  92. package/dist/features/descriptions/index.d.ts +6 -6
  93. package/dist/features/descriptions/index.js +1 -1
  94. package/dist/features/descriptions/index.js.map +1 -1
  95. package/dist/features/search-modal/index.cjs +1 -1
  96. package/dist/features/search-modal/index.d.cts +2 -2
  97. package/dist/features/search-modal/index.d.ts +2 -2
  98. package/dist/features/search-modal/index.js +1 -1
  99. package/dist/features/tables/index.cjs +1 -1
  100. package/dist/features/tables/index.d.cts +1 -1
  101. package/dist/features/tables/index.d.ts +1 -2
  102. package/dist/features/tables/index.js +1 -1
  103. package/dist/features/tanstack-form/index.cjs +1 -1
  104. package/dist/features/tanstack-form/index.d.cts +1 -1
  105. package/dist/features/tanstack-form/index.d.ts +1 -1
  106. package/dist/features/tanstack-form/index.js +1 -1
  107. package/dist/features/text-editor/index.cjs +1 -1
  108. package/dist/features/text-editor/index.d.cts +1 -1
  109. package/dist/features/text-editor/index.d.ts +1 -1
  110. package/dist/features/text-editor/index.js +1 -1
  111. package/dist/field-0gaEKxov.cjs +2 -0
  112. package/dist/{field-BrlETeXX.cjs.map → field-0gaEKxov.cjs.map} +1 -1
  113. package/dist/field-DG-kX3HU.js +2 -0
  114. package/dist/{field-DpoKF1nY.js.map → field-DG-kX3HU.js.map} +1 -1
  115. package/dist/{flex-DmWmOBn5.cjs → flex-BAfCk_in.cjs} +2 -2
  116. package/dist/{flex-DmWmOBn5.cjs.map → flex-BAfCk_in.cjs.map} +1 -1
  117. package/dist/{flex-CinRrgEy.js → flex-D_XtSjf4.js} +2 -2
  118. package/dist/{flex-CinRrgEy.js.map → flex-D_XtSjf4.js.map} +1 -1
  119. package/dist/{heading-tGTqk3pA.cjs → heading-BX7ZVnVg.cjs} +2 -2
  120. package/dist/{heading-tGTqk3pA.cjs.map → heading-BX7ZVnVg.cjs.map} +1 -1
  121. package/dist/{heading-Bz-hSatD.js → heading-Bw3eo6IT.js} +1 -1
  122. package/dist/{heading-Bz-hSatD.js.map → heading-Bw3eo6IT.js.map} +1 -1
  123. package/dist/{index-C1WfBa-T.d.ts → index--eHW_BCk.d.ts} +7 -7
  124. package/dist/{index-BlQGXGqt.d.ts → index-C257sc-c.d.ts} +1 -1
  125. package/dist/{index-gSP59hja.d.cts → index-C4ZFmaZm.d.cts} +324 -324
  126. package/dist/{index-BxoQxUnW.d.cts → index-DWEpRM8i.d.cts} +3 -3
  127. package/dist/{index-BDMEeMn4.d.ts → index-DnQeeNHV.d.ts} +31 -31
  128. package/dist/{index-Du_HLRsN.d.cts → index-_MFRCXuJ.d.cts} +3 -3
  129. package/dist/{index-KO98y6L0.d.cts → index-rNI5ia8r.d.cts} +1 -1
  130. package/dist/{index-BiAWxLAj.d.ts → index-rZ2RtGJp.d.ts} +325 -325
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.d.cts +11 -11
  133. package/dist/index.d.ts +11 -11
  134. package/dist/index.js +1 -1
  135. package/dist/layouts/cms-layout/index.cjs +1 -1
  136. package/dist/layouts/cms-layout/index.d.cts +1 -1
  137. package/dist/layouts/cms-layout/index.d.ts +1 -1
  138. package/dist/layouts/cms-layout/index.js +1 -1
  139. package/dist/layouts/flex.cjs +1 -1
  140. package/dist/layouts/flex.d.cts +5 -5
  141. package/dist/layouts/flex.d.ts +5 -5
  142. package/dist/layouts/flex.js +1 -1
  143. package/dist/layouts/grid.cjs +1 -1
  144. package/dist/layouts/payment-layout/index.cjs +1 -1
  145. package/dist/layouts/payment-layout/index.js +1 -1
  146. package/dist/pages/FeatureDeveloping.cjs +1 -1
  147. package/dist/pages/FeatureDeveloping.cjs.map +1 -1
  148. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  149. package/dist/pages/FeatureDeveloping.d.ts +2 -2
  150. package/dist/pages/FeatureDeveloping.js +1 -1
  151. package/dist/pages/FeatureDeveloping.js.map +1 -1
  152. package/dist/pages/FeatureFixing.cjs +1 -1
  153. package/dist/pages/FeatureFixing.cjs.map +1 -1
  154. package/dist/pages/FeatureFixing.d.cts +2 -2
  155. package/dist/pages/FeatureFixing.d.ts +2 -2
  156. package/dist/pages/FeatureFixing.js +1 -1
  157. package/dist/pages/FeatureFixing.js.map +1 -1
  158. package/dist/pages/LoginPage.cjs +1 -1
  159. package/dist/pages/LoginPage.cjs.map +1 -1
  160. package/dist/pages/LoginPage.d.cts +2 -2
  161. package/dist/pages/LoginPage.d.ts +2 -2
  162. package/dist/pages/LoginPage.js +1 -1
  163. package/dist/pages/LoginPage.js.map +1 -1
  164. package/dist/pages/NotAuthorized.cjs +1 -1
  165. package/dist/pages/NotAuthorized.cjs.map +1 -1
  166. package/dist/pages/NotAuthorized.d.cts +2 -2
  167. package/dist/pages/NotAuthorized.d.ts +2 -2
  168. package/dist/pages/NotAuthorized.js +1 -1
  169. package/dist/pages/NotAuthorized.js.map +1 -1
  170. package/dist/pages/NotFound.cjs +1 -1
  171. package/dist/pages/NotFound.cjs.map +1 -1
  172. package/dist/pages/NotFound.d.cts +2 -2
  173. package/dist/pages/NotFound.d.ts +2 -2
  174. package/dist/pages/NotFound.js +1 -1
  175. package/dist/pages/NotFound.js.map +1 -1
  176. package/dist/pages/RegisterPage.cjs +1 -1
  177. package/dist/pages/RegisterPage.cjs.map +1 -1
  178. package/dist/pages/RegisterPage.d.cts +2 -2
  179. package/dist/pages/RegisterPage.d.ts +2 -2
  180. package/dist/pages/RegisterPage.js +1 -1
  181. package/dist/pages/RegisterPage.js.map +1 -1
  182. package/dist/pages/VerifyEmailPage.cjs +1 -1
  183. package/dist/pages/VerifyEmailPage.cjs.map +1 -1
  184. package/dist/pages/VerifyEmailPage.d.cts +2 -2
  185. package/dist/pages/VerifyEmailPage.d.ts +2 -2
  186. package/dist/pages/VerifyEmailPage.js +1 -1
  187. package/dist/pages/VerifyEmailPage.js.map +1 -1
  188. package/dist/{paragraph-DvTZvbzw.cjs → paragraph-D0x3Jc6W.cjs} +2 -2
  189. package/dist/{paragraph-DvTZvbzw.cjs.map → paragraph-D0x3Jc6W.cjs.map} +1 -1
  190. package/dist/{paragraph-Cc13ZI4d.js → paragraph-ESjXXqHU.js} +1 -1
  191. package/dist/{paragraph-Cc13ZI4d.js.map → paragraph-ESjXXqHU.js.map} +1 -1
  192. package/dist/payment-layout-CksJbGsl.js +2 -0
  193. package/dist/{payment-layout-giaGvs8T.js.map → payment-layout-CksJbGsl.js.map} +1 -1
  194. package/dist/payment-layout-O7TNw2Cr.cjs +2 -0
  195. package/dist/{payment-layout-DyILfyVG.cjs.map → payment-layout-O7TNw2Cr.cjs.map} +1 -1
  196. package/dist/search-modal-Db8Xp2L4.cjs +2 -0
  197. package/dist/{search-modal-B-pzGcfP.cjs.map → search-modal-Db8Xp2L4.cjs.map} +1 -1
  198. package/dist/search-modal-DdonKbwA.js +2 -0
  199. package/dist/{search-modal-b2AE5WEW.js.map → search-modal-DdonKbwA.js.map} +1 -1
  200. package/dist/sidebar-BCuXtop_.js +2 -0
  201. package/dist/sidebar-BCuXtop_.js.map +1 -0
  202. package/dist/sidebar-CQZlWCK4.cjs +2 -0
  203. package/dist/{sidebar-D5J2gcTw.cjs.map → sidebar-CQZlWCK4.cjs.map} +1 -1
  204. package/dist/{skeleton-DlRDNM97.js → skeleton-DAcbjBGp.js} +1 -1
  205. package/dist/{skeleton-DlRDNM97.js.map → skeleton-DAcbjBGp.js.map} +1 -1
  206. package/dist/{skeleton-CX1USu1w.cjs → skeleton-oQFT4xR2.cjs} +2 -2
  207. package/dist/{skeleton-CX1USu1w.cjs.map → skeleton-oQFT4xR2.cjs.map} +1 -1
  208. package/dist/systems/google.cjs +1 -1
  209. package/dist/systems/google.js +1 -1
  210. package/dist/tables-DbwtCMRI.js +4 -0
  211. package/dist/{tables-DWQytYNm.js.map → tables-DbwtCMRI.js.map} +1 -1
  212. package/dist/tables-DgZbLZQP.cjs +4 -0
  213. package/dist/{tables-CPKHe3k-.cjs.map → tables-DgZbLZQP.cjs.map} +1 -1
  214. package/dist/tanstack-form-C3SGhsmN.cjs +2 -0
  215. package/dist/tanstack-form-C3SGhsmN.cjs.map +1 -0
  216. package/dist/tanstack-form-Ds_Zjt20.js +2 -0
  217. package/dist/tanstack-form-Ds_Zjt20.js.map +1 -0
  218. package/dist/text-editor-DhTxCxvH.cjs +2 -0
  219. package/dist/{text-editor-CvJN3nSL.cjs.map → text-editor-DhTxCxvH.cjs.map} +1 -1
  220. package/dist/text-editor-DwisU9_U.js +2 -0
  221. package/dist/{text-editor-WbS7pJJs.js.map → text-editor-DwisU9_U.js.map} +1 -1
  222. package/dist/typography/paragraph.cjs +1 -1
  223. package/dist/typography/paragraph.d.cts +4 -4
  224. package/dist/typography/paragraph.d.ts +3 -3
  225. package/dist/typography/paragraph.js +1 -1
  226. package/dist/typography/title.cjs +1 -1
  227. package/dist/ui/alert-dialog.cjs +1 -1
  228. package/dist/ui/alert-dialog.d.cts +12 -12
  229. package/dist/ui/alert-dialog.d.ts +12 -12
  230. package/dist/ui/alert-dialog.js +1 -1
  231. package/dist/ui/alert.cjs +1 -1
  232. package/dist/ui/alert.d.cts +1 -1
  233. package/dist/ui/alert.d.ts +1 -1
  234. package/dist/ui/alert.js +1 -1
  235. package/dist/ui/aspect-ratio.cjs +1 -1
  236. package/dist/ui/aspect-ratio.d.cts +2 -2
  237. package/dist/ui/aspect-ratio.d.ts +2 -2
  238. package/dist/ui/avatar.cjs +2 -1
  239. package/dist/ui/avatar.cjs.map +1 -0
  240. package/dist/ui/avatar.d.cts +4 -4
  241. package/dist/ui/avatar.d.ts +4 -4
  242. package/dist/ui/avatar.js +2 -1
  243. package/dist/ui/avatar.js.map +1 -0
  244. package/dist/ui/badge.cjs +2 -1
  245. package/dist/ui/badge.cjs.map +1 -0
  246. package/dist/ui/badge.d.cts +42 -2
  247. package/dist/ui/badge.d.ts +42 -2
  248. package/dist/ui/badge.js +2 -1
  249. package/dist/ui/badge.js.map +1 -0
  250. package/dist/ui/breadcrumb.cjs +1 -1
  251. package/dist/ui/breadcrumb.cjs.map +1 -1
  252. package/dist/ui/breadcrumb.d.cts +8 -8
  253. package/dist/ui/breadcrumb.d.ts +8 -8
  254. package/dist/ui/breadcrumb.js +1 -1
  255. package/dist/ui/breadcrumb.js.map +1 -1
  256. package/dist/ui/button-group.cjs +1 -1
  257. package/dist/ui/button-group.cjs.map +1 -1
  258. package/dist/ui/button-group.d.cts +7 -7
  259. package/dist/ui/button-group.d.ts +7 -7
  260. package/dist/ui/button-group.js +1 -1
  261. package/dist/ui/button-group.js.map +1 -1
  262. package/dist/ui/button.cjs +2 -1
  263. package/dist/ui/button.cjs.map +1 -0
  264. package/dist/ui/button.d.cts +1 -1
  265. package/dist/ui/button.d.ts +1 -1
  266. package/dist/ui/button.js +2 -1
  267. package/dist/ui/button.js.map +1 -0
  268. package/dist/ui/buttons/add-new.cjs +1 -1
  269. package/dist/ui/buttons/add-new.cjs.map +1 -1
  270. package/dist/ui/buttons/add-new.js +1 -1
  271. package/dist/ui/buttons/add-new.js.map +1 -1
  272. package/dist/ui/buttons/edit.cjs +1 -1
  273. package/dist/ui/buttons/edit.cjs.map +1 -1
  274. package/dist/ui/buttons/edit.js +1 -1
  275. package/dist/ui/buttons/edit.js.map +1 -1
  276. package/dist/ui/buttons/refresh.cjs +1 -1
  277. package/dist/ui/buttons/refresh.cjs.map +1 -1
  278. package/dist/ui/buttons/refresh.js +1 -1
  279. package/dist/ui/buttons/refresh.js.map +1 -1
  280. package/dist/ui/buttons/trash.cjs +1 -1
  281. package/dist/ui/buttons/trash.cjs.map +1 -1
  282. package/dist/ui/buttons/trash.js +1 -1
  283. package/dist/ui/buttons/trash.js.map +1 -1
  284. package/dist/ui/buttons/upload-image.cjs +1 -1
  285. package/dist/ui/buttons/upload-image.cjs.map +1 -1
  286. package/dist/ui/buttons/upload-image.js +1 -1
  287. package/dist/ui/buttons/upload-image.js.map +1 -1
  288. package/dist/ui/calendar.cjs +2 -1
  289. package/dist/ui/calendar.cjs.map +1 -0
  290. package/dist/ui/calendar.d.cts +4 -4
  291. package/dist/ui/calendar.d.ts +4 -4
  292. package/dist/ui/calendar.js +2 -1
  293. package/dist/ui/calendar.js.map +1 -0
  294. package/dist/ui/card.cjs +1 -1
  295. package/dist/ui/card.d.cts +8 -8
  296. package/dist/ui/card.d.ts +8 -8
  297. package/dist/ui/card.js +1 -1
  298. package/dist/ui/carousel.cjs +1 -1
  299. package/dist/ui/carousel.cjs.map +1 -1
  300. package/dist/ui/carousel.d.cts +7 -7
  301. package/dist/ui/carousel.d.ts +7 -7
  302. package/dist/ui/carousel.js +1 -1
  303. package/dist/ui/carousel.js.map +1 -1
  304. package/dist/ui/checkbox.cjs +2 -1
  305. package/dist/ui/checkbox.cjs.map +1 -0
  306. package/dist/ui/checkbox.d.cts +2 -2
  307. package/dist/ui/checkbox.d.ts +2 -2
  308. package/dist/ui/checkbox.js +2 -1
  309. package/dist/ui/checkbox.js.map +1 -0
  310. package/dist/ui/collapsible.cjs +1 -1
  311. package/dist/ui/collapsible.d.cts +4 -4
  312. package/dist/ui/collapsible.d.ts +4 -4
  313. package/dist/ui/command.cjs +2 -1
  314. package/dist/ui/command.cjs.map +1 -0
  315. package/dist/ui/command.d.cts +11 -11
  316. package/dist/ui/command.d.ts +11 -11
  317. package/dist/ui/command.js +2 -1
  318. package/dist/ui/command.js.map +1 -0
  319. package/dist/ui/context-menu.cjs +1 -1
  320. package/dist/ui/context-menu.d.cts +16 -16
  321. package/dist/ui/context-menu.d.ts +16 -16
  322. package/dist/ui/dialog.cjs +2 -1
  323. package/dist/ui/dialog.cjs.map +1 -0
  324. package/dist/ui/dialog.d.cts +90 -2
  325. package/dist/ui/dialog.d.ts +90 -2
  326. package/dist/ui/dialog.js +2 -1
  327. package/dist/ui/dialog.js.map +1 -0
  328. package/dist/ui/drawer.cjs +2 -1
  329. package/dist/ui/drawer.cjs.map +1 -0
  330. package/dist/ui/drawer.d.cts +11 -11
  331. package/dist/ui/drawer.d.ts +11 -11
  332. package/dist/ui/drawer.js +2 -1
  333. package/dist/ui/drawer.js.map +1 -0
  334. package/dist/ui/dropdown-menu.cjs +2 -1
  335. package/dist/ui/dropdown-menu.cjs.map +1 -0
  336. package/dist/ui/dropdown-menu.d.cts +16 -16
  337. package/dist/ui/dropdown-menu.d.ts +16 -16
  338. package/dist/ui/dropdown-menu.js +2 -1
  339. package/dist/ui/dropdown-menu.js.map +1 -0
  340. package/dist/ui/empty.cjs +1 -1
  341. package/dist/ui/empty.d.cts +9 -9
  342. package/dist/ui/empty.d.ts +7 -7
  343. package/dist/ui/field.cjs +1 -1
  344. package/dist/ui/field.d.cts +22 -22
  345. package/dist/ui/field.d.ts +22 -22
  346. package/dist/ui/field.js +1 -1
  347. package/dist/ui/file-uploader.cjs +2 -2
  348. package/dist/ui/file-uploader.cjs.map +1 -1
  349. package/dist/ui/file-uploader.d.cts +2 -2
  350. package/dist/ui/file-uploader.d.ts +2 -2
  351. package/dist/ui/file-uploader.js +2 -2
  352. package/dist/ui/file-uploader.js.map +1 -1
  353. package/dist/ui/form.cjs +1 -1
  354. package/dist/ui/form.cjs.map +1 -1
  355. package/dist/ui/form.d.cts +10 -10
  356. package/dist/ui/form.d.ts +10 -10
  357. package/dist/ui/form.js +1 -1
  358. package/dist/ui/form.js.map +1 -1
  359. package/dist/ui/hover-card.cjs +1 -1
  360. package/dist/ui/hover-card.d.cts +4 -4
  361. package/dist/ui/hover-card.d.ts +4 -4
  362. package/dist/ui/image.cjs +2 -1
  363. package/dist/ui/image.cjs.map +1 -0
  364. package/dist/ui/image.js +2 -1
  365. package/dist/ui/image.js.map +1 -0
  366. package/dist/ui/input-otp.cjs +1 -1
  367. package/dist/ui/input-otp.d.cts +5 -5
  368. package/dist/ui/input-otp.d.ts +5 -5
  369. package/dist/ui/input-otp.js +1 -1
  370. package/dist/ui/input.cjs +2 -1
  371. package/dist/ui/input.cjs.map +1 -0
  372. package/dist/ui/input.d.cts +44 -2
  373. package/dist/ui/input.d.ts +44 -2
  374. package/dist/ui/input.js +2 -1
  375. package/dist/ui/input.js.map +1 -0
  376. package/dist/ui/inputs/search-input.cjs +1 -1
  377. package/dist/ui/inputs/search-input.cjs.map +1 -1
  378. package/dist/ui/inputs/search-input.d.cts +3 -3
  379. package/dist/ui/inputs/search-input.d.ts +3 -3
  380. package/dist/ui/inputs/search-input.js +1 -1
  381. package/dist/ui/inputs/search-input.js.map +1 -1
  382. package/dist/ui/item.cjs +1 -1
  383. package/dist/ui/item.cjs.map +1 -1
  384. package/dist/ui/item.d.cts +15 -15
  385. package/dist/ui/item.d.ts +12 -12
  386. package/dist/ui/item.js +1 -1
  387. package/dist/ui/item.js.map +1 -1
  388. package/dist/ui/label.cjs +2 -1
  389. package/dist/ui/label.cjs.map +1 -0
  390. package/dist/ui/label.d.cts +2 -2
  391. package/dist/ui/label.d.ts +2 -2
  392. package/dist/ui/label.js +2 -1
  393. package/dist/ui/label.js.map +1 -0
  394. package/dist/ui/menubar.cjs +1 -1
  395. package/dist/ui/menubar.d.cts +17 -17
  396. package/dist/ui/menubar.d.ts +17 -17
  397. package/dist/ui/multi-select.cjs +1 -1
  398. package/dist/ui/multi-select.cjs.map +1 -1
  399. package/dist/ui/multi-select.d.cts +3 -3
  400. package/dist/ui/multi-select.d.ts +6 -7
  401. package/dist/ui/multi-select.js +1 -1
  402. package/dist/ui/multi-select.js.map +1 -1
  403. package/dist/ui/navigation-menu.cjs +1 -1
  404. package/dist/ui/navigation-menu.d.cts +11 -11
  405. package/dist/ui/navigation-menu.d.ts +11 -11
  406. package/dist/ui/pagination.cjs +1 -1
  407. package/dist/ui/pagination.d.cts +9 -9
  408. package/dist/ui/pagination.d.ts +9 -9
  409. package/dist/ui/pagination.js +1 -1
  410. package/dist/ui/popover.cjs +2 -1
  411. package/dist/ui/popover.cjs.map +1 -0
  412. package/dist/ui/popover.d.cts +6 -6
  413. package/dist/ui/popover.d.ts +6 -6
  414. package/dist/ui/popover.js +2 -1
  415. package/dist/ui/popover.js.map +1 -0
  416. package/dist/ui/progress.cjs +2 -1
  417. package/dist/ui/progress.cjs.map +1 -0
  418. package/dist/ui/progress.d.cts +2 -2
  419. package/dist/ui/progress.d.ts +2 -2
  420. package/dist/ui/progress.js +2 -1
  421. package/dist/ui/progress.js.map +1 -0
  422. package/dist/ui/radio-group.cjs +2 -1
  423. package/dist/ui/radio-group.cjs.map +1 -0
  424. package/dist/ui/radio-group.d.cts +3 -3
  425. package/dist/ui/radio-group.d.ts +3 -3
  426. package/dist/ui/radio-group.js +2 -1
  427. package/dist/ui/radio-group.js.map +1 -0
  428. package/dist/ui/resizable.cjs +2 -1
  429. package/dist/ui/resizable.cjs.map +1 -0
  430. package/dist/ui/resizable.d.cts +9 -9
  431. package/dist/ui/resizable.d.ts +9 -9
  432. package/dist/ui/resizable.js +2 -1
  433. package/dist/ui/resizable.js.map +1 -0
  434. package/dist/ui/scroll-area.cjs +1 -1
  435. package/dist/ui/scroll-area.d.cts +5 -5
  436. package/dist/ui/scroll-area.d.ts +5 -5
  437. package/dist/ui/scroll-area.js +1 -1
  438. package/dist/ui/select.cjs +2 -1
  439. package/dist/ui/select.cjs.map +1 -0
  440. package/dist/ui/select.d.cts +9 -9
  441. package/dist/ui/select.d.ts +9 -9
  442. package/dist/ui/select.js +2 -1
  443. package/dist/ui/select.js.map +1 -0
  444. package/dist/ui/separator.cjs +2 -1
  445. package/dist/ui/separator.cjs.map +1 -0
  446. package/dist/ui/separator.d.cts +2 -2
  447. package/dist/ui/separator.d.ts +2 -2
  448. package/dist/ui/separator.js +2 -1
  449. package/dist/ui/separator.js.map +1 -0
  450. package/dist/ui/sheet.cjs +2 -1
  451. package/dist/ui/sheet.cjs.map +1 -0
  452. package/dist/ui/sheet.d.cts +9 -9
  453. package/dist/ui/sheet.d.ts +9 -9
  454. package/dist/ui/sheet.js +2 -1
  455. package/dist/ui/sheet.js.map +1 -0
  456. package/dist/ui/skeleton.cjs +1 -1
  457. package/dist/ui/skeleton.d.cts +2 -2
  458. package/dist/ui/skeleton.d.ts +2 -2
  459. package/dist/ui/skeleton.js +1 -1
  460. package/dist/ui/slider.cjs +1 -1
  461. package/dist/ui/slider.d.cts +2 -2
  462. package/dist/ui/slider.d.ts +2 -2
  463. package/dist/ui/slider.js +1 -1
  464. package/dist/ui/sonner.cjs +1 -1
  465. package/dist/ui/sonner.d.cts +2 -2
  466. package/dist/ui/sonner.d.ts +2 -2
  467. package/dist/ui/spinner.cjs +2 -1
  468. package/dist/ui/spinner.cjs.map +1 -0
  469. package/dist/ui/spinner.d.cts +2 -2
  470. package/dist/ui/spinner.d.ts +2 -2
  471. package/dist/ui/spinner.js +2 -1
  472. package/dist/ui/spinner.js.map +1 -0
  473. package/dist/ui/switch.cjs +2 -1
  474. package/dist/ui/switch.cjs.map +1 -0
  475. package/dist/ui/switch.d.cts +2 -2
  476. package/dist/ui/switch.d.ts +2 -2
  477. package/dist/ui/switch.js +2 -1
  478. package/dist/ui/switch.js.map +1 -0
  479. package/dist/ui/table.cjs +1 -1
  480. package/dist/ui/table.d.cts +17 -17
  481. package/dist/ui/table.d.ts +17 -17
  482. package/dist/ui/table.js +1 -1
  483. package/dist/ui/tabs.cjs +1 -1
  484. package/dist/ui/tabs.d.cts +5 -5
  485. package/dist/ui/tabs.d.ts +5 -5
  486. package/dist/ui/textarea.cjs +2 -1
  487. package/dist/ui/textarea.cjs.map +1 -0
  488. package/dist/ui/textarea.d.cts +2 -2
  489. package/dist/ui/textarea.js +2 -1
  490. package/dist/ui/textarea.js.map +1 -0
  491. package/dist/ui/toggle-group.cjs +1 -1
  492. package/dist/ui/toggle-group.cjs.map +1 -1
  493. package/dist/ui/toggle-group.d.cts +4 -4
  494. package/dist/ui/toggle-group.d.ts +4 -4
  495. package/dist/ui/toggle-group.js +1 -1
  496. package/dist/ui/toggle-group.js.map +1 -1
  497. package/dist/ui/toggle.cjs +1 -1
  498. package/dist/ui/toggle.d.cts +2 -2
  499. package/dist/ui/toggle.d.ts +3 -3
  500. package/dist/ui/tooltip.cjs +2 -1
  501. package/dist/ui/tooltip.cjs.map +1 -0
  502. package/dist/ui/tooltip.d.cts +5 -5
  503. package/dist/ui/tooltip.d.ts +5 -5
  504. package/dist/ui/tooltip.js +2 -1
  505. package/dist/ui/tooltip.js.map +1 -0
  506. package/package.json +97 -97
  507. package/dist/avatar-Hpj8lmux.js +0 -2
  508. package/dist/avatar-Hpj8lmux.js.map +0 -1
  509. package/dist/avatar-TyOphzGo.cjs +0 -2
  510. package/dist/avatar-TyOphzGo.cjs.map +0 -1
  511. package/dist/badge-CRpRXSuO.js +0 -2
  512. package/dist/badge-CRpRXSuO.js.map +0 -1
  513. package/dist/badge-D4c9IlYD.d.cts +0 -42
  514. package/dist/badge-DowUoI6w.d.ts +0 -42
  515. package/dist/badge-KW7xu5Ca.cjs +0 -2
  516. package/dist/badge-KW7xu5Ca.cjs.map +0 -1
  517. package/dist/button-C--DAN1D.cjs +0 -2
  518. package/dist/button-C--DAN1D.cjs.map +0 -1
  519. package/dist/button-LMMbL-uH.js +0 -2
  520. package/dist/button-LMMbL-uH.js.map +0 -1
  521. package/dist/calendar-4weBDnXz.cjs +0 -2
  522. package/dist/calendar-4weBDnXz.cjs.map +0 -1
  523. package/dist/calendar-DzPt7b6k.js +0 -2
  524. package/dist/calendar-DzPt7b6k.js.map +0 -1
  525. package/dist/checkbox-DLGDoU-1.js +0 -2
  526. package/dist/checkbox-DLGDoU-1.js.map +0 -1
  527. package/dist/checkbox-Dsq-MSbH.cjs +0 -2
  528. package/dist/checkbox-Dsq-MSbH.cjs.map +0 -1
  529. package/dist/chunk-350yNsax.cjs +0 -1
  530. package/dist/cms-layout-BCH4NroR.cjs +0 -2
  531. package/dist/cms-layout-tPwrgJZc.js +0 -2
  532. package/dist/command-2gUejA6g.js +0 -2
  533. package/dist/command-2gUejA6g.js.map +0 -1
  534. package/dist/command-CsP8a1Un.cjs +0 -2
  535. package/dist/command-CsP8a1Un.cjs.map +0 -1
  536. package/dist/date-BIqCFM1Z.js +0 -2
  537. package/dist/date-BIqCFM1Z.js.map +0 -1
  538. package/dist/date-D4NVl6C9.cjs +0 -2
  539. package/dist/date-D4NVl6C9.cjs.map +0 -1
  540. package/dist/dialog-AcOtFuF4.d.ts +0 -90
  541. package/dist/dialog-BLjShZci.d.cts +0 -90
  542. package/dist/dialog-BigPrWIj.cjs +0 -2
  543. package/dist/dialog-BigPrWIj.cjs.map +0 -1
  544. package/dist/dialog-CmutQ3rp.js +0 -2
  545. package/dist/dialog-CmutQ3rp.js.map +0 -1
  546. package/dist/dist-Cx5ufCdr.cjs +0 -2
  547. package/dist/dist-Cx5ufCdr.cjs.map +0 -1
  548. package/dist/dist-EPxjIRJp.js +0 -2
  549. package/dist/dist-EPxjIRJp.js.map +0 -1
  550. package/dist/drawer-B3qXaN5p.js +0 -2
  551. package/dist/drawer-B3qXaN5p.js.map +0 -1
  552. package/dist/drawer-BB8BZzDG.cjs +0 -2
  553. package/dist/drawer-BB8BZzDG.cjs.map +0 -1
  554. package/dist/dropdown-menu-CVh520yG.cjs +0 -2
  555. package/dist/dropdown-menu-CVh520yG.cjs.map +0 -1
  556. package/dist/dropdown-menu-DeHCVyby.js +0 -2
  557. package/dist/dropdown-menu-DeHCVyby.js.map +0 -1
  558. package/dist/field-BrlETeXX.cjs +0 -2
  559. package/dist/field-DpoKF1nY.js +0 -2
  560. package/dist/image-BpTuF_1w.js +0 -2
  561. package/dist/image-BpTuF_1w.js.map +0 -1
  562. package/dist/image-W_Yb0xTB.cjs +0 -2
  563. package/dist/image-W_Yb0xTB.cjs.map +0 -1
  564. package/dist/input-Aa-GQW2V.d.cts +0 -44
  565. package/dist/input-B1Wc5jsb.d.ts +0 -44
  566. package/dist/input-DAfP6LZ7.js +0 -2
  567. package/dist/input-DAfP6LZ7.js.map +0 -1
  568. package/dist/input-WJ0DLHTR.cjs +0 -2
  569. package/dist/input-WJ0DLHTR.cjs.map +0 -1
  570. package/dist/label-B8cAG2kc.js +0 -2
  571. package/dist/label-B8cAG2kc.js.map +0 -1
  572. package/dist/label-CC6fXVbC.cjs +0 -2
  573. package/dist/label-CC6fXVbC.cjs.map +0 -1
  574. package/dist/payment-layout-DyILfyVG.cjs +0 -2
  575. package/dist/payment-layout-giaGvs8T.js +0 -2
  576. package/dist/popover-6233wU1s.js +0 -2
  577. package/dist/popover-6233wU1s.js.map +0 -1
  578. package/dist/popover-DBsC8Ltp.cjs +0 -2
  579. package/dist/popover-DBsC8Ltp.cjs.map +0 -1
  580. package/dist/progress-AYknlEgK.js +0 -2
  581. package/dist/progress-AYknlEgK.js.map +0 -1
  582. package/dist/progress-gvBqNiHp.cjs +0 -2
  583. package/dist/progress-gvBqNiHp.cjs.map +0 -1
  584. package/dist/radio-group-ImoBjpqZ.js +0 -2
  585. package/dist/radio-group-ImoBjpqZ.js.map +0 -1
  586. package/dist/radio-group-_TdMkv8w.cjs +0 -2
  587. package/dist/radio-group-_TdMkv8w.cjs.map +0 -1
  588. package/dist/resizable-C-M-mu6b.js +0 -2
  589. package/dist/resizable-C-M-mu6b.js.map +0 -1
  590. package/dist/resizable-sgpaHAb8.cjs +0 -2
  591. package/dist/resizable-sgpaHAb8.cjs.map +0 -1
  592. package/dist/search-modal-B-pzGcfP.cjs +0 -2
  593. package/dist/search-modal-b2AE5WEW.js +0 -2
  594. package/dist/select-CWLQHh8x.cjs +0 -2
  595. package/dist/select-CWLQHh8x.cjs.map +0 -1
  596. package/dist/select-CryLzZA0.js +0 -2
  597. package/dist/select-CryLzZA0.js.map +0 -1
  598. package/dist/separator-BM8hA4DP.js +0 -2
  599. package/dist/separator-BM8hA4DP.js.map +0 -1
  600. package/dist/separator-KuymG9g0.cjs +0 -2
  601. package/dist/separator-KuymG9g0.cjs.map +0 -1
  602. package/dist/sheet-CvKSi0UC.cjs +0 -2
  603. package/dist/sheet-CvKSi0UC.cjs.map +0 -1
  604. package/dist/sheet-DGXXYgWB.js +0 -2
  605. package/dist/sheet-DGXXYgWB.js.map +0 -1
  606. package/dist/sidebar-BDrsbzo5.js +0 -2
  607. package/dist/sidebar-BDrsbzo5.js.map +0 -1
  608. package/dist/sidebar-D5J2gcTw.cjs +0 -2
  609. package/dist/spinner-C1eamx3w.js +0 -2
  610. package/dist/spinner-C1eamx3w.js.map +0 -1
  611. package/dist/spinner-CFxorYEt.cjs +0 -2
  612. package/dist/spinner-CFxorYEt.cjs.map +0 -1
  613. package/dist/statistic-CYMqAYNc.js +0 -2
  614. package/dist/statistic-CYMqAYNc.js.map +0 -1
  615. package/dist/statistic-DDXilD7q.cjs +0 -2
  616. package/dist/statistic-DDXilD7q.cjs.map +0 -1
  617. package/dist/switch-BLHmdRq2.js +0 -2
  618. package/dist/switch-BLHmdRq2.js.map +0 -1
  619. package/dist/switch-DVfOV7wP.cjs +0 -2
  620. package/dist/switch-DVfOV7wP.cjs.map +0 -1
  621. package/dist/tables-CPKHe3k-.cjs +0 -4
  622. package/dist/tables-DWQytYNm.js +0 -4
  623. package/dist/tanstack-form-DatI41wz.cjs +0 -12
  624. package/dist/tanstack-form-DatI41wz.cjs.map +0 -1
  625. package/dist/tanstack-form-YVdm9V01.js +0 -12
  626. package/dist/tanstack-form-YVdm9V01.js.map +0 -1
  627. package/dist/text-editor-CvJN3nSL.cjs +0 -2
  628. package/dist/text-editor-WbS7pJJs.js +0 -2
  629. package/dist/textarea-Bp6VvhiA.js +0 -2
  630. package/dist/textarea-Bp6VvhiA.js.map +0 -1
  631. package/dist/textarea-Cc9CF8wD.cjs +0 -2
  632. package/dist/textarea-Cc9CF8wD.cjs.map +0 -1
  633. package/dist/tooltip-CBdoIzoM.cjs +0 -2
  634. package/dist/tooltip-CBdoIzoM.cjs.map +0 -1
  635. package/dist/tooltip-CVIl6Hln.js +0 -2
  636. package/dist/tooltip-CVIl6Hln.js.map +0 -1
  637. package/dist/types-BD1t0Bj8.cjs +0 -2
  638. package/dist/types-BD1t0Bj8.cjs.map +0 -1
  639. package/dist/types-BVSfF-1o.d.ts +0 -24
  640. package/dist/types-BZqffRVJ.js +0 -2
  641. package/dist/types-BZqffRVJ.js.map +0 -1
  642. package/dist/types-Cc_mLRAn.d.cts +0 -24
  643. package/dist/user-BSpgswEC.js +0 -2
  644. package/dist/user-BSpgswEC.js.map +0 -1
  645. package/dist/user-ii4FBhO1.cjs +0 -2
  646. package/dist/user-ii4FBhO1.cjs.map +0 -1
package/dist/ui/item.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-350yNsax.cjs`),t=require(`../dist-Cx5ufCdr.cjs`),n=require(`../separator-KuymG9g0.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`class-variance-authority`),a=require(`react/jsx-runtime`);function o({className:e,...t}){return(0,a.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:(0,r.cn)(`group/item-group flex flex-col`,e),...t})}function s({className:e,...t}){return(0,a.jsx)(n.t,{"data-slot":`item-separator`,orientation:`horizontal`,className:(0,r.cn)(`my-0`,e),...t})}const c=(0,i.cva)(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function l({className:e,variant:n=`default`,size:i=`default`,asChild:o=!1,...s}){return(0,a.jsx)(o?t.t:`div`,{"data-slot":`item`,"data-variant":n,"data-size":i,className:(0,r.cn)(c({variant:n,size:i,className:e})),...s})}const u=(0,i.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function d({className:e,variant:t=`default`,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:(0,r.cn)(u({variant:t,className:e})),...n})}function f({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`item-content`,className:(0,r.cn)(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function p({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`item-title`,className:(0,r.cn)(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function m({className:e,...t}){return(0,a.jsx)(`p`,{"data-slot":`item-description`,className:(0,r.cn)(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function h({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`item-actions`,className:(0,r.cn)(`flex items-center gap-2`,e),...t})}function g({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`item-header`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}function _({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`item-footer`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}exports.Item=l,exports.ItemActions=h,exports.ItemContent=f,exports.ItemDescription=m,exports.ItemFooter=_,exports.ItemGroup=o,exports.ItemHeader=g,exports.ItemMedia=d,exports.ItemSeparator=s,exports.ItemTitle=p;
1
+ const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@radix-ui/react-slot`),n=require(`@customafk/react-toolkit/utils`),r=require(`class-variance-authority`),i=require(`react/jsx-runtime`),a=require(`@/components/ui/separator`);function o({className:e,...t}){return(0,i.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:(0,n.cn)(`group/item-group flex flex-col`,e),...t})}function s({className:e,...t}){return(0,i.jsx)(a.Separator,{"data-slot":`item-separator`,orientation:`horizontal`,className:(0,n.cn)(`my-0`,e),...t})}const c=(0,r.cva)(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function l({className:e,variant:r=`default`,size:a=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?t.Slot:`div`,{"data-slot":`item`,"data-variant":r,"data-size":a,className:(0,n.cn)(c({variant:r,size:a,className:e})),...s})}const u=(0,r.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function d({className:e,variant:t=`default`,...r}){return(0,i.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:(0,n.cn)(u({variant:t,className:e})),...r})}function f({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-content`,className:(0,n.cn)(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-title`,className:(0,n.cn)(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`p`,{"data-slot":`item-description`,className:(0,n.cn)(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-actions`,className:(0,n.cn)(`flex items-center gap-2`,e),...t})}function g({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-header`,className:(0,n.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}function _({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-footer`,className:(0,n.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}exports.Item=l,exports.ItemActions=h,exports.ItemContent=f,exports.ItemDescription=m,exports.ItemFooter=_,exports.ItemGroup=o,exports.ItemHeader=g,exports.ItemMedia=d,exports.ItemSeparator=s,exports.ItemTitle=p;
2
2
  //# sourceMappingURL=item.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.cjs","names":["Separator","Slot"],"sources":["../../packages/components/ui/item.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Separator } from '@/components/ui/separator';\n\n/**\n * A list-row layout primitive for rendering structured content rows with optional media, title, description, and action areas.\n *\n * @example\n * ```tsx\n * import { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemGroup } from '@customafk/lunas-ui/ui/item';\n * import { User } from 'lucide-react';\n *\n * <ItemGroup>\n * <Item variant=\"outline\">\n * <ItemMedia variant=\"icon\"><User /></ItemMedia>\n * <ItemContent>\n * <ItemTitle>Alice</ItemTitle>\n * <ItemDescription>alice@example.com</ItemDescription>\n * </ItemContent>\n * <ItemActions><button>Edit</button></ItemActions>\n * </Item>\n * </ItemGroup>\n * ```\n */\nfunction ItemGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return <div role=\"list\" data-slot=\"item-group\" className={cn('group/item-group flex flex-col', className)} {...props} />;\n}\n\n/** Horizontal separator rendered between items in an ItemGroup. */\nfunction ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n return <Separator data-slot=\"item-separator\" orientation=\"horizontal\" className={cn('my-0', className)} {...props} />;\n}\n\nconst itemVariants = cva(\n 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-border',\n muted: 'bg-muted-weak',\n },\n size: {\n default: 'p-4 gap-4 ',\n sm: 'py-3 px-4 gap-2.5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\n/**\n * The primary row container inside an ItemGroup.\n *\n * @param variant - Visual style: `'default'`, `'outline'`, or `'muted'`.\n * @param size - Spacing size: `'default'` or `'sm'`.\n * @param asChild - When true, renders as the child element via Radix Slot.\n */\nfunction Item({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div';\n return <Comp data-slot=\"item\" data-variant={variant} data-size={size} className={cn(itemVariants({ variant, size, className }))} {...props} />;\n}\n\nconst itemMediaVariants = cva(\n 'flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4\",\n image: 'size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\n/**\n * Left-aligned slot for an avatar, icon, or image within an Item.\n *\n * @param variant - `'default'` for a transparent wrapper, `'icon'` for a small bordered square, or `'image'` for a rounded thumbnail.\n */\nfunction ItemMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>) {\n return <div data-slot=\"item-media\" data-variant={variant} className={cn(itemMediaVariants({ variant, className }))} {...props} />;\n}\n\n/** Flex-1 column that holds the ItemTitle and ItemDescription. */\nfunction ItemContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-content\" className={cn('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className)} {...props} />;\n}\n\n/** Primary label text rendered in medium weight inside an ItemContent. */\nfunction ItemTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-title\" className={cn('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className)} {...props} />;\n}\n\n/** Secondary, muted body text clamped to two lines inside an ItemContent. */\nfunction ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Right-aligned slot for buttons or other interactive controls within an Item. */\nfunction ItemActions({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-actions\" className={cn('flex items-center gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the top of an Item for header-level labels or metadata. */\nfunction ItemHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-header\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the bottom of an Item for footer-level content or secondary actions. */\nfunction ItemFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-footer\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\nexport { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter };\n"],"mappings":"uOA0BA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,KAAK,OAAO,YAAU,aAAa,WAAA,EAAA,EAAA,IAAc,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAI1H,SAAS,EAAc,CAAE,YAAW,GAAG,GAAiD,CACtF,OAAO,EAAA,EAAA,KAACA,EAAAA,EAAAA,CAAU,YAAU,iBAAiB,YAAY,aAAa,WAAA,EAAA,EAAA,IAAc,OAAQ,EAAU,CAAE,GAAI,GAAS,CAGvH,MAAM,GAAA,EAAA,EAAA,KACJ,4QACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,gBACT,MAAO,gBACR,CACD,KAAM,CACJ,QAAS,aACT,GAAI,oBACL,CACF,CACD,gBAAiB,CACf,QAAS,UACT,KAAM,UACP,CACF,CACF,CASD,SAAS,EAAK,CACZ,YACA,UAAU,UACV,OAAO,UACP,UAAU,GACV,GAAG,GACuF,CAE1F,OAAO,EAAA,EAAA,KADM,EAAUC,EAAAA,EAAO,MAAA,CACjB,YAAU,OAAO,eAAc,EAAS,YAAW,EAAM,WAAA,EAAA,EAAA,IAAc,EAAa,CAAE,UAAS,OAAM,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAGhJ,MAAM,GAAA,EAAA,EAAA,KACJ,qMACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,yEACN,MAAO,4EACR,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CACF,CAOD,SAAS,EAAU,CAAE,YAAW,UAAU,UAAW,GAAG,GAA+E,CACrI,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,aAAa,eAAc,EAAS,WAAA,EAAA,EAAA,IAAc,EAAkB,CAAE,UAAS,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAInI,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,oEAAqE,EAAU,CAAE,GAAI,GAAS,CAInJ,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,aAAa,WAAA,EAAA,EAAA,IAAc,iEAAkE,EAAU,CAAE,GAAI,GAAS,CAI9I,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAoC,CAC3E,OACE,EAAA,EAAA,KAAC,IAAA,CACC,YAAU,mBACV,WAAA,EAAA,EAAA,IACE,qFACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,0BAA2B,EAAU,CAAE,GAAI,GAAS,CAIzG,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,qDAAsD,EAAU,CAAE,GAAI,GAAS,CAInI,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,qDAAsD,EAAU,CAAE,GAAI,GAAS"}
1
+ {"version":3,"file":"item.cjs","names":["Separator","Slot"],"sources":["../../packages/components/ui/item.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Separator } from '@/components/ui/separator';\n\n/**\n * A list-row layout primitive for rendering structured content rows with optional media, title, description, and action areas.\n *\n * @example\n * ```tsx\n * import { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemGroup } from '@customafk/lunas-ui/ui/item';\n * import { User } from 'lucide-react';\n *\n * <ItemGroup>\n * <Item variant=\"outline\">\n * <ItemMedia variant=\"icon\"><User /></ItemMedia>\n * <ItemContent>\n * <ItemTitle>Alice</ItemTitle>\n * <ItemDescription>alice@example.com</ItemDescription>\n * </ItemContent>\n * <ItemActions><button>Edit</button></ItemActions>\n * </Item>\n * </ItemGroup>\n * ```\n */\nfunction ItemGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return <div role=\"list\" data-slot=\"item-group\" className={cn('group/item-group flex flex-col', className)} {...props} />;\n}\n\n/** Horizontal separator rendered between items in an ItemGroup. */\nfunction ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n return <Separator data-slot=\"item-separator\" orientation=\"horizontal\" className={cn('my-0', className)} {...props} />;\n}\n\nconst itemVariants = cva(\n 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-border',\n muted: 'bg-muted-weak',\n },\n size: {\n default: 'p-4 gap-4 ',\n sm: 'py-3 px-4 gap-2.5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\n/**\n * The primary row container inside an ItemGroup.\n *\n * @param variant - Visual style: `'default'`, `'outline'`, or `'muted'`.\n * @param size - Spacing size: `'default'` or `'sm'`.\n * @param asChild - When true, renders as the child element via Radix Slot.\n */\nfunction Item({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div';\n return <Comp data-slot=\"item\" data-variant={variant} data-size={size} className={cn(itemVariants({ variant, size, className }))} {...props} />;\n}\n\nconst itemMediaVariants = cva(\n 'flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4\",\n image: 'size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\n/**\n * Left-aligned slot for an avatar, icon, or image within an Item.\n *\n * @param variant - `'default'` for a transparent wrapper, `'icon'` for a small bordered square, or `'image'` for a rounded thumbnail.\n */\nfunction ItemMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>) {\n return <div data-slot=\"item-media\" data-variant={variant} className={cn(itemMediaVariants({ variant, className }))} {...props} />;\n}\n\n/** Flex-1 column that holds the ItemTitle and ItemDescription. */\nfunction ItemContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-content\" className={cn('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className)} {...props} />;\n}\n\n/** Primary label text rendered in medium weight inside an ItemContent. */\nfunction ItemTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-title\" className={cn('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className)} {...props} />;\n}\n\n/** Secondary, muted body text clamped to two lines inside an ItemContent. */\nfunction ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Right-aligned slot for buttons or other interactive controls within an Item. */\nfunction ItemActions({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-actions\" className={cn('flex items-center gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the top of an Item for header-level labels or metadata. */\nfunction ItemHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-header\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the bottom of an Item for footer-level content or secondary actions. */\nfunction ItemFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-footer\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\nexport { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter };\n"],"mappings":"uOA0BA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,KAAK,OAAO,YAAU,aAAa,WAAA,EAAA,EAAA,IAAc,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAI1H,SAAS,EAAc,CAAE,YAAW,GAAG,GAAiD,CACtF,OAAO,EAAA,EAAA,KAACA,EAAAA,UAAAA,CAAU,YAAU,iBAAiB,YAAY,aAAa,WAAA,EAAA,EAAA,IAAc,OAAQ,EAAU,CAAE,GAAI,GAAS,CAGvH,MAAM,GAAA,EAAA,EAAA,KACJ,4QACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,gBACT,MAAO,gBACR,CACD,KAAM,CACJ,QAAS,aACT,GAAI,oBACL,CACF,CACD,gBAAiB,CACf,QAAS,UACT,KAAM,UACP,CACF,CACF,CASD,SAAS,EAAK,CACZ,YACA,UAAU,UACV,OAAO,UACP,UAAU,GACV,GAAG,GACuF,CAE1F,OAAO,EAAA,EAAA,KADM,EAAUC,EAAAA,KAAO,MAAA,CACjB,YAAU,OAAO,eAAc,EAAS,YAAW,EAAM,WAAA,EAAA,EAAA,IAAc,EAAa,CAAE,UAAS,OAAM,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAGhJ,MAAM,GAAA,EAAA,EAAA,KACJ,qMACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,yEACN,MAAO,4EACR,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CACF,CAOD,SAAS,EAAU,CAAE,YAAW,UAAU,UAAW,GAAG,GAA+E,CACrI,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,aAAa,eAAc,EAAS,WAAA,EAAA,EAAA,IAAc,EAAkB,CAAE,UAAS,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAInI,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,oEAAqE,EAAU,CAAE,GAAI,GAAS,CAInJ,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,aAAa,WAAA,EAAA,EAAA,IAAc,iEAAkE,EAAU,CAAE,GAAI,GAAS,CAI9I,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAoC,CAC3E,OACE,EAAA,EAAA,KAAC,IAAA,CACC,YAAU,mBACV,WAAA,EAAA,EAAA,IACE,qFACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,0BAA2B,EAAU,CAAE,GAAI,GAAS,CAIzG,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,qDAAsD,EAAU,CAAE,GAAI,GAAS,CAInI,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,cAAc,WAAA,EAAA,EAAA,IAAc,qDAAsD,EAAU,CAAE,GAAI,GAAS"}
@@ -1,7 +1,7 @@
1
- import { Separator } from "./separator.cjs";
2
- import * as react233 from "react";
3
- import * as class_variance_authority_types9 from "class-variance-authority/types";
1
+ import * as react234 from "react";
2
+ import * as class_variance_authority_types10 from "class-variance-authority/types";
4
3
  import { VariantProps } from "class-variance-authority";
4
+ import { Separator } from "@/components/ui/separator";
5
5
 
6
6
  //#region packages/components/ui/item.d.ts
7
7
 
@@ -28,16 +28,16 @@ import { VariantProps } from "class-variance-authority";
28
28
  declare function ItemGroup({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<'div'>): react233.JSX.Element;
31
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
32
32
  /** Horizontal separator rendered between items in an ItemGroup. */
33
33
  declare function ItemSeparator({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<typeof Separator>): react233.JSX.Element;
36
+ }: React.ComponentProps<typeof Separator>): react234.JSX.Element;
37
37
  declare const itemVariants: (props?: ({
38
38
  variant?: "default" | "outline" | "muted" | null | undefined;
39
39
  size?: "sm" | "default" | null | undefined;
40
- } & class_variance_authority_types9.ClassProp) | undefined) => string;
40
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
41
41
  /**
42
42
  * The primary row container inside an ItemGroup.
43
43
  *
@@ -53,10 +53,10 @@ declare function Item({
53
53
  ...props
54
54
  }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
55
55
  asChild?: boolean;
56
- }): react233.JSX.Element;
56
+ }): react234.JSX.Element;
57
57
  declare const itemMediaVariants: (props?: ({
58
58
  variant?: "default" | "image" | "icon" | null | undefined;
59
- } & class_variance_authority_types9.ClassProp) | undefined) => string;
59
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
60
60
  /**
61
61
  * Left-aligned slot for an avatar, icon, or image within an Item.
62
62
  *
@@ -66,37 +66,37 @@ declare function ItemMedia({
66
66
  className,
67
67
  variant,
68
68
  ...props
69
- }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react233.JSX.Element;
69
+ }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react234.JSX.Element;
70
70
  /** Flex-1 column that holds the ItemTitle and ItemDescription. */
71
71
  declare function ItemContent({
72
72
  className,
73
73
  ...props
74
- }: React.ComponentProps<'div'>): react233.JSX.Element;
74
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
75
75
  /** Primary label text rendered in medium weight inside an ItemContent. */
76
76
  declare function ItemTitle({
77
77
  className,
78
78
  ...props
79
- }: React.ComponentProps<'div'>): react233.JSX.Element;
79
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
80
80
  /** Secondary, muted body text clamped to two lines inside an ItemContent. */
81
81
  declare function ItemDescription({
82
82
  className,
83
83
  ...props
84
- }: React.ComponentProps<'p'>): react233.JSX.Element;
84
+ }: React.ComponentProps<'p'>): react234.JSX.Element;
85
85
  /** Right-aligned slot for buttons or other interactive controls within an Item. */
86
86
  declare function ItemActions({
87
87
  className,
88
88
  ...props
89
- }: React.ComponentProps<'div'>): react233.JSX.Element;
89
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
90
90
  /** Full-width row at the top of an Item for header-level labels or metadata. */
91
91
  declare function ItemHeader({
92
92
  className,
93
93
  ...props
94
- }: React.ComponentProps<'div'>): react233.JSX.Element;
94
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
95
95
  /** Full-width row at the bottom of an Item for footer-level content or secondary actions. */
96
96
  declare function ItemFooter({
97
97
  className,
98
98
  ...props
99
- }: React.ComponentProps<'div'>): react233.JSX.Element;
99
+ }: React.ComponentProps<'div'>): react234.JSX.Element;
100
100
  //#endregion
101
101
  export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
102
102
  //# sourceMappingURL=item.d.cts.map
package/dist/ui/item.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Separator } from "./separator.js";
2
- import * as react188 from "react";
3
1
  import { VariantProps } from "class-variance-authority";
2
+ import * as react215 from "react";
3
+ import { Separator } from "@/components/ui/separator";
4
4
  import * as class_variance_authority_types8 from "class-variance-authority/types";
5
5
 
6
6
  //#region packages/components/ui/item.d.ts
@@ -28,12 +28,12 @@ import * as class_variance_authority_types8 from "class-variance-authority/types
28
28
  declare function ItemGroup({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<'div'>): react188.JSX.Element;
31
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
32
32
  /** Horizontal separator rendered between items in an ItemGroup. */
33
33
  declare function ItemSeparator({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<typeof Separator>): react188.JSX.Element;
36
+ }: React.ComponentProps<typeof Separator>): react215.JSX.Element;
37
37
  declare const itemVariants: (props?: ({
38
38
  variant?: "default" | "outline" | "muted" | null | undefined;
39
39
  size?: "sm" | "default" | null | undefined;
@@ -53,7 +53,7 @@ declare function Item({
53
53
  ...props
54
54
  }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
55
55
  asChild?: boolean;
56
- }): react188.JSX.Element;
56
+ }): react215.JSX.Element;
57
57
  declare const itemMediaVariants: (props?: ({
58
58
  variant?: "default" | "image" | "icon" | null | undefined;
59
59
  } & class_variance_authority_types8.ClassProp) | undefined) => string;
@@ -66,37 +66,37 @@ declare function ItemMedia({
66
66
  className,
67
67
  variant,
68
68
  ...props
69
- }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react188.JSX.Element;
69
+ }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react215.JSX.Element;
70
70
  /** Flex-1 column that holds the ItemTitle and ItemDescription. */
71
71
  declare function ItemContent({
72
72
  className,
73
73
  ...props
74
- }: React.ComponentProps<'div'>): react188.JSX.Element;
74
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
75
75
  /** Primary label text rendered in medium weight inside an ItemContent. */
76
76
  declare function ItemTitle({
77
77
  className,
78
78
  ...props
79
- }: React.ComponentProps<'div'>): react188.JSX.Element;
79
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
80
80
  /** Secondary, muted body text clamped to two lines inside an ItemContent. */
81
81
  declare function ItemDescription({
82
82
  className,
83
83
  ...props
84
- }: React.ComponentProps<'p'>): react188.JSX.Element;
84
+ }: React.ComponentProps<'p'>): react215.JSX.Element;
85
85
  /** Right-aligned slot for buttons or other interactive controls within an Item. */
86
86
  declare function ItemActions({
87
87
  className,
88
88
  ...props
89
- }: React.ComponentProps<'div'>): react188.JSX.Element;
89
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
90
90
  /** Full-width row at the top of an Item for header-level labels or metadata. */
91
91
  declare function ItemHeader({
92
92
  className,
93
93
  ...props
94
- }: React.ComponentProps<'div'>): react188.JSX.Element;
94
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
95
95
  /** Full-width row at the bottom of an Item for footer-level content or secondary actions. */
96
96
  declare function ItemFooter({
97
97
  className,
98
98
  ...props
99
- }: React.ComponentProps<'div'>): react188.JSX.Element;
99
+ }: React.ComponentProps<'div'>): react215.JSX.Element;
100
100
  //#endregion
101
101
  export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
102
102
  //# sourceMappingURL=item.d.ts.map
package/dist/ui/item.js CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"../dist-EPxjIRJp.js";import{t}from"../separator-BM8hA4DP.js";import{cn as n}from"@customafk/react-toolkit/utils";import{cva as r}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";function a({className:e,...t}){return i(`div`,{role:`list`,"data-slot":`item-group`,className:n(`group/item-group flex flex-col`,e),...t})}function o({className:e,...r}){return i(t,{"data-slot":`item-separator`,orientation:`horizontal`,className:n(`my-0`,e),...r})}const s=r(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function c({className:t,variant:r=`default`,size:a=`default`,asChild:o=!1,...c}){return i(o?e:`div`,{"data-slot":`item`,"data-variant":r,"data-size":a,className:n(s({variant:r,size:a,className:t})),...c})}const l=r(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function u({className:e,variant:t=`default`,...r}){return i(`div`,{"data-slot":`item-media`,"data-variant":t,className:n(l({variant:t,className:e})),...r})}function d({className:e,...t}){return i(`div`,{"data-slot":`item-content`,className:n(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function f({className:e,...t}){return i(`div`,{"data-slot":`item-title`,className:n(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function p({className:e,...t}){return i(`p`,{"data-slot":`item-description`,className:n(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function m({className:e,...t}){return i(`div`,{"data-slot":`item-actions`,className:n(`flex items-center gap-2`,e),...t})}function h({className:e,...t}){return i(`div`,{"data-slot":`item-header`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}function g({className:e,...t}){return i(`div`,{"data-slot":`item-footer`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}export{c as Item,m as ItemActions,d as ItemContent,p as ItemDescription,g as ItemFooter,a as ItemGroup,h as ItemHeader,u as ItemMedia,o as ItemSeparator,f as ItemTitle};
1
+ import{Slot as e}from"@radix-ui/react-slot";import{cn as t}from"@customafk/react-toolkit/utils";import{cva as n}from"class-variance-authority";import{jsx as r}from"react/jsx-runtime";import{Separator as i}from"@/components/ui/separator";function a({className:e,...n}){return r(`div`,{role:`list`,"data-slot":`item-group`,className:t(`group/item-group flex flex-col`,e),...n})}function o({className:e,...n}){return r(i,{"data-slot":`item-separator`,orientation:`horizontal`,className:t(`my-0`,e),...n})}const s=n(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function c({className:n,variant:i=`default`,size:a=`default`,asChild:o=!1,...c}){return r(o?e:`div`,{"data-slot":`item`,"data-variant":i,"data-size":a,className:t(s({variant:i,size:a,className:n})),...c})}const l=n(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function u({className:e,variant:n=`default`,...i}){return r(`div`,{"data-slot":`item-media`,"data-variant":n,className:t(l({variant:n,className:e})),...i})}function d({className:e,...n}){return r(`div`,{"data-slot":`item-content`,className:t(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...n})}function f({className:e,...n}){return r(`div`,{"data-slot":`item-title`,className:t(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...n})}function p({className:e,...n}){return r(`p`,{"data-slot":`item-description`,className:t(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function m({className:e,...n}){return r(`div`,{"data-slot":`item-actions`,className:t(`flex items-center gap-2`,e),...n})}function h({className:e,...n}){return r(`div`,{"data-slot":`item-header`,className:t(`flex basis-full items-center justify-between gap-2`,e),...n})}function g({className:e,...n}){return r(`div`,{"data-slot":`item-footer`,className:t(`flex basis-full items-center justify-between gap-2`,e),...n})}export{c as Item,m as ItemActions,d as ItemContent,p as ItemDescription,g as ItemFooter,a as ItemGroup,h as ItemHeader,u as ItemMedia,o as ItemSeparator,f as ItemTitle};
2
2
  //# sourceMappingURL=item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","names":[],"sources":["../../packages/components/ui/item.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Separator } from '@/components/ui/separator';\n\n/**\n * A list-row layout primitive for rendering structured content rows with optional media, title, description, and action areas.\n *\n * @example\n * ```tsx\n * import { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemGroup } from '@customafk/lunas-ui/ui/item';\n * import { User } from 'lucide-react';\n *\n * <ItemGroup>\n * <Item variant=\"outline\">\n * <ItemMedia variant=\"icon\"><User /></ItemMedia>\n * <ItemContent>\n * <ItemTitle>Alice</ItemTitle>\n * <ItemDescription>alice@example.com</ItemDescription>\n * </ItemContent>\n * <ItemActions><button>Edit</button></ItemActions>\n * </Item>\n * </ItemGroup>\n * ```\n */\nfunction ItemGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return <div role=\"list\" data-slot=\"item-group\" className={cn('group/item-group flex flex-col', className)} {...props} />;\n}\n\n/** Horizontal separator rendered between items in an ItemGroup. */\nfunction ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n return <Separator data-slot=\"item-separator\" orientation=\"horizontal\" className={cn('my-0', className)} {...props} />;\n}\n\nconst itemVariants = cva(\n 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-border',\n muted: 'bg-muted-weak',\n },\n size: {\n default: 'p-4 gap-4 ',\n sm: 'py-3 px-4 gap-2.5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\n/**\n * The primary row container inside an ItemGroup.\n *\n * @param variant - Visual style: `'default'`, `'outline'`, or `'muted'`.\n * @param size - Spacing size: `'default'` or `'sm'`.\n * @param asChild - When true, renders as the child element via Radix Slot.\n */\nfunction Item({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div';\n return <Comp data-slot=\"item\" data-variant={variant} data-size={size} className={cn(itemVariants({ variant, size, className }))} {...props} />;\n}\n\nconst itemMediaVariants = cva(\n 'flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4\",\n image: 'size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\n/**\n * Left-aligned slot for an avatar, icon, or image within an Item.\n *\n * @param variant - `'default'` for a transparent wrapper, `'icon'` for a small bordered square, or `'image'` for a rounded thumbnail.\n */\nfunction ItemMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>) {\n return <div data-slot=\"item-media\" data-variant={variant} className={cn(itemMediaVariants({ variant, className }))} {...props} />;\n}\n\n/** Flex-1 column that holds the ItemTitle and ItemDescription. */\nfunction ItemContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-content\" className={cn('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className)} {...props} />;\n}\n\n/** Primary label text rendered in medium weight inside an ItemContent. */\nfunction ItemTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-title\" className={cn('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className)} {...props} />;\n}\n\n/** Secondary, muted body text clamped to two lines inside an ItemContent. */\nfunction ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Right-aligned slot for buttons or other interactive controls within an Item. */\nfunction ItemActions({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-actions\" className={cn('flex items-center gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the top of an Item for header-level labels or metadata. */\nfunction ItemHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-header\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the bottom of an Item for footer-level content or secondary actions. */\nfunction ItemFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-footer\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\nexport { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter };\n"],"mappings":"2NA0BA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAC,MAAA,CAAI,KAAK,OAAO,YAAU,aAAa,UAAW,EAAG,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAI1H,SAAS,EAAc,CAAE,YAAW,GAAG,GAAiD,CACtF,OAAO,EAAC,EAAA,CAAU,YAAU,iBAAiB,YAAY,aAAa,UAAW,EAAG,OAAQ,EAAU,CAAE,GAAI,GAAS,CAGvH,MAAM,EAAe,EACnB,4QACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,gBACT,MAAO,gBACR,CACD,KAAM,CACJ,QAAS,aACT,GAAI,oBACL,CACF,CACD,gBAAiB,CACf,QAAS,UACT,KAAM,UACP,CACF,CACF,CASD,SAAS,EAAK,CACZ,YACA,UAAU,UACV,OAAO,UACP,UAAU,GACV,GAAG,GACuF,CAE1F,OAAO,EADM,EAAU,EAAO,MAAA,CACjB,YAAU,OAAO,eAAc,EAAS,YAAW,EAAM,UAAW,EAAG,EAAa,CAAE,UAAS,OAAM,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAGhJ,MAAM,EAAoB,EACxB,qMACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,yEACN,MAAO,4EACR,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CACF,CAOD,SAAS,EAAU,CAAE,YAAW,UAAU,UAAW,GAAG,GAA+E,CACrI,OAAO,EAAC,MAAA,CAAI,YAAU,aAAa,eAAc,EAAS,UAAW,EAAG,EAAkB,CAAE,UAAS,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAInI,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAA,CAAI,YAAU,eAAe,UAAW,EAAG,oEAAqE,EAAU,CAAE,GAAI,GAAS,CAInJ,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAC,MAAA,CAAI,YAAU,aAAa,UAAW,EAAG,iEAAkE,EAAU,CAAE,GAAI,GAAS,CAI9I,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAoC,CAC3E,OACE,EAAC,IAAA,CACC,YAAU,mBACV,UAAW,EACT,qFACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAA,CAAI,YAAU,eAAe,UAAW,EAAG,0BAA2B,EAAU,CAAE,GAAI,GAAS,CAIzG,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAA,CAAI,YAAU,cAAc,UAAW,EAAG,qDAAsD,EAAU,CAAE,GAAI,GAAS,CAInI,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAA,CAAI,YAAU,cAAc,UAAW,EAAG,qDAAsD,EAAU,CAAE,GAAI,GAAS"}
1
+ {"version":3,"file":"item.js","names":[],"sources":["../../packages/components/ui/item.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Separator } from '@/components/ui/separator';\n\n/**\n * A list-row layout primitive for rendering structured content rows with optional media, title, description, and action areas.\n *\n * @example\n * ```tsx\n * import { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemGroup } from '@customafk/lunas-ui/ui/item';\n * import { User } from 'lucide-react';\n *\n * <ItemGroup>\n * <Item variant=\"outline\">\n * <ItemMedia variant=\"icon\"><User /></ItemMedia>\n * <ItemContent>\n * <ItemTitle>Alice</ItemTitle>\n * <ItemDescription>alice@example.com</ItemDescription>\n * </ItemContent>\n * <ItemActions><button>Edit</button></ItemActions>\n * </Item>\n * </ItemGroup>\n * ```\n */\nfunction ItemGroup({ className, ...props }: React.ComponentProps<'div'>) {\n return <div role=\"list\" data-slot=\"item-group\" className={cn('group/item-group flex flex-col', className)} {...props} />;\n}\n\n/** Horizontal separator rendered between items in an ItemGroup. */\nfunction ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n return <Separator data-slot=\"item-separator\" orientation=\"horizontal\" className={cn('my-0', className)} {...props} />;\n}\n\nconst itemVariants = cva(\n 'group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border-border',\n muted: 'bg-muted-weak',\n },\n size: {\n default: 'p-4 gap-4 ',\n sm: 'py-3 px-4 gap-2.5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\n/**\n * The primary row container inside an ItemGroup.\n *\n * @param variant - Visual style: `'default'`, `'outline'`, or `'muted'`.\n * @param size - Spacing size: `'default'` or `'sm'`.\n * @param asChild - When true, renders as the child element via Radix Slot.\n */\nfunction Item({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'div';\n return <Comp data-slot=\"item\" data-variant={variant} data-size={size} className={cn(itemVariants({ variant, size, className }))} {...props} />;\n}\n\nconst itemMediaVariants = cva(\n 'flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4\",\n image: 'size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\n/**\n * Left-aligned slot for an avatar, icon, or image within an Item.\n *\n * @param variant - `'default'` for a transparent wrapper, `'icon'` for a small bordered square, or `'image'` for a rounded thumbnail.\n */\nfunction ItemMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>) {\n return <div data-slot=\"item-media\" data-variant={variant} className={cn(itemMediaVariants({ variant, className }))} {...props} />;\n}\n\n/** Flex-1 column that holds the ItemTitle and ItemDescription. */\nfunction ItemContent({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-content\" className={cn('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className)} {...props} />;\n}\n\n/** Primary label text rendered in medium weight inside an ItemContent. */\nfunction ItemTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-title\" className={cn('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className)} {...props} />;\n}\n\n/** Secondary, muted body text clamped to two lines inside an ItemContent. */\nfunction ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Right-aligned slot for buttons or other interactive controls within an Item. */\nfunction ItemActions({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-actions\" className={cn('flex items-center gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the top of an Item for header-level labels or metadata. */\nfunction ItemHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-header\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\n/** Full-width row at the bottom of an Item for footer-level content or secondary actions. */\nfunction ItemFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"item-footer\" className={cn('flex basis-full items-center justify-between gap-2', className)} {...props} />;\n}\n\nexport { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter };\n"],"mappings":"6OA0BA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAC,MAAA,CAAI,KAAK,OAAO,YAAU,aAAa,UAAW,EAAG,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAI1H,SAAS,EAAc,CAAE,YAAW,GAAG,GAAiD,CACtF,OAAO,EAAC,EAAA,CAAU,YAAU,iBAAiB,YAAY,aAAa,UAAW,EAAG,OAAQ,EAAU,CAAE,GAAI,GAAS,CAGvH,MAAM,EAAe,EACnB,4QACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,gBACT,MAAO,gBACR,CACD,KAAM,CACJ,QAAS,aACT,GAAI,oBACL,CACF,CACD,gBAAiB,CACf,QAAS,UACT,KAAM,UACP,CACF,CACF,CASD,SAAS,EAAK,CACZ,YACA,UAAU,UACV,OAAO,UACP,UAAU,GACV,GAAG,GACuF,CAE1F,OAAO,EADM,EAAU,EAAO,MAAA,CACjB,YAAU,OAAO,eAAc,EAAS,YAAW,EAAM,UAAW,EAAG,EAAa,CAAE,UAAS,OAAM,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAGhJ,MAAM,EAAoB,EACxB,qMACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,yEACN,MAAO,4EACR,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CACF,CAOD,SAAS,EAAU,CAAE,YAAW,UAAU,UAAW,GAAG,GAA+E,CACrI,OAAO,EAAC,MAAA,CAAI,YAAU,aAAa,eAAc,EAAS,UAAW,EAAG,EAAkB,CAAE,UAAS,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAInI,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAA,CAAI,YAAU,eAAe,UAAW,EAAG,oEAAqE,EAAU,CAAE,GAAI,GAAS,CAInJ,SAAS,EAAU,CAAE,YAAW,GAAG,GAAsC,CACvE,OAAO,EAAC,MAAA,CAAI,YAAU,aAAa,UAAW,EAAG,iEAAkE,EAAU,CAAE,GAAI,GAAS,CAI9I,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAoC,CAC3E,OACE,EAAC,IAAA,CACC,YAAU,mBACV,UAAW,EACT,qFACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAA,CAAI,YAAU,eAAe,UAAW,EAAG,0BAA2B,EAAU,CAAE,GAAI,GAAS,CAIzG,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAA,CAAI,YAAU,cAAc,UAAW,EAAG,qDAAsD,EAAU,CAAE,GAAI,GAAS,CAInI,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAA,CAAI,YAAU,cAAc,UAAW,EAAG,qDAAsD,EAAU,CAAE,GAAI,GAAS"}
package/dist/ui/label.cjs CHANGED
@@ -1 +1,2 @@
1
- "use client";const e=require(`../label-CC6fXVbC.cjs`);exports.Label=e.t;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`react/jsx-runtime`),r=require(`radix-ui`);function i({className:e,...i}){return(0,n.jsx)(r.Label.Root,{"data-slot":`label`,className:(0,t.cn)(`text-text-positive`,`flex items-center gap-2`,`select-none font-medium text-sm/6 leading-none`,`group-data-[disabled=true]:pointer-events-none`,`group-data-[disabled=true]:opacity-50`,`peer-disabled:cursor-not-allowed`,`peer-disabled:opacity-50`,e),...i})}exports.Label=i;
2
+ //# sourceMappingURL=label.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.cjs","names":["LabelPrimitive"],"sources":["../../packages/components/ui/label.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Label as LabelPrimitive } from 'radix-ui';\n\n/**\n * Accessible form label built on Radix UI's `Label.Root`, with styles for disabled and peer-disabled states.\n *\n * @example\n * ```tsx\n * import { Label } from '@customafk/lunas-ui/ui/label';\n * import { Input } from '@customafk/lunas-ui/ui/input';\n *\n * <Label htmlFor=\"email\">Email address</Label>\n * <Input id=\"email\" type=\"email\" placeholder=\"you@example.com\" />\n * ```\n */\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'select-none font-medium text-sm/6 leading-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"mappings":"2JAkBA,SAAS,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAAA,EAAA,KAACA,EAAAA,MAAe,KAAA,CACd,YAAU,QACV,WAAA,EAAA,EAAA,IACE,qBACA,0BACA,iDACA,iDACA,wCACA,mCACA,2BACA,EACD,CACD,GAAI,GACJ"}
@@ -1,4 +1,4 @@
1
- import * as react164 from "react";
1
+ import * as react302 from "react";
2
2
  import { Label as Label$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/label.d.ts
@@ -18,7 +18,7 @@ import { Label as Label$1 } from "radix-ui";
18
18
  declare function Label({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Label$1.Root>): react164.JSX.Element;
21
+ }: React.ComponentProps<typeof Label$1.Root>): react302.JSX.Element;
22
22
  //#endregion
23
23
  export { Label };
24
24
  //# sourceMappingURL=label.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react183 from "react";
1
+ import * as react191 from "react";
2
2
  import { Label as Label$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/label.d.ts
@@ -18,7 +18,7 @@ import { Label as Label$1 } from "radix-ui";
18
18
  declare function Label({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Label$1.Root>): react183.JSX.Element;
21
+ }: React.ComponentProps<typeof Label$1.Root>): react191.JSX.Element;
22
22
  //#endregion
23
23
  export { Label };
24
24
  //# sourceMappingURL=label.d.ts.map
package/dist/ui/label.js CHANGED
@@ -1 +1,2 @@
1
- "use client";import{t as e}from"../label-B8cAG2kc.js";export{e as Label};
1
+ "use client";import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t}from"react/jsx-runtime";import{Label as n}from"radix-ui";function r({className:r,...i}){return t(n.Root,{"data-slot":`label`,className:e(`text-text-positive`,`flex items-center gap-2`,`select-none font-medium text-sm/6 leading-none`,`group-data-[disabled=true]:pointer-events-none`,`group-data-[disabled=true]:opacity-50`,`peer-disabled:cursor-not-allowed`,`peer-disabled:opacity-50`,r),...i})}export{r as Label};
2
+ //# sourceMappingURL=label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.js","names":["LabelPrimitive"],"sources":["../../packages/components/ui/label.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Label as LabelPrimitive } from 'radix-ui';\n\n/**\n * Accessible form label built on Radix UI's `Label.Root`, with styles for disabled and peer-disabled states.\n *\n * @example\n * ```tsx\n * import { Label } from '@customafk/lunas-ui/ui/label';\n * import { Input } from '@customafk/lunas-ui/ui/input';\n *\n * <Label htmlFor=\"email\">Email address</Label>\n * <Input id=\"email\" type=\"email\" placeholder=\"you@example.com\" />\n * ```\n */\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'select-none font-medium text-sm/6 leading-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"mappings":"0IAkBA,SAAS,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAACA,EAAe,KAAA,CACd,YAAU,QACV,UAAW,EACT,qBACA,0BACA,iDACA,iDACA,wCACA,mCACA,2BACA,EACD,CACD,GAAI,GACJ"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-350yNsax.cjs`);let t=require(`lucide-react`),n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`radix-ui`);function a({className:e,...t}){return(0,r.jsx)(i.Menubar.Root,{"data-slot":`menubar`,className:(0,n.cn)(`bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs`,e),...t})}function o({...e}){return(0,r.jsx)(i.Menubar.Menu,{"data-slot":`menubar-menu`,...e})}function s({...e}){return(0,r.jsx)(i.Menubar.Group,{"data-slot":`menubar-group`,...e})}function c({...e}){return(0,r.jsx)(i.Menubar.Portal,{"data-slot":`menubar-portal`,...e})}function l({...e}){return(0,r.jsx)(i.Menubar.RadioGroup,{"data-slot":`menubar-radio-group`,...e})}function u({className:e,...t}){return(0,r.jsx)(i.Menubar.Trigger,{"data-slot":`menubar-trigger`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none`,e),...t})}function d({className:e,align:t=`start`,alignOffset:a=-4,sideOffset:o=8,...s}){return(0,r.jsx)(c,{children:(0,r.jsx)(i.Menubar.Content,{"data-slot":`menubar-content`,align:t,alignOffset:a,sideOffset:o,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md`,e),...s})})}function f({className:e,inset:t,variant:a=`default`,...o}){return(0,r.jsx)(i.Menubar.Item,{"data-slot":`menubar-item`,"data-inset":t,"data-variant":a,className:(0,n.cn)(`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`,e),...o})}function p({className:e,children:a,checked:o,...s}){return(0,r.jsxs)(i.Menubar.CheckboxItem,{"data-slot":`menubar-checkbox-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...s,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.Menubar.ItemIndicator,{children:(0,r.jsx)(t.CheckIcon,{className:`size-4`})})}),a]})}function m({className:e,children:a,...o}){return(0,r.jsxs)(i.Menubar.RadioItem,{"data-slot":`menubar-radio-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.Menubar.ItemIndicator,{children:(0,r.jsx)(t.CircleIcon,{className:`size-2 fill-current`})})}),a]})}function h({className:e,inset:t,...a}){return(0,r.jsx)(i.Menubar.Label,{"data-slot":`menubar-label`,"data-inset":t,className:(0,n.cn)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...a})}function g({className:e,...t}){return(0,r.jsx)(i.Menubar.Separator,{"data-slot":`menubar-separator`,className:(0,n.cn)(`bg-border -mx-1 my-1 h-px`,e),...t})}function _({className:e,...t}){return(0,r.jsx)(`span`,{"data-slot":`menubar-shortcut`,className:(0,n.cn)(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}function v({...e}){return(0,r.jsx)(i.Menubar.Sub,{"data-slot":`menubar-sub`,...e})}function y({className:e,inset:a,children:o,...s}){return(0,r.jsxs)(i.Menubar.SubTrigger,{"data-slot":`menubar-sub-trigger`,"data-inset":a,className:(0,n.cn)(`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-none select-none data-[inset]:pl-8`,e),...s,children:[o,(0,r.jsx)(t.ChevronRightIcon,{className:`ml-auto h-4 w-4`})]})}function b({className:e,...t}){return(0,r.jsx)(i.Menubar.SubContent,{"data-slot":`menubar-sub-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...t})}exports.Menubar=a,exports.MenubarCheckboxItem=p,exports.MenubarContent=d,exports.MenubarGroup=s,exports.MenubarItem=f,exports.MenubarLabel=h,exports.MenubarMenu=o,exports.MenubarPortal=c,exports.MenubarRadioGroup=l,exports.MenubarRadioItem=m,exports.MenubarSeparator=g,exports.MenubarShortcut=_,exports.MenubarSub=v,exports.MenubarSubContent=b,exports.MenubarSubTrigger=y,exports.MenubarTrigger=u;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`lucide-react`),n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`radix-ui`);function a({className:e,...t}){return(0,r.jsx)(i.Menubar.Root,{"data-slot":`menubar`,className:(0,n.cn)(`bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs`,e),...t})}function o({...e}){return(0,r.jsx)(i.Menubar.Menu,{"data-slot":`menubar-menu`,...e})}function s({...e}){return(0,r.jsx)(i.Menubar.Group,{"data-slot":`menubar-group`,...e})}function c({...e}){return(0,r.jsx)(i.Menubar.Portal,{"data-slot":`menubar-portal`,...e})}function l({...e}){return(0,r.jsx)(i.Menubar.RadioGroup,{"data-slot":`menubar-radio-group`,...e})}function u({className:e,...t}){return(0,r.jsx)(i.Menubar.Trigger,{"data-slot":`menubar-trigger`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none`,e),...t})}function d({className:e,align:t=`start`,alignOffset:a=-4,sideOffset:o=8,...s}){return(0,r.jsx)(c,{children:(0,r.jsx)(i.Menubar.Content,{"data-slot":`menubar-content`,align:t,alignOffset:a,sideOffset:o,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md`,e),...s})})}function f({className:e,inset:t,variant:a=`default`,...o}){return(0,r.jsx)(i.Menubar.Item,{"data-slot":`menubar-item`,"data-inset":t,"data-variant":a,className:(0,n.cn)(`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`,e),...o})}function p({className:e,children:a,checked:o,...s}){return(0,r.jsxs)(i.Menubar.CheckboxItem,{"data-slot":`menubar-checkbox-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...s,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.Menubar.ItemIndicator,{children:(0,r.jsx)(t.CheckIcon,{className:`size-4`})})}),a]})}function m({className:e,children:a,...o}){return(0,r.jsxs)(i.Menubar.RadioItem,{"data-slot":`menubar-radio-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.Menubar.ItemIndicator,{children:(0,r.jsx)(t.CircleIcon,{className:`size-2 fill-current`})})}),a]})}function h({className:e,inset:t,...a}){return(0,r.jsx)(i.Menubar.Label,{"data-slot":`menubar-label`,"data-inset":t,className:(0,n.cn)(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...a})}function g({className:e,...t}){return(0,r.jsx)(i.Menubar.Separator,{"data-slot":`menubar-separator`,className:(0,n.cn)(`bg-border -mx-1 my-1 h-px`,e),...t})}function _({className:e,...t}){return(0,r.jsx)(`span`,{"data-slot":`menubar-shortcut`,className:(0,n.cn)(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}function v({...e}){return(0,r.jsx)(i.Menubar.Sub,{"data-slot":`menubar-sub`,...e})}function y({className:e,inset:a,children:o,...s}){return(0,r.jsxs)(i.Menubar.SubTrigger,{"data-slot":`menubar-sub-trigger`,"data-inset":a,className:(0,n.cn)(`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-none select-none data-[inset]:pl-8`,e),...s,children:[o,(0,r.jsx)(t.ChevronRightIcon,{className:`ml-auto h-4 w-4`})]})}function b({className:e,...t}){return(0,r.jsx)(i.Menubar.SubContent,{"data-slot":`menubar-sub-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...t})}exports.Menubar=a,exports.MenubarCheckboxItem=p,exports.MenubarContent=d,exports.MenubarGroup=s,exports.MenubarItem=f,exports.MenubarLabel=h,exports.MenubarMenu=o,exports.MenubarPortal=c,exports.MenubarRadioGroup=l,exports.MenubarRadioItem=m,exports.MenubarSeparator=g,exports.MenubarShortcut=_,exports.MenubarSub=v,exports.MenubarSubContent=b,exports.MenubarSubTrigger=y,exports.MenubarTrigger=u;
2
2
  //# sourceMappingURL=menubar.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react196 from "react";
1
+ import * as react255 from "react";
2
2
  import { Menubar as Menubar$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/menubar.d.ts
@@ -28,28 +28,28 @@ import { Menubar as Menubar$1 } from "radix-ui";
28
28
  declare function Menubar({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Menubar$1.Root>): react196.JSX.Element;
31
+ }: React.ComponentProps<typeof Menubar$1.Root>): react255.JSX.Element;
32
32
  /** Root container for a single drop-down menu entry within a Menubar. */
33
33
  declare function MenubarMenu({
34
34
  ...props
35
- }: React.ComponentProps<typeof Menubar$1.Menu>): react196.JSX.Element;
35
+ }: React.ComponentProps<typeof Menubar$1.Menu>): react255.JSX.Element;
36
36
  /** Groups related MenubarItems under a shared logical section. */
37
37
  declare function MenubarGroup({
38
38
  ...props
39
- }: React.ComponentProps<typeof Menubar$1.Group>): react196.JSX.Element;
39
+ }: React.ComponentProps<typeof Menubar$1.Group>): react255.JSX.Element;
40
40
  /** Portals Menubar content outside the current DOM hierarchy. */
41
41
  declare function MenubarPortal({
42
42
  ...props
43
- }: React.ComponentProps<typeof Menubar$1.Portal>): react196.JSX.Element;
43
+ }: React.ComponentProps<typeof Menubar$1.Portal>): react255.JSX.Element;
44
44
  /** Groups MenubarRadioItems so only one can be selected at a time. */
45
45
  declare function MenubarRadioGroup({
46
46
  ...props
47
- }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react196.JSX.Element;
47
+ }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react255.JSX.Element;
48
48
  /** Button in the Menubar that opens its associated MenubarContent dropdown. */
49
49
  declare function MenubarTrigger({
50
50
  className,
51
51
  ...props
52
- }: React.ComponentProps<typeof Menubar$1.Trigger>): react196.JSX.Element;
52
+ }: React.ComponentProps<typeof Menubar$1.Trigger>): react255.JSX.Element;
53
53
  /** Animated floating panel that contains MenubarItems for a given MenubarMenu. */
54
54
  declare function MenubarContent({
55
55
  className,
@@ -57,7 +57,7 @@ declare function MenubarContent({
57
57
  alignOffset,
58
58
  sideOffset,
59
59
  ...props
60
- }: React.ComponentProps<typeof Menubar$1.Content>): react196.JSX.Element;
60
+ }: React.ComponentProps<typeof Menubar$1.Content>): react255.JSX.Element;
61
61
  /**
62
62
  * A single clickable row inside a MenubarContent.
63
63
  *
@@ -72,20 +72,20 @@ declare function MenubarItem({
72
72
  }: React.ComponentProps<typeof Menubar$1.Item> & {
73
73
  inset?: boolean;
74
74
  variant?: 'default' | 'destructive';
75
- }): react196.JSX.Element;
75
+ }): react255.JSX.Element;
76
76
  /** A checkable menubar item that displays a checkmark when selected. */
77
77
  declare function MenubarCheckboxItem({
78
78
  className,
79
79
  children,
80
80
  checked,
81
81
  ...props
82
- }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react196.JSX.Element;
82
+ }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react255.JSX.Element;
83
83
  /** A radio-button menubar item; shows a filled circle when selected. */
84
84
  declare function MenubarRadioItem({
85
85
  className,
86
86
  children,
87
87
  ...props
88
- }: React.ComponentProps<typeof Menubar$1.RadioItem>): react196.JSX.Element;
88
+ }: React.ComponentProps<typeof Menubar$1.RadioItem>): react255.JSX.Element;
89
89
  /**
90
90
  * Non-interactive label used to describe a group of menubar items.
91
91
  *
@@ -97,21 +97,21 @@ declare function MenubarLabel({
97
97
  ...props
98
98
  }: React.ComponentProps<typeof Menubar$1.Label> & {
99
99
  inset?: boolean;
100
- }): react196.JSX.Element;
100
+ }): react255.JSX.Element;
101
101
  /** Horizontal dividing line between groups of menubar items. */
102
102
  declare function MenubarSeparator({
103
103
  className,
104
104
  ...props
105
- }: React.ComponentProps<typeof Menubar$1.Separator>): react196.JSX.Element;
105
+ }: React.ComponentProps<typeof Menubar$1.Separator>): react255.JSX.Element;
106
106
  /** Displays a keyboard shortcut hint aligned to the right of a menubar item. */
107
107
  declare function MenubarShortcut({
108
108
  className,
109
109
  ...props
110
- }: React.ComponentProps<'span'>): react196.JSX.Element;
110
+ }: React.ComponentProps<'span'>): react255.JSX.Element;
111
111
  /** Root container for a nested sub-menu inside a Menubar dropdown. */
112
112
  declare function MenubarSub({
113
113
  ...props
114
- }: React.ComponentProps<typeof Menubar$1.Sub>): react196.JSX.Element;
114
+ }: React.ComponentProps<typeof Menubar$1.Sub>): react255.JSX.Element;
115
115
  /**
116
116
  * Menu item that reveals a nested MenubarSubContent on hover or activation.
117
117
  *
@@ -124,12 +124,12 @@ declare function MenubarSubTrigger({
124
124
  ...props
125
125
  }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
126
126
  inset?: boolean;
127
- }): react196.JSX.Element;
127
+ }): react255.JSX.Element;
128
128
  /** Floating panel that contains the items of a nested Menubar sub-menu. */
129
129
  declare function MenubarSubContent({
130
130
  className,
131
131
  ...props
132
- }: React.ComponentProps<typeof Menubar$1.SubContent>): react196.JSX.Element;
132
+ }: React.ComponentProps<typeof Menubar$1.SubContent>): react255.JSX.Element;
133
133
  //#endregion
134
134
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
135
135
  //# sourceMappingURL=menubar.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react198 from "react";
1
+ import * as react192 from "react";
2
2
  import { Menubar as Menubar$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/menubar.d.ts
@@ -28,28 +28,28 @@ import { Menubar as Menubar$1 } from "radix-ui";
28
28
  declare function Menubar({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Menubar$1.Root>): react198.JSX.Element;
31
+ }: React.ComponentProps<typeof Menubar$1.Root>): react192.JSX.Element;
32
32
  /** Root container for a single drop-down menu entry within a Menubar. */
33
33
  declare function MenubarMenu({
34
34
  ...props
35
- }: React.ComponentProps<typeof Menubar$1.Menu>): react198.JSX.Element;
35
+ }: React.ComponentProps<typeof Menubar$1.Menu>): react192.JSX.Element;
36
36
  /** Groups related MenubarItems under a shared logical section. */
37
37
  declare function MenubarGroup({
38
38
  ...props
39
- }: React.ComponentProps<typeof Menubar$1.Group>): react198.JSX.Element;
39
+ }: React.ComponentProps<typeof Menubar$1.Group>): react192.JSX.Element;
40
40
  /** Portals Menubar content outside the current DOM hierarchy. */
41
41
  declare function MenubarPortal({
42
42
  ...props
43
- }: React.ComponentProps<typeof Menubar$1.Portal>): react198.JSX.Element;
43
+ }: React.ComponentProps<typeof Menubar$1.Portal>): react192.JSX.Element;
44
44
  /** Groups MenubarRadioItems so only one can be selected at a time. */
45
45
  declare function MenubarRadioGroup({
46
46
  ...props
47
- }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react198.JSX.Element;
47
+ }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react192.JSX.Element;
48
48
  /** Button in the Menubar that opens its associated MenubarContent dropdown. */
49
49
  declare function MenubarTrigger({
50
50
  className,
51
51
  ...props
52
- }: React.ComponentProps<typeof Menubar$1.Trigger>): react198.JSX.Element;
52
+ }: React.ComponentProps<typeof Menubar$1.Trigger>): react192.JSX.Element;
53
53
  /** Animated floating panel that contains MenubarItems for a given MenubarMenu. */
54
54
  declare function MenubarContent({
55
55
  className,
@@ -57,7 +57,7 @@ declare function MenubarContent({
57
57
  alignOffset,
58
58
  sideOffset,
59
59
  ...props
60
- }: React.ComponentProps<typeof Menubar$1.Content>): react198.JSX.Element;
60
+ }: React.ComponentProps<typeof Menubar$1.Content>): react192.JSX.Element;
61
61
  /**
62
62
  * A single clickable row inside a MenubarContent.
63
63
  *
@@ -72,20 +72,20 @@ declare function MenubarItem({
72
72
  }: React.ComponentProps<typeof Menubar$1.Item> & {
73
73
  inset?: boolean;
74
74
  variant?: 'default' | 'destructive';
75
- }): react198.JSX.Element;
75
+ }): react192.JSX.Element;
76
76
  /** A checkable menubar item that displays a checkmark when selected. */
77
77
  declare function MenubarCheckboxItem({
78
78
  className,
79
79
  children,
80
80
  checked,
81
81
  ...props
82
- }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react198.JSX.Element;
82
+ }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react192.JSX.Element;
83
83
  /** A radio-button menubar item; shows a filled circle when selected. */
84
84
  declare function MenubarRadioItem({
85
85
  className,
86
86
  children,
87
87
  ...props
88
- }: React.ComponentProps<typeof Menubar$1.RadioItem>): react198.JSX.Element;
88
+ }: React.ComponentProps<typeof Menubar$1.RadioItem>): react192.JSX.Element;
89
89
  /**
90
90
  * Non-interactive label used to describe a group of menubar items.
91
91
  *
@@ -97,21 +97,21 @@ declare function MenubarLabel({
97
97
  ...props
98
98
  }: React.ComponentProps<typeof Menubar$1.Label> & {
99
99
  inset?: boolean;
100
- }): react198.JSX.Element;
100
+ }): react192.JSX.Element;
101
101
  /** Horizontal dividing line between groups of menubar items. */
102
102
  declare function MenubarSeparator({
103
103
  className,
104
104
  ...props
105
- }: React.ComponentProps<typeof Menubar$1.Separator>): react198.JSX.Element;
105
+ }: React.ComponentProps<typeof Menubar$1.Separator>): react192.JSX.Element;
106
106
  /** Displays a keyboard shortcut hint aligned to the right of a menubar item. */
107
107
  declare function MenubarShortcut({
108
108
  className,
109
109
  ...props
110
- }: React.ComponentProps<'span'>): react198.JSX.Element;
110
+ }: React.ComponentProps<'span'>): react192.JSX.Element;
111
111
  /** Root container for a nested sub-menu inside a Menubar dropdown. */
112
112
  declare function MenubarSub({
113
113
  ...props
114
- }: React.ComponentProps<typeof Menubar$1.Sub>): react198.JSX.Element;
114
+ }: React.ComponentProps<typeof Menubar$1.Sub>): react192.JSX.Element;
115
115
  /**
116
116
  * Menu item that reveals a nested MenubarSubContent on hover or activation.
117
117
  *
@@ -124,12 +124,12 @@ declare function MenubarSubTrigger({
124
124
  ...props
125
125
  }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
126
126
  inset?: boolean;
127
- }): react198.JSX.Element;
127
+ }): react192.JSX.Element;
128
128
  /** Floating panel that contains the items of a nested Menubar sub-menu. */
129
129
  declare function MenubarSubContent({
130
130
  className,
131
131
  ...props
132
- }: React.ComponentProps<typeof Menubar$1.SubContent>): react198.JSX.Element;
132
+ }: React.ComponentProps<typeof Menubar$1.SubContent>): react192.JSX.Element;
133
133
  //#endregion
134
134
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
135
135
  //# sourceMappingURL=menubar.d.ts.map