xertica-ui 2.1.0 → 2.1.2

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 (348) hide show
  1. package/CHANGELOG.md +324 -302
  2. package/README.md +87 -87
  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/markdown-message/MarkdownMessage.tsx +27 -1
  8. package/components/assistant/xertica-assistant/xertica-assistant.tsx +4 -4
  9. package/components/blocks/card-patterns/ActivityCard.tsx +72 -72
  10. package/components/blocks/card-patterns/FeatureCard.tsx +100 -100
  11. package/components/blocks/card-patterns/NotificationCard.tsx +127 -127
  12. package/components/blocks/card-patterns/ProfileCard.tsx +84 -84
  13. package/components/blocks/card-patterns/ProjectCard.tsx +89 -89
  14. package/components/blocks/card-patterns/QuickActionCard.tsx +62 -62
  15. package/components/blocks/card-patterns/card-patterns.stories.tsx +445 -445
  16. package/components/blocks/card-patterns/index.ts +17 -17
  17. package/components/blocks/index.ts +1 -1
  18. package/components/brand/index.ts +6 -6
  19. package/components/brand/xertica-provider/XerticaProvider.tsx +48 -48
  20. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  21. package/components/brand/xertica-provider/xertica-provider.test.tsx +52 -52
  22. package/components/examples/MapExamples.tsx +282 -282
  23. package/components/examples/SimpleFilterableMap.tsx +191 -191
  24. package/components/examples/index.ts +51 -51
  25. package/components/figma/ImageWithFallback.tsx +27 -27
  26. package/components/hooks/index.ts +7 -7
  27. package/components/index.ts +5 -5
  28. package/components/layout/header/header.test.tsx +8 -8
  29. package/components/layout/header/header.tsx +4 -4
  30. package/components/layout/index.ts +2 -2
  31. package/components/layout/sidebar/sidebar.mdx +1 -1
  32. package/components/layout/sidebar/sidebar.stories.tsx +6 -6
  33. package/components/layout/sidebar/sidebar.test.tsx +11 -11
  34. package/components/layout/sidebar/sidebar.tsx +34 -34
  35. package/components/media/FloatingMediaWrapper.tsx +11 -11
  36. package/components/media/audio-player/AudioPlayer.tsx +22 -22
  37. package/components/media/index.ts +3 -3
  38. package/components/pages/home-content/HomeContent.tsx +7 -7
  39. package/components/pages/home-content/home-content.mdx +62 -62
  40. package/components/pages/home-page/HomePage.stories.tsx +39 -39
  41. package/components/pages/home-page/HomePage.tsx +12 -12
  42. package/components/pages/home-page/home-page.mdx +53 -53
  43. package/components/pages/index.ts +8 -8
  44. package/components/pages/template-content/TemplateContent.tsx +10 -10
  45. package/components/pages/template-content/template-content.mdx +61 -61
  46. package/components/pages/template-page/TemplatePage.stories.tsx +39 -39
  47. package/components/pages/template-page/TemplatePage.tsx +11 -11
  48. package/components/pages/template-page/template-page.mdx +53 -53
  49. package/components/public-api-smoke.test.tsx +52 -52
  50. package/components/shared/assistant-utils.ts +43 -43
  51. package/components/ui/accordion/accordion.mdx +8 -8
  52. package/components/ui/accordion/accordion.stories.tsx +53 -53
  53. package/components/ui/alert/alert.mdx +8 -8
  54. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  55. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  56. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  57. package/components/ui/avatar/avatar.mdx +8 -8
  58. package/components/ui/badge/badge.mdx +8 -8
  59. package/components/ui/badge/badge.tsx +9 -9
  60. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  61. package/components/ui/button/button.mdx +8 -8
  62. package/components/ui/calendar/calendar.mdx +8 -8
  63. package/components/ui/calendar/calendar.tsx +258 -258
  64. package/components/ui/card/card.mdx +8 -8
  65. package/components/ui/card/card.stories.tsx +245 -245
  66. package/components/ui/carousel/carousel.mdx +8 -8
  67. package/components/ui/chart/chart.mdx +8 -8
  68. package/components/ui/chart/chart.stories.tsx +277 -277
  69. package/components/ui/chart/chart.test.tsx +154 -154
  70. package/components/ui/chart/chart.tsx +1494 -1494
  71. package/components/ui/checkbox/checkbox.mdx +8 -8
  72. package/components/ui/checkbox/checkbox.stories.tsx +20 -20
  73. package/components/ui/collapsible/collapsible.mdx +8 -8
  74. package/components/ui/command/command.mdx +8 -8
  75. package/components/ui/context-menu/context-menu.mdx +8 -8
  76. package/components/ui/dialog/dialog.mdx +8 -8
  77. package/components/ui/drawer/drawer.mdx +8 -8
  78. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  79. package/components/ui/empty/empty.mdx +8 -8
  80. package/components/ui/file-upload/file-upload.mdx +8 -8
  81. package/components/ui/google-maps-loader/google-maps-loader.tsx +2 -2
  82. package/components/ui/hover-card/hover-card.mdx +8 -8
  83. package/components/ui/index.ts +109 -109
  84. package/components/ui/input/input.mdx +8 -8
  85. package/components/ui/input-otp/input-otp.mdx +8 -8
  86. package/components/ui/input-otp/input-otp.stories.tsx +6 -6
  87. package/components/ui/label/label.mdx +8 -8
  88. package/components/ui/map/map.mdx +8 -8
  89. package/components/ui/map/map.stories.tsx +51 -51
  90. package/components/ui/map/map.tsx +2 -2
  91. package/components/ui/menubar/menubar.mdx +8 -8
  92. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  93. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  94. package/components/ui/pagination/pagination.mdx +8 -8
  95. package/components/ui/pagination/pagination.stories.tsx +10 -10
  96. package/components/ui/popover/popover.mdx +8 -8
  97. package/components/ui/progress/progress.mdx +8 -8
  98. package/components/ui/progress/progress.tsx +68 -68
  99. package/components/ui/radio-group/radio-group.mdx +8 -8
  100. package/components/ui/rating/rating.mdx +8 -8
  101. package/components/ui/resizable/resizable.mdx +8 -8
  102. package/components/ui/rich-text-editor/rich-text-editor.tsx +2 -2
  103. package/components/ui/route-map/route-map.mdx +8 -8
  104. package/components/ui/route-map/route-map.stories.tsx +54 -48
  105. package/components/ui/route-map/route-map.tsx +2 -2
  106. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  107. package/components/ui/search/search.mdx +8 -8
  108. package/components/ui/select/select.mdx +8 -8
  109. package/components/ui/select/select.stories.tsx +9 -9
  110. package/components/ui/separator/separator.mdx +8 -8
  111. package/components/ui/sheet/sheet.mdx +8 -8
  112. package/components/ui/sheet/sheet.stories.tsx +95 -94
  113. package/components/ui/sheet/sheet.tsx +11 -0
  114. package/components/ui/simple-map/simple-map.mdx +8 -8
  115. package/components/ui/simple-map/simple-map.stories.tsx +48 -43
  116. package/components/ui/skeleton/skeleton.mdx +8 -8
  117. package/components/ui/slider/slider.mdx +8 -8
  118. package/components/ui/sonner/sonner.mdx +8 -8
  119. package/components/ui/stats-card/stats-card.mdx +8 -8
  120. package/components/ui/stepper/stepper.mdx +8 -8
  121. package/components/ui/switch/switch.mdx +8 -8
  122. package/components/ui/switch/switch.stories.tsx +20 -20
  123. package/components/ui/table/table.mdx +8 -8
  124. package/components/ui/tabs/tabs.mdx +8 -8
  125. package/components/ui/tabs/tabs.stories.tsx +26 -26
  126. package/components/ui/textarea/textarea.mdx +8 -8
  127. package/components/ui/timeline/timeline.mdx +8 -8
  128. package/components/ui/toggle/toggle.mdx +8 -8
  129. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  130. package/components/ui/tooltip/tooltip.mdx +8 -8
  131. package/components/ui/tree-view/tree-view.mdx +8 -8
  132. package/components.json +1512 -1512
  133. package/contexts/ApiKeyContext.tsx +72 -72
  134. package/contexts/BrandColorsContext.tsx +26 -26
  135. package/contexts/LanguageContext.tsx +13 -13
  136. package/contexts/LayoutContext.test.tsx +11 -11
  137. package/contexts/LayoutContext.tsx +29 -29
  138. package/contexts/ThemeContext.tsx +26 -26
  139. package/contexts/theme-data.ts +4 -4
  140. package/dist/{AssistantChart-DoZCyS5r.cjs → AssistantChart-9w31gdAb.cjs} +4 -4
  141. package/dist/{use-mobile-CG2-SdXV.cjs → AssistantChart-BAx9VQvb.cjs} +209 -1070
  142. package/dist/{use-mobile-CYuAuGDl.js → AssistantChart-CVko2A1W.js} +171 -1025
  143. package/dist/{AssistantChart-C_hwFRRr.js → AssistantChart-CVzmmhx4.js} +4 -4
  144. package/dist/{ThemeContext-C2EwAPDt.js → ThemeContext-BbBNoFTG.js} +2 -2
  145. package/dist/{ThemeContext-vTjumZeM.cjs → ThemeContext-Cmr8Ex8H.cjs} +2 -2
  146. package/dist/VerifyEmailPage-BE-L9mB7.js +2828 -0
  147. package/dist/VerifyEmailPage-Bae2cBXT.cjs +2827 -0
  148. package/dist/VerifyEmailPage-CR7kb5df.cjs +2827 -0
  149. package/dist/VerifyEmailPage-CbgjOF0v.js +2828 -0
  150. package/dist/{VerifyEmailPage-DvMLZgFt.js → VerifyEmailPage-CdYPSJoO.js} +1 -1
  151. package/dist/{VerifyEmailPage-CYXtbKi3.cjs → VerifyEmailPage-DMBh4NM9.cjs} +1 -1
  152. package/dist/{XerticaProvider-CEoWMTxu.js → XerticaProvider-BITjgC5p.js} +2 -2
  153. package/dist/{XerticaProvider-CllrbMEJ.cjs → XerticaProvider-By8q3Roe.cjs} +2 -2
  154. package/dist/{alert-dialog-s-vmNkJ_.js → alert-dialog-iDe5VE5o.js} +3 -3
  155. package/dist/{alert-dialog-DSKByiKZ.cjs → alert-dialog-yckpaOpy.cjs} +3 -3
  156. package/dist/assistant.cjs.js +1 -1
  157. package/dist/assistant.es.js +1 -1
  158. package/dist/brand.cjs.js +1 -1
  159. package/dist/brand.es.js +1 -1
  160. package/dist/cli.js +1 -1
  161. package/dist/components/ui/index.d.ts +1 -1
  162. package/dist/components/ui/sheet/sheet.d.ts +2 -1
  163. package/dist/{google-maps-loader-Y-QkD-Li.cjs → google-maps-loader-BqsYL48U.cjs} +0 -5
  164. package/dist/{google-maps-loader-CTYySAun.js → google-maps-loader-t2IlYBzw.js} +0 -4
  165. package/dist/hooks.cjs.js +1 -1
  166. package/dist/hooks.es.js +1 -1
  167. package/dist/index-CkTUgOwX.js +8 -0
  168. package/dist/{index-COtD8bRW.cjs → index-D3RLKRAs.cjs} +1 -1
  169. package/dist/index.cjs.js +7 -6
  170. package/dist/index.es.js +34 -33
  171. package/dist/index.umd.js +454 -1027
  172. package/dist/pages.cjs.js +1 -1
  173. package/dist/pages.es.js +1 -1
  174. package/dist/ui.cjs.js +4 -3
  175. package/dist/ui.es.js +31 -30
  176. package/dist/{CodeBlock-BgfYL_rD.cjs → xertica-assistant-B1IaHXnB.cjs} +63 -263
  177. package/dist/{CodeBlock-DnYNI8rQ.js → xertica-assistant-DPsESB6t.js} +19 -219
  178. package/dist/{CodeBlock-BlcqlA9M.cjs → xertica-assistant-Qp3ydksa.cjs} +51 -263
  179. package/dist/{CodeBlock-CIySIuYr.js → xertica-assistant-gnCJdcZY.js} +7 -219
  180. package/dist/xertica-ui.css +2 -2
  181. package/docs/components/assistant.md +1 -0
  182. package/docs/components/calendar.md +154 -154
  183. package/docs/components/card-patterns.md +337 -337
  184. package/docs/components/card.md +235 -235
  185. package/docs/components/map.md +84 -84
  186. package/docs/components/markdown-message.md +1 -0
  187. package/docs/components/xertica-provider.md +24 -24
  188. package/docs/decision-tree.md +287 -287
  189. package/docs/llms.md +2 -2
  190. package/guidelines/Guidelines.md +250 -250
  191. package/hooks/useTheme.ts +3 -3
  192. package/imports/Podcast.tsx +388 -388
  193. package/imports/XerticaAi.tsx +45 -45
  194. package/imports/XerticaX.tsx +19 -19
  195. package/imports/svg-aueiaqngck.ts +11 -11
  196. package/imports/svg-v9krss1ozd.ts +16 -16
  197. package/imports/svg-vhrdofe3qe.ts +5 -5
  198. package/llms-compact.txt +327 -327
  199. package/llms-full.txt +1 -0
  200. package/llms.txt +160 -160
  201. package/package.json +203 -203
  202. package/styles/globals.css +13 -15
  203. package/styles/xertica/app-overrides/chat.css +61 -61
  204. package/styles/xertica/app-overrides/scrollbar.css +33 -33
  205. package/styles/xertica/integrations/google-maps.css +76 -76
  206. package/styles/xertica/integrations/sonner.css +73 -73
  207. package/styles/xertica/tokens.css +12 -12
  208. package/templates/CLAUDE.md +172 -172
  209. package/templates/guidelines/Guidelines.md +313 -313
  210. package/templates/package.json +3 -3
  211. package/templates/src/app/App.tsx +21 -23
  212. package/templates/src/app/components/AppLayout.tsx +44 -40
  213. package/templates/src/app/components/AuthGuard.tsx +85 -76
  214. package/templates/src/features/auth/index.ts +4 -4
  215. package/templates/src/features/auth/ui/AuthPageShell.tsx +34 -34
  216. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +70 -70
  217. package/templates/src/features/auth/ui/LoginContent.tsx +90 -90
  218. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +151 -151
  219. package/templates/src/features/auth/ui/SocialLoginButtons.tsx +59 -59
  220. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +82 -82
  221. package/templates/src/features/home/index.ts +1 -1
  222. package/templates/src/features/home/ui/HomeContent.tsx +100 -100
  223. package/templates/src/features/template/index.ts +5 -5
  224. package/templates/src/features/template/ui/CrudTemplate.tsx +3 -3
  225. package/templates/src/features/template/ui/DashboardTemplate.tsx +3 -3
  226. package/templates/src/features/template/ui/FormTemplate.tsx +120 -120
  227. package/templates/src/features/template/ui/LoginTemplate.tsx +3 -3
  228. package/templates/src/pages/AssistantPage.tsx +328 -0
  229. package/templates/src/pages/ForgotPasswordPage.tsx +6 -6
  230. package/templates/src/pages/HomePage.tsx +57 -57
  231. package/templates/src/pages/LoginPage.tsx +10 -10
  232. package/templates/src/pages/ResetPasswordPage.tsx +6 -6
  233. package/templates/src/pages/TemplatePage.tsx +30 -30
  234. package/templates/src/pages/VerifyEmailPage.tsx +6 -6
  235. package/templates/src/shared/config/navigation.ts +20 -20
  236. package/templates/src/shared/lib/auth.ts +20 -20
  237. package/templates/src/shared/types/auth.ts +3 -3
  238. package/templates/src/styles/index.css +1 -1
  239. package/templates/tsconfig.json +5 -5
  240. package/templates/tsconfig.node.tsbuildinfo +1 -1
  241. package/templates/tsconfig.tsbuildinfo +1 -1
  242. package/utils/gemini.ts +140 -140
  243. package/dist/AudioPlayer-B1lt5cPl.cjs +0 -989
  244. package/dist/AudioPlayer-BZ7bibzU.cjs +0 -982
  245. package/dist/AudioPlayer-C12BjQBV.cjs +0 -997
  246. package/dist/AudioPlayer-DMcG_c7L.js +0 -990
  247. package/dist/AudioPlayer-DcFKRJE_.js +0 -998
  248. package/dist/AudioPlayer-e8LfNoqO.js +0 -983
  249. package/dist/CodeBlock-7TTgmdGG.cjs +0 -2094
  250. package/dist/CodeBlock-BeSt1h5P.js +0 -2078
  251. package/dist/CodeBlock-Bnmeu5ez.cjs +0 -2094
  252. package/dist/CodeBlock-BtfPlbAI.js +0 -2078
  253. package/dist/CodeBlock-CuPtUM-7.cjs +0 -2094
  254. package/dist/CodeBlock-D6ffWXgc.js +0 -2078
  255. package/dist/CodeBlock-D8dcwbit.cjs +0 -2094
  256. package/dist/CodeBlock-DMZrFnlw.cjs +0 -2094
  257. package/dist/CodeBlock-DlBehYN8.js +0 -2078
  258. package/dist/CodeBlock-DvKWbSnE.cjs +0 -2094
  259. package/dist/CodeBlock-DwMCfkFY.js +0 -2078
  260. package/dist/CodeBlock-Dy6CNYyj.js +0 -2078
  261. package/dist/CodeBlock-U1pPOQI7.cjs +0 -2094
  262. package/dist/CodeBlock-f_GpNhEB.js +0 -2078
  263. package/dist/CodeBlock-oB6u8nI1.js +0 -2078
  264. package/dist/CodeBlock-tZC31B73.cjs +0 -2094
  265. package/dist/ImageWithFallback-CGtidP6B.cjs +0 -4542
  266. package/dist/ImageWithFallback-lsg3pdFg.js +0 -4508
  267. package/dist/LanguageSelector-B5YfbHra.js +0 -231
  268. package/dist/LanguageSelector-D6uacAIM.cjs +0 -230
  269. package/dist/LayoutContext-BAql6ZRY.js +0 -97
  270. package/dist/LayoutContext-BvK-ggDa.cjs +0 -96
  271. package/dist/ThemeContext-BoH4NLfN.js +0 -734
  272. package/dist/ThemeContext-r69W20Xg.cjs +0 -733
  273. package/dist/XerticaOrbe-KL1RBHzw.cjs +0 -1354
  274. package/dist/XerticaOrbe-zwS1p2a8.js +0 -1355
  275. package/dist/XerticaProvider-6btlAlzc.js +0 -17
  276. package/dist/XerticaProvider-BNoNOxQ5.cjs +0 -16
  277. package/dist/XerticaProvider-BlY2limY.cjs +0 -38
  278. package/dist/XerticaProvider-DDuiIcKo.js +0 -39
  279. package/dist/XerticaProvider-cI9hSs27.cjs +0 -38
  280. package/dist/XerticaProvider-hSwhNQex.js +0 -39
  281. package/dist/breadcrumb-CqJ7bHY5.js +0 -161
  282. package/dist/breadcrumb-m9Hb2_XN.cjs +0 -177
  283. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +0 -35
  284. package/dist/components/blocks/audio-player/index.d.ts +0 -1
  285. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +0 -26
  286. package/dist/components/blocks/document-editor/index.d.ts +0 -1
  287. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +0 -41
  288. package/dist/components/blocks/podcast-player/index.d.ts +0 -1
  289. package/dist/dropdown-menu-BDB5CmQs.cjs +0 -247
  290. package/dist/dropdown-menu-DQidbKBD.js +0 -231
  291. package/dist/google-maps-loader-BFWp6VPd.js +0 -287
  292. package/dist/google-maps-loader-eS3uQ5TA.cjs +0 -287
  293. package/dist/header-Cgy6vYPk.cjs +0 -731
  294. package/dist/header-DRlT4jgI.js +0 -715
  295. package/dist/header-Dux00SI4.cjs +0 -731
  296. package/dist/header-EkGKXPsD.js +0 -715
  297. package/dist/header-WfEywpyc.cjs +0 -731
  298. package/dist/header-tifNQn2U.js +0 -715
  299. package/dist/index-BhapVLVj.js +0 -8
  300. package/dist/index-D6fxYEY8.cjs +0 -7
  301. package/dist/index-DW5tYe26.js +0 -8
  302. package/dist/input-2R4loU86.js +0 -127
  303. package/dist/input-DWANSKGb.cjs +0 -145
  304. package/dist/rich-text-editor-0mraWT5y.cjs +0 -2376
  305. package/dist/rich-text-editor-B6jMRLzk.cjs +0 -1939
  306. package/dist/rich-text-editor-B8_oYcIR.js +0 -1730
  307. package/dist/rich-text-editor-B9UbSXNb.js +0 -1203
  308. package/dist/rich-text-editor-BYuRBNBU.js +0 -2373
  309. package/dist/rich-text-editor-Bb9pySTs.cjs +0 -2374
  310. package/dist/rich-text-editor-BcL6L3cm.cjs +0 -2374
  311. package/dist/rich-text-editor-BoVZYtTs.cjs +0 -2391
  312. package/dist/rich-text-editor-CPV1lEPH.cjs +0 -1748
  313. package/dist/rich-text-editor-CoKqbCtu.cjs +0 -1799
  314. package/dist/rich-text-editor-Cw56T_mB.js +0 -2356
  315. package/dist/rich-text-editor-Cyt8qs2b.js +0 -1921
  316. package/dist/rich-text-editor-D6H84OcX.cjs +0 -1220
  317. package/dist/rich-text-editor-D76gD-QI.js +0 -2328
  318. package/dist/rich-text-editor-DKkokOnA.js +0 -1781
  319. package/dist/rich-text-editor-DNsdpN64.cjs +0 -2359
  320. package/dist/rich-text-editor-DfG8bCyY.js +0 -2358
  321. package/dist/rich-text-editor-Dxjw31Z4.js +0 -2341
  322. package/dist/rich-text-editor-DzP0Epmb.js +0 -2356
  323. package/dist/rich-text-editor-skplNlBM.cjs +0 -2345
  324. package/dist/select-Bkbr0f-Z.cjs +0 -162
  325. package/dist/select-CvIVdX2n.js +0 -145
  326. package/dist/slider-Bc5Hd0y1.js +0 -56
  327. package/dist/slider-N7hFFj6X.cjs +0 -73
  328. package/dist/tooltip-Ded96neP.cjs +0 -137
  329. package/dist/tooltip-HDOoD2-0.js +0 -120
  330. package/dist/use-mobile-B0hNy_Y6.cjs +0 -4303
  331. package/dist/use-mobile-BXuYROXM.js +0 -4202
  332. package/dist/use-mobile-Bbd51ASU.cjs +0 -4392
  333. package/dist/use-mobile-Bk6CX-TC.js +0 -4359
  334. package/dist/use-mobile-BvYdisLP.js +0 -4202
  335. package/dist/use-mobile-BzuxjzNX.cjs +0 -4392
  336. package/dist/use-mobile-CKb5pqTs.js +0 -4269
  337. package/dist/use-mobile-CaENcqm-.js +0 -4508
  338. package/dist/use-mobile-CbrYgJGJ.js +0 -4203
  339. package/dist/use-mobile-DMOvImGQ.cjs +0 -4542
  340. package/dist/use-mobile-DRB3BQgD.cjs +0 -4235
  341. package/dist/use-mobile-DZvv7QMR.js +0 -4359
  342. package/dist/use-mobile-DdI_TXam.cjs +0 -4235
  343. package/dist/use-mobile-DlceKf8a.js +0 -4359
  344. package/dist/use-mobile-DsOnow1o.cjs +0 -4236
  345. package/dist/use-mobile-Kcj6jSnK.cjs +0 -4392
  346. package/dist/use-mobile-bnKcua_i.js +0 -4202
  347. package/dist/use-mobile-ncXBeE2z.cjs +0 -4235
  348. package/templates/src/app/components/XerticaUiVersionBadge.tsx +0 -14
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Enterprise-grade React design system** built on Tailwind CSS v4, Radix UI, and Lucide Icons — with a robust AI-first documentation layer for precise LLM-driven composition and autonomous agent interaction.
4
4
 
