@gears-frontx/ui-kit 0.3.0-alpha.3 → 0.4.0-alpha.1

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 (493) hide show
  1. package/README.md +28 -6
  2. package/dist/accordion.d.ts +1 -0
  3. package/dist/accordion.js +35 -0
  4. package/dist/accordion.js.map +1 -0
  5. package/dist/alert-dialog.d.ts +1 -0
  6. package/dist/alert-dialog.js +97 -0
  7. package/dist/alert-dialog.js.map +1 -0
  8. package/dist/alert.d.ts +1 -0
  9. package/dist/alert.js +39 -0
  10. package/dist/alert.js.map +1 -0
  11. package/dist/aspect-ratio.d.ts +1 -0
  12. package/dist/aspect-ratio.js +19 -0
  13. package/dist/aspect-ratio.js.map +1 -0
  14. package/dist/attachment.d.ts +1 -0
  15. package/dist/attachment.js +133 -0
  16. package/dist/attachment.js.map +1 -0
  17. package/dist/avatar.d.ts +1 -0
  18. package/dist/avatar.js +87 -0
  19. package/dist/avatar.js.map +1 -0
  20. package/dist/badge.js +32 -46
  21. package/dist/badge.js.map +1 -1
  22. package/dist/breadcrumb.d.ts +1 -0
  23. package/dist/breadcrumb.js +81 -0
  24. package/dist/breadcrumb.js.map +1 -0
  25. package/dist/bubble.d.ts +1 -0
  26. package/dist/bubble.js +94 -0
  27. package/dist/bubble.js.map +1 -0
  28. package/dist/button-group.d.ts +1 -0
  29. package/dist/button-group.js +61 -0
  30. package/dist/button-group.js.map +1 -0
  31. package/dist/button.js +30 -29
  32. package/dist/button.js.map +1 -1
  33. package/dist/calendar.d.ts +1 -0
  34. package/dist/calendar.js +134 -0
  35. package/dist/calendar.js.map +1 -0
  36. package/dist/card.js +24 -24
  37. package/dist/carousel.d.ts +1 -0
  38. package/dist/carousel.js +163 -0
  39. package/dist/carousel.js.map +1 -0
  40. package/dist/chart.d.ts +1 -0
  41. package/dist/chart.js +202 -0
  42. package/dist/chart.js.map +1 -0
  43. package/dist/checkbox.js +14 -39
  44. package/dist/checkbox.js.map +1 -1
  45. package/dist/chunks/accordion.X_AK08Iv.css +1 -0
  46. package/dist/chunks/alert-dialog.B50f-Gsz.css +1 -0
  47. package/dist/chunks/alert.BJLRcB65.css +1 -0
  48. package/dist/chunks/aspect-ratio.DJbPE7BX.css +1 -0
  49. package/dist/chunks/attachment.rknKEWlr.css +1 -0
  50. package/dist/chunks/avatar.CsQmQnay.css +1 -0
  51. package/dist/chunks/badge.DR0epAiZ.css +1 -0
  52. package/dist/chunks/breadcrumb.QKz32ceR.css +1 -0
  53. package/dist/chunks/bubble.BKcAopT7.css +1 -0
  54. package/dist/chunks/button-group.D0Ir-jbL.css +1 -0
  55. package/dist/chunks/button.D69BdJF1.css +1 -0
  56. package/dist/chunks/calendar.Cnbv4EzY.css +1 -0
  57. package/dist/chunks/card.D3Ct_dza.css +1 -0
  58. package/dist/chunks/carousel.CjaKGN_D.css +1 -0
  59. package/dist/chunks/chart.CeyctrXQ.css +1 -0
  60. package/dist/chunks/checkbox.CZfE_PkU.css +1 -0
  61. package/dist/chunks/collapsible.BQ-sU5sQ.css +1 -0
  62. package/dist/chunks/combobox.CtYpZAKB.css +1 -0
  63. package/dist/chunks/command.Km60IuqD.css +1 -0
  64. package/dist/chunks/context-menu.Bjib7_AL.css +1 -0
  65. package/dist/chunks/data-table.DECm3qI-.css +1 -0
  66. package/dist/chunks/date-picker.BcRqyOg8.css +1 -0
  67. package/dist/chunks/dialog.BxcZ12Gb.css +1 -0
  68. package/dist/chunks/drawer.BkS_qEHj.css +1 -0
  69. package/dist/chunks/dropdown-menu.CDaeWYDT.css +1 -0
  70. package/dist/chunks/empty.B334jSES.css +1 -0
  71. package/dist/chunks/field.yTrg1G90.css +1 -0
  72. package/dist/chunks/hover-card.DmwvigMp.css +1 -0
  73. package/dist/chunks/input-group.CFIUP-Oh.css +1 -0
  74. package/dist/chunks/input-otp.XSpqyVij.css +1 -0
  75. package/dist/chunks/input.DvA_mTq8.css +1 -0
  76. package/dist/chunks/item.CLg1KaYF.css +1 -0
  77. package/dist/chunks/kbd.DZuUVB_m.css +1 -0
  78. package/dist/chunks/marker.DDxI_rZn.css +1 -0
  79. package/dist/chunks/menubar.CxRNI9o4.css +1 -0
  80. package/dist/chunks/message-scroller.CbLooS7Q.css +1 -0
  81. package/dist/chunks/message.BhD5JDJK.css +1 -0
  82. package/dist/chunks/native-select.BdYLTCZv.css +1 -0
  83. package/dist/chunks/navigation-menu.C2JGHAKD.css +1 -0
  84. package/dist/chunks/pagination.DUiQuWla.css +1 -0
  85. package/dist/chunks/popover.fOvPrnsr.css +1 -0
  86. package/dist/chunks/progress.Bp13t8iw.css +1 -0
  87. package/dist/chunks/questionnaire.DYnuWKAQ.css +1 -0
  88. package/dist/chunks/radio-group.CV3MBCsI.css +1 -0
  89. package/dist/chunks/resizable.B71V-1lR.css +1 -0
  90. package/dist/chunks/scroll-area.C4kWMAsU.css +1 -0
  91. package/dist/chunks/select.iEwV-sfJ.css +1 -0
  92. package/dist/chunks/sheet.DALPg9vf.css +1 -0
  93. package/dist/chunks/sidebar.CGTQhfWG.css +1 -0
  94. package/dist/chunks/slider.B5nouD7J.css +1 -0
  95. package/dist/chunks/spinner.UKK4f1tu.css +1 -0
  96. package/dist/chunks/switch.CIW9Jr1x.css +1 -0
  97. package/dist/chunks/table.CFAJfhd-.css +1 -0
  98. package/dist/chunks/tabs.C4jGj2Vg.css +1 -0
  99. package/dist/chunks/textarea.ORRSI69B.css +1 -0
  100. package/dist/chunks/toggle-group.Bd0cCCnV.css +1 -0
  101. package/dist/chunks/toggle.B9tvfl1n.css +1 -0
  102. package/dist/collapsible.d.ts +1 -0
  103. package/dist/collapsible.js +22 -0
  104. package/dist/collapsible.js.map +1 -0
  105. package/dist/combobox.d.ts +1 -0
  106. package/dist/combobox.js +159 -0
  107. package/dist/combobox.js.map +1 -0
  108. package/dist/command.d.ts +1 -0
  109. package/dist/command.js +75 -0
  110. package/dist/command.js.map +1 -0
  111. package/dist/components/accordion/accordion.d.ts +24 -0
  112. package/dist/components/accordion/accordion.d.ts.map +1 -0
  113. package/dist/components/accordion/public.d.ts +2 -0
  114. package/dist/components/accordion/public.d.ts.map +1 -0
  115. package/dist/components/alert/alert.d.ts +21 -0
  116. package/dist/components/alert/alert.d.ts.map +1 -0
  117. package/dist/components/alert/public.d.ts +2 -0
  118. package/dist/components/alert/public.d.ts.map +1 -0
  119. package/dist/components/alert-dialog/alert-dialog.d.ts +95 -0
  120. package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
  121. package/dist/components/alert-dialog/public.d.ts +2 -0
  122. package/dist/components/alert-dialog/public.d.ts.map +1 -0
  123. package/dist/components/aspect-ratio/aspect-ratio.d.ts +8 -0
  124. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
  125. package/dist/components/aspect-ratio/public.d.ts +2 -0
  126. package/dist/components/aspect-ratio/public.d.ts.map +1 -0
  127. package/dist/components/attachment/attachment.d.ts +71 -0
  128. package/dist/components/attachment/attachment.d.ts.map +1 -0
  129. package/dist/components/attachment/public.d.ts +2 -0
  130. package/dist/components/attachment/public.d.ts.map +1 -0
  131. package/dist/components/avatar/avatar.d.ts +40 -0
  132. package/dist/components/avatar/avatar.d.ts.map +1 -0
  133. package/dist/components/avatar/public.d.ts +2 -0
  134. package/dist/components/avatar/public.d.ts.map +1 -0
  135. package/dist/components/badge/badge.d.ts +3 -16
  136. package/dist/components/badge/badge.d.ts.map +1 -1
  137. package/dist/components/badge/public.d.ts +1 -1
  138. package/dist/components/badge/public.d.ts.map +1 -1
  139. package/dist/components/breadcrumb/breadcrumb.d.ts +19 -0
  140. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
  141. package/dist/components/breadcrumb/public.d.ts +2 -0
  142. package/dist/components/breadcrumb/public.d.ts.map +1 -0
  143. package/dist/components/bubble/bubble.d.ts +35 -0
  144. package/dist/components/bubble/bubble.d.ts.map +1 -0
  145. package/dist/components/bubble/public.d.ts +2 -0
  146. package/dist/components/bubble/public.d.ts.map +1 -0
  147. package/dist/components/button/button.d.ts +1 -2
  148. package/dist/components/button/button.d.ts.map +1 -1
  149. package/dist/components/button/public.d.ts +1 -1
  150. package/dist/components/button/public.d.ts.map +1 -1
  151. package/dist/components/button-group/button-group.d.ts +17 -0
  152. package/dist/components/button-group/button-group.d.ts.map +1 -0
  153. package/dist/components/button-group/public.d.ts +2 -0
  154. package/dist/components/button-group/public.d.ts.map +1 -0
  155. package/dist/components/calendar/calendar.d.ts +29 -0
  156. package/dist/components/calendar/calendar.d.ts.map +1 -0
  157. package/dist/components/calendar/public.d.ts +2 -0
  158. package/dist/components/calendar/public.d.ts.map +1 -0
  159. package/dist/components/carousel/carousel.d.ts +43 -0
  160. package/dist/components/carousel/carousel.d.ts.map +1 -0
  161. package/dist/components/carousel/public.d.ts +2 -0
  162. package/dist/components/carousel/public.d.ts.map +1 -0
  163. package/dist/components/chart/chart.d.ts +48 -0
  164. package/dist/components/chart/chart.d.ts.map +1 -0
  165. package/dist/components/chart/public.d.ts +2 -0
  166. package/dist/components/chart/public.d.ts.map +1 -0
  167. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  168. package/dist/components/collapsible/collapsible.d.ts +14 -0
  169. package/dist/components/collapsible/collapsible.d.ts.map +1 -0
  170. package/dist/components/collapsible/public.d.ts +2 -0
  171. package/dist/components/collapsible/public.d.ts.map +1 -0
  172. package/dist/components/combobox/combobox.d.ts +128 -0
  173. package/dist/components/combobox/combobox.d.ts.map +1 -0
  174. package/dist/components/combobox/public.d.ts +2 -0
  175. package/dist/components/combobox/public.d.ts.map +1 -0
  176. package/dist/components/command/command.d.ts +44 -0
  177. package/dist/components/command/command.d.ts.map +1 -0
  178. package/dist/components/command/public.d.ts +2 -0
  179. package/dist/components/command/public.d.ts.map +1 -0
  180. package/dist/components/context-menu/context-menu.d.ts +82 -0
  181. package/dist/components/context-menu/context-menu.d.ts.map +1 -0
  182. package/dist/components/context-menu/public.d.ts +2 -0
  183. package/dist/components/context-menu/public.d.ts.map +1 -0
  184. package/dist/components/data-table/data-table.d.ts +81 -0
  185. package/dist/components/data-table/data-table.d.ts.map +1 -0
  186. package/dist/components/data-table/public.d.ts +2 -0
  187. package/dist/components/data-table/public.d.ts.map +1 -0
  188. package/dist/components/date-picker/date-picker.d.ts +76 -0
  189. package/dist/components/date-picker/date-picker.d.ts.map +1 -0
  190. package/dist/components/date-picker/public.d.ts +2 -0
  191. package/dist/components/date-picker/public.d.ts.map +1 -0
  192. package/dist/components/dialog/dialog.d.ts +12 -3
  193. package/dist/components/dialog/dialog.d.ts.map +1 -1
  194. package/dist/components/direction/direction.d.ts +2 -0
  195. package/dist/components/direction/direction.d.ts.map +1 -0
  196. package/dist/components/direction/public.d.ts +2 -0
  197. package/dist/components/direction/public.d.ts.map +1 -0
  198. package/dist/components/drawer/drawer.d.ts +83 -0
  199. package/dist/components/drawer/drawer.d.ts.map +1 -0
  200. package/dist/components/drawer/public.d.ts +2 -0
  201. package/dist/components/drawer/public.d.ts.map +1 -0
  202. package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -4
  203. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  204. package/dist/components/empty/empty.d.ts +23 -0
  205. package/dist/components/empty/empty.d.ts.map +1 -0
  206. package/dist/components/empty/public.d.ts +2 -0
  207. package/dist/components/empty/public.d.ts.map +1 -0
  208. package/dist/components/field/field.d.ts +33 -12
  209. package/dist/components/field/field.d.ts.map +1 -1
  210. package/dist/components/field/public.d.ts +1 -1
  211. package/dist/components/field/public.d.ts.map +1 -1
  212. package/dist/components/hover-card/hover-card.d.ts +33 -0
  213. package/dist/components/hover-card/hover-card.d.ts.map +1 -0
  214. package/dist/components/hover-card/public.d.ts +2 -0
  215. package/dist/components/hover-card/public.d.ts.map +1 -0
  216. package/dist/components/input-group/input-group.d.ts +38 -0
  217. package/dist/components/input-group/input-group.d.ts.map +1 -0
  218. package/dist/components/input-group/public.d.ts +2 -0
  219. package/dist/components/input-group/public.d.ts.map +1 -0
  220. package/dist/components/input-otp/input-otp.d.ts +17 -0
  221. package/dist/components/input-otp/input-otp.d.ts.map +1 -0
  222. package/dist/components/input-otp/public.d.ts +2 -0
  223. package/dist/components/input-otp/public.d.ts.map +1 -0
  224. package/dist/components/item/item.d.ts +47 -0
  225. package/dist/components/item/item.d.ts.map +1 -0
  226. package/dist/components/item/public.d.ts +2 -0
  227. package/dist/components/item/public.d.ts.map +1 -0
  228. package/dist/components/kbd/kbd.d.ts +8 -0
  229. package/dist/components/kbd/kbd.d.ts.map +1 -0
  230. package/dist/components/kbd/public.d.ts +2 -0
  231. package/dist/components/kbd/public.d.ts.map +1 -0
  232. package/dist/components/marker/marker.d.ts +19 -0
  233. package/dist/components/marker/marker.d.ts.map +1 -0
  234. package/dist/components/marker/public.d.ts +2 -0
  235. package/dist/components/marker/public.d.ts.map +1 -0
  236. package/dist/components/menubar/menubar.d.ts +57 -0
  237. package/dist/components/menubar/menubar.d.ts.map +1 -0
  238. package/dist/components/menubar/public.d.ts +2 -0
  239. package/dist/components/menubar/public.d.ts.map +1 -0
  240. package/dist/components/message/message.d.ts +35 -0
  241. package/dist/components/message/message.d.ts.map +1 -0
  242. package/dist/components/message/public.d.ts +2 -0
  243. package/dist/components/message/public.d.ts.map +1 -0
  244. package/dist/components/message-scroller/message-scroller.d.ts +75 -0
  245. package/dist/components/message-scroller/message-scroller.d.ts.map +1 -0
  246. package/dist/components/message-scroller/public.d.ts +2 -0
  247. package/dist/components/message-scroller/public.d.ts.map +1 -0
  248. package/dist/components/native-select/native-select.d.ts +14 -0
  249. package/dist/components/native-select/native-select.d.ts.map +1 -0
  250. package/dist/components/native-select/public.d.ts +2 -0
  251. package/dist/components/native-select/public.d.ts.map +1 -0
  252. package/dist/components/navigation-menu/navigation-menu.d.ts +83 -0
  253. package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -0
  254. package/dist/components/navigation-menu/public.d.ts +2 -0
  255. package/dist/components/navigation-menu/public.d.ts.map +1 -0
  256. package/dist/components/pagination/pagination.d.ts +37 -0
  257. package/dist/components/pagination/pagination.d.ts.map +1 -0
  258. package/dist/components/pagination/public.d.ts +2 -0
  259. package/dist/components/pagination/public.d.ts.map +1 -0
  260. package/dist/components/popover/popover.d.ts +32 -0
  261. package/dist/components/popover/popover.d.ts.map +1 -0
  262. package/dist/components/popover/public.d.ts +2 -0
  263. package/dist/components/popover/public.d.ts.map +1 -0
  264. package/dist/components/progress/progress.d.ts +22 -0
  265. package/dist/components/progress/progress.d.ts.map +1 -0
  266. package/dist/components/progress/public.d.ts +2 -0
  267. package/dist/components/progress/public.d.ts.map +1 -0
  268. package/dist/components/questionnaire/public.d.ts +2 -0
  269. package/dist/components/questionnaire/public.d.ts.map +1 -0
  270. package/dist/components/questionnaire/questionnaire.d.ts +192 -0
  271. package/dist/components/questionnaire/questionnaire.d.ts.map +1 -0
  272. package/dist/components/resizable/public.d.ts +2 -0
  273. package/dist/components/resizable/public.d.ts.map +1 -0
  274. package/dist/components/resizable/resizable.d.ts +12 -0
  275. package/dist/components/resizable/resizable.d.ts.map +1 -0
  276. package/dist/components/scroll-area/public.d.ts +2 -0
  277. package/dist/components/scroll-area/public.d.ts.map +1 -0
  278. package/dist/components/scroll-area/scroll-area.d.ts +10 -0
  279. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
  280. package/dist/components/select/select.d.ts +3 -5
  281. package/dist/components/select/select.d.ts.map +1 -1
  282. package/dist/components/sheet/public.d.ts +2 -0
  283. package/dist/components/sheet/public.d.ts.map +1 -0
  284. package/dist/components/sheet/sheet.d.ts +56 -0
  285. package/dist/components/sheet/sheet.d.ts.map +1 -0
  286. package/dist/components/sidebar/public.d.ts +2 -0
  287. package/dist/components/sidebar/public.d.ts.map +1 -0
  288. package/dist/components/sidebar/sidebar.d.ts +167 -0
  289. package/dist/components/sidebar/sidebar.d.ts.map +1 -0
  290. package/dist/components/sidebar/use-mobile.d.ts +18 -0
  291. package/dist/components/sidebar/use-mobile.d.ts.map +1 -0
  292. package/dist/components/slider/public.d.ts +2 -0
  293. package/dist/components/slider/public.d.ts.map +1 -0
  294. package/dist/components/slider/slider.d.ts +6 -0
  295. package/dist/components/slider/slider.d.ts.map +1 -0
  296. package/dist/components/spinner/public.d.ts +2 -0
  297. package/dist/components/spinner/public.d.ts.map +1 -0
  298. package/dist/components/spinner/spinner.d.ts +4 -0
  299. package/dist/components/spinner/spinner.d.ts.map +1 -0
  300. package/dist/components/textarea/textarea.d.ts +1 -1
  301. package/dist/components/textarea/textarea.d.ts.map +1 -1
  302. package/dist/components/toast/toast.d.ts.map +1 -1
  303. package/dist/components/toggle/public.d.ts +2 -0
  304. package/dist/components/toggle/public.d.ts.map +1 -0
  305. package/dist/components/toggle/toggle.d.ts +11 -0
  306. package/dist/components/toggle/toggle.d.ts.map +1 -0
  307. package/dist/components/toggle-group/public.d.ts +2 -0
  308. package/dist/components/toggle-group/public.d.ts.map +1 -0
  309. package/dist/components/toggle-group/toggle-group.d.ts +13 -0
  310. package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
  311. package/dist/components/tooltip/tooltip.d.ts +1 -4
  312. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  313. package/dist/context-menu.d.ts +1 -0
  314. package/dist/context-menu.js +201 -0
  315. package/dist/context-menu.js.map +1 -0
  316. package/dist/data-table.d.ts +1 -0
  317. package/dist/data-table.js +162 -0
  318. package/dist/data-table.js.map +1 -0
  319. package/dist/date-picker.d.ts +1 -0
  320. package/dist/date-picker.js +175 -0
  321. package/dist/date-picker.js.map +1 -0
  322. package/dist/dialog.js +40 -55
  323. package/dist/dialog.js.map +1 -1
  324. package/dist/direction.d.ts +1 -0
  325. package/dist/direction.js +6 -0
  326. package/dist/direction.js.map +1 -0
  327. package/dist/docs/accordion.md +86 -0
  328. package/dist/docs/alert-dialog.md +151 -0
  329. package/dist/docs/alert.md +74 -0
  330. package/dist/docs/aspect-ratio.md +65 -0
  331. package/dist/docs/attachment.md +254 -0
  332. package/dist/docs/avatar.md +185 -0
  333. package/dist/docs/badge.md +72 -60
  334. package/dist/docs/breadcrumb.md +86 -0
  335. package/dist/docs/bubble.md +233 -0
  336. package/dist/docs/button-group.md +107 -0
  337. package/dist/docs/calendar.md +114 -0
  338. package/dist/docs/card.md +15 -7
  339. package/dist/docs/carousel.md +152 -0
  340. package/dist/docs/chart.md +182 -0
  341. package/dist/docs/collapsible.md +80 -0
  342. package/dist/docs/combobox.md +192 -0
  343. package/dist/docs/command.md +171 -0
  344. package/dist/docs/context-menu.md +173 -0
  345. package/dist/docs/data-table.md +183 -0
  346. package/dist/docs/date-picker.md +137 -0
  347. package/dist/docs/dialog.md +33 -0
  348. package/dist/docs/direction.md +51 -0
  349. package/dist/docs/drawer.md +242 -0
  350. package/dist/docs/empty.md +80 -0
  351. package/dist/docs/field.md +105 -38
  352. package/dist/docs/hover-card.md +81 -0
  353. package/dist/docs/input-group.md +158 -0
  354. package/dist/docs/input-otp.md +116 -0
  355. package/dist/docs/input.md +31 -20
  356. package/dist/docs/item.md +106 -0
  357. package/dist/docs/kbd.md +53 -0
  358. package/dist/docs/marker.md +178 -0
  359. package/dist/docs/menubar.md +108 -0
  360. package/dist/docs/message-scroller.md +221 -0
  361. package/dist/docs/message.md +183 -0
  362. package/dist/docs/native-select.md +93 -0
  363. package/dist/docs/navigation-menu.md +176 -0
  364. package/dist/docs/pagination.md +96 -0
  365. package/dist/docs/popover.md +87 -0
  366. package/dist/docs/progress.md +58 -0
  367. package/dist/docs/questionnaire.md +311 -0
  368. package/dist/docs/resizable.md +95 -0
  369. package/dist/docs/scroll-area.md +93 -0
  370. package/dist/docs/sheet.md +168 -0
  371. package/dist/docs/sidebar.md +309 -0
  372. package/dist/docs/slider.md +66 -0
  373. package/dist/docs/spinner.md +55 -0
  374. package/dist/docs/table.md +85 -20
  375. package/dist/docs/textarea.md +19 -2
  376. package/dist/docs/toggle-group.md +77 -0
  377. package/dist/docs/toggle.md +58 -0
  378. package/dist/docs/typeset.md +75 -0
  379. package/dist/drawer.d.ts +1 -0
  380. package/dist/drawer.js +120 -0
  381. package/dist/drawer.js.map +1 -0
  382. package/dist/dropdown-menu.js +98 -130
  383. package/dist/dropdown-menu.js.map +1 -1
  384. package/dist/empty.d.ts +1 -0
  385. package/dist/empty.js +50 -0
  386. package/dist/empty.js.map +1 -0
  387. package/dist/field.js +105 -20
  388. package/dist/field.js.map +1 -1
  389. package/dist/hover-card.d.ts +1 -0
  390. package/dist/hover-card.js +44 -0
  391. package/dist/hover-card.js.map +1 -0
  392. package/dist/index.d.ts +44 -0
  393. package/dist/index.d.ts.map +1 -1
  394. package/dist/index.js +431 -93
  395. package/dist/index.js.map +1 -1
  396. package/dist/input-group.d.ts +1 -0
  397. package/dist/input-group.js +91 -0
  398. package/dist/input-group.js.map +1 -0
  399. package/dist/input-otp.d.ts +1 -0
  400. package/dist/input-otp.js +28 -0
  401. package/dist/input-otp.js.map +1 -0
  402. package/dist/input.js +17 -17
  403. package/dist/item.d.ts +1 -0
  404. package/dist/item.js +107 -0
  405. package/dist/item.js.map +1 -0
  406. package/dist/kbd.d.ts +1 -0
  407. package/dist/kbd.js +17 -0
  408. package/dist/kbd.js.map +1 -0
  409. package/dist/marker.d.ts +1 -0
  410. package/dist/marker.js +52 -0
  411. package/dist/marker.js.map +1 -0
  412. package/dist/menubar.d.ts +1 -0
  413. package/dist/menubar.js +50 -0
  414. package/dist/menubar.js.map +1 -0
  415. package/dist/message-scroller.d.ts +1 -0
  416. package/dist/message-scroller.js +69 -0
  417. package/dist/message-scroller.js.map +1 -0
  418. package/dist/message.d.ts +1 -0
  419. package/dist/message.js +37 -0
  420. package/dist/message.js.map +1 -0
  421. package/dist/native-select.d.ts +1 -0
  422. package/dist/native-select.js +42 -0
  423. package/dist/native-select.js.map +1 -0
  424. package/dist/navigation-menu.d.ts +1 -0
  425. package/dist/navigation-menu.js +97 -0
  426. package/dist/navigation-menu.js.map +1 -0
  427. package/dist/pagination.d.ts +1 -0
  428. package/dist/pagination.js +104 -0
  429. package/dist/pagination.js.map +1 -0
  430. package/dist/popover.d.ts +1 -0
  431. package/dist/popover.js +59 -0
  432. package/dist/popover.js.map +1 -0
  433. package/dist/progress.d.ts +1 -0
  434. package/dist/progress.js +36 -0
  435. package/dist/progress.js.map +1 -0
  436. package/dist/questionnaire.d.ts +1 -0
  437. package/dist/questionnaire.js +209 -0
  438. package/dist/questionnaire.js.map +1 -0
  439. package/dist/radio-group.js +7 -7
  440. package/dist/resizable.d.ts +1 -0
  441. package/dist/resizable.js +24 -0
  442. package/dist/resizable.js.map +1 -0
  443. package/dist/scroll-area.d.ts +1 -0
  444. package/dist/scroll-area.js +32 -0
  445. package/dist/scroll-area.js.map +1 -0
  446. package/dist/select.js +83 -107
  447. package/dist/select.js.map +1 -1
  448. package/dist/sheet.d.ts +1 -0
  449. package/dist/sheet.js +94 -0
  450. package/dist/sheet.js.map +1 -0
  451. package/dist/sidebar.d.ts +1 -0
  452. package/dist/sidebar.js +386 -0
  453. package/dist/sidebar.js.map +1 -0
  454. package/dist/slider.d.ts +1 -0
  455. package/dist/slider.js +40 -0
  456. package/dist/slider.js.map +1 -0
  457. package/dist/spinner.d.ts +1 -0
  458. package/dist/spinner.js +21 -0
  459. package/dist/spinner.js.map +1 -0
  460. package/dist/switch.js +11 -11
  461. package/dist/table.js +34 -35
  462. package/dist/table.js.map +1 -1
  463. package/dist/tabs.js +17 -17
  464. package/dist/textarea.js +14 -7
  465. package/dist/textarea.js.map +1 -1
  466. package/dist/theme.css +35 -20
  467. package/dist/toast.js +54 -164
  468. package/dist/toast.js.map +1 -1
  469. package/dist/toggle-group.d.ts +1 -0
  470. package/dist/toggle-group.js +46 -0
  471. package/dist/toggle-group.js.map +1 -0
  472. package/dist/toggle.d.ts +1 -0
  473. package/dist/toggle.js +39 -0
  474. package/dist/toggle.js.map +1 -0
  475. package/dist/tooltip.js.map +1 -1
  476. package/dist/typeset.css +532 -0
  477. package/dist/utilities.css +583 -0
  478. package/llms.txt +268 -24
  479. package/package.json +15 -3
  480. package/dist/chunks/badge.BcdxDzJ7.css +0 -1
  481. package/dist/chunks/button.DNo8DTR3.css +0 -1
  482. package/dist/chunks/card.B0AcyAT1.css +0 -1
  483. package/dist/chunks/checkbox.D3kdAalh.css +0 -1
  484. package/dist/chunks/dialog.D6LS2vnG.css +0 -1
  485. package/dist/chunks/dropdown-menu.DmDZc5gB.css +0 -1
  486. package/dist/chunks/field.BNZx8HfN.css +0 -1
  487. package/dist/chunks/input.C8RDCC-a.css +0 -1
  488. package/dist/chunks/radio-group.zAFY9yCF.css +0 -1
  489. package/dist/chunks/select.Dt0diN4P.css +0 -1
  490. package/dist/chunks/switch.CsaIRnCA.css +0 -1
  491. package/dist/chunks/table.BuWHXL6e.css +0 -1
  492. package/dist/chunks/tabs.KEksCAxN.css +0 -1
  493. package/dist/chunks/textarea.N3iiWUuz.css +0 -1
