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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@webchat_com/webchat_ui

v0.0.39

Published

A set of components for creating a user interface in the browser for the WebChat project

Downloads

2,059

Readme

Table of contents

WebChat UI (ru)

Вступление

WebChat UI — это библиотека адаптивных React-компонентов для создания веб-приложений.

Библиотека заточена под основной проект WebChat, поэтому она реализует:

  1. Цветовые темы;
  2. Компоненты, которые часто используются.

Сделано это для того, чтобы вынести постоянно используемую логику в отдельный проект, чтобы легче и, соответственно, быстрее реализовать написание клиента (пользовательских интерфейсов) у микрофронтендов, из которых состоит основной проект.

Основная часть

Работа с проектом

Установка

Чтобы установить проект, используйте пакетный менеджер NPM. Перед тем как установить данную библиотеку, не забудьте добавить конфиг зависимостей npm проекта (package.json).

npm i -D @webchat_com/webchat_ui

Сборка

Чтобы собрать проект воспользуйтесь командой.

npm run build

Цветовые темы

В проекте реализуются только 2 цветовые темы: светлая и тёмная. При использовании данных компонентов в Вашем проекте их необходимо обернуть в специальные компонент AppearanceProvider, так как он содержит цветовые темы проекта.

Посмотреть цветовые темы в CSS файле Вы можете здесь.

Компоненты

AppearanceProvider

Компонент-обёртка для проведения цветовой темы: светлой и тёмной. Им необходимо обернуть ваш проект, так как компоненты из данной библиотеки активно используют передаваемые данным компонентом CSS стили.

Компоненты, которые обёрнуты в данный компонент могут использовать цветовые стили проекта.

Свойства:

  • theme - цветовая тема.

Button

Кнопка, которая может настраиваться исходя из передаваемых свойств.

Свойства:

  • isLoading - включение режима ожидания;
  • wide - занимает всю ширину блока, в котором находится;
  • level - уровень "значимости".
  • Остальные свойства, которые есть у тега button (кнопка).

Input

Поле для ввода данных, к которому подключена валидация в зависимости от значения свойства type

InputForm

Компонент-поле для ввода данных пользователя.

Свойства:

  • description - описание поля формы;
  • остальные свойства, которые есть у тега input (поле).

Loader

Компонент для отображения процесса загрузки.

Не указанные компоненты

Не указанные компоненты находятся в подвешенном состоянии: либо они будут убраны из следующей итоговой версии, либо оставлены.

Заключение

Библиотека на данный момент активно развивается, поэтому изменения в ней носят частный характер. После итоговой сборки основного проекта библиотека не будет претерпевать частые изменения, вызванные неопределённостью в ходе разработки.

WebChat UI (en)

Introduction

WebChat UI is a library of adaptive React components for creating web applications.

The library is designed for the main project WebChat, so it implements:

  1. Color themes;
  2. Components that are often used.

This is done in order to bring the constantly used logic into a separate project in order to make it easier and, accordingly, faster to implement the writing of the client (user interfaces) the micro-frontends that make up the main project.

The main part

Working with the project

Installation

To install the project, use the package manager NPM. Before installing this library, do not forget to add the npm project dependencies config (package.json).

npm i -D @webchat_com/webchat_ui

Assembly

To build a project, use the command.

npm run build

Color themes

The project implements only 2 color themes: light and dark. When using these components in your project, they must be wrapped in a special component AppearanceProvider, since it contains the project's color themes.

You can view the color themes in the CSS file there.

Components

AppearanceProvider

A wrapper component for holding a color theme: light and dark. They need to wrap all library components except wrapper components (containers), as they actively use CSS styles passed by this component.

Components that are wrapped in this component can use project color styles.

Features:

  • theme - color theme.

Button

A button that can be configured based on the transmitted properties.

Features:

  • isLoading - enabling standby mode;
  • wide - occupies the entire width of the block in which it is located;
  • level - the level of "significance".
  • Other properties that the button tag has.

Input

The data entry field to which validation is connected, depending on the value of the type property

InputForm

The component is a field for entering user data.

Features:

  • description - description of the form field;
  • other properties that the input tag has (field).

Loader

A component for displaying the download process.

Components not specified

The components that are not specified are in limbo: either they will be removed from the next final version, or they will be left.

Conclusion

The library is currently actively developing, so the changes in it are of a private nature. After the final build of the main project, the library will not undergo frequent changes caused by uncertainty during development.