npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elogroup-sereduc/ser-front-bo-ui

v0.1.0

Published

Componentes de UI compartilhados para backoffices Ser Educacional — tela de login corporativa

Readme

@elogroup-sereduc/ser-front-bo-ui

Biblioteca de UI compartilhada para backoffices Ser Educacional.

Instalação

npm install @elogroup-sereduc/ser-front-bo-ui lucide-react

Peer dependencies: react, react-dom, lucide-react.

Estrutura do pacote

src/
├── components/login/   # peças reutilizáveis (form, layout, painel, defaults)
├── screens/login/      # telas compostas (BoLoginPage)
└── lib/                # utilitários (cn)
  • screens — telas prontas para uso em rotas
  • components — blocos e formulários para composição customizada

Tela de login

Export principal: BoLoginPage — layout split (painel de marca + formulário), com textos e links padrão iguais ao Gestão de Usuários.

Uso básico

import { BoLoginPage } from '@elogroup-sereduc/ser-front-bo-ui'

export function LoginRoute() {
  const [loading, setLoading] = useState(false)
  const [error, setError] = useState<string | null>(null)

  return (
    <BoLoginPage
      assetsBasePath="/gestao-usuarios" // prefixo do basePath do app
      onMicrosoftLogin={async () => {
        setLoading(true)
        setError(null)
        try {
          await loginWithMicrosoft()
        } catch (e) {
          setError(e instanceof Error ? e.message : 'Erro ao fazer login.')
        } finally {
          setLoading(false)
        }
      }}
      loading={loading}
      error={error}
      links={{ passwordChangeUrl: 'https://...' }}
    />
  )
}

Assets

Coloque na pasta public/ do app consumidor:

  • ser.svg
  • ser-login-bo-bg.png

Ou sobrescreva via prop assets:

<BoLoginPage assets={{ logo: '/meu-logo.svg', backgroundImage: '/bg.jpg' }} />

Customização

Todas as strings são configuráveis via copy:

<BoLoginPage copy={{ cardTitle: 'Acessar', headlineLine1: 'Bem-vindo' }} />

Links via links (policyUrl, passwordChangeUrl).

Composição

Para integrar com roteadores (ex.: TanStack Router Outlet):

  • BoLoginLayout — grid com slot do painel e coluna do formulário
  • BoLoginBrandPanel — painel esquerdo (desktop)
  • BoLoginForm — card de login + política
import {
  BoLoginLayout,
  BoLoginBrandPanel,
  BoLoginForm,
} from '@elogroup-sereduc/ser-front-bo-ui'

<BoLoginLayout brandPanel={<BoLoginBrandPanel assetsBasePath={base} />}>
  <div className="w-full max-w-[420px]">
    <BoLoginForm onMicrosoftLogin={handleLogin} />
  </div>
</BoLoginLayout>

Tailwind CSS

Os componentes usam classes Tailwind (text-primary, bg-primary, etc.). O app consumidor precisa:

  1. Ter Tailwind configurado com as variáveis de tema (shadcn ou equivalente).
  2. Incluir o pacote no scan de conteúdo:
// tailwind.config.js
content: [
  './src/**/*.{ts,tsx}',
  './node_modules/@elogroup-sereduc/ser-front-bo-ui/dist/**/*.js',
]

Tailwind v4 (@source):

@source "../node_modules/@elogroup-sereduc/ser-front-bo-ui/dist/**/*.js";

Exports

| Export | Descrição | |--------|-----------| | BoLoginPage | Tela completa | | BoLoginLayout | Layout split | | BoLoginBrandPanel | Painel de marca | | BoLoginForm | Formulário | | DEFAULT_LOGIN_COPY | Textos padrão | | DEFAULT_LOGIN_LINKS | Links padrão | | DEFAULT_LOGIN_ASSETS | Caminhos dos assets | | resolveAssetUrl | Helper basePath + asset |

Publicação

npm run build
npm publish --access public