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

@post-pioneer/ui-kit

v0.1.134

Published

UI Kit for Post Pioneer applications

Downloads

1,574

Readme

# @post-pioneer/ui-kit

![npm version](https://img.shields.io/npm/v/@post-pioneer/ui-kit.svg)
![npm license](https://img.shields.io/npm/l/@post-pioneer/ui-kit.svg)
![npm downloads](https://img.shields.io/npm/dm/@post-pioneer/ui-kit.svg)

Библиотека UI-компонентов для приложений Post Pioneer. Построена на React 19, TypeScript и SCSS модулях.

## 🚀 Установка

```bash
npm install @post-pioneer/ui-kit
```

📦 Зависимости

Убедитесь, что в вашем проекте установлены peer-зависимости:

npm install react@^19.1.1 react-dom@^19.1.1

🎯 Быстрый старт

import React from 'react';
import { Button } from '@post-pioneer/ui-kit';

function App() {
  return (
    <div>
      <Button variant="primary" onClick={() => console.log('Clicked!')}>
        Click me
      </Button>
      <Button variant="secondary" style={{ marginLeft: '10px' }}>
        Secondary
      </Button>
    </div>
  );
}

export default App;

📚 Компоненты

Button

Кнопка с различными вариантами стилей.

import { Button } from '@post-pioneer/ui-kit';

// Основное использование
<Button variant="primary">Primary Button</Button>
<Button variant="secondary">Secondary Button</Button>
<Button variant="outline">Outline Button</Button>

// Размеры
<Button size="small">Small</Button>
<Button size="medium">Medium</Button>
<Button size="large">Large</Button>

// Состояния
<Button disabled>Disabled</Button>
<Button loading>Loading...</Button>

Props:

  • variant?: 'primary' | 'secondary' | 'outline' - стиль кнопки
  • size?: 'small' | 'medium' | 'large' - размер кнопки
  • disabled?: boolean - отключенное состояние
  • loading?: boolean - состояние загрузки
  • onClick?: () => void - обработчик клика
  • children: React.ReactNode - содержимое кнопки

Input (в разработке)

// Скоро будет доступно
import { Input } from '@post-pioneer/ui-kit';

Card (в разработке)

// Скоро будет доступно
import { Card } from '@post-pioneer/ui-kit';

🎨 Кастомизация

CSS Переменные

Вы можете переопределить CSS переменные для кастомизации стилей:

:root {
  --shadow-bottom-s: 0 0 8px rgba(68, 83, 113, 0.1), 0 2px 4px rgba(68, 83, 113, 0.05);

  /* Medium shadow */
  --shadow-bottom-m: 0 0 16px rgba(68, 83, 113, 0.1), 0 4px 8px rgba(68, 83, 113, 0.05);
}

SCSS Переменные

Если вы используете SCSS в своем проекте:

// Переопределение переменных перед импортом
$pp-primary-color: #your-color;
$pp-border-radius: 12px;

@import '~@post-pioneer/ui-kit/dist/styles/variables';

🔧 Разработка

Локальная разработка

# Клонирование репозитория
git clone https://github.com/post-pioneer/ui-kit-postpioneer.git
cd ui-kit-postpioneer

# Установка зависимостей
npm install

# Запуск Storybook для разработки
npm run storybook

# Запуск тестов
npm run test

# Сборка библиотеки
npm run build

Добавление нового компонента

  1. Создайте папку компонента в src/components/
  2. Добавьте файлы: Component.tsx, Component.module.scss, index.ts
  3. Создайте stories в src/stories/Component.stories.tsx
  4. Экспортируйте компонент в src/index.ts
  5. Добавьте тесты в src/__tests__/

📖 Документация

Полная документация с примерами доступна в Storybook.

Для локального просмотра документации:

npm run storybook

🧪 Тестирование

# Запуск всех тестов
npm run test

# Запуск тестов в watch mode
npm run test:watch

# Запуск тестов с покрытием
npm run test:coverage

📦 Сборка

# Production сборка
npm run build

# Просмотр собранных файлов
npm pack --dry-run

🚀 Публикация

# Увеличение версии
npm version patch  # 0.1.0 → 0.1.1
npm version minor  # 0.1.0 → 0.2.0
npm version major  # 0.1.0 → 1.0.0

# Публикация
npm publish --access public
git push origin v0.1.11

🤝 Соответствие стандартам

  • Accessibility: WCAG 2.1 AA compliant
  • Performance: Optimized bundle size
  • Type Safety: Full TypeScript support
  • Testing: 100% test coverage goal

🐛 Сообщение об ошибках

Нашли баг? Создайте issue на GitHub.

💡 Предложения функций

Есть идея для нового компонента или улучшения? Предложите feature request.

📄 Лицензия

MIT License - смотрите файл LICENSE для деталей.

👥 Команда

🔗 Полезные ссылки


Примечание: Эта библиотека находится в активной разработке. API может изменяться до версии 1.0.0.

Для миграции между версиями смотрите CHANGELOG.md.


## Дополнительные файлы которые стоит создать:

### CHANGELOG.md
```markdown
# Changelog

## [0.1.0] - 2024-01-01
### Added
- Initial release
- Button component with variants
- TypeScript definitions
- Storybook documentation
- Jest testing setup

LICENSE

MIT License

Copyright (c) 2024 Post Pioneer

Permission is hereby granted...