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

is-components-new-xuckne

v2.0.4

Published

Is components

Downloads

2

Readme

Библиотека компонентов (IS)

Vue 3 + TypeScript библиотека с базовыми UI-компонентами: кнопка, инпут, поле-обёртка и селект. Готова к сборке в npm-пакет и к локальной разработке в Storybook.

Стек

  • Vite (бандл для библиотеки)
  • Storybook 9 (storybook dev/build)
  • Vue 3 (script setup)
  • TypeScript
  • SCSS

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

npm install
npm run dev   # storybook на http://localhost:6006

Полезные команды:

  • npm run build — сборка библиотеки + статики Storybook.
  • npm run lint — ESLint + Stylelint.
  • npm run ts — проверка типов.

Структура

  • src/components/ — компоненты и сторисы:
    • UiButton — кнопка с layout primary/secondary, проп isDisabled, тип submit/button.
    • UiInput — текстовое поле (modelValue, placeholder, type, isDisabled), эмит update:modelValue.
    • UiField — обёртка с подписью label и слотом под UiInput/UiSelect.
    • UiSelect — селект (modelValue, options: string[], isDisabled), эмит update:modelValue.
  • src/styles/colors.scss — общие CSS-переменные (primary, gray шкала, success/error).
  • src/styles/main.scss — базовые стили Storybook-превью.
  • src/docs/Colors.mdx — документация по цветам для Storybook.
  • src/helpers/html.ts — утилита шаблонов для сторисов.

Поведение и стили

  • Все пропсы/эмиты типизированы через IProps и IEmit.
  • Состояния и варианты прокидываются через data-атрибуты (data-layout, data-disabled) для стилизации.
  • Кнопка имеет градиентный primary и спокойный secondary; состояния hover/active/disabled заданы в SCSS.
  • Инпут и селект поддерживают disabled и фокус-обводку; селект отрисовывает стрелку через фоновые слои.
  • UiField отвечает только за подпись/отступы; контент передается через слот.

Использование в приложении

import { UiButton, UiField, UiInput, UiSelect } from 'is-components-new-xuckne';

Компоненты опираются на переменные из colors.scss — подключите их в своих глобальных стилях или скопируйте значения при интеграции.

Быстрый пример

<template>
  <UiField label="E-mail">
    <UiInput v-model="email" type="email" placeholder="[email protected]" />
  </UiField>

  <UiField label="Опция">
    <UiSelect v-model="option" :options="['Опция 1', 'Опция 2']" />
  </UiField>

  <UiButton :is-disabled="!email">Отправить</UiButton>
  <UiButton layout="secondary" type="button">Отмена</UiButton>
</template>

Разработка и сборка

  • npm run dev — Storybook для локальной разработки компонентов.
  • npm run build — собирает библиотеку (vite) и статическую версию Storybook (storybook-static).
  • Артефакты библиотеки лежат в dist/; структура сборки повторяет названия компонентов (UiButton/UiButton.js, UiButton/UiButton.css, d.ts).

Стилизация

  • Цвета задаются через переменные: --color-primary, --color-primary-dark, шкала серого --color-gray-50..600, --color-success, --color-error.
  • Компоненты используют data-атрибуты (data-layout, data-disabled) — можно переопределять стили на их основе.
  • Для единообразия подключите src/styles/colors.scss в своё приложение или скопируйте значения переменных.

Замечания

  • Публикация в npm не выполнялась — текущая версия готова к локальной установке (npm install ../is).
  • Storybook предупреждает про import.meta в .storybook/main.ts при сборке в CJS — это штатно, на работу статики не влияет.