xertica-ui 2.0.6 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/CHANGELOG.md +311 -298
  2. package/README.md +83 -69
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +473 -473
  6. package/components/assistant/index.ts +6 -6
  7. package/components/assistant/xertica-assistant/xertica-assistant.tsx +4 -4
  8. package/components/blocks/card-patterns/ActivityCard.tsx +72 -72
  9. package/components/blocks/card-patterns/FeatureCard.tsx +100 -100
  10. package/components/blocks/card-patterns/NotificationCard.tsx +127 -127
  11. package/components/blocks/card-patterns/ProfileCard.tsx +84 -84
  12. package/components/blocks/card-patterns/ProjectCard.tsx +89 -89
  13. package/components/blocks/card-patterns/QuickActionCard.tsx +62 -62
  14. package/components/blocks/card-patterns/card-patterns.stories.tsx +445 -445
  15. package/components/blocks/card-patterns/index.ts +17 -17
  16. package/components/blocks/index.ts +1 -1
  17. package/components/brand/index.ts +6 -6
  18. package/components/brand/xertica-provider/XerticaProvider.tsx +48 -48
  19. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  20. package/components/brand/xertica-provider/xertica-provider.test.tsx +52 -52
  21. package/components/examples/MapExamples.tsx +282 -282
  22. package/components/examples/SimpleFilterableMap.tsx +191 -191
  23. package/components/examples/index.ts +51 -51
  24. package/components/figma/ImageWithFallback.tsx +27 -27
  25. package/components/hooks/index.ts +7 -6
  26. package/components/index.ts +2 -8
  27. package/components/layout/header/header.test.tsx +8 -8
  28. package/components/layout/header/header.tsx +4 -4
  29. package/components/layout/index.ts +2 -2
  30. package/components/layout/sidebar/sidebar.mdx +1 -1
  31. package/components/layout/sidebar/sidebar.stories.tsx +6 -6
  32. package/components/layout/sidebar/sidebar.test.tsx +11 -11
  33. package/components/layout/sidebar/sidebar.tsx +34 -34
  34. package/components/media/FloatingMediaWrapper.tsx +11 -11
  35. package/components/media/audio-player/AudioPlayer.tsx +22 -22
  36. package/components/media/index.ts +3 -3
  37. package/components/pages/home-content/HomeContent.tsx +7 -7
  38. package/components/pages/home-content/home-content.mdx +62 -62
  39. package/components/pages/home-page/HomePage.stories.tsx +39 -39
  40. package/components/pages/home-page/HomePage.tsx +12 -12
  41. package/components/pages/home-page/home-page.mdx +53 -53
  42. package/components/pages/index.ts +8 -0
  43. package/components/pages/template-content/TemplateContent.tsx +10 -10
  44. package/components/pages/template-content/template-content.mdx +61 -61
  45. package/components/pages/template-page/TemplatePage.stories.tsx +39 -39
  46. package/components/pages/template-page/TemplatePage.tsx +11 -11
  47. package/components/pages/template-page/template-page.mdx +53 -53
  48. package/components/public-api-smoke.test.tsx +52 -45
  49. package/components/shared/assistant-utils.ts +43 -43
  50. package/components/ui/accordion/accordion.mdx +8 -8
  51. package/components/ui/accordion/accordion.stories.tsx +53 -53
  52. package/components/ui/alert/alert.mdx +8 -8
  53. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  54. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  55. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  56. package/components/ui/avatar/avatar.mdx +8 -8
  57. package/components/ui/badge/badge.mdx +8 -8
  58. package/components/ui/badge/badge.tsx +9 -9
  59. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  60. package/components/ui/button/button.mdx +8 -8
  61. package/components/ui/calendar/calendar.mdx +8 -8
  62. package/components/ui/calendar/calendar.tsx +258 -258
  63. package/components/ui/card/card.mdx +8 -8
  64. package/components/ui/card/card.stories.tsx +245 -245
  65. package/components/ui/carousel/carousel.mdx +8 -8
  66. package/components/ui/chart/chart.mdx +8 -8
  67. package/components/ui/chart/chart.stories.tsx +277 -277
  68. package/components/ui/chart/chart.test.tsx +154 -154
  69. package/components/ui/chart/chart.tsx +1494 -1494
  70. package/components/ui/checkbox/checkbox.mdx +8 -8
  71. package/components/ui/checkbox/checkbox.stories.tsx +20 -20
  72. package/components/ui/collapsible/collapsible.mdx +8 -8
  73. package/components/ui/command/command.mdx +8 -8
  74. package/components/ui/context-menu/context-menu.mdx +8 -8
  75. package/components/ui/dialog/dialog.mdx +8 -8
  76. package/components/ui/drawer/drawer.mdx +8 -8
  77. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  78. package/components/ui/empty/empty.mdx +8 -8
  79. package/components/ui/file-upload/file-upload.mdx +8 -8
  80. package/components/ui/google-maps-loader/google-maps-loader.tsx +2 -2
  81. package/components/ui/hover-card/hover-card.mdx +8 -8
  82. package/components/ui/index.ts +107 -41
  83. package/components/ui/input/input.mdx +8 -8
  84. package/components/ui/input-otp/input-otp.mdx +8 -8
  85. package/components/ui/input-otp/input-otp.stories.tsx +6 -6
  86. package/components/ui/label/label.mdx +8 -8
  87. package/components/ui/map/map.mdx +8 -8
  88. package/components/ui/map/map.stories.tsx +51 -51
  89. package/components/ui/map/map.tsx +2 -2
  90. package/components/ui/menubar/menubar.mdx +8 -8
  91. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  92. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  93. package/components/ui/pagination/pagination.mdx +8 -8
  94. package/components/ui/pagination/pagination.stories.tsx +10 -10
  95. package/components/ui/popover/popover.mdx +8 -8
  96. package/components/ui/progress/progress.mdx +8 -8
  97. package/components/ui/progress/progress.tsx +68 -68
  98. package/components/ui/radio-group/radio-group.mdx +8 -8
  99. package/components/ui/rating/rating.mdx +8 -8
  100. package/components/ui/resizable/resizable.mdx +8 -8
  101. package/components/ui/rich-text-editor/rich-text-editor.tsx +2 -2
  102. package/components/ui/route-map/route-map.mdx +8 -8
  103. package/components/ui/route-map/route-map.tsx +2 -2
  104. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  105. package/components/ui/search/search.mdx +8 -8
  106. package/components/ui/select/select.mdx +8 -8
  107. package/components/ui/select/select.stories.tsx +9 -9
  108. package/components/ui/separator/separator.mdx +8 -8
  109. package/components/ui/sheet/sheet.mdx +8 -8
  110. package/components/ui/simple-map/simple-map.mdx +8 -8
  111. package/components/ui/skeleton/skeleton.mdx +8 -8
  112. package/components/ui/slider/slider.mdx +8 -8
  113. package/components/ui/sonner/sonner.mdx +8 -8
  114. package/components/ui/stats-card/stats-card.mdx +8 -8
  115. package/components/ui/stepper/stepper.mdx +8 -8
  116. package/components/ui/switch/switch.mdx +8 -8
  117. package/components/ui/switch/switch.stories.tsx +20 -20
  118. package/components/ui/table/table.mdx +8 -8
  119. package/components/ui/tabs/tabs.mdx +8 -8
  120. package/components/ui/tabs/tabs.stories.tsx +26 -26
  121. package/components/ui/textarea/textarea.mdx +8 -8
  122. package/components/ui/timeline/timeline.mdx +8 -8
  123. package/components/ui/toggle/toggle.mdx +8 -8
  124. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  125. package/components/ui/tooltip/tooltip.mdx +8 -8
  126. package/components/ui/tree-view/tree-view.mdx +8 -8
  127. package/components.json +1512 -1512
  128. package/contexts/ApiKeyContext.tsx +72 -72
  129. package/contexts/BrandColorsContext.tsx +26 -26
  130. package/contexts/LanguageContext.tsx +13 -13
  131. package/contexts/LayoutContext.test.tsx +11 -11
  132. package/contexts/LayoutContext.tsx +29 -29
  133. package/contexts/ThemeContext.tsx +26 -26
  134. package/contexts/theme-data.ts +4 -4
  135. package/dist/{use-mobile-CG2-SdXV.cjs → AssistantChart-9w31gdAb.cjs} +198 -1070
  136. package/dist/{use-mobile-CYuAuGDl.js → AssistantChart-CVzmmhx4.js} +160 -1025
  137. package/dist/{AudioPlayer-C12BjQBV.cjs → AudioPlayer-CbZId7cj.cjs} +53 -52
  138. package/dist/{AudioPlayer-DcFKRJE_.js → AudioPlayer-DU8zt8-z.js} +4 -3
  139. package/dist/CodeBlock-DuxdtN-l.js +219 -0
  140. package/dist/CodeBlock-POVYONvC.cjs +218 -0
  141. package/dist/FeatureCard-Bcb3Zi54.js +302 -0
  142. package/dist/FeatureCard-CkPd2psQ.cjs +301 -0
  143. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  144. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  145. package/dist/VerifyEmailPage-Bae2cBXT.cjs +2827 -0
  146. package/dist/VerifyEmailPage-CbgjOF0v.js +2828 -0
  147. package/dist/VerifyEmailPage-CdYPSJoO.js +2828 -0
  148. package/dist/VerifyEmailPage-DMBh4NM9.cjs +2827 -0
  149. package/dist/{XerticaOrbe-zwS1p2a8.js → XerticaOrbe-BGIB1CTK.js} +1 -1
  150. package/dist/{XerticaOrbe-KL1RBHzw.cjs → XerticaOrbe-FWGjBj0U.cjs} +2 -2
  151. package/dist/{XerticaProvider-hSwhNQex.js → XerticaProvider-BITjgC5p.js} +3 -3
  152. package/dist/{XerticaProvider-BlY2limY.cjs → XerticaProvider-By8q3Roe.cjs} +3 -3
  153. package/dist/{LanguageSelector-B5YfbHra.js → XerticaXLogo-DzXKZBtG.js} +84 -84
  154. package/dist/{LanguageSelector-D6uacAIM.cjs → XerticaXLogo-xWbElCZj.cjs} +84 -84
  155. package/dist/alert-dialog-iDe5VE5o.js +842 -0
  156. package/dist/alert-dialog-yckpaOpy.cjs +865 -0
  157. package/dist/assistant.cjs.js +6 -5
  158. package/dist/assistant.es.js +2 -1
  159. package/dist/avatar-Cq5_E8r9.cjs +78 -0
  160. package/dist/avatar-DSBfJMRJ.js +62 -0
  161. package/dist/blocks.cjs.js +9 -0
  162. package/dist/blocks.es.js +9 -0
  163. package/dist/brand.cjs.js +7 -7
  164. package/dist/brand.es.js +3 -3
  165. package/dist/{breadcrumb-CqJ7bHY5.js → breadcrumb-CVzzzqfo.js} +7 -65
  166. package/dist/{breadcrumb-m9Hb2_XN.cjs → breadcrumb-DnDlQFg2.cjs} +7 -82
  167. package/dist/{tooltip-Ded96neP.cjs → button-0CXwCRTm.cjs} +0 -52
  168. package/dist/{tooltip-HDOoD2-0.js → button-qkz7Icqf.js} +2 -53
  169. package/dist/card-DJTsYhLL.cjs +89 -0
  170. package/dist/card-fi8zAN-I.js +90 -0
  171. package/dist/components/hooks/index.d.ts +1 -0
  172. package/dist/components/index.d.ts +1 -7
  173. package/dist/components/pages/index.d.ts +8 -0
  174. package/dist/components/ui/index.d.ts +64 -0
  175. package/dist/{dropdown-menu-BDB5CmQs.cjs → dropdown-menu-Ze1YZFyc.cjs} +10 -10
  176. package/dist/{dropdown-menu-DQidbKBD.js → dropdown-menu-nc_Lvg-u.js} +1 -1
  177. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  178. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  179. package/dist/hooks.cjs.js +4 -1
  180. package/dist/hooks.es.js +4 -1
  181. package/dist/index-CkTUgOwX.js +8 -0
  182. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  183. package/dist/index.cjs.js +247 -3326
  184. package/dist/index.es.js +328 -3416
  185. package/dist/index.umd.js +454 -1027
  186. package/dist/{input-DWANSKGb.cjs → input-CPl84zAx.cjs} +11 -5
  187. package/dist/{input-2R4loU86.js → input-D-6IsAca.js} +10 -4
  188. package/dist/layout.cjs.js +3 -3
  189. package/dist/layout.es.js +1 -1
  190. package/dist/media.cjs.js +1 -1
  191. package/dist/media.es.js +1 -1
  192. package/dist/pages.cjs.js +11 -0
  193. package/dist/pages.es.js +11 -0
  194. package/dist/progress-BLwqortq.cjs +105 -0
  195. package/dist/progress-D9mtsf6j.js +89 -0
  196. package/dist/{rich-text-editor-D76gD-QI.js → rich-text-editor-BrdC5evx.js} +43 -127
  197. package/dist/{rich-text-editor-skplNlBM.cjs → rich-text-editor-DbV-S7Fi.cjs} +97 -181
  198. package/dist/{select-Bkbr0f-Z.cjs → select-DT7Zjn42.cjs} +9 -9
  199. package/dist/{select-CvIVdX2n.js → select-En8DkoaQ.js} +1 -1
  200. package/dist/{header-WfEywpyc.cjs → sidebar-BcJ6LxvX.cjs} +147 -145
  201. package/dist/{header-tifNQn2U.js → sidebar-WoKvFWCN.js} +130 -128
  202. package/dist/{slider-Bc5Hd0y1.js → slider-C0JKA9k3.js} +1 -1
  203. package/dist/{slider-N7hFFj6X.cjs → slider-CPmwzm_3.cjs} +4 -4
  204. package/dist/tooltip-CNtsL5cB.cjs +71 -0
  205. package/dist/tooltip-CTyZCD8h.js +55 -0
  206. package/dist/ui.cjs.js +212 -200
  207. package/dist/ui.es.js +275 -263
  208. package/dist/use-mobile-CNwiBNxu.js +33 -0
  209. package/dist/use-mobile-Dlf74ufz.cjs +49 -0
  210. package/dist/{CodeBlock-BeSt1h5P.js → xertica-assistant-DIM_Do1k.js} +6 -218
  211. package/dist/{CodeBlock-Bnmeu5ez.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  212. package/dist/{CodeBlock-DnYNI8rQ.js → xertica-assistant-gnCJdcZY.js} +7 -219
  213. package/dist/{CodeBlock-7TTgmdGG.cjs → xertica-assistant-yyrR0JKl.cjs} +50 -262
  214. package/dist/xertica-ui.css +2 -2
  215. package/docs/architecture.md +1 -0
  216. package/docs/components/assistant.md +1 -0
  217. package/docs/components/calendar.md +154 -154
  218. package/docs/components/card-patterns.md +337 -337
  219. package/docs/components/card.md +235 -235
  220. package/docs/components/map.md +84 -84
  221. package/docs/components/xertica-provider.md +24 -24
  222. package/docs/decision-tree.md +287 -287
  223. package/docs/llms.md +2 -2
  224. package/guidelines/Guidelines.md +250 -250
  225. package/hooks/useTheme.ts +3 -3
  226. package/imports/Podcast.tsx +388 -388
  227. package/imports/XerticaAi.tsx +45 -45
  228. package/imports/XerticaX.tsx +19 -19
  229. package/imports/svg-aueiaqngck.ts +11 -11
  230. package/imports/svg-v9krss1ozd.ts +16 -16
  231. package/imports/svg-vhrdofe3qe.ts +5 -5
  232. package/llms-compact.txt +327 -327
  233. package/llms.txt +160 -160
  234. package/package.json +203 -193
  235. package/styles/globals.css +13 -15
  236. package/styles/xertica/app-overrides/chat.css +61 -61
  237. package/styles/xertica/app-overrides/scrollbar.css +33 -33
  238. package/styles/xertica/integrations/google-maps.css +76 -76
  239. package/styles/xertica/integrations/sonner.css +73 -73
  240. package/styles/xertica/tokens.css +12 -12
  241. package/templates/CLAUDE.md +172 -172
  242. package/templates/guidelines/Guidelines.md +313 -313
  243. package/templates/package.json +3 -3
  244. package/templates/src/app/App.tsx +21 -21
  245. package/templates/src/app/components/AppLayout.tsx +40 -40
  246. package/templates/src/app/components/AuthGuard.tsx +85 -76
  247. package/templates/src/features/auth/index.ts +4 -4
  248. package/templates/src/features/auth/ui/AuthPageShell.tsx +34 -34
  249. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  250. package/templates/src/features/auth/ui/LoginContent.tsx +90 -90
  251. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +151 -151
  252. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +59 -59
  253. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +82 -82
  254. package/templates/src/features/home/index.ts +1 -1
  255. package/templates/src/features/home/ui/HomeContent.tsx +100 -100
  256. package/templates/src/features/template/index.ts +5 -5
  257. package/templates/src/features/template/ui/CrudTemplate.tsx +3 -3
  258. package/templates/src/features/template/ui/DashboardTemplate.tsx +3 -3
  259. package/templates/src/features/template/ui/FormTemplate.tsx +120 -120
  260. package/templates/src/features/template/ui/LoginTemplate.tsx +3 -3
  261. package/templates/src/pages/AssistantPage.tsx +43 -0
  262. package/templates/src/pages/ForgotPasswordPage.tsx +6 -6
  263. package/templates/src/pages/HomePage.tsx +57 -57
  264. package/templates/src/pages/LoginPage.tsx +10 -10
  265. package/templates/src/pages/ResetPasswordPage.tsx +6 -6
  266. package/templates/src/pages/TemplatePage.tsx +30 -30
  267. package/templates/src/pages/VerifyEmailPage.tsx +6 -6
  268. package/templates/src/shared/config/navigation.ts +20 -20
  269. package/templates/src/shared/lib/auth.ts +20 -20
  270. package/templates/src/shared/types/auth.ts +3 -3
  271. package/templates/src/styles/index.css +1 -1
  272. package/templates/tsconfig.json +5 -5
  273. package/templates/tsconfig.node.tsbuildinfo +1 -1
  274. package/templates/tsconfig.tsbuildinfo +1 -1
  275. package/templates/vite.config.js +20 -22
  276. package/utils/gemini.ts +140 -140
  277. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  278. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  279. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  280. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  281. package/dist/CodeBlock-BgfYL_rD.cjs +0 -2094
  282. package/dist/CodeBlock-BlcqlA9M.cjs +0 -2094
  283. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  284. package/dist/CodeBlock-CIySIuYr.js +0 -2078
  285. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  286. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  287. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  288. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  289. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  290. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  291. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  292. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  293. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  294. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  295. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  296. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  297. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  298. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  299. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  300. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  301. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  302. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  303. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  304. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  305. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  306. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  307. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  308. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  309. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  310. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  311. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  312. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  313. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  314. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  315. package/dist/header-Cgy6vYPk.cjs +0 -731
  316. package/dist/header-DRlT4jgI.js +0 -715
  317. package/dist/header-Dux00SI4.cjs +0 -731
  318. package/dist/header-EkGKXPsD.js +0 -715
  319. package/dist/index-BhapVLVj.js +0 -8
  320. package/dist/index-D6fxYEY8.cjs +0 -7
  321. package/dist/index-DW5tYe26.js +0 -8
  322. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  323. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  324. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  325. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  326. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  327. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  328. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  329. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  330. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  331. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  332. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  333. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  334. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  335. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  336. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  337. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  338. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  339. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  340. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  341. package/dist/use-mobile-BXuYROXM.js +0 -4202
  342. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  343. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  344. package/dist/use-mobile-BvYdisLP.js +0 -4202
  345. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  346. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  347. package/dist/use-mobile-CaENcqm-.js +0 -4508
  348. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  349. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  350. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  351. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  352. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  353. package/dist/use-mobile-DlceKf8a.js +0 -4359
  354. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  355. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  356. package/dist/use-mobile-bnKcua_i.js +0 -4202
  357. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
package/CHANGELOG.md CHANGED
@@ -1,298 +1,311 @@
1
- # Changelog
2
-
3
- All notable changes to `xertica-ui` will be documented in this file.
4
-
5
- Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
- Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ---
9
-
10
- ## [2.1.0] — 2026-05-13
11
-
12
- ### Added
13
-
14
- - **`components/blocks/card-patterns/`**novo domínio `blocks/` com 6 componentes de alto nível compostos exclusivamente de primitivos `ui/`:
15
- - **`FeatureCard`**ícone com fundo colorido, título, badge opcional, descrição e botão de ação. Suporta 10 tokens de cor (`primary`, `chart-1..5`, `success`, `info`, `warning`, `destructive`). Replica o padrão de cards da Home page.
16
- - **`ActivityCard`** — feed de atividades recentes com avatar, descrição de ação, timestamp e badge por tipo (`create`, `update`, `delete`, `comment`, `deploy`).
17
- - **`ProfileCard`** — card de usuário/membro com avatar, badge de status (`online`, `offline`, `away`, `busy`), linha de stats e ações primária/secundária.
18
- - **`ProjectCard`** — status de projeto com badge, barra de progresso (usa `Progress` com variant semântica por status), stack de avatares de membros e data limite.
19
- - **`QuickActionCard`**tile de ação rápida com ícone em caixa colorida, badge e botão full-width.
20
- - **`NotificationCard`** — lista de notificações com indicador de não-lido, badge de tipo, "Marcar todas como lidas" e "Ver todas".
21
- - **Exportação do domínio `blocks/`** — todos os componentes disponíveis via `import { ... } from 'xertica-ui'` e via `components/blocks/index.ts`.
22
- - **Documentação** — criado `docs/components/card-patterns.md` com props, exemplos e layout de dashboard completo para todos os 6 block components.
23
-
24
- ### Changed
25
-
26
- - **Calendardropdown caption styling** — quando `captionLayout="dropdown"` ou variações, os seletores de mês/ano agora têm visual de input (borda, fundo `bg-background`, focus ring `ring-primary`, `rounded-[var(--radius)]`, padding compacto fixo `px-2.5 py-1`). O `caption_label` em modo dropdown passa a usar `h-full w-full` com layout flexível.
27
- - **Calendarprop `size` removida** o tamanho e o arredondamento do trigger ("Pick a date") são responsabilidade do elemento trigger, não do `Calendar`. A story `InPopover` demonstra o padrão correto com `triggerSizeClasses` aplicado diretamente ao `<Button>` com `rounded-[var(--radius)]` para alinhar com o token do `Input`.
28
- - **Card stories** enriquecidas com 3 novas variações: `WithAction` (uso de `CardAction` no header), `TeamMember` (grid de member cards com avatar e status), `SettingsCard` (lista de settings com `Separator` e `Badge`). Background `bg-muted` adicionado via decorator global da stories file para contraste com o fundo dos cards.
29
- - **Storybookdocs stories** — adicionado `render: (args) => <Component {...args} />` no nível do `meta` em todos os 60 arquivos de stories em `components/ui/`. Resolve o problema onde stories com apenas `args` (sem `render` explícito) mostravam a mesma variação repetida na aba Docs por dependerem do `projectAnnotations.render` implícito do framework React.
30
- - **Storybook `preview.tsx`**`min-h-screen` passou a ser condicional a `layout: 'fullscreen'`, resolvendo a altura excessiva dos exemplos na aba Docs.
31
- - **Documentação** atualizados `calendar.md` (props `captionLayout`/`buttonVariant`, nota sobre `size` no trigger), `card.md` (`CardAction` na anatomia, exemplos WithAction/Stats/TeamMember/Settings), `chart.md` (nova seção Stacked Bar Chart), `architecture.md` (domínio `blocks/` com árvore de arquivos).
32
-
33
- ### Fixed
34
-
35
- - **Chart — stacked bar radius** — em `DashboardBarChart` com `stacked`, apenas a série no topo de cada `stackId` recebe `radius={[4,4,0,0]}`; as demais recebem `radius={[0,0,0,0]}`. Elimina a borda arredondada no topo das barras intermediárias e inferiores da pilha.
36
- - **`FeatureCard` — badge overflow** — alterado de `flex items-center` para `flex flex-wrap` no container título+badge, garantindo que o badge quebre para a linha seguinte em vez de vazar fora do card quando o título ocupa toda a largura disponível.
37
-
38
- ---
39
-
40
- ## [2.0.6]2026-05-13
41
-
42
- ### Added
43
-
44
- - **Contrato de independência dos componentes** documentado que `xertica-ui/style.css` é a única importação global obrigatória e que componentes públicos devem funcionar isoladamente sempre que possível.
45
- - **`useOptionalLayout`** — nova API compatível para componentes reutilizáveis consumirem o layout com fallback seguro, mantendo `useLayout` como hook estrito para apps que querem falhar cedo.
46
- - **Smoke tests de API pública** — adicionada validação de import/render dos subpaths públicos (`ui`, `brand`, `layout`, `assistant`, `media` e `hooks`).
47
- - **Exports públicos de Maps** — `useMapLayers`, `GOOGLE_MAPS_ID` e `GOOGLE_MAPS_LIBRARIES` agora são expostos pelo subpath `xertica-ui/ui`.
48
-
49
- ### Changed
50
-
51
- - **`XerticaProvider` completo** — passa a compor providers de theme, brand colors, language, layout, assistant, API keys, Google Maps, tooltip e toaster como wrapper de conveniência para apps consumidores.
52
- - **Componentes com contexto de layout** — `Header`, `Sidebar`, páginas e componentes de mídia foram ajustados para renderizar com fallback interno quando importados sem provider.
53
- - **Arquitetura FSD/FDA** tipos compartilhados do assistant foram movidos para camada neutra, evitando dependência runtime de `components/shared` para implementação de feature.
54
- - **Documentação LLM e componentes** — README, docs de provider/mapa, `llms.txt`, `llms-compact.txt` e `docs/llms.md` foram alinhados ao contrato de independência e aos subpaths consumíveis.
55
- - **Storybook Docs de UI** — páginas MDX dos componentes de UI agora renderizam as variações reais das stories, evitando repetição do mesmo exemplo nos blocos de variação.
56
- - **Storybook Maps** — stories de mapa usam um frame responsivo mais largo para melhorar a visualização na aba Docs.
57
-
58
- ### Fixed
59
-
60
- - **Guards de browser/SSR** — providers e componentes browser-only agora protegem acessos a `window`, `document`, `localStorage`, `navigator` e scripts externos.
61
- - **Google Maps sem configuração** — componentes relacionados a Maps renderizam estados de configuração/erro sem quebrar a aplicação consumidora.
62
-
63
- ---
64
-
65
- ## [2.0.5]2026-05-12
66
-
67
- ### Added
68
-
69
- - **`llms-compact.txt`**novo arquivo de referência compacto para LLMs, sintetizando todos os componentes em formato reduzido ideal para contextos de tokens limitados.
70
- - **`docs/decision-tree.md`** — guia de árvore de decisão para agentes de IA selecionarem o componente correto com base nos requisitos da UI.
71
- - **`templates/CLAUDE.md`** — `CLAUDE.md` agora é scaffolded automaticamente em projetos criados via `npx xertica-ui@latest init`, fornecendo contexto arquitetural (FSD/FDA, subpath imports, tokens semânticos) para Claude Code e outros assistentes de IA.
72
- - **Storybook stories** — adicionadas stories interativas para Accordion, AlertDialog, Button, Checkbox, Dialog, Input, Switch, Tabs, HomePage e TemplatePage.
73
- - **`components/pages/home-page/home-page.mdx`** e **`template-page.mdx`** novas entradas de documentação MDX para as page components.
74
-
75
- ### Changed
76
-
77
- - **`guidelines/Guidelines.md`** — reescrita completa do guia de arquitetura FSD/FDA: maior detalhamento de responsabilidades por camada, convenções de import e fluxo de adição de novas rotas.
78
- - **`components.json`**atualização completa do registro de componentes, cobrindo todos os 97 componentes com metadados de subpath, props e variantes.
79
- - **`llms.txt`** — seção de subpath imports e mapeamento de camadas FSD/FDA atualizados.
80
- - **`vite.config.ts`** — ajustes no build multi-entry para garantir correta emissão dos arquivos CJS/ESM.
81
-
82
- ### Fixed
83
-
84
- - **`npx xertica-ui init` usa versão em cache** — documentado que o npx armazena pacotes em cache localmente sem TTL curto. Sempre use `npx xertica-ui@latest init` para garantir a versão mais recente. O `templates/CLAUDE.md` scaffolded no projeto gerado inclui essa orientação.
85
-
86
- ---
87
-
88
- ## [2.0.3] — 2026-05-11
89
-
90
- ### Added
91
-
92
- - **CLI `update` atualização de projeto** novo modo no comando `update` permite atualizar os arquivos do projeto (app shell, shared, features, pages) para qualquer versão publicada do `xertica-ui`, com seleção granular de quais partes atualizar e confirmação antes de sobrescrever.
93
-
94
- ---
95
-
96
- ## [2.0.2] — 2026-05-11
97
-
98
- ### Fixed
99
-
100
- - **CLI rewritten for FSD/FDA structure** — `npx xertica-ui@latest init` agora copia corretamente a estrutura Feature-Sliced Design:
101
- - Removida cópia de `src/app/routes.tsx` (arquivo não existe mais após refatoração)
102
- - Adicionada cópia de `src/app/components/AppLayout.tsx`
103
- - Adicionada cópia completa de `src/shared/` (`auth.ts`, `navigation.ts`, `types/auth.ts`)
104
- - Adicionada cópia de `src/features/auth|home|template` conforme seleções do usuário
105
- - Cópia de pages corrigida de `src/app/pages/` `src/pages/`
106
- - `AuthGuard.tsx` agora gerado dinamicamente com imports e rotas apenas das páginas selecionadas
107
- - **`generateDemoResponse` exportado via `xertica-ui/assistant`** — estava ausente do barrel causando `SyntaxError: does not provide an export named 'generateDemoResponse'`
108
- - **Build corrigido: UMD → CJS** — múltiplos entry points não são suportados com formato UMD no Vite; migrado para CJS (todos os `*.umd.js` → `*.cjs.js` no `package.json` exports)
109
-
110
- ---
111
-
112
- ## [2.0.0] — 2026-05-11
113
-
114
- ### Added
115
-
116
- - **Subpath exports** The package now exposes 6 granular entry points alongside the full root barrel:
117
- - `xertica-ui/ui` all UI primitives (Button, Card, Input, Table, Dialog, etc.)
118
- - `xertica-ui/layout` Sidebar and Header
119
- - `xertica-ui/brand` XerticaProvider, XerticaLogo, XerticaXLogo, XerticaOrbe, ThemeToggle, LanguageSelector
120
- - `xertica-ui/assistant`XerticaAssistant, MarkdownMessage, CodeBlock, FormattedDocument, ModernChatInput
121
- - `xertica-ui/media` VideoPlayer, AudioPlayer, FloatingMediaWrapper
122
- - `xertica-ui/hooks` — useLayout, useTheme, useLanguage, useBrandColors, useAssistente, useApiKey
123
- - Root `from 'xertica-ui'` remains fully supported for backward compatibility.
124
- - **`ImageWithFallback` added to `xertica-ui/ui`** — previously only in the root barrel; now accessible via the `/ui` subpath.
125
- - **Multi-entry Vite build** — `vite.config.ts` now uses `lib.entry` as an object (7 entry points). Output filenames follow `[entryName].[format].js` pattern.
126
- - **CLI template — FSD/FDA architecture** — The scaffolded template was restructured to follow Feature-Sliced Design + Feature-Driven Architecture:
127
- - `src/app/` — BrowserRouter, XerticaProvider, AuthGuard (auth state + route definitions), AppLayout (Sidebar + children shell)
128
- - `src/shared/` — `config/navigation.ts` (route registry), `lib/auth.ts` (localStorage helpers), `types/auth.ts` (User interface)
129
- - `src/features/auth/ui/`LoginContent, ForgotPasswordContent, VerifyEmailContent, ResetPasswordContent; with shared `AuthPageShell` and `SocialLoginButtons` DRY extractions
130
- - `src/features/home/ui/`HomeContent
131
- - `src/features/template/ui/`TemplateContent, FormTemplate
132
- - `src/pages/`thin page wrappers (LoginPage, HomePage, TemplatePage, ForgotPasswordPage, VerifyEmailPage, ResetPasswordPage)
133
- - **`templates/guidelines/Guidelines.md`**new architecture guide documenting FSD/FDA layers, layer responsibilities, and "Adding New Routes" step-by-step.
134
-
135
- ### Changed
136
-
137
- - **Template imports** — All template source files updated to use subpath imports (`xertica-ui/ui`, `xertica-ui/brand`, `xertica-ui/layout`, `xertica-ui/assistant`, `xertica-ui/hooks`) instead of the root barrel.
138
- - **`FormTemplate.tsx` rewritten** — Removed dependency on `@hookform/resolvers/zod`, `react-hook-form`, and `zod` (packages not included in the CLI template's `package.json`). Now uses plain React `useState` + inline validation with only `xertica-ui/ui` primitives.
139
- - **`tsconfig.build.json`**`include` array updated to cover all new barrel source directories (`components/**/*`, `contexts/**/*`, `hooks/**/*`).
140
- - **Documentation** (`llms.txt`, `llms-full.txt`) Added subpath import reference table and FSD/FDA layer mapping.
141
-
142
- ### Fixed
143
-
144
- - **Stale compiled artifacts** — Removed `App.js`, `App.d.ts`, `main.js`, `main.d.ts` from `templates/src/app/` that were being resolved by Vite's extension priority (`.js` before `.tsx`), causing `Failed to fetch dynamically imported module` errors after the FSD restructure.
145
-
146
- ---
147
-
148
- ## [1.10.0] — 2026-05-08
149
-
150
- ### Added
151
-
152
- - **Semantic Variants** Added `success`, `info`, and `warning` variants to components that lacked them:
153
- - **Button** now supports 9 variants: `default`, `secondary`, `outline`, `ghost`, `destructive`, `link`, `success`, `info`, `warning`.
154
- - **Progress** — new `variant` prop (`default`, `success`, `info`, `warning`, `destructive`) colors both the track and the indicator.
155
- - **NotificationBadge** — added `secondary`, `outline`, `success`, `info`, `warning`; standardized `default` to primary color for consistency with Badge and Button.
156
- - **TimelineDot** — added `info` and `outline` variants; replaced hardcoded `rgb()` values with semantic CSS tokens (`bg-success`, `bg-warning`).
157
- - **DialogBody** — new sub-component for the Dialog. When used, `DialogHeader` and `DialogFooter` stay pinned while `DialogBody` scrolls independently. Exported from `xertica-ui`.
158
- - **Dialog height management** — `DialogContent` now has `max-h-[calc(100dvh-2rem)] overflow-hidden`. The close button (×) is pinned and never scrolls with content. `size="full"` fills the full viewport height.
159
- - **Header `breadcrumbSlot`** — new prop accepting any `ReactNode` rendered immediately after the breadcrumb/title area (badges, buttons, status chips, etc.).
160
- - **Sidebar default variant groups** — `variant="default"` now renders `navigationGroups` with labeled group headers. Each `RouteConfig` supports a `children` field (sub-routes shown in a contextual `DropdownMenu` via a `ChevronRight` button at the end of the item).
161
-
162
- ### Fixed
163
-
164
- - **Search double clear icon** — `type="search"` caused browsers to inject a native clear button on top of the custom × icon. Changed to `type="text"`.
165
- - **CSS `@source` path** — CLI template `src/styles/index.css` had `../node_modules/xertica-ui` (one level short); corrected to `../../node_modules/xertica-ui/components`.
166
- - **`theme-map.css` incomplete** — `--color-success`, `--color-info`, `--color-warning` and their `foreground` variants were missing, preventing `bg-success`, `text-info`, etc. from being generated in the compiled library CSS.
167
-
168
- ### Changed
169
-
170
- - **Storybook argTypes** — Multiple components had controls missing from the Storybook panel: Badge (`success`/`info`/`warning` options), Select (`size`), Avatar (`size`), Rating (`readonly` casing), Timeline (`dotVariant`), Dialog (`size` available in all stories). All corrected.
171
- - **LLM documentation** (`llms-full.txt`) Updated Badge, Button, Dialog, Header, NotificationBadge, Progress, Search, Sidebar, and Timeline sections to reflect current APIs.
172
-
173
- ---
174
-
175
- ## [1.9.0] — 2026-05-05
176
-
177
- ### Added
178
- - **Standardized Form Sizing System** — Implemented a unified `size` prop (`sm`, `md`, `lg`) across all form-related components for perfect visual alignment in grid layouts:
179
- - **Text Components** — `Input`, `SelectTrigger`, `Textarea`, `Search`, and `InputOTPSlot` now share consistent height/padding/font-size tokens.
180
- - **Toggle Components** — `Checkbox`, `RadioGroupItem`, and `Switch` now feature dynamic sizing for both containers and internal indicators (check icon, dot, thumb).
181
- - **Labels** — `Label` component now supports `size` to match the text size of the associated input.
182
- - **Reference Guide** — Added `docs/form-sizing.md` as a comprehensive guide for the standardized sizing scale.
183
- - **Assistant Individual Controls** — Added granular control props to `XerticaAssistant` to toggle specific features independently:
184
- - `showHistory`, `showFavorites`, `allowAudioInput`, `allowFileUpload`, `allowDocCreation`, `allowPodcastGen`, `allowResearchGen`.
185
- - **Header Breadcrumb Navigation** — Standardized `Header` to use breadcrumbs as the default navigation pattern:
186
- - Added support for `react-router-dom` links in breadcrumbs to prevent page reloads.
187
- - Configurable hierarchy levels and labels directly via props.
188
-
189
- ### Changed
190
- - **Form Component Architecture** — Migrated form elements from legacy tokens to standardized design system tokens (`bg-background`, `border-border`) for better theme consistency.
191
- - **Documentation & Storybook** — Updated all 9 affected form components with new "Sizes" sections in Storybook (Stories + MDX) and enriched LLM-facing markdown documentation.
192
- - **Unit Testing** — Updated test suites for `Checkbox`, `RadioGroup`, `Switch`, `InputOTP`, `Label`, `Search`, `Select`, and `Textarea` to verify sizing variant classes.
193
-
194
- ### Fixed
195
- - **Search Component** — Removed obsolete `loading` prop which was causing TypeScript errors and was redundant with the current design system patterns.
196
- - **SelectTrigger Sizing** — Standardized `md` height to `h-10` (40px) to match the rest of the form system.
197
-
198
- ---
199
-
200
- ## [1.8.0] 2026-04-27
201
-
202
- ### Added
203
- - **VideoPlayer UI Enhancements** — Added gradient overlay on controls for improved contrast against video content:
204
- - Gradient: `from-black/60 via-black/30 to-transparent` with `pt-12` spacing
205
- - White progress bar with `bg-white/30` track, `bg-white` fill, and `rounded-r-sm` on filled portion
206
- - White icons with `drop-shadow-md` for visibility
207
- - Buttons use `text-white hover:text-white hover:bg-black/50` for proper hover states
208
- - **Slider Visual Fixes** — Improved progress bar alignment:
209
- - Added left margin `ml-2` to track for thumb alignment
210
- - Added `rounded-r-sm` to Range for filled portion
211
- - Adjusted track/margins for proper visual alignment at full value
212
-
213
- ### Changed
214
- - **Documentation** — Updated component counts across all docs:
215
- - `llms.txt`: 75 → 97 components
216
- - `llms-full.txt`: Added statistics table
217
- - `docs/llms.md`: Added statistics section
218
- - `Introduction.mdx`: Added "97 Components" badge
219
- - **components.json** 75 89 components (added missing Media, Assistant, Pages, and Map components)
220
-
221
- ### Fixed
222
- - **Slider Progress Bar** Fixed visual gap where thumb doesn't align with filled bar at end position by adjusting track margins
223
-
224
- ---
225
-
226
- ## [1.7.0] — 2026-04-23
227
-
228
- ### Fixed
229
- - **CLI CSS Theme Import** — Corrected `@theme` → `@theme inline` in both the library's `index.css` and the generated template `src/styles/index.css`. Plain `@theme {}` was causing Tailwind v4 to resolve color tokens statically at build time using the library's defaults, preventing consumer `tokens.css` overrides from propagating into utility classes (`bg-destructive`, `bg-primary`, alert colors, etc.).
230
- - **Dark Mode `--primary`** — Added missing `--primary: var(--xertica-primary)` in the dark mode block of `tokens.css` (library, template, and generator). Components using `bg-primary` were not picking up the dark mode brand color.
231
- - **Dark Mode Chart Tokens** — Generator (`bin/generate-tokens.ts`) now includes `--chart-1` through `--chart-5` in the dark mode section for all generated `tokens.css` files.
232
-
233
- ### Added
234
- - **CLI `update` command** — `npx xertica-ui@latest update` prompts the user to select a new color theme and overwrites `src/styles/xertica/tokens.css` with the newly generated tokens, preserving all other project files.
235
- - **Template `@theme inline` mapping** — Generated `src/styles/index.css` now includes a complete `@theme inline {}` block mapping all tokens (sidebar, charts, gradients, brand, radii) to CSS variable aliases, ensuring full theme coverage for consumer projects.
236
- - **Documentation** — `docs/getting-started.md` updated with CLI `update` command reference and a new "CSS Setup (Critical)" section explaining the `@theme inline` requirement.
237
-
238
- ---
239
-
240
- ## [1.6.0] — 2026-04-20
241
-
242
- ### Added
243
- - **`docs/llms.md`** — Master LLM/AI-agent entrypoint index with full component catalog, token quick reference, and reading order guide.
244
- - **`docs/layout.md`**Complete `LayoutContext` and `useLayout()` API reference.
245
- - **`docs/components/route-map.md`** — New documentation for `RouteMap` component.
246
- - **`docs/components/use-mobile.md`** — New documentation for `useMobile` / `useIsMobile` hooks.
247
- - **`Header`** — New props: `user` (profile with avatar, name, email, and dropdown menu items), `actions` (custom icon action buttons), `showSettings` / `onSettingsClick`, `showLogout` / `onLogoutClick`. Fixed render order: Language Theme Actions Settings → User → Logout.
248
- - **`Sidebar`**New `width` prop (`expandedWidth: number`) for configuring the expanded sidebar pixel width. Width is now read and stored via `LayoutContext.sidebarWidth`.
249
-
250
- ### Changed
251
- - **Documentation** — All 61 component docs, 5 pattern docs, and 6 root docs fully rewritten in English with standardized structure (Overview, When to Use, Anatomy, Props table, Examples, AI Rules, Related Components).
252
- - **JSDoc** — All Portuguese JSDoc comments in `components/ui/` translated to English and enriched with accurate `@ai-rules`.
253
- - **`README.md`**Complete rewrite in English, restructured for npm page quality (quick start, install guide, component catalog, token reference, AI agent entrypoint, troubleshooting).
254
- - **`package.json`** — Version bumped to `1.6.0`. Description translated to English.
255
-
256
- ### Fixed
257
- - **`docs/components/page-header.md`** — Was documenting a wrong API (`title/description/actions`). Now correctly documents the real API: `breadcrumbs[]`, `showLanguageSelector`, `rightContent`, `PageHeaderHeading`, `PageHeaderDescription`.
258
- - **`docs/components/stepper.md`** — Was documenting a `steps[]` array prop. Now correctly documents the composable `<Stepper currentStep> + <Step step label>` API (1-indexed).
259
- - **`docs/components/empty.md`** — Was documenting single-prop component. Now correctly documents the composable sub-component pattern: `Empty > EmptyIcon > EmptyTitle > EmptyDescription > EmptyAction`.
260
- - **`docs/components/stats-card.md`** — `trend` was documented as a string. Now correctly documented as `{ value: number; label?: string }`.
261
- - **`docs/components/chart.md`** — Was documenting raw Recharts usage. Now correctly documents the `ChartContainer + ChartConfig + var(--color-*)` pattern.
262
-
263
- ---
264
-
265
- ## [1.5.2]2026-04-15
266
-
267
- ### Fixed
268
- - Resolved regression where modal components (Dialog/AlertDialog) failed to render in projects initialized via the CLI.
269
- - Implemented robust CSS integration using Tailwind v4 theme mappings.
270
- - Ensured Radix UI portals correctly inherit theme variables.
271
-
272
- ---
273
-
274
- ## [1.5.1]2026-04-14
275
-
276
- ### Changed
277
- - Sidebar: Added `assistente` variant with fixed areas, searchable navigation, and grouped navigation structures.
278
- - Template page updated to demonstrate the assistant sidebar variant.
279
-
280
- ---
281
-
282
- ## [1.5.0] 2026-04-13
283
-
284
- ### Added
285
- - `Sidebar` — `width` / `expandedWidth` prop for configurable expanded sidebar width.
286
- - `LayoutContext` — `sidebarWidth` and `setSidebarWidth` for global sidebar width management.
287
- - `Header`User profile section with avatar, dropdown menu, settings button, and logout button.
288
- - `StatsCard` — KPI metric card component.
289
- - `Timeline` — Chronological event list with dot variants.
290
- - `TreeView` Hierarchical tree navigation.
291
- - `Rating` Star-based rating input.
292
- - `FileUpload` — Drag-and-drop file input.
293
- - `Search` — Pre-built search input with icon and clear button.
294
- - `NotificationBadge` — Dot/count badge overlay.
295
- - `RouteMap`Google Maps route display and direction calculation.
296
- - `Stepper` — Multi-step progress indicator.
297
- - `Map` — Advanced Google Maps integration with markers, circles, polygons, and layers.
298
- - `XerticaAssistant` — Embedded Gemini AI assistant panel.
1
+ # Changelog
2
+
3
+ All notable changes to `xertica-ui` will be documented in this file.
4
+
5
+ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
+ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ ## [2.1.1] — 2026-05-14
11
+
12
+ ### Fixed
13
+
14
+ - **XerticaAssistant — tab bar oculta em modo chat-only**quando `showHistory` e `showFavorites` estão ambas desativadas, a barra de abas (incluindo a aba "Chat") deixa de ser renderizada, eliminando a exibição de uma aba isolada sem alternativas de navegação.
15
+ - **`xertica-ui/style.css`import duplo de Roboto removido** o `@import url(Google Fonts/Roboto)` foi removido de `styles/globals.css`. A importação da fonte passa a ser responsabilidade do app consumidor, eliminando o alerta `@import must precede all other statements` do PostCSS quando o CSS compilado era injetado após o output do Tailwind v4.
16
+
17
+ ---
18
+
19
+ ## [2.1.0]2026-05-13
20
+
21
+ ### Added
22
+
23
+ - **`components/blocks/card-patterns/`** — novo domínio `blocks/` com 6 componentes de alto nível compostos exclusivamente de primitivos `ui/`:
24
+ - **`FeatureCard`** — ícone com fundo colorido, título, badge opcional, descrição e botão de ação. Suporta 10 tokens de cor (`primary`, `chart-1..5`, `success`, `info`, `warning`, `destructive`). Replica o padrão de cards da Home page.
25
+ - **`ActivityCard`** — feed de atividades recentes com avatar, descrição de ação, timestamp e badge por tipo (`create`, `update`, `delete`, `comment`, `deploy`).
26
+ - **`ProfileCard`**card de usuário/membro com avatar, badge de status (`online`, `offline`, `away`, `busy`), linha de stats e ações primária/secundária.
27
+ - **`ProjectCard`**status de projeto com badge, barra de progresso (usa `Progress` com variant semântica por status), stack de avatares de membros e data limite.
28
+ - **`QuickActionCard`**tile de ação rápida com ícone em caixa colorida, badge e botão full-width.
29
+ - **`NotificationCard`**lista de notificações com indicador de não-lido, badge de tipo, "Marcar todas como lidas" e "Ver todas".
30
+ - **Exportação do domínio `blocks/`**todos os componentes disponíveis via `import { ... } from 'xertica-ui'` e via `components/blocks/index.ts`.
31
+ - **Subpath público `xertica-ui/blocks`** `FeatureCard`, `ActivityCard`, `ProfileCard`, `ProjectCard`, `QuickActionCard` e `NotificationCard` agora podem ser importados diretamente de `xertica-ui/blocks`.
32
+ - **Subpath público `xertica-ui/pages`** — `LoginPage`, `HomePage`, `TemplatePage`, `ForgotPasswordPage`, `ResetPasswordPage`, `VerifyEmailPage` e seus contents agora são publicados com entrypoint dedicado.
33
+ - **Documentação** — criado `docs/components/card-patterns.md` com props, exemplos e layout de dashboard completo para todos os 6 block components.
34
+
35
+ ### Changed
36
+
37
+ - **Calendar — dropdown caption styling** — quando `captionLayout="dropdown"` ou variações, os seletores de mês/ano agora têm visual de input (borda, fundo `bg-background`, focus ring `ring-primary`, `rounded-[var(--radius)]`, padding compacto fixo `px-2.5 py-1`). O `caption_label` em modo dropdown passa a usar `h-full w-full` com layout flexível.
38
+ - **Calendar — prop `size` removida** — o tamanho e o arredondamento do trigger ("Pick a date") são responsabilidade do elemento trigger, não do `Calendar`. A story `InPopover` demonstra o padrão correto com `triggerSizeClasses` aplicado diretamente ao `<Button>` com `rounded-[var(--radius)]` para alinhar com o token do `Input`.
39
+ - **Card stories** — enriquecidas com 3 novas variações: `WithAction` (uso de `CardAction` no header), `TeamMember` (grid de member cards com avatar e status), `SettingsCard` (lista de settings com `Separator` e `Badge`). Background `bg-muted` adicionado via decorator global da stories file para contraste com o fundo dos cards.
40
+ - **Storybookdocs stories** — adicionado `render: (args) => <Component {...args} />` no nível do `meta` em todos os 60 arquivos de stories em `components/ui/`. Resolve o problema onde stories com apenas `args` (sem `render` explícito) mostravam a mesma variação repetida na aba Docs por dependerem do `projectAnnotations.render` implícito do framework React.
41
+ - **Storybook — `preview.tsx`** — `min-h-screen` passou a ser condicional a `layout: 'fullscreen'`, resolvendo a altura excessiva dos exemplos na aba Docs.
42
+ - **Template npm** — `templates/package.json` atualizado para `2.1.0` e dependência `xertica-ui` para `^2.1.0`.
43
+ - **Template version badge** — o template passa a exibir um indicador visual discreto da versão do pacote `xertica-ui` usada pelo projeto.
44
+ - **Documentação** atualizados `calendar.md` (props `captionLayout`/`buttonVariant`, nota sobre `size` no trigger), `card.md` (`CardAction` na anatomia, exemplos WithAction/Stats/TeamMember/Settings), `chart.md` (nova seção Stacked Bar Chart), `architecture.md` (domínio `blocks/` com árvore de arquivos).
45
+
46
+ ### Fixed
47
+
48
+ - **Chart — stacked bar radius** — em `DashboardBarChart` com `stacked`, apenas a série no topo de cada `stackId` recebe `radius={[4,4,0,0]}`; as demais recebem `radius={[0,0,0,0]}`. Elimina a borda arredondada no topo das barras intermediárias e inferiores da pilha.
49
+ - **`FeatureCard` — badge overflow** — alterado de `flex items-center` para `flex flex-wrap` no container título+badge, garantindo que o badge quebre para a linha seguinte em vez de vazar fora do card quando o título ocupa toda a largura disponível.
50
+
51
+ ---
52
+
53
+ ## [2.0.6]2026-05-13
54
+
55
+ ### Added
56
+
57
+ - **Contrato de independência dos componentes** — documentado que `xertica-ui/style.css` é a única importação global obrigatória e que componentes públicos devem funcionar isoladamente sempre que possível.
58
+ - **`useOptionalLayout`** — nova API compatível para componentes reutilizáveis consumirem o layout com fallback seguro, mantendo `useLayout` como hook estrito para apps que querem falhar cedo.
59
+ - **Smoke tests de API pública** — adicionada validação de import/render dos subpaths públicos (`ui`, `brand`, `layout`, `assistant`, `media` e `hooks`).
60
+ - **Exports públicos de Maps** — `useMapLayers`, `GOOGLE_MAPS_ID` e `GOOGLE_MAPS_LIBRARIES` agora são expostos pelo subpath `xertica-ui/ui`.
61
+
62
+ ### Changed
63
+
64
+ - **`XerticaProvider` completo** — passa a compor providers de theme, brand colors, language, layout, assistant, API keys, Google Maps, tooltip e toaster como wrapper de conveniência para apps consumidores.
65
+ - **Componentes com contexto de layout** `Header`, `Sidebar`, páginas e componentes de mídia foram ajustados para renderizar com fallback interno quando importados sem provider.
66
+ - **Arquitetura FSD/FDA** — tipos compartilhados do assistant foram movidos para camada neutra, evitando dependência runtime de `components/shared` para implementação de feature.
67
+ - **Documentação LLM e componentes** — README, docs de provider/mapa, `llms.txt`, `llms-compact.txt` e `docs/llms.md` foram alinhados ao contrato de independência e aos subpaths consumíveis.
68
+ - **Storybook Docs de UI** — páginas MDX dos componentes de UI agora renderizam as variações reais das stories, evitando repetição do mesmo exemplo nos blocos de variação.
69
+ - **Storybook Maps** stories de mapa usam um frame responsivo mais largo para melhorar a visualização na aba Docs.
70
+
71
+ ### Fixed
72
+
73
+ - **Guards de browser/SSR** — providers e componentes browser-only agora protegem acessos a `window`, `document`, `localStorage`, `navigator` e scripts externos.
74
+ - **Google Maps sem configuração** — componentes relacionados a Maps renderizam estados de configuração/erro sem quebrar a aplicação consumidora.
75
+
76
+ ---
77
+
78
+ ## [2.0.5]2026-05-12
79
+
80
+ ### Added
81
+
82
+ - **`llms-compact.txt`** — novo arquivo de referência compacto para LLMs, sintetizando todos os componentes em formato reduzido ideal para contextos de tokens limitados.
83
+ - **`docs/decision-tree.md`** — guia de árvore de decisão para agentes de IA selecionarem o componente correto com base nos requisitos da UI.
84
+ - **`templates/CLAUDE.md`** `CLAUDE.md` agora é scaffolded automaticamente em projetos criados via `npx xertica-ui@latest init`, fornecendo contexto arquitetural (FSD/FDA, subpath imports, tokens semânticos) para Claude Code e outros assistentes de IA.
85
+ - **Storybook stories** — adicionadas stories interativas para Accordion, AlertDialog, Button, Checkbox, Dialog, Input, Switch, Tabs, HomePage e TemplatePage.
86
+ - **`components/pages/home-page/home-page.mdx`** e **`template-page.mdx`** — novas entradas de documentação MDX para as page components.
87
+
88
+ ### Changed
89
+
90
+ - **`guidelines/Guidelines.md`** — reescrita completa do guia de arquitetura FSD/FDA: maior detalhamento de responsabilidades por camada, convenções de import e fluxo de adição de novas rotas.
91
+ - **`components.json`** — atualização completa do registro de componentes, cobrindo todos os 97 componentes com metadados de subpath, props e variantes.
92
+ - **`llms.txt`**seção de subpath imports e mapeamento de camadas FSD/FDA atualizados.
93
+ - **`vite.config.ts`** — ajustes no build multi-entry para garantir correta emissão dos arquivos CJS/ESM.
94
+
95
+ ### Fixed
96
+
97
+ - **`npx xertica-ui init` usa versão em cache** — documentado que o npx armazena pacotes em cache localmente sem TTL curto. Sempre use `npx xertica-ui@latest init` para garantir a versão mais recente. O `templates/CLAUDE.md` scaffolded no projeto gerado inclui essa orientação.
98
+
99
+ ---
100
+
101
+ ## [2.0.3] 2026-05-11
102
+
103
+ ### Added
104
+
105
+ - **CLI `update` atualização de projeto** — novo modo no comando `update` permite atualizar os arquivos do projeto (app shell, shared, features, pages) para qualquer versão publicada do `xertica-ui`, com seleção granular de quais partes atualizar e confirmação antes de sobrescrever.
106
+
107
+ ---
108
+
109
+ ## [2.0.2] — 2026-05-11
110
+
111
+ ### Fixed
112
+
113
+ - **CLI rewritten for FSD/FDA structure** — `npx xertica-ui@latest init` agora copia corretamente a estrutura Feature-Sliced Design:
114
+ - Removida cópia de `src/app/routes.tsx` (arquivo não existe mais após refatoração)
115
+ - Adicionada cópia de `src/app/components/AppLayout.tsx`
116
+ - Adicionada cópia completa de `src/shared/` (`auth.ts`, `navigation.ts`, `types/auth.ts`)
117
+ - Adicionada cópia de `src/features/auth|home|template` conforme seleções do usuário
118
+ - Cópia de pages corrigida de `src/app/pages/` `src/pages/`
119
+ - `AuthGuard.tsx` agora gerado dinamicamente com imports e rotas apenas das páginas selecionadas
120
+ - **`generateDemoResponse` exportado via `xertica-ui/assistant`**estava ausente do barrel causando `SyntaxError: does not provide an export named 'generateDemoResponse'`
121
+ - **Build corrigido: UMD → CJS** — múltiplos entry points não são suportados com formato UMD no Vite; migrado para CJS (todos os `*.umd.js` → `*.cjs.js` no `package.json` exports)
122
+
123
+ ---
124
+
125
+ ## [2.0.0] 2026-05-11
126
+
127
+ ### Added
128
+
129
+ - **Subpath exports** The package now exposes 6 granular entry points alongside the full root barrel:
130
+ - `xertica-ui/ui`all UI primitives (Button, Card, Input, Table, Dialog, etc.)
131
+ - `xertica-ui/layout`Sidebar and Header
132
+ - `xertica-ui/brand`XerticaProvider, XerticaLogo, XerticaXLogo, XerticaOrbe, ThemeToggle, LanguageSelector
133
+ - `xertica-ui/assistant`XerticaAssistant, MarkdownMessage, CodeBlock, FormattedDocument, ModernChatInput
134
+ - `xertica-ui/media` — VideoPlayer, AudioPlayer, FloatingMediaWrapper
135
+ - `xertica-ui/hooks` — useLayout, useTheme, useLanguage, useBrandColors, useAssistente, useApiKey
136
+ - Root `from 'xertica-ui'` remains fully supported for backward compatibility.
137
+ - **`ImageWithFallback` added to `xertica-ui/ui`** previously only in the root barrel; now accessible via the `/ui` subpath.
138
+ - **Multi-entry Vite build** — `vite.config.ts` now uses `lib.entry` as an object (7 entry points). Output filenames follow `[entryName].[format].js` pattern.
139
+ - **CLI template FSD/FDA architecture** The scaffolded template was restructured to follow Feature-Sliced Design + Feature-Driven Architecture:
140
+ - `src/app/`BrowserRouter, XerticaProvider, AuthGuard (auth state + route definitions), AppLayout (Sidebar + children shell)
141
+ - `src/shared/` — `config/navigation.ts` (route registry), `lib/auth.ts` (localStorage helpers), `types/auth.ts` (User interface)
142
+ - `src/features/auth/ui/` — LoginContent, ForgotPasswordContent, VerifyEmailContent, ResetPasswordContent; with shared `AuthPageShell` and `SocialLoginButtons` DRY extractions
143
+ - `src/features/home/ui/` — HomeContent
144
+ - `src/features/template/ui/` TemplateContent, FormTemplate
145
+ - `src/pages/` — thin page wrappers (LoginPage, HomePage, TemplatePage, ForgotPasswordPage, VerifyEmailPage, ResetPasswordPage)
146
+ - **`templates/guidelines/Guidelines.md`** — new architecture guide documenting FSD/FDA layers, layer responsibilities, and "Adding New Routes" step-by-step.
147
+
148
+ ### Changed
149
+
150
+ - **Template imports** — All template source files updated to use subpath imports (`xertica-ui/ui`, `xertica-ui/brand`, `xertica-ui/layout`, `xertica-ui/assistant`, `xertica-ui/hooks`) instead of the root barrel.
151
+ - **`FormTemplate.tsx` rewritten** — Removed dependency on `@hookform/resolvers/zod`, `react-hook-form`, and `zod` (packages not included in the CLI template's `package.json`). Now uses plain React `useState` + inline validation with only `xertica-ui/ui` primitives.
152
+ - **`tsconfig.build.json`** — `include` array updated to cover all new barrel source directories (`components/**/*`, `contexts/**/*`, `hooks/**/*`).
153
+ - **Documentation** (`llms.txt`, `llms-full.txt`) Added subpath import reference table and FSD/FDA layer mapping.
154
+
155
+ ### Fixed
156
+
157
+ - **Stale compiled artifacts** — Removed `App.js`, `App.d.ts`, `main.js`, `main.d.ts` from `templates/src/app/` that were being resolved by Vite's extension priority (`.js` before `.tsx`), causing `Failed to fetch dynamically imported module` errors after the FSD restructure.
158
+
159
+ ---
160
+
161
+ ## [1.10.0] — 2026-05-08
162
+
163
+ ### Added
164
+
165
+ - **Semantic Variants** — Added `success`, `info`, and `warning` variants to components that lacked them:
166
+ - **Button**now supports 9 variants: `default`, `secondary`, `outline`, `ghost`, `destructive`, `link`, `success`, `info`, `warning`.
167
+ - **Progress** — new `variant` prop (`default`, `success`, `info`, `warning`, `destructive`) colors both the track and the indicator.
168
+ - **NotificationBadge** — added `secondary`, `outline`, `success`, `info`, `warning`; standardized `default` to primary color for consistency with Badge and Button.
169
+ - **TimelineDot** — added `info` and `outline` variants; replaced hardcoded `rgb()` values with semantic CSS tokens (`bg-success`, `bg-warning`).
170
+ - **DialogBody** — new sub-component for the Dialog. When used, `DialogHeader` and `DialogFooter` stay pinned while `DialogBody` scrolls independently. Exported from `xertica-ui`.
171
+ - **Dialog height management** `DialogContent` now has `max-h-[calc(100dvh-2rem)] overflow-hidden`. The close button (×) is pinned and never scrolls with content. `size="full"` fills the full viewport height.
172
+ - **Header `breadcrumbSlot`** — new prop accepting any `ReactNode` rendered immediately after the breadcrumb/title area (badges, buttons, status chips, etc.).
173
+ - **Sidebar default variant groups** — `variant="default"` now renders `navigationGroups` with labeled group headers. Each `RouteConfig` supports a `children` field (sub-routes shown in a contextual `DropdownMenu` via a `ChevronRight` button at the end of the item).
174
+
175
+ ### Fixed
176
+
177
+ - **Search double clear icon** — `type="search"` caused browsers to inject a native clear button on top of the custom × icon. Changed to `type="text"`.
178
+ - **CSS `@source` path** — CLI template `src/styles/index.css` had `../node_modules/xertica-ui` (one level short); corrected to `../../node_modules/xertica-ui/components`.
179
+ - **`theme-map.css` incomplete** — `--color-success`, `--color-info`, `--color-warning` and their `foreground` variants were missing, preventing `bg-success`, `text-info`, etc. from being generated in the compiled library CSS.
180
+
181
+ ### Changed
182
+
183
+ - **Storybook argTypes** — Multiple components had controls missing from the Storybook panel: Badge (`success`/`info`/`warning` options), Select (`size`), Avatar (`size`), Rating (`readonly` casing), Timeline (`dotVariant`), Dialog (`size` available in all stories). All corrected.
184
+ - **LLM documentation** (`llms-full.txt`) Updated Badge, Button, Dialog, Header, NotificationBadge, Progress, Search, Sidebar, and Timeline sections to reflect current APIs.
185
+
186
+ ---
187
+
188
+ ## [1.9.0] — 2026-05-05
189
+
190
+ ### Added
191
+ - **Standardized Form Sizing System** — Implemented a unified `size` prop (`sm`, `md`, `lg`) across all form-related components for perfect visual alignment in grid layouts:
192
+ - **Text Components** — `Input`, `SelectTrigger`, `Textarea`, `Search`, and `InputOTPSlot` now share consistent height/padding/font-size tokens.
193
+ - **Toggle Components** — `Checkbox`, `RadioGroupItem`, and `Switch` now feature dynamic sizing for both containers and internal indicators (check icon, dot, thumb).
194
+ - **Labels** — `Label` component now supports `size` to match the text size of the associated input.
195
+ - **Reference Guide** — Added `docs/form-sizing.md` as a comprehensive guide for the standardized sizing scale.
196
+ - **Assistant Individual Controls** — Added granular control props to `XerticaAssistant` to toggle specific features independently:
197
+ - `showHistory`, `showFavorites`, `allowAudioInput`, `allowFileUpload`, `allowDocCreation`, `allowPodcastGen`, `allowResearchGen`.
198
+ - **Header Breadcrumb Navigation** — Standardized `Header` to use breadcrumbs as the default navigation pattern:
199
+ - Added support for `react-router-dom` links in breadcrumbs to prevent page reloads.
200
+ - Configurable hierarchy levels and labels directly via props.
201
+
202
+ ### Changed
203
+ - **Form Component Architecture** — Migrated form elements from legacy tokens to standardized design system tokens (`bg-background`, `border-border`) for better theme consistency.
204
+ - **Documentation & Storybook** Updated all 9 affected form components with new "Sizes" sections in Storybook (Stories + MDX) and enriched LLM-facing markdown documentation.
205
+ - **Unit Testing** Updated test suites for `Checkbox`, `RadioGroup`, `Switch`, `InputOTP`, `Label`, `Search`, `Select`, and `Textarea` to verify sizing variant classes.
206
+
207
+ ### Fixed
208
+ - **Search Component** — Removed obsolete `loading` prop which was causing TypeScript errors and was redundant with the current design system patterns.
209
+ - **SelectTrigger Sizing** Standardized `md` height to `h-10` (40px) to match the rest of the form system.
210
+
211
+ ---
212
+
213
+ ## [1.8.0] — 2026-04-27
214
+
215
+ ### Added
216
+ - **VideoPlayer UI Enhancements** — Added gradient overlay on controls for improved contrast against video content:
217
+ - Gradient: `from-black/60 via-black/30 to-transparent` with `pt-12` spacing
218
+ - White progress bar with `bg-white/30` track, `bg-white` fill, and `rounded-r-sm` on filled portion
219
+ - White icons with `drop-shadow-md` for visibility
220
+ - Buttons use `text-white hover:text-white hover:bg-black/50` for proper hover states
221
+ - **Slider Visual Fixes** — Improved progress bar alignment:
222
+ - Added left margin `ml-2` to track for thumb alignment
223
+ - Added `rounded-r-sm` to Range for filled portion
224
+ - Adjusted track/margins for proper visual alignment at full value
225
+
226
+ ### Changed
227
+ - **Documentation** — Updated component counts across all docs:
228
+ - `llms.txt`: 75 → 97 components
229
+ - `llms-full.txt`: Added statistics table
230
+ - `docs/llms.md`: Added statistics section
231
+ - `Introduction.mdx`: Added "97 Components" badge
232
+ - **components.json** — 75 → 89 components (added missing Media, Assistant, Pages, and Map components)
233
+
234
+ ### Fixed
235
+ - **Slider Progress Bar** — Fixed visual gap where thumb doesn't align with filled bar at end position by adjusting track margins
236
+
237
+ ---
238
+
239
+ ## [1.7.0] — 2026-04-23
240
+
241
+ ### Fixed
242
+ - **CLI CSS Theme Import** — Corrected `@theme` → `@theme inline` in both the library's `index.css` and the generated template `src/styles/index.css`. Plain `@theme {}` was causing Tailwind v4 to resolve color tokens statically at build time using the library's defaults, preventing consumer `tokens.css` overrides from propagating into utility classes (`bg-destructive`, `bg-primary`, alert colors, etc.).
243
+ - **Dark Mode `--primary`** — Added missing `--primary: var(--xertica-primary)` in the dark mode block of `tokens.css` (library, template, and generator). Components using `bg-primary` were not picking up the dark mode brand color.
244
+ - **Dark Mode Chart Tokens** Generator (`bin/generate-tokens.ts`) now includes `--chart-1` through `--chart-5` in the dark mode section for all generated `tokens.css` files.
245
+
246
+ ### Added
247
+ - **CLI `update` command** `npx xertica-ui@latest update` prompts the user to select a new color theme and overwrites `src/styles/xertica/tokens.css` with the newly generated tokens, preserving all other project files.
248
+ - **Template `@theme inline` mapping** Generated `src/styles/index.css` now includes a complete `@theme inline {}` block mapping all tokens (sidebar, charts, gradients, brand, radii) to CSS variable aliases, ensuring full theme coverage for consumer projects.
249
+ - **Documentation** — `docs/getting-started.md` updated with CLI `update` command reference and a new "CSS Setup (Critical)" section explaining the `@theme inline` requirement.
250
+
251
+ ---
252
+
253
+ ## [1.6.0]2026-04-20
254
+
255
+ ### Added
256
+ - **`docs/llms.md`** — Master LLM/AI-agent entrypoint index with full component catalog, token quick reference, and reading order guide.
257
+ - **`docs/layout.md`** — Complete `LayoutContext` and `useLayout()` API reference.
258
+ - **`docs/components/route-map.md`** — New documentation for `RouteMap` component.
259
+ - **`docs/components/use-mobile.md`** — New documentation for `useMobile` / `useIsMobile` hooks.
260
+ - **`Header`** — New props: `user` (profile with avatar, name, email, and dropdown menu items), `actions` (custom icon action buttons), `showSettings` / `onSettingsClick`, `showLogout` / `onLogoutClick`. Fixed render order: Language Theme → Actions → Settings → User → Logout.
261
+ - **`Sidebar`** — New `width` prop (`expandedWidth: number`) for configuring the expanded sidebar pixel width. Width is now read and stored via `LayoutContext.sidebarWidth`.
262
+
263
+ ### Changed
264
+ - **Documentation** — All 61 component docs, 5 pattern docs, and 6 root docs fully rewritten in English with standardized structure (Overview, When to Use, Anatomy, Props table, Examples, AI Rules, Related Components).
265
+ - **JSDoc**All Portuguese JSDoc comments in `components/ui/` translated to English and enriched with accurate `@ai-rules`.
266
+ - **`README.md`** — Complete rewrite in English, restructured for npm page quality (quick start, install guide, component catalog, token reference, AI agent entrypoint, troubleshooting).
267
+ - **`package.json`** — Version bumped to `1.6.0`. Description translated to English.
268
+
269
+ ### Fixed
270
+ - **`docs/components/page-header.md`** Was documenting a wrong API (`title/description/actions`). Now correctly documents the real API: `breadcrumbs[]`, `showLanguageSelector`, `rightContent`, `PageHeaderHeading`, `PageHeaderDescription`.
271
+ - **`docs/components/stepper.md`** — Was documenting a `steps[]` array prop. Now correctly documents the composable `<Stepper currentStep> + <Step step label>` API (1-indexed).
272
+ - **`docs/components/empty.md`** — Was documenting single-prop component. Now correctly documents the composable sub-component pattern: `Empty > EmptyIcon > EmptyTitle > EmptyDescription > EmptyAction`.
273
+ - **`docs/components/stats-card.md`** — `trend` was documented as a string. Now correctly documented as `{ value: number; label?: string }`.
274
+ - **`docs/components/chart.md`**Was documenting raw Recharts usage. Now correctly documents the `ChartContainer + ChartConfig + var(--color-*)` pattern.
275
+
276
+ ---
277
+
278
+ ## [1.5.2] 2026-04-15
279
+
280
+ ### Fixed
281
+ - Resolved regression where modal components (Dialog/AlertDialog) failed to render in projects initialized via the CLI.
282
+ - Implemented robust CSS integration using Tailwind v4 theme mappings.
283
+ - Ensured Radix UI portals correctly inherit theme variables.
284
+
285
+ ---
286
+
287
+ ## [1.5.1]2026-04-14
288
+
289
+ ### Changed
290
+ - Sidebar: Added `assistente` variant with fixed areas, searchable navigation, and grouped navigation structures.
291
+ - Template page updated to demonstrate the assistant sidebar variant.
292
+
293
+ ---
294
+
295
+ ## [1.5.0]2026-04-13
296
+
297
+ ### Added
298
+ - `Sidebar` — `width` / `expandedWidth` prop for configurable expanded sidebar width.
299
+ - `LayoutContext` — `sidebarWidth` and `setSidebarWidth` for global sidebar width management.
300
+ - `Header` — User profile section with avatar, dropdown menu, settings button, and logout button.
301
+ - `StatsCard` — KPI metric card component.
302
+ - `Timeline` — Chronological event list with dot variants.
303
+ - `TreeView` — Hierarchical tree navigation.
304
+ - `Rating` — Star-based rating input.
305
+ - `FileUpload` — Drag-and-drop file input.
306
+ - `Search` — Pre-built search input with icon and clear button.
307
+ - `NotificationBadge` — Dot/count badge overlay.
308
+ - `RouteMap` — Google Maps route display and direction calculation.
309
+ - `Stepper` — Multi-step progress indicator.
310
+ - `Map` — Advanced Google Maps integration with markers, circles, polygons, and layers.
311
+ - `XerticaAssistant` — Embedded Gemini AI assistant panel.