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

@isi-ui7/ui-shell

v0.1.3

Published

UI Shell component combining header, side navigation, notifications, and switcher.

Downloads

259

Readme

@isi-ui7/ui-shell

UI Shell aplikasi berbasis Carbon — header, side navigation, app switcher, panel notifikasi, dan panel profil dalam satu komponen.

Fitur

  • Header dengan branding (product name + prefix), tombol global (notifikasi, profil, app switcher)
  • SideNav dengan mode rail/full, responsive, mendukung sub-item
  • Panel notifikasi: badge count (cap 99+), lazy fetch sekali, daftar item, mark-all-read
  • Panel profil: avatar inisial otomatis, nama/role/email, action callbacks
  • Panel app switcher: lazy fetch sekali, highlight current app, grid navigasi
  • Integrasi opsional dengan @isi-ui7/corporate-themes untuk tema korporat

Instalasi

pnpm add @isi-ui7/ui-shell @carbon/react @carbon/icons-react react react-dom

Penggunaan

import { UiShell } from "@isi-ui7/ui-shell";

export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <UiShell
      productName="Core Banking"
      headerPrefix="BCA Syariah"
      headerVariant="g90"
      navItems={[
        { label: "Dashboard", href: "/dashboard" },
        { label: "Rekening", href: "/rekening", isActive: true },
      ]}
      sideNavItems={[
        { label: "Rekening Tabungan", href: "/rekening/tabungan", isActive: true },
        { label: "Rekening Deposito", href: "/rekening/deposito" },
      ]}
      notifications={{
        badgeCount: 3,
        onFetch: async () => [
          { id: "1", title: "Otorisasi menunggu", time: "5 mnt lalu", read: false },
        ],
        onMarkAllRead: () => console.log("semua dibaca"),
      }}
      profile={{
        name: "Budi Santoso",
        role: "Teller",
        email: "[email protected]",
        onProfileAction: (action) => console.log(action),
      }}
      apps={{
        currentAppId: "bos",
        onFetch: async () => [
          { id: "bos", label: "BOS", href: "/bos" },
          { id: "cif", label: "CIF", href: "/cif" },
        ],
        onAppSelect: (app) => (window.location.href = app.href),
      }}
    >
      {children}
    </UiShell>
  );
}

Dengan @isi-ui7/corporate-themes:

import { ThemeProvider } from "@isi-ui7/corporate-themes";
import { UiShell } from "@isi-ui7/ui-shell";

<ThemeProvider corporateId="bca-syariah" variant="g90">
  <UiShell productName="Core Banking" headerVariant="g90">
    {children}
  </UiShell>
</ThemeProvider>

Props

| Nama | Tipe | Wajib | Deskripsi | | --- | --- | --- | --- | | productName | string | ya | Judul produk di header | | headerPrefix | string | tidak | Teks prefix sebelum productName. Default: "Platform UI" | | headerVariant | "white" \| "g10" \| "g90" \| "g100" | tidak | Varian tema Carbon untuk header. Default: "g90" | | headerThemeClassName | string | tidak | Override CSS class tema korporat untuk header | | navItems | ShellNavItem[] | tidak | Item navigasi di header | | sideNavItems | ShellNavItem[] | tidak | Item navigasi di side nav | | notifications | object | tidak | Konfigurasi panel notifikasi | | profile | object | tidak | Konfigurasi panel profil | | apps | object | tidak | Konfigurasi panel app switcher | | children | ReactNode | ya | Konten halaman |

notifications

| Nama | Tipe | Deskripsi | | --- | --- | --- | | badgeCount | number | Jumlah badge (ditampilkan, cap 99+) | | onFetch | () => Promise<NotifItem[]> | Dipanggil sekali saat panel pertama dibuka | | onItemClick | (item) => void | Callback saat item diklik | | onMarkAllRead | () => void | Callback tombol "Tandai semua dibaca" |

profile

| Nama | Tipe | Deskripsi | | --- | --- | --- | | name | string | Nama lengkap pengguna | | role | string | Jabatan/role | | email | string | Email | | initials | string | Override inisial avatar (default: auto dari name) | | onProfileAction | (action: string) => void | Callback item aksi (edit profil, ganti password, logout) |

apps

| Nama | Tipe | Deskripsi | | --- | --- | --- | | currentAppId | string | ID aplikasi yang sedang aktif | | onFetch | () => Promise<ShellApp[]> | Dipanggil sekali saat panel pertama dibuka | | onAppSelect | (app: ShellApp) => void | Callback saat app dipilih |

A11y

  • Tombol header menggunakan aria-expanded dan aria-label yang tepat
  • Panel menutup dengan tombol Escape
  • Membuka panel kedua otomatis menutup panel pertama
  • SideNav mendukung keyboard navigation

Scripts

pnpm build      # Build ke dist/
pnpm lint       # ESLint
pnpm test       # Vitest
pnpm typecheck  # TypeScript check

Catatan

  • Peer deps: React/ReactDOM 19, Next 16, @carbon/react ^1.97, @carbon/icons-react ^11.71
  • Komponen menggunakan "use client" — hanya untuk Next.js App Router
  • notifications.onFetch dan apps.onFetch hanya dipanggil sekali (tidak re-fetch saat panel dibuka ulang)