@gears-frontx/ui-kit 0.3.0-alpha.2 → 0.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +37 -0
  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 +33 -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 +174 -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 -129
  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 +55 -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 -18
  479. package/package.json +16 -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
package/dist/badge.js CHANGED
@@ -1,62 +1,49 @@
1
- import { jsxs as d, Fragment as v, jsx as p } from "react/jsx-runtime";
2
- import { mergeProps as g } from "@base-ui/react/merge-props";
3
- import { useRender as m } from "@base-ui/react/use-render";
4
- import { cva as u } from "class-variance-authority";
5
- import { Children as h } from "react";
6
- import './chunks/badge.BcdxDzJ7.css';const b = "_badge_rbq84_9", f = "_icon_rbq84_110", q = "_variantSuccess_rbq84_131", P = "_variantWarning_rbq84_136", I = "_variantInfo_rbq84_141", D = "_variantDanger_rbq84_146", M = "_variantMuted_rbq84_18", S = "_shapePill_rbq84_167", W = "_shapePlain_rbq84_172", a = {
7
- badge: b,
8
- icon: f,
9
- variantSuccess: q,
10
- variantWarning: P,
11
- variantInfo: I,
12
- variantDanger: D,
13
- variantMuted: M,
14
- shapePill: S,
15
- shapePlain: W
16
- }, x = u(a.badge, {
1
+ "use client";
2
+ import { mergeProps as e } from "@base-ui/react/merge-props";
3
+ import { useRender as v } from "@base-ui/react/use-render";
4
+ import { cva as c } from "class-variance-authority";
5
+ import './chunks/badge.DR0epAiZ.css';const s = "_badge_1lie6_35", o = "_variantDefault_1lie6_97", _ = "_variantSecondary_1lie6_13", l = "_variantDestructive_1lie6_115", u = "_variantOutline_1lie6_135", g = "_variantGhost_1lie6_145", d = "_variantLink_1lie6_154", f = "_variantSuccess_1lie6_186", D = "_variantWarning_1lie6_195", m = "_variantDanger_1lie6_204", p = "_variantInfo_1lie6_213", S = "_variantAccent_1lie6_222", a = {
6
+ badge: s,
7
+ variantDefault: o,
8
+ variantSecondary: _,
9
+ variantDestructive: l,
10
+ variantOutline: u,
11
+ variantGhost: g,
12
+ variantLink: d,
13
+ variantSuccess: f,
14
+ variantWarning: D,
15
+ variantDanger: m,
16
+ variantInfo: p,
17
+ variantAccent: S
18
+ }, y = c(a.badge, {
17
19
  variants: {
18
20
  variant: {
21
+ default: a.variantDefault,
22
+ secondary: a.variantSecondary,
23
+ destructive: a.variantDestructive,
24
+ outline: a.variantOutline,
25
+ ghost: a.variantGhost,
26
+ link: a.variantLink,
19
27
  success: a.variantSuccess,
20
28
  warning: a.variantWarning,
21
- info: a.variantInfo,
22
29
  danger: a.variantDanger,
23
- muted: a.variantMuted
24
- },
25
- shape: {
26
- pill: a.shapePill,
27
- plain: a.shapePlain
30
+ info: a.variantInfo,
31
+ accent: a.variantAccent
28
32
  }
29
33
  },
30
34
  defaultVariants: {
31
- variant: "muted",
32
- shape: "pill"
35
+ variant: "default"
33
36
  }
34
37
  });
35
- function A({ className: t, variant: i, shape: e, dot: s, icon: n, render: o, children: c, ..._ }) {
36
- const r = h.toArray(n).some((l) => l !== "");
37
- return m({
38
+ function A({ className: n, variant: t, render: i, ...r }) {
39
+ return v({
38
40
  defaultTagName: "span",
39
- render: o,
40
- /*
41
- * The derived attribute and the composed children are layered on top of
42
- * the merged props, NOT passed through mergeProps: they must win over a
43
- * caller's own `data-dot` (same shadow-proofing as Button's
44
- * `data-loading`), and mergeProps types its arguments as the closed DOM
45
- * attribute set, which rejects a `data-*` key in an object literal.
46
- * `useRender`'s own `props` takes `Record<string, unknown>`, so the
47
- * spread below type-checks while keeping the ordering that matters.
48
- */
49
- props: {
50
- ...g({ className: x({ variant: i, shape: e, className: t }) }, _),
51
- "data-dot": s && !r || void 0,
52
- children: /* @__PURE__ */ d(v, { children: [
53
- r && /* @__PURE__ */ p("span", { className: a.icon, "aria-hidden": "true", children: n }),
54
- c
55
- ] })
56
- }
41
+ render: i,
42
+ props: e({ className: y({ variant: t, className: n }) }, r)
57
43
  });
58
44
  }
59
45
  export {
60
- A as Badge
46
+ A as Badge,
47
+ y as badgeVariants
61
48
  };
62
49
  //# sourceMappingURL=badge.js.map
package/dist/badge.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../src/components/badge/badge.tsx"],"sourcesContent":["import { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Children, type ReactNode } from 'react';\n\nimport styles from './badge.module.css';\n\n/*\n * Badge has no Base UI primitive component, but it still gets `render`-prop\n * polymorphism — from `useRender`/`mergeProps`, the same utilities Base UI's\n * primitives are built on. A status badge is usually static, but rendered as\n * a link via `render` it stays focusable and gets the focus ring below.\n *\n * The variant model follows the F-mockups' Badge/Status (\"pill or dot;\n * semantic intent only\"), which retires the shadcn-inherited\n * default/secondary/destructive/outline/ghost/link list: a badge states\n * *what kind* of thing it marks, not how to paint it. That semantic-only\n * rule is real, but it lives in badge.md and in the VALUE names — the prop\n * itself keeps the kit-wide `variant` name rather than an axis name of its\n * own, so every component in the kit is driven the same way.\n *\n * `shape`, not `size`: the two values are pill vs. plain (bare text, no\n * fill), and Badge has no size axis at all (the pill is a fixed 24px).\n * Not `form` either — that is a real HTML attribute, so a styling prop by\n * that name would shadow it for anyone rendering a form-associated element\n * via `render`. The status dot and the icon slot are opt-in props, not\n * shape values — both shapes can carry either.\n */\nconst badgeVariants = cva(styles.badge, {\n variants: {\n variant: {\n success: styles.variantSuccess,\n warning: styles.variantWarning,\n info: styles.variantInfo,\n danger: styles.variantDanger,\n muted: styles.variantMuted,\n },\n shape: {\n pill: styles.shapePill,\n plain: styles.shapePlain,\n },\n },\n defaultVariants: {\n variant: 'muted',\n shape: 'pill',\n },\n});\n\nexport interface BadgeProps\n extends useRender.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {\n /**\n * Show the status dot, painted in the variant's accent color. Off by\n * default; ignored when `icon` is present — the icon takes its place.\n */\n dot?: boolean;\n /**\n * Leading icon slot — decorative (`aria-hidden`), fixed 12px, painted in\n * the variant's accent color like the dot it replaces. Wins over `dot`\n * when both are set.\n */\n icon?: ReactNode;\n}\n\nexport function Badge({ className, variant, shape, dot, icon, render, children, ...props }: BadgeProps) {\n // `icon != null` is true for `icon={false}` — a valid ReactNode that\n // renders nothing — which is exactly what `icon={cond && <Icon/>}` passes\n // when `cond` is false. Same predicate as Button's `hasLabel`, applied to\n // a slot instead of children: it answers \"is this renderable\" rather than\n // \"is this set\".\n const hasIcon = Children.toArray(icon).some((child) => child !== '');\n return useRender({\n defaultTagName: 'span',\n render,\n /*\n * The derived attribute and the composed children are layered on top of\n * the merged props, NOT passed through mergeProps: they must win over a\n * caller's own `data-dot` (same shadow-proofing as Button's\n * `data-loading`), and mergeProps types its arguments as the closed DOM\n * attribute set, which rejects a `data-*` key in an object literal.\n * `useRender`'s own `props` takes `Record<string, unknown>`, so the\n * spread below type-checks while keeping the ordering that matters.\n */\n props: {\n ...mergeProps<'span'>({ className: badgeVariants({ variant, shape, className }) }, props),\n 'data-dot': (dot && !hasIcon) || undefined,\n children: (\n <>\n {hasIcon && (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {children}\n </>\n ),\n },\n });\n}\n"],"names":["badgeVariants","cva","styles","Badge","className","variant","shape","dot","icon","render","children","props","hasIcon","Children","child","useRender","mergeProps","jsxs","Fragment"],"mappings":";;;;;;;;;;;;;;;GA4BMA,IAAgBC,EAAIC,EAAO,OAAO;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,QAAQA,EAAO;AAAA,MACf,OAAOA,EAAO;AAAA,IAAA;AAAA,IAEhB,OAAO;AAAA,MACL,MAAMA,EAAO;AAAA,MACb,OAAOA,EAAO;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEX,CAAC;AAiBM,SAASC,EAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,OAAAC,GAAO,KAAAC,GAAK,MAAAC,GAAM,QAAAC,GAAQ,UAAAC,GAAU,GAAGC,KAAqB;AAMtG,QAAMC,IAAUC,EAAS,QAAQL,CAAI,EAAE,KAAK,CAACM,MAAUA,MAAU,EAAE;AACnE,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUA,OAAO;AAAA,MACL,GAAGO,EAAmB,EAAE,WAAWhB,EAAc,EAAE,SAAAK,GAAS,OAAAC,GAAO,WAAAF,EAAA,CAAW,EAAA,GAAKO,CAAK;AAAA,MACxF,YAAaJ,KAAO,CAACK,KAAY;AAAA,MACjC,UACE,gBAAAK,EAAAC,GAAA,EACG,UAAA;AAAA,QAAAN,uBACE,QAAA,EAAK,WAAWV,EAAO,MAAM,eAAY,QACvC,UAAAM,EAAA,CACH;AAAA,QAEDE;AAAA,MAAA,EAAA,CACH;AAAA,IAAA;AAAA,EAEJ,CACD;AACH;"}
1
+ {"version":3,"file":"badge.js","sources":["../src/components/badge/badge.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport styles from './badge.module.css';\n\n/*\n * A port of shadcn/ui's base Badge (registry/bases/base/ui/badge.tsx),\n * carrying upstream's paint variants (default/secondary/destructive/\n * outline/ghost/link — same six values as Button, see button.tsx)\n * unchanged, plus the tone values the Studio mockup's Badge row draws\n * (success/warning/danger/info/accent — see badge.module.css for how each\n * maps onto a theme.css status pair, and why the mockup's sixth specimen,\n * Neutral, is `secondary` rather than a name of its own).\n *\n * Both sets sit on the one `variant` axis because Badge is paint-only:\n * upstream already mixes filled (default/secondary/destructive) with\n * unfilled (outline/ghost/link) values there, so the axis names a LOOK,\n * not an emphasis ladder, and a tone is one more look. Appending to it\n * keeps every upstream value's name and meaning intact — porting shadcn\n * markup here still renders what it renders upstream.\n *\n * Still deliberately absent: the dot/icon slots. The mockup's specimens\n * carry a 6px status dot, but that is anatomy, not paint, and this port\n * only carries what shadcn's own Badge carries — no bespoke additions.\n *\n * Badge has no Base UI primitive, but still gets `render`-prop\n * polymorphism from `useRender`/`mergeProps` — the same utilities Base\n * UI's own primitives are built on — for the one case that needs it:\n * rendering as a link.\n */\nconst badgeVariants = cva(styles.badge, {\n variants: {\n variant: {\n default: styles.variantDefault,\n secondary: styles.variantSecondary,\n destructive: styles.variantDestructive,\n outline: styles.variantOutline,\n ghost: styles.variantGhost,\n link: styles.variantLink,\n success: styles.variantSuccess,\n warning: styles.variantWarning,\n danger: styles.variantDanger,\n info: styles.variantInfo,\n accent: styles.variantAccent,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface BadgeProps\n extends useRender.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {}\n\nexport function Badge({ className, variant, render, ...props }: BadgeProps) {\n return useRender({\n defaultTagName: 'span',\n render,\n props: mergeProps<'span'>({ className: badgeVariants({ variant, className }) }, props),\n });\n}\n\nexport { badgeVariants };\n"],"names":["badgeVariants","cva","styles","Badge","className","variant","render","props","useRender","mergeProps"],"mappings":";;;;;;;;;;;;;;;;;GAiCMA,IAAgBC,EAAIC,EAAO,OAAO;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,aAAaA,EAAO;AAAA,MACpB,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,MACb,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,QAAQA,EAAO;AAAA,MACf,MAAMA,EAAO;AAAA,MACb,QAAQA,EAAO;AAAA,IAAA;AAAA,EACjB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAKM,SAASC,EAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,QAAAC,GAAQ,GAAGC,KAAqB;AAC1E,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA,IACA,OAAOG,EAAmB,EAAE,WAAWT,EAAc,EAAE,SAAAK,GAAS,WAAAD,GAAW,EAAA,GAAKG,CAAK;AAAA,EAAA,CACtF;AACH;"}
@@ -0,0 +1 @@
1
+ export * from './components/breadcrumb/public.js'
@@ -0,0 +1,81 @@
1
+ "use client";
2
+ import { jsx as a, jsxs as i } from "react/jsx-runtime";
3
+ import { mergeProps as l } from "@base-ui/react/merge-props";
4
+ import { useRender as o } from "@base-ui/react/use-render";
5
+ import { cx as n } from "class-variance-authority";
6
+ import { MoreHorizontalIcon as c, ChevronRightIcon as m } from "lucide-react";
7
+ import './chunks/breadcrumb.QKz32ceR.css';const u = "_breadcrumb_w2g4r_13", p = "_list_w2g4r_21", _ = "_item_w2g4r_32", d = "_link_w2g4r_38", b = "_page_w2g4r_58", g = "_separator_w2g4r_63", f = "_ellipsis_w2g4r_73", N = "_srOnly_w2g4r_96", s = {
8
+ breadcrumb: u,
9
+ list: p,
10
+ item: _,
11
+ link: d,
12
+ page: b,
13
+ separator: g,
14
+ ellipsis: f,
15
+ srOnly: N
16
+ };
17
+ function x({ className: r, ...e }) {
18
+ return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", className: n(s.breadcrumb, r), ...e });
19
+ }
20
+ function O({ className: r, ...e }) {
21
+ return /* @__PURE__ */ a("ol", { className: n(s.list, r), ...e });
22
+ }
23
+ function I({ className: r, ...e }) {
24
+ return /* @__PURE__ */ a("li", { className: n(s.item, r), ...e });
25
+ }
26
+ function j({ className: r, render: e, ...t }) {
27
+ return o({
28
+ defaultTagName: "a",
29
+ render: e,
30
+ props: l({ className: n(s.link, r) }, t)
31
+ });
32
+ }
33
+ function v({ className: r, ...e }) {
34
+ return /* @__PURE__ */ a(
35
+ "span",
36
+ {
37
+ role: "link",
38
+ "aria-disabled": "true",
39
+ "aria-current": "page",
40
+ className: n(s.page, r),
41
+ ...e
42
+ }
43
+ );
44
+ }
45
+ function L({ children: r, className: e, ...t }) {
46
+ return /* @__PURE__ */ a(
47
+ "li",
48
+ {
49
+ role: "presentation",
50
+ "aria-hidden": "true",
51
+ className: n(s.separator, e),
52
+ ...t,
53
+ children: r ?? /* @__PURE__ */ a(m, {})
54
+ }
55
+ );
56
+ }
57
+ function M({ className: r, ...e }) {
58
+ return /* @__PURE__ */ i(
59
+ "span",
60
+ {
61
+ role: "presentation",
62
+ "aria-hidden": "true",
63
+ className: n(s.ellipsis, r),
64
+ ...e,
65
+ children: [
66
+ /* @__PURE__ */ a(c, {}),
67
+ /* @__PURE__ */ a("span", { className: s.srOnly, children: "More" })
68
+ ]
69
+ }
70
+ );
71
+ }
72
+ export {
73
+ x as Breadcrumb,
74
+ M as BreadcrumbEllipsis,
75
+ I as BreadcrumbItem,
76
+ j as BreadcrumbLink,
77
+ O as BreadcrumbList,
78
+ v as BreadcrumbPage,
79
+ L as BreadcrumbSeparator
80
+ };
81
+ //# sourceMappingURL=breadcrumb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.js","sources":["../src/components/breadcrumb/breadcrumb.tsx"],"sourcesContent":["// Load-bearing: BreadcrumbLink calls useRender directly, so this can't be\n// dropped. Coupled to CLIENT_COMPONENTS in scripts/verify-consumer.sh — keep\n// both in sync if this ever changes.\n'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cx } from 'class-variance-authority';\nimport { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport styles from './breadcrumb.module.css';\n\nexport type BreadcrumbProps = ComponentProps<'nav'>;\n\nexport function Breadcrumb({ className, ...props }: BreadcrumbProps) {\n return <nav aria-label=\"breadcrumb\" className={cx(styles.breadcrumb, className)} {...props} />;\n}\n\nexport type BreadcrumbListProps = ComponentProps<'ol'>;\n\nexport function BreadcrumbList({ className, ...props }: BreadcrumbListProps) {\n return <ol className={cx(styles.list, className)} {...props} />;\n}\n\nexport type BreadcrumbItemProps = ComponentProps<'li'>;\n\nexport function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps) {\n return <li className={cx(styles.item, className)} {...props} />;\n}\n\n/*\n * Render-prop polymorphism via useRender/mergeProps — the same utilities\n * Base UI's own primitives are built on, and the same shape Badge already\n * uses (badge.tsx) for its one case that needs `render`: a crumb that\n * navigates through the consumer app's own link component, not a raw <a>.\n */\nexport type BreadcrumbLinkProps = useRender.ComponentProps<'a'>;\n\nexport function BreadcrumbLink({ className, render, ...props }: BreadcrumbLinkProps) {\n return useRender({\n defaultTagName: 'a',\n render,\n props: mergeProps<'a'>({ className: cx(styles.link, className) }, props),\n });\n}\n\nexport type BreadcrumbPageProps = ComponentProps<'span'>;\n\n/*\n * The current crumb reads as a link-shaped label the user can't activate:\n * `role=\"link\"` + `aria-disabled=\"true\"` announces \"this looks like a link\n * but isn't clickable\", while `aria-current=\"page\"` is the actual\n * assistive-tech cue for \"you are here\" — matching upstream exactly (see\n * registry/bases/base/ui/breadcrumb.tsx).\n */\nexport function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps) {\n return (\n <span\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cx(styles.page, className)}\n {...props}\n />\n );\n}\n\nexport interface BreadcrumbSeparatorProps extends ComponentProps<'li'> {\n children?: ReactNode;\n}\n\nexport function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps) {\n return (\n <li\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cx(styles.separator, className)}\n {...props}\n >\n {children ?? <ChevronRightIcon />}\n </li>\n );\n}\n\nexport type BreadcrumbEllipsisProps = ComponentProps<'span'>;\n\nexport function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps) {\n return (\n <span\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cx(styles.ellipsis, className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className={styles.srOnly}>More</span>\n </span>\n );\n}\n"],"names":["Breadcrumb","className","props","jsx","cx","styles","BreadcrumbList","BreadcrumbItem","BreadcrumbLink","render","useRender","mergeProps","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRightIcon","BreadcrumbEllipsis","jsxs","MoreHorizontalIcon"],"mappings":";;;;;;;;;;;;;;;;AAeO,SAASA,EAAW,EAAE,WAAAC,GAAW,GAAGC,KAA0B;AACnE,SAAO,gBAAAC,EAAC,OAAA,EAAI,cAAW,cAAa,WAAWC,EAAGC,EAAO,YAAYJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAC9F;AAIO,SAASI,EAAe,EAAE,WAAAL,GAAW,GAAGC,KAA8B;AAC3E,SAAO,gBAAAC,EAAC,QAAG,WAAWC,EAAGC,EAAO,MAAMJ,CAAS,GAAI,GAAGC,GAAO;AAC/D;AAIO,SAASK,EAAe,EAAE,WAAAN,GAAW,GAAGC,KAA8B;AAC3E,SAAO,gBAAAC,EAAC,QAAG,WAAWC,EAAGC,EAAO,MAAMJ,CAAS,GAAI,GAAGC,GAAO;AAC/D;AAUO,SAASM,EAAe,EAAE,WAAAP,GAAW,QAAAQ,GAAQ,GAAGP,KAA8B;AACnF,SAAOQ,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAD;AAAA,IACA,OAAOE,EAAgB,EAAE,WAAWP,EAAGC,EAAO,MAAMJ,CAAS,EAAA,GAAKC,CAAK;AAAA,EAAA,CACxE;AACH;AAWO,SAASU,EAAe,EAAE,WAAAX,GAAW,GAAGC,KAA8B;AAC3E,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,iBAAc;AAAA,MACd,gBAAa;AAAA,MACb,WAAWC,EAAGC,EAAO,MAAMJ,CAAS;AAAA,MACnC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAMO,SAASW,EAAoB,EAAE,UAAAC,GAAU,WAAAb,GAAW,GAAGC,KAAmC;AAC/F,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAWC,EAAGC,EAAO,WAAWJ,CAAS;AAAA,MACxC,GAAGC;AAAA,MAEH,UAAAY,uBAAaC,GAAA,CAAA,CAAiB;AAAA,IAAA;AAAA,EAAA;AAGrC;AAIO,SAASC,EAAmB,EAAE,WAAAf,GAAW,GAAGC,KAAkC;AACnF,SACE,gBAAAe;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAWb,EAAGC,EAAO,UAAUJ,CAAS;AAAA,MACvC,GAAGC;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC,EAACe,GAAA,EAAmB;AAAA,QACpB,gBAAAf,EAAC,QAAA,EAAK,WAAWE,EAAO,QAAQ,UAAA,OAAA,CAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1C;"}
@@ -0,0 +1 @@
1
+ export * from './components/bubble/public.js'
package/dist/bubble.js ADDED
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import { mergeProps as b } from "@base-ui/react/merge-props";
4
+ import { useRender as u } from "@base-ui/react/use-render";
5
+ import { cx as o, cva as r } from "class-variance-authority";
6
+ import './chunks/bubble.BKcAopT7.css';const l = "_bubbleGroup_ma2s7_13", d = "_bubble_ma2s7_13", c = "_bubbleContent_ma2s7_38", _ = "_variantDefault_ma2s7_120", v = "_variantSecondary_ma2s7_132", m = "_variantMuted_ma2s7_145", f = "_variantTinted_ma2s7_164", p = "_variantOutline_ma2s7_176", g = "_variantGhost_ma2s7_202", G = "_variantDestructive_ma2s7_235", T = "_bubbleReactions_ma2s7_262", B = "_sideTop_ma2s7_289", D = "_sideBottom_ma2s7_294", S = "_alignStart_ma2s7_299", R = "_alignEnd_ma2s7_303", t = {
7
+ bubbleGroup: l,
8
+ bubble: d,
9
+ bubbleContent: c,
10
+ variantDefault: _,
11
+ variantSecondary: v,
12
+ variantMuted: m,
13
+ variantTinted: f,
14
+ variantOutline: p,
15
+ variantGhost: g,
16
+ variantDestructive: G,
17
+ bubbleReactions: T,
18
+ sideTop: B,
19
+ sideBottom: D,
20
+ alignStart: S,
21
+ alignEnd: R
22
+ }, y = r(t.bubble, {
23
+ variants: {
24
+ variant: {
25
+ default: t.variantDefault,
26
+ secondary: t.variantSecondary,
27
+ muted: t.variantMuted,
28
+ tinted: t.variantTinted,
29
+ outline: t.variantOutline,
30
+ ghost: t.variantGhost,
31
+ destructive: t.variantDestructive
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ variant: "default"
36
+ }
37
+ });
38
+ function O({ className: n, ...a }) {
39
+ return /* @__PURE__ */ s("div", { className: o(t.bubbleGroup, n), ...a });
40
+ }
41
+ function V({ className: n, variant: a = "default", align: e = "start", ...i }) {
42
+ return /* @__PURE__ */ s(
43
+ "div",
44
+ {
45
+ "data-variant": a,
46
+ "data-align": e,
47
+ className: y({ variant: a, className: n }),
48
+ ...i
49
+ }
50
+ );
51
+ }
52
+ function x({ className: n, render: a, ...e }) {
53
+ return u({
54
+ defaultTagName: "div",
55
+ render: a,
56
+ props: b({ className: o(t.bubbleContent, n) }, e)
57
+ });
58
+ }
59
+ const h = r(t.bubbleReactions, {
60
+ variants: {
61
+ side: {
62
+ top: t.sideTop,
63
+ bottom: t.sideBottom
64
+ },
65
+ align: {
66
+ start: t.alignStart,
67
+ end: t.alignEnd
68
+ }
69
+ },
70
+ defaultVariants: {
71
+ side: "bottom",
72
+ align: "end"
73
+ }
74
+ });
75
+ function j({ className: n, side: a = "bottom", align: e = "end", ...i }) {
76
+ return /* @__PURE__ */ s(
77
+ "div",
78
+ {
79
+ "data-side": a,
80
+ "data-align": e,
81
+ className: h({ side: a, align: e, className: n }),
82
+ ...i
83
+ }
84
+ );
85
+ }
86
+ export {
87
+ V as Bubble,
88
+ x as BubbleContent,
89
+ O as BubbleGroup,
90
+ j as BubbleReactions,
91
+ h as bubbleReactionsVariants,
92
+ y as bubbleVariants
93
+ };
94
+ //# sourceMappingURL=bubble.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubble.js","sources":["../src/components/bubble/bubble.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 './bubble.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Bubble\n * (registry/bases/base/ui/bubble.tsx): framed conversational content —\n * chat text, short structured output, quoted replies, suggestions, and\n * reactions. Bubble is intentionally scoped to the bubble surface; avatars,\n * names, timestamps, and message-level actions belong on\n * [`Message`](message.tsx), not here. Bubble has no Base UI primitive, but\n * `BubbleContent` gets `render`-prop polymorphism from\n * `useRender`/`mergeProps` — the same utilities Base UI's own primitives\n * are built on, and the same pattern Badge uses — for a bubble that is\n * actually a link or button.\n *\n * `align` (like Message's own) is layout-only — a plain `data-align`\n * attribute, not a `cva` variant — since it only ever repositions the\n * bubble, with no color/geometry of its own per value. `variant` IS the\n * paint axis and drives real `cva` classes. BubbleReactions' `side`/`align`\n * are genuinely visual (they pick which edge/corner the pill anchors to),\n * so both are `cva` axes of their own, named after the prop the same way\n * `variant`/`size` are elsewhere in the kit.\n */\nconst bubbleVariants = cva(styles.bubble, {\n variants: {\n variant: {\n default: styles.variantDefault,\n secondary: styles.variantSecondary,\n muted: styles.variantMuted,\n tinted: styles.variantTinted,\n outline: styles.variantOutline,\n ghost: styles.variantGhost,\n destructive: styles.variantDestructive,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport type BubbleGroupProps = ComponentProps<'div'>;\n\n/** Stacks consecutive `Bubble`s from the same sender. Set `align` on each\n * `Bubble` itself — it does not belong on the group. */\nexport function BubbleGroup({ className, ...props }: BubbleGroupProps) {\n return <div className={cx(styles.bubbleGroup, className)} {...props} />;\n}\n\nexport interface BubbleProps extends ComponentProps<'div'>, VariantProps<typeof bubbleVariants> {\n /**\n * The inline alignment of the bubble within its row.\n * @default 'start'\n */\n align?: 'start' | 'end';\n}\n\n/** The root bubble wrapper. */\nexport function Bubble({ className, variant = 'default', align = 'start', ...props }: BubbleProps) {\n return (\n <div\n data-variant={variant}\n data-align={align}\n className={bubbleVariants({ variant, className })}\n {...props}\n />\n );\n}\n\nexport type BubbleContentProps = useRender.ComponentProps<'div'>;\n\n/** The bubble content wrapper — the visible framed surface. Render as a\n * link or button via `render` for a clickable bubble; the visible focus\n * ring and hover feedback only apply once actually rendered that way. */\nexport function BubbleContent({ className, render, ...props }: BubbleContentProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n props: mergeProps<'div'>({ className: cx(styles.bubbleContent, className) }, props),\n });\n}\n\nconst bubbleReactionsVariants = cva(styles.bubbleReactions, {\n variants: {\n side: {\n top: styles.sideTop,\n bottom: styles.sideBottom,\n },\n align: {\n start: styles.alignStart,\n end: styles.alignEnd,\n },\n },\n defaultVariants: {\n side: 'bottom',\n align: 'end',\n },\n});\n\nexport interface BubbleReactionsProps\n extends ComponentProps<'div'>, VariantProps<typeof bubbleReactionsVariants> {}\n\n/** Displays overlapped reactions anchored to a bubble edge. Reactions\n * overlap the bubble edge, so leave vertical space between bubble rows. */\nexport function BubbleReactions({ className, side = 'bottom', align = 'end', ...props }: BubbleReactionsProps) {\n return (\n <div\n data-side={side}\n data-align={align}\n className={bubbleReactionsVariants({ side, align, className })}\n {...props}\n />\n );\n}\n\nexport { bubbleReactionsVariants, bubbleVariants };\n"],"names":["bubbleVariants","cva","styles","BubbleGroup","className","props","jsx","cx","Bubble","variant","align","BubbleContent","render","useRender","mergeProps","bubbleReactionsVariants","BubbleReactions","side"],"mappings":";;;;;;;;;;;;;;;;;;;;;GA6BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,aAAaA,EAAO;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAMM,SAASC,EAAY,EAAE,WAAAC,GAAW,GAAGC,KAA2B;AACrE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGL,EAAO,aAAaE,CAAS,GAAI,GAAGC,GAAO;AACvE;AAWO,SAASG,EAAO,EAAE,WAAAJ,GAAW,SAAAK,IAAU,WAAW,OAAAC,IAAQ,SAAS,GAAGL,KAAsB;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,gBAAcG;AAAA,MACd,cAAYC;AAAA,MACZ,WAAWV,EAAe,EAAE,SAAAS,GAAS,WAAAL,GAAW;AAAA,MAC/C,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAOO,SAASM,EAAc,EAAE,WAAAP,GAAW,QAAAQ,GAAQ,GAAGP,KAA6B;AACjF,SAAOQ,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAD;AAAA,IACA,OAAOE,EAAkB,EAAE,WAAWP,EAAGL,EAAO,eAAeE,CAAS,EAAA,GAAKC,CAAK;AAAA,EAAA,CACnF;AACH;AAEA,MAAMU,IAA0Bd,EAAIC,EAAO,iBAAiB;AAAA,EAC1D,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,KAAKA,EAAO;AAAA,MACZ,QAAQA,EAAO;AAAA,IAAA;AAAA,IAEjB,OAAO;AAAA,MACL,OAAOA,EAAO;AAAA,MACd,KAAKA,EAAO;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAEX,CAAC;AAOM,SAASc,EAAgB,EAAE,WAAAZ,GAAW,MAAAa,IAAO,UAAU,OAAAP,IAAQ,OAAO,GAAGL,KAA+B;AAC7G,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAWW;AAAA,MACX,cAAYP;AAAA,MACZ,WAAWK,EAAwB,EAAE,MAAAE,GAAM,OAAAP,GAAO,WAAAN,GAAW;AAAA,MAC5D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1 @@
1
+ export * from './components/button-group/public.js'
@@ -0,0 +1,61 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { mergeProps as e } from "@base-ui/react/merge-props";
4
+ import { useRender as s } from "@base-ui/react/use-render";
5
+ import { cx as i, cva as p } from "class-variance-authority";
6
+ import { Separator as u } from "./separator.js";
7
+ import './chunks/button-group.D0Ir-jbL.css';const c = "_group_1jwm6_13", l = "_orientationHorizontal_1jwm6_13", m = "_orientationVertical_1jwm6_64", _ = "_text_1jwm6_132", f = "_separator_1jwm6_152", a = {
8
+ group: c,
9
+ orientationHorizontal: l,
10
+ orientationVertical: m,
11
+ text: _,
12
+ separator: f
13
+ }, x = p(a.group, {
14
+ variants: {
15
+ orientation: {
16
+ horizontal: a.orientationHorizontal,
17
+ vertical: a.orientationVertical
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ orientation: "horizontal"
22
+ }
23
+ });
24
+ function V({ className: o, orientation: t, ...r }) {
25
+ return /* @__PURE__ */ n(
26
+ "div",
27
+ {
28
+ role: "group",
29
+ "data-orientation": t ?? "horizontal",
30
+ className: x({ orientation: t, className: o }),
31
+ ...r
32
+ }
33
+ );
34
+ }
35
+ function w({ className: o, render: t, ...r }) {
36
+ return s({
37
+ defaultTagName: "div",
38
+ render: t,
39
+ props: e({ className: i(a.text, o) }, r)
40
+ });
41
+ }
42
+ function G({
43
+ className: o,
44
+ orientation: t = "vertical",
45
+ ...r
46
+ }) {
47
+ return /* @__PURE__ */ n(
48
+ u,
49
+ {
50
+ orientation: t,
51
+ className: i(a.separator, o),
52
+ ...r
53
+ }
54
+ );
55
+ }
56
+ export {
57
+ V as ButtonGroup,
58
+ G as ButtonGroupSeparator,
59
+ w as ButtonGroupText
60
+ };
61
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.js","sources":["../src/components/button-group/button-group.tsx"],"sourcesContent":["// Load-bearing: ButtonGroupText calls useRender directly, so this can't be\n// dropped. Coupled to CLIENT_COMPONENTS in scripts/verify-consumer.sh — keep\n// both in sync if this ever changes.\n'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 { Separator, type SeparatorProps } from '../separator/public.js';\nimport styles from './button-group.module.css';\n\n/*\n * Upstream (registry/bases/base/ui/button-group.tsx) joins arbitrary direct\n * children — Button, Input, Select's trigger, plain text — by targeting\n * every child's own `data-slot` attribute with Tailwind arbitrary-value\n * sibling selectors (`[&>[data-slot]~[data-slot]]:rounded-l-none`). This\n * kit drops `data-slot` everywhere (see card.tsx), so there is no marker\n * attribute on an arbitrary child to hook into — the CSS below reaches the\n * same joined-strip look through pure structural selectors instead\n * (`:first-child`/`:last-child`/`:not(...)`), which works on ANY direct\n * child regardless of what component rendered it. See button-group.module.css.\n */\nconst buttonGroupVariants = cva(styles.group, {\n variants: {\n orientation: {\n horizontal: styles.orientationHorizontal,\n vertical: styles.orientationVertical,\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n});\n\nexport interface ButtonGroupProps\n extends Omit<ComponentProps<'div'>, 'className'>, VariantProps<typeof buttonGroupVariants> {\n className?: string;\n}\n\nexport function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps) {\n return (\n <div\n role=\"group\"\n data-orientation={orientation ?? 'horizontal'}\n className={buttonGroupVariants({ orientation, className })}\n {...props}\n />\n );\n}\n\n/*\n * Render-prop polymorphism via useRender/mergeProps — same shape as Badge\n * (badge.tsx) and BreadcrumbLink (breadcrumb.tsx): a static label between\n * two buttons is the common case (`<div>`, the default), but a consumer\n * gluing in something more specific (e.g. a `<label>` for an adjoining\n * input) can swap the tag without losing the group's typography.\n */\nexport type ButtonGroupTextProps = useRender.ComponentProps<'div'>;\n\nexport function ButtonGroupText({ className, render, ...props }: ButtonGroupTextProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n props: mergeProps<'div'>({ className: cx(styles.text, className) }, props),\n });\n}\n\nexport type ButtonGroupSeparatorProps = SeparatorProps;\n\n/*\n * `orientation` defaults to 'vertical' here — the opposite of Separator's\n * own 'horizontal' default (see separator.tsx) — because a divider INSIDE a\n * horizontal button group is a vertical stroke, and vice versa; matches\n * upstream's own default flip.\n */\nexport function ButtonGroupSeparator({\n className,\n orientation = 'vertical',\n ...props\n}: ButtonGroupSeparatorProps) {\n return (\n <Separator\n orientation={orientation}\n className={cx(styles.separator, className)}\n {...props}\n />\n );\n}\n"],"names":["buttonGroupVariants","cva","styles","ButtonGroup","className","orientation","props","jsx","ButtonGroupText","render","useRender","mergeProps","cx","ButtonGroupSeparator","Separator"],"mappings":";;;;;;;;;;;;GAwBMA,IAAsBC,EAAIC,EAAO,OAAO;AAAA,EAC5C,UAAU;AAAA,IACR,aAAa;AAAA,MACX,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,iBAAiB;AAAA,IACf,aAAa;AAAA,EAAA;AAEjB,CAAC;AAOM,SAASC,EAAY,EAAE,WAAAC,GAAW,aAAAC,GAAa,GAAGC,KAA2B;AAClF,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,oBAAkBF,KAAe;AAAA,MACjC,WAAWL,EAAoB,EAAE,aAAAK,GAAa,WAAAD,GAAW;AAAA,MACxD,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAWO,SAASE,EAAgB,EAAE,WAAAJ,GAAW,QAAAK,GAAQ,GAAGH,KAA+B;AACrF,SAAOI,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAD;AAAA,IACA,OAAOE,EAAkB,EAAE,WAAWC,EAAGV,EAAO,MAAME,CAAS,EAAA,GAAKE,CAAK;AAAA,EAAA,CAC1E;AACH;AAUO,SAASO,EAAqB;AAAA,EACnC,WAAAT;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,GAA8B;AAC5B,SACE,gBAAAC;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,aAAAT;AAAA,MACA,WAAWO,EAAGV,EAAO,WAAWE,CAAS;AAAA,MACxC,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
package/dist/button.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { Button as b } from "@base-ui/react/button";
3
- import { cva as D } from "class-variance-authority";
1
+ import { jsxs as b, jsx as i } from "react/jsx-runtime";
2
+ import { Button as z } from "@base-ui/react/button";
3
+ import { cva as q } from "class-variance-authority";
4
4
  import { Children as c } from "react";
5
- import './chunks/button.DNo8DTR3.css';const h = "_button_9fz15_6", p = "_variantDefault_9fz15_127", y = "_variantDestructive_9fz15_143", L = "_variantOutline_9fz15_169", S = "_variantSecondary_9fz15_180", k = "_variantGhost_9fz15_197", O = "_variantLink_9fz15_217", G = "_sizeDefault_9fz15_258", N = "_sizeSm_9fz15_263", g = "_sizeLg_9fz15_269", x = "_icon_9fz15_287", B = "_label_9fz15_309", j = "_spinner_9fz15_42", t = {
6
- button: h,
7
- variantDefault: p,
8
- variantDestructive: y,
9
- variantOutline: L,
10
- variantSecondary: S,
11
- variantGhost: k,
12
- variantLink: O,
13
- sizeDefault: G,
14
- sizeSm: N,
15
- sizeLg: g,
16
- icon: x,
17
- label: B,
18
- spinner: j
19
- }, A = D(t.button, {
5
+ import './chunks/button.D69BdJF1.css';const D = "_button_1cnmq_6", h = "_variantDefault_1cnmq_132", p = "_variantDestructive_1cnmq_148", y = "_variantOutline_1cnmq_174", L = "_variantSecondary_1cnmq_194", S = "_variantGhost_1cnmq_211", k = "_variantLink_1cnmq_234", O = "_sizeDefault_1cnmq_275", G = "_sizeSm_1cnmq_288", N = "_sizeLg_1cnmq_297", g = "_icon_1cnmq_315", x = "_label_1cnmq_337", B = "_spinner_1cnmq_42", t = {
6
+ button: D,
7
+ variantDefault: h,
8
+ variantDestructive: p,
9
+ variantOutline: y,
10
+ variantSecondary: L,
11
+ variantGhost: S,
12
+ variantLink: k,
13
+ sizeDefault: O,
14
+ sizeSm: G,
15
+ sizeLg: N,
16
+ icon: g,
17
+ label: x,
18
+ spinner: B
19
+ }, j = q(t.button, {
20
20
  variants: {
21
21
  variant: {
22
22
  default: t.variantDefault,
@@ -37,26 +37,26 @@ import './chunks/button.DNo8DTR3.css';const h = "_button_9fz15_6", p = "_variant
37
37
  size: "default"
38
38
  }
39
39
  });
40
- function $({
40
+ function W({
41
41
  className: _,
42
42
  variant: l,
43
43
  size: u,
44
44
  icon: s,
45
45
  loading: a,
46
46
  disabled: v,
47
- focusableWhenDisabled: f,
47
+ focusableWhenDisabled: m,
48
48
  children: e,
49
- ...z
49
+ ...d
50
50
  }) {
51
- const r = c.toArray(e).some((n) => n !== ""), o = c.toArray(s).some((n) => n !== ""), d = o && !r;
52
- return /* @__PURE__ */ m(
53
- b,
51
+ const r = c.toArray(e).some((n) => n !== ""), o = c.toArray(s).some((n) => n !== ""), f = o && !r;
52
+ return /* @__PURE__ */ b(
53
+ z,
54
54
  {
55
- className: A({ variant: l, size: u, className: _ }),
56
- ...z,
57
- focusableWhenDisabled: a || f,
55
+ className: j({ variant: l, size: u, className: _ }),
56
+ ...d,
57
+ focusableWhenDisabled: a || m,
58
58
  disabled: v || a,
59
- "data-icon-only": d || void 0,
59
+ "data-icon-only": f || void 0,
60
60
  "data-loading": a || void 0,
61
61
  "aria-busy": a || void 0,
62
62
  children: [
@@ -68,6 +68,7 @@ function $({
68
68
  );
69
69
  }
70
70
  export {
71
- $ as Button
71
+ W as Button,
72
+ j as buttonVariants
72
73
  };
73
74
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../src/components/button/button.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Children, type ReactNode } from 'react';\n\nimport styles from './button.module.css';\n\nconst buttonVariants = cva(styles.button, {\n variants: {\n variant: {\n default: styles.variantDefault,\n destructive: styles.variantDestructive,\n outline: styles.variantOutline,\n secondary: styles.variantSecondary,\n ghost: styles.variantGhost,\n link: styles.variantLink,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\nexport interface ButtonProps\n extends Omit<ButtonPrimitive.Props, 'className'>, VariantProps<typeof buttonVariants> {\n className?: string;\n /**\n * Leading icon slot — the one right way to put an icon in a Button (never\n * via children; the slot is what gets sized, spaced, hidden during\n * `loading`, and marked decorative). With no children the button turns\n * square icon-only — pass `aria-label` then, the icon carries no\n * accessible name. Same prop shape as react-kit's AcvButton; a trailing\n * slot, if ever needed, takes AcvButton's `end` name.\n */\n icon?: ReactNode;\n /**\n * Shows a centered spinner and reports `aria-busy`. Content is hidden\n * with opacity, not visibility: it keeps painting the button's size (no\n * width jump) and, unlike visibility, stays in the accessibility tree —\n * the button keeps its name while `aria-busy` reports the state, with no\n * hardcoded \"Loading\" label the kit would otherwise have to translate.\n * Clicks are suppressed the same way `disabled` suppresses them, but the\n * button does NOT become natively `disabled` — it forces\n * `focusableWhenDisabled` (see below) instead, so it stays in the tab\n * order and reports `aria-disabled` rather than blurring itself the\n * instant a native `disabled` attribute would land. Consumer code\n * checking the native `disabled` property or a `:disabled` CSS selector\n * will NOT see a `loading` button the way it sees a plain `disabled`\n * one — check `aria-disabled`/`aria-busy` instead.\n */\n loading?: boolean;\n /**\n * Keep the button in the tab order (and reporting `aria-disabled`\n * instead of the native `disabled` attribute) while disabled — inherited\n * from Base UI's Button, re-declared here because `loading` above forces\n * this to `true` regardless of what's passed: a native `disabled`\n * attribute blurs the button the instant it lands, which `loading` can't\n * afford (it needs `aria-busy` to still be announced to something). An\n * explicit `focusableWhenDisabled={false}` is silently overridden while\n * `loading` is `true`.\n * @default false\n */\n focusableWhenDisabled?: boolean;\n}\n\nexport function Button({\n className,\n variant,\n size,\n icon,\n loading,\n disabled,\n focusableWhenDisabled,\n children,\n ...props\n}: ButtonProps) {\n // One predicate for \"does this button have a visible label\", driving\n // BOTH the icon-only derivation below and the label-render guard at the\n // bottom: `children == null` only catches a missing prop, not a falsy\n // one — `<Button icon={x}>{cond && 'Save'}</Button>` with cond=false\n // passes `false` as children, which is neither null nor renderable, so\n // checking each spot with its own logic could (and did) disagree about\n // whether the button has a label.\n //\n // Children.toArray drops `false`/`null`/`undefined`/`[]` but KEEPS the\n // empty string (`toArray('')` has length 1), so the array being non-empty\n // is not on its own the same question as \"renders something visible\" —\n // hence the explicit `!== ''` filter. `<Button icon={x}>{label}</Button>`\n // with an empty `label` is the case it covers: without the filter that\n // button stays a wide pill wrapping an empty label span instead of going\n // icon-only. `0` is deliberately NOT filtered — React renders it.\n const hasLabel = Children.toArray(children).some((child) => child !== '');\n // Same predicate, applied to the icon slot: `icon != null` is true for\n // `icon={false}` — a valid ReactNode that renders nothing — which is\n // exactly what `icon={cond && <Icon/>}` passes when `cond` is false.\n // Without this, a false condition still forced the button icon-only and\n // rendered an empty square.\n const hasIcon = Children.toArray(icon).some((child) => child !== '');\n const iconOnly = hasIcon && !hasLabel;\n return (\n <ButtonPrimitive\n className={buttonVariants({ variant, size, className })}\n {...props}\n /*\n * Derived attributes are spread AFTER `...props` so a caller's own\n * conflicting `aria-busy`/`data-loading`/`data-icon-only` can never\n * shadow the state this component just computed — the button IS\n * loading/icon-only/not, regardless of what a stray prop says.\n *\n * `focusableWhenDisabled` while `loading`: a native `disabled`\n * attribute blurs the element the instant it lands, which would\n * silently steal focus off a button the user just clicked and make\n * `aria-busy` announce to no one. Base UI's `focusableWhenDisabled`\n * keeps it in the tab order and reports the state via\n * `aria-disabled` instead (see useFocusableWhenDisabled) — clicks\n * still get suppressed via `disabled` below either way. A plain\n * `disabled` with no `loading` keeps its ordinary native behavior\n * unless the caller opts into `focusableWhenDisabled` itself.\n */\n focusableWhenDisabled={loading || focusableWhenDisabled}\n disabled={disabled || loading}\n data-icon-only={iconOnly || undefined}\n data-loading={loading || undefined}\n aria-busy={loading || undefined}\n >\n {loading && <span className={styles.spinner} aria-hidden=\"true\" />}\n {hasIcon && (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {hasLabel && <span className={styles.label}>{children}</span>}\n </ButtonPrimitive>\n );\n}\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","icon","loading","disabled","focusableWhenDisabled","children","props","hasLabel","Children","child","hasIcon","iconOnly","jsxs","ButtonPrimitive","jsx"],"mappings":";;;;;;;;;;;;;;;;;;GAMMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,aAAaA,EAAO;AAAA,MACpB,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,IAAA;AAAA,IAEf,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;AA4CM,SAASC,EAAO;AAAA,EACrB,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AAgBd,QAAMC,IAAWC,EAAS,QAAQH,CAAQ,EAAE,KAAK,CAACI,MAAUA,MAAU,EAAE,GAMlEC,IAAUF,EAAS,QAAQP,CAAI,EAAE,KAAK,CAACQ,MAAUA,MAAU,EAAE,GAC7DE,IAAWD,KAAW,CAACH;AAC7B,SACE,gBAAAK;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWnB,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,GAAW;AAAA,MACrD,GAAGQ;AAAA,MAiBJ,uBAAuBJ,KAAWE;AAAA,MAClC,UAAUD,KAAYD;AAAA,MACtB,kBAAgBS,KAAY;AAAA,MAC5B,gBAAcT,KAAW;AAAA,MACzB,aAAWA,KAAW;AAAA,MAErB,UAAA;AAAA,QAAAA,uBAAY,QAAA,EAAK,WAAWN,EAAO,SAAS,eAAY,QAAO;AAAA,QAC/Dc,uBACE,QAAA,EAAK,WAAWd,EAAO,MAAM,eAAY,QACvC,UAAAK,EAAA,CACH;AAAA,QAEDM,KAAY,gBAAAO,EAAC,QAAA,EAAK,WAAWlB,EAAO,OAAQ,UAAAS,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D;"}
1
+ {"version":3,"file":"button.js","sources":["../src/components/button/button.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Children, type ReactNode } from 'react';\n\nimport styles from './button.module.css';\n\n// Exported (upstream parity — shadcn/ui exports buttonVariants) so a\n// component that renders link/anchor markup styled like a button, but isn't\n// itself a Button (e.g. pagination's page links), can reuse the same class\n// map instead of hand-duplicating variant→class wiring.\nexport const buttonVariants = cva(styles.button, {\n variants: {\n variant: {\n default: styles.variantDefault,\n destructive: styles.variantDestructive,\n outline: styles.variantOutline,\n secondary: styles.variantSecondary,\n ghost: styles.variantGhost,\n link: styles.variantLink,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\nexport interface ButtonProps\n extends Omit<ButtonPrimitive.Props, 'className'>, VariantProps<typeof buttonVariants> {\n className?: string;\n /**\n * Leading icon slot — the one right way to put an icon in a Button (never\n * via children; the slot is what gets sized, spaced, hidden during\n * `loading`, and marked decorative). With no children the button turns\n * square icon-only — pass `aria-label` then, the icon carries no\n * accessible name. Same prop shape as react-kit's AcvButton; a trailing\n * slot, if ever needed, takes AcvButton's `end` name.\n */\n icon?: ReactNode;\n /**\n * Shows a centered spinner and reports `aria-busy`. Content is hidden\n * with opacity, not visibility: it keeps painting the button's size (no\n * width jump) and, unlike visibility, stays in the accessibility tree —\n * the button keeps its name while `aria-busy` reports the state, with no\n * hardcoded \"Loading\" label the kit would otherwise have to translate.\n * Clicks are suppressed the same way `disabled` suppresses them, but the\n * button does NOT become natively `disabled` — it forces\n * `focusableWhenDisabled` (see below) instead, so it stays in the tab\n * order and reports `aria-disabled` rather than blurring itself the\n * instant a native `disabled` attribute would land. Consumer code\n * checking the native `disabled` property or a `:disabled` CSS selector\n * will NOT see a `loading` button the way it sees a plain `disabled`\n * one — check `aria-disabled`/`aria-busy` instead.\n */\n loading?: boolean;\n /**\n * Keep the button in the tab order (and reporting `aria-disabled`\n * instead of the native `disabled` attribute) while disabled — inherited\n * from Base UI's Button, re-declared here because `loading` above forces\n * this to `true` regardless of what's passed: a native `disabled`\n * attribute blurs the button the instant it lands, which `loading` can't\n * afford (it needs `aria-busy` to still be announced to something). An\n * explicit `focusableWhenDisabled={false}` is silently overridden while\n * `loading` is `true`.\n * @default false\n */\n focusableWhenDisabled?: boolean;\n}\n\nexport function Button({\n className,\n variant,\n size,\n icon,\n loading,\n disabled,\n focusableWhenDisabled,\n children,\n ...props\n}: ButtonProps) {\n // One predicate for \"does this button have a visible label\", driving\n // BOTH the icon-only derivation below and the label-render guard at the\n // bottom: `children == null` only catches a missing prop, not a falsy\n // one — `<Button icon={x}>{cond && 'Save'}</Button>` with cond=false\n // passes `false` as children, which is neither null nor renderable, so\n // checking each spot with its own logic could (and did) disagree about\n // whether the button has a label.\n //\n // Children.toArray drops `false`/`null`/`undefined`/`[]` but KEEPS the\n // empty string (`toArray('')` has length 1), so the array being non-empty\n // is not on its own the same question as \"renders something visible\" —\n // hence the explicit `!== ''` filter. `<Button icon={x}>{label}</Button>`\n // with an empty `label` is the case it covers: without the filter that\n // button stays a wide pill wrapping an empty label span instead of going\n // icon-only. `0` is deliberately NOT filtered — React renders it.\n const hasLabel = Children.toArray(children).some((child) => child !== '');\n // Same predicate, applied to the icon slot: `icon != null` is true for\n // `icon={false}` — a valid ReactNode that renders nothing — which is\n // exactly what `icon={cond && <Icon/>}` passes when `cond` is false.\n // Without this, a false condition still forced the button icon-only and\n // rendered an empty square.\n const hasIcon = Children.toArray(icon).some((child) => child !== '');\n const iconOnly = hasIcon && !hasLabel;\n return (\n <ButtonPrimitive\n className={buttonVariants({ variant, size, className })}\n {...props}\n /*\n * Derived attributes are spread AFTER `...props` so a caller's own\n * conflicting `aria-busy`/`data-loading`/`data-icon-only` can never\n * shadow the state this component just computed — the button IS\n * loading/icon-only/not, regardless of what a stray prop says.\n *\n * `focusableWhenDisabled` while `loading`: a native `disabled`\n * attribute blurs the element the instant it lands, which would\n * silently steal focus off a button the user just clicked and make\n * `aria-busy` announce to no one. Base UI's `focusableWhenDisabled`\n * keeps it in the tab order and reports the state via\n * `aria-disabled` instead (see useFocusableWhenDisabled) — clicks\n * still get suppressed via `disabled` below either way. A plain\n * `disabled` with no `loading` keeps its ordinary native behavior\n * unless the caller opts into `focusableWhenDisabled` itself.\n */\n focusableWhenDisabled={loading || focusableWhenDisabled}\n disabled={disabled || loading}\n data-icon-only={iconOnly || undefined}\n data-loading={loading || undefined}\n aria-busy={loading || undefined}\n >\n {loading && <span className={styles.spinner} aria-hidden=\"true\" />}\n {hasIcon && (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {hasLabel && <span className={styles.label}>{children}</span>}\n </ButtonPrimitive>\n );\n}\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","icon","loading","disabled","focusableWhenDisabled","children","props","hasLabel","Children","child","hasIcon","iconOnly","jsxs","ButtonPrimitive","jsx"],"mappings":";;;;;;;;;;;;;;;;;;GAUaA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EAC/C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,aAAaA,EAAO;AAAA,MACpB,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,IAAA;AAAA,IAEf,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;AA4CM,SAASC,EAAO;AAAA,EACrB,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AAgBd,QAAMC,IAAWC,EAAS,QAAQH,CAAQ,EAAE,KAAK,CAACI,MAAUA,MAAU,EAAE,GAMlEC,IAAUF,EAAS,QAAQP,CAAI,EAAE,KAAK,CAACQ,MAAUA,MAAU,EAAE,GAC7DE,IAAWD,KAAW,CAACH;AAC7B,SACE,gBAAAK;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWnB,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,GAAW;AAAA,MACrD,GAAGQ;AAAA,MAiBJ,uBAAuBJ,KAAWE;AAAA,MAClC,UAAUD,KAAYD;AAAA,MACtB,kBAAgBS,KAAY;AAAA,MAC5B,gBAAcT,KAAW;AAAA,MACzB,aAAWA,KAAW;AAAA,MAErB,UAAA;AAAA,QAAAA,uBAAY,QAAA,EAAK,WAAWN,EAAO,SAAS,eAAY,QAAO;AAAA,QAC/Dc,uBACE,QAAA,EAAK,WAAWd,EAAO,MAAM,eAAY,QACvC,UAAAK,EAAA,CACH;AAAA,QAEDM,KAAY,gBAAAO,EAAC,QAAA,EAAK,WAAWlB,EAAO,OAAQ,UAAAS,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D;"}
@@ -0,0 +1 @@
1
+ export * from './components/calendar/public.js'