@@ -0,0 +1,28 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { OTPField as s } from "@base-ui/react/otp-field";
3
+ import { cx as n } from "class-variance-authority";
4
+ import './chunks/input-otp.XSpqyVij.css';const e = "_root_10kld_13", u = "_slot_10kld_19", l = "_group_10kld_23", c = "_separator_10kld_126", p = {
5
+ root: e,
6
+ slot: u,
7
+ group: l,
8
+ separator: c
9
+ };
10
+ function m({ className: t, ...o }) {
11
+ return /* @__PURE__ */ r(s.Root, { className: n(p.root, t), ...o });
12
+ }
13
+ function f({ className: t, ...o }) {
14
+ return /* @__PURE__ */ r("div", { className: n(p.group, t), ...o });
15
+ }
16
+ function I({ className: t, ...o }) {
17
+ return /* @__PURE__ */ r(s.Input, { className: n(p.slot, t), ...o });
18
+ }
19
+ function O({ className: t, children: o, ...a }) {
20
+ return /* @__PURE__ */ r(s.Separator, { className: n(p.separator, t), ...a, children: o ?? /* @__PURE__ */ r("span", { "aria-hidden": "true", children: "-" }) });
21
+ }
22
+ export {
23
+ m as InputOtp,
24
+ f as InputOtpGroup,
25
+ O as InputOtpSeparator,
26
+ I as InputOtpSlot
27
+ };
28
+ //# sourceMappingURL=input-otp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-otp.js","sources":["../src/components/input-otp/input-otp.tsx"],"sourcesContent":["import { OTPField as OTPFieldPrimitive } from '@base-ui/react/otp-field';\nimport { cx } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './input-otp.module.css';\n\n/*\n * Deviation from upstream (see input-otp.md's \"Deviation from upstream\"\n * section for the full rationale): upstream wraps the third-party\n * `input-otp` package, whose `OTPInput` renders ONE shared, visually\n * hidden native input, with each visible \"slot\" a plain decorative <div>\n * reading its character/active/caret state from React context\n * (`OTPInputContext`). This port builds on Base UI's `OTPField` instead —\n * it renders one REAL `<input>` PER SLOT (Base UI derives each input's\n * position from render order via a composite list, not a context read),\n * so `InputOtpSlot` below IS that input, not a context-driven display\n * div. The exported part names mirror upstream's (`InputOtp`/\n * `InputOtpGroup`/`InputOtpSlot`/`InputOtpSeparator` for upstream's\n * `InputOTP`/`InputOTPGroup`/`InputOTPSlot`/`InputOTPSeparator`) as\n * closely as the primitive allows.\n */\n\nexport interface InputOtpProps extends Omit<OTPFieldPrimitive.Root.Props, 'className'> {\n className?: string;\n}\n\nexport function InputOtp({ className, ...props }: InputOtpProps) {\n return <OTPFieldPrimitive.Root className={cx(styles.root, className)} {...props} />;\n}\n\n// No Base UI primitive backs this part (upstream's own `InputOTPGroup` is\n// also a plain `<div>`) — purely a visual grouping of a run of slots, so\n// a caret-blink separator can sit between groups without one running the\n// full length of the code.\nexport type InputOtpGroupProps = ComponentProps<'div'>;\n\nexport function InputOtpGroup({ className, ...props }: InputOtpGroupProps) {\n return <div className={cx(styles.group, className)} {...props} />;\n}\n\nexport interface InputOtpSlotProps extends Omit<OTPFieldPrimitive.Input.Props, 'className'> {\n className?: string;\n}\n\nexport function InputOtpSlot({ className, ...props }: InputOtpSlotProps) {\n return <OTPFieldPrimitive.Input className={cx(styles.slot, className)} {...props} />;\n}\n\nexport interface InputOtpSeparatorProps\n extends Omit<OTPFieldPrimitive.Separator.Props, 'className'> {\n className?: string;\n}\n\n// Base UI's OTPField namespace exports a `Separator` part of its own (see\n// @base-ui/react/otp-field's index.parts.ts re-exporting\n// @base-ui/react/separator) — used directly here rather than a plain\n// decorative div, since it already carries `role=\"separator\"` and\n// `data-orientation`. Defaults to a dash glyph (upstream's own default,\n// there via a lucide MinusIcon) only when the consumer renders no\n// children of their own.\nexport function InputOtpSeparator({ className, children, ...props }: InputOtpSeparatorProps) {\n return (\n <OTPFieldPrimitive.Separator className={cx(styles.separator, className)} {...props}>\n {children ?? <span aria-hidden=\"true\">-</span>}\n </OTPFieldPrimitive.Separator>\n );\n}\n"],"names":["InputOtp","className","props","jsx","OTPFieldPrimitive","cx","styles","InputOtpGroup","InputOtpSlot","InputOtpSeparator","children"],"mappings":";;;;;;;;;AA0BO,SAASA,EAAS,EAAE,WAAAC,GAAW,GAAGC,KAAwB;AAC/D,SAAO,gBAAAC,EAACC,EAAkB,MAAlB,EAAuB,WAAWC,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGC,EAAA,CAAO;AACnF;AAQO,SAASK,EAAc,EAAE,WAAAN,GAAW,GAAGC,KAA6B;AACzE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGC,EAAO,OAAOL,CAAS,GAAI,GAAGC,GAAO;AACjE;AAMO,SAASM,EAAa,EAAE,WAAAP,GAAW,GAAGC,KAA4B;AACvE,SAAO,gBAAAC,EAACC,EAAkB,OAAlB,EAAwB,WAAWC,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGC,EAAA,CAAO;AACpF;AAcO,SAASO,EAAkB,EAAE,WAAAR,GAAW,UAAAS,GAAU,GAAGR,KAAiC;AAC3F,2BACGE,EAAkB,WAAlB,EAA4B,WAAWC,EAAGC,EAAO,WAAWL,CAAS,GAAI,GAAGC,GAC1E,UAAAQ,KAAY,gBAAAP,EAAC,UAAK,eAAY,QAAO,eAAC,GACzC;AAEJ;"}
package/dist/input.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import { Input as d } from "@base-ui/react/input";
3
3
  import { cx as u } from "class-variance-authority";
