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

@george-kunka/ui-kit

v0.1.1

Published

Гибкая и расширяемая библиотека UI-компонентов, построенная на базе [MUI](https://mui.com/), [Tailwind CSS](https://tailwindcss.com/) и [React](https://react.dev/).

Readme

@george-kunka/ui-kit

Гибкая и расширяемая библиотека UI-компонентов, построенная на базе MUI, Tailwind CSS и React.

Особенности

  • 🚀 Современный стек: React, TypeScript, Vite.
  • 🎨 Гибкая стилизация: Полная поддержка Tailwind CSS поверх компонентов MUI.
  • 🧩 Атомарный дизайн: Компоненты структурированы для максимального переиспользования.
  • 🌗 Темизация: Встроенная поддержка тем MUI с возможностью легкого расширения.
  • 📦 Tree Shaking: Оптимизированная сборка для уменьшения размера бандла.

Установка

npm install @george-kunka/ui-kit
# или
yarn add @george-kunka/ui-kit
# или
pnpm add @george-kunka/ui-kit

Также убедитесь, что у вас установлены необходимые peer dependencies:

npm install react react-dom @mui/material @emotion/react @emotion/styled

Начало работы

1. Подключение стилей

Для корректной работы Tailwind CSS, убедитесь, что стили подключены в вашем приложении. Если вы используете Tailwind в своем проекте, добавьте путь к компонентам библиотеки в tailwind.config.js:

// tailwind.config.js
module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@george-kunka/ui-kit/dist/**/*.{js,ts,jsx,tsx}" // Добавьте эту строку
  ],
  // ...
}

2. Настройка ThemeProvider

Оберните ваше приложение в UiKitThemeProvider. Если у вас уже есть ThemeProvider от MUI, вы можете использовать его, но убедитесь, что тема совместима.

import React from 'react';
import ReactDOM from 'react-dom/client';
import { UiKitThemeProvider, Button } from '@george-kunka/ui-kit';

const App = () => (
  <UiKitThemeProvider>
    <div className="p-4">
      <Button variant="contained" color="primary">
        Привет, мир!
      </Button>
      
      {/* Использование классов Tailwind */}
      <Button className="bg-green-500 hover:bg-green-600 text-white mt-4">
        Кастомная кнопка
      </Button>
    </div>
  </UiKitThemeProvider>
);

ReactDOM.createRoot(document.getElementById('root')!).render(<App />);

3. Кастомизация темы (опционально)

Если вам нужно переопределить стандартную тему, создайте свою тему с помощью createTheme из MUI и передайте её в UiKitThemeProvider:

import { createTheme } from '@mui/material/styles';
import { UiKitThemeProvider } from '@george-kunka/ui-kit';

const customTheme = createTheme({
  palette: {
    primary: {
      main: '#1976d2',
    },
  },
});

const App = () => (
  <UiKitThemeProvider theme={customTheme}>
    {/* ваше приложение */}
  </UiKitThemeProvider>
);

Разработка

Запуск локально

  1. Клонируйте репозиторий:
    git clone https://github.com/your-repo/ui-kit.git
  2. Установите зависимости:
    npm install
  3. Запустите Storybook для разработки компонентов:
    npm run storybook

Сборка

Для сборки библиотеки выполните:

npm run build

Результат сборки будет в папке dist.

Контрибьюция

Мы приветствуем вклад в развитие библиотеки! Пожалуйста, следуйте этим правилам:

  1. Компоненты: Создавайте новые компоненты в папке src/components. Используйте структуру atoms, molecules, organisms.
  2. Стили: Используйте Tailwind CSS для стилизации где это возможно. Для специфичных стилей MUI используйте sx проп или styled компоненты.
  3. Типизация: Все компоненты должны быть строго типизированы.
  4. Storybook: Для каждого компонента должна быть создана история (.stories.tsx).

Публикация

  1. Обновите версию в package.json согласно семантическому версионированию.
  2. Соберите проект: npm run build.
  3. Опубликуйте: npm publish --access public.

Лицензия

MIT