xertica-ui 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1047) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +27 -3
  3. package/assets/xertica-logo.svg +37 -37
  4. package/assets/xertica-x-logo.svg +20 -20
  5. package/bin/cli.ts +477 -70
  6. package/bin/generate-tokens.ts +262 -262
  7. package/bin/language-config.ts +361 -361
  8. package/components/assets/xertica-orbe-animation.ts +1162 -1162
  9. package/components/assistant/code-block/code-block.stories.tsx +57 -57
  10. package/components/assistant/code-block/code-block.test.tsx +44 -44
  11. package/components/assistant/code-block/index.ts +1 -1
  12. package/components/assistant/formatted-document/formatted-document.stories.tsx +51 -51
  13. package/components/assistant/formatted-document/formatted-document.test.tsx +42 -42
  14. package/components/assistant/formatted-document/index.ts +1 -1
  15. package/components/assistant/index.ts +6 -6
  16. package/components/assistant/markdown-message/MarkdownMessage.tsx +152 -152
  17. package/components/assistant/markdown-message/index.ts +1 -1
  18. package/components/assistant/markdown-message/markdown-message.stories.tsx +50 -50
  19. package/components/assistant/markdown-message/markdown-message.test.tsx +33 -33
  20. package/components/assistant/modern-chat-input/ModernChatInput.tsx +554 -554
  21. package/components/assistant/modern-chat-input/index.ts +1 -1
  22. package/components/assistant/modern-chat-input/modern-chat-input.stories.tsx +131 -131
  23. package/components/assistant/modern-chat-input/modern-chat-input.test.tsx +79 -79
  24. package/components/assistant/xertica-assistant/index.ts +3 -3
  25. package/components/assistant/xertica-assistant/parts/AssistantTypingIndicator.tsx +41 -41
  26. package/components/assistant/xertica-assistant/parts/index.ts +16 -16
  27. package/components/assistant/xertica-assistant/types.ts +134 -134
  28. package/components/assistant/xertica-assistant/xertica-assistant.stories.tsx +407 -407
  29. package/components/assistant/xertica-assistant/xertica-assistant.test.tsx +65 -65
  30. package/components/blocks/card-patterns/ActivityCardSkeleton.tsx +56 -56
  31. package/components/blocks/card-patterns/FeatureCard.tsx +109 -109
  32. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +63 -63
  33. package/components/blocks/card-patterns/NotificationCardSkeleton.tsx +81 -81
  34. package/components/blocks/card-patterns/ProfileCardSkeleton.tsx +69 -69
  35. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +72 -72
  36. package/components/blocks/card-patterns/QuickActionCard.tsx +68 -68
  37. package/components/blocks/card-patterns/QuickActionCardSkeleton.tsx +44 -44
  38. package/components/blocks/card-patterns/card-patterns.mdx +123 -123
  39. package/components/blocks/index.ts +1 -1
  40. package/components/brand/branding/branding.stories.tsx +57 -57
  41. package/components/brand/index.ts +6 -6
  42. package/components/brand/language-selector/LanguageSelector.tsx +102 -102
  43. package/components/brand/language-selector/index.ts +1 -1
  44. package/components/brand/language-selector/language-selector.mdx +126 -126
  45. package/components/brand/language-selector/language-selector.stories.tsx +114 -114
  46. package/components/brand/language-selector/language-selector.test.tsx +101 -101
  47. package/components/brand/theme-toggle/index.ts +1 -1
  48. package/components/brand/theme-toggle/theme-toggle.stories.tsx +34 -34
  49. package/components/brand/theme-toggle/theme-toggle.test.tsx +34 -34
  50. package/components/brand/xertica-logo/XerticaLogo.stories.tsx +82 -82
  51. package/components/brand/xertica-logo/XerticaLogo.tsx +104 -104
  52. package/components/brand/xertica-logo/index.ts +1 -1
  53. package/components/brand/xertica-logo/xertica-logo.test.tsx +26 -26
  54. package/components/brand/xertica-orbe/XerticaOrbe.tsx +1927 -1927
  55. package/components/brand/xertica-orbe/index.ts +1 -1
  56. package/components/brand/xertica-orbe/xertica-orbe.stories.tsx +40 -40
  57. package/components/brand/xertica-orbe/xertica-orbe.test.tsx +19 -19
  58. package/components/brand/xertica-provider/XerticaProvider.tsx +112 -112
  59. package/components/brand/xertica-provider/index.ts +1 -1
  60. package/components/brand/xertica-provider/xertica-provider.mdx +61 -61
  61. package/components/brand/xertica-provider/xertica-provider.test.tsx +74 -74
  62. package/components/brand/xertica-xlogo/XerticaXLogo.stories.tsx +79 -79
  63. package/components/brand/xertica-xlogo/XerticaXLogo.tsx +65 -65
  64. package/components/brand/xertica-xlogo/index.ts +1 -1
  65. package/components/brand/xertica-xlogo/xertica-xlogo.test.tsx +16 -16
  66. package/components/examples/ApiKeyMapExample.tsx +71 -71
  67. package/components/examples/DrawingMapExample.tsx +565 -565
  68. package/components/examples/FilterableMapExample.tsx +393 -393
  69. package/components/examples/LocationPickerExample.tsx +348 -348
  70. package/components/examples/MapExamples.tsx +268 -268
  71. package/components/examples/MapGmpExample.tsx +169 -169
  72. package/components/examples/MapShowcase.tsx +471 -471
  73. package/components/examples/RouteMapExamples.tsx +329 -329
  74. package/components/examples/SidebarLogoExample.tsx +65 -65
  75. package/components/examples/SimpleFilterableMap.tsx +219 -219
  76. package/components/examples/index.ts +45 -45
  77. package/components/figma/ImageWithFallback.tsx +27 -27
  78. package/components/hooks/index.ts +13 -13
  79. package/components/hooks/use-layout-shortcuts.ts +43 -43
  80. package/components/layout/header/header.stories.tsx +204 -204
  81. package/components/layout/header/header.test.tsx +75 -75
  82. package/components/layout/header/header.tsx +349 -349
  83. package/components/layout/header/index.ts +1 -1
  84. package/components/layout/index.ts +2 -2
  85. package/components/layout/sidebar/index.ts +3 -3
  86. package/components/layout/sidebar/sidebar.mdx +1 -1
  87. package/components/layout/sidebar/sidebar.stories.tsx +586 -586
  88. package/components/layout/sidebar/sidebar.test.tsx +76 -76
  89. package/components/layout/sidebar/use-sidebar.ts +104 -104
  90. package/components/media/audio-player/AudioPlayer.stories.tsx +124 -124
  91. package/components/media/audio-player/AudioPlayer.test.tsx +106 -106
  92. package/components/media/audio-player/AudioPlayer.tsx +1 -1
  93. package/components/media/audio-player/index.ts +1 -1
  94. package/components/media/audio-player/use-audio-player.ts +312 -312
  95. package/components/media/index.ts +3 -3
  96. package/components/media/video-player/VideoPlayer.stories.tsx +98 -98
  97. package/components/media/video-player/VideoPlayer.test.tsx +73 -73
  98. package/components/media/video-player/index.ts +1 -1
  99. package/components/pages/forgot-password-page/ForgotPasswordPage.stories.tsx +24 -24
  100. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
  101. package/components/pages/forgot-password-page/forgot-password-page.test.tsx +45 -45
  102. package/components/pages/forgot-password-page/index.ts +1 -1
  103. package/components/pages/home-content/HomeContent.stories.tsx +43 -43
  104. package/components/pages/home-content/HomeContent.tsx +1 -1
  105. package/components/pages/home-content/home-content.mdx +62 -62
  106. package/components/pages/home-content/index.ts +1 -1
  107. package/components/pages/home-page/HomePage.stories.tsx +39 -39
  108. package/components/pages/home-page/home-page.mdx +53 -53
  109. package/components/pages/home-page/home-page.test.tsx +53 -53
  110. package/components/pages/home-page/index.ts +1 -1
  111. package/components/pages/index.ts +8 -8
  112. package/components/pages/login-page/LoginPage.stories.tsx +39 -39
  113. package/components/pages/login-page/index.ts +1 -1
  114. package/components/pages/login-page/login-page.test.tsx +63 -63
  115. package/components/pages/reset-password-page/ResetPasswordPage.stories.tsx +24 -24
  116. package/components/pages/reset-password-page/index.ts +1 -1
  117. package/components/pages/template-content/TemplateContent.stories.tsx +43 -43
  118. package/components/pages/template-content/TemplateContent.tsx +1 -1
  119. package/components/pages/template-content/index.ts +1 -1
  120. package/components/pages/template-content/template-content.mdx +61 -61
  121. package/components/pages/template-page/TemplatePage.stories.tsx +39 -39
  122. package/components/pages/template-page/TemplatePage.tsx +62 -62
  123. package/components/pages/template-page/index.ts +1 -1
  124. package/components/pages/template-page/template-page.mdx +53 -53
  125. package/components/pages/template-page/template-page.test.tsx +52 -52
  126. package/components/pages/verify-email-page/VerifyEmailPage.stories.tsx +41 -41
  127. package/components/pages/verify-email-page/index.ts +1 -1
  128. package/components/public-api-smoke.test.tsx +52 -52
  129. package/components/shared/CustomTooltipContent.tsx +48 -48
  130. package/components/shared/assistant-utils.test.ts +16 -16
  131. package/components/shared/assistant-utils.ts +225 -225
  132. package/components/shared/error-boundary.stories.tsx +132 -132
  133. package/components/shared/error-boundary.tsx +154 -154
  134. package/components/shared/error-fallbacks.tsx +226 -226
  135. package/components/shared/layout-constants.ts +8 -8
  136. package/components/shared/navigation.ts +35 -35
  137. package/components/shared/use-mobile.test.ts +16 -16
  138. package/components/shared/use-mobile.ts +36 -36
  139. package/components/shared/utils.test.ts +14 -14
  140. package/components/shared/utils.ts +6 -6
  141. package/components/ui/accordion/accordion.mdx +8 -8
  142. package/components/ui/accordion/accordion.stories.tsx +105 -105
  143. package/components/ui/accordion/accordion.test.tsx +59 -59
  144. package/components/ui/accordion/accordion.tsx +77 -77
  145. package/components/ui/accordion/index.ts +1 -1
  146. package/components/ui/alert/alert.mdx +8 -8
  147. package/components/ui/alert/alert.stories.tsx +86 -86
  148. package/components/ui/alert/alert.test.tsx +53 -53
  149. package/components/ui/alert/alert.tsx +93 -93
  150. package/components/ui/alert/index.ts +1 -1
  151. package/components/ui/alert-dialog/alert-dialog.mdx +8 -8
  152. package/components/ui/alert-dialog/alert-dialog.stories.tsx +84 -84
  153. package/components/ui/alert-dialog/alert-dialog.test.tsx +70 -70
  154. package/components/ui/alert-dialog/alert-dialog.tsx +149 -149
  155. package/components/ui/alert-dialog/index.ts +1 -1
  156. package/components/ui/aspect-ratio/aspect-ratio.mdx +8 -8
  157. package/components/ui/aspect-ratio/aspect-ratio.stories.tsx +46 -46
  158. package/components/ui/aspect-ratio/aspect-ratio.test.tsx +28 -28
  159. package/components/ui/aspect-ratio/aspect-ratio.tsx +20 -20
  160. package/components/ui/aspect-ratio/index.ts +1 -1
  161. package/components/ui/assistant-chart/AssistantChart.tsx +64 -64
  162. package/components/ui/assistant-chart/assistant-chart.mdx +8 -8
  163. package/components/ui/assistant-chart/assistant-chart.stories.tsx +44 -44
  164. package/components/ui/assistant-chart/assistant-chart.test.tsx +46 -46
  165. package/components/ui/assistant-chart/index.ts +1 -1
  166. package/components/ui/avatar/avatar.mdx +8 -8
  167. package/components/ui/avatar/avatar.stories.tsx +86 -86
  168. package/components/ui/avatar/avatar.test.tsx +55 -55
  169. package/components/ui/avatar/avatar.tsx +71 -71
  170. package/components/ui/avatar/index.ts +1 -1
  171. package/components/ui/badge/badge.mdx +8 -8
  172. package/components/ui/badge/badge.stories.tsx +72 -72
  173. package/components/ui/badge/badge.test.tsx +40 -40
  174. package/components/ui/badge/badge.tsx +58 -58
  175. package/components/ui/badge/index.ts +1 -1
  176. package/components/ui/breadcrumb/breadcrumb.mdx +8 -8
  177. package/components/ui/breadcrumb/breadcrumb.stories.tsx +123 -123
  178. package/components/ui/breadcrumb/breadcrumb.test.tsx +70 -70
  179. package/components/ui/breadcrumb/breadcrumb.tsx +114 -114
  180. package/components/ui/breadcrumb/index.ts +1 -1
  181. package/components/ui/button/button.mdx +8 -8
  182. package/components/ui/button/button.stories.tsx +183 -183
  183. package/components/ui/button/button.test.tsx +64 -64
  184. package/components/ui/button/button.tsx +98 -98
  185. package/components/ui/button/index.ts +1 -1
  186. package/components/ui/calendar/calendar.mdx +8 -8
  187. package/components/ui/calendar/calendar.stories.tsx +108 -108
  188. package/components/ui/calendar/calendar.test.tsx +53 -53
  189. package/components/ui/calendar/calendar.tsx +230 -230
  190. package/components/ui/calendar/index.ts +1 -1
  191. package/components/ui/card/card.mdx +8 -8
  192. package/components/ui/card/card.stories.tsx +301 -301
  193. package/components/ui/card/card.test.tsx +55 -55
  194. package/components/ui/card/card.tsx +83 -83
  195. package/components/ui/card/index.ts +1 -1
  196. package/components/ui/carousel/carousel.mdx +8 -8
  197. package/components/ui/carousel/carousel.stories.tsx +80 -80
  198. package/components/ui/carousel/carousel.test.tsx +75 -75
  199. package/components/ui/carousel/carousel.tsx +242 -242
  200. package/components/ui/carousel/index.ts +1 -1
  201. package/components/ui/chart/chart.mdx +8 -8
  202. package/components/ui/chart/chart.stories.tsx +1328 -1328
  203. package/components/ui/chart/chart.test.tsx +178 -178
  204. package/components/ui/chart/chart.tsx +2232 -2232
  205. package/components/ui/chart/index.ts +1 -1
  206. package/components/ui/checkbox/checkbox.mdx +8 -8
  207. package/components/ui/checkbox/checkbox.stories.tsx +109 -109
  208. package/components/ui/checkbox/checkbox.test.tsx +49 -49
  209. package/components/ui/checkbox/checkbox.tsx +68 -68
  210. package/components/ui/checkbox/index.ts +1 -1
  211. package/components/ui/collapsible/collapsible.mdx +8 -8
  212. package/components/ui/collapsible/collapsible.stories.tsx +45 -45
  213. package/components/ui/collapsible/collapsible.test.tsx +51 -51
  214. package/components/ui/collapsible/collapsible.tsx +32 -32
  215. package/components/ui/collapsible/index.ts +1 -1
  216. package/components/ui/command/command.mdx +8 -8
  217. package/components/ui/command/command.stories.tsx +134 -134
  218. package/components/ui/command/command.test.tsx +48 -48
  219. package/components/ui/command/command.tsx +163 -163
  220. package/components/ui/command/index.ts +1 -1
  221. package/components/ui/context-menu/context-menu.mdx +8 -8
  222. package/components/ui/context-menu/context-menu.stories.tsx +76 -76
  223. package/components/ui/context-menu/context-menu.test.tsx +61 -61
  224. package/components/ui/context-menu/context-menu.tsx +236 -236
  225. package/components/ui/context-menu/index.ts +1 -1
  226. package/components/ui/dialog/dialog.mdx +8 -8
  227. package/components/ui/dialog/dialog.stories.tsx +174 -174
  228. package/components/ui/dialog/dialog.test.tsx +78 -78
  229. package/components/ui/dialog/dialog.tsx +189 -189
  230. package/components/ui/dialog/index.ts +1 -1
  231. package/components/ui/drawer/drawer.mdx +8 -8
  232. package/components/ui/drawer/drawer.stories.tsx +71 -71
  233. package/components/ui/drawer/drawer.test.tsx +67 -67
  234. package/components/ui/drawer/drawer.tsx +146 -146
  235. package/components/ui/drawer/index.ts +1 -1
  236. package/components/ui/dropdown-menu/dropdown-menu.mdx +8 -8
  237. package/components/ui/dropdown-menu/dropdown-menu.stories.tsx +156 -156
  238. package/components/ui/dropdown-menu/dropdown-menu.test.tsx +62 -62
  239. package/components/ui/dropdown-menu/dropdown-menu.tsx +240 -240
  240. package/components/ui/dropdown-menu/index.ts +1 -1
  241. package/components/ui/empty/empty.mdx +8 -8
  242. package/components/ui/empty/empty.stories.tsx +85 -85
  243. package/components/ui/empty/empty.test.tsx +31 -31
  244. package/components/ui/empty/empty.tsx +88 -88
  245. package/components/ui/empty/index.ts +1 -1
  246. package/components/ui/file-upload/file-upload.mdx +8 -8
  247. package/components/ui/file-upload/file-upload.stories.tsx +144 -144
  248. package/components/ui/file-upload/file-upload.test.tsx +65 -65
  249. package/components/ui/file-upload/file-upload.tsx +142 -142
  250. package/components/ui/file-upload/index.ts +2 -2
  251. package/components/ui/file-upload/use-file-upload.ts +177 -177
  252. package/components/ui/form/form.stories.tsx +85 -85
  253. package/components/ui/form/form.test.tsx +75 -75
  254. package/components/ui/form/form.tsx +163 -163
  255. package/components/ui/form/index.ts +1 -1
  256. package/components/ui/google-maps-loader/google-maps-loader.test.tsx +35 -35
  257. package/components/ui/google-maps-loader/google-maps-loader.tsx +465 -465
  258. package/components/ui/google-maps-loader/index.ts +1 -1
  259. package/components/ui/hover-card/hover-card.mdx +8 -8
  260. package/components/ui/hover-card/hover-card.stories.tsx +61 -61
  261. package/components/ui/hover-card/hover-card.test.tsx +48 -48
  262. package/components/ui/hover-card/hover-card.tsx +50 -50
  263. package/components/ui/hover-card/index.ts +1 -1
  264. package/components/ui/index.ts +400 -400
  265. package/components/ui/input/index.ts +1 -1
  266. package/components/ui/input/input.mdx +8 -8
  267. package/components/ui/input/input.stories.tsx +153 -153
  268. package/components/ui/input/input.test.tsx +47 -47
  269. package/components/ui/input/input.tsx +57 -57
  270. package/components/ui/input-otp/index.ts +1 -1
  271. package/components/ui/input-otp/input-otp.mdx +8 -8
  272. package/components/ui/input-otp/input-otp.stories.tsx +120 -120
  273. package/components/ui/input-otp/input-otp.test.tsx +74 -74
  274. package/components/ui/input-otp/input-otp.tsx +101 -101
  275. package/components/ui/label/index.ts +1 -1
  276. package/components/ui/label/label.mdx +8 -8
  277. package/components/ui/label/label.stories.tsx +74 -74
  278. package/components/ui/label/label.test.tsx +45 -45
  279. package/components/ui/label/label.tsx +53 -53
  280. package/components/ui/map/index.ts +1 -1
  281. package/components/ui/map/map.mdx +8 -8
  282. package/components/ui/map/map.stories.tsx +86 -86
  283. package/components/ui/map/map.test.tsx +82 -82
  284. package/components/ui/map/map.tsx +506 -506
  285. package/components/ui/map/mock.test.tsx +13 -13
  286. package/components/ui/map-config/index.ts +1 -1
  287. package/components/ui/map-config/map-config.ts +18 -18
  288. package/components/ui/map-layers/index.ts +1 -1
  289. package/components/ui/map-layers/map-layers.test.tsx +48 -48
  290. package/components/ui/map-layers/map-layers.tsx +126 -126
  291. package/components/ui/map.exports/index.ts +1 -1
  292. package/components/ui/map.exports/map.exports.ts +31 -31
  293. package/components/ui/menubar/index.ts +1 -1
  294. package/components/ui/menubar/menubar.mdx +8 -8
  295. package/components/ui/menubar/menubar.stories.tsx +130 -130
  296. package/components/ui/menubar/menubar.test.tsx +53 -53
  297. package/components/ui/menubar/menubar.tsx +265 -265
  298. package/components/ui/navigation-menu/index.ts +1 -1
  299. package/components/ui/navigation-menu/navigation-menu.mdx +8 -8
  300. package/components/ui/navigation-menu/navigation-menu.stories.tsx +126 -126
  301. package/components/ui/navigation-menu/navigation-menu.test.tsx +47 -47
  302. package/components/ui/navigation-menu/navigation-menu.tsx +165 -165
  303. package/components/ui/notification-badge/index.ts +1 -1
  304. package/components/ui/notification-badge/notification-badge.mdx +8 -8
  305. package/components/ui/notification-badge/notification-badge.stories.tsx +66 -66
  306. package/components/ui/notification-badge/notification-badge.test.tsx +61 -61
  307. package/components/ui/notification-badge/notification-badge.tsx +91 -91
  308. package/components/ui/page-header/index.ts +1 -1
  309. package/components/ui/page-header/page-header.stories.tsx +69 -69
  310. package/components/ui/page-header/page-header.test.tsx +37 -37
  311. package/components/ui/page-header/page-header.tsx +124 -124
  312. package/components/ui/pagination/index.ts +3 -3
  313. package/components/ui/pagination/pagination.mdx +8 -8
  314. package/components/ui/pagination/pagination.stories.tsx +210 -210
  315. package/components/ui/pagination/pagination.test.tsx +63 -63
  316. package/components/ui/pagination/pagination.tsx +140 -140
  317. package/components/ui/pagination/use-pagination.ts +173 -173
  318. package/components/ui/popover/index.ts +1 -1
  319. package/components/ui/popover/popover.mdx +8 -8
  320. package/components/ui/popover/popover.stories.tsx +73 -73
  321. package/components/ui/popover/popover.test.tsx +48 -48
  322. package/components/ui/popover/popover.tsx +54 -54
  323. package/components/ui/progress/index.ts +1 -1
  324. package/components/ui/progress/progress.mdx +8 -8
  325. package/components/ui/progress/progress.stories.tsx +55 -55
  326. package/components/ui/progress/progress.test.tsx +23 -23
  327. package/components/ui/progress/progress.tsx +68 -68
  328. package/components/ui/radio-group/index.ts +1 -1
  329. package/components/ui/radio-group/radio-group.mdx +8 -8
  330. package/components/ui/radio-group/radio-group.stories.tsx +114 -114
  331. package/components/ui/radio-group/radio-group.test.tsx +78 -78
  332. package/components/ui/radio-group/radio-group.tsx +93 -93
  333. package/components/ui/rating/index.ts +1 -1
  334. package/components/ui/rating/rating.mdx +8 -8
  335. package/components/ui/rating/rating.stories.tsx +50 -50
  336. package/components/ui/rating/rating.test.tsx +48 -48
  337. package/components/ui/rating/rating.tsx +145 -145
  338. package/components/ui/resizable/index.ts +1 -1
  339. package/components/ui/resizable/resizable.mdx +8 -8
  340. package/components/ui/resizable/resizable.stories.tsx +88 -88
  341. package/components/ui/resizable/resizable.test.tsx +61 -61
  342. package/components/ui/resizable/resizable.tsx +452 -452
  343. package/components/ui/rich-text-editor/index.ts +7 -7
  344. package/components/ui/rich-text-editor/rich-text-editor.stories.tsx +290 -290
  345. package/components/ui/rich-text-editor/rich-text-editor.test.tsx +86 -86
  346. package/components/ui/rich-text-editor/rich-text-editor.tsx +634 -634
  347. package/components/ui/rich-text-editor/use-rich-text-editor.ts +453 -453
  348. package/components/ui/route-map/index.ts +1 -1
  349. package/components/ui/route-map/route-map.mdx +8 -8
  350. package/components/ui/route-map/route-map.stories.tsx +48 -48
  351. package/components/ui/route-map/route-map.test.tsx +108 -108
  352. package/components/ui/route-map/route-map.tsx +349 -349
  353. package/components/ui/scroll-area/index.ts +1 -1
  354. package/components/ui/scroll-area/scroll-area.mdx +8 -8
  355. package/components/ui/scroll-area/scroll-area.stories.tsx +31 -31
  356. package/components/ui/scroll-area/scroll-area.test.tsx +27 -27
  357. package/components/ui/scroll-area/scroll-area.tsx +70 -70
  358. package/components/ui/search/index.ts +1 -1
  359. package/components/ui/search/search.mdx +8 -8
  360. package/components/ui/search/search.stories.tsx +107 -107
  361. package/components/ui/search/search.test.tsx +67 -67
  362. package/components/ui/search/search.tsx +141 -141
  363. package/components/ui/select/index.ts +1 -1
  364. package/components/ui/select/select.mdx +8 -8
  365. package/components/ui/select/select.stories.tsx +163 -163
  366. package/components/ui/select/select.test.tsx +99 -99
  367. package/components/ui/select/select.tsx +195 -195
  368. package/components/ui/separator/index.ts +1 -1
  369. package/components/ui/separator/separator.mdx +8 -8
  370. package/components/ui/separator/separator.stories.tsx +55 -55
  371. package/components/ui/separator/separator.test.tsx +23 -23
  372. package/components/ui/separator/separator.tsx +39 -39
  373. package/components/ui/sheet/index.ts +1 -1
  374. package/components/ui/sheet/sheet.mdx +8 -8
  375. package/components/ui/sheet/sheet.stories.tsx +93 -93
  376. package/components/ui/sheet/sheet.test.tsx +62 -62
  377. package/components/ui/sheet/sheet.tsx +149 -149
  378. package/components/ui/simple-map/index.ts +1 -1
  379. package/components/ui/simple-map/simple-map.mdx +8 -8
  380. package/components/ui/simple-map/simple-map.stories.tsx +44 -44
  381. package/components/ui/simple-map/simple-map.test.tsx +36 -36
  382. package/components/ui/simple-map/simple-map.tsx +92 -92
  383. package/components/ui/skeleton/index.ts +1 -1
  384. package/components/ui/skeleton/skeleton.mdx +8 -8
  385. package/components/ui/skeleton/skeleton.stories.tsx +36 -36
  386. package/components/ui/skeleton/skeleton.test.tsx +19 -19
  387. package/components/ui/skeleton/skeleton.tsx +25 -25
  388. package/components/ui/slider/index.ts +1 -1
  389. package/components/ui/slider/slider.mdx +8 -8
  390. package/components/ui/slider/slider.stories.tsx +44 -44
  391. package/components/ui/slider/slider.test.tsx +25 -25
  392. package/components/ui/slider/slider.tsx +66 -66
  393. package/components/ui/sonner/index.ts +1 -1
  394. package/components/ui/sonner/sonner.mdx +8 -8
  395. package/components/ui/sonner/sonner.stories.tsx +41 -41
  396. package/components/ui/sonner/sonner.test.tsx +24 -24
  397. package/components/ui/sonner/sonner.tsx +74 -74
  398. package/components/ui/stats-card/stats-card-skeleton.tsx +62 -62
  399. package/components/ui/stats-card/stats-card.mdx +8 -8
  400. package/components/ui/stats-card/stats-card.test.tsx +34 -34
  401. package/components/ui/stats-card/stats-card.tsx +93 -93
  402. package/components/ui/stepper/index.ts +3 -3
  403. package/components/ui/stepper/stepper.mdx +8 -8
  404. package/components/ui/stepper/stepper.stories.tsx +171 -171
  405. package/components/ui/stepper/stepper.test.tsx +47 -47
  406. package/components/ui/stepper/stepper.tsx +190 -190
  407. package/components/ui/stepper/use-stepper.ts +139 -139
  408. package/components/ui/switch/index.ts +1 -1
  409. package/components/ui/switch/switch.mdx +8 -8
  410. package/components/ui/switch/switch.stories.tsx +93 -93
  411. package/components/ui/switch/switch.test.tsx +44 -44
  412. package/components/ui/switch/switch.tsx +70 -70
  413. package/components/ui/table/index.ts +1 -1
  414. package/components/ui/table/table.mdx +8 -8
  415. package/components/ui/table/table.stories.tsx +114 -114
  416. package/components/ui/table/table.test.tsx +43 -43
  417. package/components/ui/table/table.tsx +104 -104
  418. package/components/ui/tabs/index.ts +1 -1
  419. package/components/ui/tabs/tabs.mdx +8 -8
  420. package/components/ui/tabs/tabs.stories.tsx +140 -140
  421. package/components/ui/tabs/tabs.test.tsx +50 -50
  422. package/components/ui/tabs/tabs.tsx +66 -66
  423. package/components/ui/textarea/index.ts +1 -1
  424. package/components/ui/textarea/textarea.mdx +8 -8
  425. package/components/ui/textarea/textarea.stories.tsx +69 -69
  426. package/components/ui/textarea/textarea.test.tsx +41 -41
  427. package/components/ui/textarea/textarea.tsx +61 -61
  428. package/components/ui/timeline/index.ts +1 -1
  429. package/components/ui/timeline/timeline.mdx +8 -8
  430. package/components/ui/timeline/timeline.stories.tsx +97 -97
  431. package/components/ui/timeline/timeline.test.tsx +53 -53
  432. package/components/ui/timeline/timeline.tsx +124 -124
  433. package/components/ui/toggle/index.ts +1 -1
  434. package/components/ui/toggle/toggle.mdx +8 -8
  435. package/components/ui/toggle/toggle.stories.tsx +56 -56
  436. package/components/ui/toggle/toggle.test.tsx +32 -32
  437. package/components/ui/toggle/toggle.tsx +55 -55
  438. package/components/ui/toggle-group/index.ts +1 -1
  439. package/components/ui/toggle-group/toggle-group.mdx +8 -8
  440. package/components/ui/toggle-group/toggle-group.stories.tsx +66 -66
  441. package/components/ui/toggle-group/toggle-group.test.tsx +47 -47
  442. package/components/ui/toggle-group/toggle-group.tsx +79 -79
  443. package/components/ui/tooltip/index.ts +1 -1
  444. package/components/ui/tooltip/tooltip.mdx +8 -8
  445. package/components/ui/tooltip/tooltip.stories.tsx +83 -83
  446. package/components/ui/tooltip/tooltip.test.tsx +39 -39
  447. package/components/ui/tooltip/tooltip.tsx +69 -69
  448. package/components/ui/tree-view/index.ts +4 -4
  449. package/components/ui/tree-view/tree-view.mdx +8 -8
  450. package/components/ui/tree-view/tree-view.stories.tsx +154 -154
  451. package/components/ui/tree-view/tree-view.test.tsx +58 -58
  452. package/components/ui/tree-view/tree-view.tsx +171 -171
  453. package/components/ui/tree-view/use-tree-view.ts +237 -237
  454. package/contexts/ApiKeyContext.test.tsx +26 -26
  455. package/contexts/ApiKeyContext.tsx +196 -196
  456. package/contexts/AssistenteContext.test.tsx +17 -17
  457. package/contexts/AssistenteContext.tsx +113 -113
  458. package/contexts/AuthContext.tsx +118 -118
  459. package/contexts/BrandColorsContext.test.tsx +21 -21
  460. package/contexts/BrandColorsContext.tsx +251 -251
  461. package/contexts/LanguageContext.test.tsx +121 -121
  462. package/contexts/LanguageContext.tsx +251 -251
  463. package/contexts/LayoutContext.test.tsx +29 -29
  464. package/contexts/LayoutContext.tsx +140 -140
  465. package/contexts/ThemeContext.test.tsx +38 -38
  466. package/contexts/ThemeContext.tsx +111 -111
  467. package/contexts/index.ts +8 -8
  468. package/contexts/theme-data.ts +340 -340
  469. package/dist/{AssistantChart-BAx9VQvb.cjs → AssistantChart-Bdd44uBn.cjs} +388 -127
  470. package/dist/{AssistantChart-CVko2A1W.js → AssistantChart-CFhDdGyU.js} +391 -130
  471. package/dist/AssistantChart-COGiOV-g.cjs +3541 -0
  472. package/dist/AssistantChart-CWX1OWNM.js +3373 -0
  473. package/dist/{AssistantChart-CVzmmhx4.js → AssistantChart-C_hwFRRr.js} +4 -4
  474. package/dist/{AssistantChart-BAudAfne.cjs → AssistantChart-CldVCVDe.cjs} +5 -5
  475. package/dist/{AssistantChart-BP8upjMk.js → AssistantChart-Cu3m7RBo.js} +5 -5
  476. package/dist/AssistantChart-CxGjH7Qk.js +3477 -0
  477. package/dist/AssistantChart-DIpshm3i.js +4784 -0
  478. package/dist/AssistantChart-D_PTeu8P.cjs +3503 -0
  479. package/dist/{AssistantChart-9w31gdAb.cjs → AssistantChart-DoZCyS5r.cjs} +4 -4
  480. package/dist/AssistantChart-zjsy2GaZ.cjs +4810 -0
  481. package/dist/AudioPlayer-9psiEucT.cjs +1282 -0
  482. package/dist/AudioPlayer-B1lt5cPl.cjs +989 -0
  483. package/dist/AudioPlayer-BZ7bibzU.cjs +982 -0
  484. package/dist/AudioPlayer-BpRPS4-1.cjs +1277 -0
  485. package/dist/AudioPlayer-C12BjQBV.cjs +997 -0
  486. package/dist/{AudioPlayer-1ypwE2Wh.cjs → AudioPlayer-CFeV8t-5.cjs} +1 -1
  487. package/dist/{AudioPlayer-DuKXrCfy.js → AudioPlayer-CGRUtUdN.js} +1 -1
  488. package/dist/AudioPlayer-Coly3q5R.js +1278 -0
  489. package/dist/AudioPlayer-CySJIyvL.js +937 -0
  490. package/dist/AudioPlayer-DMcG_c7L.js +990 -0
  491. package/dist/AudioPlayer-DcFKRJE_.js +998 -0
  492. package/dist/AudioPlayer-Dp2bD1Gk.js +1278 -0
  493. package/dist/AudioPlayer-IAU5q5T1.cjs +936 -0
  494. package/dist/AudioPlayer-e8LfNoqO.js +983 -0
  495. package/dist/BrandColorsContext-565dDHd5.js +660 -0
  496. package/dist/BrandColorsContext-BcJbtkqn.cjs +659 -0
  497. package/dist/BrandColorsContext-DZT7JjeD.js +659 -0
  498. package/dist/BrandColorsContext-awnBCmC4.cjs +666 -0
  499. package/dist/{xertica-assistant-Qp3ydksa.cjs → CodeBlock-7TTgmdGG.cjs} +263 -51
  500. package/dist/{xertica-assistant-gnCJdcZY.js → CodeBlock-BeSt1h5P.js} +219 -7
  501. package/dist/CodeBlock-BgfYL_rD.cjs +2094 -0
  502. package/dist/CodeBlock-BlcqlA9M.cjs +2094 -0
  503. package/dist/CodeBlock-Bnmeu5ez.cjs +2094 -0
  504. package/dist/CodeBlock-BtfPlbAI.js +2078 -0
  505. package/dist/CodeBlock-CIySIuYr.js +2078 -0
  506. package/dist/CodeBlock-CuPtUM-7.cjs +2094 -0
  507. package/dist/CodeBlock-D6ffWXgc.js +2078 -0
  508. package/dist/CodeBlock-D8dcwbit.cjs +2094 -0
  509. package/dist/CodeBlock-DMZrFnlw.cjs +2094 -0
  510. package/dist/CodeBlock-DYkTfR0f.js +221 -0
  511. package/dist/CodeBlock-DlBehYN8.js +2078 -0
  512. package/dist/CodeBlock-DnYNI8rQ.js +2078 -0
  513. package/dist/CodeBlock-DvKWbSnE.cjs +2094 -0
  514. package/dist/CodeBlock-DwMCfkFY.js +2078 -0
  515. package/dist/CodeBlock-Dy6CNYyj.js +2078 -0
  516. package/dist/CodeBlock-EOvp9cVu.cjs +223 -0
  517. package/dist/CodeBlock-U1pPOQI7.cjs +2094 -0
  518. package/dist/CodeBlock-f_GpNhEB.js +2078 -0
  519. package/dist/CodeBlock-oB6u8nI1.js +2078 -0
  520. package/dist/CodeBlock-tZC31B73.cjs +2094 -0
  521. package/dist/CustomTooltipContent-BhdIeBEg.cjs +54 -0
  522. package/dist/CustomTooltipContent-CNbVB2NS.js +33 -0
  523. package/dist/FeatureCard-BZ4CYxFf.cjs +497 -0
  524. package/dist/FeatureCard-CxC-7C-C.cjs +300 -0
  525. package/dist/FeatureCard-DNycVGwT.js +485 -0
  526. package/dist/FeatureCard-DbHWCb4E.js +301 -0
  527. package/dist/FeatureCardSkeleton-DZqc96mt.js +27 -0
  528. package/dist/FeatureCardSkeleton-pTa0YNKP.cjs +29 -0
  529. package/dist/ImageWithFallback-CGtidP6B.cjs +4542 -0
  530. package/dist/ImageWithFallback-lsg3pdFg.js +4508 -0
  531. package/dist/{LanguageContext-DvUt5jBg.cjs → LanguageContext-B_KFTCzT.cjs} +2 -2
  532. package/dist/{LanguageContext-BwhwC3G2.js → LanguageContext-CS14yCpi.js} +2 -2
  533. package/dist/{XerticaXLogo-BWaag64t.js → LanguageSelector-B5YfbHra.js} +115 -136
  534. package/dist/{XerticaXLogo-DTee_y8X.cjs → LanguageSelector-D6uacAIM.cjs} +115 -136
  535. package/dist/LayoutContext-B45-e9DI.cjs +93 -0
  536. package/dist/LayoutContext-BAql6ZRY.js +97 -0
  537. package/dist/LayoutContext-BEq_-n98.cjs +96 -0
  538. package/dist/LayoutContext-Bav3UMEA.js +94 -0
  539. package/dist/LayoutContext-BvK-ggDa.cjs +96 -0
  540. package/dist/LayoutContext-DNl1xSoX.js +92 -0
  541. package/dist/{ThemeContext-Bo-W2WZH.js → ThemeContext-BWq9ACPo.js} +8 -13
  542. package/dist/{ThemeContext-ept8jhXI.js → ThemeContext-BXjrgUjW.js} +261 -200
  543. package/dist/{ThemeContext-BblcjQup.cjs → ThemeContext-Bmod0Cg2.cjs} +8 -13
  544. package/dist/ThemeContext-BoH4NLfN.js +734 -0
  545. package/dist/{ThemeContext-BbBNoFTG.js → ThemeContext-C2EwAPDt.js} +2 -2
  546. package/dist/{ThemeContext-U4dEYc6C.cjs → ThemeContext-CGk3KK0k.cjs} +1 -8
  547. package/dist/{ThemeContext-CP3a0jxy.cjs → ThemeContext-CMD3z2Dz.cjs} +268 -193
  548. package/dist/{ThemeContext-D3LzacmG.js → ThemeContext-CQSo4Iwc.js} +1 -8
  549. package/dist/ThemeContext-j5aGtPky.cjs +1924 -0
  550. package/dist/ThemeContext-r69W20Xg.cjs +733 -0
  551. package/dist/{ThemeContext-Cmr8Ex8H.cjs → ThemeContext-vTjumZeM.cjs} +2 -2
  552. package/dist/ThemeContext-x_F2zsnv.js +1923 -0
  553. package/dist/{VerifyEmailPage-BRSP-Pwt.cjs → VerifyEmailPage--1Vurewl.cjs} +3 -3
  554. package/dist/{VerifyEmailPage-BE-L9mB7.js → VerifyEmailPage-1WwWczAn.js} +12 -22
  555. package/dist/{VerifyEmailPage-DF2ilhum.cjs → VerifyEmailPage-B4peJjAT.cjs} +356 -334
  556. package/dist/{VerifyEmailPage-CR7kb5df.cjs → VerifyEmailPage-BComraR7.cjs} +12 -22
  557. package/dist/{VerifyEmailPage-hdB8JQGv.cjs → VerifyEmailPage-By3Jf__L.cjs} +348 -329
  558. package/dist/{VerifyEmailPage-BiRm7Nh4.cjs → VerifyEmailPage-ByerOcm4.cjs} +348 -329
  559. package/dist/{VerifyEmailPage-CbgjOF0v.js → VerifyEmailPage-C0c2e5n0.js} +7 -7
  560. package/dist/{VerifyEmailPage-EhudUdqF.js → VerifyEmailPage-C5TNQTBa.js} +355 -343
  561. package/dist/{VerifyEmailPage-Dt7zgA4w.cjs → VerifyEmailPage-CFLMls1p.cjs} +4 -4
  562. package/dist/{VerifyEmailPage-vYHbYK3q.js → VerifyEmailPage-CJLz3jrn.js} +347 -338
  563. package/dist/VerifyEmailPage-COiyNl1y.js +2825 -0
  564. package/dist/{VerifyEmailPage-DMBh4NM9.cjs → VerifyEmailPage-CYXtbKi3.cjs} +1 -1
  565. package/dist/{VerifyEmailPage-DTtFfC-J.js → VerifyEmailPage-CgMxRb4z.js} +3 -3
  566. package/dist/VerifyEmailPage-CqKsR2v8.js +2827 -0
  567. package/dist/{VerifyEmailPage-Bae2cBXT.cjs → VerifyEmailPage-Cwi3kbol.cjs} +7 -7
  568. package/dist/{VerifyEmailPage-BIBOKV7Z.js → VerifyEmailPage-DSBMRHtl.js} +36 -41
  569. package/dist/{VerifyEmailPage-D-FRj5TU.cjs → VerifyEmailPage-De6bQjrz.cjs} +36 -41
  570. package/dist/{VerifyEmailPage-Bvfv8HVQ.js → VerifyEmailPage-DgIid028.js} +347 -338
  571. package/dist/VerifyEmailPage-DjQKRlUS.cjs +2824 -0
  572. package/dist/{VerifyEmailPage-CdYPSJoO.js → VerifyEmailPage-DvMLZgFt.js} +1 -1
  573. package/dist/{VerifyEmailPage-C_ihbcth.js → VerifyEmailPage-MTD7AG1Z.js} +4 -4
  574. package/dist/VerifyEmailPage-s-1X3LDJ.cjs +2826 -0
  575. package/dist/XerticaOrbe-KL1RBHzw.cjs +1354 -0
  576. package/dist/XerticaOrbe-Uk2JML1-.cjs +1927 -0
  577. package/dist/XerticaOrbe-jA5T2iOk.js +1925 -0
  578. package/dist/XerticaOrbe-zwS1p2a8.js +1355 -0
  579. package/dist/XerticaProvider-6btlAlzc.js +17 -0
  580. package/dist/{XerticaProvider-siSt9uG2.js → XerticaProvider-B7EVH-NF.js} +2 -2
  581. package/dist/{XerticaProvider-AbWlr7Af.cjs → XerticaProvider-BIrqfZ-i.cjs} +11 -8
  582. package/dist/XerticaProvider-BNoNOxQ5.cjs +16 -0
  583. package/dist/XerticaProvider-BlY2limY.cjs +38 -0
  584. package/dist/{XerticaProvider-CWgby5mY.js → XerticaProvider-C1DKnvLh.js} +4 -4
  585. package/dist/{XerticaProvider-AChwphCO.cjs → XerticaProvider-CBGc4EMA.cjs} +4 -4
  586. package/dist/{XerticaProvider-BITjgC5p.js → XerticaProvider-CEoWMTxu.js} +2 -2
  587. package/dist/{XerticaProvider-By8q3Roe.cjs → XerticaProvider-CllrbMEJ.cjs} +2 -2
  588. package/dist/{XerticaProvider-B8CaV7xu.cjs → XerticaProvider-D-yNhF94.cjs} +1 -1
  589. package/dist/XerticaProvider-DDuiIcKo.js +39 -0
  590. package/dist/{XerticaProvider-CWs6EwNa.js → XerticaProvider-DUOJg9iX.js} +10 -10
  591. package/dist/{XerticaProvider-DQtvJU7m.js → XerticaProvider-DYq4JWtg.js} +1 -1
  592. package/dist/{XerticaProvider-CjQAQPcn.cjs → XerticaProvider-Dl_b72_l.cjs} +11 -8
  593. package/dist/{XerticaProvider-D5lLumH-.js → XerticaProvider-Dt5HEzbQ.js} +10 -10
  594. package/dist/{XerticaProvider-CW9hpCdF.cjs → XerticaProvider-ET0ihewn.cjs} +2 -2
  595. package/dist/XerticaProvider-cI9hSs27.cjs +38 -0
  596. package/dist/XerticaProvider-hSwhNQex.js +39 -0
  597. package/dist/{XerticaXLogo-ChryA6xj.js → XerticaXLogo-B7xQ5dhi.js} +1 -1
  598. package/dist/{XerticaXLogo-CziKMQil.cjs → XerticaXLogo-CQUUjXoH.cjs} +8 -8
  599. package/dist/{XerticaXLogo-DfUvz-lD.js → XerticaXLogo-Cmsp-Eey.js} +9 -9
  600. package/dist/{XerticaXLogo-CFuIlYFH.js → XerticaXLogo-DZbo4vOE.js} +12 -12
  601. package/dist/{XerticaXLogo-8TTzBjHw.cjs → XerticaXLogo-Zw2B276b.cjs} +1 -1
  602. package/dist/{XerticaXLogo-kslQ8Tk_.cjs → XerticaXLogo-bvZSgwGF.cjs} +13 -7
  603. package/dist/{XerticaXLogo-DHz5SugF.js → XerticaXLogo-mqjoBiLI.js} +12 -12
  604. package/dist/{XerticaXLogo-CU-U-GP4.cjs → XerticaXLogo-uQgwns_E.cjs} +13 -7
  605. package/dist/alert-dialog-BOje--vD.js +847 -0
  606. package/dist/alert-dialog-BtEuQqrg.cjs +870 -0
  607. package/dist/{alert-dialog-yckpaOpy.cjs → alert-dialog-DSKByiKZ.cjs} +3 -3
  608. package/dist/alert-dialog-DhwPioBa.cjs +885 -0
  609. package/dist/alert-dialog-DqlRW_An.js +831 -0
  610. package/dist/{alert-dialog-iDe5VE5o.js → alert-dialog-s-vmNkJ_.js} +3 -3
  611. package/dist/assistant.cjs.js +8 -4
  612. package/dist/assistant.es.js +5 -11
  613. package/dist/avatar-3kO2Anrp.js +54 -0
  614. package/dist/avatar-BCM7YQRC.cjs +77 -0
  615. package/dist/blocks.cjs.js +9 -4
  616. package/dist/blocks.es.js +2 -16
  617. package/dist/brand.cjs.js +10 -5
  618. package/dist/brand.es.js +3 -11
  619. package/dist/breadcrumb-BKtHF4gk.cjs +98 -0
  620. package/dist/breadcrumb-CqJ7bHY5.js +161 -0
  621. package/dist/breadcrumb-ifNsA7Zl.js +90 -0
  622. package/dist/breadcrumb-m9Hb2_XN.cjs +177 -0
  623. package/dist/button-0BlA47It.cjs +85 -0
  624. package/dist/button-DZHzN1Gd.js +62 -0
  625. package/dist/cli.js +391 -66
  626. package/dist/components/assistant/xertica-assistant/hooks/index.d.ts +6 -0
  627. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-conversations.d.ts +21 -0
  628. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-messages.d.ts +49 -0
  629. package/dist/components/assistant/xertica-assistant/hooks/use-assistant-suggestions.d.ts +16 -0
  630. package/dist/components/blocks/audio-player/AudioPlayer.d.ts +35 -0
  631. package/dist/components/blocks/audio-player/index.d.ts +1 -0
  632. package/dist/components/blocks/document-editor/DocumentEditor.d.ts +26 -0
  633. package/dist/components/blocks/document-editor/index.d.ts +1 -0
  634. package/dist/components/blocks/podcast-player/PodcastPlayer.d.ts +41 -0
  635. package/dist/components/blocks/podcast-player/index.d.ts +1 -0
  636. package/dist/components/ui/chart/parts/chart-dashboard.d.ts +113 -0
  637. package/dist/components/ui/chart/parts/chart-metric.d.ts +118 -0
  638. package/dist/components/ui/chart/parts/chart-primitives.d.ts +101 -0
  639. package/dist/components/ui/chart/parts/chart-shared.d.ts +20 -0
  640. package/dist/components/ui/chart/parts/chart-utils.d.ts +12 -0
  641. package/dist/components/ui/chart/parts/index.d.ts +5 -0
  642. package/dist/dropdown-menu-BDB5CmQs.cjs +247 -0
  643. package/dist/dropdown-menu-BMcykFDf.cjs +225 -0
  644. package/dist/dropdown-menu-DQidbKBD.js +231 -0
  645. package/dist/dropdown-menu-Dn_eV2Xb.js +190 -0
  646. package/dist/google-maps-loader-BCe58h9D.js +308 -0
  647. package/dist/google-maps-loader-BFWp6VPd.js +287 -0
  648. package/dist/google-maps-loader-BKcdgFbu.cjs +312 -0
  649. package/dist/{google-maps-loader-t2IlYBzw.js → google-maps-loader-CTYySAun.js} +4 -0
  650. package/dist/google-maps-loader-CumCNXeG.js +312 -0
  651. package/dist/{google-maps-loader-BqsYL48U.cjs → google-maps-loader-Y-QkD-Li.cjs} +5 -0
  652. package/dist/google-maps-loader-casMyxlo.cjs +316 -0
  653. package/dist/google-maps-loader-eS3uQ5TA.cjs +287 -0
  654. package/dist/header-Cgy6vYPk.cjs +731 -0
  655. package/dist/header-DRlT4jgI.js +715 -0
  656. package/dist/header-Dux00SI4.cjs +731 -0
  657. package/dist/header-EkGKXPsD.js +715 -0
  658. package/dist/header-WfEywpyc.cjs +731 -0
  659. package/dist/header-tifNQn2U.js +715 -0
  660. package/dist/hooks.cjs.js +12 -8
  661. package/dist/hooks.es.js +10 -27
  662. package/dist/index-9GWd0qxq.cjs +12 -0
  663. package/dist/index-BabBx2pa.js +6 -0
  664. package/dist/index-BhapVLVj.js +8 -0
  665. package/dist/{index-D3RLKRAs.cjs → index-COtD8bRW.cjs} +1 -1
  666. package/dist/index-D6fxYEY8.cjs +7 -0
  667. package/dist/index-DAIp0_HK.js +8 -0
  668. package/dist/index-DW5tYe26.js +8 -0
  669. package/dist/index-GA__GvnG.cjs +7 -0
  670. package/dist/index.cjs.js +37 -32
  671. package/dist/index.es.js +30 -363
  672. package/dist/index.umd.js +1043 -470
  673. package/dist/input-2R4loU86.js +127 -0
  674. package/dist/input-C_UiS2Py.cjs +152 -0
  675. package/dist/input-DWANSKGb.cjs +145 -0
  676. package/dist/input-cc-PTD4R.js +123 -0
  677. package/dist/layout.cjs.js +10 -6
  678. package/dist/layout.es.js +7 -9
  679. package/dist/media.cjs.js +8 -3
  680. package/dist/media.es.js +1 -6
  681. package/dist/pages.cjs.js +8 -3
  682. package/dist/pages.es.js +1 -11
  683. package/dist/progress-C7Lti5wo.js +80 -0
  684. package/dist/progress-Cqwxbqs1.cjs +103 -0
  685. package/dist/progress-DPtzoVV8.js +175 -0
  686. package/dist/progress-EeaoqqUs.cjs +191 -0
  687. package/dist/rich-text-editor-0mraWT5y.cjs +2376 -0
  688. package/dist/rich-text-editor-B-IkcPD0.js +2874 -0
  689. package/dist/rich-text-editor-B6jMRLzk.cjs +1939 -0
  690. package/dist/rich-text-editor-B8_oYcIR.js +1730 -0
  691. package/dist/rich-text-editor-B9UbSXNb.js +1203 -0
  692. package/dist/rich-text-editor-BYuRBNBU.js +2373 -0
  693. package/dist/rich-text-editor-Bb9pySTs.cjs +2374 -0
  694. package/dist/rich-text-editor-BcL6L3cm.cjs +2374 -0
  695. package/dist/rich-text-editor-BoVZYtTs.cjs +2391 -0
  696. package/dist/rich-text-editor-Bp3zQqMC.js +2954 -0
  697. package/dist/rich-text-editor-CMgSN_w2.js +1189 -0
  698. package/dist/rich-text-editor-CPV1lEPH.cjs +1748 -0
  699. package/dist/rich-text-editor-CeucBdIv.cjs +2971 -0
  700. package/dist/rich-text-editor-CoKqbCtu.cjs +1799 -0
  701. package/dist/rich-text-editor-Cw56T_mB.js +2356 -0
  702. package/dist/rich-text-editor-Cyt8qs2b.js +1921 -0
  703. package/dist/rich-text-editor-D6H84OcX.cjs +1220 -0
  704. package/dist/rich-text-editor-D76gD-QI.js +2328 -0
  705. package/dist/rich-text-editor-DKkokOnA.js +1781 -0
  706. package/dist/rich-text-editor-DNsdpN64.cjs +2359 -0
  707. package/dist/rich-text-editor-DfG8bCyY.js +2358 -0
  708. package/dist/rich-text-editor-DqLICivI.js +2832 -0
  709. package/dist/rich-text-editor-DxO1Hz3a.cjs +2903 -0
  710. package/dist/rich-text-editor-Dxjw31Z4.js +2341 -0
  711. package/dist/rich-text-editor-DzP0Epmb.js +2356 -0
  712. package/dist/rich-text-editor-bRkNoeZY.cjs +2891 -0
  713. package/dist/rich-text-editor-lyYE2ZG5.cjs +1207 -0
  714. package/dist/rich-text-editor-skplNlBM.cjs +2345 -0
  715. package/dist/select-Bkbr0f-Z.cjs +162 -0
  716. package/dist/select-CH6v_KcQ.cjs +161 -0
  717. package/dist/select-CvIVdX2n.js +145 -0
  718. package/dist/select-D-xvCZK2.js +130 -0
  719. package/dist/{sidebar-CA6_ek3f.js → sidebar-3XyzjVBw.js} +40 -49
  720. package/dist/{sidebar-CplprZpM.js → sidebar-B6SlKZYN.js} +40 -49
  721. package/dist/{sidebar-CmvwjnVb.js → sidebar-BViy8Eeu.js} +17 -9
  722. package/dist/{sidebar-Dz7bd3zP.js → sidebar-BbVIQvlP.js} +1 -1
  723. package/dist/{sidebar-CVUGHOS_.cjs → sidebar-BxGXsDAd.cjs} +16 -8
  724. package/dist/sidebar-CK_0ZQHj.cjs +803 -0
  725. package/dist/sidebar-CUuOvYhK.js +787 -0
  726. package/dist/{sidebar-KIS0C2JH.js → sidebar-CrQDDdcz.js} +24 -33
  727. package/dist/{sidebar-zowjejT2.cjs → sidebar-DAaY8bRU.cjs} +24 -33
  728. package/dist/{sidebar-B9NR0lCe.cjs → sidebar-DQj1z3jG.cjs} +227 -269
  729. package/dist/sidebar-Djn5syhi.cjs +786 -0
  730. package/dist/{sidebar-BvF5I2Ue.cjs → sidebar-DyYvgyBj.cjs} +41 -46
  731. package/dist/sidebar-LluMXfam.js +759 -0
  732. package/dist/sidebar-_rT7rBMk.js +787 -0
  733. package/dist/{sidebar-B3EYhli0.cjs → sidebar-nzPoVHBQ.cjs} +41 -46
  734. package/dist/{sidebar-C5B_LHek.cjs → sidebar-q7P2Godd.cjs} +1 -1
  735. package/dist/skeleton-DjiHerJn.cjs +87 -0
  736. package/dist/skeleton-DtR5tkYe.js +78 -0
  737. package/dist/slider-B00b9SVK.cjs +78 -0
  738. package/dist/slider-Bc5Hd0y1.js +56 -0
  739. package/dist/slider-DQCNUUMj.js +56 -0
  740. package/dist/slider-N7hFFj6X.cjs +73 -0
  741. package/dist/sonner-B-jWlik1.cjs +68 -0
  742. package/dist/sonner-C9tiqj4f.js +47 -0
  743. package/dist/tooltip-D8n9UYoU.cjs +72 -0
  744. package/dist/tooltip-Ded96neP.cjs +137 -0
  745. package/dist/tooltip-HDOoD2-0.js +120 -0
  746. package/dist/tooltip-RtbSmPYJ.js +48 -0
  747. package/dist/ui.cjs.js +23 -18
  748. package/dist/ui.es.js +16 -303
  749. package/dist/use-audio-player-B31J-aqh.cjs +187 -0
  750. package/dist/use-audio-player-B78fd2ct.js +188 -0
  751. package/dist/use-audio-player-BkmEmj8Q.js +185 -0
  752. package/dist/use-audio-player-CLFTWFW1.cjs +184 -0
  753. package/dist/use-audio-player-CLLn00I6.js +188 -0
  754. package/dist/use-audio-player-DGvhPrgR.cjs +190 -0
  755. package/dist/{use-audio-player-Dn1NR9xN.cjs → use-audio-player-NKsWyjWu.cjs} +7 -3
  756. package/dist/{use-audio-player-Bkh23vQ3.js → use-audio-player-nv8ZSGa1.js} +7 -3
  757. package/dist/use-file-upload-BcjEo2S5.js +404 -0
  758. package/dist/use-file-upload-CRJR68Tj.cjs +403 -0
  759. package/dist/use-mobile-B0hNy_Y6.cjs +4303 -0
  760. package/dist/use-mobile-BXuYROXM.js +4202 -0
  761. package/dist/use-mobile-Bbd51ASU.cjs +4392 -0
  762. package/dist/use-mobile-BdXTRb0Z.cjs +51 -0
  763. package/dist/use-mobile-Bk6CX-TC.js +4359 -0
  764. package/dist/use-mobile-BvYdisLP.js +4202 -0
  765. package/dist/use-mobile-BzuxjzNX.cjs +4392 -0
  766. package/dist/use-mobile-CG2-SdXV.cjs +4235 -0
  767. package/dist/use-mobile-CKb5pqTs.js +4269 -0
  768. package/dist/use-mobile-CYuAuGDl.js +4202 -0
  769. package/dist/use-mobile-CaENcqm-.js +4508 -0
  770. package/dist/use-mobile-CbrYgJGJ.js +4203 -0
  771. package/dist/use-mobile-Cd4xPrKq.cjs +46 -0
  772. package/dist/use-mobile-Ce2cBAQe.js +29 -0
  773. package/dist/use-mobile-DMOvImGQ.cjs +4542 -0
  774. package/dist/use-mobile-DRB3BQgD.cjs +4235 -0
  775. package/dist/use-mobile-DZvv7QMR.js +4359 -0
  776. package/dist/use-mobile-DdI_TXam.cjs +4235 -0
  777. package/dist/use-mobile-DlceKf8a.js +4359 -0
  778. package/dist/use-mobile-DsOnow1o.cjs +4236 -0
  779. package/dist/use-mobile-Kcj6jSnK.cjs +4392 -0
  780. package/dist/use-mobile-bnKcua_i.js +4202 -0
  781. package/dist/use-mobile-j4w2Jrf1.js +30 -0
  782. package/dist/use-mobile-ncXBeE2z.cjs +4235 -0
  783. package/dist/use-rich-text-editor-DjiddBGv.js +282 -0
  784. package/dist/use-rich-text-editor-lpeswbCs.cjs +281 -0
  785. package/dist/xertica-assistant-B687qEPU.js +2165 -0
  786. package/dist/xertica-assistant-BdiZag0h.js +2187 -0
  787. package/dist/xertica-assistant-CrgTb6Hs.cjs +2155 -0
  788. package/dist/xertica-assistant-DCsnQyi5.js +2156 -0
  789. package/dist/xertica-assistant-DUBpmEgo.cjs +2186 -0
  790. package/dist/{xertica-assistant-Bj3vBCq_.cjs → xertica-assistant-V_IdW4WF.cjs} +27 -9
  791. package/dist/{xertica-assistant-BMqdyRVi.js → xertica-assistant-ciJaWqm1.js} +28 -10
  792. package/dist/{xertica-assistant-B1IaHXnB.cjs → xertica-assistant-dyP7KHM5.cjs} +533 -392
  793. package/dist/xertica-assistant-sOHwTgIP.cjs +2172 -0
  794. package/dist/{xertica-assistant-DPsESB6t.js → xertica-assistant-yX1CFBBo.js} +535 -394
  795. package/dist/xertica-ui.css +2 -2
  796. package/docs/ai-usage.md +195 -195
  797. package/docs/components/accordion.md +109 -109
  798. package/docs/components/alert-dialog.md +127 -127
  799. package/docs/components/alert.md +106 -106
  800. package/docs/components/aspect-ratio.md +58 -58
  801. package/docs/components/assistant-chart.md +47 -47
  802. package/docs/components/assistant.md +2 -0
  803. package/docs/components/audio-player.md +167 -167
  804. package/docs/components/avatar.md +101 -101
  805. package/docs/components/badge.md +84 -84
  806. package/docs/components/breadcrumb.md +104 -104
  807. package/docs/components/button.md +156 -156
  808. package/docs/components/calendar.md +141 -141
  809. package/docs/components/card.md +245 -245
  810. package/docs/components/carousel.md +100 -100
  811. package/docs/components/chart.md +638 -638
  812. package/docs/components/checkbox.md +88 -88
  813. package/docs/components/code-block.md +105 -105
  814. package/docs/components/collapsible.md +86 -86
  815. package/docs/components/command.md +113 -113
  816. package/docs/components/context-menu.md +81 -81
  817. package/docs/components/dialog.md +198 -198
  818. package/docs/components/drawer.md +105 -105
  819. package/docs/components/dropdown-menu.md +127 -127
  820. package/docs/components/empty.md +127 -127
  821. package/docs/components/error-boundary.md +191 -191
  822. package/docs/components/file-upload.md +189 -189
  823. package/docs/components/floating-media-wrapper.md +63 -63
  824. package/docs/components/form.md +177 -177
  825. package/docs/components/formatted-document.md +105 -105
  826. package/docs/components/google-maps-loader.md +44 -44
  827. package/docs/components/header.md +177 -177
  828. package/docs/components/hover-card.md +86 -86
  829. package/docs/components/image-with-fallback.md +107 -107
  830. package/docs/components/input-otp.md +95 -95
  831. package/docs/components/input.md +130 -130
  832. package/docs/components/label.md +69 -69
  833. package/docs/components/language-selector.md +172 -172
  834. package/docs/components/map-layers.md +138 -138
  835. package/docs/components/map.md +84 -84
  836. package/docs/components/markdown-message.md +47 -47
  837. package/docs/components/menubar.md +89 -89
  838. package/docs/components/modern-chat-input.md +164 -164
  839. package/docs/components/navigation-menu.md +83 -83
  840. package/docs/components/notification-badge.md +78 -78
  841. package/docs/components/page-header.md +93 -93
  842. package/docs/components/pages.md +309 -309
  843. package/docs/components/pagination.md +334 -334
  844. package/docs/components/popover.md +116 -116
  845. package/docs/components/progress.md +103 -103
  846. package/docs/components/radio-group.md +133 -133
  847. package/docs/components/rating.md +77 -77
  848. package/docs/components/resizable.md +84 -84
  849. package/docs/components/rich-text-editor.md +255 -255
  850. package/docs/components/route-map.md +124 -124
  851. package/docs/components/scroll-area.md +58 -58
  852. package/docs/components/search.md +87 -87
  853. package/docs/components/select.md +144 -144
  854. package/docs/components/separator.md +58 -58
  855. package/docs/components/sheet.md +122 -122
  856. package/docs/components/sidebar.md +314 -314
  857. package/docs/components/simple-map.md +51 -51
  858. package/docs/components/skeleton.md +99 -99
  859. package/docs/components/slider.md +84 -84
  860. package/docs/components/sonner.md +115 -115
  861. package/docs/components/stats-card.md +120 -120
  862. package/docs/components/stepper.md +268 -268
  863. package/docs/components/switch.md +106 -106
  864. package/docs/components/table.md +138 -138
  865. package/docs/components/tabs.md +117 -117
  866. package/docs/components/textarea.md +86 -86
  867. package/docs/components/theme-toggle.md +73 -73
  868. package/docs/components/timeline.md +121 -121
  869. package/docs/components/toggle-group.md +68 -68
  870. package/docs/components/toggle.md +62 -62
  871. package/docs/components/tooltip.md +116 -116
  872. package/docs/components/tree-view.md +238 -238
  873. package/docs/components/use-mobile.md +96 -96
  874. package/docs/components/video-player.md +68 -68
  875. package/docs/components/xertica-logo.md +36 -36
  876. package/docs/components/xertica-orbe.md +35 -35
  877. package/docs/components/xertica-provider.md +65 -65
  878. package/docs/components/xertica-xlogo.md +35 -35
  879. package/docs/decision-tree.md +293 -293
  880. package/docs/form-sizing.md +162 -162
  881. package/docs/getting-started.md +24 -12
  882. package/docs/i18n.md +476 -476
  883. package/docs/installation.md +267 -267
  884. package/docs/layout.md +143 -143
  885. package/docs/patterns/analytics.md +194 -194
  886. package/docs/patterns/crud.md +149 -149
  887. package/docs/patterns/dashboard.md +138 -138
  888. package/docs/patterns/detail-page.md +296 -296
  889. package/docs/patterns/form.md +241 -241
  890. package/docs/patterns/login.md +156 -156
  891. package/docs/patterns/settings.md +368 -368
  892. package/docs/patterns/wizard.md +213 -213
  893. package/hooks/useTheme.test.tsx +16 -16
  894. package/hooks/useTheme.ts +4 -4
  895. package/imports/Podcast.tsx +540 -540
  896. package/imports/XerticaAi.tsx +46 -46
  897. package/imports/XerticaX.tsx +15 -15
  898. package/imports/svg-aueiaqngck.ts +20 -20
  899. package/imports/svg-v9krss1ozd.ts +23 -23
  900. package/imports/svg-vhrdofe3qe.ts +6 -6
  901. package/llms-compact.txt +2 -1
  902. package/llms.txt +2 -1
  903. package/mcp/resources.json +22 -22
  904. package/mcp/tools.json +35 -35
  905. package/package.json +10 -4
  906. package/scripts/ai-validator.ts +91 -91
  907. package/scripts/cleanup-case-dupes.ts +62 -62
  908. package/scripts/generate-ai-manifests.ts +107 -107
  909. package/styles/globals.css +13 -13
  910. package/styles/xertica/app-overrides/chat.css +61 -61
  911. package/styles/xertica/app-overrides/scrollbar.css +33 -33
  912. package/styles/xertica/base.css +84 -71
  913. package/styles/xertica/integrations/google-maps.css +76 -76
  914. package/styles/xertica/integrations/sonner.css +73 -73
  915. package/styles/xertica/theme-map.css +102 -99
  916. package/styles/xertica/tokens.css +240 -236
  917. package/templates/.prettierignore +4 -4
  918. package/templates/.prettierrc +10 -10
  919. package/templates/CLAUDE.md +165 -165
  920. package/templates/eslint.config.js +26 -26
  921. package/templates/package.json +3 -3
  922. package/templates/postcss.config.js +6 -6
  923. package/templates/src/app/components/AppLayout.tsx +55 -55
  924. package/templates/src/app/components/AuthGuard.tsx +82 -82
  925. package/templates/src/app/context/AuthContext.tsx +108 -108
  926. package/templates/src/features/assistant/data/mock.ts +75 -75
  927. package/templates/src/features/assistant/hooks/useAssistantConfig.ts +20 -20
  928. package/templates/src/features/auth/index.ts +4 -4
  929. package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
  930. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +179 -179
  931. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +84 -84
  932. package/templates/src/features/home/data/mock.ts +35 -35
  933. package/templates/src/features/home/hooks/useFeatureCards.ts +20 -20
  934. package/templates/src/features/home/store/dashboardStore.ts +25 -25
  935. package/templates/src/features/home/ui/HomeContent.tsx +1 -1
  936. package/templates/src/features/template/index.ts +5 -5
  937. package/templates/src/features/template/ui/CrudTemplate.tsx +115 -115
  938. package/templates/src/features/template/ui/DashboardTemplate.tsx +110 -110
  939. package/templates/src/features/template/ui/FormTemplate.tsx +117 -117
  940. package/templates/src/features/template/ui/LoginTemplate.tsx +59 -59
  941. package/templates/src/features/template/ui/TemplateContent.tsx +1314 -1314
  942. package/templates/src/i18n.ts +124 -124
  943. package/templates/src/locales/en/common.json +21 -21
  944. package/templates/src/locales/en/components/activityCard.json +10 -10
  945. package/templates/src/locales/en/components/assistant.json +119 -119
  946. package/templates/src/locales/en/components/media.json +29 -29
  947. package/templates/src/locales/en/components/notificationCard.json +5 -5
  948. package/templates/src/locales/en/components/profileCard.json +8 -8
  949. package/templates/src/locales/en/components/projectCard.json +10 -10
  950. package/templates/src/locales/en/components/sidebar.json +14 -14
  951. package/templates/src/locales/en/components/stats.json +8 -8
  952. package/templates/src/locales/en/components/team.json +14 -14
  953. package/templates/src/locales/en/errors.json +9 -9
  954. package/templates/src/locales/en/languageSelector.json +7 -7
  955. package/templates/src/locales/en/nav.json +6 -6
  956. package/templates/src/locales/en/pages/crudTemplate.json +25 -25
  957. package/templates/src/locales/en/pages/dashboardTemplate.json +20 -20
  958. package/templates/src/locales/en/pages/forgotPassword.json +10 -10
  959. package/templates/src/locales/en/pages/formTemplate.json +16 -16
  960. package/templates/src/locales/en/pages/home.json +7 -7
  961. package/templates/src/locales/en/pages/login.json +15 -15
  962. package/templates/src/locales/en/pages/loginTemplate.json +9 -9
  963. package/templates/src/locales/en/pages/resetPassword.json +18 -18
  964. package/templates/src/locales/en/pages/templates.json +317 -317
  965. package/templates/src/locales/en/pages/verifyEmail.json +12 -12
  966. package/templates/src/locales/en/themeToggle.json +6 -6
  967. package/templates/src/locales/es/common.json +21 -21
  968. package/templates/src/locales/es/components/activityCard.json +10 -10
  969. package/templates/src/locales/es/components/assistant.json +119 -119
  970. package/templates/src/locales/es/components/media.json +29 -29
  971. package/templates/src/locales/es/components/notificationCard.json +5 -5
  972. package/templates/src/locales/es/components/profileCard.json +8 -8
  973. package/templates/src/locales/es/components/projectCard.json +10 -10
  974. package/templates/src/locales/es/components/sidebar.json +14 -14
  975. package/templates/src/locales/es/components/stats.json +8 -8
  976. package/templates/src/locales/es/components/team.json +14 -14
  977. package/templates/src/locales/es/errors.json +9 -9
  978. package/templates/src/locales/es/languageSelector.json +7 -7
  979. package/templates/src/locales/es/nav.json +6 -6
  980. package/templates/src/locales/es/pages/crudTemplate.json +25 -25
  981. package/templates/src/locales/es/pages/dashboardTemplate.json +20 -20
  982. package/templates/src/locales/es/pages/forgotPassword.json +10 -10
  983. package/templates/src/locales/es/pages/formTemplate.json +16 -16
  984. package/templates/src/locales/es/pages/home.json +7 -7
  985. package/templates/src/locales/es/pages/login.json +15 -15
  986. package/templates/src/locales/es/pages/loginTemplate.json +9 -9
  987. package/templates/src/locales/es/pages/resetPassword.json +18 -18
  988. package/templates/src/locales/es/pages/templates.json +317 -317
  989. package/templates/src/locales/es/pages/verifyEmail.json +12 -12
  990. package/templates/src/locales/es/themeToggle.json +6 -6
  991. package/templates/src/locales/pt-BR/common.json +21 -21
  992. package/templates/src/locales/pt-BR/components/activityCard.json +10 -10
  993. package/templates/src/locales/pt-BR/components/assistant.json +119 -119
  994. package/templates/src/locales/pt-BR/components/media.json +29 -29
  995. package/templates/src/locales/pt-BR/components/notificationCard.json +5 -5
  996. package/templates/src/locales/pt-BR/components/profileCard.json +8 -8
  997. package/templates/src/locales/pt-BR/components/projectCard.json +10 -10
  998. package/templates/src/locales/pt-BR/components/sidebar.json +14 -14
  999. package/templates/src/locales/pt-BR/components/stats.json +8 -8
  1000. package/templates/src/locales/pt-BR/components/team.json +14 -14
  1001. package/templates/src/locales/pt-BR/errors.json +9 -9
  1002. package/templates/src/locales/pt-BR/languageSelector.json +7 -7
  1003. package/templates/src/locales/pt-BR/nav.json +6 -6
  1004. package/templates/src/locales/pt-BR/pages/crudTemplate.json +25 -25
  1005. package/templates/src/locales/pt-BR/pages/dashboardTemplate.json +20 -20
  1006. package/templates/src/locales/pt-BR/pages/forgotPassword.json +10 -10
  1007. package/templates/src/locales/pt-BR/pages/formTemplate.json +16 -16
  1008. package/templates/src/locales/pt-BR/pages/home.json +7 -7
  1009. package/templates/src/locales/pt-BR/pages/login.json +15 -15
  1010. package/templates/src/locales/pt-BR/pages/loginTemplate.json +9 -9
  1011. package/templates/src/locales/pt-BR/pages/resetPassword.json +18 -18
  1012. package/templates/src/locales/pt-BR/pages/templates.json +317 -317
  1013. package/templates/src/locales/pt-BR/pages/verifyEmail.json +12 -12
  1014. package/templates/src/locales/pt-BR/themeToggle.json +6 -6
  1015. package/templates/src/main.tsx +11 -11
  1016. package/templates/src/pages/AssistantPage.tsx +464 -464
  1017. package/templates/src/pages/ForgotPasswordPage.tsx +6 -6
  1018. package/templates/src/pages/LoginPage.tsx +10 -10
  1019. package/templates/src/pages/ResetPasswordPage.tsx +6 -6
  1020. package/templates/src/pages/TemplatePage.tsx +28 -28
  1021. package/templates/src/pages/VerifyEmailPage.tsx +6 -6
  1022. package/templates/src/shared/config/navigation.ts +19 -19
  1023. package/templates/src/shared/error-boundary.tsx +154 -154
  1024. package/templates/src/shared/error-fallbacks.tsx +226 -226
  1025. package/templates/src/shared/lib/auth.ts +20 -20
  1026. package/templates/src/shared/types/auth.ts +3 -3
  1027. package/templates/src/styles/index.css +95 -95
  1028. package/templates/src/styles/xertica/tokens.css +240 -236
  1029. package/templates/tsconfig.json +25 -25
  1030. package/templates/tsconfig.node.json +12 -12
  1031. package/templates/vite-env.d.ts +1 -1
  1032. package/templates/vite.config.ts +1 -1
  1033. package/utils/color-utils.ts +72 -72
  1034. package/utils/demo-responses.test.ts +10 -10
  1035. package/utils/demo-responses.ts +151 -151
  1036. package/utils/gemini.test.ts +25 -25
  1037. package/utils/gemini.ts +155 -155
  1038. package/dist/ThemeContext-CpqYShLq.cjs +0 -324
  1039. package/dist/ThemeContext-Du2nE1PL.js +0 -325
  1040. package/dist/ThemeContext-GeEBTJ3q.cjs +0 -1621
  1041. package/dist/ThemeContext-JyLK9B1o.js +0 -1622
  1042. package/dist/XerticaProvider-CUYJZc32.js +0 -49
  1043. package/dist/XerticaProvider-qQUDop71.cjs +0 -48
  1044. package/dist/index-CkTUgOwX.js +0 -8
  1045. package/dist/sidebar-OTO_up7Z.js +0 -801
  1046. package/dist/{rich-text-editor-BmsjY03B.js → rich-text-editor-DgF8s7xW.js} +26 -26
  1047. package/dist/{rich-text-editor-GS2kpTAK.cjs → rich-text-editor-mWoaSCE4.cjs} +26 -26