5
- [![npm version](https://img.shields.io/badge/npm-2.1.0-blue)](https://www.npmjs.com/package/xertica-ui)
5
+ [![npm version](https://img.shields.io/badge/npm-2.1.0-blue)](https://www.npmjs.com/package/xertica-ui)
6
6
  [![license](https://img.shields.io/badge/license-proprietary-red)](./LICENSE)
7
7
 
8
8
  ---
@@ -50,24 +50,24 @@ npm install xertica-ui
50
50
  import 'xertica-ui/style.css';
51
51
  ```
52
52
 
53
- **2. Import components from the matching subpath**:
54
-
55
- ```tsx
56
- import { Button, Card } from 'xertica-ui/ui';
57
-
58
- export function Example() {
59
- return (
60
- <Card className="p-4">
61
- <Button>Continue</Button>
62
- </Card>
63
- );
64
- }
65
- ```
66
-
67
- **3. Optionally wrap your app** with `XerticaProvider` when you want coordinated theme, layout, assistant, maps, tooltip, API-key, and toast services:
68
-
69
- ```tsx
70
- import { XerticaProvider } from 'xertica-ui/brand';
53
+ **2. Import components from the matching subpath**:
54
+
55
+ ```tsx
56
+ import { Button, Card } from 'xertica-ui/ui';
57
+
58
+ export function Example() {
59
+ return (
60
+ <Card className="p-4">
61
+ <Button>Continue</Button>
62
+ </Card>
63
+ );
64
+ }
65
+ ```
66
+
67
+ **3. Optionally wrap your app** with `XerticaProvider` when you want coordinated theme, layout, assistant, maps, tooltip, API-key, and toast services:
68
+
69
+ ```tsx
70
+ import { XerticaProvider } from 'xertica-ui/brand';
71
71
 
72
72
  function App() {
73
73
  return (
@@ -85,28 +85,28 @@ function App() {
85
85
  Xertica UI v2 exposes **granular subpath entries** — import only what your layer needs without loading the entire library:
86
86
 
87
87
  ```tsx
88
- import { Button, Card, Input } from 'xertica-ui/ui'; // shared/ui — primitives
89
- import { QuickActionCard } from 'xertica-ui/blocks'; // composed blocks
90
- import { Sidebar, Header } from 'xertica-ui/layout'; // layout shell
91
- import { XerticaProvider } from 'xertica-ui/brand'; // app-level — providers & brand
92
- import { XerticaAssistant } from 'xertica-ui/assistant'; // feature — AI assistant
93
- import { VideoPlayer, AudioPlayer } from 'xertica-ui/media'; // feature — media players
94
- import { useLayout, useOptionalLayout, useTheme } from 'xertica-ui/hooks'; // shared/lib — hooks & contexts
95
- import { TemplatePage } from 'xertica-ui/pages'; // optional page templates
96
- import 'xertica-ui/style.css'; // styles — import once at root
97
- ```
98
-
99
- The root `from 'xertica-ui'` barrel remains available for full backward compatibility.
100
-
101
- > **TypeScript**: requires `"moduleResolution": "bundler"` (or `"node16"` / `"nodenext"`) in `tsconfig.json` to resolve subpath exports.
102
-
103
- ### Component Independence Contract
104
-
105
- `xertica-ui/style.css` is the only required global import. Public components are designed to render independently whenever possible, so importing one component into a consumer project should also bring the runtime logic that component needs.
106
-
107
- `XerticaProvider` remains the recommended app-level convenience wrapper, but it is not required for most primitives. It composes the library providers for theme, brand colors, language, layout, assistant state, API keys, Google Maps, tooltips, and toasts.
108
-
109
- Components with unavoidable external configuration, such as Google Maps, should render a configuration or error state instead of crashing the app.
88
+ import { Button, Card, Input } from 'xertica-ui/ui'; // shared/ui — primitives
89
+ import { QuickActionCard } from 'xertica-ui/blocks'; // composed blocks
90
+ import { Sidebar, Header } from 'xertica-ui/layout'; // layout shell
91
+ import { XerticaProvider } from 'xertica-ui/brand'; // app-level — providers & brand
92
+ import { XerticaAssistant } from 'xertica-ui/assistant'; // feature — AI assistant
93
+ import { VideoPlayer, AudioPlayer } from 'xertica-ui/media'; // feature — media players
94
+ import { useLayout, useOptionalLayout, useTheme } from 'xertica-ui/hooks'; // shared/lib — hooks & contexts
95
+ import { TemplatePage } from 'xertica-ui/pages'; // optional page templates
96
+ import 'xertica-ui/style.css'; // styles — import once at root
97
+ ```
98
+
99
+ The root `from 'xertica-ui'` barrel remains available for full backward compatibility.
100
+
101
+ > **TypeScript**: requires `"moduleResolution": "bundler"` (or `"node16"` / `"nodenext"`) in `tsconfig.json` to resolve subpath exports.
102
+
103
+ ### Component Independence Contract
104
+
105
+ `xertica-ui/style.css` is the only required global import. Public components are designed to render independently whenever possible, so importing one component into a consumer project should also bring the runtime logic that component needs.
106
+
107
+ `XerticaProvider` remains the recommended app-level convenience wrapper, but it is not required for most primitives. It composes the library providers for theme, brand colors, language, layout, assistant state, API keys, Google Maps, tooltips, and toasts.
108
+
109
+ Components with unavoidable external configuration, such as Google Maps, should render a configuration or error state instead of crashing the app.
110
110
 
111
111
  ---
112
112
 
@@ -135,22 +135,22 @@ export function MyPage() {
135
135
  }
136
136
  ```
137
137
 
138
- ### `useLayout()` Hook
139
- Access the sidebar state, width, and toggle functions anywhere in the component tree:
140
- ```tsx
141
- import { useLayout } from 'xertica-ui/hooks';
142
-
143
- const { sidebarWidth, isSidebarOpen, toggleSidebar } = useLayout();
144
- ```
145
-
146
- Use `useLayout()` when a page must fail early without a layout provider. Use `useOptionalLayout()` inside reusable components that should still render with internal fallbacks when imported in isolation.
147
-
148
- ```tsx
149
- import { useOptionalLayout } from 'xertica-ui/hooks';
150
-
151
- const layout = useOptionalLayout();
152
- const sidebarWidth = layout?.sidebarWidth ?? 0;
153
- ```
138
+ ### `useLayout()` Hook
139
+ Access the sidebar state, width, and toggle functions anywhere in the component tree:
140
+ ```tsx
141
+ import { useLayout } from 'xertica-ui/hooks';
142
+
143
+ const { sidebarWidth, isSidebarOpen, toggleSidebar } = useLayout();
144
+ ```
145
+
146
+ Use `useLayout()` when a page must fail early without a layout provider. Use `useOptionalLayout()` inside reusable components that should still render with internal fallbacks when imported in isolation.
147
+
148
+ ```tsx
149
+ import { useOptionalLayout } from 'xertica-ui/hooks';
150
+
151
+ const layout = useOptionalLayout();
152
+ const sidebarWidth = layout?.sidebarWidth ?? 0;
153
+ ```
154
154
 
155
155
  ---
156
156
 
@@ -177,7 +177,7 @@ Each feature only imports from `shared/` or its own domain. Pages only compose f
177
177
 
178
178
  ---
179
179
 
180
- ## 🧩 Component Catalog (100+ Components)
180
+ ## 🧩 Component Catalog (100+ Components)
181
181
 
182
182
  ### Layout & Navigation
183
183
  `Header` · `Sidebar` · `PageHeader` · `Breadcrumb` · `NavigationMenu` · `Tabs` · `Pagination` · `Accordion` · `Collapsible`
@@ -191,15 +191,15 @@ Each feature only imports from `shared/` or its own domain. Pages only compose f
191
191
  ### Actions & Data
192
192
  `Button` · `Toggle` · `ToggleGroup` · `Rating` · `Table` · `Badge` · `Avatar` · `Progress` · `StatsCard` · `Timeline` · `Stepper` · `TreeView` · `NotificationBadge` · `Chart`
193
193
 
194
- ### Overlays & Feedback
195
- `Dialog` · `AlertDialog` · `Sheet` · `Drawer` · `Popover` · `HoverCard` · `Tooltip` · `Alert` · `Sonner (Toast)` · `Command`
196
-
197
- ### Composed Blocks
198
- `FeatureCard` · `ActivityCard` · `ProfileCard` · `ProjectCard` · `QuickActionCard` · `NotificationCard`
194
+ ### Overlays & Feedback
195
+ `Dialog` · `AlertDialog` · `Sheet` · `Drawer` · `Popover` · `HoverCard` · `Tooltip` · `Alert` · `Sonner (Toast)` · `Command`
196
+
197
+ ### Composed Blocks
198
+ `FeatureCard` · `ActivityCard` · `ProfileCard` · `ProjectCard` · `QuickActionCard` · `NotificationCard`
199
199
 
200
200
  ---
201
201
 
202
- ## 🌟 Specialized Modules
202
+ ## 🌟 Specialized Modules
203
203
 
204
204
  ### 🤖 AI Assistant
205
205
  Integrated AI chat panel with workspace support.
@@ -209,29 +209,29 @@ Integrated AI chat panel with workspace support.
209
209
  First-class Google Maps integration.
210
210
  - `Map` · `RouteMap` · `SimpleMap` · `GoogleMapsLoader`
211
211
 
212
- ### 🎙️ Media
213
- - `AudioPlayer` · `VideoPlayer` · `FloatingMediaWrapper`
214
-
215
- ### 📄 Pages
216
- - `LoginPage` · `HomePage` · `TemplatePage` · `ForgotPasswordPage` · `ResetPasswordPage` · `VerifyEmailPage`
217
-
218
- ### 🧱 Blocks
219
- High-level dashboard and product patterns exported from `xertica-ui/blocks`.
220
- - `FeatureCard` · `ActivityCard` · `ProfileCard` · `ProjectCard` · `QuickActionCard` · `NotificationCard`
221
-
222
- The CLI template now includes a small fixed version badge so generated projects can visually identify which `xertica-ui` package version they are using.
223
-
224
- ---
225
-
226
- ## 📚 Storybook Documentation
227
-
228
- Storybook Docs pages use each component's real story variations instead of repeating a single usage example. UI component MDX files now render the story list directly, so docs stay aligned with the component's public stories.
229
-
230
- Map stories use a wider responsive preview frame, making `Map`, `RouteMap`, and related map examples readable in the Docs canvas.
231
-
232
- ---
233
-
234
- ## 🎨 Design Tokens
212
+ ### 🎙️ Media
213
+ - `AudioPlayer` · `VideoPlayer` · `FloatingMediaWrapper`
214
+
215
+ ### 📄 Pages
216
+ - `LoginPage` · `HomePage` · `TemplatePage` · `ForgotPasswordPage` · `ResetPasswordPage` · `VerifyEmailPage`
217
+
218
+ ### 🧱 Blocks
219
+ High-level dashboard and product patterns exported from `xertica-ui/blocks`.
220
+ - `FeatureCard` · `ActivityCard` · `ProfileCard` · `ProjectCard` · `QuickActionCard` · `NotificationCard`
221
+
222
+ The CLI template now includes a small fixed version badge so generated projects can visually identify which `xertica-ui` package version they are using.
223
+
224
+ ---
225
+
226
+ ## 📚 Storybook Documentation
227
+
228
+ Storybook Docs pages use each component's real story variations instead of repeating a single usage example. UI component MDX files now render the story list directly, so docs stay aligned with the component's public stories.
229
+
230
+ Map stories use a wider responsive preview frame, making `Map`, `RouteMap`, and related map examples readable in the Docs canvas.
231
+
232
+ ---
233
+
234
+ ## 🎨 Design Tokens
235
235
 
236
236
  Xertica UI uses semantic CSS tokens. **Never use raw colors or generic Tailwind color classes**:
237
237
 
@@ -1,38 +1,38 @@
1
- <svg
2
- fill="none"
3
- preserveAspectRatio="xMidYMid meet"
4
- viewBox="0 0 1543 289"
5
- xmlns="http://www.w3.org/2000/svg"
6
- >
7
- <g id="Xertica.ai">
8
- <path d="M1352.82 239.808V285.425H1304.73V239.808H1352.82Z" fill="#00BEFF" />
9
- <path d="M814.8 284.848H766.711V77.4971H814.8V284.848Z" fill="#00BEFF" />
10
- <path d="M1543 284.438H1514.2V160.28H1543V284.438Z" fill="#00BEFF" />
11
- <path
12
- clip-rule="evenodd"
13
- d="M1432.83 157.796C1446.98 157.796 1459.14 162.515 1468.58 170.709V160.28H1497.38V284.438H1468.58V274.01C1459.14 282.451 1446.98 286.921 1432.83 286.921C1395.1 286.921 1368.29 260.352 1368.29 222.359C1368.29 184.616 1395.1 157.796 1432.83 157.796ZM1432.83 183.778C1410.79 183.778 1396.27 199.061 1396.27 222.359C1396.27 245.658 1410.79 260.94 1432.83 260.94C1454.63 260.94 1468.9 245.658 1468.9 222.359C1468.9 199.06 1454.63 183.778 1432.83 183.778Z"
14
- fill="#00BEFF"
15
- fill-rule="evenodd"
16
- />
17
- <path d="M947.87 73.3516C1002.88 73.3516 1044.42 107.647 1053.57 159.234H1004.68C997.221 132.988 976.34 117.308 947.87 117.308C911.387 117.308 887.337 142.612 887.337 181.176C887.337 219.739 911.387 245.036 947.87 245.036C976.34 245.036 997.221 229.356 1004.68 203.109H1053.57C1044.47 254.701 1003.26 289 947.87 289C884.853 289 840.078 244.626 840.078 181.176C840.078 118.142 884.854 73.3516 947.87 73.3516Z" fill="#00BEFF" />
18
- <path d="M88.4971 39.8242L157.353 142.191L83.5371 251.524L60.9277 284.854H0L96.3154 142.191L5.37695 7H66.3047L88.4971 39.8242Z" fill="#00BEFF" />
19
- <path d="M254.314 284.855H193.387L151.914 223.71L182.548 178.551L254.314 284.855Z" fill="#00BEFF" />
20
- <path
21
- clip-rule="evenodd"
22
- d="M1179.14 73.3477C1202.77 73.3477 1223.08 81.2286 1238.84 94.9121V77.4971H1286.94V284.847H1238.84V267.431C1223.09 281.528 1202.77 288.992 1179.14 288.992C1116.12 288.992 1071.35 244.622 1071.35 181.172C1071.35 118.139 1116.12 73.3478 1179.14 73.3477ZM1179.14 117.308C1142.66 117.308 1118.61 142.604 1118.61 181.172C1118.61 219.739 1142.66 245.035 1179.14 245.035C1215.21 245.035 1238.84 219.739 1238.84 181.172C1238.84 142.605 1215.21 117.308 1179.14 117.308Z"
23
- fill="#00BEFF"
24
- fill-rule="evenodd"
25
- />
26
- <path d="M1543 145.383H1514.2V118.067H1543V145.383Z" fill="#00BEFF" />
27
- <path d="M672.466 77.501H736.31V121.457H672.466V211.448C672.466 230.939 682.415 240.891 702.313 240.891H736.309V284.852H698.999C649.246 284.851 625.203 259.968 625.203 211.449V7H672.466V77.501Z" fill="#00BEFF" />
28
- <path d="M814.8 52.6172H766.711V7H814.8V52.6172Z" fill="#00BEFF" />
29
- <path
30
- clip-rule="evenodd"
31
- d="M354.069 73.3516C417.086 73.3517 461.864 118.143 461.864 181.176C461.864 187.396 461.031 193.615 460.204 199.422H295.197C301.829 228.864 323.392 246.696 354.069 246.696C372.724 246.696 389.309 241.721 399.675 226.376H452.742C441.132 265.774 400.501 288.996 354.069 288.996C291.053 288.996 246.274 244.626 246.273 181.176C246.273 118.142 291.053 73.3516 354.069 73.3516ZM354.068 115.65C325.044 115.65 303.902 131.826 296.44 158.78H410.863C403.819 131.826 382.672 115.65 354.068 115.65Z"
32
- fill="#00BEFF"
33
- fill-rule="evenodd"
34
- />
35
- <path d="M596.957 121.453H562.962C543.064 121.453 533.114 131.409 533.114 150.899V284.847H485.852V150.899C485.852 102.38 509.894 77.4972 559.647 77.4971H596.957V121.453Z" fill="#00BEFF" />
36
- <path d="M182.552 98.6992L151.922 53.3906L188.014 0H248.941L182.552 98.6992Z" fill="#00BEFF" />
37
- </g>
1
+ <svg
2
+ fill="none"
3
+ preserveAspectRatio="xMidYMid meet"
4
+ viewBox="0 0 1543 289"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ >
7
+ <g id="Xertica.ai">
8
+ <path d="M1352.82 239.808V285.425H1304.73V239.808H1352.82Z" fill="#00BEFF" />
9
+ <path d="M814.8 284.848H766.711V77.4971H814.8V284.848Z" fill="#00BEFF" />
10
+ <path d="M1543 284.438H1514.2V160.28H1543V284.438Z" fill="#00BEFF" />
11
+ <path
12
+ clip-rule="evenodd"
13
+ d="M1432.83 157.796C1446.98 157.796 1459.14 162.515 1468.58 170.709V160.28H1497.38V284.438H1468.58V274.01C1459.14 282.451 1446.98 286.921 1432.83 286.921C1395.1 286.921 1368.29 260.352 1368.29 222.359C1368.29 184.616 1395.1 157.796 1432.83 157.796ZM1432.83 183.778C1410.79 183.778 1396.27 199.061 1396.27 222.359C1396.27 245.658 1410.79 260.94 1432.83 260.94C1454.63 260.94 1468.9 245.658 1468.9 222.359C1468.9 199.06 1454.63 183.778 1432.83 183.778Z"
14
+ fill="#00BEFF"
15
+ fill-rule="evenodd"
16
+ />
17
+ <path d="M947.87 73.3516C1002.88 73.3516 1044.42 107.647 1053.57 159.234H1004.68C997.221 132.988 976.34 117.308 947.87 117.308C911.387 117.308 887.337 142.612 887.337 181.176C887.337 219.739 911.387 245.036 947.87 245.036C976.34 245.036 997.221 229.356 1004.68 203.109H1053.57C1044.47 254.701 1003.26 289 947.87 289C884.853 289 840.078 244.626 840.078 181.176C840.078 118.142 884.854 73.3516 947.87 73.3516Z" fill="#00BEFF" />
18
+ <path d="M88.4971 39.8242L157.353 142.191L83.5371 251.524L60.9277 284.854H0L96.3154 142.191L5.37695 7H66.3047L88.4971 39.8242Z" fill="#00BEFF" />
19
+ <path d="M254.314 284.855H193.387L151.914 223.71L182.548 178.551L254.314 284.855Z" fill="#00BEFF" />
20
+ <path
21
+ clip-rule="evenodd"
22
+ d="M1179.14 73.3477C1202.77 73.3477 1223.08 81.2286 1238.84 94.9121V77.4971H1286.94V284.847H1238.84V267.431C1223.09 281.528 1202.77 288.992 1179.14 288.992C1116.12 288.992 1071.35 244.622 1071.35 181.172C1071.35 118.139 1116.12 73.3478 1179.14 73.3477ZM1179.14 117.308C1142.66 117.308 1118.61 142.604 1118.61 181.172C1118.61 219.739 1142.66 245.035 1179.14 245.035C1215.21 245.035 1238.84 219.739 1238.84 181.172C1238.84 142.605 1215.21 117.308 1179.14 117.308Z"
23
+ fill="#00BEFF"
24
+ fill-rule="evenodd"
25
+ />
26
+ <path d="M1543 145.383H1514.2V118.067H1543V145.383Z" fill="#00BEFF" />
27
+ <path d="M672.466 77.501H736.31V121.457H672.466V211.448C672.466 230.939 682.415 240.891 702.313 240.891H736.309V284.852H698.999C649.246 284.851 625.203 259.968 625.203 211.449V7H672.466V77.501Z" fill="#00BEFF" />
28
+ <path d="M814.8 52.6172H766.711V7H814.8V52.6172Z" fill="#00BEFF" />
29
+ <path
30
+ clip-rule="evenodd"
31
+ d="M354.069 73.3516C417.086 73.3517 461.864 118.143 461.864 181.176C461.864 187.396 461.031 193.615 460.204 199.422H295.197C301.829 228.864 323.392 246.696 354.069 246.696C372.724 246.696 389.309 241.721 399.675 226.376H452.742C441.132 265.774 400.501 288.996 354.069 288.996C291.053 288.996 246.274 244.626 246.273 181.176C246.273 118.142 291.053 73.3516 354.069 73.3516ZM354.068 115.65C325.044 115.65 303.902 131.826 296.44 158.78H410.863C403.819 131.826 382.672 115.65 354.068 115.65Z"
32
+ fill="#00BEFF"
33
+ fill-rule="evenodd"
34
+ />
35
+ <path d="M596.957 121.453H562.962C543.064 121.453 533.114 131.409 533.114 150.899V284.847H485.852V150.899C485.852 102.38 509.894 77.4972 559.647 77.4971H596.957V121.453Z" fill="#00BEFF" />
36
+ <path d="M182.552 98.6992L151.922 53.3906L188.014 0H248.941L182.552 98.6992Z" fill="#00BEFF" />
37
+ </g>
38
38
  </svg>
@@ -1,21 +1,21 @@
1
- <svg
2
- fill="none"
3
- preserveAspectRatio="xMidYMid meet"
4
- viewBox="0 0 258 282"
5
- xmlns="http://www.w3.org/2000/svg"
6
- >
7
- <g id="Xertica X">
8
- <path
9
- d="M67.2666 0.0361328L89.7793 33.3447L159.63 137.228L84.7471 248.178L61.8115 282H0L97.7109 137.228L5.45508 0.0361328H67.2666Z"
10
- fill="#00BEFF"
11
- />
12
- <path
13
- d="M258 282H196.185L154.114 219.951L185.192 174.123L258 282Z"
14
- fill="#00BEFF"
15
- />
16
- <path
17
- d="M252.696 0.186523L185.042 100.142L154.106 54.0693L190.884 0L252.696 0.186523Z"
18
- fill="#00BEFF"
19
- />
20
- </g>
1
+ <svg
2
+ fill="none"
3
+ preserveAspectRatio="xMidYMid meet"
4
+ viewBox="0 0 258 282"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ >
7
+ <g id="Xertica X">
8
+ <path
9
+ d="M67.2666 0.0361328L89.7793 33.3447L159.63 137.228L84.7471 248.178L61.8115 282H0L97.7109 137.228L5.45508 0.0361328H67.2666Z"
10
+ fill="#00BEFF"
11
+ />
12
+ <path
13
+ d="M258 282H196.185L154.114 219.951L185.192 174.123L258 282Z"
14
+ fill="#00BEFF"
15
+ />
16
+ <path
17
+ d="M252.696 0.186523L185.042 100.142L154.106 54.0693L190.884 0L252.696 0.186523Z"
18
+ fill="#00BEFF"
19
+ />
20
+ </g>
21
21
  </svg>