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