@orbe-agro/client-core 5.6.354 → 5.6.356
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.
- package/dist/@ecme/assets/styles/app.css +214 -0
- package/dist/@ecme/assets/styles/tailwind/index.css +215 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +3 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.js.map +1 -1
- package/dist/@ecme/components/template/Footer.js +1 -1
- package/dist/@ecme/locales/lang/ptBR/nav.js +18 -0
- package/dist/@ecme/locales/lang/ptBR/nav.js.map +1 -1
- package/dist/@ecme/store/localeStore.js +1 -2
- package/dist/@ecme/store/localeStore.js.map +1 -1
- package/dist/@ecme/views/auth/lang/index.js +1 -1
- package/dist/@ecme/views/auth/lang/index.js.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/StackedSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/en/index.d.ts +121 -0
- package/dist/@types/@ecme/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts +121 -0
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/nav.d.ts.map +1 -1
- package/dist/@types/base/@types/models/dm/user.d.ts +1 -0
- package/dist/@types/base/@types/models/dm/user.d.ts.map +1 -1
- package/dist/@types/base/@types/models/faq/Faq.d.ts +221 -0
- package/dist/@types/base/@types/models/faq/Faq.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjuda.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/CentralAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaDrawer.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaDrawer.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaPreview.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaPreview.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaToggle.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaToggle.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.d.ts +20 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.d.ts +34 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/AnexoMoldura.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/components/AnexoMoldura.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/BlocoInerte.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/BlocoInerte.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/BuscaForm.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/components/BuscaForm.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/CartaoClicavel.d.ts +14 -0
- package/dist/@types/base/components/centralAjuda/components/CartaoClicavel.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/ConteudoHtml.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/components/ConteudoHtml.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/CtaAjudaCard.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/CtaAjudaCard.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/ErroCarregamento.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/components/ErroCarregamento.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/LinhaConteudo.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/LinhaConteudo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/PainelCabecalho.d.ts +16 -0
- package/dist/@types/base/components/centralAjuda/components/PainelCabecalho.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonConteudo.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonConteudo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonLinhas.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonLinhas.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/TipoFaqTag.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/components/TipoFaqTag.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/VoltarLink.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/components/VoltarLink.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/constants.d.ts +43 -0
- package/dist/@types/base/components/centralAjuda/constants.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/index.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/index.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/RotaDaAjuda.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/rota/RotaDaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/ajudaPendente.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/rota/ajudaPendente.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/rotaAjuda.d.ts +47 -0
- package/dist/@types/base/components/centralAjuda/rota/rotaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useNavegarAjuda.d.ts +29 -0
- package/dist/@types/base/components/centralAjuda/rota/useNavegarAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useRotaAjuda.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/rota/useRotaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/store/centralAjudaStore.d.ts +40 -0
- package/dist/@types/base/components/centralAjuda/store/centralAjudaStore.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/utils.d.ts +21 -0
- package/dist/@types/base/components/centralAjuda/utils.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.d.ts +22 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoView.d.ts +11 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.d.ts +14 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.d.ts +11 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/DuvidaView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/DuvidaView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/duvidaSchema.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/duvidaSchema.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/HomeView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/Home/HomeView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ArtigosLista.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ArtigosLista.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/CategoriasGrid.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/CategoriasGrid.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/FaqAccordion.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/FaqAccordion.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/HeroBusca.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/HeroBusca.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ManuaisLista.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ManuaisLista.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/OrbeAiView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/OrbeAiView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/ResultadosView.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/ResultadosView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.d.ts +25 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ListaResultados.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ListaResultados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +152 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/faq/config/categoria.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/categoria.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/central.d.ts +31 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/central.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/faq.d.ts +40 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/faq.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/modulo.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/modulo.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/tag.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/tag.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/index.d.ts +154 -0
- package/dist/@types/base/configs/endpoints.config/faq/index.d.ts.map +1 -0
- package/dist/@types/base/configs/faq.config.d.ts +16 -0
- package/dist/@types/base/configs/faq.config.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/submenu.faq.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/submenu.faq.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/index.d.ts +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/index.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/faq/cadastros.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/cadastros.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/categoria.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/categoria.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/faq.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/faq.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/modulo.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/modulo.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/tag.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/tag.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/faq.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/faq.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts.map +1 -1
- package/dist/@types/base/hooks/faq/useAnexoFaq.d.ts +29 -0
- package/dist/@types/base/hooks/faq/useAnexoFaq.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useArtigoCentralAjuda.d.ts +12 -0
- package/dist/@types/base/hooks/faq/useArtigoCentralAjuda.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useCategoriasFaqDisponiveis.d.ts +9 -0
- package/dist/@types/base/hooks/faq/useCategoriasFaqDisponiveis.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useFaq.d.ts +9 -0
- package/dist/@types/base/hooks/faq/useFaq.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useFaqsPublicados.d.ts +12 -0
- package/dist/@types/base/hooks/faq/useFaqsPublicados.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +4 -0
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/en/index.d.ts +121 -0
- package/dist/@types/base/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/en/modules/faq/centralAjuda.d.ts +125 -0
- package/dist/@types/base/locales/lang/en/modules/faq/centralAjuda.d.ts.map +1 -0
- package/dist/@types/base/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/ptBR/modules/faq/centralAjuda.d.ts +4 -0
- package/dist/@types/base/locales/lang/ptBR/modules/faq/centralAjuda.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/CentralAjudaService.d.ts +34 -0
- package/dist/@types/base/services/modules/faq/CentralAjudaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/FaqService.d.ts +56 -0
- package/dist/@types/base/services/modules/faq/FaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/categoria/CategoriaFaqService.d.ts +10 -0
- package/dist/@types/base/services/modules/faq/categoria/CategoriaFaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/faqAnexo.d.ts +9 -0
- package/dist/@types/base/services/modules/faq/faqAnexo.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/faqTexto.d.ts +5 -0
- package/dist/@types/base/services/modules/faq/faqTexto.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/index.d.ts +8 -0
- package/dist/@types/base/services/modules/faq/index.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/modulo/ModuloFaqService.d.ts +9 -0
- package/dist/@types/base/services/modules/faq/modulo/ModuloFaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/tag/TagFaqService.d.ts +11 -0
- package/dist/@types/base/services/modules/faq/tag/TagFaqService.d.ts.map +1 -0
- package/dist/base/@types/models/faq/Faq.js +2 -0
- package/dist/base/@types/models/faq/Faq.js.map +1 -0
- package/dist/base/assets/styles/init.css +218 -0
- package/dist/base/components/centralAjuda/CentralAjuda.js +49 -0
- package/dist/base/components/centralAjuda/CentralAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaDrawer.js +123 -0
- package/dist/base/components/centralAjuda/CentralAjudaDrawer.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaPreview.js +53 -0
- package/dist/base/components/centralAjuda/CentralAjudaPreview.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaToggle.js +43 -0
- package/dist/base/components/centralAjuda/CentralAjudaToggle.js.map +1 -0
- package/dist/base/components/centralAjuda/components/AnexoMoldura.js +49 -0
- package/dist/base/components/centralAjuda/components/AnexoMoldura.js.map +1 -0
- package/dist/base/components/centralAjuda/components/BlocoInerte.js +9 -0
- package/dist/base/components/centralAjuda/components/BlocoInerte.js.map +1 -0
- package/dist/base/components/centralAjuda/components/BuscaForm.js +69 -0
- package/dist/base/components/centralAjuda/components/BuscaForm.js.map +1 -0
- package/dist/base/components/centralAjuda/components/CartaoClicavel.js +51 -0
- package/dist/base/components/centralAjuda/components/CartaoClicavel.js.map +1 -0
- package/dist/base/components/centralAjuda/components/ConteudoHtml.js +134 -0
- package/dist/base/components/centralAjuda/components/ConteudoHtml.js.map +1 -0
- package/dist/base/components/centralAjuda/components/CtaAjudaCard.js +64 -0
- package/dist/base/components/centralAjuda/components/CtaAjudaCard.js.map +1 -0
- package/dist/base/components/centralAjuda/components/ErroCarregamento.js +21 -0
- package/dist/base/components/centralAjuda/components/ErroCarregamento.js.map +1 -0
- package/dist/base/components/centralAjuda/components/LinhaConteudo.js +34 -0
- package/dist/base/components/centralAjuda/components/LinhaConteudo.js.map +1 -0
- package/dist/base/components/centralAjuda/components/PainelCabecalho.js +115 -0
- package/dist/base/components/centralAjuda/components/PainelCabecalho.js.map +1 -0
- package/dist/base/components/centralAjuda/components/SkeletonConteudo.js +19 -0
- package/dist/base/components/centralAjuda/components/SkeletonConteudo.js.map +1 -0
- package/dist/base/components/centralAjuda/components/SkeletonLinhas.js +88 -0
- package/dist/base/components/centralAjuda/components/SkeletonLinhas.js.map +1 -0
- package/dist/base/components/centralAjuda/components/TipoFaqTag.js +19 -0
- package/dist/base/components/centralAjuda/components/TipoFaqTag.js.map +1 -0
- package/dist/base/components/centralAjuda/components/VoltarLink.js +30 -0
- package/dist/base/components/centralAjuda/components/VoltarLink.js.map +1 -0
- package/dist/base/components/centralAjuda/constants.js +59 -0
- package/dist/base/components/centralAjuda/constants.js.map +1 -0
- package/dist/base/components/centralAjuda/index.js +24 -0
- package/dist/base/components/centralAjuda/index.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/RotaDaAjuda.js +11 -0
- package/dist/base/components/centralAjuda/rota/RotaDaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/ajudaPendente.js +58 -0
- package/dist/base/components/centralAjuda/rota/ajudaPendente.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/rotaAjuda.js +105 -0
- package/dist/base/components/centralAjuda/rota/rotaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.js +30 -0
- package/dist/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useNavegarAjuda.js +48 -0
- package/dist/base/components/centralAjuda/rota/useNavegarAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.js +28 -0
- package/dist/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useRotaAjuda.js +11 -0
- package/dist/base/components/centralAjuda/rota/useRotaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/store/centralAjudaStore.js +40 -0
- package/dist/base/components/centralAjuda/store/centralAjudaStore.js.map +1 -0
- package/dist/base/components/centralAjuda/utils.js +47 -0
- package/dist/base/components/centralAjuda/utils.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.js +38 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoView.js +44 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.js +83 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.js +34 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.js +15 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.js +66 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.js +46 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.js +52 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.js +49 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Duvida/DuvidaView.js +181 -0
- package/dist/base/components/centralAjuda/views/Duvida/DuvidaView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Duvida/duvidaSchema.js +11 -0
- package/dist/base/components/centralAjuda/views/Duvida/duvidaSchema.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/HomeView.js +79 -0
- package/dist/base/components/centralAjuda/views/Home/HomeView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/ArtigosLista.js +41 -0
- package/dist/base/components/centralAjuda/views/Home/components/ArtigosLista.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/CategoriasGrid.js +57 -0
- package/dist/base/components/centralAjuda/views/Home/components/CategoriasGrid.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/FaqAccordion.js +84 -0
- package/dist/base/components/centralAjuda/views/Home/components/FaqAccordion.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/HeroBusca.js +42 -0
- package/dist/base/components/centralAjuda/views/Home/components/HeroBusca.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/ManuaisLista.js +41 -0
- package/dist/base/components/centralAjuda/views/Home/components/ManuaisLista.js.map +1 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/OrbeAiView.js +154 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/OrbeAiView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.js +49 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/ResultadosView.js +137 -0
- package/dist/base/components/centralAjuda/views/Resultados/ResultadosView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.js +81 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ListaResultados.js +24 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ListaResultados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.js +36 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.js.map +1 -0
- package/dist/base/configs/endpoints.config/endpoints.navigation.js +2 -0
- package/dist/base/configs/endpoints.config/endpoints.navigation.js.map +1 -1
- package/dist/base/configs/endpoints.config/faq/config/categoria.js +40 -0
- package/dist/base/configs/endpoints.config/faq/config/categoria.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/central.js +31 -0
- package/dist/base/configs/endpoints.config/faq/config/central.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/faq.js +44 -0
- package/dist/base/configs/endpoints.config/faq/config/faq.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/modulo.js +32 -0
- package/dist/base/configs/endpoints.config/faq/config/modulo.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/tag.js +40 -0
- package/dist/base/configs/endpoints.config/faq/config/tag.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/index.js +16 -0
- package/dist/base/configs/endpoints.config/faq/index.js.map +1 -0
- package/dist/base/configs/faq.config.js +9 -0
- package/dist/base/configs/faq.config.js.map +1 -0
- package/dist/base/configs/index.js +48 -44
- package/dist/base/configs/index.js.map +1 -1
- package/dist/base/configs/navigation.config/index.js +46 -42
- package/dist/base/configs/navigation.config/index.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.navigation.js +2 -0
- package/dist/base/configs/navigation.config/modules.navigation.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/submenu.faq.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/submenu.faq.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/index.js +4 -2
- package/dist/base/configs/navigation.config/modules.submenu/index.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/faq/cadastros.submenu.js +14 -0
- package/dist/base/configs/navigation.config/submenu/faq/cadastros.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/categoria.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/categoria.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/faq.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/faq.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/modulo.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/modulo.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/tag.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/tag.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/faq.submenu.js +8 -0
- package/dist/base/configs/navigation.config/submenu/faq/faq.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/index.js +4 -2
- package/dist/base/configs/navigation.config/submenu/index.js.map +1 -1
- package/dist/base/hooks/faq/useAnexoFaq.js +42 -0
- package/dist/base/hooks/faq/useAnexoFaq.js.map +1 -0
- package/dist/base/hooks/faq/useArtigoCentralAjuda.js +20 -0
- package/dist/base/hooks/faq/useArtigoCentralAjuda.js.map +1 -0
- package/dist/base/hooks/faq/useCategoriasFaqDisponiveis.js +16 -0
- package/dist/base/hooks/faq/useCategoriasFaqDisponiveis.js.map +1 -0
- package/dist/base/hooks/faq/useFaq.js +16 -0
- package/dist/base/hooks/faq/useFaq.js.map +1 -0
- package/dist/base/hooks/faq/useFaqsPublicados.js +35 -0
- package/dist/base/hooks/faq/useFaqsPublicados.js.map +1 -0
- package/dist/base/hooks/index.js +8 -0
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/index.js +216 -204
- package/dist/base/index.js.map +1 -1
- package/dist/base/locales/index.js +1 -1
- package/dist/base/locales/index.js.map +1 -1
- package/dist/base/locales/lang/en/index.js +2 -1
- package/dist/base/locales/lang/en/index.js.map +1 -1
- package/dist/base/locales/lang/en/modules/faq/centralAjuda.js +127 -0
- package/dist/base/locales/lang/en/modules/faq/centralAjuda.js.map +1 -0
- package/dist/base/locales/lang/ptBR/index.js +2 -1
- package/dist/base/locales/lang/ptBR/index.js.map +1 -1
- package/dist/base/locales/lang/ptBR/modules/faq/centralAjuda.js +127 -0
- package/dist/base/locales/lang/ptBR/modules/faq/centralAjuda.js.map +1 -0
- package/dist/base/services/modules/faq/CentralAjudaService.js +51 -0
- package/dist/base/services/modules/faq/CentralAjudaService.js.map +1 -0
- package/dist/base/services/modules/faq/FaqService.js +171 -0
- package/dist/base/services/modules/faq/FaqService.js.map +1 -0
- package/dist/base/services/modules/faq/categoria/CategoriaFaqService.js +58 -0
- package/dist/base/services/modules/faq/categoria/CategoriaFaqService.js.map +1 -0
- package/dist/base/services/modules/faq/faqAnexo.js +21 -0
- package/dist/base/services/modules/faq/faqAnexo.js.map +1 -0
- package/dist/base/services/modules/faq/faqTexto.js +7 -0
- package/dist/base/services/modules/faq/faqTexto.js.map +1 -0
- package/dist/base/services/modules/faq/index.js +52 -0
- package/dist/base/services/modules/faq/index.js.map +1 -0
- package/dist/base/services/modules/faq/modulo/ModuloFaqService.js +51 -0
- package/dist/base/services/modules/faq/modulo/ModuloFaqService.js.map +1 -0
- package/dist/base/services/modules/faq/tag/TagFaqService.js +65 -0
- package/dist/base/services/modules/faq/tag/TagFaqService.js.map +1 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx +5 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/StackedSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.tsx +6 -0
- package/lib/@ecme/locales/lang/ptBR/nav.ts +18 -0
- package/lib/@ecme/store/localeStore.ts +1 -1
- package/lib/@ecme/views/auth/lang/index.ts +1 -1
- package/lib/base/@types/models/dm/user.ts +1 -0
- package/lib/base/@types/models/faq/Faq.ts +249 -0
- package/lib/base/components/centralAjuda/CentralAjuda.stories.tsx +161 -0
- package/lib/base/components/centralAjuda/CentralAjuda.tsx +61 -0
- package/lib/base/components/centralAjuda/CentralAjudaDrawer.tsx +153 -0
- package/lib/base/components/centralAjuda/CentralAjudaPreview.tsx +67 -0
- package/lib/base/components/centralAjuda/CentralAjudaToggle.tsx +47 -0
- package/lib/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.ts +391 -0
- package/lib/base/components/centralAjuda/__mocks__/centralAjudaExemplo.ts +285 -0
- package/lib/base/components/centralAjuda/components/AnexoMoldura.tsx +64 -0
- package/lib/base/components/centralAjuda/components/BlocoInerte.tsx +23 -0
- package/lib/base/components/centralAjuda/components/BuscaForm.tsx +74 -0
- package/lib/base/components/centralAjuda/components/CartaoClicavel.tsx +64 -0
- package/lib/base/components/centralAjuda/components/ConteudoHtml.tsx +209 -0
- package/lib/base/components/centralAjuda/components/CtaAjudaCard.tsx +67 -0
- package/lib/base/components/centralAjuda/components/ErroCarregamento.tsx +31 -0
- package/lib/base/components/centralAjuda/components/LinhaConteudo.tsx +51 -0
- package/lib/base/components/centralAjuda/components/PainelCabecalho.tsx +147 -0
- package/lib/base/components/centralAjuda/components/SkeletonConteudo.tsx +22 -0
- package/lib/base/components/centralAjuda/components/SkeletonLinhas.tsx +110 -0
- package/lib/base/components/centralAjuda/components/TipoFaqTag.tsx +28 -0
- package/lib/base/components/centralAjuda/components/VoltarLink.tsx +28 -0
- package/lib/base/components/centralAjuda/constants.ts +79 -0
- package/lib/base/components/centralAjuda/index.ts +19 -0
- package/lib/base/components/centralAjuda/rota/RotaDaAjuda.tsx +15 -0
- package/lib/base/components/centralAjuda/rota/ajudaPendente.ts +103 -0
- package/lib/base/components/centralAjuda/rota/rotaAjuda.ts +170 -0
- package/lib/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.ts +42 -0
- package/lib/base/components/centralAjuda/rota/useNavegarAjuda.ts +79 -0
- package/lib/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.ts +38 -0
- package/lib/base/components/centralAjuda/rota/useRotaAjuda.ts +11 -0
- package/lib/base/components/centralAjuda/store/centralAjudaStore.ts +66 -0
- package/lib/base/components/centralAjuda/utils.ts +75 -0
- package/lib/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.tsx +58 -0
- package/lib/base/components/centralAjuda/views/Conteudo/ConteudoView.tsx +63 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.tsx +100 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.tsx +48 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.tsx +27 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.tsx +94 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.tsx +49 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.tsx +65 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.tsx +53 -0
- package/lib/base/components/centralAjuda/views/Duvida/DuvidaView.tsx +196 -0
- package/lib/base/components/centralAjuda/views/Duvida/duvidaSchema.ts +19 -0
- package/lib/base/components/centralAjuda/views/Home/HomeView.tsx +96 -0
- package/lib/base/components/centralAjuda/views/Home/components/ArtigosLista.tsx +60 -0
- package/lib/base/components/centralAjuda/views/Home/components/CategoriasGrid.tsx +64 -0
- package/lib/base/components/centralAjuda/views/Home/components/FaqAccordion.tsx +100 -0
- package/lib/base/components/centralAjuda/views/Home/components/HeroBusca.tsx +44 -0
- package/lib/base/components/centralAjuda/views/Home/components/ManuaisLista.tsx +60 -0
- package/lib/base/components/centralAjuda/views/OrbeAi/OrbeAiView.tsx +175 -0
- package/lib/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.tsx +69 -0
- package/lib/base/components/centralAjuda/views/Resultados/ResultadosView.tsx +177 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.tsx +110 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/ListaResultados.tsx +34 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.tsx +53 -0
- package/lib/base/configs/endpoints.config/endpoints.navigation.ts +2 -0
- package/lib/base/configs/endpoints.config/faq/config/categoria.ts +40 -0
- package/lib/base/configs/endpoints.config/faq/config/central.ts +37 -0
- package/lib/base/configs/endpoints.config/faq/config/faq.ts +43 -0
- package/lib/base/configs/endpoints.config/faq/config/modulo.ts +32 -0
- package/lib/base/configs/endpoints.config/faq/config/tag.ts +40 -0
- package/lib/base/configs/endpoints.config/faq/index.ts +15 -0
- package/lib/base/configs/faq.config.ts +16 -0
- package/lib/base/configs/navigation.config/modules.navigation.ts +2 -0
- package/lib/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.ts +17 -0
- package/lib/base/configs/navigation.config/modules.submenu/faq/submenu.faq.ts +18 -0
- package/lib/base/configs/navigation.config/modules.submenu/index.ts +1 -0
- package/lib/base/configs/navigation.config/submenu/faq/cadastros.submenu.ts +14 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/categoria.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/faq.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/modulo.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/tag.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/faq.submenu.ts +8 -0
- package/lib/base/configs/navigation.config/submenu/index.ts +1 -0
- package/lib/base/hooks/faq/useAnexoFaq.tsx +79 -0
- package/lib/base/hooks/faq/useArtigoCentralAjuda.tsx +25 -0
- package/lib/base/hooks/faq/useCategoriasFaqDisponiveis.tsx +16 -0
- package/lib/base/hooks/faq/useFaq.tsx +16 -0
- package/lib/base/hooks/faq/useFaqsPublicados.tsx +45 -0
- package/lib/base/hooks/index.ts +5 -1
- package/lib/base/locales/index.ts +1 -1
- package/lib/base/locales/lang/en/index.ts +2 -1
- package/lib/base/locales/lang/en/modules/faq/centralAjuda.ts +129 -0
- package/lib/base/locales/lang/ptBR/index.ts +2 -1
- package/lib/base/locales/lang/ptBR/modules/faq/centralAjuda.ts +131 -0
- package/lib/base/services/modules/faq/CentralAjudaService.ts +92 -0
- package/lib/base/services/modules/faq/FaqService.ts +235 -0
- package/lib/base/services/modules/faq/categoria/CategoriaFaqService.ts +62 -0
- package/lib/base/services/modules/faq/faqAnexo.ts +23 -0
- package/lib/base/services/modules/faq/faqTexto.ts +12 -0
- package/lib/base/services/modules/faq/index.ts +7 -0
- package/lib/base/services/modules/faq/modulo/ModuloFaqService.ts +56 -0
- package/lib/base/services/modules/faq/tag/TagFaqService.ts +70 -0
- package/package.json +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js +0 -22
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js +0 -22
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js.map +0 -1
- package/dist/@ecme/components/template/Header.stories.js +0 -42
- package/dist/@ecme/components/template/Header.stories.js.map +0 -1
- package/dist/@ecme/components/template/Search.stories.js +0 -76
- package/dist/@ecme/components/template/Search.stories.js.map +0 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js +0 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js.map +0 -1
- package/dist/@ecme/components/ui/Button/Button.stories.js +0 -17
- package/dist/@ecme/components/ui/Button/Button.stories.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import PainelCabecalho from "./components/PainelCabecalho.js";
|
|
5
|
+
import { CLASSE_CONTEUDO_PAINEL, LARGURA_CONTEUDO_PAINEL, CLASSE_PAINEL, CLASSE_MOLDURA_PAINEL, LARGURA_PAINEL_LATERAL } from "./constants.js";
|
|
6
|
+
import ConteudoDetalhe from "./views/Conteudo/ConteudoDetalhe.js";
|
|
7
|
+
const MODOS_PREVIEW = ["flutuante", "full"];
|
|
8
|
+
const CentralAjudaPreview = ({ faq, className }) => {
|
|
9
|
+
const [modo, setModo] = useState("flutuante");
|
|
10
|
+
return /* @__PURE__ */ jsxs(
|
|
11
|
+
"section",
|
|
12
|
+
{
|
|
13
|
+
className: classNames(
|
|
14
|
+
"mx-auto h-full max-w-full",
|
|
15
|
+
CLASSE_PAINEL,
|
|
16
|
+
CLASSE_MOLDURA_PAINEL,
|
|
17
|
+
modo === "full" ? "w-full" : LARGURA_PAINEL_LATERAL,
|
|
18
|
+
className
|
|
19
|
+
),
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsx(
|
|
22
|
+
PainelCabecalho,
|
|
23
|
+
{
|
|
24
|
+
modo,
|
|
25
|
+
modosDisponiveis: MODOS_PREVIEW,
|
|
26
|
+
onModo: setModo
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain", children: /* @__PURE__ */ jsx(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: classNames(
|
|
33
|
+
CLASSE_CONTEUDO_PAINEL,
|
|
34
|
+
LARGURA_CONTEUDO_PAINEL
|
|
35
|
+
),
|
|
36
|
+
children: /* @__PURE__ */ jsx(
|
|
37
|
+
ConteudoDetalhe,
|
|
38
|
+
{
|
|
39
|
+
somenteLeitura: true,
|
|
40
|
+
faq,
|
|
41
|
+
origemAnexos: "cadastro"
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
CentralAjudaPreview as default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=CentralAjudaPreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CentralAjudaPreview.js","sources":["../../../../lib/base/components/centralAjuda/CentralAjudaPreview.tsx"],"sourcesContent":["import { useState } from 'react'\nimport classNames from 'classnames'\nimport type { TFaq } from '@base/@types/models/faq/Faq'\nimport PainelCabecalho from './components/PainelCabecalho'\nimport {\n CLASSE_CONTEUDO_PAINEL,\n CLASSE_MOLDURA_PAINEL,\n CLASSE_PAINEL,\n LARGURA_CONTEUDO_PAINEL,\n LARGURA_PAINEL_LATERAL,\n} from './constants'\nimport type { TCentralAjudaModo } from './store/centralAjudaStore'\nimport ConteudoDetalhe from './views/Conteudo/ConteudoDetalhe'\n\ntype CentralAjudaPreviewProps = {\n /** FAQ completa (GET /faq/{id}), em qualquer status. */\n faq: TFaq\n className?: string\n}\n\n/**\n * Pré-visualização de um conteúdo como ele aparece na Central de Ajuda.\n * Reaproveita o cabeçalho do painel e a tela de conteúdo; só os anexos ficam ativos.\n * A moldura acompanha o fluxo da página: quem usa decide a altura (ex.: dentro de um Dialog).\n */\n/** Dentro de um Dialog, o Drawer não faz sentido: a prévia alterna só a largura. */\nconst MODOS_PREVIEW: TCentralAjudaModo[] = ['flutuante', 'full']\n\nconst CentralAjudaPreview = ({ faq, className }: CentralAjudaPreviewProps) => {\n // Estado local: a prévia não altera o modo salvo do usuário.\n const [modo, setModo] = useState<TCentralAjudaModo>('flutuante')\n\n return (\n <section\n className={classNames(\n 'mx-auto h-full max-w-full',\n CLASSE_PAINEL,\n CLASSE_MOLDURA_PAINEL,\n modo === 'full' ? 'w-full' : LARGURA_PAINEL_LATERAL,\n className,\n )}\n >\n <PainelCabecalho\n modo={modo}\n modosDisponiveis={MODOS_PREVIEW}\n onModo={setModo}\n />\n <div className=\"min-h-0 flex-1 overflow-y-auto overscroll-contain\">\n <div\n className={classNames(\n CLASSE_CONTEUDO_PAINEL,\n LARGURA_CONTEUDO_PAINEL,\n )}\n >\n {/* Rascunhos e arquivados não passam pela Central: os anexos vêm do endpoint do cadastro. */}\n <ConteudoDetalhe\n somenteLeitura\n faq={faq}\n origemAnexos=\"cadastro\"\n />\n </div>\n </div>\n </section>\n )\n}\n\nexport default CentralAjudaPreview\n"],"names":[],"mappings":";;;;;;AA0BA,MAAM,gBAAqC,CAAC,aAAa,MAAM;AAE/D,MAAM,sBAAsB,CAAC,EAAE,KAAK,gBAA0C;AAE1E,QAAM,CAAC,MAAM,OAAO,IAAI,SAA4B,WAAW;AAE/D,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA,SAAS,SAAS,WAAW;AAAA,QAC7B;AAAA,MAAA;AAAA,MAGJ,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG;AAAA,YACA,kBAAkB;AAAA,YAClB,QAAQ;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZ,oBAAC,OAAA,EAAI,WAAU,qDACX,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,WAAW;AAAA,cACP;AAAA,cACA;AAAA,YAAA;AAAA,YAIJ,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,gBAAc;AAAA,gBACd;AAAA,gBACA,cAAa;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA,EACJ,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import withHeaderItem from "../../../@ecme/utils/hoc/withHeaderItem.js";
|
|
4
|
+
import { PiQuestionDuotone } from "react-icons/pi";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import useNavegarAjuda from "./rota/useNavegarAjuda.js";
|
|
7
|
+
import useRotaAjuda from "./rota/useRotaAjuda.js";
|
|
8
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "./utils.js";
|
|
9
|
+
const _CentralAjudaToggle = ({ className }) => {
|
|
10
|
+
const { t } = useTranslation();
|
|
11
|
+
const aberta = useRotaAjuda() !== null;
|
|
12
|
+
const { alternar } = useNavegarAjuda();
|
|
13
|
+
const rotulo = t(`${PREFIXO_I18N_CENTRAL_AJUDA}.abrir`);
|
|
14
|
+
const handleKeyDown = (e) => {
|
|
15
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
alternar();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
role: "button",
|
|
24
|
+
tabIndex: 0,
|
|
25
|
+
"aria-label": rotulo,
|
|
26
|
+
"aria-expanded": aberta,
|
|
27
|
+
title: rotulo,
|
|
28
|
+
className: classNames(
|
|
29
|
+
"text-2xl",
|
|
30
|
+
aberta && "text-primary",
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
onClick: alternar,
|
|
34
|
+
onKeyDown: handleKeyDown,
|
|
35
|
+
children: /* @__PURE__ */ jsx(PiQuestionDuotone, {})
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
const CentralAjudaToggle = withHeaderItem(_CentralAjudaToggle);
|
|
40
|
+
export {
|
|
41
|
+
CentralAjudaToggle as default
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=CentralAjudaToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CentralAjudaToggle.js","sources":["../../../../lib/base/components/centralAjuda/CentralAjudaToggle.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport withHeaderItem from '@/utils/hoc/withHeaderItem'\nimport { PiQuestionDuotone } from 'react-icons/pi'\nimport { useTranslation } from 'react-i18next'\nimport type { CommonProps } from '@/@types/common'\nimport type { KeyboardEvent } from 'react'\nimport useNavegarAjuda from './rota/useNavegarAjuda'\nimport useRotaAjuda from './rota/useRotaAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from './utils'\n\n/** Botão \"?\" do header (mesmo padrão do SidePanel/Notification). */\nconst _CentralAjudaToggle = ({ className }: CommonProps) => {\n const { t } = useTranslation()\n const aberta = useRotaAjuda() !== null\n const { alternar } = useNavegarAjuda()\n const rotulo = t(`${PREFIXO_I18N_CENTRAL_AJUDA}.abrir`)\n\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n alternar()\n }\n }\n\n return (\n <div\n role=\"button\"\n tabIndex={0}\n aria-label={rotulo}\n aria-expanded={aberta}\n title={rotulo}\n className={classNames(\n 'text-2xl',\n aberta && 'text-primary',\n className,\n )}\n onClick={alternar}\n onKeyDown={handleKeyDown}\n >\n <PiQuestionDuotone />\n </div>\n )\n}\n\nconst CentralAjudaToggle = withHeaderItem(_CentralAjudaToggle)\n\nexport default CentralAjudaToggle\n"],"names":[],"mappings":";;;;;;;;AAWA,MAAM,sBAAsB,CAAC,EAAE,gBAA6B;AACxD,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,SAAS,mBAAmB;AAClC,QAAM,EAAE,SAAA,IAAa,gBAAA;AACrB,QAAM,SAAS,EAAE,GAAG,0BAA0B,QAAQ;AAEtD,QAAM,gBAAgB,CAAC,MAAqC;AACxD,QAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KAAK;AACpC,QAAE,eAAA;AACF,eAAA;AAAA,IACJ;AAAA,EACJ;AAEA,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,UAAU;AAAA,MACV,cAAY;AAAA,MACZ,iBAAe;AAAA,MACf,OAAO;AAAA,MACP,WAAW;AAAA,QACP;AAAA,QACA,UAAU;AAAA,QACV;AAAA,MAAA;AAAA,MAEJ,SAAS;AAAA,MACT,WAAW;AAAA,MAEX,8BAAC,mBAAA,CAAA,CAAkB;AAAA,IAAA;AAAA,EAAA;AAG/B;AAEA,MAAM,qBAAqB,eAAe,mBAAmB;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import "../../../../@ecme/components/ui/Skeleton/index.js";
|
|
4
|
+
import "../../../../@ecme/components/view/FileIcon/index.js";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../utils.js";
|
|
7
|
+
import Skeleton from "../../../../@ecme/components/ui/Skeleton/Skeleton.js";
|
|
8
|
+
import FileIcon from "../../../../@ecme/components/view/FileIcon/FileIcon.js";
|
|
9
|
+
const AnexoMoldura = ({
|
|
10
|
+
src,
|
|
11
|
+
alt,
|
|
12
|
+
carregando,
|
|
13
|
+
erro,
|
|
14
|
+
tipoIcone = "png",
|
|
15
|
+
className
|
|
16
|
+
}) => {
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
const exibirImagem = !carregando && !erro && src;
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"figure",
|
|
21
|
+
{
|
|
22
|
+
className: classNames(
|
|
23
|
+
"m-0 rounded-xl border border-gray-200 bg-gray-50 p-1.5 shadow-sm dark:border-gray-700 dark:bg-gray-800",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg bg-white dark:bg-gray-900", children: [
|
|
27
|
+
carregando && /* @__PURE__ */ jsx(Skeleton, { height: "100%", width: "100%" }),
|
|
28
|
+
exibirImagem && /* @__PURE__ */ jsx(
|
|
29
|
+
"img",
|
|
30
|
+
{
|
|
31
|
+
src,
|
|
32
|
+
alt,
|
|
33
|
+
className: "h-full w-full object-contain"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
!carregando && !exibirImagem && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1 text-xs text-gray-400", children: [
|
|
37
|
+
/* @__PURE__ */ jsx(FileIcon, { type: tipoIcone, size: 32 }),
|
|
38
|
+
/* @__PURE__ */ jsx("span", { children: t(
|
|
39
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.conteudo.imagemIndisponivel`
|
|
40
|
+
) })
|
|
41
|
+
] })
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
AnexoMoldura as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=AnexoMoldura.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnexoMoldura.js","sources":["../../../../../lib/base/components/centralAjuda/components/AnexoMoldura.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport Skeleton from '@/components/ui/Skeleton'\nimport FileIcon from '@/components/view/FileIcon'\nimport { useTranslation } from 'react-i18next'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../utils'\n\ntype AnexoMolduraProps = {\n /** URL local (blob) da imagem; ausente enquanto carrega ou quando falha. */\n src?: string\n alt: string\n carregando?: boolean\n erro?: boolean\n /** Ícone exibido quando a imagem não pode ser mostrada (tipo do `FileIcon`). */\n tipoIcone?: string\n className?: string\n}\n\n/**\n * Imagem de um anexo dentro de uma moldura (borda, respiro e fundo neutro), sempre na mesma proporção.\n * Só apresentação: quem usa busca a imagem (ex.: `useAnexoFaq`) e passa a URL local.\n */\nconst AnexoMoldura = ({\n src,\n alt,\n carregando,\n erro,\n tipoIcone = 'png',\n className,\n}: AnexoMolduraProps) => {\n const { t } = useTranslation()\n const exibirImagem = !carregando && !erro && src\n\n return (\n <figure\n className={classNames(\n 'm-0 rounded-xl border border-gray-200 bg-gray-50 p-1.5 shadow-sm dark:border-gray-700 dark:bg-gray-800',\n className,\n )}\n >\n <div className=\"flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg bg-white dark:bg-gray-900\">\n {carregando && <Skeleton height=\"100%\" width=\"100%\" />}\n {exibirImagem && (\n <img\n src={src}\n alt={alt}\n className=\"h-full w-full object-contain\"\n />\n )}\n {!carregando && !exibirImagem && (\n <div className=\"flex flex-col items-center gap-1 text-xs text-gray-400\">\n <FileIcon type={tipoIcone} size={32} />\n <span>\n {t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.conteudo.imagemIndisponivel`,\n )}\n </span>\n </div>\n )}\n </div>\n </figure>\n )\n}\n\nexport default AnexoMoldura\n"],"names":[],"mappings":";;;;;;;;AAqBA,MAAM,eAAe,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AACJ,MAAyB;AACrB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,eAAe,CAAC,cAAc,CAAC,QAAQ;AAE7C,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,MAAA;AAAA,MAGJ,UAAA,qBAAC,OAAA,EAAI,WAAU,6GACV,UAAA;AAAA,QAAA,cAAc,oBAAC,UAAA,EAAS,QAAO,QAAO,OAAM,QAAO;AAAA,QACnD,gBACG;AAAA,UAAC;AAAA,UAAA;AAAA,YACG;AAAA,YACA;AAAA,YACA,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGjB,CAAC,cAAc,CAAC,gBACb,qBAAC,OAAA,EAAI,WAAU,0DACX,UAAA;AAAA,UAAA,oBAAC,UAAA,EAAS,MAAM,WAAW,MAAM,IAAI;AAAA,8BACpC,QAAA,EACI,UAAA;AAAA,YACG,GAAG,0BAA0B;AAAA,UAAA,EACjC,CACJ;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA,EAAA,CAER;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
const BlocoInerte = ({ ativo = false, children }) => {
|
|
3
|
+
if (!ativo) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { inert: true, className: "pointer-events-none contents", children });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
BlocoInerte as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=BlocoInerte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlocoInerte.js","sources":["../../../../../lib/base/components/centralAjuda/components/BlocoInerte.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\ntype BlocoInerteProps = {\n /** Quando falso, os filhos são renderizados sem nenhum elemento em volta. */\n ativo?: boolean\n children: ReactNode\n}\n\n/**\n * Mantém o conteúdo visível, mas sem clique, foco ou leitura por teclado.\n * `contents` tira o wrapper do layout, então a tela fica igual à interativa.\n */\nconst BlocoInerte = ({ ativo = false, children }: BlocoInerteProps) => {\n if (!ativo) return <>{children}</>\n\n return (\n <div inert className=\"pointer-events-none contents\">\n {children}\n </div>\n )\n}\n\nexport default BlocoInerte\n"],"names":[],"mappings":";AAYA,MAAM,cAAc,CAAC,EAAE,QAAQ,OAAO,eAAiC;AACnE,MAAI,CAAC,MAAO,QAAO,oBAAA,UAAA,EAAG,SAAA,CAAS;AAE/B,6BACK,OAAA,EAAI,OAAK,MAAC,WAAU,gCAChB,UACL;AAER;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import "../../../../@ecme/components/ui/Button/index.js";
|
|
5
|
+
import "../../../../@ecme/components/ui/Input/index.js";
|
|
6
|
+
import { TbSearch } from "react-icons/tb";
|
|
7
|
+
import { useTranslation } from "react-i18next";
|
|
8
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../utils.js";
|
|
9
|
+
import Input from "../../../../@ecme/components/ui/Input/Input.js";
|
|
10
|
+
import Button from "../../../../@ecme/components/ui/Button/Button.js";
|
|
11
|
+
const BuscaForm = ({
|
|
12
|
+
id,
|
|
13
|
+
busca,
|
|
14
|
+
onBuscar,
|
|
15
|
+
variante = "padrao",
|
|
16
|
+
className
|
|
17
|
+
}) => {
|
|
18
|
+
const { t } = useTranslation();
|
|
19
|
+
const [texto, setTexto] = useState(busca);
|
|
20
|
+
const destaque = variante === "destaque";
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
setTexto(busca);
|
|
23
|
+
}, [busca]);
|
|
24
|
+
return /* @__PURE__ */ jsxs(
|
|
25
|
+
"form",
|
|
26
|
+
{
|
|
27
|
+
role: "search",
|
|
28
|
+
className: classNames("w-full", className),
|
|
29
|
+
onSubmit: (e) => {
|
|
30
|
+
e.preventDefault();
|
|
31
|
+
onBuscar(texto);
|
|
32
|
+
},
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx("label", { htmlFor: id, className: "sr-only", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.label`) }),
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
Input,
|
|
37
|
+
{
|
|
38
|
+
id,
|
|
39
|
+
type: "text",
|
|
40
|
+
enterKeyHint: "search",
|
|
41
|
+
size: destaque ? "lg" : "md",
|
|
42
|
+
value: texto,
|
|
43
|
+
placeholder: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.placeholder`),
|
|
44
|
+
className: classNames(
|
|
45
|
+
destaque && "[&_.input]:border-gray-200 [&_.input]:bg-white dark:[&_.input]:border-gray-700 dark:[&_.input]:bg-gray-800"
|
|
46
|
+
),
|
|
47
|
+
suffix: /* @__PURE__ */ jsx(
|
|
48
|
+
Button,
|
|
49
|
+
{
|
|
50
|
+
type: "submit",
|
|
51
|
+
size: "xs",
|
|
52
|
+
shape: "circle",
|
|
53
|
+
variant: "solid",
|
|
54
|
+
icon: /* @__PURE__ */ jsx(TbSearch, {}),
|
|
55
|
+
"aria-label": t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.botao`),
|
|
56
|
+
title: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.botao`)
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
onChange: (e) => setTexto(e.target.value)
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
BuscaForm as default
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=BuscaForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuscaForm.js","sources":["../../../../../lib/base/components/centralAjuda/components/BuscaForm.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport classNames from 'classnames'\nimport Button from '@/components/ui/Button'\nimport Input from '@/components/ui/Input'\nimport { TbSearch } from 'react-icons/tb'\nimport { useTranslation } from 'react-i18next'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../utils'\n\ntype BuscaFormProps = {\n id: string\n busca: string\n onBuscar: (texto: string) => void\n /** `destaque`: caixa branca maior do hero (Support Hub do template). */\n variante?: 'destaque' | 'padrao'\n className?: string\n}\n\n/** Busca no estilo do Support Hub: campo com botão redondo de busca dentro. */\nconst BuscaForm = ({\n id,\n busca,\n onBuscar,\n variante = 'padrao',\n className,\n}: BuscaFormProps) => {\n const { t } = useTranslation()\n const [texto, setTexto] = useState(busca)\n const destaque = variante === 'destaque'\n\n useEffect(() => {\n setTexto(busca)\n }, [busca])\n\n return (\n <form\n role=\"search\"\n className={classNames('w-full', className)}\n onSubmit={(e) => {\n e.preventDefault()\n onBuscar(texto)\n }}\n >\n <label htmlFor={id} className=\"sr-only\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.label`)}\n </label>\n <Input\n id={id}\n type=\"text\"\n enterKeyHint=\"search\"\n size={destaque ? 'lg' : 'md'}\n value={texto}\n placeholder={t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.placeholder`)}\n className={classNames(\n destaque &&\n '[&_.input]:border-gray-200 [&_.input]:bg-white dark:[&_.input]:border-gray-700 dark:[&_.input]:bg-gray-800',\n )}\n suffix={\n <Button\n type=\"submit\"\n size=\"xs\"\n shape=\"circle\"\n variant=\"solid\"\n icon={<TbSearch />}\n aria-label={t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.botao`)}\n title={t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.botao`)}\n />\n }\n onChange={(e) => setTexto(e.target.value)}\n />\n </form>\n )\n}\n\nexport default BuscaForm\n"],"names":[],"mappings":";;;;;;;;;;AAkBA,MAAM,YAAY,CAAC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AACJ,MAAsB;AAClB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,KAAK;AACxC,QAAM,WAAW,aAAa;AAE9B,YAAU,MAAM;AACZ,aAAS,KAAK;AAAA,EAClB,GAAG,CAAC,KAAK,CAAC;AAEV,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,WAAW,WAAW,UAAU,SAAS;AAAA,MACzC,UAAU,CAAC,MAAM;AACb,UAAE,eAAA;AACF,iBAAS,KAAK;AAAA,MAClB;AAAA,MAEA,UAAA;AAAA,QAAA,oBAAC,SAAA,EAAM,SAAS,IAAI,WAAU,WACzB,UAAA,EAAE,GAAG,0BAA0B,cAAc,EAAA,CAClD;AAAA,QACA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG;AAAA,YACA,MAAK;AAAA,YACL,cAAa;AAAA,YACb,MAAM,WAAW,OAAO;AAAA,YACxB,OAAO;AAAA,YACP,aAAa,EAAE,GAAG,0BAA0B,oBAAoB;AAAA,YAChE,WAAW;AAAA,cACP,YACI;AAAA,YAAA;AAAA,YAER,QACI;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,0BAAO,UAAA,EAAS;AAAA,gBAChB,cAAY,EAAE,GAAG,0BAA0B,cAAc;AAAA,gBACzD,OAAO,EAAE,GAAG,0BAA0B,cAAc;AAAA,cAAA;AAAA,YAAA;AAAA,YAG5D,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MAC5C;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import "../../../../@ecme/components/ui/Card/index.js";
|
|
4
|
+
import Card from "../../../../@ecme/components/ui/Card/Card.js";
|
|
5
|
+
const ESTILOS = {
|
|
6
|
+
tile: {
|
|
7
|
+
card: "group rounded-xl border-0 bg-gray-100 shadow-none transition-colors hover:bg-primary dark:bg-gray-700",
|
|
8
|
+
corpo: "flex flex-col items-center gap-3 p-8 text-center"
|
|
9
|
+
},
|
|
10
|
+
linha: {
|
|
11
|
+
card: "group rounded-none border-0 bg-transparent shadow-none dark:bg-transparent",
|
|
12
|
+
corpo: "flex items-center gap-4 px-0 py-6"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const CartaoClicavel = ({
|
|
16
|
+
children,
|
|
17
|
+
onClick,
|
|
18
|
+
variante,
|
|
19
|
+
className,
|
|
20
|
+
bodyClass,
|
|
21
|
+
ariaLabel
|
|
22
|
+
}) => {
|
|
23
|
+
const handleKeyDown = (e) => {
|
|
24
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
onClick();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
Card,
|
|
31
|
+
{
|
|
32
|
+
clickable: true,
|
|
33
|
+
role: "button",
|
|
34
|
+
tabIndex: 0,
|
|
35
|
+
"aria-label": ariaLabel,
|
|
36
|
+
className: classNames(
|
|
37
|
+
ESTILOS[variante].card,
|
|
38
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
39
|
+
className
|
|
40
|
+
),
|
|
41
|
+
bodyClass: classNames(ESTILOS[variante].corpo, bodyClass),
|
|
42
|
+
onClick,
|
|
43
|
+
onKeyDown: handleKeyDown,
|
|
44
|
+
children
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
CartaoClicavel as default
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=CartaoClicavel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartaoClicavel.js","sources":["../../../../../lib/base/components/centralAjuda/components/CartaoClicavel.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport Card from '@/components/ui/Card'\nimport type { KeyboardEvent, ReactNode } from 'react'\n\nexport type TVarianteCartao = 'tile' | 'linha'\n\n/** Estilos do Support Hub do template: tile de categoria e linha de artigo. */\nconst ESTILOS: Record<TVarianteCartao, { card: string; corpo: string }> = {\n tile: {\n card: 'group rounded-xl border-0 bg-gray-100 shadow-none transition-colors hover:bg-primary dark:bg-gray-700',\n corpo: 'flex flex-col items-center gap-3 p-8 text-center',\n },\n linha: {\n card: 'group rounded-none border-0 bg-transparent shadow-none dark:bg-transparent',\n corpo: 'flex items-center gap-4 px-0 py-6',\n },\n}\n\ntype CartaoClicavelProps = {\n children: ReactNode\n onClick: () => void\n variante: TVarianteCartao\n className?: string\n bodyClass?: string\n ariaLabel?: string\n}\n\n/** Card do template acessível por teclado (Enter/Espaço), nas variantes do Support Hub. */\nconst CartaoClicavel = ({\n children,\n onClick,\n variante,\n className,\n bodyClass,\n ariaLabel,\n}: CartaoClicavelProps) => {\n const handleKeyDown = (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n onClick()\n }\n }\n\n return (\n <Card\n clickable\n role=\"button\"\n tabIndex={0}\n aria-label={ariaLabel}\n className={classNames(\n ESTILOS[variante].card,\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary',\n className,\n )}\n bodyClass={classNames(ESTILOS[variante].corpo, bodyClass)}\n onClick={onClick}\n onKeyDown={handleKeyDown}\n >\n {children}\n </Card>\n )\n}\n\nexport default CartaoClicavel\n"],"names":[],"mappings":";;;;AAOA,MAAM,UAAoE;AAAA,EACtE,MAAM;AAAA,IACF,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAEX,OAAO;AAAA,IACH,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAEf;AAYA,MAAM,iBAAiB,CAAC;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAA2B;AACvB,QAAM,gBAAgB,CAAC,MAAqC;AACxD,QAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KAAK;AACpC,QAAE,eAAA;AACF,cAAA;AAAA,IACJ;AAAA,EACJ;AAEA,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAS;AAAA,MACT,MAAK;AAAA,MACL,UAAU;AAAA,MACV,cAAY;AAAA,MACZ,WAAW;AAAA,QACP,QAAQ,QAAQ,EAAE;AAAA,QAClB;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,WAAW,WAAW,QAAQ,QAAQ,EAAE,OAAO,SAAS;AAAA,MACxD;AAAA,MACA,WAAW;AAAA,MAEV;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import ReactHtmlParser, { Element, Text, domToReact } from "html-react-parser";
|
|
5
|
+
import { Steps } from "../../../../@ecme/components/ui/Steps/index.js";
|
|
6
|
+
const ehElemento = (node) => node instanceof Element;
|
|
7
|
+
const ehDestaque = (node) => !!node && ehElemento(node) && (node.name === "strong" || node.name === "b");
|
|
8
|
+
const semEspacos = (nodes) => nodes.filter((node) => !(node instanceof Text && !node.data.trim()));
|
|
9
|
+
const linkSeguro = (href) => !!href && !/^\s*javascript:/i.test(href);
|
|
10
|
+
const criarOpcoes = (inline) => {
|
|
11
|
+
const opcoes = {
|
|
12
|
+
replace(node) {
|
|
13
|
+
if (!ehElemento(node)) return void 0;
|
|
14
|
+
const filhos = node.children;
|
|
15
|
+
const conteudo = () => domToReact(filhos, opcoes);
|
|
16
|
+
switch (node.name) {
|
|
17
|
+
case "p":
|
|
18
|
+
return inline ? /* @__PURE__ */ jsx("span", { className: "block", children: conteudo() }) : /* @__PURE__ */ jsx("p", { className: "max-w-[65ch] text-gray-700 dark:text-gray-300", children: conteudo() });
|
|
19
|
+
case "h1":
|
|
20
|
+
case "h2":
|
|
21
|
+
return /* @__PURE__ */ jsx("h2", { className: "mt-2 text-lg font-semibold", children: conteudo() });
|
|
22
|
+
case "h3":
|
|
23
|
+
case "h4":
|
|
24
|
+
case "h5":
|
|
25
|
+
case "h6":
|
|
26
|
+
return /* @__PURE__ */ jsx("h3", { className: "mt-2 text-base font-semibold", children: conteudo() });
|
|
27
|
+
case "ul":
|
|
28
|
+
return /* @__PURE__ */ jsx("ul", { className: "flex max-w-[65ch] list-disc flex-col gap-1 pl-5 text-gray-700 dark:text-gray-300", children: conteudo() });
|
|
29
|
+
case "ol":
|
|
30
|
+
return /* @__PURE__ */ jsx(ListaDePassos, { itens: filhos });
|
|
31
|
+
case "a": {
|
|
32
|
+
const href = node.attribs.href;
|
|
33
|
+
if (!linkSeguro(href)) return /* @__PURE__ */ jsx("span", { children: conteudo() });
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
"a",
|
|
36
|
+
{
|
|
37
|
+
href,
|
|
38
|
+
target: "_blank",
|
|
39
|
+
rel: "noopener noreferrer",
|
|
40
|
+
className: "font-medium text-primary underline-offset-2 hover:underline",
|
|
41
|
+
children: conteudo()
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
case "img":
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
"img",
|
|
48
|
+
{
|
|
49
|
+
src: node.attribs.src,
|
|
50
|
+
alt: node.attribs.alt ?? "",
|
|
51
|
+
className: "max-w-full rounded-xl"
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
case "blockquote":
|
|
55
|
+
return /* @__PURE__ */ jsx("blockquote", { className: "max-w-[65ch] border-l-4 border-gray-200 pl-4 italic text-gray-600 dark:border-gray-600 dark:text-gray-300", children: conteudo() });
|
|
56
|
+
case "pre":
|
|
57
|
+
return /* @__PURE__ */ jsx("pre", { className: "overflow-x-auto rounded-xl bg-gray-100 p-4 text-sm dark:bg-gray-700", children: conteudo() });
|
|
58
|
+
case "code":
|
|
59
|
+
if (ehElemento(node.parent) && node.parent.name === "pre") {
|
|
60
|
+
return void 0;
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ jsx("code", { className: "rounded bg-gray-100 px-1 py-0.5 text-sm dark:bg-gray-700", children: conteudo() });
|
|
63
|
+
case "hr":
|
|
64
|
+
return /* @__PURE__ */ jsx("hr", { className: "border-gray-200 dark:border-gray-700" });
|
|
65
|
+
case "script":
|
|
66
|
+
case "style":
|
|
67
|
+
case "iframe":
|
|
68
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
69
|
+
default:
|
|
70
|
+
return void 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return opcoes;
|
|
75
|
+
};
|
|
76
|
+
const opcoesBloco = criarOpcoes(false);
|
|
77
|
+
const opcoesInline = criarOpcoes(true);
|
|
78
|
+
const paraInline = (nodes) => nodes.length ? domToReact(nodes, opcoesInline) : void 0;
|
|
79
|
+
const montarPasso = (li) => {
|
|
80
|
+
const filhos = semEspacos(li.children);
|
|
81
|
+
const destaque = filhos.find((filho) => ehDestaque(filho));
|
|
82
|
+
if (ehDestaque(destaque)) {
|
|
83
|
+
return {
|
|
84
|
+
titulo: paraInline(destaque.children),
|
|
85
|
+
descricao: paraInline(filhos.filter((filho) => filho !== destaque))
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const [primeiro, ...demais] = filhos;
|
|
89
|
+
if (primeiro && ehElemento(primeiro) && primeiro.name === "p") {
|
|
90
|
+
const [inicio, ...restoDoParagrafo] = semEspacos(
|
|
91
|
+
primeiro.children
|
|
92
|
+
);
|
|
93
|
+
if (ehDestaque(inicio)) {
|
|
94
|
+
return {
|
|
95
|
+
titulo: paraInline(inicio.children),
|
|
96
|
+
descricao: paraInline([...restoDoParagrafo, ...demais])
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
titulo: paraInline(primeiro.children),
|
|
101
|
+
descricao: paraInline(demais)
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
return { titulo: paraInline(filhos) };
|
|
105
|
+
};
|
|
106
|
+
const ListaDePassos = ({ itens }) => {
|
|
107
|
+
const passos = itens.filter(ehElemento).filter((el) => el.name === "li").map(montarPasso);
|
|
108
|
+
return /* @__PURE__ */ jsx(Steps, { vertical: true, className: "my-2", children: passos.map((passo, indice) => /* @__PURE__ */ jsx(
|
|
109
|
+
Steps.Item,
|
|
110
|
+
{
|
|
111
|
+
status: "pending",
|
|
112
|
+
title: passo.titulo,
|
|
113
|
+
description: passo.descricao
|
|
114
|
+
},
|
|
115
|
+
indice
|
|
116
|
+
)) });
|
|
117
|
+
};
|
|
118
|
+
const ConteudoHtml = ({ html, className }) => {
|
|
119
|
+
const conteudo = useMemo(() => ReactHtmlParser(html ?? "", opcoesBloco), [html]);
|
|
120
|
+
return /* @__PURE__ */ jsx(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
className: classNames(
|
|
124
|
+
"flex flex-col gap-4 text-base leading-relaxed",
|
|
125
|
+
className
|
|
126
|
+
),
|
|
127
|
+
children: conteudo
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
export {
|
|
132
|
+
ConteudoHtml as default
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=ConteudoHtml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConteudoHtml.js","sources":["../../../../../lib/base/components/centralAjuda/components/ConteudoHtml.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport type { ReactNode } from 'react'\nimport classNames from 'classnames'\nimport parse, {\n domToReact,\n Element,\n Text,\n type DOMNode,\n type HTMLReactParserOptions,\n} from 'html-react-parser'\nimport Steps from '@/components/ui/Steps'\n\nconst ehElemento = (node: DOMNode): node is Element => node instanceof Element\n\nconst ehDestaque = (node?: DOMNode): node is Element =>\n !!node && ehElemento(node) && (node.name === 'strong' || node.name === 'b')\n\n/** Ignora os textos só de espaço que o HTML traz entre as tags. */\nconst semEspacos = (nodes: DOMNode[]) =>\n nodes.filter((node) => !(node instanceof Text && !node.data.trim()))\n\nconst linkSeguro = (href?: string) =>\n !!href && !/^\\s*javascript:/i.test(href)\n\nconst criarOpcoes = (inline: boolean): HTMLReactParserOptions => {\n const opcoes: HTMLReactParserOptions = {\n replace(node) {\n if (!ehElemento(node)) return undefined\n\n const filhos = node.children as DOMNode[]\n const conteudo = () => domToReact(filhos, opcoes)\n\n switch (node.name) {\n case 'p':\n return inline ? (\n <span className=\"block\">{conteudo()}</span>\n ) : (\n <p className=\"max-w-[65ch] text-gray-700 dark:text-gray-300\">\n {conteudo()}\n </p>\n )\n case 'h1':\n case 'h2':\n return (\n <h2 className=\"mt-2 text-lg font-semibold\">{conteudo()}</h2>\n )\n case 'h3':\n case 'h4':\n case 'h5':\n case 'h6':\n return (\n <h3 className=\"mt-2 text-base font-semibold\">\n {conteudo()}\n </h3>\n )\n case 'ul':\n return (\n <ul className=\"flex max-w-[65ch] list-disc flex-col gap-1 pl-5 text-gray-700 dark:text-gray-300\">\n {conteudo()}\n </ul>\n )\n case 'ol':\n return <ListaDePassos itens={filhos} />\n case 'a': {\n const href = node.attribs.href\n if (!linkSeguro(href)) return <span>{conteudo()}</span>\n return (\n <a\n href={href}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"font-medium text-primary underline-offset-2 hover:underline\"\n >\n {conteudo()}\n </a>\n )\n }\n case 'img':\n return (\n <img\n src={node.attribs.src}\n alt={node.attribs.alt ?? ''}\n className=\"max-w-full rounded-xl\"\n />\n )\n case 'blockquote':\n return (\n <blockquote className=\"max-w-[65ch] border-l-4 border-gray-200 pl-4 italic text-gray-600 dark:border-gray-600 dark:text-gray-300\">\n {conteudo()}\n </blockquote>\n )\n case 'pre':\n return (\n <pre className=\"overflow-x-auto rounded-xl bg-gray-100 p-4 text-sm dark:bg-gray-700\">\n {conteudo()}\n </pre>\n )\n case 'code':\n // Dentro de <pre> o bloco já tem o fundo.\n if (ehElemento(node.parent as DOMNode) && (node.parent as Element).name === 'pre') {\n return undefined\n }\n return (\n <code className=\"rounded bg-gray-100 px-1 py-0.5 text-sm dark:bg-gray-700\">\n {conteudo()}\n </code>\n )\n case 'hr':\n return <hr className=\"border-gray-200 dark:border-gray-700\" />\n case 'script':\n case 'style':\n case 'iframe':\n return <></>\n default:\n return undefined\n }\n },\n }\n return opcoes\n}\n\nconst opcoesBloco = criarOpcoes(false)\nconst opcoesInline = criarOpcoes(true)\n\ntype TPasso = { titulo: ReactNode; descricao?: ReactNode }\n\nconst paraInline = (nodes: DOMNode[]) =>\n nodes.length ? domToReact(nodes, opcoesInline) : undefined\n\n/**\n * Título e descrição de um item de lista numerada. Formatos aceitos:\n * - `<li><strong>Título</strong><p>Texto</p></li>`\n * - `<li><p><strong>Título</strong> texto</p></li>` (editor de conteúdo)\n * - `<li><p>Texto</p>...</li>`: o primeiro parágrafo vira o título.\n */\nconst montarPasso = (li: Element): TPasso => {\n const filhos = semEspacos(li.children as DOMNode[])\n\n const destaque = filhos.find((filho) => ehDestaque(filho))\n if (ehDestaque(destaque)) {\n return {\n titulo: paraInline(destaque.children as DOMNode[]),\n descricao: paraInline(filhos.filter((filho) => filho !== destaque)),\n }\n }\n\n const [primeiro, ...demais] = filhos\n if (primeiro && ehElemento(primeiro) && primeiro.name === 'p') {\n const [inicio, ...restoDoParagrafo] = semEspacos(\n primeiro.children as DOMNode[],\n )\n if (ehDestaque(inicio)) {\n return {\n titulo: paraInline(inicio.children as DOMNode[]),\n descricao: paraInline([...restoDoParagrafo, ...demais]),\n }\n }\n return {\n titulo: paraInline(primeiro.children as DOMNode[]),\n descricao: paraInline(demais),\n }\n }\n\n return { titulo: paraInline(filhos) }\n}\n\n/** Lista numerada (`<ol>`) → Steps vertical do template. */\nconst ListaDePassos = ({ itens }: { itens: DOMNode[] }) => {\n const passos = itens\n .filter(ehElemento)\n .filter((el) => el.name === 'li')\n .map(montarPasso)\n\n return (\n <Steps vertical className=\"my-2\">\n {passos.map((passo, indice) => (\n <Steps.Item\n key={indice}\n status=\"pending\"\n title={passo.titulo}\n description={passo.descricao}\n />\n ))}\n </Steps>\n )\n}\n\ntype ConteudoHtmlProps = {\n html: string\n className?: string\n}\n\n/** Renderiza o `conteudo` (HTML) de uma FAQ com componentes do template e classes Tailwind. */\nconst ConteudoHtml = ({ html, className }: ConteudoHtmlProps) => {\n const conteudo = useMemo(() => parse(html ?? '', opcoesBloco), [html])\n\n return (\n <div\n className={classNames(\n 'flex flex-col gap-4 text-base leading-relaxed',\n className,\n )}\n >\n {conteudo}\n </div>\n )\n}\n\nexport default ConteudoHtml\n"],"names":["parse"],"mappings":";;;;;AAYA,MAAM,aAAa,CAAC,SAAmC,gBAAgB;AAEvE,MAAM,aAAa,CAAC,SAChB,CAAC,CAAC,QAAQ,WAAW,IAAI,MAAM,KAAK,SAAS,YAAY,KAAK,SAAS;AAG3E,MAAM,aAAa,CAAC,UAChB,MAAM,OAAO,CAAC,SAAS,EAAE,gBAAgB,QAAQ,CAAC,KAAK,KAAK,OAAO;AAEvE,MAAM,aAAa,CAAC,SAChB,CAAC,CAAC,QAAQ,CAAC,mBAAmB,KAAK,IAAI;AAE3C,MAAM,cAAc,CAAC,WAA4C;AAC7D,QAAM,SAAiC;AAAA,IACnC,QAAQ,MAAM;AACV,UAAI,CAAC,WAAW,IAAI,EAAG,QAAO;AAE9B,YAAM,SAAS,KAAK;AACpB,YAAM,WAAW,MAAM,WAAW,QAAQ,MAAM;AAEhD,cAAQ,KAAK,MAAA;AAAA,QACT,KAAK;AACD,iBAAO,SACH,oBAAC,QAAA,EAAK,WAAU,SAAS,UAAA,SAAA,EAAS,CAAE,IAEpC,oBAAC,KAAA,EAAE,WAAU,iDACR,sBACL;AAAA,QAER,KAAK;AAAA,QACL,KAAK;AACD,iBACI,oBAAC,MAAA,EAAG,WAAU,8BAA8B,sBAAW;AAAA,QAE/D,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AACD,iBACI,oBAAC,MAAA,EAAG,WAAU,gCACT,sBACL;AAAA,QAER,KAAK;AACD,iBACI,oBAAC,MAAA,EAAG,WAAU,oFACT,sBACL;AAAA,QAER,KAAK;AACD,iBAAO,oBAAC,eAAA,EAAc,OAAO,OAAA,CAAQ;AAAA,QACzC,KAAK,KAAK;AACN,gBAAM,OAAO,KAAK,QAAQ;AAC1B,cAAI,CAAC,WAAW,IAAI,UAAU,oBAAC,QAAA,EAAM,sBAAW;AAChD,iBACI;AAAA,YAAC;AAAA,YAAA;AAAA,cACG;AAAA,cACA,QAAO;AAAA,cACP,KAAI;AAAA,cACJ,WAAU;AAAA,cAET,UAAA,SAAA;AAAA,YAAS;AAAA,UAAA;AAAA,QAGtB;AAAA,QACA,KAAK;AACD,iBACI;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,KAAK,KAAK,QAAQ;AAAA,cAClB,KAAK,KAAK,QAAQ,OAAO;AAAA,cACzB,WAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QAGtB,KAAK;AACD,iBACI,oBAAC,cAAA,EAAW,WAAU,6GACjB,sBACL;AAAA,QAER,KAAK;AACD,iBACI,oBAAC,OAAA,EAAI,WAAU,uEACV,sBACL;AAAA,QAER,KAAK;AAED,cAAI,WAAW,KAAK,MAAiB,KAAM,KAAK,OAAmB,SAAS,OAAO;AAC/E,mBAAO;AAAA,UACX;AACA,iBACI,oBAAC,QAAA,EAAK,WAAU,4DACX,sBACL;AAAA,QAER,KAAK;AACD,iBAAO,oBAAC,MAAA,EAAG,WAAU,uCAAA,CAAuC;AAAA,QAChE,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AACD,iBAAO,oBAAA,UAAA,EAAE;AAAA,QACb;AACI,iBAAO;AAAA,MAAA;AAAA,IAEnB;AAAA,EAAA;AAEJ,SAAO;AACX;AAEA,MAAM,cAAc,YAAY,KAAK;AACrC,MAAM,eAAe,YAAY,IAAI;AAIrC,MAAM,aAAa,CAAC,UAChB,MAAM,SAAS,WAAW,OAAO,YAAY,IAAI;AAQrD,MAAM,cAAc,CAAC,OAAwB;AACzC,QAAM,SAAS,WAAW,GAAG,QAAqB;AAElD,QAAM,WAAW,OAAO,KAAK,CAAC,UAAU,WAAW,KAAK,CAAC;AACzD,MAAI,WAAW,QAAQ,GAAG;AACtB,WAAO;AAAA,MACH,QAAQ,WAAW,SAAS,QAAqB;AAAA,MACjD,WAAW,WAAW,OAAO,OAAO,CAAC,UAAU,UAAU,QAAQ,CAAC;AAAA,IAAA;AAAA,EAE1E;AAEA,QAAM,CAAC,UAAU,GAAG,MAAM,IAAI;AAC9B,MAAI,YAAY,WAAW,QAAQ,KAAK,SAAS,SAAS,KAAK;AAC3D,UAAM,CAAC,QAAQ,GAAG,gBAAgB,IAAI;AAAA,MAClC,SAAS;AAAA,IAAA;AAEb,QAAI,WAAW,MAAM,GAAG;AACpB,aAAO;AAAA,QACH,QAAQ,WAAW,OAAO,QAAqB;AAAA,QAC/C,WAAW,WAAW,CAAC,GAAG,kBAAkB,GAAG,MAAM,CAAC;AAAA,MAAA;AAAA,IAE9D;AACA,WAAO;AAAA,MACH,QAAQ,WAAW,SAAS,QAAqB;AAAA,MACjD,WAAW,WAAW,MAAM;AAAA,IAAA;AAAA,EAEpC;AAEA,SAAO,EAAE,QAAQ,WAAW,MAAM,EAAA;AACtC;AAGA,MAAM,gBAAgB,CAAC,EAAE,YAAkC;AACvD,QAAM,SAAS,MACV,OAAO,UAAU,EACjB,OAAO,CAAC,OAAO,GAAG,SAAS,IAAI,EAC/B,IAAI,WAAW;AAEpB,SACI,oBAAC,OAAA,EAAM,UAAQ,MAAC,WAAU,QACrB,UAAA,OAAO,IAAI,CAAC,OAAO,WAChB;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MAEG,QAAO;AAAA,MACP,OAAO,MAAM;AAAA,MACb,aAAa,MAAM;AAAA,IAAA;AAAA,IAHd;AAAA,EAAA,CAKZ,GACL;AAER;AAQA,MAAM,eAAe,CAAC,EAAE,MAAM,gBAAmC;AAC7D,QAAM,WAAW,QAAQ,MAAMA,gBAAM,QAAQ,IAAI,WAAW,GAAG,CAAC,IAAI,CAAC;AAErE,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,MAAA;AAAA,MAGH,UAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { Avatar } from "../../../../@ecme/components/ui/Avatar/index.js";
|
|
4
|
+
import "../../../../@ecme/components/ui/Button/index.js";
|
|
5
|
+
import "../../../../@ecme/components/ui/Card/index.js";
|
|
6
|
+
import { TbMessageChatbot } from "react-icons/tb";
|
|
7
|
+
import { useTranslation } from "react-i18next";
|
|
8
|
+
import useNavegarAjuda from "../rota/useNavegarAjuda.js";
|
|
9
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../utils.js";
|
|
10
|
+
import Card from "../../../../@ecme/components/ui/Card/Card.js";
|
|
11
|
+
import Button from "../../../../@ecme/components/ui/Button/Button.js";
|
|
12
|
+
const CtaAjudaCard = ({
|
|
13
|
+
titulo,
|
|
14
|
+
texto,
|
|
15
|
+
perguntaIa,
|
|
16
|
+
assuntoDuvida,
|
|
17
|
+
className
|
|
18
|
+
}) => {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
const { abrirOrbeAi, abrirDuvida } = useNavegarAjuda();
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
Card,
|
|
23
|
+
{
|
|
24
|
+
className: classNames(
|
|
25
|
+
"rounded-xl border-0 bg-gray-100 shadow-none dark:bg-gray-700",
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
bodyClass: "flex flex-col items-center gap-3 p-8 text-center",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
Avatar,
|
|
32
|
+
{
|
|
33
|
+
size: 56,
|
|
34
|
+
shape: "circle",
|
|
35
|
+
className: "bg-neutral text-primary",
|
|
36
|
+
icon: /* @__PURE__ */ jsx(TbMessageChatbot, {})
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsx("h2", { className: "h4 mt-3", children: titulo }),
|
|
40
|
+
texto && /* @__PURE__ */ jsx("p", { className: "max-w-[300px]", children: texto }),
|
|
41
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex w-full flex-col gap-2", children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
Button,
|
|
44
|
+
{
|
|
45
|
+
block: true,
|
|
46
|
+
variant: "solid",
|
|
47
|
+
onClick: () => abrirOrbeAi(perguntaIa),
|
|
48
|
+
children: t(
|
|
49
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.naoEncontrou.perguntarIa`
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ jsx(Button, { block: true, onClick: () => abrirDuvida(assuntoDuvida), children: t(
|
|
54
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.naoEncontrou.registrarDuvida`
|
|
55
|
+
) })
|
|
56
|
+
] })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
CtaAjudaCard as default
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=CtaAjudaCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CtaAjudaCard.js","sources":["../../../../../lib/base/components/centralAjuda/components/CtaAjudaCard.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport Avatar from '@/components/ui/Avatar'\nimport Button from '@/components/ui/Button'\nimport Card from '@/components/ui/Card'\nimport { TbMessageChatbot } from 'react-icons/tb'\nimport { useTranslation } from 'react-i18next'\nimport useNavegarAjuda from '../rota/useNavegarAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../utils'\n\ntype CtaAjudaCardProps = {\n titulo: string\n texto?: string\n /** Pergunta enviada ao OrbeAI (vazia abre o OrbeAI sem pergunta). */\n perguntaIa?: string\n /** Assunto sugerido no registro de dúvida. */\n assuntoDuvida?: string\n className?: string\n}\n\n/** Atalhos \"Perguntar ao OrbeAI\" e \"Registrar dúvida\", no estilo de tile do Support Hub. */\nconst CtaAjudaCard = ({\n titulo,\n texto,\n perguntaIa,\n assuntoDuvida,\n className,\n}: CtaAjudaCardProps) => {\n const { t } = useTranslation()\n const { abrirOrbeAi, abrirDuvida } = useNavegarAjuda()\n\n return (\n <Card\n className={classNames(\n 'rounded-xl border-0 bg-gray-100 shadow-none dark:bg-gray-700',\n className,\n )}\n bodyClass=\"flex flex-col items-center gap-3 p-8 text-center\"\n >\n <Avatar\n size={56}\n shape=\"circle\"\n className=\"bg-neutral text-primary\"\n icon={<TbMessageChatbot />}\n />\n <h2 className=\"h4 mt-3\">{titulo}</h2>\n {texto && <p className=\"max-w-[300px]\">{texto}</p>}\n <div className=\"mt-2 flex w-full flex-col gap-2\">\n <Button\n block\n variant=\"solid\"\n onClick={() => abrirOrbeAi(perguntaIa)}\n >\n {t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.naoEncontrou.perguntarIa`,\n )}\n </Button>\n <Button block onClick={() => abrirDuvida(assuntoDuvida)}>\n {t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.naoEncontrou.registrarDuvida`,\n )}\n </Button>\n </div>\n </Card>\n )\n}\n\nexport default CtaAjudaCard\n"],"names":[],"mappings":";;;;;;;;;;;AAoBA,MAAM,eAAe,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAyB;AACrB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,EAAE,aAAa,YAAA,IAAgB,gBAAA;AAErC,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,WAAU;AAAA,MAEV,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,MAAM;AAAA,YACN,OAAM;AAAA,YACN,WAAU;AAAA,YACV,0BAAO,kBAAA,CAAA,CAAiB;AAAA,UAAA;AAAA,QAAA;AAAA,QAE5B,oBAAC,MAAA,EAAG,WAAU,WAAW,UAAA,QAAO;AAAA,QAC/B,SAAS,oBAAC,KAAA,EAAE,WAAU,iBAAiB,UAAA,OAAM;AAAA,QAC9C,qBAAC,OAAA,EAAI,WAAU,mCACX,UAAA;AAAA,UAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,OAAK;AAAA,cACL,SAAQ;AAAA,cACR,SAAS,MAAM,YAAY,UAAU;AAAA,cAEpC,UAAA;AAAA,gBACG,GAAG,0BAA0B;AAAA,cAAA;AAAA,YACjC;AAAA,UAAA;AAAA,UAEJ,oBAAC,UAAO,OAAK,MAAC,SAAS,MAAM,YAAY,aAAa,GACjD,UAAA;AAAA,YACG,GAAG,0BAA0B;AAAA,UAAA,EACjC,CACJ;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../@ecme/components/ui/Alert/index.js";
|
|
3
|
+
import "../../../../@ecme/components/ui/Button/index.js";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../utils.js";
|
|
6
|
+
import Alert from "../../../../@ecme/components/ui/Alert/Alert.js";
|
|
7
|
+
import Button from "../../../../@ecme/components/ui/Button/Button.js";
|
|
8
|
+
const ErroCarregamento = ({
|
|
9
|
+
onTentarNovamente,
|
|
10
|
+
mensagem
|
|
11
|
+
}) => {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
return /* @__PURE__ */ jsx(Alert, { showIcon: true, type: "danger", className: "items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
14
|
+
/* @__PURE__ */ jsx("span", { children: mensagem ?? t(`${PREFIXO_I18N_CENTRAL_AJUDA}.erro.titulo`) }),
|
|
15
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", onClick: onTentarNovamente, children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.erro.tentarNovamente`) })
|
|
16
|
+
] }) });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
ErroCarregamento as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ErroCarregamento.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErroCarregamento.js","sources":["../../../../../lib/base/components/centralAjuda/components/ErroCarregamento.tsx"],"sourcesContent":["import Alert from '@/components/ui/Alert'\nimport Button from '@/components/ui/Button'\nimport { useTranslation } from 'react-i18next'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../utils'\n\ntype ErroCarregamentoProps = {\n onTentarNovamente: () => void\n mensagem?: string\n}\n\nconst ErroCarregamento = ({\n onTentarNovamente,\n mensagem,\n}: ErroCarregamentoProps) => {\n const { t } = useTranslation()\n\n return (\n <Alert showIcon type=\"danger\" className=\"items-center\">\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <span>\n {mensagem ?? t(`${PREFIXO_I18N_CENTRAL_AJUDA}.erro.titulo`)}\n </span>\n <Button size=\"sm\" onClick={onTentarNovamente}>\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.erro.tentarNovamente`)}\n </Button>\n </div>\n </Alert>\n )\n}\n\nexport default ErroCarregamento\n"],"names":[],"mappings":";;;;;;;AAUA,MAAM,mBAAmB,CAAC;AAAA,EACtB;AAAA,EACA;AACJ,MAA6B;AACzB,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,SACI,oBAAC,OAAA,EAAM,UAAQ,MAAC,MAAK,UAAS,WAAU,gBACpC,UAAA,qBAAC,OAAA,EAAI,WAAU,qDACX,UAAA;AAAA,IAAA,oBAAC,UACI,UAAA,YAAY,EAAE,GAAG,0BAA0B,cAAc,GAC9D;AAAA,IACA,oBAAC,QAAA,EAAO,MAAK,MAAK,SAAS,mBACtB,UAAA,EAAE,GAAG,0BAA0B,uBAAuB,EAAA,CAC3D;AAAA,EAAA,EAAA,CACJ,EAAA,CACJ;AAER;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from "react";
|
|
3
|
+
import { Avatar } from "../../../../@ecme/components/ui/Avatar/index.js";
|
|
4
|
+
import CartaoClicavel from "./CartaoClicavel.js";
|
|
5
|
+
const LinhaConteudo = ({
|
|
6
|
+
icone: Icone,
|
|
7
|
+
titulo,
|
|
8
|
+
meta = [],
|
|
9
|
+
onClick
|
|
10
|
+
}) => {
|
|
11
|
+
const detalhes = meta.filter(Boolean);
|
|
12
|
+
return /* @__PURE__ */ jsxs(CartaoClicavel, { variante: "linha", onClick, children: [
|
|
13
|
+
/* @__PURE__ */ jsx(
|
|
14
|
+
Avatar,
|
|
15
|
+
{
|
|
16
|
+
size: 50,
|
|
17
|
+
shape: "round",
|
|
18
|
+
className: "shrink-0 bg-gray-100 dark:bg-gray-700",
|
|
19
|
+
icon: /* @__PURE__ */ jsx(Icone, { className: "heading-text" })
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("span", { className: "h6 font-bold transition-colors group-hover:text-primary", children: titulo }),
|
|
24
|
+
detalhes.length > 0 && /* @__PURE__ */ jsx("span", { className: "flex flex-wrap items-center gap-2", children: detalhes.map((item, indice) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
+
indice > 0 && /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: "•" }),
|
|
26
|
+
item
|
|
27
|
+
] }, indice)) })
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
LinhaConteudo as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=LinhaConteudo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinhaConteudo.js","sources":["../../../../../lib/base/components/centralAjuda/components/LinhaConteudo.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport Avatar from '@/components/ui/Avatar'\nimport type { ReactNode } from 'react'\nimport type { IconType } from 'react-icons'\nimport CartaoClicavel from './CartaoClicavel'\n\ntype LinhaConteudoProps = {\n icone: IconType\n titulo: string\n /** Itens da linha de detalhes, separados por \"•\". Itens vazios são ignorados. */\n meta?: ReactNode[]\n onClick: () => void\n}\n\n/** Linha de conteúdo no estilo \"Popular Articles\" do Support Hub do template. */\nconst LinhaConteudo = ({\n icone: Icone,\n titulo,\n meta = [],\n onClick,\n}: LinhaConteudoProps) => {\n const detalhes = meta.filter(Boolean)\n\n return (\n <CartaoClicavel variante=\"linha\" onClick={onClick}>\n <Avatar\n size={50}\n shape=\"round\"\n className=\"shrink-0 bg-gray-100 dark:bg-gray-700\"\n icon={<Icone className=\"heading-text\" />}\n />\n <span className=\"flex min-w-0 flex-col gap-1\">\n <span className=\"h6 font-bold transition-colors group-hover:text-primary\">\n {titulo}\n </span>\n {detalhes.length > 0 && (\n <span className=\"flex flex-wrap items-center gap-2\">\n {detalhes.map((item, indice) => (\n <Fragment key={indice}>\n {indice > 0 && <span aria-hidden>•</span>}\n {item}\n </Fragment>\n ))}\n </span>\n )}\n </span>\n </CartaoClicavel>\n )\n}\n\nexport default LinhaConteudo\n"],"names":[],"mappings":";;;;AAeA,MAAM,gBAAgB,CAAC;AAAA,EACnB,OAAO;AAAA,EACP;AAAA,EACA,OAAO,CAAA;AAAA,EACP;AACJ,MAA0B;AACtB,QAAM,WAAW,KAAK,OAAO,OAAO;AAEpC,SACI,qBAAC,gBAAA,EAAe,UAAS,SAAQ,SAC7B,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,OAAM;AAAA,QACN,WAAU;AAAA,QACV,MAAM,oBAAC,OAAA,EAAM,WAAU,eAAA,CAAe;AAAA,MAAA;AAAA,IAAA;AAAA,IAE1C,qBAAC,QAAA,EAAK,WAAU,+BACZ,UAAA;AAAA,MAAA,oBAAC,QAAA,EAAK,WAAU,2DACX,UAAA,QACL;AAAA,MACC,SAAS,SAAS,KACf,oBAAC,QAAA,EAAK,WAAU,qCACX,UAAA,SAAS,IAAI,CAAC,MAAM,gCAChB,UAAA,EACI,UAAA;AAAA,QAAA,SAAS,KAAK,oBAAC,QAAA,EAAK,eAAW,MAAC,UAAA,KAAC;AAAA,QACjC;AAAA,MAAA,EAAA,GAFU,MAGf,CACH,EAAA,CACL;AAAA,IAAA,EAAA,CAER;AAAA,EAAA,GACJ;AAER;"}
|