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

@cdek-it/react-ui-kit

v1.2.14

Published

Тема для primereact

Readme

Как пользоваться

Установка

npm install @cdek-it/react-ui-kit

далее в scss своего проекта прописать

@use '@cdek-it/react-ui-kit/dist/theme-light.css';

Для поддержки старых верси браузера, нужны следующие телодвижения

npm install -D vite-plugin-string-replace

Далее в конфиге vite.config.ts

export default defineConfig({
  // ...
  plugins: [
    //...
    StringReplace([
      {
        search: '@layer primereact {',
        replace: '@media screen {',
      },
    ]),
    //...
  ]
});

Иконки

В дизайне в основном используется https://tabler.io/icons/

Но можно подключать свои, так как с версии 1.1.0 они не идут в пакете

Подключить можно 3 вариантами

  1. Иконки как шрифты
  2. Иконки как svg
  3. Иконки с CDN

Иконки как шрифты

Начиная с версии 1.1.0 в пакете не будут добавляться иконки @tabler/icons-webfont

Чтобы их поставить нужно

npm install @tabler/icons-webfont

далее в scss прописать

@import "@tabler/icons-webfont/dist/tabler-icons.min.css";

Прочитать внимательно

При подключении иконок как шрифты у вас будет over 6000 иконок из которых вы будете использовать 1%, но весить все это будет много и грузится тоже долго. А во время загрузки будут квадраты

Поэтому лучше использовать как svg или на cdn

Иконки как svg

Подключаются как реакт компоненты, далее в сборке будут только те, которые нужны в проекте

Чтобы их поставить нужно

npm install @tabler/icons-react

далее в scss прописать

@import "@tabler/icons-webfont/dist/tabler-icons.min.css";

если используется vite, обязательно добавить строчку в vite.config.ts

//...
  resolve: {
    alias: {
      //...
      '@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
    },
  },
//...

если не добавить, будет оочень долгая сборка в дев режиме https://stackoverflow.com/questions/79194970/tabler-icons-for-react-slowing-down-app-on-initial-load

Размеры иконок

Если не используется tailwind, то в scss можно добавить

@use '@cdek-it/react-ui-kit/dist/utils/icons.scss';

тогда можно будет использвать классы из дизайна: вместо text-2xl -> icon-2xl и тд

Если используется tailwind, то подключение ниже

Иконки с CDN

Добавляются в проекте в html, актуальность загруженной версии нужно смотреть в фронт-гильдии

<link rel="preconnect" href="https://public-static.cdek.ru" />
<link
  rel="stylesheet"
  href="https://public-static.cdek.ru/common/icons/v3.30.0/tabler-icons.min.css"
/>

Подключение Tailwind

Используем v3

npm install -D tailwindcss@^3.0.0 postcss autoprefixer

Конфиг для темы tailwind.config.js

/** @type {import('tailwindcss').Config} */
import { colors, screens, iconsPluginCallback } from '@cdek-it/react-ui-kit/dist/tailwind';
import plugin from 'tailwindcss/plugin';

export default {
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
    colors,
    screens,
    extend: {
      ...themeExtend,
    },
  },
  plugins: [
    // для иконок, чтобы можно было использовать icon-2xl, icon-[111px], md:icon-3xl
    plugin(iconsPluginCallback),
  ],
};

Конфиг postcss.config.js

export default {
  plugins: {
    'postcss-import': {},
    tailwindcss: {},
    autoprefixer: {},
  },
};

Далее в своем проекте подключаем

@use '@cdek-it/react-ui-kit/dist/utils/typography.scss';

@tailwind base;
@tailwind utilities;

...