4
- import { Children as e } from "react";
5
- import './chunks/input.C8RDCC-a.css';const l = "_input_1v93o_6", I = "_wrap_1v93o_122", f = "_icon_1v93o_128", v = "_end_1v93o_143", E = "_hasIcon_1v93o_172", w = "_hasEnd_1v93o_178", n = {
4
+ import { Children as i } from "react";
5
+ import './chunks/input.DvA_mTq8.css';const l = "_input_1hne1_6", I = "_wrap_1hne1_137", f = "_icon_1hne1_143", E = "_end_1hne1_158", w = "_hasIcon_1hne1_187", x = "_hasEnd_1hne1_193", n = {
6
6
  input: l,
7
7
  wrap: I,
8
8
  icon: f,
9
- end: v,
10
- hasIcon: E,
11
- hasEnd: w
9
+ end: E,
10
+ hasIcon: w,
11
+ hasEnd: x
12
12
  };
13
- function A({ className: _, icon: r, end: c, disabled: i, ...h }) {
14
- const o = e.toArray(r).some((t) => t !== ""), s = e.toArray(c).some((t) => t !== ""), p = /* @__PURE__ */ a(
13
+ function C({ className: p, icon: r, end: c, disabled: e, ..._ }) {
14
+ const s = i.toArray(r).some((t) => t !== ""), o = i.toArray(c).some((t) => t !== ""), h = /* @__PURE__ */ a(
15
15
  d,
16
16
  {
17
17
  className: u(
18
18
  n.input,
19
- o && n.hasIcon,
20
- s && n.hasEnd,
21
- _
19
+ s && n.hasIcon,
20
+ o && n.hasEnd,
21
+ p
22
22
  ),
23
- disabled: i,
24
- ...h
23
+ disabled: e,
24
+ ..._
25
25
  }
26
26
  );
27
- return !o && !s ? p : /* @__PURE__ */ m("span", { className: n.wrap, children: [
28
- o && /* @__PURE__ */ a("span", { className: n.icon, "aria-hidden": "true", children: r }),
29
- p,
30
- s && /* @__PURE__ */ a("span", { className: n.end, inert: i, children: c })
27
+ return !s && !o ? h : /* @__PURE__ */ m("span", { className: n.wrap, children: [
28
+ s && /* @__PURE__ */ a("span", { className: n.icon, "aria-hidden": "true", children: r }),
29
+ h,
30
+ o && /* @__PURE__ */ a("span", { className: n.end, inert: e, children: c })
31
31
  ] });
32
32
  }
33
33
  export {
34
- A as Input
34
+ C as Input
35
35
  };
36
36
  //# sourceMappingURL=input.js.map
package/dist/item.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/item/public.js'
package/dist/item.js ADDED
@@ -0,0 +1,107 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { mergeProps as c } from "@base-ui/react/merge-props";
3
+ import { useRender as u } from "@base-ui/react/use-render";
4
+ import { cx as n, cva as r } from "class-variance-authority";
5
+ import { Separator as _ } from "./separator.js";
6
+ import './chunks/item.CLg1KaYF.css';const l = "_item_mc58w_23", d = "_variantDefault_mc58w_79", f = "_variantOutline_mc58w_83", v = "_variantMuted_mc58w_34", p = "_sizeDefault_mc58w_92", M = "_sizeSm_mc58w_97", w = "_sizeXs_mc58w_102", z = "_itemMedia_mc58w_107", I = "_itemDescription_mc58w_124", V = "_itemMediaVariantDefault_mc58w_129", D = "_itemMediaVariantIcon_mc58w_133", S = "_itemMediaVariantImage_mc58w_138", N = "_itemContent_mc58w_170", g = "_itemTitle_mc58w_186", A = "_itemActions_mc58w_225", T = "_itemHeader_mc58w_231", C = "_itemFooter_mc58w_232", F = "_itemGroup_mc58w_240", G = "_itemSeparator_mc58w_258", i = {
7
+ item: l,
8
+ variantDefault: d,
9
+ variantOutline: f,
10
+ variantMuted: v,
11
+ sizeDefault: p,
12
+ sizeSm: M,
13
+ sizeXs: w,
14
+ itemMedia: z,
15
+ itemDescription: I,
16
+ itemMediaVariantDefault: V,
17
+ itemMediaVariantIcon: D,
18
+ itemMediaVariantImage: S,
19
+ itemContent: N,
20
+ itemTitle: g,
21
+ itemActions: A,
22
+ itemHeader: T,
23
+ itemFooter: C,
24
+ itemGroup: F,
25
+ itemSeparator: G
26
+ }, H = r(i.item, {
27
+ variants: {
28
+ variant: {
29
+ default: i.variantDefault,
30
+ outline: i.variantOutline,
31
+ muted: i.variantMuted
32
+ },
33
+ size: {
34
+ default: i.sizeDefault,
35
+ sm: i.sizeSm,
36
+ xs: i.sizeXs
37
+ }
38
+ },
39
+ defaultVariants: {
40
+ variant: "default",
41
+ size: "default"
42
+ }
43
+ });
44
+ function R({ className: e, variant: t, size: m, render: o, ...s }) {
45
+ return u({
46
+ defaultTagName: "div",
47
+ render: o,
48
+ state: { variant: t ?? "default", size: m ?? "default" },
49
+ stateAttributesMapping: {
50
+ variant: () => null,
51
+ size: () => null
52
+ },
53
+ props: c({ className: H({ variant: t, size: m, className: e }) }, s)
54
+ });
55
+ }
56
+ const x = r(i.itemMedia, {
57
+ variants: {
58
+ variant: {
59
+ default: i.itemMediaVariantDefault,
60
+ icon: i.itemMediaVariantIcon,
61
+ image: i.itemMediaVariantImage
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ variant: "default"
66
+ }
67
+ });
68
+ function k({ className: e, variant: t, ...m }) {
69
+ return /* @__PURE__ */ a("div", { className: x({ variant: t, className: e }), ...m });
70
+ }
71
+ function q({ className: e, ...t }) {
72
+ return /* @__PURE__ */ a("div", { className: n(i.itemContent, e), ...t });
73
+ }
74
+ function B({ className: e, ...t }) {
75
+ return /* @__PURE__ */ a("div", { className: n(i.itemTitle, e), ...t });
76
+ }
77
+ function E({ className: e, ...t }) {
78
+ return /* @__PURE__ */ a("p", { className: n(i.itemDescription, e), ...t });
79
+ }
80
+ function J({ className: e, ...t }) {
81
+ return /* @__PURE__ */ a("div", { className: n(i.itemActions, e), ...t });
82
+ }
83
+ function K({ className: e, ...t }) {
84
+ return /* @__PURE__ */ a("div", { className: n(i.itemHeader, e), ...t });
85
+ }
86
+ function L({ className: e, ...t }) {
87
+ return /* @__PURE__ */ a("div", { className: n(i.itemFooter, e), ...t });
88
+ }
89
+ function Q({ className: e, ...t }) {
90
+ return /* @__PURE__ */ a("div", { role: "list", className: n(i.itemGroup, e), ...t });
91
+ }
92
+ function U({ className: e, ...t }) {
93
+ return /* @__PURE__ */ a(_, { orientation: "horizontal", className: n(i.itemSeparator, e), ...t });
94
+ }
95
+ export {
96
+ R as Item,
97
+ J as ItemActions,
98
+ q as ItemContent,
99
+ E as ItemDescription,
100
+ L as ItemFooter,
101
+ Q as ItemGroup,
102
+ K as ItemHeader,
103
+ k as ItemMedia,
104
+ U as ItemSeparator,
105
+ B as ItemTitle
106
+ };
107
+ //# sourceMappingURL=item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.js","sources":["../src/components/item/item.tsx"],"sourcesContent":["import { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { Separator, type SeparatorProps } from '../separator/separator';\nimport styles from './item.module.css';\n\n/*\n * Item is mostly primitive-free (registry/bases/base/ui/item.tsx ships\n * plain `div`s with data-slot markers, same shape as Card — see card.tsx),\n * EXCEPT the root: upstream builds `Item` itself on Base UI's headless\n * `useRender`/`mergeProps` utilities for render-prop polymorphism (e.g.\n * rendering as an `<a>` so a whole item is a link), not a stateful/\n * positioned primitive like Button or Dialog. This port keeps that\n * capability rather than dropping it — the `render` prop is a real part of\n * Item's upstream surface, and \"replicate faithfully\" extends to it.\n *\n * No `data-slot`/`data-variant`/`data-size` attributes, per the kit-wide\n * convention (see card.tsx): `useRender`'s `state` option would otherwise\n * auto-reflect `variant`/`size` as `data-*` attributes (see Base UI's\n * getStateAttributesProps), so `stateAttributesMapping` below suppresses\n * that while still handing `{ variant, size }` through to a\n * function-as-`render` consumer's callback.\n */\n\nconst itemVariants = cva(styles.item, {\n variants: {\n variant: {\n default: styles.variantDefault,\n outline: styles.variantOutline,\n muted: styles.variantMuted,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n xs: styles.sizeXs,\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\ntype ItemVariant = NonNullable<VariantProps<typeof itemVariants>['variant']>;\ntype ItemSize = NonNullable<VariantProps<typeof itemVariants>['size']>;\n\nexport type ItemProps = useRender.ComponentProps<'div', { variant: ItemVariant; size: ItemSize }> &\n VariantProps<typeof itemVariants>;\n\nexport function Item({ className, variant, size, render, ...props }: ItemProps) {\n // cva's own VariantProps types these `| null` (a consumer can pass\n // `variant={null}` to explicitly reset to the default), which a default\n // parameter value alone doesn't absorb — only `undefined` does. Resolved\n // here once so `state` below can stay a plain, non-nullable\n // `{ variant, size }` pair.\n const resolvedVariant = variant ?? 'default';\n const resolvedSize = size ?? 'default';\n return useRender({\n defaultTagName: 'div',\n render,\n state: { variant: resolvedVariant, size: resolvedSize },\n stateAttributesMapping: {\n variant: () => null,\n size: () => null,\n },\n props: mergeProps<'div'>({ className: itemVariants({ variant, size, className }) }, props),\n });\n}\n\nconst itemMediaVariants = cva(styles.itemMedia, {\n variants: {\n variant: {\n default: styles.itemMediaVariantDefault,\n icon: styles.itemMediaVariantIcon,\n image: styles.itemMediaVariantImage,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface ItemMediaProps\n extends ComponentProps<'div'>, VariantProps<typeof itemMediaVariants> {}\n\n/** `variant=\"image\"` also shrinks to match the ancestor `Item`'s own\n * `size` (see item.module.css) — no separate prop, it reads the size class\n * already sitting on the `Item` root. */\nexport function ItemMedia({ className, variant, ...props }: ItemMediaProps) {\n return <div className={itemMediaVariants({ variant, className })} {...props} />;\n}\n\nexport type ItemContentProps = ComponentProps<'div'>;\n\nexport function ItemContent({ className, ...props }: ItemContentProps) {\n return <div className={cx(styles.itemContent, className)} {...props} />;\n}\n\nexport type ItemTitleProps = ComponentProps<'div'>;\n\nexport function ItemTitle({ className, ...props }: ItemTitleProps) {\n return <div className={cx(styles.itemTitle, className)} {...props} />;\n}\n\n/*\n * Deviation from upstream's own typing: source types this as\n * `React.ComponentProps<\"p\">` and does render a `<p>` (unlike KbdGroup/\n * EmptyDescription's own typing/render mismatch elsewhere in this port —\n * Item's is consistent), kept as-is.\n */\nexport type ItemDescriptionProps = ComponentProps<'p'>;\n\nexport function ItemDescription({ className, ...props }: ItemDescriptionProps) {\n return <p className={cx(styles.itemDescription, className)} {...props} />;\n}\n\nexport type ItemActionsProps = ComponentProps<'div'>;\n\nexport function ItemActions({ className, ...props }: ItemActionsProps) {\n return <div className={cx(styles.itemActions, className)} {...props} />;\n}\n\nexport type ItemHeaderProps = ComponentProps<'div'>;\n\nexport function ItemHeader({ className, ...props }: ItemHeaderProps) {\n return <div className={cx(styles.itemHeader, className)} {...props} />;\n}\n\nexport type ItemFooterProps = ComponentProps<'div'>;\n\nexport function ItemFooter({ className, ...props }: ItemFooterProps) {\n return <div className={cx(styles.itemFooter, className)} {...props} />;\n}\n\nexport type ItemGroupProps = ComponentProps<'div'>;\n\n/** A `role=\"list\"` container for a run of `Item`s, spacing them apart\n * (the gap shrinks to match the smallest `size` of Item it contains — see\n * item.module.css). */\nexport function ItemGroup({ className, ...props }: ItemGroupProps) {\n return <div role=\"list\" className={cx(styles.itemGroup, className)} {...props} />;\n}\n\n/** A divider between `Item`s, built on the kit's own `Separator` — same\n * composition idiom as `field.tsx`'s `FieldSeparator`. */\nexport type ItemSeparatorProps = SeparatorProps;\n\nexport function ItemSeparator({ className, ...props }: ItemSeparatorProps) {\n return <Separator orientation=\"horizontal\" className={cx(styles.itemSeparator, className)} {...props} />;\n}\n"],"names":["itemVariants","cva","styles","Item","className","variant","size","render","props","useRender","mergeProps","itemMediaVariants","ItemMedia","jsx","ItemContent","cx","ItemTitle","ItemDescription","ItemActions","ItemHeader","ItemFooter","ItemGroup","ItemSeparator","Separator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;GA0BMA,IAAeC,EAAIC,EAAO,MAAM;AAAA,EACpC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,IAAA;AAAA,IAEhB,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EAAA;AAEV,CAAC;AAQM,SAASC,EAAK,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,QAAAC,GAAQ,GAAGC,KAAoB;AAQ9E,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA,IACA,OAAO,EAAE,SALaF,KAAW,WAKE,MAJhBC,KAAQ,UAIc;AAAA,IACzC,wBAAwB;AAAA,MACtB,SAAS,MAAM;AAAA,MACf,MAAM,MAAM;AAAA,IAAA;AAAA,IAEd,OAAOI,EAAkB,EAAE,WAAWV,EAAa,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,GAAW,EAAA,GAAKI,CAAK;AAAA,EAAA,CAC1F;AACH;AAEA,MAAMG,IAAoBV,EAAIC,EAAO,WAAW;AAAA,EAC9C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,OAAOA,EAAO;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAQM,SAASU,EAAU,EAAE,WAAAR,GAAW,SAAAC,GAAS,GAAGG,KAAyB;AAC1E,SAAO,gBAAAK,EAAC,OAAA,EAAI,WAAWF,EAAkB,EAAE,SAAAN,GAAS,WAAAD,EAAA,CAAW,GAAI,GAAGI,GAAO;AAC/E;AAIO,SAASM,EAAY,EAAE,WAAAV,GAAW,GAAGI,KAA2B;AACrE,SAAO,gBAAAK,EAAC,SAAI,WAAWE,EAAGb,EAAO,aAAaE,CAAS,GAAI,GAAGI,GAAO;AACvE;AAIO,SAASQ,EAAU,EAAE,WAAAZ,GAAW,GAAGI,KAAyB;AACjE,SAAO,gBAAAK,EAAC,SAAI,WAAWE,EAAGb,EAAO,WAAWE,CAAS,GAAI,GAAGI,GAAO;AACrE;AAUO,SAASS,EAAgB,EAAE,WAAAb,GAAW,GAAGI,KAA+B;AAC7E,SAAO,gBAAAK,EAAC,OAAE,WAAWE,EAAGb,EAAO,iBAAiBE,CAAS,GAAI,GAAGI,GAAO;AACzE;AAIO,SAASU,EAAY,EAAE,WAAAd,GAAW,GAAGI,KAA2B;AACrE,SAAO,gBAAAK,EAAC,SAAI,WAAWE,EAAGb,EAAO,aAAaE,CAAS,GAAI,GAAGI,GAAO;AACvE;AAIO,SAASW,EAAW,EAAE,WAAAf,GAAW,GAAGI,KAA0B;AACnE,SAAO,gBAAAK,EAAC,SAAI,WAAWE,EAAGb,EAAO,YAAYE,CAAS,GAAI,GAAGI,GAAO;AACtE;AAIO,SAASY,EAAW,EAAE,WAAAhB,GAAW,GAAGI,KAA0B;AACnE,SAAO,gBAAAK,EAAC,SAAI,WAAWE,EAAGb,EAAO,YAAYE,CAAS,GAAI,GAAGI,GAAO;AACtE;AAOO,SAASa,EAAU,EAAE,WAAAjB,GAAW,GAAGI,KAAyB;AACjE,SAAO,gBAAAK,EAAC,OAAA,EAAI,MAAK,QAAO,WAAWE,EAAGb,EAAO,WAAWE,CAAS,GAAI,GAAGI,EAAA,CAAO;AACjF;AAMO,SAASc,EAAc,EAAE,WAAAlB,GAAW,GAAGI,KAA6B;AACzE,SAAO,gBAAAK,EAACU,GAAA,EAAU,aAAY,cAAa,WAAWR,EAAGb,EAAO,eAAeE,CAAS,GAAI,GAAGI,EAAA,CAAO;AACxG;"}
package/dist/kbd.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/kbd/public.js'
package/dist/kbd.js ADDED
@@ -0,0 +1,17 @@
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { cx as d } from "class-variance-authority";
3
+ import './chunks/kbd.DZuUVB_m.css';const n = "_kbd_1kn07_12", t = "_kbdGroup_1kn07_46", k = {
4
+ kbd: n,
5
+ kbdGroup: t
6
+ };
7
+ function c({ className: o, ...r }) {
8
+ return /* @__PURE__ */ b("kbd", { className: d(k.kbd, o), ...r });
9
+ }
10
+ function p({ className: o, ...r }) {
11
+ return /* @__PURE__ */ b("kbd", { className: d(k.kbdGroup, o), ...r });
12
+ }
13
+ export {
14
+ c as Kbd,
15
+ p as KbdGroup
16
+ };
17
+ //# sourceMappingURL=kbd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kbd.js","sources":["../src/components/kbd/kbd.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './kbd.module.css';\n\n/*\n * Kbd has no Base UI primitive (registry/bases/base/ui/kbd.tsx ships a\n * plain `kbd`/data-slot pair, no variant axis) — a pure styling\n * translation over native elements, same shape as Skeleton/Separator: no\n * cva here, just one class.\n *\n * Deviation from upstream's own typing: source types `KbdGroup`'s props as\n * `React.ComponentProps<\"div\">` but renders a `<kbd>` element regardless\n * (upstream's own inconsistency — grouping several `Kbd`s inside one more\n * `<kbd>` tag is a deliberate semantic choice, not a bug). This port types\n * it as `ComponentProps<'kbd'>` instead, matching the element it actually\n * renders — the kit's \"type-safe by default\" rule prefers a prop type that\n * describes the real output over faithfully reproducing a source typo.\n *\n * Upstream also carries a Tooltip-context recolor\n * (`in-data-[slot=tooltip-content]:bg-background/20 ...`) that repaints a\n * Kbd sitting inside a TooltipContent. Not reproduced: it keys off a\n * `data-slot=\"tooltip-content\"` attribute, and this kit drops `data-slot`\n * everywhere (see card.tsx) — Tooltip has nothing for a same-file `:has()`/\n * attribute selector here to detect. A consumer nesting Kbd inside\n * TooltipContent gets the plain `--muted`/`--muted-foreground` pair\n * instead of the recolored one; wiring that back in would mean Kbd\n * reaching into Tooltip's own module, which the kit doesn't do anywhere\n * else either.\n */\nexport type KbdProps = ComponentProps<'kbd'>;\n\nexport function Kbd({ className, ...props }: KbdProps) {\n return <kbd className={cx(styles.kbd, className)} {...props} />;\n}\n\nexport type KbdGroupProps = ComponentProps<'kbd'>;\n\n/** Groups several `Kbd`s (e.g. `Cmd` + `K`) — renders as a `<kbd>` itself,\n * matching upstream (see this file's top comment). */\nexport function KbdGroup({ className, ...props }: KbdGroupProps) {\n return <kbd className={cx(styles.kbdGroup, className)} {...props} />;\n}\n"],"names":["Kbd","className","props","jsx","cx","styles","KbdGroup"],"mappings":";;;;;;AAgCO,SAASA,EAAI,EAAE,WAAAC,GAAW,GAAGC,KAAmB;AACrD,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,KAAKJ,CAAS,GAAI,GAAGC,GAAO;AAC/D;AAMO,SAASI,EAAS,EAAE,WAAAL,GAAW,GAAGC,KAAwB;AAC/D,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,UAAUJ,CAAS,GAAI,GAAGC,GAAO;AACpE;"}
@@ -0,0 +1 @@
1
+ export * from './components/marker/public.js'
package/dist/marker.js ADDED
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { mergeProps as s } from "@base-ui/react/merge-props";
4
+ import { useRender as m } from "@base-ui/react/use-render";
5
+ import { cx as n, cva as c } from "class-variance-authority";
6
+ import './chunks/marker.DDxI_rZn.css';const d = "_marker_1dbba_11", u = "_variantDefault_1dbba_48", _ = "_variantBorder_1dbba_53", v = "_variantSeparator_1dbba_61", f = "_markerIcon_1dbba_78", k = "_markerContent_1dbba_91", r = {
7
+ marker: d,
8
+ variantDefault: u,
9
+ variantBorder: _,
10
+ variantSeparator: v,
11
+ markerIcon: f,
12
+ markerContent: k
13
+ }, p = c(r.marker, {
14
+ variants: {
15
+ variant: {
16
+ default: r.variantDefault,
17
+ separator: r.variantSeparator,
18
+ border: r.variantBorder
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ variant: "default"
23
+ }
24
+ });
25
+ function B({ className: t, variant: a = "default", render: o, ...i }) {
26
+ return m({
27
+ defaultTagName: "div",
28
+ render: o,
29
+ // `data-variant` is layered on AFTER mergeProps, not passed through it:
30
+ // mergeProps types its own object literal as the closed DOM attribute
31
+ // set for the tag, which rejects a `data-*` key — the same
32
+ // shadow-proofing needed anywhere a `data-*` prop must survive
33
+ // mergeProps.
34
+ props: {
35
+ ...s({ className: p({ variant: a, className: t }) }, i),
36
+ "data-variant": a
37
+ }
38
+ });
39
+ }
40
+ function D({ className: t, ...a }) {
41
+ return /* @__PURE__ */ e("span", { "aria-hidden": "true", className: n(r.markerIcon, t), ...a });
42
+ }
43
+ function N({ className: t, ...a }) {
44
+ return /* @__PURE__ */ e("span", { className: n(r.markerContent, t), ...a });
45
+ }
46
+ export {
47
+ B as Marker,
48
+ N as MarkerContent,
49
+ D as MarkerIcon,
50
+ p as markerVariants
51
+ };
52
+ //# sourceMappingURL=marker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marker.js","sources":["../src/components/marker/marker.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './marker.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Marker\n * (registry/bases/base/ui/marker.tsx): an inline conversation marker for\n * status updates, system notes, bordered rows, and labeled separators.\n * Marker has no Base UI primitive, but gets `render`-prop polymorphism\n * from `useRender`/`mergeProps` — the same utilities Base UI's own\n * primitives are built on, and the same pattern Badge uses — for turning a\n * marker into a link or button.\n *\n * Pairs with the `shimmer` utility (src/styles/utilities.css, this\n * package's global CSS alongside theme.css — see that file's own header)\n * for a streaming-text effect: add the `shimmer` class to `MarkerContent`\n * directly, same as upstream (see marker.md's \"Shimmer\" section). Marker\n * does not apply it automatically — unlike Attachment's title\n * (attachment.tsx), which reacts to an upload `state` axis Marker has no\n * equivalent of.\n */\nconst markerVariants = cva(styles.marker, {\n variants: {\n variant: {\n default: styles.variantDefault,\n separator: styles.variantSeparator,\n border: styles.variantBorder,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface MarkerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof markerVariants> {}\n\nexport function Marker({ className, variant = 'default', render, ...props }: MarkerProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n // `data-variant` is layered on AFTER mergeProps, not passed through it:\n // mergeProps types its own object literal as the closed DOM attribute\n // set for the tag, which rejects a `data-*` key — the same\n // shadow-proofing needed anywhere a `data-*` prop must survive\n // mergeProps.\n props: {\n ...mergeProps<'div'>({ className: markerVariants({ variant, className }) }, props),\n 'data-variant': variant,\n },\n });\n}\n\nexport { markerVariants };\n\nexport type MarkerIconProps = ComponentProps<'span'>;\n\n/** A decorative icon slot, hidden from assistive tech. For an icon-only\n * marker, give `Marker` itself an `aria-label` or visible text — an\n * icon alone announces as empty. */\nexport function MarkerIcon({ className, ...props }: MarkerIconProps) {\n return <span aria-hidden=\"true\" className={cx(styles.markerIcon, className)} {...props} />;\n}\n\nexport type MarkerContentProps = ComponentProps<'span'>;\n\n/** The marker's text content. */\nexport function MarkerContent({ className, ...props }: MarkerContentProps) {\n return <span className={cx(styles.markerContent, className)} {...props} />;\n}\n"],"names":["markerVariants","cva","styles","Marker","className","variant","render","props","useRender","mergeProps","MarkerIcon","jsx","cx","MarkerContent"],"mappings":";;;;;;;;;;;;GA0BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,QAAQA,EAAO;AAAA,IAAA;AAAA,EACjB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAIM,SAASC,EAAO,EAAE,WAAAC,GAAW,SAAAC,IAAU,WAAW,QAAAC,GAAQ,GAAGC,KAAsB;AACxF,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAO;AAAA,MACL,GAAGG,EAAkB,EAAE,WAAWT,EAAe,EAAE,SAAAK,GAAS,WAAAD,EAAA,CAAW,EAAA,GAAKG,CAAK;AAAA,MACjF,gBAAgBF;AAAA,IAAA;AAAA,EAClB,CACD;AACH;AASO,SAASK,EAAW,EAAE,WAAAN,GAAW,GAAGG,KAA0B;AACnE,SAAO,gBAAAI,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWC,EAAGV,EAAO,YAAYE,CAAS,GAAI,GAAGG,EAAA,CAAO;AAC1F;AAKO,SAASM,EAAc,EAAE,WAAAT,GAAW,GAAGG,KAA6B;AACzE,SAAO,gBAAAI,EAAC,UAAK,WAAWC,EAAGV,EAAO,eAAeE,CAAS,GAAI,GAAGG,GAAO;AAC1E;"}
@@ -0,0 +1 @@
1
+ export * from './components/menubar/public.js'
@@ -0,0 +1,50 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Menubar as M } from "@base-ui/react/menubar";
3
+ import { cx as e } from "class-variance-authority";
4
+ import { DropdownMenuCheckboxItem as b, DropdownMenuGroup as c, DropdownMenuItem as p, DropdownMenuLabel as s, DropdownMenu as m, DropdownMenuRadioGroup as i, DropdownMenuRadioItem as d, DropdownMenuSeparator as g, DropdownMenuShortcut as w, DropdownMenuSub as D, DropdownMenuSubContent as S, DropdownMenuSubTrigger as f, DropdownMenuContent as l, DropdownMenuTrigger as C } from "./dropdown-menu.js";
5
+ import './chunks/menubar.CxRNI9o4.css';const I = "_menubar_oln9m_11", _ = "_trigger_oln9m_28", u = {
6
+ menubar: I,
7
+ trigger: _
8
+ };
9
+ function T({ className: n, ...r }) {
10
+ return /* @__PURE__ */ o(M, { className: e(u.menubar, n), ...r });
11
+ }
12
+ const k = m;
13
+ function L({ className: n, ...r }) {
14
+ return /* @__PURE__ */ o(C, { className: e(u.trigger, n), ...r });
15
+ }
16
+ function N({
17
+ align: n = "start",
18
+ alignOffset: r = -4,
19
+ sideOffset: t = 8,
20
+ ...a
21
+ }) {
22
+ return /* @__PURE__ */ o(
23
+ l,
24
+ {
25
+ align: n,
26
+ alignOffset: r,
27
+ sideOffset: t,
28
+ ...a
29
+ }
30
+ );
31
+ }
32
+ const j = c, y = s, $ = p, q = b, v = i, z = d, A = g, B = w, E = D, F = f, H = S;
33
+ export {
34
+ T as Menubar,
35
+ q as MenubarCheckboxItem,
36
+ N as MenubarContent,
37
+ j as MenubarGroup,
38
+ $ as MenubarItem,
39
+ y as MenubarLabel,
40
+ k as MenubarMenu,
41
+ v as MenubarRadioGroup,
42
+ z as MenubarRadioItem,
43
+ A as MenubarSeparator,
44
+ B as MenubarShortcut,
45
+ E as MenubarSub,
46
+ H as MenubarSubContent,
47
+ F as MenubarSubTrigger,
48
+ L as MenubarTrigger
49
+ };
50
+ //# sourceMappingURL=menubar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menubar.js","sources":["../src/components/menubar/menubar.tsx"],"sourcesContent":["/*\n * Load-bearing: none of this module's own functions call a hook — every\n * part is either a re-exported DropdownMenu building block (dropdown-menu.tsx\n * carries the 'use client' marker for its own useContext call) or a plain\n * styling wrapper around Menubar/DropdownMenuTrigger. No 'use client' marker\n * needed here; see scripts/verify-consumer.sh's SERVER_COMPONENTS list.\n */\nimport { Menubar as MenubarPrimitive } from '@base-ui/react/menubar';\nimport { cx } from 'class-variance-authority';\n\nimport {\n DropdownMenu,\n type DropdownMenuCheckboxItemProps,\n DropdownMenuCheckboxItem,\n type DropdownMenuContentProps,\n DropdownMenuContent,\n type DropdownMenuGroupProps,\n DropdownMenuGroup,\n type DropdownMenuItemProps,\n DropdownMenuItem,\n type DropdownMenuLabelProps,\n DropdownMenuLabel,\n type DropdownMenuProps,\n type DropdownMenuRadioGroupProps,\n DropdownMenuRadioGroup,\n type DropdownMenuRadioItemProps,\n DropdownMenuRadioItem,\n type DropdownMenuSeparatorProps,\n DropdownMenuSeparator,\n type DropdownMenuShortcutProps,\n DropdownMenuShortcut,\n type DropdownMenuSubContentProps,\n DropdownMenuSubContent,\n type DropdownMenuSubProps,\n DropdownMenuSub,\n type DropdownMenuSubTriggerProps,\n DropdownMenuSubTrigger,\n type DropdownMenuTriggerProps,\n DropdownMenuTrigger,\n} from '../dropdown-menu/dropdown-menu';\nimport styles from './menubar.module.css';\n\nexport interface MenubarProps extends Omit<MenubarPrimitive.Props, 'className'> {\n className?: string;\n}\n\nexport function Menubar({ className, ...props }: MenubarProps) {\n return <MenubarPrimitive className={cx(styles.menubar, className)} {...props} />;\n}\n\n/**\n * Each top-level menu is a plain Menu.Root (== DropdownMenu). Base UI\n * detects the ancestor Menubar via context automatically, coordinating\n * roving focus and hover-to-switch between sibling menus with no wiring\n * here — same idiom upstream uses (menubar.tsx literally re-exports its own\n * DropdownMenu parts for every piece except Checkbox/RadioItem).\n */\nexport const MenubarMenu = DropdownMenu;\nexport type MenubarMenuProps = DropdownMenuProps;\n\nexport interface MenubarTriggerProps extends Omit<DropdownMenuTriggerProps, 'className'> {\n className?: string;\n}\n\nexport function MenubarTrigger({ className, ...props }: MenubarTriggerProps) {\n return <DropdownMenuTrigger className={cx(styles.trigger, className)} {...props} />;\n}\n\nexport type MenubarContentProps = DropdownMenuContentProps;\n\nexport function MenubarContent({\n align = 'start',\n alignOffset = -4,\n sideOffset = 8,\n ...props\n}: MenubarContentProps) {\n return (\n <DropdownMenuContent\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n {...props}\n />\n );\n}\n\nexport const MenubarGroup = DropdownMenuGroup;\nexport type MenubarGroupProps = DropdownMenuGroupProps;\n\nexport const MenubarLabel = DropdownMenuLabel;\nexport type MenubarLabelProps = DropdownMenuLabelProps;\n\n/**\n * Re-exported verbatim, including its `variant` (default/destructive) axis —\n * upstream's own MenubarItem carries no such axis, but it costs nothing to\n * inherit and keeps this module a pure re-export rather than a partial one.\n */\nexport const MenubarItem = DropdownMenuItem;\nexport type MenubarItemProps = DropdownMenuItemProps;\n\n/**\n * Re-exported verbatim. Upstream's own MenubarCheckboxItem/MenubarRadioItem\n * duplicate the CheckboxItem/RadioItem indicator markup by hand from\n * `@base-ui/react/menu` instead of reusing their own already-defined\n * DropdownMenuCheckboxItem/DropdownMenuRadioItem — the rendered output is\n * identical either way, so this port reuses the kit's existing parts rather\n * than re-authoring the same markup a second time.\n */\nexport const MenubarCheckboxItem = DropdownMenuCheckboxItem;\nexport type MenubarCheckboxItemProps = DropdownMenuCheckboxItemProps;\n\nexport const MenubarRadioGroup = DropdownMenuRadioGroup;\nexport type MenubarRadioGroupProps = DropdownMenuRadioGroupProps;\n\nexport const MenubarRadioItem = DropdownMenuRadioItem;\nexport type MenubarRadioItemProps = DropdownMenuRadioItemProps;\n\nexport const MenubarSeparator = DropdownMenuSeparator;\nexport type MenubarSeparatorProps = DropdownMenuSeparatorProps;\n\nexport const MenubarShortcut = DropdownMenuShortcut;\nexport type MenubarShortcutProps = DropdownMenuShortcutProps;\n\nexport const MenubarSub = DropdownMenuSub;\nexport type MenubarSubProps = DropdownMenuSubProps;\n\nexport const MenubarSubTrigger = DropdownMenuSubTrigger;\nexport type MenubarSubTriggerProps = DropdownMenuSubTriggerProps;\n\nexport const MenubarSubContent = DropdownMenuSubContent;\nexport type MenubarSubContentProps = DropdownMenuSubContentProps;\n"],"names":["Menubar","className","props","jsx","MenubarPrimitive","cx","styles","MenubarMenu","DropdownMenu","MenubarTrigger","DropdownMenuTrigger","MenubarContent","align","alignOffset","sideOffset","DropdownMenuContent","MenubarGroup","DropdownMenuGroup","MenubarLabel","DropdownMenuLabel","MenubarItem","DropdownMenuItem","MenubarCheckboxItem","DropdownMenuCheckboxItem","MenubarRadioGroup","DropdownMenuRadioGroup","MenubarRadioItem","DropdownMenuRadioItem","MenubarSeparator","DropdownMenuSeparator","MenubarShortcut","DropdownMenuShortcut","MenubarSub","DropdownMenuSub","MenubarSubTrigger","DropdownMenuSubTrigger","MenubarSubContent","DropdownMenuSubContent"],"mappings":";;;;;;;;AA8CO,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAAuB;AAC7D,SAAO,gBAAAC,EAACC,KAAiB,WAAWC,EAAGC,EAAO,SAASL,CAAS,GAAI,GAAGC,GAAO;AAChF;AASO,MAAMK,IAAcC;AAOpB,SAASC,EAAe,EAAE,WAAAR,GAAW,GAAGC,KAA8B;AAC3E,SAAO,gBAAAC,EAACO,KAAoB,WAAWL,EAAGC,EAAO,SAASL,CAAS,GAAI,GAAGC,GAAO;AACnF;AAIO,SAASS,EAAe;AAAA,EAC7B,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AAAA,EACb,GAAGZ;AACL,GAAwB;AACtB,SACE,gBAAAC;AAAA,IAACY;AAAA,IAAA;AAAA,MACC,OAAAH;AAAA,MACA,aAAAC;AAAA,MACA,YAAAC;AAAA,MACC,GAAGZ;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,MAAMc,IAAeC,GAGfC,IAAeC,GAQfC,IAAcC,GAWdC,IAAsBC,GAGtBC,IAAoBC,GAGpBC,IAAmBC,GAGnBC,IAAmBC,GAGnBC,IAAkBC,GAGlBC,IAAaC,GAGbC,IAAoBC,GAGpBC,IAAoBC;"}
@@ -0,0 +1 @@
1
+ export * from './components/message-scroller/public.js'
@@ -0,0 +1,69 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { MessageScroller as r } from "@shadcn/react/message-scroller";
3
+ import { useMessageScroller as A, useMessageScrollerScrollable as D, useMessageScrollerVisibility as R } from "@shadcn/react/message-scroller";
4
+ import { cx as n } from "class-variance-authority";
5
+ import { ArrowDownIcon as _ } from "lucide-react";
6
+ import { Button as S } from "./button.js";
7
+ import './chunks/message-scroller.CbLooS7Q.css';const p = "_root_1i5vo_9", f = "_viewport_1i5vo_19", g = "_content_1i5vo_32", v = "_item_1i5vo_74", M = "_button_1i5vo_97", s = {
8
+ root: p,
9
+ viewport: f,
10
+ content: g,
11
+ item: v,
12
+ button: M
13
+ };
14
+ function y(o) {
15
+ return /* @__PURE__ */ t(r.Provider, { ...o });
16
+ }
17
+ function B({ className: o, ...e }) {
18
+ return /* @__PURE__ */ t(r.Root, { className: n(s.root, o), ...e });
19
+ }
20
+ function I({ className: o, ...e }) {
21
+ return /* @__PURE__ */ t(r.Viewport, { className: n(s.viewport, o), ...e });
22
+ }
23
+ function V({ className: o, ...e }) {
24
+ return /* @__PURE__ */ t(r.Content, { className: n(s.content, o), ...e });
25
+ }
26
+ function C({ className: o, ...e }) {
27
+ return /* @__PURE__ */ t(r.Item, { className: n(s.item, o), ...e });
28
+ }
29
+ function P({
30
+ className: o,
31
+ children: e,
32
+ render: c,
33
+ direction: l = "end",
34
+ variant: i = "secondary",
35
+ size: a = "sm",
36
+ "aria-label": m,
37
+ ...u
38
+ }) {
39
+ return /* @__PURE__ */ t(
40
+ r.Button,
41
+ {
42
+ direction: l,
43
+ "aria-label": m ?? (l === "end" ? "Scroll to end" : "Scroll to start"),
44
+ className: n(s.button, o),
45
+ render: c ?? /* @__PURE__ */ t(
46
+ S,
47
+ {
48
+ variant: i,
49
+ size: a,
50
+ icon: /* @__PURE__ */ t(_, {})
51
+ }
52
+ ),
53
+ ...u,
54
+ children: e ?? ""
55
+ }
56
+ );
57
+ }
58
+ export {
59
+ B as MessageScroller,
60
+ P as MessageScrollerButton,
61
+ V as MessageScrollerContent,
62
+ C as MessageScrollerItem,
63
+ y as MessageScrollerProvider,
64
+ I as MessageScrollerViewport,
65
+ A as useMessageScroller,
66
+ D as useMessageScrollerScrollable,
67
+ R as useMessageScrollerVisibility
68
+ };
69
+ //# sourceMappingURL=message-scroller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-scroller.js","sources":["../src/components/message-scroller/message-scroller.tsx"],"sourcesContent":["import { MessageScroller as MessageScrollerPrimitive } from '@shadcn/react/message-scroller';\nimport { cx } from 'class-variance-authority';\nimport { ArrowDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button';\nimport styles from './message-scroller.module.css';\n\n/*\n * Behavior (auto-follow tracking, scroll-anchor bookkeeping, imperative\n * scrollToEnd/scrollToStart/scrollToMessage) comes entirely from\n * `@shadcn/react/message-scroller` — a headless, zero-runtime-dep engine,\n * not Base UI, since Base UI ships no chat-scroller primitive. This\n * file only supplies CSS Modules styling and composes the kit `Button` for\n * the jump-to-end/start affordance, matching upstream's own composition\n * (apps/v4/registry/bases/base/ui/message-scroller.tsx).\n *\n * Every part below is a bare styling pass-through — none of them call a\n * hook in their own render body (the stateful work lives inside the\n * imported primitives) — so, per this kit's SERVER_COMPONENTS/\n * CLIENT_COMPONENTS split (scripts/verify-consumer.sh), this file needs no\n * 'use client' directive.\n */\n\nexport type MessageScrollerProviderProps = ComponentProps<\n typeof MessageScrollerPrimitive.Provider\n>;\n\n/**\n * Holds the scroller's auto-follow state (anchor tracking, autoScroll\n * config) via context — renders no DOM of its own. Wrap the whole chat\n * surface (`MessageScroller` and anything reading `useMessageScroller*`)\n * in exactly one `MessageScrollerProvider`.\n */\nexport function MessageScrollerProvider(props: MessageScrollerProviderProps) {\n return <MessageScrollerPrimitive.Provider {...props} />;\n}\n\nexport interface MessageScrollerProps\n extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Root>, 'className'> {\n className?: string;\n}\n\n/**\n * The scroller's outer frame — a relatively-positioned flex column that\n * clips overflow, so `MessageScrollerButton` (absolutely positioned) has\n * something to anchor against. Give it a bounded height (flex child,\n * fixed height, etc.); `MessageScrollerViewport` fills whatever height\n * this resolves to.\n */\nexport function MessageScroller({ className, ...props }: MessageScrollerProps) {\n return <MessageScrollerPrimitive.Root className={cx(styles.root, className)} {...props} />;\n}\n\nexport interface MessageScrollerViewportProps\n extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Viewport>, 'className'> {\n className?: string;\n}\n\n/**\n * The scrolling element. Reads/writes native scroll position; the\n * primitive attaches the scroll listener that drives auto-follow and the\n * jump-button's visibility from here.\n */\nexport function MessageScrollerViewport({ className, ...props }: MessageScrollerViewportProps) {\n return (\n <MessageScrollerPrimitive.Viewport className={cx(styles.viewport, className)} {...props} />\n );\n}\n\nexport interface MessageScrollerContentProps\n extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Content>, 'className'> {\n className?: string;\n}\n\n/** The message list itself — a flex column sized to its content's max height. */\nexport function MessageScrollerContent({ className, ...props }: MessageScrollerContentProps) {\n return (\n <MessageScrollerPrimitive.Content className={cx(styles.content, className)} {...props} />\n );\n}\n\nexport interface MessageScrollerItemProps\n extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Item>, 'className'> {\n className?: string;\n}\n\n/**\n * One message. `messageId` is what `scrollToMessage` targets;\n * `scrollAnchor` marks the item the auto-follow/anchor bookkeeping should\n * treat as the current read position (typically the newest message).\n * `content-visibility: auto` (see the CSS) keeps a long transcript cheap to\n * render off-screen — jsdom does not implement it, so this optimization is\n * untestable there (see message-scroller.test.tsx).\n */\nexport function MessageScrollerItem({ className, ...props }: MessageScrollerItemProps) {\n return <MessageScrollerPrimitive.Item className={cx(styles.item, className)} {...props} />;\n}\n\nexport interface MessageScrollerButtonProps\n extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Button>, 'className'>,\n Pick<ButtonProps, 'variant' | 'size'> {\n className?: string;\n}\n\n/**\n * Floating jump-to-end/jump-to-start affordance. Renders as a kit `Button`\n * via the `render` prop (default `secondary`/`sm`, overridable by\n * `variant`/`size`, or replace `render` entirely) — same composition\n * idiom as `AlertDialogCancel`. The primitive supplies `data-active`\n * (visible/hidden), `inert`, and `tabindex` on its own; this file only\n * styles the crossfade those states drive.\n *\n * Deliberately icon-only by default (no visible label) so the kit\n * `Button`'s own icon-only square sizing kicks in — pass `aria-label` to\n * override the default accessible name, or pass `children` for a labeled\n * button instead. The primitive itself falls back to a visible \"Scroll to\n * end\"/\"Scroll to start\" text node whenever `children` is nullish (not\n * merely omitted — an explicit `''` is honored as real content), so `''`\n * is passed by default to suppress that fallback: `Button`'s own\n * `hasLabel` derivation already treats an empty string as \"no label\" (see\n * button.tsx), producing the icon-only square. Upstream instead renders a\n * permanent visually-hidden `sr-only` label span, which would defeat the\n * icon-only auto-sizing here — `aria-label` is the kit's own convention\n * for a bare icon button (see button.md) and needs no extra DOM node.\n */\nexport function MessageScrollerButton({\n className,\n children,\n render,\n direction = 'end',\n variant = 'secondary',\n size = 'sm',\n 'aria-label': ariaLabel,\n ...props\n}: MessageScrollerButtonProps) {\n return (\n <MessageScrollerPrimitive.Button\n direction={direction}\n aria-label={ariaLabel ?? (direction === 'end' ? 'Scroll to end' : 'Scroll to start')}\n className={cx(styles.button, className)}\n render={render ?? <Button variant={variant} size={size} /* Rotated 180deg via CSS for the `start` direction. */\n icon={<ArrowDownIcon />} />}\n {...props}\n >\n {children ?? ''}\n </MessageScrollerPrimitive.Button>\n );\n}\n\nexport {\n useMessageScroller,\n useMessageScrollerScrollable,\n useMessageScrollerVisibility,\n} from '@shadcn/react/message-scroller';\n"],"names":["MessageScrollerProvider","props","jsx","MessageScrollerPrimitive","MessageScroller","className","cx","styles","MessageScrollerViewport","MessageScrollerContent","MessageScrollerItem","MessageScrollerButton","children","render","direction","variant","size","ariaLabel","Button","ArrowDownIcon"],"mappings":";;;;;;;;;;;;;AAkCO,SAASA,EAAwBC,GAAqC;AAC3E,SAAO,gBAAAC,EAACC,EAAyB,UAAzB,EAAmC,GAAGF,EAAA,CAAO;AACvD;AAcO,SAASG,EAAgB,EAAE,WAAAC,GAAW,GAAGJ,KAA+B;AAC7E,SAAO,gBAAAC,EAACC,EAAyB,MAAzB,EAA8B,WAAWG,EAAGC,EAAO,MAAMF,CAAS,GAAI,GAAGJ,EAAA,CAAO;AAC1F;AAYO,SAASO,EAAwB,EAAE,WAAAH,GAAW,GAAGJ,KAAuC;AAC7F,SACE,gBAAAC,EAACC,EAAyB,UAAzB,EAAkC,WAAWG,EAAGC,EAAO,UAAUF,CAAS,GAAI,GAAGJ,EAAA,CAAO;AAE7F;AAQO,SAASQ,EAAuB,EAAE,WAAAJ,GAAW,GAAGJ,KAAsC;AAC3F,SACE,gBAAAC,EAACC,EAAyB,SAAzB,EAAiC,WAAWG,EAAGC,EAAO,SAASF,CAAS,GAAI,GAAGJ,EAAA,CAAO;AAE3F;AAeO,SAASS,EAAoB,EAAE,WAAAL,GAAW,GAAGJ,KAAmC;AACrF,SAAO,gBAAAC,EAACC,EAAyB,MAAzB,EAA8B,WAAWG,EAAGC,EAAO,MAAMF,CAAS,GAAI,GAAGJ,EAAA,CAAO;AAC1F;AA6BO,SAASU,EAAsB;AAAA,EACpC,WAAAN;AAAA,EACA,UAAAO;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,cAAcC;AAAA,EACd,GAAGhB;AACL,GAA+B;AAC7B,SACE,gBAAAC;AAAA,IAACC,EAAyB;AAAA,IAAzB;AAAA,MACC,WAAAW;AAAA,MACA,cAAYG,MAAcH,MAAc,QAAQ,kBAAkB;AAAA,MAClE,WAAWR,EAAGC,EAAO,QAAQF,CAAS;AAAA,MACtC,QAAQQ,KAAU,gBAAAX;AAAA,QAACgB;AAAA,QAAA;AAAA,UAAO,SAAAH;AAAA,UAAkB,MAAAC;AAAA,UAC5C,wBAAOG,GAAA,CAAA,CAAc;AAAA,QAAA;AAAA,MAAA;AAAA,MACpB,GAAGlB;AAAA,MAEH,UAAAW,KAAY;AAAA,IAAA;AAAA,EAAA;AAGnB;"}
@@ -0,0 +1 @@
1
+ export * from './components/message/public.js'
@@ -0,0 +1,37 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { cx as t } from "class-variance-authority";
3
+ import './chunks/message.BhD5JDJK.css';const n = "_messageGroup_se4xh_11", m = "_message_se4xh_11", g = "_messageAvatar_se4xh_38", c = "_messageFooter_se4xh_60", _ = "_messageContent_se4xh_64", u = "_messageHeader_se4xh_84", o = {
4
+ messageGroup: n,
5
+ message: m,
6
+ messageAvatar: g,
7
+ messageFooter: c,
8
+ messageContent: _,
9
+ messageHeader: u
10
+ };
11
+ function v({ className: e, ...s }) {
12
+ return /* @__PURE__ */ a("div", { className: t(o.messageGroup, e), ...s });
13
+ }
14
+ function x({ className: e, align: s = "start", ...r }) {
15
+ return /* @__PURE__ */ a("div", { "data-align": s, className: t(o.message, e), ...r });
16
+ }
17
+ function f({ className: e, ...s }) {
18
+ return /* @__PURE__ */ a("div", { className: t(o.messageAvatar, e), ...s });
19
+ }
20
+ function l({ className: e, ...s }) {
21
+ return /* @__PURE__ */ a("div", { className: t(o.messageContent, e), ...s });
22
+ }
23
+ function p({ className: e, ...s }) {
24
+ return /* @__PURE__ */ a("div", { className: t(o.messageHeader, e), ...s });
25
+ }
26
+ function h({ className: e, ...s }) {
27
+ return /* @__PURE__ */ a("div", { className: t(o.messageFooter, e), ...s });
28
+ }
29
+ export {
30
+ x as Message,
31
+ f as MessageAvatar,
32
+ l as MessageContent,
33
+ h as MessageFooter,
34
+ v as MessageGroup,
35
+ p as MessageHeader
36
+ };
37
+ //# sourceMappingURL=message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.js","sources":["../src/components/message/message.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './message.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Message\n * (registry/bases/base/ui/message.tsx): a six-part, primitive-free layout —\n * Message has no Base UI primitive, it is plain `<div>`s wired together\n * through a `data-align` state attribute rather than props threaded to\n * every part. Message owns the ROW layout (avatar, alignment, header,\n * footer) around a message; the visible surface goes inside it via Bubble\n * (see bubble.tsx) — Message never renders one itself.\n *\n * No CVA variant axis: `align` is layout-only (flip the row direction,\n * shift descendant alignment) with no separate color/geometry per value,\n * so it travels as a plain `data-align` attribute the CSS reacts to — the\n * same idiom as Button's `data-icon-only`/`data-loading` — rather than a\n * `cva` variant, which would buy nothing over the attribute selector here.\n */\n\nexport type MessageGroupProps = ComponentProps<'div'>;\n\n/** Stacks consecutive `Message`s from the same sender. Purely a layout\n * wrapper — see message.md's \"Group\" section for the accompanying pattern\n * (an empty `MessageAvatar` on every message but the last). */\nexport function MessageGroup({ className, ...props }: MessageGroupProps) {\n return <div className={cx(styles.messageGroup, className)} {...props} />;\n}\n\nexport interface MessageProps extends ComponentProps<'div'> {\n /**\n * Which side of the conversation this row belongs to. Reverses the row\n * (avatar/content order) and, via `data-align`, shifts `MessageContent`'s\n * children and `MessageFooter`'s own content to the same edge.\n * @default 'start'\n */\n align?: 'start' | 'end';\n}\n\n/** The message row wrapper — avatar, alignment, header, and footer. Render\n * the visible surface inside `MessageContent` via `Bubble`. */\nexport function Message({ className, align = 'start', ...props }: MessageProps) {\n return <div data-align={align} className={cx(styles.message, className)} {...props} />;\n}\n\nexport type MessageAvatarProps = ComponentProps<'div'>;\n\n/** The avatar slot, anchored to the bottom of the message. When the message\n * has a `MessageFooter`, the avatar shifts up to stay aligned with the\n * message surface instead of the footer below it. */\nexport function MessageAvatar({ className, ...props }: MessageAvatarProps) {\n return <div className={cx(styles.messageAvatar, className)} {...props} />;\n}\n\nexport type MessageContentProps = ComponentProps<'div'>;\n\n/** Wraps the header, message surface, and footer. */\nexport function MessageContent({ className, ...props }: MessageContentProps) {\n return <div className={cx(styles.messageContent, className)} {...props} />;\n}\n\nexport type MessageHeaderProps = ComponentProps<'div'>;\n\n/** Content above the message, such as a sender name. Stays aligned to the\n * start regardless of `align`. */\nexport function MessageHeader({ className, ...props }: MessageHeaderProps) {\n return <div className={cx(styles.messageHeader, className)} {...props} />;\n}\n\nexport type MessageFooterProps = ComponentProps<'div'>;\n\n/** Content below the message, such as status or actions. Aligns to the\n * message side. */\nexport function MessageFooter({ className, ...props }: MessageFooterProps) {\n return <div className={cx(styles.messageFooter, className)} {...props} />;\n}\n"],"names":["MessageGroup","className","props","jsx","cx","styles","Message","align","MessageAvatar","MessageContent","MessageHeader","MessageFooter"],"mappings":";;;;;;;;;;AA0BO,SAASA,EAAa,EAAE,WAAAC,GAAW,GAAGC,KAA4B;AACvE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,cAAcJ,CAAS,GAAI,GAAGC,GAAO;AACxE;AAcO,SAASI,EAAQ,EAAE,WAAAL,GAAW,OAAAM,IAAQ,SAAS,GAAGL,KAAuB;AAC9E,SAAO,gBAAAC,EAAC,OAAA,EAAI,cAAYI,GAAO,WAAWH,EAAGC,EAAO,SAASJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AACtF;AAOO,SAASM,EAAc,EAAE,WAAAP,GAAW,GAAGC,KAA6B;AACzE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,eAAeJ,CAAS,GAAI,GAAGC,GAAO;AACzE;AAKO,SAASO,EAAe,EAAE,WAAAR,GAAW,GAAGC,KAA8B;AAC3E,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,gBAAgBJ,CAAS,GAAI,GAAGC,GAAO;AAC1E;AAMO,SAASQ,EAAc,EAAE,WAAAT,GAAW,GAAGC,KAA6B;AACzE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,eAAeJ,CAAS,GAAI,GAAGC,GAAO;AACzE;AAMO,SAASS,EAAc,EAAE,WAAAV,GAAW,GAAGC,KAA6B;AACzE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,eAAeJ,CAAS,GAAI,GAAGC,GAAO;AACzE;"}
@@ -0,0 +1 @@
1
+ export * from './components/native-select/public.js'
@@ -0,0 +1,42 @@
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { cx as n } from "class-variance-authority";
3
+ import { ChevronDownIcon as p } from "lucide-react";
4
+ import './chunks/native-select.BdYLTCZv.css';const a = "_wrapper_1vuz1_12", l = "_select_1vuz1_45", m = "_sizeSm_1vuz1_102", _ = "_option_1vuz1_119", u = "_icon_1vuz1_124", e = {
5
+ wrapper: a,
6
+ select: l,
7
+ sizeSm: m,
8
+ option: _,
9
+ icon: u
10
+ };
11
+ function f({ className: o, size: t = "default", disabled: c, ...i }) {
12
+ return /* @__PURE__ */ r(
13
+ "div",
14
+ {
15
+ className: n(e.wrapper, t === "sm" && e.sizeSm, o),
16
+ "data-disabled": c || void 0,
17
+ children: [
18
+ /* @__PURE__ */ s(
19
+ "select",
20
+ {
21
+ className: e.select,
22
+ disabled: c,
23
+ ...i
24
+ }
25
+ ),
26
+ /* @__PURE__ */ s(p, { className: e.icon })
27
+ ]
28
+ }
29
+ );
30
+ }
31
+ function S({ className: o, ...t }) {
32
+ return /* @__PURE__ */ s("option", { className: n(e.option, o), ...t });
33
+ }
34
+ function d({ className: o, ...t }) {
35
+ return /* @__PURE__ */ s("optgroup", { className: n(e.option, o), ...t });
36
+ }
37
+ export {
38
+ f as NativeSelect,
39
+ d as NativeSelectOptGroup,
40
+ S as NativeSelectOption
41
+ };
42
+ //# sourceMappingURL=native-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-select.js","sources":["../src/components/native-select/native-select.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './native-select.module.css';\n\n/*\n * NativeSelect wraps a real <select> — the source-of-truth control\n * (Base UI ships no NativeSelect primitive; this is the same \"pure styling\n * translation over native markup\" shape as table.tsx, not a Base UI\n * wrapper). The wrapper div exists only because a <select> is a replaced\n * element with no ::before/::after to draw a chevron into — same reasoning\n * as Input's icon/end slots (input.tsx), forced here unconditionally since\n * a select without its dropdown indicator reads as broken, not as a valid\n * \"no slot\" state the way an unslotted Input does.\n */\nexport interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {\n className?: string;\n /** Matches the kit's two-step control scale used elsewhere for compact\n * chrome (Table's `density`, Select's `size`) — `lg` is not offered here,\n * mirroring upstream's own sm/default axis. */\n size?: 'sm' | 'default';\n}\n\nexport function NativeSelect({ className, size = 'default', disabled, ...props }: NativeSelectProps) {\n return (\n <div\n className={cx(styles.wrapper, size === 'sm' && styles.sizeSm, className)}\n data-disabled={disabled || undefined}\n >\n <select\n className={styles.select}\n disabled={disabled}\n {...props}\n />\n <ChevronDownIcon className={styles.icon} />\n </div>\n );\n}\n\nexport type NativeSelectOptionProps = ComponentProps<'option'>;\n\nexport function NativeSelectOption({ className, ...props }: NativeSelectOptionProps) {\n return <option className={cx(styles.option, className)} {...props} />;\n}\n\nexport type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;\n\nexport function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps) {\n return <optgroup className={cx(styles.option, className)} {...props} />;\n}\n"],"names":["NativeSelect","className","size","disabled","props","jsxs","cx","styles","jsx","ChevronDownIcon","NativeSelectOption","NativeSelectOptGroup"],"mappings":";;;;;;;;;;AAwBO,SAASA,EAAa,EAAE,WAAAC,GAAW,MAAAC,IAAO,WAAW,UAAAC,GAAU,GAAGC,KAA4B;AACnG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,SAASL,MAAS,QAAQK,EAAO,QAAQN,CAAS;AAAA,MACvE,iBAAeE,KAAY;AAAA,MAE3B,UAAA;AAAA,QAAA,gBAAAK;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,EAAO;AAAA,YAClB,UAAAJ;AAAA,YACC,GAAGC;AAAA,UAAA;AAAA,QAAA;AAAA,QAEN,gBAAAI,EAACC,GAAA,EAAgB,WAAWF,EAAO,KAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/C;AAIO,SAASG,EAAmB,EAAE,WAAAT,GAAW,GAAGG,KAAkC;AACnF,SAAO,gBAAAI,EAAC,YAAO,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACrE;AAIO,SAASO,EAAqB,EAAE,WAAAV,GAAW,GAAGG,KAAoC;AACvF,SAAO,gBAAAI,EAAC,cAAS,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACvE;"}
@@ -0,0 +1 @@
1
+ export * from './components/navigation-menu/public.js'