@@ -0,0 +1,2825 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import React__default, { useState, useMemo, useRef, useCallback, useEffect } from "react";
3
+ import { B as Button, c as cn } from "./button-qkz7Icqf.js";
4
+ import { I as Input, S as ScrollArea } from "./input-D-6IsAca.js";
5
+ import { I as ImageWithFallback, L as Label, P as PageHeader, M as Map, C as Checkbox, S as Separator, T as Tabs, p as TabsList, q as TabsTrigger, o as TabsContent, n as Switch, R as RadioGroup, m as RadioGroupItem, A as AlertDialog, j as AlertDialogTrigger, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction } from "./alert-dialog-s-vmNkJ_.js";
6
+ import { L as LanguageSelector, X as XerticaLogo } from "./XerticaXLogo-fAJMy3H4.js";
7
+ import { ArrowLeft, Lock, Home, FileText, CheckCircle2, AlertCircle, Coffee, ShoppingBag, Landmark, Hotel, Utensils, MapPin, Filter, X, MousePointer2, Circle, Square, Hexagon, Undo, Trash2, Save, Check, Pencil, Layers, Settings, Users, Mail, Phone, Search, User, Calendar, Bell, FileEdit, ArrowRightLeft, Clock, Plus, Archive, Map as Map$1 } from "lucide-react";
8
+ import { useNavigate, useLocation, Link } from "react-router-dom";
9
+ import { H as Header, S as Sidebar } from "./sidebar-_rT7rBMk.js";
10
+ import { C as Card, e as CardHeader, f as CardTitle, B as Badge, b as CardContent, d as CardFooter, c as CardDescription, P as Progress } from "./progress-DPtzoVV8.js";
11
+ import { a as useOptionalLayout } from "./LayoutContext-dbQvdC4O.js";
12
+ import { X as XerticaAssistant, g as gerarResposta } from "./xertica-assistant-BdiZag0h.js";
13
+ import { D as Dialog, j as DialogContent, m as DialogHeader, p as DialogTitle, k as DialogDescription, A as Alert, b as AlertTitle, a as AlertDescription, H as Textarea, T as Table, F as TableHeader, G as TableRow, B as TableHead, w as TableBody, y as TableCell, q as DialogTrigger, l as DialogFooter } from "./rich-text-editor-CMgSN_w2.js";
14
+ import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from "./select-En8DkoaQ.js";
15
+ import { S as Slider } from "./slider-C0JKA9k3.js";
16
+ import { toast } from "sonner";
17
+ function ForgotPasswordPage() {
18
+ const navigate = useNavigate();
19
+ const [email, setEmail] = useState("");
20
+ const [isLoading, setIsLoading] = useState(false);
21
+ const handleSubmit = async (e) => {
22
+ e.preventDefault();
23
+ setIsLoading(true);
24
+ await new Promise((resolve) => setTimeout(resolve, 1500));
25
+ navigate("/verify-email", { state: { email } });
26
+ setIsLoading(false);
27
+ };
28
+ const handleSocialLogin = (_provider) => {
29
+ };
30
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
31
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
32
+ /* @__PURE__ */ jsx(
33
+ ImageWithFallback,
34
+ {
35
+ src: "https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1200&h=800&fit=crop&auto=format",
36
+ alt: "Segurança e tecnologia",
37
+ className: "absolute inset-0 w-full h-full object-cover"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
41
+ ] }),
42
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
43
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
44
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
45
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
46
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
47
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
48
+ XerticaLogo,
49
+ {
50
+ className: "h-12 w-auto text-primary dark:text-foreground",
51
+ variant: "theme"
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Recuperar senha" }),
55
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Digite seu e-mail e enviaremos as instruções para redefinir sua senha" })
56
+ ] }),
57
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
58
+ /* @__PURE__ */ jsxs("div", { className: "form-group space-y-2", children: [
59
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", className: "form-label", children: "E-mail" }),
60
+ /* @__PURE__ */ jsx(
61
+ Input,
62
+ {
63
+ id: "email",
64
+ name: "email",
65
+ type: "email",
66
+ required: true,
67
+ className: "w-full",
68
+ placeholder: "seu@email.com",
69
+ value: email,
70
+ onChange: (e) => setEmail(e.target.value)
71
+ }
72
+ )
73
+ ] }),
74
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
75
+ /* @__PURE__ */ jsx(
76
+ Button,
77
+ {
78
+ type: "submit",
79
+ className: "w-full",
80
+ disabled: isLoading,
81
+ children: isLoading ? "Enviando..." : "Enviar instruções"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsxs(
85
+ Button,
86
+ {
87
+ type: "button",
88
+ onClick: () => navigate("/login"),
89
+ variant: "outline",
90
+ className: "w-full text-muted-foreground hover:text-foreground",
91
+ children: [
92
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4 mr-2" }),
93
+ "Voltar para o login"
94
+ ]
95
+ }
96
+ )
97
+ ] })
98
+ ] }),
99
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
100
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
101
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
102
+ ] }),
103
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
104
+ /* @__PURE__ */ jsxs(
105
+ Button,
106
+ {
107
+ type: "button",
108
+ variant: "outline",
109
+ className: "w-full justify-center",
110
+ onClick: () => handleSocialLogin(),
111
+ children: [
112
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
113
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
114
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
115
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
116
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
117
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
118
+ ] }),
119
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
120
+ ]
121
+ }
122
+ ),
123
+ /* @__PURE__ */ jsxs(
124
+ Button,
125
+ {
126
+ type: "button",
127
+ variant: "outline",
128
+ className: "w-full justify-center",
129
+ onClick: () => handleSocialLogin(),
130
+ children: [
131
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
132
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
133
+ ]
134
+ }
135
+ ),
136
+ /* @__PURE__ */ jsx(
137
+ Button,
138
+ {
139
+ type: "button",
140
+ variant: "outline",
141
+ className: "w-full justify-center font-normal",
142
+ onClick: () => handleSocialLogin(),
143
+ children: /* @__PURE__ */ jsxs("span", { children: [
144
+ "Entrar com ",
145
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
146
+ ] })
147
+ }
148
+ )
149
+ ] })
150
+ ] })
151
+ ] })
152
+ ] });
153
+ }
154
+ const routes = [
155
+ {
156
+ path: "/home",
157
+ label: "Home",
158
+ icon: Home
159
+ },
160
+ {
161
+ path: "/template",
162
+ label: "Template",
163
+ icon: FileText
164
+ }
165
+ ];
166
+ const getRouteByPath = (path) => {
167
+ return routes.find((route) => route.path === path);
168
+ };
169
+ const SIDEBAR_COLLAPSED_WIDTH = 80;
170
+ function HomeContent({ user, onLogout, onSettings }) {
171
+ const layout = useOptionalLayout();
172
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? false;
173
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 256;
174
+ const location = useLocation();
175
+ const navigate = useNavigate();
176
+ const labelTranslations = {
177
+ "home": "Início",
178
+ "template": "Template"
179
+ };
180
+ const currentRoute = getRouteByPath(location.pathname);
181
+ (currentRoute == null ? void 0 : currentRoute.label) ? labelTranslations[currentRoute.label.toLowerCase()] || currentRoute.label : "Início";
182
+ return /* @__PURE__ */ jsxs(
183
+ "div",
184
+ {
185
+ style: {
186
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : SIDEBAR_COLLAPSED_WIDTH
187
+ },
188
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
189
+ children: [
190
+ /* @__PURE__ */ jsx(
191
+ Header,
192
+ {
193
+ showThemeToggle: true,
194
+ showLanguageSelector: true,
195
+ breadcrumbs: [
196
+ { label: "Design System", href: "/home" },
197
+ { label: "Início" }
198
+ ],
199
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
200
+ }
201
+ ),
202
+ /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
203
+ /* @__PURE__ */ jsx(
204
+ PageHeader,
205
+ {
206
+ title: "Bem-vindo ao Design System!",
207
+ subtitle: "Sua plataforma inteligente para automação e análise de dados"
208
+ }
209
+ ),
210
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: /* @__PURE__ */ jsxs(Card, { className: "hover:shadow-xl transition-shadow duration-200 flex flex-col h-full", children: [
211
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
212
+ /* @__PURE__ */ jsx("div", { className: "p-2 bg-[var(--chart-2)]/20 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(FileText, { className: "w-6 h-6 text-[var(--chart-2)]" }) }),
213
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
214
+ /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Template CLI" }),
215
+ /* @__PURE__ */ jsx(Badge, { variant: "default", className: "text-xs", children: "Novo" })
216
+ ] })
217
+ ] }) }),
218
+ /* @__PURE__ */ jsx(CardContent, { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Página de template pronta para uso CLI com todos os componentes configurados." }) }),
219
+ /* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsx(
220
+ Button,
221
+ {
222
+ variant: "outline",
223
+ className: "w-full",
224
+ onClick: () => navigate("/template"),
225
+ children: "Visualizar"
226
+ }
227
+ ) })
228
+ ] }) })
229
+ ] }) }) }) })
230
+ ]
231
+ }
232
+ );
233
+ }
234
+ const richSuggestions = [
235
+ { id: "chart-1", text: "Ver análise de desempenho" },
236
+ { id: "table-1", text: "Gerar relatório do projeto" },
237
+ { id: "doc-1", text: "Criar documento de requisitos" },
238
+ { id: "pod-1", text: "Gerar podcast de resumo diário" }
239
+ ];
240
+ const feedbackOptions = [
241
+ "Não era o que eu estava procurando",
242
+ "Informações incorretas",
243
+ "Resposta incompleta"
244
+ ];
245
+ function HomePage({ user, onLogout }) {
246
+ const layout = useOptionalLayout();
247
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
248
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
249
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
250
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
251
+ const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
252
+ const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
253
+ const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
254
+ const location = useLocation();
255
+ const navigate = useNavigate();
256
+ return /* @__PURE__ */ jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
257
+ /* @__PURE__ */ jsx(
258
+ Sidebar,
259
+ {
260
+ expanded: sidebarExpanded,
261
+ width: sidebarWidth,
262
+ onToggle: toggleSidebar,
263
+ user: {
264
+ ...user,
265
+ name: "Ariel Santos",
266
+ avatar: "https://github.com/shadcn.png"
267
+ },
268
+ onLogout,
269
+ location,
270
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props }),
271
+ routes
272
+ }
273
+ ),
274
+ /* @__PURE__ */ jsx(
275
+ HomeContent,
276
+ {
277
+ user,
278
+ onLogout,
279
+ onSettings: () => navigate("/settings")
280
+ }
281
+ ),
282
+ /* @__PURE__ */ jsx(
283
+ XerticaAssistant,
284
+ {
285
+ isExpanded: assistenteExpanded,
286
+ onToggle: toggleAssistente,
287
+ defaultTab: "chat",
288
+ demoMode: true,
289
+ responseGenerator: gerarResposta,
290
+ richSuggestions,
291
+ feedbackOptions,
292
+ onEvaluation: () => {
293
+ }
294
+ }
295
+ )
296
+ ] });
297
+ }
298
+ function LoginPage({ onLogin }) {
299
+ const navigate = useNavigate();
300
+ const [email, setEmail] = useState("");
301
+ const [password, setPassword] = useState("");
302
+ const [isLoading, setIsLoading] = useState(false);
303
+ const [error, setError] = useState("");
304
+ const handleSubmit = async (e) => {
305
+ e.preventDefault();
306
+ setError("");
307
+ setIsLoading(true);
308
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
309
+ const success = onLogin(email, password);
310
+ if (!success) {
311
+ setError("Por favor, preencha todos os campos");
312
+ }
313
+ setIsLoading(false);
314
+ };
315
+ const handleSocialLogin = (_provider) => {
316
+ onLogin("social@user.com", "social-auth");
317
+ };
318
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
319
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
320
+ /* @__PURE__ */ jsx(
321
+ ImageWithFallback,
322
+ {
323
+ src: "https://images.unsplash.com/photo-1551434678-e076c223a692?w=1200&h=800&fit=crop&auto=format",
324
+ alt: "Equipe trabalhando com tecnologia",
325
+ className: "absolute inset-0 w-full h-full object-cover"
326
+ }
327
+ ),
328
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
329
+ ] }),
330
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
331
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
332
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
333
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
334
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
335
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
336
+ XerticaLogo,
337
+ {
338
+ className: "h-12 w-auto text-primary dark:text-foreground",
339
+ variant: "theme"
340
+ }
341
+ ) }),
342
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Acesse sua conta" })
343
+ ] }),
344
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
345
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
346
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "E-mail" }),
347
+ /* @__PURE__ */ jsx(
348
+ Input,
349
+ {
350
+ id: "email",
351
+ name: "email",
352
+ type: "email",
353
+ required: true,
354
+ className: "w-full",
355
+ placeholder: "seu@email.com",
356
+ value: email,
357
+ onChange: (e) => setEmail(e.target.value)
358
+ }
359
+ )
360
+ ] }),
361
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
362
+ /* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Senha" }),
363
+ /* @__PURE__ */ jsx(
364
+ Input,
365
+ {
366
+ id: "password",
367
+ name: "password",
368
+ type: "password",
369
+ required: true,
370
+ className: "w-full",
371
+ placeholder: "••••••••",
372
+ value: password,
373
+ onChange: (e) => setPassword(e.target.value)
374
+ }
375
+ )
376
+ ] }),
377
+ error && /* @__PURE__ */ jsx("div", { className: "text-destructive text-sm text-center", children: error }),
378
+ /* @__PURE__ */ jsx(
379
+ Button,
380
+ {
381
+ type: "submit",
382
+ className: "w-full",
383
+ disabled: isLoading,
384
+ children: isLoading ? "Entrando..." : "Entrar"
385
+ }
386
+ ),
387
+ /* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(
388
+ "button",
389
+ {
390
+ type: "button",
391
+ onClick: () => navigate("/forgot-password"),
392
+ className: "text-sm text-primary hover:opacity-80 transition-colors",
393
+ children: "Esqueceu sua senha?"
394
+ }
395
+ ) })
396
+ ] }),
397
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
398
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
399
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
400
+ ] }),
401
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
402
+ /* @__PURE__ */ jsxs(
403
+ Button,
404
+ {
405
+ type: "button",
406
+ variant: "outline",
407
+ className: "w-full justify-center",
408
+ onClick: () => handleSocialLogin(),
409
+ children: [
410
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
411
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
412
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
413
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
414
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
415
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
416
+ ] }),
417
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
418
+ ]
419
+ }
420
+ ),
421
+ /* @__PURE__ */ jsxs(
422
+ Button,
423
+ {
424
+ type: "button",
425
+ variant: "outline",
426
+ className: "w-full justify-center",
427
+ onClick: () => handleSocialLogin(),
428
+ children: [
429
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
430
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
431
+ ]
432
+ }
433
+ ),
434
+ /* @__PURE__ */ jsx(
435
+ Button,
436
+ {
437
+ type: "button",
438
+ variant: "outline",
439
+ className: "w-full justify-center font-normal",
440
+ onClick: () => handleSocialLogin(),
441
+ children: /* @__PURE__ */ jsxs("span", { children: [
442
+ "Entrar com ",
443
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
444
+ ] })
445
+ }
446
+ )
447
+ ] })
448
+ ] })
449
+ ] })
450
+ ] });
451
+ }
452
+ function ResetPasswordPage() {
453
+ const navigate = useNavigate();
454
+ const [password, setPassword] = useState("");
455
+ const [confirmPassword, setConfirmPassword] = useState("");
456
+ const [isLoading, setIsLoading] = useState(false);
457
+ const [error, setError] = useState("");
458
+ const [passwordStrength, setPasswordStrength] = useState(null);
459
+ const checkPasswordStrength = (pwd) => {
460
+ if (pwd.length === 0) {
461
+ setPasswordStrength(null);
462
+ return;
463
+ }
464
+ if (pwd.length < 6) {
465
+ setPasswordStrength("weak");
466
+ } else if (pwd.length < 10) {
467
+ setPasswordStrength("medium");
468
+ } else {
469
+ setPasswordStrength("strong");
470
+ }
471
+ };
472
+ const handlePasswordChange = (value) => {
473
+ setPassword(value);
474
+ checkPasswordStrength(value);
475
+ setError("");
476
+ };
477
+ const handleSubmit = async (e) => {
478
+ e.preventDefault();
479
+ setError("");
480
+ if (password.length < 6) {
481
+ setError("A senha deve ter pelo menos 6 caracteres");
482
+ return;
483
+ }
484
+ if (password !== confirmPassword) {
485
+ setError("As senhas não coincidem");
486
+ return;
487
+ }
488
+ setIsLoading(true);
489
+ await new Promise((resolve) => setTimeout(resolve, 1500));
490
+ navigate("/login", { state: { resetSuccess: true } });
491
+ setIsLoading(false);
492
+ };
493
+ const getStrengthColor = () => {
494
+ switch (passwordStrength) {
495
+ case "weak":
496
+ return "text-destructive";
497
+ case "medium":
498
+ return "text-[var(--chart-3)]";
499
+ case "strong":
500
+ return "text-[var(--chart-2)]";
501
+ default:
502
+ return "text-muted-foreground";
503
+ }
504
+ };
505
+ const getStrengthText = () => {
506
+ switch (passwordStrength) {
507
+ case "weak":
508
+ return "Senha fraca";
509
+ case "medium":
510
+ return "Senha média";
511
+ case "strong":
512
+ return "Senha forte";
513
+ default:
514
+ return "";
515
+ }
516
+ };
517
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
518
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
519
+ /* @__PURE__ */ jsx(
520
+ ImageWithFallback,
521
+ {
522
+ src: "https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop&auto=format",
523
+ alt: "Segurança e proteção",
524
+ className: "absolute inset-0 w-full h-full object-cover"
525
+ }
526
+ ),
527
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
528
+ ] }),
529
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
530
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
531
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
532
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
533
+ /* @__PURE__ */ jsxs(
534
+ "button",
535
+ {
536
+ onClick: () => navigate("/login"),
537
+ className: "flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",
538
+ children: [
539
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4" }),
540
+ /* @__PURE__ */ jsx("span", { className: "text-small", children: "Voltar para o login" })
541
+ ]
542
+ }
543
+ ),
544
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
545
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
546
+ XerticaLogo,
547
+ {
548
+ className: "h-12 w-auto text-primary dark:text-foreground",
549
+ variant: "theme"
550
+ }
551
+ ) }),
552
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Redefinir senha" }),
553
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Crie uma nova senha segura para sua conta" })
554
+ ] }),
555
+ /* @__PURE__ */ jsxs("form", { className: "space-y-6", onSubmit: handleSubmit, children: [
556
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
557
+ /* @__PURE__ */ jsx(Label, { htmlFor: "password", children: "Nova senha" }),
558
+ /* @__PURE__ */ jsx(
559
+ Input,
560
+ {
561
+ id: "password",
562
+ name: "password",
563
+ type: "password",
564
+ required: true,
565
+ className: "w-full",
566
+ placeholder: "••••••••",
567
+ value: password,
568
+ onChange: (e) => handlePasswordChange(e.target.value)
569
+ }
570
+ ),
571
+ passwordStrength && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
572
+ /* @__PURE__ */ jsx("div", { className: "flex-1 h-1 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
573
+ "div",
574
+ {
575
+ className: `h-full transition-all duration-300 ${passwordStrength === "weak" ? "w-1/3 bg-destructive" : passwordStrength === "medium" ? "w-2/3 bg-[var(--chart-3)]" : "w-full bg-[var(--chart-2)]"}`
576
+ }
577
+ ) }),
578
+ /* @__PURE__ */ jsx("span", { className: `text-small ${getStrengthColor()}`, children: getStrengthText() })
579
+ ] })
580
+ ] }),
581
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
582
+ /* @__PURE__ */ jsx(Label, { htmlFor: "confirmPassword", children: "Confirmar senha" }),
583
+ /* @__PURE__ */ jsx(
584
+ Input,
585
+ {
586
+ id: "confirmPassword",
587
+ name: "confirmPassword",
588
+ type: "password",
589
+ required: true,
590
+ className: "w-full",
591
+ placeholder: "••••••••",
592
+ value: confirmPassword,
593
+ onChange: (e) => {
594
+ setConfirmPassword(e.target.value);
595
+ setError("");
596
+ }
597
+ }
598
+ )
599
+ ] }),
600
+ /* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-2", children: [
601
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: "Requisitos de senha:" }),
602
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
603
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
604
+ /* @__PURE__ */ jsx(
605
+ CheckCircle2,
606
+ {
607
+ className: `w-4 h-4 ${password.length >= 6 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
608
+ }
609
+ ),
610
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "Mínimo de 6 caracteres" })
611
+ ] }),
612
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
613
+ /* @__PURE__ */ jsx(
614
+ CheckCircle2,
615
+ {
616
+ className: `w-4 h-4 ${password === confirmPassword && password.length > 0 ? "text-[var(--chart-2)]" : "text-muted-foreground"}`
617
+ }
618
+ ),
619
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "As senhas coincidem" })
620
+ ] })
621
+ ] })
622
+ ] }),
623
+ error && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-destructive bg-destructive/10 rounded-[var(--radius)] p-3", children: [
624
+ /* @__PURE__ */ jsx(AlertCircle, { className: "w-4 h-4 flex-shrink-0" }),
625
+ /* @__PURE__ */ jsx("span", { className: "text-sm", children: error })
626
+ ] }),
627
+ /* @__PURE__ */ jsx(
628
+ Button,
629
+ {
630
+ type: "submit",
631
+ className: "w-full",
632
+ disabled: isLoading,
633
+ children: isLoading ? "Redefinindo..." : "Redefinir senha"
634
+ }
635
+ )
636
+ ] })
637
+ ] })
638
+ ] })
639
+ ] });
640
+ }
641
+ function createLucideIconSvg(iconName) {
642
+ const iconPaths = {
643
+ utensils: '<path d="M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2"></path><path d="M7 2v20"></path><path d="M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7"></path>',
644
+ hotel: '<path d="M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"></path><path d="M8 6h8"></path><path d="M8 10h8"></path><path d="M8 14h8"></path><path d="M8 18h8"></path>',
645
+ landmark: '<path d="m3 21 18-18"></path><path d="M9 15V6h6v9"></path><path d="M12 3v3"></path><path d="M3 15h18"></path><path d="M6 21v-6"></path><path d="M18 21v-6"></path>',
646
+ shopping: '<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"></path><path d="M3 6h18"></path><path d="M16 10a4 4 0 0 1-8 0"></path>',
647
+ coffee: '<path d="M17 8h1a4 4 0 1 1 0 8h-1"></path><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z"></path><line x1="6" x2="6" y1="2" y2="4"></line><line x1="10" x2="10" y1="2" y2="4"></line><line x1="14" x2="14" y1="2" y2="4"></line>'
648
+ };
649
+ const path = iconPaths[iconName] || "";
650
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">${path}</svg>`;
651
+ }
652
+ const markerGroups = {
653
+ restaurant: {
654
+ id: "restaurant",
655
+ name: "Restaurantes",
656
+ color: "var(--destructive)",
657
+ // red
658
+ iconColor: "#FFFFFF",
659
+ // white para contraste
660
+ iconName: "utensils",
661
+ icon: Utensils
662
+ },
663
+ hotel: {
664
+ id: "hotel",
665
+ name: "Hotéis",
666
+ color: "var(--info)",
667
+ // blue
668
+ iconColor: "#FFFFFF",
669
+ iconName: "hotel",
670
+ icon: Hotel
671
+ },
672
+ landmark: {
673
+ id: "landmark",
674
+ name: "Pontos Turísticos",
675
+ color: "var(--success)",
676
+ // green
677
+ iconColor: "#FFFFFF",
678
+ iconName: "landmark",
679
+ icon: Landmark
680
+ },
681
+ shopping: {
682
+ id: "shopping",
683
+ name: "Compras",
684
+ color: "var(--warning)",
685
+ // orange
686
+ iconColor: "#FFFFFF",
687
+ iconName: "shopping",
688
+ icon: ShoppingBag
689
+ },
690
+ cafe: {
691
+ id: "cafe",
692
+ name: "Cafeterias",
693
+ color: "var(--primary)",
694
+ // purple
695
+ iconColor: "#FFFFFF",
696
+ iconName: "coffee",
697
+ icon: Coffee
698
+ }
699
+ };
700
+ const sampleLocations = [
701
+ // Restaurantes
702
+ {
703
+ position: { lat: -23.5505, lng: -46.6333 },
704
+ title: "Restaurante Italiano",
705
+ info: "Melhor pizza da cidade",
706
+ group: "restaurant"
707
+ },
708
+ {
709
+ position: { lat: -23.5485, lng: -46.635 },
710
+ title: "Sushi Bar",
711
+ info: "Comida japonesa autêntica",
712
+ group: "restaurant"
713
+ },
714
+ {
715
+ position: { lat: -23.552, lng: -46.631 },
716
+ title: "Churrascaria Premium",
717
+ info: "Rodízio tradicional brasileiro",
718
+ group: "restaurant"
719
+ },
720
+ // Hotéis
721
+ {
722
+ position: { lat: -23.5475, lng: -46.6361 },
723
+ title: "Hotel Luxo",
724
+ info: "5 estrelas - Vista panorâmica",
725
+ group: "hotel"
726
+ },
727
+ {
728
+ position: { lat: -23.553, lng: -46.634 },
729
+ title: "Hotel Boutique",
730
+ info: "Design moderno e aconchegante",
731
+ group: "hotel"
732
+ },
733
+ // Pontos Turísticos
734
+ {
735
+ position: { lat: -23.5613, lng: -46.6563 },
736
+ title: "Parque Ibirapuera",
737
+ info: "Maior parque urbano da cidade",
738
+ group: "landmark"
739
+ },
740
+ {
741
+ position: { lat: -23.5558, lng: -46.6396 },
742
+ title: "MASP",
743
+ info: "Museu de Arte de São Paulo",
744
+ group: "landmark"
745
+ },
746
+ {
747
+ position: { lat: -23.5489, lng: -46.6388 },
748
+ title: "Avenida Paulista",
749
+ info: "Centro financeiro e cultural",
750
+ group: "landmark"
751
+ },
752
+ // Shopping
753
+ {
754
+ position: { lat: -23.5465, lng: -46.64 },
755
+ title: "Shopping Center",
756
+ info: "Mais de 300 lojas",
757
+ group: "shopping"
758
+ },
759
+ {
760
+ position: { lat: -23.554, lng: -46.638 },
761
+ title: "Galeria de Arte",
762
+ info: "Arte contemporânea e design",
763
+ group: "shopping"
764
+ },
765
+ // Cafeterias
766
+ {
767
+ position: { lat: -23.5495, lng: -46.6345 },
768
+ title: "Café Artesanal",
769
+ info: "Café especial e brunch",
770
+ group: "cafe"
771
+ },
772
+ {
773
+ position: { lat: -23.551, lng: -46.637 },
774
+ title: "Coffee House",
775
+ info: "Café gourmet e wi-fi",
776
+ group: "cafe"
777
+ },
778
+ {
779
+ position: { lat: -23.5525, lng: -46.6355 },
780
+ title: "Café Cultural",
781
+ info: "Livros e café",
782
+ group: "cafe"
783
+ }
784
+ ];
785
+ function FilterableMapExample({ apiKey }) {
786
+ const [activeFilters, setActiveFilters] = useState(
787
+ new Set(Object.keys(markerGroups))
788
+ );
789
+ const [showFilters, setShowFilters] = useState(true);
790
+ const filteredLocations = useMemo(() => {
791
+ return sampleLocations.filter((location) => activeFilters.has(location.group));
792
+ }, [activeFilters]);
793
+ const toggleFilter = (groupId) => {
794
+ setActiveFilters((prev) => {
795
+ const newFilters = new Set(prev);
796
+ if (newFilters.has(groupId)) {
797
+ newFilters.delete(groupId);
798
+ } else {
799
+ newFilters.add(groupId);
800
+ }
801
+ return newFilters;
802
+ });
803
+ };
804
+ const toggleAll = () => {
805
+ if (activeFilters.size === Object.keys(markerGroups).length) {
806
+ setActiveFilters(/* @__PURE__ */ new Set());
807
+ } else {
808
+ setActiveFilters(new Set(Object.keys(markerGroups)));
809
+ }
810
+ };
811
+ const markersWithCustomization = filteredLocations.map((location) => ({
812
+ ...location,
813
+ customColor: markerGroups[location.group].color,
814
+ iconSvg: createLucideIconSvg(markerGroups[location.group].iconName),
815
+ iconColor: markerGroups[location.group].iconColor
816
+ }));
817
+ const getGroupCount = (groupId) => {
818
+ return sampleLocations.filter((loc) => loc.group === groupId).length;
819
+ };
820
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
821
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
822
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
823
+ /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5 text-primary" }),
824
+ /* @__PURE__ */ jsx("h3", { children: "Filtro por Categorias" })
825
+ ] }),
826
+ /* @__PURE__ */ jsxs(Badge, { variant: "secondary", children: [
827
+ filteredLocations.length,
828
+ " de ",
829
+ sampleLocations.length,
830
+ " locais"
831
+ ] })
832
+ ] }),
833
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Use os filtros compactos no canto superior esquerdo do mapa para visualizar marcadores por categoria" }),
834
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
835
+ /* @__PURE__ */ jsx(
836
+ Map,
837
+ {
838
+ center: { lat: -23.5505, lng: -46.6333 },
839
+ zoom: 14,
840
+ markers: markersWithCustomization,
841
+ height: "500px",
842
+ zoomControl: true,
843
+ fullscreenControl: true,
844
+ apiKey
845
+ }
846
+ ),
847
+ /* @__PURE__ */ jsx(
848
+ "div",
849
+ {
850
+ className: cn(
851
+ "absolute top-4 left-4 z-10 transition-all duration-300",
852
+ showFilters ? "translate-x-0" : "-translate-x-full"
853
+ ),
854
+ children: /* @__PURE__ */ jsxs(
855
+ "div",
856
+ {
857
+ className: "p-2.5 rounded-lg shadow-[var(--shadow-elevation-sm)] bg-card border border-border max-w-[220px]",
858
+ children: [
859
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2 gap-2", children: [
860
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
861
+ /* @__PURE__ */ jsx(Filter, { className: "w-3.5 h-3.5 text-foreground" }),
862
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-foreground", children: "Filtros" })
863
+ ] }),
864
+ /* @__PURE__ */ jsx(
865
+ Button,
866
+ {
867
+ size: "sm",
868
+ variant: "ghost",
869
+ onClick: () => setShowFilters(false),
870
+ className: "h-5 w-5 p-0",
871
+ children: /* @__PURE__ */ jsx(X, { className: "w-3 h-3" })
872
+ }
873
+ )
874
+ ] }),
875
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
876
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
877
+ /* @__PURE__ */ jsx(
878
+ Checkbox,
879
+ {
880
+ id: "filter-all",
881
+ checked: activeFilters.size === Object.keys(markerGroups).length,
882
+ onCheckedChange: toggleAll
883
+ }
884
+ ),
885
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "filter-all", className: "flex items-center gap-1.5 cursor-pointer text-sm", children: [
886
+ /* @__PURE__ */ jsx(MapPin, { className: "w-3.5 h-3.5" }),
887
+ "Todos",
888
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs h-4 px-1", children: sampleLocations.length })
889
+ ] })
890
+ ] }),
891
+ Object.entries(markerGroups).map(([id, group]) => {
892
+ const groupId = id;
893
+ const Icon = group.icon;
894
+ const isActive = activeFilters.has(groupId);
895
+ const count = getGroupCount(groupId);
896
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 py-0.5", children: [
897
+ /* @__PURE__ */ jsx(
898
+ Checkbox,
899
+ {
900
+ id: `filter-${id}`,
901
+ checked: isActive,
902
+ onCheckedChange: () => toggleFilter(groupId)
903
+ }
904
+ ),
905
+ /* @__PURE__ */ jsxs(
906
+ Label,
907
+ {
908
+ htmlFor: `filter-${id}`,
909
+ className: "flex items-center gap-1.5 cursor-pointer text-sm",
910
+ children: [
911
+ /* @__PURE__ */ jsx(
912
+ Icon,
913
+ {
914
+ className: "w-3.5 h-3.5",
915
+ style: { color: group.color }
916
+ }
917
+ ),
918
+ /* @__PURE__ */ jsx("span", { className: isActive ? "text-foreground" : "text-muted-foreground", children: group.name }),
919
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs h-4 px-1", children: count })
920
+ ]
921
+ }
922
+ )
923
+ ] }, id);
924
+ })
925
+ ] })
926
+ ]
927
+ }
928
+ )
929
+ }
930
+ ),
931
+ !showFilters && /* @__PURE__ */ jsxs(
932
+ Button,
933
+ {
934
+ size: "sm",
935
+ onClick: () => setShowFilters(true),
936
+ className: "absolute top-4 left-4 z-10 h-8 bg-primary text-primary-foreground",
937
+ children: [
938
+ /* @__PURE__ */ jsx(Filter, { className: "w-3.5 h-3.5 mr-1.5" }),
939
+ "Filtros"
940
+ ]
941
+ }
942
+ )
943
+ ] }),
944
+ /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3 justify-center pt-2 border-t border-border", children: Object.entries(markerGroups).map(([id, group]) => {
945
+ const Icon = group.icon;
946
+ const count = getGroupCount(id);
947
+ return /* @__PURE__ */ jsxs(
948
+ "div",
949
+ {
950
+ className: "flex items-center gap-2 px-3 py-1 rounded-lg bg-muted",
951
+ children: [
952
+ /* @__PURE__ */ jsx(
953
+ "div",
954
+ {
955
+ className: "w-3 h-3 rounded-full",
956
+ style: { backgroundColor: group.color }
957
+ }
958
+ ),
959
+ /* @__PURE__ */ jsx(Icon, { className: "w-4 h-4", style: { color: group.color } }),
960
+ /* @__PURE__ */ jsx("span", { className: "text-sm", style: { color: "var(--foreground)" }, children: group.name }),
961
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs h-5", children: count })
962
+ ]
963
+ },
964
+ id
965
+ );
966
+ }) }),
967
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: [
968
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
969
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Total de Locais" }),
970
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-foreground", children: sampleLocations.length })
971
+ ] }),
972
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
973
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Visíveis" }),
974
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-primary", children: filteredLocations.length })
975
+ ] }),
976
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
977
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Categorias" }),
978
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-foreground", children: Object.keys(markerGroups).length })
979
+ ] }),
980
+ /* @__PURE__ */ jsxs("div", { className: "text-center p-3 rounded-lg bg-muted", children: [
981
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Filtros Ativos" }),
982
+ /* @__PURE__ */ jsx("p", { className: "text-2xl text-chart-2", children: activeFilters.size })
983
+ ] })
984
+ ] })
985
+ ] });
986
+ }
987
+ function DrawingMapExample({ apiKey }) {
988
+ const [mapInstance, setMapInstance] = useState(null);
989
+ const [selectedMode, setSelectedMode] = useState(null);
990
+ const [shapes, setShapes] = useState([]);
991
+ const [showSaveDialog, setShowSaveDialog] = useState(false);
992
+ const [savedData, setSavedData] = useState("");
993
+ const [isDrawingPolygon, setIsDrawingPolygon] = useState(false);
994
+ const tempPolylineRef = useRef(null);
995
+ const polygonPathRef = useRef([]);
996
+ const mapListenersRef = useRef([]);
997
+ const colors = {
998
+ fill: "#2C275B",
999
+ // Primary do CSS
1000
+ stroke: "#2C275B",
1001
+ fillOpacity: 0.2,
1002
+ strokeWeight: 2,
1003
+ editable: true,
1004
+ draggable: true
1005
+ };
1006
+ const addMarker = useCallback((position) => {
1007
+ if (!mapInstance) return;
1008
+ const marker = new google.maps.marker.AdvancedMarkerElement({
1009
+ position,
1010
+ map: mapInstance,
1011
+ gmpDraggable: true,
1012
+ // Propriedade correta para AdvancedMarkerElement
1013
+ title: "Marcador"
1014
+ });
1015
+ marker.addListener("dragend", () => {
1016
+ toast.info("Posição do marcador atualizada");
1017
+ });
1018
+ const newShape = { type: "marker", overlay: marker };
1019
+ setShapes((prev) => [...prev, newShape]);
1020
+ toast.success("Marcador adicionado");
1021
+ }, [mapInstance]);
1022
+ const addCircle = useCallback((center) => {
1023
+ if (!mapInstance) return;
1024
+ const circle = new google.maps.Circle({
1025
+ map: mapInstance,
1026
+ center,
1027
+ radius: 500,
1028
+ fillColor: colors.fill,
1029
+ fillOpacity: colors.fillOpacity,
1030
+ strokeColor: colors.stroke,
1031
+ strokeWeight: colors.strokeWeight,
1032
+ editable: true,
1033
+ draggable: true
1034
+ });
1035
+ const newShape = { type: "circle", overlay: circle };
1036
+ setShapes((prev) => [...prev, newShape]);
1037
+ toast.success("Círculo adicionado");
1038
+ }, [mapInstance, colors]);
1039
+ const addRectangle = useCallback((center) => {
1040
+ if (!mapInstance) return;
1041
+ const offset = 5e-3;
1042
+ const bounds = {
1043
+ north: center.lat() + offset,
1044
+ south: center.lat() - offset,
1045
+ east: center.lng() + offset,
1046
+ west: center.lng() - offset
1047
+ };
1048
+ const rectangle = new google.maps.Rectangle({
1049
+ map: mapInstance,
1050
+ bounds,
1051
+ fillColor: colors.fill,
1052
+ fillOpacity: colors.fillOpacity,
1053
+ strokeColor: colors.stroke,
1054
+ strokeWeight: colors.strokeWeight,
1055
+ editable: true,
1056
+ draggable: true
1057
+ });
1058
+ const newShape = { type: "rectangle", overlay: rectangle };
1059
+ setShapes((prev) => [...prev, newShape]);
1060
+ toast.success("Retângulo adicionado");
1061
+ }, [mapInstance, colors]);
1062
+ const cancelPolygonDrawing = useCallback(() => {
1063
+ if (tempPolylineRef.current) {
1064
+ tempPolylineRef.current.setMap(null);
1065
+ tempPolylineRef.current = null;
1066
+ }
1067
+ polygonPathRef.current = [];
1068
+ setIsDrawingPolygon(false);
1069
+ }, []);
1070
+ const finishPolygon = useCallback(() => {
1071
+ if (!mapInstance || polygonPathRef.current.length < 3) {
1072
+ if (polygonPathRef.current.length < 3 && polygonPathRef.current.length > 0) {
1073
+ toast.error("Polígono precisa de pelo menos 3 pontos.");
1074
+ }
1075
+ return;
1076
+ }
1077
+ const polygon = new google.maps.Polygon({
1078
+ map: mapInstance,
1079
+ paths: polygonPathRef.current,
1080
+ fillColor: colors.fill,
1081
+ fillOpacity: colors.fillOpacity,
1082
+ strokeColor: colors.stroke,
1083
+ strokeWeight: colors.strokeWeight,
1084
+ editable: true,
1085
+ draggable: true
1086
+ });
1087
+ const newShape = { type: "polygon", overlay: polygon };
1088
+ setShapes((prev) => [...prev, newShape]);
1089
+ cancelPolygonDrawing();
1090
+ toast.success("Polígono criado com sucesso!");
1091
+ }, [mapInstance, colors, cancelPolygonDrawing]);
1092
+ const addPolygonPoint = useCallback((point) => {
1093
+ var _a;
1094
+ if (!mapInstance) return;
1095
+ if (!isDrawingPolygon) {
1096
+ setIsDrawingPolygon(true);
1097
+ polygonPathRef.current = [point];
1098
+ tempPolylineRef.current = new google.maps.Polyline({
1099
+ map: mapInstance,
1100
+ path: polygonPathRef.current,
1101
+ strokeColor: colors.stroke,
1102
+ strokeOpacity: 0.8,
1103
+ strokeWeight: 2,
1104
+ geodesic: true,
1105
+ clickable: false
1106
+ // Importante: não capturar cliques para não atrapalhar o mapa
1107
+ });
1108
+ toast.info("Clique para adicionar pontos. Duplo clique ou botão check para fechar.", { duration: 4e3 });
1109
+ } else {
1110
+ polygonPathRef.current.push(point);
1111
+ (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1112
+ }
1113
+ }, [mapInstance, isDrawingPolygon, colors]);
1114
+ const clearListeners = () => {
1115
+ mapListenersRef.current.forEach((listener) => google.maps.event.removeListener(listener));
1116
+ mapListenersRef.current = [];
1117
+ };
1118
+ useEffect(() => {
1119
+ if (!mapInstance) return;
1120
+ clearListeners();
1121
+ if (!selectedMode) {
1122
+ mapInstance.setOptions({ draggableCursor: "grab", clickableIcons: true });
1123
+ return;
1124
+ }
1125
+ mapInstance.setOptions({
1126
+ draggableCursor: "crosshair",
1127
+ clickableIcons: false
1128
+ });
1129
+ const clickListener = mapInstance.addListener("click", (e) => {
1130
+ if (!e.latLng) return;
1131
+ switch (selectedMode) {
1132
+ case "marker":
1133
+ addMarker(e.latLng);
1134
+ break;
1135
+ case "circle":
1136
+ addCircle(e.latLng);
1137
+ break;
1138
+ case "rectangle":
1139
+ addRectangle(e.latLng);
1140
+ break;
1141
+ case "polygon":
1142
+ addPolygonPoint(e.latLng);
1143
+ break;
1144
+ }
1145
+ });
1146
+ mapListenersRef.current.push(clickListener);
1147
+ if (selectedMode === "polygon") {
1148
+ const dblClickListener = mapInstance.addListener("dblclick", (e) => {
1149
+ if (e.domEvent) e.domEvent.stopPropagation();
1150
+ finishPolygon();
1151
+ });
1152
+ mapListenersRef.current.push(dblClickListener);
1153
+ }
1154
+ return () => {
1155
+ clearListeners();
1156
+ };
1157
+ }, [mapInstance, selectedMode, addMarker, addCircle, addRectangle, addPolygonPoint, finishPolygon]);
1158
+ const handleModeChange = (mode) => {
1159
+ if (isDrawingPolygon) {
1160
+ cancelPolygonDrawing();
1161
+ }
1162
+ setSelectedMode(mode);
1163
+ };
1164
+ const clearAll = () => {
1165
+ shapes.forEach((shape) => {
1166
+ if ("setMap" in shape.overlay) shape.overlay.setMap(null);
1167
+ else shape.overlay.map = null;
1168
+ });
1169
+ setShapes([]);
1170
+ if (isDrawingPolygon) cancelPolygonDrawing();
1171
+ toast.info("Mapa limpo");
1172
+ };
1173
+ const undoLast = () => {
1174
+ var _a;
1175
+ if (isDrawingPolygon) {
1176
+ if (polygonPathRef.current.length > 0) {
1177
+ polygonPathRef.current.pop();
1178
+ (_a = tempPolylineRef.current) == null ? void 0 : _a.setPath(polygonPathRef.current);
1179
+ if (polygonPathRef.current.length === 0) {
1180
+ cancelPolygonDrawing();
1181
+ }
1182
+ }
1183
+ return;
1184
+ }
1185
+ if (shapes.length === 0) return;
1186
+ const lastShape = shapes[shapes.length - 1];
1187
+ if ("setMap" in lastShape.overlay) lastShape.overlay.setMap(null);
1188
+ else lastShape.overlay.map = null;
1189
+ setShapes((prev) => prev.slice(0, prev.length - 1));
1190
+ };
1191
+ const handleSave = () => {
1192
+ if (shapes.length === 0) {
1193
+ toast.error("Adicione desenhos ao mapa antes de salvar.");
1194
+ return;
1195
+ }
1196
+ const exportData = shapes.map((s) => {
1197
+ var _a, _b;
1198
+ let data = {};
1199
+ if (s.type === "marker") {
1200
+ const marker = s.overlay;
1201
+ const pos = marker.position;
1202
+ if (pos) {
1203
+ const lat = typeof pos.lat === "function" ? pos.lat() : pos.lat;
1204
+ const lng = typeof pos.lng === "function" ? pos.lng() : pos.lng;
1205
+ data = { lat, lng };
1206
+ }
1207
+ } else if (s.type === "circle") {
1208
+ const circle = s.overlay;
1209
+ data = {
1210
+ center: { lat: (_a = circle.getCenter()) == null ? void 0 : _a.lat(), lng: (_b = circle.getCenter()) == null ? void 0 : _b.lng() },
1211
+ radius: circle.getRadius()
1212
+ };
1213
+ } else if (s.type === "rectangle") {
1214
+ const rect = s.overlay;
1215
+ const bounds = rect.getBounds();
1216
+ data = {
1217
+ north: bounds == null ? void 0 : bounds.getNorthEast().lat(),
1218
+ south: bounds == null ? void 0 : bounds.getSouthWest().lat(),
1219
+ east: bounds == null ? void 0 : bounds.getNorthEast().lng(),
1220
+ west: bounds == null ? void 0 : bounds.getSouthWest().lng()
1221
+ };
1222
+ } else if (s.type === "polygon") {
1223
+ const poly = s.overlay;
1224
+ const path = poly.getPath();
1225
+ data = path.getArray().map((coord) => ({ lat: coord.lat(), lng: coord.lng() }));
1226
+ }
1227
+ return { type: s.type, data };
1228
+ });
1229
+ setSavedData(JSON.stringify(exportData, null, 2));
1230
+ setShowSaveDialog(true);
1231
+ };
1232
+ const ToolButton = ({
1233
+ active,
1234
+ onClick,
1235
+ icon: Icon,
1236
+ label
1237
+ }) => /* @__PURE__ */ jsxs(
1238
+ Button,
1239
+ {
1240
+ variant: active ? "default" : "ghost",
1241
+ className: `w-full justify-start gap-3 ${active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"}`,
1242
+ onClick,
1243
+ children: [
1244
+ /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }),
1245
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: label })
1246
+ ]
1247
+ }
1248
+ );
1249
+ return /* @__PURE__ */ jsxs(Card, { className: "h-full border-0 shadow-none md:border md:shadow-sm", children: [
1250
+ /* @__PURE__ */ jsx(CardHeader, { className: "border-b bg-muted/20 pb-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1251
+ /* @__PURE__ */ jsxs("div", { children: [
1252
+ /* @__PURE__ */ jsx(CardTitle, { children: "Ferramentas de Desenho" }),
1253
+ /* @__PURE__ */ jsx(CardDescription, { className: "mt-1", children: "Crie geometrias personalizadas no mapa" })
1254
+ ] }),
1255
+ /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "h-6", children: [
1256
+ shapes.length,
1257
+ " ",
1258
+ shapes.length === 1 ? "elemento" : "elementos"
1259
+ ] })
1260
+ ] }) }),
1261
+ /* @__PURE__ */ jsxs(CardContent, { className: "p-0 flex flex-col md:flex-row h-[600px] bg-background", children: [
1262
+ /* @__PURE__ */ jsxs("div", { className: "w-full md:w-64 border-b md:border-b-0 md:border-r bg-muted/10 flex flex-col", children: [
1263
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: /* @__PURE__ */ jsxs("div", { className: "p-4 space-y-6", children: [
1264
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1265
+ /* @__PURE__ */ jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ferramentas" }),
1266
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
1267
+ /* @__PURE__ */ jsx(
1268
+ ToolButton,
1269
+ {
1270
+ active: selectedMode === null,
1271
+ onClick: () => handleModeChange(null),
1272
+ icon: MousePointer2,
1273
+ label: "Navegar"
1274
+ }
1275
+ ),
1276
+ /* @__PURE__ */ jsx(
1277
+ ToolButton,
1278
+ {
1279
+ active: selectedMode === "marker",
1280
+ onClick: () => handleModeChange("marker"),
1281
+ icon: MapPin,
1282
+ label: "Marcador"
1283
+ }
1284
+ ),
1285
+ /* @__PURE__ */ jsx(
1286
+ ToolButton,
1287
+ {
1288
+ active: selectedMode === "circle",
1289
+ onClick: () => handleModeChange("circle"),
1290
+ icon: Circle,
1291
+ label: "Círculo"
1292
+ }
1293
+ ),
1294
+ /* @__PURE__ */ jsx(
1295
+ ToolButton,
1296
+ {
1297
+ active: selectedMode === "rectangle",
1298
+ onClick: () => handleModeChange("rectangle"),
1299
+ icon: Square,
1300
+ label: "Retângulo"
1301
+ }
1302
+ ),
1303
+ /* @__PURE__ */ jsx(
1304
+ ToolButton,
1305
+ {
1306
+ active: selectedMode === "polygon",
1307
+ onClick: () => handleModeChange("polygon"),
1308
+ icon: Hexagon,
1309
+ label: "Polígono"
1310
+ }
1311
+ )
1312
+ ] })
1313
+ ] }),
1314
+ /* @__PURE__ */ jsx(Separator, {}),
1315
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1316
+ /* @__PURE__ */ jsx("h4", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider px-2", children: "Ações" }),
1317
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1318
+ /* @__PURE__ */ jsxs(
1319
+ Button,
1320
+ {
1321
+ variant: "outline",
1322
+ onClick: undoLast,
1323
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1324
+ className: "w-full",
1325
+ title: "Desfazer último",
1326
+ "aria-label": "Desfazer último",
1327
+ children: [
1328
+ /* @__PURE__ */ jsx(Undo, { className: "h-4 w-4 mr-2" }),
1329
+ "Desfazer"
1330
+ ]
1331
+ }
1332
+ ),
1333
+ /* @__PURE__ */ jsxs(
1334
+ Button,
1335
+ {
1336
+ variant: "destructive",
1337
+ onClick: clearAll,
1338
+ disabled: shapes.length === 0 && !isDrawingPolygon,
1339
+ className: "w-full bg-destructive/10 text-destructive hover:bg-destructive hover:text-destructive-foreground border-0 shadow-none",
1340
+ children: [
1341
+ /* @__PURE__ */ jsx(Trash2, { className: "h-4 w-4 mr-2" }),
1342
+ "Limpar"
1343
+ ]
1344
+ }
1345
+ )
1346
+ ] }),
1347
+ /* @__PURE__ */ jsxs(
1348
+ Button,
1349
+ {
1350
+ variant: "default",
1351
+ onClick: handleSave,
1352
+ disabled: shapes.length === 0,
1353
+ className: "w-full mt-2",
1354
+ children: [
1355
+ /* @__PURE__ */ jsx(Save, { className: "h-4 w-4 mr-2" }),
1356
+ "Salvar GeoJSON"
1357
+ ]
1358
+ }
1359
+ )
1360
+ ] })
1361
+ ] }) }),
1362
+ isDrawingPolygon && /* @__PURE__ */ jsxs("div", { className: "p-4 bg-primary/5 border-t border-primary/10", children: [
1363
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2 text-primary text-xs font-medium", children: [
1364
+ /* @__PURE__ */ jsxs("span", { className: "relative flex h-2 w-2", children: [
1365
+ /* @__PURE__ */ jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75" }),
1366
+ /* @__PURE__ */ jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary" })
1367
+ ] }),
1368
+ "Desenhando Polígono..."
1369
+ ] }),
1370
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
1371
+ /* @__PURE__ */ jsxs(
1372
+ Button,
1373
+ {
1374
+ size: "sm",
1375
+ className: "w-full bg-green-600 hover:bg-green-700 text-white",
1376
+ onClick: finishPolygon,
1377
+ children: [
1378
+ /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 mr-1" }),
1379
+ " Concluir"
1380
+ ]
1381
+ }
1382
+ ),
1383
+ /* @__PURE__ */ jsxs(
1384
+ Button,
1385
+ {
1386
+ size: "sm",
1387
+ variant: "outline",
1388
+ className: "w-full",
1389
+ onClick: cancelPolygonDrawing,
1390
+ children: [
1391
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3 mr-1" }),
1392
+ " Cancelar"
1393
+ ]
1394
+ }
1395
+ )
1396
+ ] })
1397
+ ] })
1398
+ ] }),
1399
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 relative bg-muted/5 min-h-[400px]", children: [
1400
+ /* @__PURE__ */ jsx(
1401
+ Map,
1402
+ {
1403
+ className: "h-full w-full rounded-none md:rounded-br-lg",
1404
+ center: { lat: -23.5505, lng: -46.6333 },
1405
+ zoom: 13,
1406
+ height: "100%",
1407
+ mapContainerClassName: "h-full w-full rounded-none md:rounded-br-lg",
1408
+ disableDefaultUI: true,
1409
+ zoomControl: true,
1410
+ onMapLoad: setMapInstance,
1411
+ apiKey
1412
+ }
1413
+ ),
1414
+ selectedMode && !isDrawingPolygon && /* @__PURE__ */ jsxs("div", { className: "absolute bottom-6 left-1/2 -translate-x-1/2 bg-background/90 backdrop-blur border px-4 py-2 rounded-full shadow-sm text-xs font-medium text-muted-foreground pointer-events-none z-10", children: [
1415
+ selectedMode === "marker" && "Clique no mapa para adicionar um marcador",
1416
+ selectedMode === "circle" && "Clique no mapa para definir o centro do círculo",
1417
+ selectedMode === "rectangle" && "Clique no mapa para criar um retângulo",
1418
+ selectedMode === "polygon" && "Clique sequencialmente para desenhar a área"
1419
+ ] })
1420
+ ] }),
1421
+ /* @__PURE__ */ jsx(Dialog, { open: showSaveDialog, onOpenChange: setShowSaveDialog, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md", children: [
1422
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
1423
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Dados Geográficos (GeoJSON)" }),
1424
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Copie os dados das formas desenhadas abaixo." })
1425
+ ] }),
1426
+ /* @__PURE__ */ jsx("div", { className: "relative mt-2", children: /* @__PURE__ */ jsx("pre", { className: "p-4 rounded-lg bg-muted overflow-auto max-h-[300px] text-xs font-mono", "data-custom-scrollbar": true, children: savedData }) }),
1427
+ /* @__PURE__ */ jsx("div", { className: "flex justify-end mt-4", children: /* @__PURE__ */ jsx(Button, { onClick: () => setShowSaveDialog(false), children: "Fechar" }) })
1428
+ ] }) })
1429
+ ] })
1430
+ ] });
1431
+ }
1432
+ function MapShowcase() {
1433
+ const [activeTab, setActiveTab] = useState("simple");
1434
+ const [isTransitioning, setIsTransitioning] = useState(false);
1435
+ const [apiKey, setApiKey] = useState("");
1436
+ const [inputApiKey, setInputApiKey] = useState("");
1437
+ const [showTraffic, setShowTraffic] = useState(false);
1438
+ const [showTransit, setShowTransit] = useState(false);
1439
+ const [showBicycling, setShowBicycling] = useState(false);
1440
+ const [showZoomControl, setShowZoomControl] = useState(true);
1441
+ const [showMapTypeControl, setShowMapTypeControl] = useState(false);
1442
+ const [showStreetViewControl, setShowStreetViewControl] = useState(false);
1443
+ const [showFullscreenControl, setShowFullscreenControl] = useState(true);
1444
+ const handleTabChange = (value) => {
1445
+ if (value === activeTab) return;
1446
+ setIsTransitioning(true);
1447
+ setTimeout(() => {
1448
+ setActiveTab(value);
1449
+ setIsTransitioning(false);
1450
+ }, 50);
1451
+ };
1452
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-8", children: [
1453
+ /* @__PURE__ */ jsx(
1454
+ PageHeader,
1455
+ {
1456
+ title: "Mapas",
1457
+ subtitle: "Biblioteca de componentes de mapa para visualização de dados geoespaciais. Utiliza a API do Google Maps com estilização personalizada do Xertica UI.",
1458
+ actions: /* @__PURE__ */ jsx(Badge, { children: "Design System" })
1459
+ }
1460
+ ),
1461
+ /* @__PURE__ */ jsxs(Card, { children: [
1462
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1463
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configuração da API Key" }),
1464
+ /* @__PURE__ */ jsx(CardDescription, { children: "Insira sua Google Maps API Key para renderizar os mapas abaixo." })
1465
+ ] }),
1466
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-md items-center space-x-2", children: [
1467
+ /* @__PURE__ */ jsx(
1468
+ Input,
1469
+ {
1470
+ type: "password",
1471
+ placeholder: "Cole sua Google Maps API Key aqui",
1472
+ "aria-label": "Google Maps API Key",
1473
+ value: inputApiKey,
1474
+ onChange: (e) => setInputApiKey(e.target.value),
1475
+ className: "max-w-md h-10"
1476
+ }
1477
+ ),
1478
+ /* @__PURE__ */ jsx(Button, { onClick: () => setApiKey(inputApiKey), children: "Salvar" })
1479
+ ] }) })
1480
+ ] }),
1481
+ /* @__PURE__ */ jsxs(Tabs, { value: activeTab, onValueChange: handleTabChange, className: "w-full", children: [
1482
+ /* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-4 mb-8", children: [
1483
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "simple", children: "Mapas Simples" }),
1484
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "markers", children: "Marcadores" }),
1485
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "controls", children: "Controles" }),
1486
+ /* @__PURE__ */ jsxs(TabsTrigger, { value: "drawing", className: "flex items-center gap-2", children: [
1487
+ /* @__PURE__ */ jsx(Pencil, { className: "w-3 h-3" }),
1488
+ " Desenho"
1489
+ ] })
1490
+ ] }),
1491
+ /* @__PURE__ */ jsx(TabsContent, { value: "simple", className: "space-y-8", children: !isTransitioning && activeTab === "simple" && /* @__PURE__ */ jsxs(Fragment, { children: [
1492
+ /* @__PURE__ */ jsxs(Card, { children: [
1493
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1494
+ /* @__PURE__ */ jsx(CardTitle, { children: "Mapa Padrão" }),
1495
+ /* @__PURE__ */ jsx(CardDescription, { children: "Configuração básica do mapa centralizado em uma coordenada específica." })
1496
+ ] }),
1497
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1498
+ Map,
1499
+ {
1500
+ center: { lat: -23.5505, lng: -46.6333 },
1501
+ zoom: 13,
1502
+ height: "400px",
1503
+ apiKey
1504
+ }
1505
+ ) })
1506
+ ] }),
1507
+ /* @__PURE__ */ jsxs(Card, { children: [
1508
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1509
+ /* @__PURE__ */ jsx(CardTitle, { children: "Camadas (Layers)" }),
1510
+ /* @__PURE__ */ jsx(CardDescription, { children: "Sobreposição de informações como tráfego, transporte público e ciclovias." })
1511
+ ] }),
1512
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
1513
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-6 p-4 border rounded-lg bg-muted/50", children: [
1514
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1515
+ /* @__PURE__ */ jsx(
1516
+ Switch,
1517
+ {
1518
+ id: "traffic",
1519
+ checked: showTraffic,
1520
+ onCheckedChange: setShowTraffic
1521
+ }
1522
+ ),
1523
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "traffic", className: "flex items-center gap-2", children: [
1524
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1525
+ " Trânsito"
1526
+ ] })
1527
+ ] }),
1528
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1529
+ /* @__PURE__ */ jsx(
1530
+ Switch,
1531
+ {
1532
+ id: "transit",
1533
+ checked: showTransit,
1534
+ onCheckedChange: setShowTransit
1535
+ }
1536
+ ),
1537
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "transit", className: "flex items-center gap-2", children: [
1538
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1539
+ " Transporte"
1540
+ ] })
1541
+ ] }),
1542
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1543
+ /* @__PURE__ */ jsx(
1544
+ Switch,
1545
+ {
1546
+ id: "bicycling",
1547
+ checked: showBicycling,
1548
+ onCheckedChange: setShowBicycling
1549
+ }
1550
+ ),
1551
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "bicycling", className: "flex items-center gap-2", children: [
1552
+ /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4" }),
1553
+ " Ciclovias"
1554
+ ] })
1555
+ ] })
1556
+ ] }),
1557
+ /* @__PURE__ */ jsx(
1558
+ Map,
1559
+ {
1560
+ center: { lat: -23.5505, lng: -46.6333 },
1561
+ zoom: 12,
1562
+ height: "500px",
1563
+ layers: {
1564
+ traffic: showTraffic,
1565
+ transit: showTransit,
1566
+ bicycling: showBicycling
1567
+ },
1568
+ apiKey
1569
+ }
1570
+ )
1571
+ ] })
1572
+ ] }),
1573
+ /* @__PURE__ */ jsxs("div", { className: "grid md:grid-cols-3 gap-4", children: [
1574
+ /* @__PURE__ */ jsxs(Card, { children: [
1575
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "São Paulo" }) }),
1576
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1577
+ Map,
1578
+ {
1579
+ center: { lat: -23.5505, lng: -46.6333 },
1580
+ zoom: 11,
1581
+ height: "200px",
1582
+ disableDefaultUI: true,
1583
+ apiKey
1584
+ }
1585
+ ) })
1586
+ ] }),
1587
+ /* @__PURE__ */ jsxs(Card, { children: [
1588
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Rio de Janeiro" }) }),
1589
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1590
+ Map,
1591
+ {
1592
+ center: { lat: -22.9068, lng: -43.1729 },
1593
+ zoom: 11,
1594
+ height: "200px",
1595
+ disableDefaultUI: true,
1596
+ apiKey
1597
+ }
1598
+ ) })
1599
+ ] }),
1600
+ /* @__PURE__ */ jsxs(Card, { children: [
1601
+ /* @__PURE__ */ jsx(CardHeader, { className: "p-4 pb-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "New York" }) }),
1602
+ /* @__PURE__ */ jsx(CardContent, { className: "p-4 pt-0", children: /* @__PURE__ */ jsx(
1603
+ Map,
1604
+ {
1605
+ center: { lat: 40.7128, lng: -74.006 },
1606
+ zoom: 11,
1607
+ height: "200px",
1608
+ disableDefaultUI: true,
1609
+ apiKey
1610
+ }
1611
+ ) })
1612
+ ] })
1613
+ ] })
1614
+ ] }) }),
1615
+ /* @__PURE__ */ jsx(TabsContent, { value: "markers", className: "space-y-8", children: !isTransitioning && activeTab === "markers" && /* @__PURE__ */ jsxs(Fragment, { children: [
1616
+ /* @__PURE__ */ jsxs(Card, { children: [
1617
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1618
+ /* @__PURE__ */ jsx(CardTitle, { children: "Marcadores e Pins" }),
1619
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplos de marcadores personalizados com diferentes cores e informações." })
1620
+ ] }),
1621
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1622
+ Map,
1623
+ {
1624
+ center: { lat: -23.5505, lng: -46.6333 },
1625
+ zoom: 13,
1626
+ height: "500px",
1627
+ apiKey,
1628
+ markers: [
1629
+ {
1630
+ position: { lat: -23.5505, lng: -46.6333 },
1631
+ title: "Principal",
1632
+ info: "Marcador padrão",
1633
+ customColor: "#4F46E5"
1634
+ },
1635
+ {
1636
+ position: { lat: -23.54, lng: -46.64 },
1637
+ title: "Secundário",
1638
+ info: "Marcador de alerta",
1639
+ customColor: "#EF4444",
1640
+ icon: "!"
1641
+ },
1642
+ {
1643
+ position: { lat: -23.56, lng: -46.62 },
1644
+ title: "Loja",
1645
+ info: "Ponto de venda",
1646
+ customColor: "#10B981",
1647
+ icon: "S"
1648
+ }
1649
+ ]
1650
+ }
1651
+ ) })
1652
+ ] }),
1653
+ /* @__PURE__ */ jsxs(Card, { children: [
1654
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1655
+ /* @__PURE__ */ jsx(CardTitle, { children: "Marcador com Ações" }),
1656
+ /* @__PURE__ */ jsx(CardDescription, { children: "Marcador interativo que exibe conteúdo rico (texto, imagem, botões) ao ser clicado." })
1657
+ ] }),
1658
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1659
+ Map,
1660
+ {
1661
+ center: { lat: -23.5505, lng: -46.6333 },
1662
+ zoom: 13,
1663
+ height: "500px",
1664
+ apiKey,
1665
+ markers: [
1666
+ {
1667
+ position: { lat: -23.5505, lng: -46.6333 },
1668
+ label: "🏢",
1669
+ richContent: /* @__PURE__ */ jsxs("div", { className: "p-4 max-w-[260px]", children: [
1670
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
1671
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-base", children: "Xertica HQ" }),
1672
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-[10px] h-5", children: "Open" })
1673
+ ] }),
1674
+ /* @__PURE__ */ jsxs("div", { className: "w-full h-32 bg-muted rounded-md mb-3 overflow-hidden relative", children: [
1675
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" }),
1676
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center text-white font-medium", children: "Office View" })
1677
+ ] }),
1678
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mb-3 leading-relaxed", children: "Sede principal em São Paulo. Espaço moderno para reuniões e eventos." }),
1679
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
1680
+ /* @__PURE__ */ jsx(Button, { size: "sm", className: "w-full h-8 text-xs shadow-sm", children: "Navegar" }),
1681
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", className: "w-full h-8 text-xs bg-background", children: "Detalhes" })
1682
+ ] })
1683
+ ] })
1684
+ }
1685
+ ]
1686
+ }
1687
+ ) })
1688
+ ] }),
1689
+ /* @__PURE__ */ jsxs(Card, { children: [
1690
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1691
+ /* @__PURE__ */ jsx(CardTitle, { children: "Áreas e Zonas" }),
1692
+ /* @__PURE__ */ jsx(CardDescription, { children: "Delimitação de áreas geográficas usando círculos e polígonos." })
1693
+ ] }),
1694
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
1695
+ Map,
1696
+ {
1697
+ center: { lat: -23.5505, lng: -46.6333 },
1698
+ zoom: 12,
1699
+ height: "500px",
1700
+ apiKey,
1701
+ markers: [
1702
+ {
1703
+ position: { lat: -23.5505, lng: -46.6333 },
1704
+ title: "Centro da Zona",
1705
+ info: "Raio de 3km",
1706
+ customColor: "#6366F1"
1707
+ }
1708
+ ],
1709
+ circle: {
1710
+ center: { lat: -23.5505, lng: -46.6333 },
1711
+ radius: 3e3,
1712
+ fillColor: "#6366F1",
1713
+ strokeColor: "#4F46E5"
1714
+ },
1715
+ polygon: {
1716
+ paths: [
1717
+ [
1718
+ { lat: -23.52, lng: -46.6 },
1719
+ { lat: -23.52, lng: -46.66 },
1720
+ { lat: -23.58, lng: -46.66 },
1721
+ { lat: -23.58, lng: -46.6 }
1722
+ ]
1723
+ ],
1724
+ fillColor: "#10B981",
1725
+ strokeColor: "#059669"
1726
+ }
1727
+ }
1728
+ ) })
1729
+ ] })
1730
+ ] }) }),
1731
+ /* @__PURE__ */ jsx(TabsContent, { value: "controls", className: "space-y-8", children: !isTransitioning && activeTab === "controls" && /* @__PURE__ */ jsxs(Fragment, { children: [
1732
+ /* @__PURE__ */ jsxs(Card, { children: [
1733
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1734
+ /* @__PURE__ */ jsx(CardTitle, { children: "Controles do Mapa" }),
1735
+ /* @__PURE__ */ jsx(CardDescription, { children: "Personalize a interface do mapa ativando ou desativando controles nativos." })
1736
+ ] }),
1737
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
1738
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 p-4 border rounded-lg bg-muted/50", children: [
1739
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1740
+ /* @__PURE__ */ jsx(
1741
+ Checkbox,
1742
+ {
1743
+ id: "zoom",
1744
+ checked: showZoomControl,
1745
+ onCheckedChange: (c) => setShowZoomControl(!!c)
1746
+ }
1747
+ ),
1748
+ /* @__PURE__ */ jsx(Label, { htmlFor: "zoom", children: "Zoom Control" })
1749
+ ] }),
1750
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1751
+ /* @__PURE__ */ jsx(
1752
+ Checkbox,
1753
+ {
1754
+ id: "maptype",
1755
+ checked: showMapTypeControl,
1756
+ onCheckedChange: (c) => setShowMapTypeControl(!!c)
1757
+ }
1758
+ ),
1759
+ /* @__PURE__ */ jsx(Label, { htmlFor: "maptype", children: "Map Type" })
1760
+ ] }),
1761
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1762
+ /* @__PURE__ */ jsx(
1763
+ Checkbox,
1764
+ {
1765
+ id: "streetview",
1766
+ checked: showStreetViewControl,
1767
+ onCheckedChange: (c) => setShowStreetViewControl(!!c)
1768
+ }
1769
+ ),
1770
+ /* @__PURE__ */ jsx(Label, { htmlFor: "streetview", children: "Street View" })
1771
+ ] }),
1772
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
1773
+ /* @__PURE__ */ jsx(
1774
+ Checkbox,
1775
+ {
1776
+ id: "fullscreen",
1777
+ checked: showFullscreenControl,
1778
+ onCheckedChange: (c) => setShowFullscreenControl(!!c)
1779
+ }
1780
+ ),
1781
+ /* @__PURE__ */ jsx(Label, { htmlFor: "fullscreen", children: "Fullscreen" })
1782
+ ] })
1783
+ ] }),
1784
+ /* @__PURE__ */ jsx(
1785
+ Map,
1786
+ {
1787
+ center: { lat: -23.5505, lng: -46.6333 },
1788
+ zoom: 13,
1789
+ height: "400px",
1790
+ apiKey,
1791
+ zoomControl: showZoomControl,
1792
+ mapTypeControl: showMapTypeControl,
1793
+ streetViewControl: showStreetViewControl,
1794
+ fullscreenControl: showFullscreenControl
1795
+ }
1796
+ )
1797
+ ] })
1798
+ ] }),
1799
+ /* @__PURE__ */ jsxs(Card, { children: [
1800
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1801
+ /* @__PURE__ */ jsx(CardTitle, { children: "Filtros Interativos" }),
1802
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplo avançado de mapa com controles customizados para filtragem de marcadores." })
1803
+ ] }),
1804
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(FilterableMapExample, { apiKey }) })
1805
+ ] })
1806
+ ] }) }),
1807
+ /* @__PURE__ */ jsx(TabsContent, { value: "drawing", className: "space-y-8", children: !isTransitioning && activeTab === "drawing" && /* @__PURE__ */ jsx(DrawingMapExample, { apiKey }) })
1808
+ ] }),
1809
+ /* @__PURE__ */ jsxs("div", { className: "grid md:grid-cols-3 gap-6 pt-8 border-t", children: [
1810
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1811
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Documentação" }),
1812
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
1813
+ "Verifique ",
1814
+ /* @__PURE__ */ jsx("code", { children: "MAP_SETUP.md" }),
1815
+ " para configuração inicial e requisitos de API."
1816
+ ] })
1817
+ ] }),
1818
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1819
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Performance" }),
1820
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Utiliza carregamento assíncrono e AdvancedMarkerElement para melhor desempenho." })
1821
+ ] }),
1822
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1823
+ /* @__PURE__ */ jsx("h4", { className: "font-semibold text-sm", children: "Design System" }),
1824
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
1825
+ "Componentes seguem estritamente as variáveis de tokens do ",
1826
+ /* @__PURE__ */ jsx("code", { children: "globals.css" }),
1827
+ "."
1828
+ ] })
1829
+ ] })
1830
+ ] })
1831
+ ] });
1832
+ }
1833
+ function TemplateContent({ user, onLogout, onSettings }) {
1834
+ const layout = useOptionalLayout();
1835
+ const [localSidebarExpanded, setLocalSidebarExpanded] = useState(false);
1836
+ const [localSidebarWidth, setLocalSidebarWidth] = useState(280);
1837
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
1838
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? localSidebarWidth;
1839
+ const setSidebarWidth = (layout == null ? void 0 : layout.setSidebarWidth) ?? setLocalSidebarWidth;
1840
+ (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
1841
+ useNavigate();
1842
+ const [progress, setProgress] = useState(45);
1843
+ const [sliderValue, setSliderValue] = useState([50]);
1844
+ const [switchEnabled, setSwitchEnabled] = useState(false);
1845
+ const [showSidebarUser, setShowSidebarUser] = useState(true);
1846
+ const [showSidebarSettings, setShowSidebarSettings] = useState(true);
1847
+ const [showSidebarLogout, setShowSidebarLogout] = useState(true);
1848
+ const [showHeaderActions, setShowHeaderActions] = useState(true);
1849
+ const [showHeaderBreadcrumbs, setShowHeaderBreadcrumbs] = useState(true);
1850
+ const handleFormSubmit = (e) => {
1851
+ e.preventDefault();
1852
+ toast.success("Form submitted successfully!");
1853
+ };
1854
+ return /* @__PURE__ */ jsxs(
1855
+ "div",
1856
+ {
1857
+ className: "flex-1 flex flex-col overflow-hidden transition-all duration-300",
1858
+ style: {
1859
+ paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : "80px"
1860
+ },
1861
+ children: [
1862
+ /* @__PURE__ */ jsx(
1863
+ Header,
1864
+ {
1865
+ showThemeToggle: true,
1866
+ showLanguageSelector: true,
1867
+ breadcrumbs: [
1868
+ { label: "Design System", href: "/home", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
1869
+ { label: "Página de Template" }
1870
+ ],
1871
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props })
1872
+ }
1873
+ ),
1874
+ /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden bg-muted", children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx("div", { className: "p-2 sm:p-4 md:p-6", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto space-y-8", children: [
1875
+ /* @__PURE__ */ jsx(
1876
+ PageHeader,
1877
+ {
1878
+ title: "Página de Template",
1879
+ subtitle: "Template completo com componentes do Design System"
1880
+ }
1881
+ ),
1882
+ /* @__PURE__ */ jsxs("section", { children: [
1883
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Header with Breadcrumbs" }),
1884
+ /* @__PURE__ */ jsxs(Card, { children: [
1885
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1886
+ /* @__PURE__ */ jsx(CardTitle, { children: "Main Header" }),
1887
+ /* @__PURE__ */ jsx(CardDescription, { children: "Example of Header with 4-level breadcrumbs" })
1888
+ ] }),
1889
+ /* @__PURE__ */ jsxs(CardContent, { className: "p-0 border-t bg-background overflow-hidden rounded-b-[var(--radius-lg)]", children: [
1890
+ /* @__PURE__ */ jsx(
1891
+ Header,
1892
+ {
1893
+ className: "border-b",
1894
+ breadcrumbs: [
1895
+ { label: "Dashboard", href: "#", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
1896
+ { label: "Settings", href: "#", icon: /* @__PURE__ */ jsx(Settings, { className: "w-4 h-4" }) },
1897
+ { label: "Users", href: "#", icon: /* @__PURE__ */ jsx(Users, { className: "w-4 h-4" }) },
1898
+ { label: "Access Profile" }
1899
+ ],
1900
+ showLanguageSelector: true,
1901
+ showThemeToggle: true
1902
+ }
1903
+ ),
1904
+ /* @__PURE__ */ jsxs("div", { className: "p-6 min-h-[200px]", children: [
1905
+ /* @__PURE__ */ jsx("h4", { className: "text-lg font-semibold mb-2", children: "Example Content" }),
1906
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
1907
+ "Neste exemplo, o componente ",
1908
+ /* @__PURE__ */ jsx("strong", { children: "Header" }),
1909
+ " principal da aplicação agora suporta receber um array de breadcrumbs para navegações complexas com mais de 3 níveis."
1910
+ ] })
1911
+ ] })
1912
+ ] })
1913
+ ] })
1914
+ ] }),
1915
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
1916
+ /* @__PURE__ */ jsxs("section", { children: [
1917
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Alertas" }),
1918
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
1919
+ /* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
1920
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Informação" }),
1921
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Este é um exemplo de alerta informativo usando os componentes do Design System." })
1922
+ ] }),
1923
+ /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
1924
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Erro" }),
1925
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Ocorreu um erro ao processar sua solicitação." })
1926
+ ] }),
1927
+ /* @__PURE__ */ jsxs(Alert, { variant: "success", children: [
1928
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Sucesso" }),
1929
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Operação realizada com sucesso!" })
1930
+ ] }),
1931
+ /* @__PURE__ */ jsxs(Alert, { variant: "warning", children: [
1932
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Aviso" }),
1933
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Atenção: Esta ação não pode ser desfeita." })
1934
+ ] })
1935
+ ] })
1936
+ ] }),
1937
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
1938
+ /* @__PURE__ */ jsxs("section", { children: [
1939
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Cards & Abas" }),
1940
+ /* @__PURE__ */ jsxs(Tabs, { defaultValue: "overview", className: "w-full", children: [
1941
+ /* @__PURE__ */ jsxs(TabsList, { className: "grid w-full grid-cols-4", children: [
1942
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "overview", children: "Visão Geral" }),
1943
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "forms", children: "Formulários" }),
1944
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "data", children: "Dados" }),
1945
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "settings", children: "Configurações" })
1946
+ ] }),
1947
+ /* @__PURE__ */ jsxs(TabsContent, { value: "overview", className: "space-y-4", children: [
1948
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-3", children: [
1949
+ /* @__PURE__ */ jsxs(Card, { children: [
1950
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1951
+ /* @__PURE__ */ jsx(CardTitle, { children: "Total de Usuários" }),
1952
+ /* @__PURE__ */ jsx(CardDescription, { children: "Últimos 30 dias" })
1953
+ ] }),
1954
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1955
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "1,234" }),
1956
+ /* @__PURE__ */ jsx(Badge, { variant: "default", className: "ml-2", children: "+12%" })
1957
+ ] }) })
1958
+ ] }),
1959
+ /* @__PURE__ */ jsxs(Card, { children: [
1960
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1961
+ /* @__PURE__ */ jsx(CardTitle, { children: "Receita Total" }),
1962
+ /* @__PURE__ */ jsx(CardDescription, { children: "Mês atual" })
1963
+ ] }),
1964
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1965
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "$ 45.2k" }),
1966
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "ml-2", children: "+8%" })
1967
+ ] }) })
1968
+ ] }),
1969
+ /* @__PURE__ */ jsxs(Card, { children: [
1970
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1971
+ /* @__PURE__ */ jsx(CardTitle, { children: "Taxa de Conversão" }),
1972
+ /* @__PURE__ */ jsx(CardDescription, { children: "Semana atual" })
1973
+ ] }),
1974
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "text-foreground", children: [
1975
+ /* @__PURE__ */ jsx("span", { className: "[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]", children: "3.2%" }),
1976
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "ml-2", children: "-2%" })
1977
+ ] }) })
1978
+ ] })
1979
+ ] }),
1980
+ /* @__PURE__ */ jsxs(Card, { children: [
1981
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
1982
+ /* @__PURE__ */ jsx(CardTitle, { children: "Progresso & Sliders" }),
1983
+ /* @__PURE__ */ jsx(CardDescription, { children: "Exemplo de componentes de progresso" })
1984
+ ] }),
1985
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
1986
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1987
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1988
+ /* @__PURE__ */ jsx(Label, { children: "Progresso do Projeto" }),
1989
+ /* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
1990
+ progress,
1991
+ "%"
1992
+ ] })
1993
+ ] }),
1994
+ /* @__PURE__ */ jsx(Progress, { value: progress, className: "w-full" }),
1995
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
1996
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setProgress(Math.max(0, progress - 10)), children: "-10%" }),
1997
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => setProgress(Math.min(100, progress + 10)), children: "+10%" })
1998
+ ] })
1999
+ ] }),
2000
+ /* @__PURE__ */ jsx(Separator, {}),
2001
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2002
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2003
+ /* @__PURE__ */ jsx(Label, { children: "Volume" }),
2004
+ /* @__PURE__ */ jsxs("span", { className: "[font-size:var(--text-small)] text-muted-foreground", children: [
2005
+ sliderValue[0],
2006
+ "%"
2007
+ ] })
2008
+ ] }),
2009
+ /* @__PURE__ */ jsx(
2010
+ Slider,
2011
+ {
2012
+ value: sliderValue,
2013
+ onValueChange: setSliderValue,
2014
+ min: 0,
2015
+ max: 100,
2016
+ step: 1,
2017
+ className: "w-full",
2018
+ "aria-label": "Volume"
2019
+ }
2020
+ )
2021
+ ] })
2022
+ ] })
2023
+ ] })
2024
+ ] }),
2025
+ /* @__PURE__ */ jsx(TabsContent, { value: "forms", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2026
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2027
+ /* @__PURE__ */ jsx(CardTitle, { children: "Formulário de Cadastro" }),
2028
+ /* @__PURE__ */ jsx(CardDescription, { children: "Preencha os campos abaixo para criar uma nova conta" })
2029
+ ] }),
2030
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: handleFormSubmit, className: "space-y-4", children: [
2031
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2032
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2033
+ /* @__PURE__ */ jsx(Label, { htmlFor: "firstName", children: "Nome" }),
2034
+ /* @__PURE__ */ jsx(Input, { id: "firstName", placeholder: "João" })
2035
+ ] }),
2036
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2037
+ /* @__PURE__ */ jsx(Label, { htmlFor: "lastName", children: "Sobrenome" }),
2038
+ /* @__PURE__ */ jsx(Input, { id: "lastName", placeholder: "Silva" })
2039
+ ] })
2040
+ ] }),
2041
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2042
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email", children: "E-mail" }),
2043
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2044
+ /* @__PURE__ */ jsx(Mail, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2045
+ /* @__PURE__ */ jsx(Input, { id: "email", type: "email", placeholder: "john@example.com", className: "pl-10" })
2046
+ ] })
2047
+ ] }),
2048
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2049
+ /* @__PURE__ */ jsx(Label, { htmlFor: "phone", children: "Telefone" }),
2050
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2051
+ /* @__PURE__ */ jsx(Phone, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2052
+ /* @__PURE__ */ jsx(Input, { id: "phone", type: "tel", placeholder: "(11) 99999-9999", className: "pl-10" })
2053
+ ] })
2054
+ ] }),
2055
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2056
+ /* @__PURE__ */ jsx(Label, { htmlFor: "role", children: "Função" }),
2057
+ /* @__PURE__ */ jsxs(Select, { children: [
2058
+ /* @__PURE__ */ jsx(SelectTrigger, { id: "role", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Selecione uma função" }) }),
2059
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2060
+ /* @__PURE__ */ jsx(SelectItem, { value: "developer", children: "Desenvolvedor" }),
2061
+ /* @__PURE__ */ jsx(SelectItem, { value: "designer", children: "Designer" }),
2062
+ /* @__PURE__ */ jsx(SelectItem, { value: "manager", children: "Gerente" }),
2063
+ /* @__PURE__ */ jsx(SelectItem, { value: "analyst", children: "Analista" })
2064
+ ] })
2065
+ ] })
2066
+ ] }),
2067
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2068
+ /* @__PURE__ */ jsx(Label, { htmlFor: "bio", children: "Biografia" }),
2069
+ /* @__PURE__ */ jsx(
2070
+ Textarea,
2071
+ {
2072
+ id: "bio",
2073
+ placeholder: "Conte-nos um pouco sobre você...",
2074
+ rows: 4
2075
+ }
2076
+ )
2077
+ ] }),
2078
+ /* @__PURE__ */ jsx(Separator, {}),
2079
+ /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
2080
+ /* @__PURE__ */ jsx("h4", { children: "Preferências" }),
2081
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2082
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2083
+ /* @__PURE__ */ jsx(Checkbox, { id: "newsletter" }),
2084
+ /* @__PURE__ */ jsx(Label, { htmlFor: "newsletter", className: "font-normal", children: "Receber newsletter por e-mail" })
2085
+ ] }),
2086
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2087
+ /* @__PURE__ */ jsx(Checkbox, { id: "notifications" }),
2088
+ /* @__PURE__ */ jsx(Label, { htmlFor: "notifications", className: "font-normal", children: "Ativar notificações push" })
2089
+ ] }),
2090
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2091
+ /* @__PURE__ */ jsx(Checkbox, { id: "updates" }),
2092
+ /* @__PURE__ */ jsx(Label, { htmlFor: "updates", className: "font-normal", children: "Receber atualizações sobre novos recursos" })
2093
+ ] })
2094
+ ] }),
2095
+ /* @__PURE__ */ jsx(Separator, {}),
2096
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2097
+ /* @__PURE__ */ jsx(Label, { children: "Tipo de Conta" }),
2098
+ /* @__PURE__ */ jsxs(RadioGroup, { defaultValue: "personal", "aria-label": "Tipo de Conta", children: [
2099
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2100
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "personal", id: "personal" }),
2101
+ /* @__PURE__ */ jsx(Label, { htmlFor: "personal", className: "font-normal", children: "Pessoal" })
2102
+ ] }),
2103
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2104
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "business", id: "business" }),
2105
+ /* @__PURE__ */ jsx(Label, { htmlFor: "business", className: "font-normal", children: "Empresarial" })
2106
+ ] }),
2107
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2108
+ /* @__PURE__ */ jsx(RadioGroupItem, { value: "enterprise", id: "enterprise" }),
2109
+ /* @__PURE__ */ jsx(Label, { htmlFor: "enterprise", className: "font-normal", children: "Corporativo" })
2110
+ ] })
2111
+ ] })
2112
+ ] })
2113
+ ] })
2114
+ ] }) }),
2115
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
2116
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Cancelar" }),
2117
+ /* @__PURE__ */ jsx(Button, { onClick: handleFormSubmit, children: "Criar Conta" })
2118
+ ] })
2119
+ ] }) }),
2120
+ /* @__PURE__ */ jsx(TabsContent, { value: "data", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2121
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2122
+ /* @__PURE__ */ jsx(CardTitle, { children: "Lista de Usuários" }),
2123
+ /* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar usuários do sistema" })
2124
+ ] }),
2125
+ /* @__PURE__ */ jsxs(CardContent, { children: [
2126
+ /* @__PURE__ */ jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2127
+ /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
2128
+ /* @__PURE__ */ jsx(
2129
+ Input,
2130
+ {
2131
+ placeholder: "Buscar usuários...",
2132
+ "aria-label": "Buscar usuários",
2133
+ className: "pl-10"
2134
+ }
2135
+ )
2136
+ ] }) }),
2137
+ /* @__PURE__ */ jsx("div", { className: "rounded-[var(--radius-lg)] border border-border overflow-hidden", children: /* @__PURE__ */ jsxs(Table, { children: [
2138
+ /* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
2139
+ /* @__PURE__ */ jsx(TableHead, { children: "Name" }),
2140
+ /* @__PURE__ */ jsx(TableHead, { children: "Email" }),
2141
+ /* @__PURE__ */ jsx(TableHead, { children: "Role" }),
2142
+ /* @__PURE__ */ jsx(TableHead, { children: "Status" }),
2143
+ /* @__PURE__ */ jsx(TableHead, { className: "text-right", children: "Actions" })
2144
+ ] }) }),
2145
+ /* @__PURE__ */ jsxs(TableBody, { children: [
2146
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2147
+ /* @__PURE__ */ jsx(TableCell, { children: "Ana Silva" }),
2148
+ /* @__PURE__ */ jsx(TableCell, { children: "ana.silva@example.com" }),
2149
+ /* @__PURE__ */ jsx(TableCell, { children: "Developer" }),
2150
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Active" }) }),
2151
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2152
+ ] }),
2153
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2154
+ /* @__PURE__ */ jsx(TableCell, { children: "Bruno Costa" }),
2155
+ /* @__PURE__ */ jsx(TableCell, { children: "bruno.costa@example.com" }),
2156
+ /* @__PURE__ */ jsx(TableCell, { children: "Designer" }),
2157
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Active" }) }),
2158
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2159
+ ] }),
2160
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2161
+ /* @__PURE__ */ jsx(TableCell, { children: "Carla Oliveira" }),
2162
+ /* @__PURE__ */ jsx(TableCell, { children: "carla.oliveira@example.com" }),
2163
+ /* @__PURE__ */ jsx(TableCell, { children: "Manager" }),
2164
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Away" }) }),
2165
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2166
+ ] }),
2167
+ /* @__PURE__ */ jsxs(TableRow, { children: [
2168
+ /* @__PURE__ */ jsx(TableCell, { children: "Diego Santos" }),
2169
+ /* @__PURE__ */ jsx(TableCell, { children: "diego.santos@example.com" }),
2170
+ /* @__PURE__ */ jsx(TableCell, { children: "Analyst" }),
2171
+ /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Inactive" }) }),
2172
+ /* @__PURE__ */ jsx(TableCell, { className: "text-right", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", children: "Edit" }) })
2173
+ ] })
2174
+ ] })
2175
+ ] }) })
2176
+ ] }),
2177
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between items-center", children: [
2178
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Showing 4 of 127 users" }),
2179
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
2180
+ /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Previous" }),
2181
+ /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: "Next" })
2182
+ ] })
2183
+ ] })
2184
+ ] }) }),
2185
+ /* @__PURE__ */ jsx(TabsContent, { value: "settings", className: "space-y-4", children: /* @__PURE__ */ jsxs(Card, { children: [
2186
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2187
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Sistema" }),
2188
+ /* @__PURE__ */ jsx(CardDescription, { children: "Gerenciar configurações gerais" })
2189
+ ] }),
2190
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2191
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2192
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2193
+ /* @__PURE__ */ jsx(Label, { htmlFor: "dark-mode", children: "Dark Mode" }),
2194
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Enable dark theme in the interface" })
2195
+ ] }),
2196
+ /* @__PURE__ */ jsx(Switch, { id: "dark-mode", checked: switchEnabled, onCheckedChange: setSwitchEnabled })
2197
+ ] }),
2198
+ /* @__PURE__ */ jsx(Separator, {}),
2199
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2200
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2201
+ /* @__PURE__ */ jsx(Label, { htmlFor: "email-notifications", children: "Email Notifications" }),
2202
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive important updates by email" })
2203
+ ] }),
2204
+ /* @__PURE__ */ jsx(Switch, { id: "email-notifications", defaultChecked: true })
2205
+ ] }),
2206
+ /* @__PURE__ */ jsx(Separator, {}),
2207
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
2208
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
2209
+ /* @__PURE__ */ jsx(Label, { htmlFor: "push-notifications", children: "Push Notifications" }),
2210
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Receive instant notifications in the browser" })
2211
+ ] }),
2212
+ /* @__PURE__ */ jsx(Switch, { id: "push-notifications" })
2213
+ ] }),
2214
+ /* @__PURE__ */ jsx(Separator, {}),
2215
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2216
+ /* @__PURE__ */ jsx(Label, { children: "Language" }),
2217
+ /* @__PURE__ */ jsxs(Select, { defaultValue: "pt-br", children: [
2218
+ /* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Idioma do sistema", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
2219
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2220
+ /* @__PURE__ */ jsx(SelectItem, { value: "pt-br", children: "Portuguese (Brazil)" }),
2221
+ /* @__PURE__ */ jsx(SelectItem, { value: "en", children: "English" }),
2222
+ /* @__PURE__ */ jsx(SelectItem, { value: "es", children: "Spanish" })
2223
+ ] })
2224
+ ] })
2225
+ ] }),
2226
+ /* @__PURE__ */ jsx(Separator, {}),
2227
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2228
+ /* @__PURE__ */ jsx(Label, { children: "Time Zone" }),
2229
+ /* @__PURE__ */ jsxs(Select, { defaultValue: "america-sao-paulo", children: [
2230
+ /* @__PURE__ */ jsx(SelectTrigger, { "aria-label": "Fuso horário", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
2231
+ /* @__PURE__ */ jsxs(SelectContent, { children: [
2232
+ /* @__PURE__ */ jsx(SelectItem, { value: "america-sao-paulo", children: "America/Sao Paulo (GMT-3)" }),
2233
+ /* @__PURE__ */ jsx(SelectItem, { value: "america-new-york", children: "America/New York (GMT-5)" }),
2234
+ /* @__PURE__ */ jsx(SelectItem, { value: "europe-london", children: "Europe/London (GMT+0)" })
2235
+ ] })
2236
+ ] })
2237
+ ] })
2238
+ ] }),
2239
+ /* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between", children: [
2240
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Restaurar Padrões" }),
2241
+ /* @__PURE__ */ jsx(Button, { children: "Salvar Alterações" })
2242
+ ] })
2243
+ ] }) })
2244
+ ] })
2245
+ ] }),
2246
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2247
+ /* @__PURE__ */ jsxs("section", { children: [
2248
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Botões" }),
2249
+ /* @__PURE__ */ jsxs(Card, { children: [
2250
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2251
+ /* @__PURE__ */ jsx(CardTitle, { children: "Variações de Botão" }),
2252
+ /* @__PURE__ */ jsx(CardDescription, { children: "Diferentes estilos e tamanhos de botões" })
2253
+ ] }),
2254
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2255
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2256
+ /* @__PURE__ */ jsx(Label, { children: "Variants" }),
2257
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2258
+ /* @__PURE__ */ jsx(Button, { variant: "default", children: "Default" }),
2259
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", children: "Secondary" }),
2260
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Outline" }),
2261
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", children: "Ghost" }),
2262
+ /* @__PURE__ */ jsx(Button, { variant: "link", children: "Link" }),
2263
+ /* @__PURE__ */ jsx(Button, { variant: "destructive", children: "Destructive" })
2264
+ ] })
2265
+ ] }),
2266
+ /* @__PURE__ */ jsx(Separator, {}),
2267
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2268
+ /* @__PURE__ */ jsx(Label, { children: "Sizes" }),
2269
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
2270
+ /* @__PURE__ */ jsx(Button, { size: "sm", children: "Small" }),
2271
+ /* @__PURE__ */ jsx(Button, { size: "default", children: "Default" }),
2272
+ /* @__PURE__ */ jsx(Button, { size: "lg", children: "Large" }),
2273
+ /* @__PURE__ */ jsx(Button, { size: "icon", "aria-label": "Configurações", children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }) })
2274
+ ] })
2275
+ ] }),
2276
+ /* @__PURE__ */ jsx(Separator, {}),
2277
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2278
+ /* @__PURE__ */ jsx(Label, { children: "With Icons" }),
2279
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2280
+ /* @__PURE__ */ jsxs(Button, { children: [
2281
+ /* @__PURE__ */ jsx(User, { className: "mr-2 h-4 w-4" }),
2282
+ "Profile"
2283
+ ] }),
2284
+ /* @__PURE__ */ jsxs(Button, { variant: "secondary", children: [
2285
+ /* @__PURE__ */ jsx(Mail, { className: "mr-2 h-4 w-4" }),
2286
+ "Messages"
2287
+ ] }),
2288
+ /* @__PURE__ */ jsxs(Button, { variant: "outline", children: [
2289
+ /* @__PURE__ */ jsx(Calendar, { className: "mr-2 h-4 w-4" }),
2290
+ "Schedule"
2291
+ ] })
2292
+ ] })
2293
+ ] }),
2294
+ /* @__PURE__ */ jsx(Separator, {}),
2295
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2296
+ /* @__PURE__ */ jsx(Label, { children: "States" }),
2297
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2298
+ /* @__PURE__ */ jsx(Button, { disabled: true, children: "Disabled" }),
2299
+ /* @__PURE__ */ jsx(Button, { variant: "outline", disabled: true, children: "Outline Disabled" })
2300
+ ] })
2301
+ ] })
2302
+ ] })
2303
+ ] })
2304
+ ] }),
2305
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2306
+ /* @__PURE__ */ jsxs("section", { children: [
2307
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Badges" }),
2308
+ /* @__PURE__ */ jsxs(Card, { children: [
2309
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2310
+ /* @__PURE__ */ jsx(CardTitle, { children: "Variações de Badge" }),
2311
+ /* @__PURE__ */ jsx(CardDescription, { children: "Estilos diferentes de badge para status e tags" })
2312
+ ] }),
2313
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
2314
+ /* @__PURE__ */ jsx(Badge, { variant: "default", children: "Padrão" }),
2315
+ /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "Secundário" }),
2316
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Contorno" }),
2317
+ /* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "Destrutivo" }),
2318
+ /* @__PURE__ */ jsx(Badge, { className: "bg-success text-success-foreground", children: "Sucesso" }),
2319
+ /* @__PURE__ */ jsx(Badge, { className: "bg-warning text-warning-foreground", children: "Aviso" }),
2320
+ /* @__PURE__ */ jsx(Badge, { className: "bg-info text-info-foreground", children: "Info" })
2321
+ ] }) })
2322
+ ] })
2323
+ ] }),
2324
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2325
+ /* @__PURE__ */ jsxs("section", { children: [
2326
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Diálogos" }),
2327
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
2328
+ /* @__PURE__ */ jsxs(Card, { children: [
2329
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2330
+ /* @__PURE__ */ jsx(CardTitle, { children: "Diálogo" }),
2331
+ /* @__PURE__ */ jsx(CardDescription, { children: "Um modal interativo básico" })
2332
+ ] }),
2333
+ /* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(Dialog, { children: [
2334
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Editar Perfil" }) }),
2335
+ /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[425px]", children: [
2336
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
2337
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Editar Perfil" }),
2338
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Faça alterações no seu perfil aqui. Clique em salvar quando terminar." })
2339
+ ] }),
2340
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 py-4", children: [
2341
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2342
+ /* @__PURE__ */ jsx(Label, { htmlFor: "name", className: "text-right", children: "Nome" }),
2343
+ /* @__PURE__ */ jsx(Input, { id: "name", defaultValue: "John Doe", className: "col-span-3" })
2344
+ ] }),
2345
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 items-center gap-4", children: [
2346
+ /* @__PURE__ */ jsx(Label, { htmlFor: "username", className: "text-right", children: "Usuário" }),
2347
+ /* @__PURE__ */ jsx(Input, { id: "username", defaultValue: "@johndoe", className: "col-span-3" })
2348
+ ] })
2349
+ ] }),
2350
+ /* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button, { type: "submit", children: "Atualizar" }) })
2351
+ ] })
2352
+ ] }) })
2353
+ ] }),
2354
+ /* @__PURE__ */ jsxs(Card, { children: [
2355
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2356
+ /* @__PURE__ */ jsx(CardTitle, { children: "Alerta de Diálogo" }),
2357
+ /* @__PURE__ */ jsx(CardDescription, { children: "Um alerta para decisões importantes" })
2358
+ ] }),
2359
+ /* @__PURE__ */ jsx(CardContent, { className: "flex justify-center py-6", children: /* @__PURE__ */ jsxs(AlertDialog, { children: [
2360
+ /* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "destructive", children: "Excluir Conta" }) }),
2361
+ /* @__PURE__ */ jsxs(AlertDialogContent, { className: "sm:max-w-[425px]", children: [
2362
+ /* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
2363
+ /* @__PURE__ */ jsx(AlertDialogTitle, { children: "Você tem certeza absoluta?" }),
2364
+ /* @__PURE__ */ jsx(AlertDialogDescription, { children: "Esta ação não pode ser desfeita. Isso excluirá permanentemente sua conta e removerá seus dados de nossos servidores." })
2365
+ ] }),
2366
+ /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
2367
+ /* @__PURE__ */ jsx(AlertDialogCancel, { children: "Cancelar" }),
2368
+ /* @__PURE__ */ jsx(AlertDialogAction, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: "Continuar" })
2369
+ ] })
2370
+ ] })
2371
+ ] }) })
2372
+ ] })
2373
+ ] })
2374
+ ] }),
2375
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2376
+ /* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsx(MapShowcase, {}) }),
2377
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2378
+ /* @__PURE__ */ jsxs("section", { children: [
2379
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações de Cabeçalho" }),
2380
+ /* @__PURE__ */ jsxs(Card, { children: [
2381
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2382
+ /* @__PURE__ */ jsx(CardTitle, { children: "Configurações do Cabeçalho Principal" }),
2383
+ /* @__PURE__ */ jsx(CardDescription, { children: "O Header é focado em navegação (breadcrumbs) e ações contextuais rápidas." })
2384
+ ] }),
2385
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
2386
+ /* @__PURE__ */ jsxs("div", { className: "p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2387
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Elementos Visíveis" }),
2388
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6", children: [
2389
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2390
+ /* @__PURE__ */ jsx(Switch, { id: "header-actions", checked: showHeaderActions, onCheckedChange: setShowHeaderActions }),
2391
+ /* @__PURE__ */ jsx(Label, { htmlFor: "header-actions", className: "cursor-pointer", children: "Botões de Ação" })
2392
+ ] }),
2393
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2394
+ /* @__PURE__ */ jsx(Switch, { id: "header-bread", checked: showHeaderBreadcrumbs, onCheckedChange: setShowHeaderBreadcrumbs }),
2395
+ /* @__PURE__ */ jsx(Label, { htmlFor: "header-bread", className: "cursor-pointer", children: "Breadcrumbs" })
2396
+ ] })
2397
+ ] })
2398
+ ] }),
2399
+ /* @__PURE__ */ jsxs("div", { className: "relative border rounded-[var(--radius-lg)] bg-muted/10 overflow-hidden shadow-inner", children: [
2400
+ /* @__PURE__ */ jsx("div", { className: "p-4 bg-background/50 border-b text-xs font-mono text-muted-foreground", children: "Visualização" }),
2401
+ /* @__PURE__ */ jsx(
2402
+ Header,
2403
+ {
2404
+ title: !showHeaderBreadcrumbs ? "Página Atual" : void 0,
2405
+ breadcrumbs: showHeaderBreadcrumbs ? [
2406
+ { label: "Xertica UI", href: "#", icon: /* @__PURE__ */ jsx(Home, { className: "w-4 h-4" }) },
2407
+ { label: "Configurações", href: "#" },
2408
+ { label: "Perfil" }
2409
+ ] : void 0,
2410
+ actions: showHeaderActions ? [
2411
+ { id: "notify", icon: /* @__PURE__ */ jsx(Bell, { className: "w-5 h-5" }), onClick: () => toast("Notificações abertas") },
2412
+ { id: "mail", label: "Mensagens", icon: /* @__PURE__ */ jsx(Mail, { className: "w-5 h-5" }), onClick: () => toast("Mensagens abertas") }
2413
+ ] : void 0
2414
+ }
2415
+ ),
2416
+ /* @__PURE__ */ jsx("div", { className: "h-32 flex items-center justify-center text-muted-foreground text-sm italic", children: "Área de Conteúdo da Página" })
2417
+ ] })
2418
+ ] })
2419
+ ] })
2420
+ ] }),
2421
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2422
+ /* @__PURE__ */ jsxs("section", { children: [
2423
+ /* @__PURE__ */ jsx("h3", { className: "mb-4", children: "Variações da Sidebar" }),
2424
+ /* @__PURE__ */ jsxs(Card, { children: [
2425
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2426
+ /* @__PURE__ */ jsx(CardTitle, { children: "Sidebar Modo Assistente vs Padrão" }),
2427
+ /* @__PURE__ */ jsx(CardDescription, { children: "A Sidebar suporta flexibilidade através da propriedade variant." })
2428
+ ] }),
2429
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Tabs, { defaultValue: "assistant", className: "w-full", children: [
2430
+ /* @__PURE__ */ jsxs(TabsList, { className: "mb-4", children: [
2431
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "assistant", children: "Modo Assistente" }),
2432
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "default", children: "Modo Padrão" })
2433
+ ] }),
2434
+ /* @__PURE__ */ jsxs("div", { className: "mb-6 p-4 border rounded-[var(--radius-lg)] bg-muted/30", children: [
2435
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold mb-4", children: "Configurações do Rodapé" }),
2436
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-6 mt-2", children: [
2437
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2438
+ /* @__PURE__ */ jsx(Switch, { id: "show-user", checked: showSidebarUser, onCheckedChange: setShowSidebarUser }),
2439
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-user", className: "cursor-pointer", children: "Perfil do Usuário" })
2440
+ ] }),
2441
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2442
+ /* @__PURE__ */ jsx(Switch, { id: "show-settings", checked: showSidebarSettings, onCheckedChange: setShowSidebarSettings }),
2443
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-settings", className: "cursor-pointer", children: "Configurações" })
2444
+ ] }),
2445
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
2446
+ /* @__PURE__ */ jsx(Switch, { id: "show-logout", checked: showSidebarLogout, onCheckedChange: setShowSidebarLogout }),
2447
+ /* @__PURE__ */ jsx(Label, { htmlFor: "show-logout", className: "cursor-pointer", children: "Botão de Sair" })
2448
+ ] })
2449
+ ] }),
2450
+ /* @__PURE__ */ jsxs("div", { className: "mt-6 pt-6 border-t", children: [
2451
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-4", children: [
2452
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold", children: "Largura da Sidebar (Desktop)" }),
2453
+ /* @__PURE__ */ jsxs("span", { className: "text-xs font-mono bg-muted px-2 py-1 rounded", children: [
2454
+ sidebarWidth,
2455
+ "px"
2456
+ ] })
2457
+ ] }),
2458
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
2459
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-12 text-right", children: "240px" }),
2460
+ /* @__PURE__ */ jsx(
2461
+ Slider,
2462
+ {
2463
+ value: [sidebarWidth],
2464
+ onValueChange: (val) => setSidebarWidth(val[0]),
2465
+ min: 240,
2466
+ max: 450,
2467
+ step: 10,
2468
+ className: "flex-1",
2469
+ "aria-label": "Largura da Sidebar"
2470
+ }
2471
+ ),
2472
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground w-12", children: "450px" })
2473
+ ] })
2474
+ ] })
2475
+ ] }),
2476
+ /* @__PURE__ */ jsx(TabsContent, { value: "assistant", children: /* @__PURE__ */ jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2477
+ /* @__PURE__ */ jsx(
2478
+ Sidebar,
2479
+ {
2480
+ expanded: true,
2481
+ width: sidebarWidth,
2482
+ onToggle: () => {
2483
+ },
2484
+ user: { email: "admin@xertica.com" },
2485
+ onLogout: () => toast("Saiu"),
2486
+ location: { pathname: "/assistant/current" },
2487
+ navigate: () => {
2488
+ },
2489
+ variant: "assistant",
2490
+ search: {
2491
+ show: true,
2492
+ placeholder: "Buscar tópicos...",
2493
+ filter: {
2494
+ show: true,
2495
+ content: /* @__PURE__ */ jsxs("div", { className: "p-2 space-y-2", children: [
2496
+ /* @__PURE__ */ jsx("div", { className: "text-xs font-semibold uppercase text-muted-foreground px-2", children: "Filtrar por Status" }),
2497
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 p-1", children: [
2498
+ /* @__PURE__ */ jsx(Badge, { className: "bg-sidebar-foreground/20 text-sidebar-foreground border-none cursor-pointer hover:bg-sidebar-foreground/30", children: "Ativo" }),
2499
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Arquivado" }),
2500
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-sidebar-foreground/70 border-sidebar-foreground/20 cursor-pointer hover:bg-sidebar-foreground/10", children: "Pendente" })
2501
+ ] })
2502
+ ] })
2503
+ }
2504
+ },
2505
+ fixedArea: {
2506
+ show: true,
2507
+ content: /* @__PURE__ */ jsxs(Button, { className: "w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]", children: [
2508
+ /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 mr-2" }),
2509
+ "Nova Conversa"
2510
+ ] })
2511
+ },
2512
+ navigationGroups: [
2513
+ {
2514
+ id: "recent",
2515
+ label: "Recentes",
2516
+ icon: Clock,
2517
+ items: [
2518
+ {
2519
+ path: "/assistant/refatoracao",
2520
+ label: "Refatoração da Sidebar",
2521
+ description: "Ativo agora",
2522
+ actions: [
2523
+ { label: "Renomear", icon: FileEdit, onClick: () => toast("Abrir renomear...") },
2524
+ {
2525
+ label: "Mover",
2526
+ icon: ArrowRightLeft,
2527
+ children: [
2528
+ { label: "Projetos Ativos", onClick: () => toast("Movido para Projetos Ativos") },
2529
+ { label: "Monitoramento", onClick: () => toast("Movido para Monitoramento") },
2530
+ { label: "Arquivar", onClick: () => toast("Movido para Arquivo") }
2531
+ ]
2532
+ },
2533
+ { label: "Limpar", icon: Trash2, onClick: () => toast("Histórico Limpo!"), variant: "destructive" }
2534
+ ]
2535
+ }
2536
+ ]
2537
+ },
2538
+ {
2539
+ id: "projects",
2540
+ label: "Monitoramento de Projetos",
2541
+ icon: Map$1,
2542
+ actions: [
2543
+ { label: "Nova Categoria", icon: Plus, onClick: () => toast("Criar nova categoria...") },
2544
+ { label: "Arquivar Grupo", icon: Archive, onClick: () => toast("Arquivando grupo...") }
2545
+ ],
2546
+ items: [
2547
+ {
2548
+ path: "/assistant/br163",
2549
+ label: "Restauração BR-163",
2550
+ icon: () => /* @__PURE__ */ jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-500" }),
2551
+ description: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 min-w-[160px]", children: [
2552
+ /* @__PURE__ */ jsx(Progress, { value: 67, className: "h-1.5 bg-sidebar-foreground/10" }),
2553
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center text-[10px] text-sidebar-foreground/60", children: [
2554
+ /* @__PURE__ */ jsx("span", { children: "Cuiabá, MT" }),
2555
+ /* @__PURE__ */ jsx("span", { children: "67%" })
2556
+ ] })
2557
+ ] })
2558
+ }
2559
+ ]
2560
+ }
2561
+ ],
2562
+ footer: {
2563
+ showUser: showSidebarUser,
2564
+ showSettings: showSidebarSettings,
2565
+ showLogout: showSidebarLogout
2566
+ }
2567
+ }
2568
+ ),
2569
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Conteúdo do Modo Assistente" }) })
2570
+ ] }) }),
2571
+ /* @__PURE__ */ jsx(TabsContent, { value: "default", children: /* @__PURE__ */ jsxs("div", { className: "relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden", style: { transform: "translateZ(0)" }, children: [
2572
+ /* @__PURE__ */ jsx(
2573
+ Sidebar,
2574
+ {
2575
+ expanded: true,
2576
+ width: sidebarWidth,
2577
+ onToggle: () => {
2578
+ },
2579
+ user: {
2580
+ name: "Ariel Santos",
2581
+ email: "admin@xertica.com",
2582
+ avatar: "https://github.com/shadcn.png"
2583
+ },
2584
+ onLogout: () => toast("Saiu"),
2585
+ onSettingsClick: () => toast("Configurações clicadas"),
2586
+ location: { pathname: "/home" },
2587
+ navigate: () => {
2588
+ },
2589
+ variant: "default",
2590
+ routes: [
2591
+ { path: "/home", label: "Início", icon: Home },
2592
+ { path: "/dashboard", label: "Dashboard", icon: Users },
2593
+ { path: "/settings", label: "Configurações", icon: Settings }
2594
+ ],
2595
+ footer: {
2596
+ showUser: showSidebarUser,
2597
+ showSettings: showSidebarSettings,
2598
+ showLogout: showSidebarLogout
2599
+ }
2600
+ }
2601
+ ),
2602
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300", style: { left: `${sidebarWidth}px` }, children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center", children: "Navegação Tradicional do Sistema" }) })
2603
+ ] }) })
2604
+ ] }) })
2605
+ ] })
2606
+ ] }),
2607
+ /* @__PURE__ */ jsx(Separator, { className: "my-8" }),
2608
+ /* @__PURE__ */ jsxs(Card, { className: "mt-8", children: [
2609
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
2610
+ /* @__PURE__ */ jsx(CardTitle, { children: "Template Pronto para CLI" }),
2611
+ /* @__PURE__ */ jsx(CardDescription, { children: "Como usar este template" })
2612
+ ] }),
2613
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
2614
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
2615
+ "Este template está pronto para ser usado como base para novos projetos. Todos os componentes usam as variáveis CSS definidas em ",
2616
+ /* @__PURE__ */ jsx("code", { className: "bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]", children: "/styles/xertica/tokens.css" }),
2617
+ "and follow the Xertica UI CLI-first architecture."
2618
+ ] }),
2619
+ /* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
2620
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Dica" }),
2621
+ /* @__PURE__ */ jsx(AlertDescription, { children: "Copie este arquivo como ponto de partida para suas páginas. Todos os componentes são reutilizáveis e customizáveis através de variáveis CSS." })
2622
+ ] })
2623
+ ] })
2624
+ ] })
2625
+ ] }) }) }) })
2626
+ ]
2627
+ }
2628
+ );
2629
+ }
2630
+ function TemplatePage({ user, onLogout }) {
2631
+ const layout = useOptionalLayout();
2632
+ const [localSidebarExpanded, setLocalSidebarExpanded] = React__default.useState(false);
2633
+ const [localAssistantExpanded, setLocalAssistantExpanded] = React__default.useState(false);
2634
+ const sidebarExpanded = (layout == null ? void 0 : layout.sidebarExpanded) ?? localSidebarExpanded;
2635
+ const sidebarWidth = (layout == null ? void 0 : layout.sidebarWidth) ?? 280;
2636
+ const assistenteExpanded = (layout == null ? void 0 : layout.assistenteExpanded) ?? localAssistantExpanded;
2637
+ const toggleSidebar = (layout == null ? void 0 : layout.toggleSidebar) ?? (() => setLocalSidebarExpanded((value) => !value));
2638
+ const toggleAssistente = (layout == null ? void 0 : layout.toggleAssistente) ?? (() => setLocalAssistantExpanded((value) => !value));
2639
+ const location = useLocation();
2640
+ const navigate = useNavigate();
2641
+ return /* @__PURE__ */ jsxs("div", { className: "h-screen flex bg-muted overflow-hidden relative", children: [
2642
+ /* @__PURE__ */ jsx(
2643
+ Sidebar,
2644
+ {
2645
+ expanded: sidebarExpanded,
2646
+ width: sidebarWidth,
2647
+ onToggle: toggleSidebar,
2648
+ user: {
2649
+ ...user,
2650
+ name: "Ariel Santos",
2651
+ avatar: "https://github.com/shadcn.png"
2652
+ },
2653
+ onLogout,
2654
+ location,
2655
+ renderLink: (href, props) => /* @__PURE__ */ jsx(Link, { to: href, ...props }),
2656
+ routes
2657
+ }
2658
+ ),
2659
+ /* @__PURE__ */ jsx(
2660
+ TemplateContent,
2661
+ {
2662
+ user,
2663
+ onLogout,
2664
+ onSettings: () => navigate("/settings")
2665
+ }
2666
+ ),
2667
+ /* @__PURE__ */ jsx(
2668
+ XerticaAssistant,
2669
+ {
2670
+ isExpanded: assistenteExpanded,
2671
+ onToggle: toggleAssistente,
2672
+ onEvaluation: () => {
2673
+ }
2674
+ }
2675
+ )
2676
+ ] });
2677
+ }
2678
+ function VerifyEmailPage() {
2679
+ var _a;
2680
+ const navigate = useNavigate();
2681
+ const location = useLocation();
2682
+ const email = ((_a = location.state) == null ? void 0 : _a.email) || "your@email.com";
2683
+ const [isResending, setIsResending] = useState(false);
2684
+ const [resendSuccess, setResendSuccess] = useState(false);
2685
+ const handleResend = async () => {
2686
+ setIsResending(true);
2687
+ setResendSuccess(false);
2688
+ await new Promise((resolve) => setTimeout(resolve, 1500));
2689
+ setIsResending(false);
2690
+ setResendSuccess(true);
2691
+ setTimeout(() => setResendSuccess(false), 3e3);
2692
+ };
2693
+ const handleSocialLogin = (_provider) => {
2694
+ };
2695
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-screen flex", children: [
2696
+ /* @__PURE__ */ jsxs("div", { className: "hidden lg:flex lg:flex-1 relative overflow-hidden", children: [
2697
+ /* @__PURE__ */ jsx(
2698
+ ImageWithFallback,
2699
+ {
2700
+ src: "https://images.unsplash.com/photo-1563986768609-322da13575f3?w=1200&h=800&fit=crop&auto=format",
2701
+ alt: "E-mail e comunicação",
2702
+ className: "absolute inset-0 w-full h-full object-cover"
2703
+ }
2704
+ ),
2705
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[image:var(--gradient-diagonal)] opacity-80" })
2706
+ ] }),
2707
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 lg:flex-none lg:w-1/2 relative bg-muted", children: [
2708
+ /* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-20", children: /* @__PURE__ */ jsx(LanguageSelector, { variant: "minimal", showIcon: false }) }),
2709
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 lg:hidden bg-[image:var(--gradient-diagonal)] opacity-10 dark:opacity-5" }),
2710
+ /* @__PURE__ */ jsxs("div", { className: "w-full max-w-sm space-y-6 relative z-10", children: [
2711
+ /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
2712
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(
2713
+ XerticaLogo,
2714
+ {
2715
+ className: "h-12 w-auto text-primary dark:text-foreground",
2716
+ variant: "theme"
2717
+ }
2718
+ ) }),
2719
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx("div", { className: "p-4 bg-primary/10 rounded-[var(--radius)]", children: /* @__PURE__ */ jsx(Mail, { className: "w-12 h-12 text-primary" }) }) }),
2720
+ /* @__PURE__ */ jsx("h2", { className: "text-sm text-muted-foreground", children: "Verifique seu e-mail" }),
2721
+ /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: "Enviamos as instruções para redefinir sua senha para:" }),
2722
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-primary", children: email })
2723
+ ] }),
2724
+ /* @__PURE__ */ jsxs("div", { className: "bg-accent rounded-[var(--radius)] p-4 space-y-3", children: [
2725
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Siga as instruções no e-mail para redefinir sua senha. O link expira em 24 horas." }),
2726
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2 text-muted-foreground", children: [
2727
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "w-4 h-4 mt-0.5 flex-shrink-0 text-[var(--chart-2)]" }),
2728
+ /* @__PURE__ */ jsx("span", { className: "text-sm", children: "Verifique sua pasta de spam se não encontrar o e-mail" })
2729
+ ] })
2730
+ ] }),
2731
+ resendSuccess && /* @__PURE__ */ jsxs("div", { className: "bg-[var(--chart-2)]/10 border border-[var(--chart-2)]/20 rounded-[var(--radius)] p-3 flex items-center gap-2", children: [
2732
+ /* @__PURE__ */ jsx(CheckCircle2, { className: "w-5 h-5 text-[var(--chart-2)] flex-shrink-0" }),
2733
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-[var(--chart-2)]", children: "E-mail reenviado com sucesso!" })
2734
+ ] }),
2735
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2736
+ /* @__PURE__ */ jsx("p", { className: "text-center text-muted-foreground", children: "Não recebeu o e-mail?" }),
2737
+ /* @__PURE__ */ jsx(
2738
+ Button,
2739
+ {
2740
+ variant: "outline",
2741
+ className: "w-full",
2742
+ onClick: handleResend,
2743
+ disabled: isResending,
2744
+ children: isResending ? "Reenviando..." : "Reenviar e-mail"
2745
+ }
2746
+ ),
2747
+ /* @__PURE__ */ jsxs(
2748
+ Button,
2749
+ {
2750
+ type: "button",
2751
+ onClick: () => navigate("/login"),
2752
+ variant: "outline",
2753
+ className: "w-full text-muted-foreground hover:text-foreground",
2754
+ children: [
2755
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "w-4 h-4 mr-2" }),
2756
+ "Voltar para o login"
2757
+ ]
2758
+ }
2759
+ )
2760
+ ] }),
2761
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2762
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-border" }) }),
2763
+ /* @__PURE__ */ jsx("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-muted px-2 text-muted-foreground", children: "ou continue com" }) })
2764
+ ] }),
2765
+ /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
2766
+ /* @__PURE__ */ jsxs(
2767
+ Button,
2768
+ {
2769
+ type: "button",
2770
+ variant: "outline",
2771
+ className: "w-full justify-center",
2772
+ onClick: () => handleSocialLogin(),
2773
+ children: [
2774
+ /* @__PURE__ */ jsxs("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
2775
+ /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" }),
2776
+ /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" }),
2777
+ /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" }),
2778
+ /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" }),
2779
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
2780
+ ] }),
2781
+ /* @__PURE__ */ jsx("span", { children: "Entrar com Google" })
2782
+ ]
2783
+ }
2784
+ ),
2785
+ /* @__PURE__ */ jsxs(
2786
+ Button,
2787
+ {
2788
+ type: "button",
2789
+ variant: "outline",
2790
+ className: "w-full justify-center",
2791
+ onClick: () => handleSocialLogin(),
2792
+ children: [
2793
+ /* @__PURE__ */ jsx(Lock, { className: "w-5 h-5 mr-2 text-[var(--chart-4)]" }),
2794
+ /* @__PURE__ */ jsx("span", { children: "Entrar com MT Login" })
2795
+ ]
2796
+ }
2797
+ ),
2798
+ /* @__PURE__ */ jsx(
2799
+ Button,
2800
+ {
2801
+ type: "button",
2802
+ variant: "outline",
2803
+ className: "w-full justify-center font-normal",
2804
+ onClick: () => handleSocialLogin(),
2805
+ children: /* @__PURE__ */ jsxs("span", { children: [
2806
+ "Entrar com ",
2807
+ /* @__PURE__ */ jsx("strong", { className: "font-semibold", children: "gov.br" })
2808
+ ] })
2809
+ }
2810
+ )
2811
+ ] })
2812
+ ] })
2813
+ ] })
2814
+ ] });
2815
+ }
2816
+ export {
2817
+ ForgotPasswordPage as F,
2818
+ HomeContent as H,
2819
+ LoginPage as L,
2820
+ ResetPasswordPage as R,
2821
+ TemplateContent as T,
2822
+ VerifyEmailPage as V,
2823
+ HomePage as a,
2824
+ TemplatePage as b
2825
+ };