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

@parsaaghayi/sep-panel-ui

v0.4.0

Published

A React UI kit for Hooshmand Sepehr company panel projects, built on the Atlassian Design System.

Readme

@parsaaghayi/sep-panel-ui

A React component library built on the Atlassian Design System with native Shamsi (Jalali) and Gregorian calendar support.

npm version license storybook


Features

  • Dual calendar system — Jalali (Shamsi) and Gregorian with full date math (no jalaali-js runtime dependency — the algorithm is ported directly into the library)
  • Locale-awarelocale="fa" gives Persian digit rendering and month/weekday names; locale="en" gives English
  • Decoupled input / display / output — show a Shamsi calendar but return a Gregorian Date, or show month names but return numbers — every combination works via calendar, outputCalendar, format, and outputFormat
  • 5 calendar componentsDatePicker, RangePicker, DayPicker, MonthPicker, YearPicker
  • Consistent design system — every picker supports the same size, variant, color, icon, and message props
  • Fully typed — ships with .d.ts declarations; generic <O> parameter on every picker ties output to the onChange return type
  • Peer-deps only — requires react (18 or 19) as a peer dependency; no hidden runtime libraries

Contents

| Section | Description | | ----------------------------------------------- | ----------------------------------------------------------- | | Installation | npm / yarn | | Calendar Pickers | DatePicker, RangePicker, DayPicker, MonthPicker, YearPicker | | Shared Calendar Props | calendar, locale, format, output, monthLabel, etc. | | Styling Props | size, variant, color, icons, messages, disabled | | Other Components | Button, TextField, Modal, Toggle, etc. | | Development | scripts, local setup | | License |


Installation

npm install @parsaaghayi/sep-panel-ui
# or
yarn add @parsaaghayi/sep-panel-ui

Peer dependencies: react and react-dom (^18.3.1 || ^19.0.0).


Calendar Pickers

DatePicker

Single date selection with a trigger input and a popup calendar.

import { DatePicker } from "@parsaaghayi/sep-panel-ui";

function App() {
  const [date, setDate] = useState<Date | null>(null);

  return (
    <DatePicker
      id="start-date"
      label="تاریخ شروع"
      calendar="jalali"
      locale="fa"
      direction="rtl"
      format="YYYY/MM/DD"
      value={date}
      onChange={setDate}
      size="md"
      variant="outlined"
      color="primary"
    />
  );
}

Show Shamsi, return Gregorian:

<DatePicker
  calendar="jalali"
  locale="fa"
  direction="rtl"
  format="YYYY/MM/DD"
  output="string"
  outputCalendar="gregorian"
  outputFormat="YYYY-MM-DD"
  onChange={(val) => {
    // val is a Gregorian date string like "2025-03-21"
  }}
/>

RangePicker

Select a start and end date. Works identically to DatePicker but manages a { start, end } range.

import { RangePicker } from "@parsaaghayi/sep-panel-ui";

<RangePicker
  calendar="jalali"
  locale="fa"
  direction="rtl"
  separator="تا"
  value={range}
  onChange={setRange}
/>;

DayPicker

An inline (always-visible) calendar without a trigger input. Ideal for embedded date choosers.

import { DayPicker } from "@parsaaghayi/sep-panel-ui";

<DayPicker calendar="jalali" locale="fa" direction="rtl" />;

MonthPicker

Opens to the month-selection view directly; uses a trigger input and popup like DatePicker.

import { MonthPicker } from "@parsaaghayi/sep-panel-ui";

<MonthPicker
  calendar="jalali"
  locale="fa"
  direction="rtl"
  monthLabel="name" // "شهریور" | "ماه ۶"
  format="YYYY/MM"
/>;

YearPicker

Opens to the year-selection view directly.

import { YearPicker } from "@parsaaghayi/sep-panel-ui";

<YearPicker calendar="jalali" locale="fa" direction="rtl" format="YYYY" />;

Shared Calendar Props

Every picker accepts these props to control calendar behaviour:

| Prop | Type | Default | Description | | ---------------- | ------------------------- | -------------- | ---------------------------------------------------------- | | calendar | "jalali" \| "gregorian" | "jalali" | Calendar shown in the popup | | locale | "fa" \| "en" | "fa" | Digit rendering and month/weekday names | | direction | "rtl" \| "ltr" | "rtl" | Text direction of the widget | | monthLabel | "name" \| "number" | "name" | Show month name or number | | format | string | — | Display format for the trigger input (e.g. "YYYY/MM/DD") | | parseFormat | string | "YYYY/MM/DD" | Format used to parse a string value | | parseCalendar | "jalali" \| "gregorian" | calendar | Calendar used to parse the string value | | output | "date" \| "string" | "date" | Type emitted by onChange | | outputFormat | string | "YYYY/MM/DD" | Format for string output | | outputCalendar | "jalali" \| "gregorian" | calendar | Calendar used for string output | | minDate | Date | — | Earliest selectable date | | maxDate | Date | — | Latest selectable date |

Format tokens

| Token | Example | Description | | ------ | --------------------- | --------------------------- | | YYYY | 1404 / 2025 | 4-digit year | | YY | 04 / 25 | 2-digit year | | MMMM | فروردین / January | Full month name (localized) | | MM | 0112 | 2-digit month number | | M | 112 | Month number | | DD | 0131 | 2-digit day | | D | 131 | Day number |


Styling Props

All input-based pickers (DatePicker, RangePicker, MonthPicker, YearPicker) share these design-system props:

| Prop | Type | Values | Default | | ----------- | --------- | --------------------------------------------------------------- | ------------ | | size | string | "sm" \| "md" \| "lg" | "md" | | variant | string | "outlined" \| "filled" \| "standard" | "outlined" | | color | string | "primary" \| "secondary" \| "error" \| "warning" \| "success" | "primary" | | disabled | boolean | — | false | | readOnly | boolean | — | false | | required | boolean | — | false | | fullWidth | boolean | — | false |

Icons:

<DatePicker
  startIcon={<CalendarIcon />}
  endIcon={<ChevronDown />}
  iconPosition="start"
  iconClick={() => console.log("clicked")}
/>

Or provide image URLs:

<DatePicker firstIconSrc="/icons/search.svg" lastIconSrc="/icons/chevron.svg" />

Messages:

<DatePicker guidMessage="سال را انتخاب کنید" />
<DatePicker successMessage="انتخاب شد" />
<DatePicker errorMessage="تاریخ معتبر نیست" />

Other Components

The library also ships the following UI components (non-calendar):

| Component | Description | | ----------------- | -------------------------------------------------------------- | | Button | Multi-purpose button with colorType, hasMore, icon support | | TextField | Input with validation, formatting, icons, and message support | | Checkbox | Controlled checkbox with label and required indicator | | Toggle | On/off switch with disabled state | | SelectInput | Dropdown select with search and async loading | | Modal | Overlay dialog with warning/danger variants | | Tabs | Tab navigation | | Breadcrumb | Path breadcrumb | | Pagination | Page navigation with RTL support | | RadioGroup | Radio button group | | Progressbar | Progress bar | | ProgressTracker | Step-based tracker | | DropDownMenu | Animated dropdown container | | PageHeader | Page header with breadcrumb and action buttons | | Avatar | User avatar with fallback image |

See the Storybook (npm run storybook) for interactive examples of every component.


Development

# install dependencies
npm install

# run Storybook
npm run storybook

# run tests
npm test

# run tests in watch mode
npm run test:watch

# type-check
npm run typecheck

# build the library
npm run build

# build storybook static
npm run build-storybook

License

MIT © Parsa Aghayi