@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
@@ -0,0 +1,86 @@
1
+ # Breadcrumb
2
+
3
+ A trail of ancestor links ending in the current page. No Base UI primitive
4
+ backs it (there is none) — pure styling translation over semantic markup
5
+ (`nav` > `ol` > `li`), the same shape as `Table`, except `BreadcrumbLink`
6
+ gets `render`-prop polymorphism from Base UI's `useRender`/`mergeProps`
7
+ utilities (the same shape `Badge` uses) for routing through a consumer
8
+ app's own link component.
9
+
10
+ ## When to use
11
+
12
+ - Showing the user's position in a hierarchical structure (Home / Section /
13
+ Page) with clickable ancestors.
14
+
15
+ ## When not to use
16
+
17
+ - Tab-style section switching on one page — use `Tabs`.
18
+ - A single "back" action — use `Button` with a leading icon.
19
+
20
+ ## Parts
21
+
22
+ | Part | Renders | Notes |
23
+ |------|---------|-------|
24
+ | `Breadcrumb` | `<nav aria-label="breadcrumb">` | The root landmark |
25
+ | `BreadcrumbList` | `<ol>` | Wraps, no bullets |
26
+ | `BreadcrumbItem` | `<li>` | One crumb |
27
+ | `BreadcrumbLink` | `<a>` (or `render`) | An ancestor the user can navigate to |
28
+ | `BreadcrumbPage` | `<span>` | The current page — not a link |
29
+ | `BreadcrumbSeparator` | `<li>` | Decorative divider between crumbs, defaults to a chevron |
30
+ | `BreadcrumbEllipsis` | `<span>` | Collapsed-crumbs indicator |
31
+
32
+ ## Props (kit level)
33
+
34
+ `BreadcrumbLink` accepts a `render` prop (`useRender.ComponentProps<'a'>`) to
35
+ render through a consumer's own link component instead of a raw `<a>`:
36
+
37
+ ```tsx
38
+ <BreadcrumbLink render={<RouterLink to="/reports" />}>Reports</BreadcrumbLink>
39
+ ```
40
+
41
+ `BreadcrumbSeparator` accepts optional `children` to replace the default
42
+ chevron (e.g. a bare `/`). Every other part forwards its native element
43
+ props unchanged.
44
+
45
+ ## Examples
46
+
47
+ ```tsx
48
+ import {
49
+ Breadcrumb,
50
+ BreadcrumbEllipsis,
51
+ BreadcrumbItem,
52
+ BreadcrumbLink,
53
+ BreadcrumbList,
54
+ BreadcrumbPage,
55
+ BreadcrumbSeparator,
56
+ } from '@gears-frontx/ui-kit';
57
+
58
+ <Breadcrumb>
59
+ <BreadcrumbList>
60
+ <BreadcrumbItem>
61
+ <BreadcrumbLink href="/">Home</BreadcrumbLink>
62
+ </BreadcrumbItem>
63
+ <BreadcrumbSeparator />
64
+ <BreadcrumbItem>
65
+ <BreadcrumbEllipsis />
66
+ </BreadcrumbItem>
67
+ <BreadcrumbSeparator />
68
+ <BreadcrumbItem>
69
+ <BreadcrumbLink href="/reports">Reports</BreadcrumbLink>
70
+ </BreadcrumbItem>
71
+ <BreadcrumbSeparator />
72
+ <BreadcrumbItem>
73
+ <BreadcrumbPage>Q3 summary</BreadcrumbPage>
74
+ </BreadcrumbItem>
75
+ </BreadcrumbList>
76
+ </Breadcrumb>
77
+ ```
78
+
79
+ ## Anti-patterns
80
+
81
+ - Do not make the current page a `BreadcrumbLink` — use `BreadcrumbPage`; it
82
+ reports `aria-current="page"` and is deliberately not clickable
83
+ (`aria-disabled="true"`).
84
+ - Do not put interactive content inside `BreadcrumbSeparator`/
85
+ `BreadcrumbEllipsis` — both are `aria-hidden`/decorative and must not
86
+ carry the trail's only route to an action.
@@ -0,0 +1,233 @@
1
+ # Bubble
2
+
3
+ Framed conversational content — a port of [shadcn/ui's base
4
+ Bubble](https://ui.shadcn.com/docs/components/base/bubble), faithful except
5
+ for the speaker-side corner notch described under
6
+ [Variants](#variants). Use it for
7
+ chat text, short structured output, quoted replies, suggestions, and
8
+ reactions. Bubble has no Base UI primitive, but `BubbleContent` gets
9
+ `render`-prop polymorphism (via Base UI's `useRender`/`mergeProps`
10
+ utilities) for the one case that needs it: rendering as a link or button.
11
+
12
+ For full-featured chat rows — avatar, sender name, timestamps,
13
+ message-level actions — use [`Message`](message.md). Bubble is
14
+ intentionally scoped to the bubble surface alone; place everything else on
15
+ Message.
16
+
17
+ ## When to use
18
+
19
+ - The visible surface of a chat message: plain text, a quoted reply, a
20
+ suggestion chip, or short structured output.
21
+ - Inside [`Message`](message.md)'s `MessageContent`, as the message's
22
+ actual content.
23
+
24
+ ## When not to use
25
+
26
+ - Avatars, sender names, timestamps, or message-level action buttons —
27
+ those belong on `Message`, not Bubble.
28
+ - A full message row — compose `Message` + `Bubble` together instead of
29
+ reaching for Bubble alone in a conversation UI.
30
+
31
+ ## Composition
32
+
33
+ ```text
34
+ Bubble
35
+ ├── BubbleContent
36
+ └── BubbleReactions
37
+ ```
38
+
39
+ ```text
40
+ BubbleGroup
41
+ ├── Bubble
42
+ │ └── BubbleContent
43
+ └── Bubble
44
+ └── BubbleContent
45
+ ```
46
+
47
+ ## Variants
48
+
49
+ Use `variant` on `Bubble` to change the visual treatment:
50
+
51
+ | Variant | Description |
52
+ | ------------- | ------------------------------------------------------- |
53
+ | `default` | A strong primary bubble, usually for the current user. |
54
+ | `secondary` | The standard neutral bubble for conversation content. |
55
+ | `muted` | A lower-emphasis bubble for quiet supporting content. |
56
+ | `tinted` | A subtle primary-tinted bubble. |
57
+ | `outline` | A bordered bubble for secondary or rich content. |
58
+ | `ghost` | Unframed content for assistant text or rich content. |
59
+ | `destructive` | A destructive bubble for error or failed actions. |
60
+
61
+ A bubble sizes to its content, up to 80% of the container width. The
62
+ `ghost` variant removes the max-width so assistant text and rich content
63
+ can span the full row.
64
+
65
+ Use `align` on `Bubble` to align it to the start or end of the
66
+ conversation:
67
+
68
+ | `align` | Description |
69
+ | ------- | --------------------------------------------------- |
70
+ | `start` | Align the bubble to the start of the conversation. |
71
+ | `end` | Align the bubble to the end of the conversation. |
72
+
73
+ `align` is not only a position: the bubble notches its speaker-side top
74
+ corner flat, so a `start` bubble is squared off at the top start edge and
75
+ an `end` bubble at the top end edge. That is the shape cue that separates a
76
+ message from a button, and it carries the sender independently of the
77
+ variant fill. It follows the writing direction, so an RTL conversation
78
+ notches the mirrored corner. `ghost` has no frame and so no notch.
79
+
80
+ **Note:** When building a chat interface, set alignment on
81
+ [`Message`](message.md) instead — the individual `Bubble`'s own `align`
82
+ matters mainly when using Bubble standalone, outside a `Message` row.
83
+
84
+ `BubbleReactions` has two axes of its own:
85
+
86
+ | `side` | Description |
87
+ | -------- | --------------------------------------------- |
88
+ | `top` | Anchors the reactions to the bubble's top edge. |
89
+ | `bottom` | Anchors the reactions to the bubble's bottom edge (default). |
90
+
91
+ | `align` (reactions) | Description |
92
+ | -------------------- | ------------------------------------------- |
93
+ | `start` | Anchors the reactions near the start edge. |
94
+ | `end` | Anchors the reactions near the end edge (default). |
95
+
96
+ ## Props
97
+
98
+ ### Bubble
99
+
100
+ | Prop | Type | Default | Description |
101
+ | ----------- | -------------------------------------------------------------------------------------------- | ----------- | -------------------------------------- |
102
+ | `variant` | `'default' \| 'secondary' \| 'muted' \| 'tinted' \| 'outline' \| 'ghost' \| 'destructive'` | `'default'` | The bubble visual treatment. |
103
+ | `align` | `'start' \| 'end'` | `'start'` | The inline alignment of the bubble. |
104
+ | `className` | `string` | — | Merged after the variant class. |
105
+
106
+ All other props are native `<div>` props and are forwarded as-is.
107
+
108
+ ### BubbleContent
109
+
110
+ | Prop | Type | Default | Description |
111
+ | ----------- | ------------------------------------------ | ------- | ---------------------------------------------------------- |
112
+ | `render` | `ReactElement` — replaces the root `div` | — | Render the content as a different element, e.g. a link. |
113
+ | `className` | `string` | — | Merged after the content class. |
114
+
115
+ ### BubbleReactions
116
+
117
+ | Prop | Type | Default | Description |
118
+ | ----------- | ------------------- | ---------- | ------------------------------------------ |
119
+ | `side` | `'top' \| 'bottom'` | `'bottom'` | The bubble edge the reactions anchor to. |
120
+ | `align` | `'start' \| 'end'` | `'end'` | The inline alignment of the reactions. |
121
+ | `className` | `string` | — | Merged after the variant classes. |
122
+
123
+ ### BubbleGroup
124
+
125
+ Accepts only `className` (merged after the group class) plus native
126
+ `<div>` props.
127
+
128
+ `bubbleVariants`/`bubbleReactionsVariants` (the underlying `cva` recipes)
129
+ are also exported, for a consumer composing the bubble styles into a
130
+ custom component.
131
+
132
+ ## Examples
133
+
134
+ ```tsx
135
+ import { Bubble, BubbleContent, BubbleReactions } from '@gears-frontx/ui-kit';
136
+
137
+ <Bubble>
138
+ <BubbleContent>I checked the registry output and removed the stale route.</BubbleContent>
139
+ <BubbleReactions>
140
+ <span>👍</span>
141
+ </BubbleReactions>
142
+ </Bubble>;
143
+ ```
144
+
145
+ ### Links and buttons
146
+
147
+ ```tsx
148
+ <Bubble variant="muted">
149
+ <BubbleContent render={<button type="button" onClick={onReply} />}>Click here</BubbleContent>
150
+ </Bubble>
151
+ ```
152
+
153
+ ### Group
154
+
155
+ Use `BubbleGroup` to group consecutive bubbles from the same sender —
156
+ `align` still lives on each `Bubble`, not on the group.
157
+
158
+ ```tsx
159
+ <BubbleGroup>
160
+ <Bubble>
161
+ <BubbleContent>First message.</BubbleContent>
162
+ </Bubble>
163
+ <Bubble>
164
+ <BubbleContent>Second message.</BubbleContent>
165
+ </Bubble>
166
+ </BubbleGroup>
167
+ ```
168
+
169
+ ### Reactions
170
+
171
+ Reactions overlap the bubble edge, so leave extra vertical space between
172
+ rows when reactions are present (e.g. a larger `gap` on the surrounding
173
+ `BubbleGroup`/`MessageGroup`).
174
+
175
+ ```tsx
176
+ <Bubble variant="secondary">
177
+ <BubbleContent>Ship it.</BubbleContent>
178
+ <BubbleReactions side="top" align="start">
179
+ <span>🔥</span>
180
+ </BubbleReactions>
181
+ </Bubble>
182
+ ```
183
+
184
+ ### Show more / collapsible, tooltip, popover
185
+
186
+ Bubble is intentionally standalone — it does not compose
187
+ Collapsible/Tooltip/Popover itself. Wrap long bubble content in
188
+ [`Collapsible`](../collapsible/collapsible.md) for a show-more
189
+ interaction, or wrap a `Bubble` in [`Tooltip`](../tooltip/tooltip.md) or
190
+ [`Popover`](../popover/popover.md) to surface metadata on hover or demand
191
+ — see each of those components' own docs for the composition pattern; none
192
+ of it lives inside bubble.tsx/bubble.module.css.
193
+
194
+ ## Accessibility
195
+
196
+ Bubble renders the presentational message surface. Keep conversation-level
197
+ semantics on the surrounding container.
198
+
199
+ - **Labeling reactions.** A screen reader reads each emoji glyph with no
200
+ context, and a counter like `+8` is announced as "plus eight". Group the
201
+ row as a single image with a descriptive `aria-label` so it announces
202
+ once — `role="img"` also hides the individual emoji from assistive tech,
203
+ so no `aria-hidden` is needed:
204
+
205
+ ```tsx
206
+ <BubbleReactions role="img" aria-label="Reactions: thumbs up, fire, and 8 more">
207
+ <span>👍</span>
208
+ <span>🔥</span>
209
+ <span>+8</span>
210
+ </BubbleReactions>
211
+ ```
212
+
213
+ When reactions are interactive, render real buttons instead and give
214
+ icon-only ones an `aria-label`.
215
+
216
+ - **Interactive bubbles.** When a bubble is clickable, render it as a real
217
+ `<button>` or `<a>` via `render` so it is focusable and exposes the
218
+ correct role. `BubbleContent` ships a visible focus ring for interactive
219
+ elements, and the accessible name comes from the bubble text — no extra
220
+ label is needed.
221
+
222
+ - **Meaning beyond color.** Bubble variants signal role and tone with
223
+ color alone. Pair them with text, alignment, or icons — for a
224
+ `destructive` bubble, keep the error context in the message text rather
225
+ than relying on the color treatment.
226
+
227
+ ## Anti-patterns
228
+
229
+ - Do not put an avatar, sender name, or message-level actions inside
230
+ Bubble — those belong on `Message`.
231
+ - Do not rely on bubble color alone to convey status — see Accessibility
232
+ above.
233
+ - Do not set `align` on `BubbleGroup` — it belongs on each `Bubble`.
@@ -0,0 +1,107 @@
1
+ # ButtonGroup
2
+
3
+ Visually joins a row (or column) of controls into one strip — adjoining
4
+ corners round only on the outer edge, adjoining borders don't double up.
5
+ Works on ANY direct child (`Button`, `Input`, a `Select` trigger, plain
6
+ text), not just buttons, despite the name — matching upstream.
7
+
8
+ ## When to use
9
+
10
+ - A segmented control (view toggle, alignment picker).
11
+ - A split button (primary action + a caret-only dropdown trigger).
12
+ - An input with an attached action (`Input` + `Button` side by side) where
13
+ `InputGroup`'s icon-slot model doesn't fit — e.g. the attached control
14
+ needs its own independent width or a popup trigger.
15
+
16
+ ## When not to use
17
+
18
+ - A single input's own leading/trailing icon or icon-button — use `Input`'s
19
+ `icon`/`end` slots, or `InputGroup` for a richer multi-part field.
20
+
21
+ ## Parts
22
+
23
+ | Part | Renders | Notes |
24
+ |------|---------|-------|
25
+ | `ButtonGroup` | `<div role="group">` | The joining container |
26
+ | `ButtonGroupText` | `<div>` (or `render`) | A static label between controls |
27
+ | `ButtonGroupSeparator` | `Separator` | A thin divider between controls, `vertical` by default |
28
+
29
+ ## Props (kit level)
30
+
31
+ `ButtonGroup`:
32
+
33
+ | Prop | Type | Default |
34
+ |------|------|---------|
35
+ | `orientation` | `horizontal` \| `vertical` | `horizontal` |
36
+ | `className` | `string` | — |
37
+
38
+ `ButtonGroupText` accepts a `render` prop (`useRender.ComponentProps<'div'>`)
39
+ to render through a different element (e.g. a `<label>` next to an
40
+ adjoining input) while keeping the group's typography.
41
+
42
+ `ButtonGroupSeparator` forwards every `Separator` prop; `orientation`
43
+ defaults to `vertical` here specifically because a divider INSIDE a
44
+ horizontal group is a vertical stroke (and vice versa) — the opposite of
45
+ `Separator`'s own `horizontal` default.
46
+
47
+ ## Examples
48
+
49
+ ```tsx
50
+ import { Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from '@gears-frontx/ui-kit';
51
+
52
+ // Segmented control
53
+ <ButtonGroup>
54
+ <Button variant="outline">Left</Button>
55
+ <Button variant="outline">Center</Button>
56
+ <Button variant="outline">Right</Button>
57
+ </ButtonGroup>
58
+
59
+ // Split button
60
+ <ButtonGroup>
61
+ <Button>Save</Button>
62
+ <Button aria-label="More save options" icon={<CaretDownIcon />} />
63
+ </ButtonGroup>
64
+
65
+ // Vertical, with a divider and a static label
66
+ <ButtonGroup orientation="vertical">
67
+ <ButtonGroupText>Sort</ButtonGroupText>
68
+ <ButtonGroupSeparator />
69
+ <Button variant="outline">Newest first</Button>
70
+ <Button variant="outline">Oldest first</Button>
71
+ </ButtonGroup>
72
+
73
+ // An input attached to an action button — size="lg" matches Input's own
74
+ // default height (control-height-lg); Button's own default is one step
75
+ // down (control-height-md), so it needs the explicit size to join flush
76
+ <ButtonGroup>
77
+ <Input placeholder="Amount" />
78
+ <Button variant="outline" size="lg">Max</Button>
79
+ </ButtonGroup>
80
+ ```
81
+
82
+ ## Sizing
83
+
84
+ `ButtonGroup` does not normalize child height itself — each child keeps
85
+ whatever height its own size prop resolves to. `Input` and a `Select`
86
+ trigger default to `control-height-lg`; `Button`'s own default is one step
87
+ down at `control-height-md`. Composing a default `Button` next to a default
88
+ `Input`/`Select` therefore joins two different heights — size the `Button`
89
+ explicitly (`size="lg"`) to match, as the examples above do.
90
+
91
+ `Input`'s `icon`/`end` slots (see input.md) wrap the real `<input>` in a
92
+ presentational span when either is set — the direct child `ButtonGroup`
93
+ sees is that span, not the input. The join still reaches the input's own
94
+ border/radius through that wrapper, so a slotted `Input` (e.g. a leading
95
+ icon) joins exactly like a bare one; no different composition is needed.
96
+
97
+ ## Anti-patterns
98
+
99
+ - Do not nest a `ButtonGroup` more than one level deep expecting the join
100
+ styling to compose automatically — the corner/border rules target DIRECT
101
+ children only, by design (so an arbitrarily deep tree of unrelated
102
+ wrappers never accidentally gets joined). The one exception is `Input`'s
103
+ own slot wrapper, above — that reach-through is deliberate, not a hole in
104
+ the "direct children only" rule.
105
+ - Do not rely on `ButtonGroup` for keyboard roving-tabindex behavior — it is
106
+ a pure visual/structural join (`role="group"` only), not a Base UI
107
+ toolbar/radio-group primitive; each child keeps its own native tab stop.
@@ -0,0 +1,114 @@
1
+ # Calendar
2
+
3
+ A month grid for picking one day, several days, or a range. Wraps
4
+ [react-day-picker](https://daypicker.dev) — the kit ships no calendar
5
+ primitive of its own; `date-picker/` composes this component with `Popover`
6
+ and `Button`/`Input` for the common "field that opens a calendar" pattern.
7
+
8
+ ## When to use
9
+
10
+ - Any date or date-range input where a grid picker reads better than typing
11
+ a raw date string — booking a range, scheduling a date, filtering by
12
+ period.
13
+ - Reach for `date-picker/`'s `DatePicker` instead of this component directly
14
+ when the calendar should live behind a trigger (field or button) rather
15
+ than sit inline on the page.
16
+
17
+ ## Props (kit level)
18
+
19
+ Every `DayPicker` prop passes through unchanged (`mode`, `selected`,
20
+ `onSelect`, `numberOfMonths`, `disabled`, `locale`, ... — see
21
+ [react-day-picker's docs](https://daypicker.dev/api/type-aliases/DayPickerProps)).
22
+ The kit only fixes defaults and re-authors the styling surface:
23
+
24
+ | Prop | Type | Default |
25
+ |------|------|---------|
26
+ | `showOutsideDays` | `boolean` — render the previous/next month's days that fill out the grid | `true` |
27
+ | `captionLayout` | `label` \| `dropdown` \| `dropdown-months` \| `dropdown-years` | `label` |
28
+ | `className` | `string` — merged onto the root | — |
29
+ | `classNames` | `Partial<ClassNames>` — merged over the kit's own per-slot classes, keyed by react-day-picker's own slot names (`root`, `months`, `day`, `range_start`, ...) | — |
30
+
31
+ `captionLayout`'s four values split into two visually distinct renders,
32
+ both covered by calendar.module.css:
33
+
34
+ - `label` — a plain "August 2026" text caption (`.captionLabel`).
35
+ - `dropdown` / `dropdown-months` / `dropdown-years` — one or both of the
36
+ month/year captions become a clickable chip with a chevron
37
+ (`.captionLabel.captionLabelDropdown`), an invisible native `<select>`
38
+ layered on top of it for the actual interaction.
39
+
40
+ ## Definition of done
41
+
42
+ - **Selection modes**: `mode="single"` fills the one selected day
43
+ (`--primary`); `mode="range"` fills the start/end days and shades every
44
+ day in between (`--muted`), including outside-of-column corners at a week
45
+ wrap (`.week > .day:first-child:has([data-selected])` /
46
+ `:last-child`, replacing upstream's Tailwind arbitrary-attribute
47
+ selector).
48
+ - **Today**: gets a `--muted` cell fill (`.today`) unless it is also
49
+ selected, in which case the selection fill on the day button wins and the
50
+ cell's own rounding is suppressed so the two don't visually double up.
51
+ - **Outside days**: `showOutsideDays` renders them dimmed
52
+ (`--muted-foreground`, `.outside`) rather than hidden, so the grid never
53
+ reflows between months.
54
+ - **Disabled days**: `.disabled` dims to 50% opacity and the day button
55
+ itself carries the native `disabled` attribute (via react-day-picker),
56
+ so they are unreachable by keyboard, not just visually muted.
57
+ - **DayButton**: `CalendarDayButton` (exported, like upstream's
58
+ `CalendarDayButton`) is the default `components.DayButton` — it derives
59
+ `data-selected-single`/`data-range-start`/`data-range-end`/
60
+ `data-range-middle` from react-day-picker's own `modifiers` and moves
61
+ focus onto itself when react-day-picker's roving-tabindex lands on it
62
+ (arrow-key navigation). Pass your own `components.DayButton` to replace
63
+ it, or import `CalendarDayButton` to compose on top of it.
64
+ - **Dropdown navigation**: `captionLayout="dropdown"` (and its two partial
65
+ variants) render native month/year `<select>` elements, invisibly
66
+ overlaying the visible chip — the same interop pattern as `select.tsx`'s
67
+ Base UI trigger, applied to a plain `<select>` since react-day-picker
68
+ renders one directly rather than exposing a styleable primitive.
69
+
70
+ ## Examples
71
+
72
+ ```tsx
73
+ import { Calendar } from '@gears-frontx/ui-kit';
74
+
75
+ // Single day
76
+ const [date, setDate] = useState<Date>();
77
+ <Calendar mode="single" selected={date} onSelect={setDate} />
78
+
79
+ // Range, two months side by side
80
+ const [range, setRange] = useState<DateRange>();
81
+ <Calendar mode="range" selected={range} onSelect={setRange} numberOfMonths={2} />
82
+
83
+ // Date-of-birth style dropdown navigation
84
+ <Calendar mode="single" selected={date} onSelect={setDate} captionLayout="dropdown" />
85
+ ```
86
+
87
+ ## Deviations from upstream
88
+
89
+ - Upstream merges `getDefaultClassNames()` (react-day-picker's own
90
+ `rdp-*` class hooks) alongside its Tailwind classes. This port drops
91
+ that merge: the kit imports no react-day-picker stylesheet for those
92
+ hooks to matter against, so carrying them forward would only be inert
93
+ noise in the DOM.
94
+ - Upstream threads a `buttonVariant` prop through to a shadcn `Button` for
95
+ the prev/next nav buttons (any of Button's variants). The kit's nav
96
+ buttons are plain CSS (ghost-only look) rather than a rendered `Button`
97
+ instance — narrower than upstream's axis, kept out of scope as a
98
+ variant no `date-picker.tsx` usage needs today.
99
+ - Upstream's `day` cell carries a `::after` pseudo-element on
100
+ `range_start`/`range_end` that overflows 1rem past the cell edge to
101
+ patch a table/flex cell-boundary seam. The kit's day cells already sit
102
+ flush against each other (no gap in `.week`'s flex row), so there is no
103
+ seam to patch and the pseudo-element is dropped.
104
+ - The nav overlay (`.nav`, absolutely positioned across the whole caption
105
+ row) adds `pointer-events: none`, with the two buttons taking their own
106
+ back. Upstream leaves this to paint order alone (the caption's `<select>`
107
+ comes later in the DOM, so it happens to sit above the nav), which
108
+ silently breaks the moment anything gives the nav a stacking order.
109
+ Declaring the pass-through states the intent instead.
110
+ - `CalendarDayButton` carries no `data-day` attribute of its own, where
111
+ upstream repeats one on the button. react-day-picker already sets
112
+ `data-day="YYYY-MM-DD"` on the gridcell that wraps it, so the button
113
+ copy added nothing but a second, locale-formatted spelling of the same
114
+ day — query the cell's ISO value instead.
package/dist/docs/card.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # Card
2
2
 
3
- A container for grouping related content and actions — a bounded surface
4
- with its own background and shadow. The boundary is a 1px ring drawn via
5
- `box-shadow`, not a CSS `border` — adding your own `border` draws a
6
- second ring rather than replacing the existing one. Card has no Base UI
7
- primitive: every part is a plain styled `div` (no portal, no open state,
8
- no keyboard behavior to inherit).
3
+ A container for grouping related content and actions — a flat bounded
4
+ surface: background, a 1px `--border` stroke, no drop shadow. The
5
+ boundary is a real CSS `border`, so your own `border` on the root
6
+ replaces it rather than adding a second edge beside it. Card is not a
7
+ floating popup and deliberately does not share Dialog's/DropdownMenu's
8
+ `--popover-*` chrome. Card has no Base UI primitive: every part is a
9
+ plain styled `div` (no portal, no open state, no keyboard behavior to
10
+ inherit).
9
11
 
10
12
  Composition: `Card` (root) → `CardHeader` (→ `CardTitle`, optional
11
13
  `CardDescription`, optional `CardAction`) → `CardContent` → `CardFooter`.
@@ -53,6 +55,12 @@ than a decorative grouping, supply your own heading (e.g. wrap the text
53
55
  in an `h2`/`h3`) so the page keeps a document outline; `CardTitle` alone
54
56
  contributes nothing to it.
55
57
 
58
+ `CardFooter` is a plain flex row and contributes **no gap of its own** —
59
+ two buttons dropped straight into it render flush against each other.
60
+ Space them on the footer, the way the upstream card demos do
61
+ (`justify-end gap-2` there): `style={{ gap: 'var(--space-2)' }}` or your
62
+ own class.
63
+
56
64
  `CardHeader` and `CardFooter` sit flush against `CardContent`, with no
57
65
  divider by default. To add one, put a border on the part via `className`
58
66
  (e.g. `border-top: 1px solid var(--border)` on `CardFooter`) and pair it
@@ -91,7 +99,7 @@ import {
91
99
  <CardContent>
92
100
  <p>Next invoice on the 1st.</p>
93
101
  </CardContent>
94
- <CardFooter>
102
+ <CardFooter style={{ gap: 'var(--space-2)' }}>
95
103
  <Button variant="outline">Cancel</Button>
96
104
  <Button>Upgrade</Button>
97
105
  </CardFooter>