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

eastern-area-fe-package

v0.2.10

Published

Shared React components and utilities between eastern-area-fe and eastern-area-crm-fe

Readme

eastern-area-fe-package

A shared React icon utility library for eastern-area-fe and eastern-area-crm-fe.

eastern-area-fe-package provides:

  • DynamicIcon: runtime icon resolution for both custom SVG icons and Tabler icons.
  • STATIC_ICONS_LIST / STATIC_ICONS_MAP: Arabic-labeled custom icons.
  • TABLER_ICONS_LIST / TABLER_ICONS_MAP: the full @tabler/icons-react catalog.
  • ALL_ICONS_LIST: a combined list of every supported icon.
  • A dedicated static entrypoint for custom icons only.

Install

npm install eastern-area-fe-package
# or
bun add eastern-area-fe-package

Peer dependencies:

  • react >= 18
  • react-dom >= 18

Usage

import { DynamicIcon, ALL_ICONS_LIST, STATIC_ICONS_LIST } from 'eastern-area-fe-package';

<DynamicIcon iconName="Hospital" size={24} color="#067647" />;
<DynamicIcon iconName="Settings" size={24} width={28} className="my-icon" />;

Static-only import

The root package entrypoint includes the full Tabler icon set, which means DynamicIcon can resolve both custom and Tabler icon names. If you only need the custom icons and want a smaller bundle, import the static-only entrypoint:

import { STATIC_ICONS_LIST, STATIC_ICONS_MAP } from 'eastern-area-fe-package/static';

Public exports

| Export | Type | Description | | ------------------- | ---------------- | ------------------------------------------------------------ | | DynamicIcon | React component | Renders the requested icon from custom or Tabler collections | | STATIC_ICONS_LIST | IconListItem[] | Custom SVG icons with Arabic labels | | STATIC_ICONS_MAP | IconsMap | Lookup map for custom icons by name | | TABLER_ICONS_LIST | IconListItem[] | All Tabler icons as a list | | TABLER_ICONS_MAP | IconsMap | Lookup map for all Tabler icons by name | | ALL_ICONS_LIST | IconListItem[] | Combined static + Tabler icon list |

API

DynamicIcon

DynamicIcon props:

| Prop | Type | Default | Description | | ----------- | ------------------------- | ----------- | ----------------------------------------------------------- | | iconName? | string | undefined | Icon name to render. Supports custom and Tabler icon names. | | size? | number \| string | undefined | Sets both width and height unless width is provided. | | width? | number \| string | undefined | Sets the SVG width separately if needed. | | color? | string | undefined | Sets the icon color when supported by the SVG. | | ...rest | SVGProps<SVGSVGElement> | — | Forwarded to the rendered SVG component. |

If iconName is missing or not found, the component falls back to the first icon in ALL_ICONS_LIST.

STATIC_ICONS_LIST / STATIC_ICONS_MAP

Custom icons are exported with Arabic labels. Each entry has the shape:

interface IconListItem {
  name: string;
  icon: ComponentType<SVGProps<SVGSVGElement>>;
  labelAr: string;
}

Use STATIC_ICONS_LIST for icon pickers or menus, and STATIC_ICONS_MAP for quick lookup by name.

TABLER_ICONS_LIST / TABLER_ICONS_MAP

These exports expose the complete Tabler icon catalog from @tabler/icons-react. TABLER_ICONS_MAP lets you look up icons by their Tabler name.

ALL_ICONS_LIST

A merged list of custom static icons and all Tabler icons. Useful for searching, filtering, or fallback behavior.

Types

| Type | Description | | ------------------ | ------------------------------------- | | IconListItem | A named SVG icon with an Arabic label | | IconsMap | Map from icon name to IconListItem | | DynamicIconProps | Props accepted by DynamicIcon | | StaticIconName | Union of all custom icon names | | TablerIconName | Union of all Tabler icon names | | IconName | Union of all supported icon names |

Development

bun install
bun run build
bun run dev
  • bun run build runs tsc -b && vite build.
  • bun run dev rebuilds on file changes in watch mode.

Package entrypoints

  • Root: eastern-area-fe-package
  • Static-only: eastern-area-fe-package/static

Notes

  • The package ships both ESM and CommonJS builds under dist/.
  • If you prefer clean source control, do not commit dist/ and keep it in .gitignore.