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 🙏

© 2025 – Pkg Stats / Ryan Hefner

logicom-ui-kit

v1.0.7

Published

O Logicom UI Kit é uma biblioteca de componentes de interface de usuário (UI) para React Native, projetada para acelerar o desenvolvimento de seus aplicativos. Ele oferece um conjunto de componentes prontos para uso, totalmente estilizáveis e fáceis de in

Readme

Logicom UI Kit

O Logicom UI Kit é uma biblioteca de componentes de interface de usuário (UI) para React Native, projetada para acelerar o desenvolvimento de seus aplicativos. Ele oferece um conjunto de componentes prontos para uso, totalmente estilizáveis e fáceis de integrar.

Logicom UI Kit

Atualizar a versão da bibloteca.

  1. Escolha o tipo de bump de versão usando versionamento semântico:

→ ajustes/correções

npm version patch

→ novas features compatíveis

npm version minor

→ alterações incompatíveis

npm version major
  1. Construa o pacote (se precisar).
npm run build
  1. Garanta que está logado no npm.
npm whoami
# se não estiver logado:
npm login
  1. Publique.
npm publish

Instalação

Para instalar o Logicom UI Kit, use o seu gerenciador de pacotes preferido:

npm install logicom-ui-kit
# ou
yarn add logicom-ui-kit

Componentes Disponíveis

O Logicom UI Kit oferece uma variedade de componentes para atender às suas necessidades de desenvolvimento:

  • LogBotao
  • LogBotaoFlutuante
  • LogBotaoIcone
  • LogCampoTexto
  • LogCampoTextoIcone
  • LogCampoTextoMulti
  • LogCarregamento
  • LogCartaoCompleto
  • LogCartaoInterativo
  • LogCartaoSimples01
  • LogCartaoSimples02
  • LogMenuAbas
  • LogModalCampoTexto
  • LogTabela

Sistema de Temas

O Logicom UI Kit vem com um sistema de temas flexível que permite personalizar a aparência dos componentes para combinar com a identidade visual do seu projeto.

Usando Temas

O Logicom UI Kit permite que você use os temas padrão (claro e escuro) ou forneça seus próprios temas personalizados.

1. (Opcional) Crie seus Temas Personalizados

No seu projeto, crie um arquivo para definir as cores dos seus temas. Por exemplo, src/meu-tema.ts:

// src/meu-tema.ts
import type { Theme } from "logicom-ui-kit";

export const meuLightTheme: Theme = {
  primary: "#ff6f00", // Laranja
  secondary: "#1976d2", // Azul
  background: "#f5f5f5",
  surface: "#ffffff",
  error: "#d32f2f",
  text: "#212121",
  onPrimary: "#ffffff",
  onSecondary: "#ffffff",
  onBackground: "#212121",
  onSurface: "#212121",
  onError: "#ffffff",
};

export const meuDarkTheme: Theme = {
  primary: "#ffa726", // Laranja mais claro
  secondary: "#64b5f6", // Azul mais claro
  background: "#121212",
  surface: "#212121",
  error: "#ef5350",
  text: "#ffffff",
  onPrimary: "#000000",
  onSecondary: "#000000",
  onBackground: "#ffffff",
  onSurface: "#ffffff",
  onError: "#000000",
};

2. Configure o ThemeProvider

No arquivo principal do seu aplicativo (geralmente App.tsx), envolva seu aplicativo com o ThemeProvider. Passe seus temas personalizados para as propriedades light e dark.

Se você não fornecer nenhum tema, os temas padrão da biblioteca serão usados.

// App.tsx
import React from "react";
import { ThemeProvider } from "logicom-ui-kit";
import { meuLightTheme, meuDarkTheme } from "./src/meu-tema"; // Importe seus temas
import { MeuApp } from "./src/MeuApp"; // Seu componente principal

export default function App() {
  return (
    <ThemeProvider light={meuLightTheme} dark={meuDarkTheme}>
      <MeuApp />
    </ThemeProvider>
  );
}

Alternando entre Temas

Para alternar entre os temas claro e escuro, você pode usar a função toggleTheme fornecida pelo hook useTheme.

Veja um exemplo de como criar um botão para alternar o tema:

import React from "react";
import { View, Button } from "react-native";
import { useTheme } from "logicom-ui-kit";

export function BotaoAlternarTema() {
  const { toggleTheme } = useTheme();

  return (
    <View>
      <Button title="Alternar Tema" onPress={toggleTheme} />
    </View>
  );
}

Usando o Tema nos Componentes

Para acessar as cores do tema em seus componentes, use o hook useTheme:

import React from "react";
import { View, Text, StyleSheet } from "react-native";
import { useTheme } from "logicom-ui-kit";

export function ComponenteComTema() {
  const theme = useTheme();

  return (
    <View style={[styles.container, { backgroundColor: theme.background }]}>
      <Text style={{ color: theme.primary }}>
        Este texto usa a cor primária do tema!
      </Text>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center",
    alignItems: "center",
  },
});

Exemplo de Uso de Componente

Veja como usar o componente LogBotao:

import React from "react";
import { View } from "react-native";
import { LogBotao } from "logicom-ui-kit";

export function ExemploBotao() {
  return (
    <View>
      <LogBotao title="Clique Aqui" onPress={() => alert("Botão clicado!")} />
    </View>
  );
}