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

@mci-ui/mci-ui

v0.0.98

Published

Minimal UI component library built with React and Tailwind CSS.

Readme

@mci-ui/mci-ui

React 19 uchun tayyor UI component kutubxonasi.

  • Har bir component section real ishlaydi
  • variant / size / color kabi optionlarni tepasidagi control orqali almashtirib ko'rasiz
  • Table qismida MciTableColumnsPanel drag-drop va hidden/active ustunlarni boshqarishni tekshirasiz

Eslatma:

  • Demo UI library build bundle'iga qo'shilmaydi.
  • vite-plugin-dts dan src/App.tsx va src/main.tsx exclude qilingan, shuning uchun npm paket hajmi ortib ketmaydi.

1. O'rnatish

npm i @mci-ui/mci-ui

Agar loyihangizda yo'q bo'lsa, peer dependency'larni ham o'rnating:

npm i @solar-icons/react clsx tailwind-merge

2. Style ulash (majburiy)

import '@mci-ui/mci-ui/style.css'

3. Tez start

import {
  MciButton,
  MciInput,
  MciModal,
  MciToast,
} from '@mci-ui/mci-ui'
import '@mci-ui/mci-ui/style.css'
import { useState } from 'react'

export default function App() {
  const [open, setOpen] = useState(false)

  return (
    <div className="p-6 space-y-4">
      <MciInput label="Login" placeholder="username" />

      <MciButton color="blue" onClick={() => setOpen(true)}>
        Modal ochish
      </MciButton>

      <MciButton variant="tertiary" onClick={() => MciToast.success('Saved')}>
        Toast
      </MciButton>

      <MciModal
        show={open}
        setShow={setOpen}
        title="Sarlavha"
        Body={<div>Modal body</div>}
      />
    </div>
  )
}

4. Componentlar bo'yicha qisqa qo'llanma

MciButton

<MciButton color="blue" variant="primary">Saqlash</MciButton>
<MciButton variant="outline" loading>Yuklanmoqda</MciButton>

MciInput / MciTextarea / MciPhone / MciIdentityInput

<MciInput label="Parol" type="password" showClearButton />
<MciTextarea label="Izoh" rows={4} />
<MciPhone label="Telefon" value={phone} onChange={setPhone} />
<MciIdentityInput mode="passport" value={doc} onChange={(v) => setDoc(v)} />

MciSelect

<MciSelect
  label="Status"
  value={status}
  onChange={setStatus}
  options={[
    { value: 'new', label: 'New' },
    { value: 'done', label: 'Done' },
  ]}
  clearable
  searchable
/>

MciPicker (date/range)

<MciPicker type="date" value={date} onChange={setDate} />
<MciPicker type="range" value={range} onChange={setRange} />

MciCheck / MciToggle

<MciCheck checked={checked} onChange={(e) => setChecked(e.target.checked)} />
<MciToggle checked={enabled} onChange={setEnabled} />

MciUpload

<MciUpload
  multiple
  accept="image/*,.pdf"
  maxFiles={10}
  maxSize={20}
  onFilesChange={(files) => console.log(files)}
/>

MciTable + useTableColumnSettings + MciTableColumnsPanel

import {
  MciTable,
  MciTableColumnsPanel,
  useTableColumnSettings,
  type MciTableColumn,
} from '@mci-ui/mci-ui'

type Row = { id: number; name: string; age: number }

const allColumns: MciTableColumn<Row>[] = [
  { key: 'id', title: 'ID', width: 80 },
  { key: 'name', title: 'Name', sortable: true },
  { key: 'age', title: 'Age', sortable: true, align: 'right' },
]

function DemoTable({ data }: { data: Row[] }) {
  const [panelOpen, setPanelOpen] = useState(false)

  const {
    orderedColumns,
    orderedAllColumns,
    hiddenKeys,
    toggleColumn,
    moveColumn,
    moveColumnByKey,
  } = useTableColumnSettings<Row>({
    storageKey: 'users-table-cols',
    columns: allColumns,
    minVisible: 5,
  })

  return (
    <div className="relative">
      <MciButton onClick={() => setPanelOpen((p) => !p)}>Columns</MciButton>

      <MciTable<Row>
        columns={orderedColumns}
        data={data}
        noDataText="Ma'lumot topilmadi"
      />

      <MciTableColumnsPanel<Row>
        open={panelOpen}
        onClose={() => setPanelOpen(false)}
        columns={orderedAllColumns}
        hidden={hiddenKeys}
        onToggle={toggleColumn}
        onMove={moveColumn}
        onMoveByKey={moveColumnByKey}
        minVisible={5}
      />
    </div>
  )
}

MciModal / MciDrawer

<MciModal
  show={isModalOpen}
  setShow={setModalOpen}
  title="Tasdiqlash"
  Body={<div>Body</div>}
  footer={<MciButton>OK</MciButton>}
/>

<MciDrawer
  isOpen={isDrawerOpen}
  onClose={() => setDrawerOpen(false)}
  title="Drawer"
  footer={<MciButton color="blue">Yuborish</MciButton>}
>
  <div>Kontent</div>
</MciDrawer>

MciToast

MciToast.success('Saved')
MciToast.error('Xatolik yuz berdi')
const loading = MciToast.loading('Yuklanmoqda...')
loading.close()

MciTabs / MciBreadcrumb / MciPagination / MciCollapse

<MciBreadcrumb items={[{ label: 'Home', href: '/' }, { label: 'Users' }]} />

<MciTabs
  tabs={[
    { id: 'a', label: 'Tab A', content: <div>A</div> },
    { id: 'b', label: 'Tab B', content: <div>B</div> },
  ]}
/>

<MciPagination
  totalItems={300}
  currentPage={page}
  perPage={20}
  onPageChange={setPage}
/>

<MciCollapse title="Batafsil">
  <div>Cont</div>
</MciCollapse>

MciTag / MciTooltip / MciSkeleton / MciLoader

<MciTag variant="success">Active</MciTag>
<MciTooltip content="Info"><span>Hover</span></MciTooltip>
<MciSkeleton height={24} />
<MciLoader isLoading isFullPage={false} />

5. Export qilinadiganlar

  • Componentlar: MciButton, MciInput, MciSelect, MciPicker, MciTable, ...
  • Hook: useTableColumnSettings
  • Type'lar: MciTableColumn, MciTableProps, ColumnKey va boshqa UI type'lar

6. Consumer loyiha uchun minimal tekshiruv

  1. npm i @mci-ui/mci-ui
  2. import '@mci-ui/mci-ui/style.css'
  3. React 19 ishlatayotganiga ishonch hosil qiling
  4. Peer deps (@solar-icons/react, clsx, tailwind-merge) o'rnatilgan bo'lsin

Release/publish qadamlar alohida: RELEASE.md