# persian-fullcalendar1

> React component that helps you to makes simple Farsi/Jalali/Shamsi date picker. It also has range date picker you can select multiple days in multiple months.

Latest version **1.0.0** (published 2024-02-26) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install persian-fullcalendar1
pnpm add persian-fullcalendar1
yarn add persian-fullcalendar1
bun add persian-fullcalendar1
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-02-26 |
| First published | 2024-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | maryam kordlou |
| Maintainers | maryamkordlou |
| Keywords | datepicker, farsi, jalali, shamsi, fullcalendar |

## Links

- npm: https://www.npmjs.com/package/persian-fullcalendar1
- Repository: https://github.com/kordlou/persian-fullcalendar
- Homepage: https://github.com/kordlou/persian-fullcalendar#readme
- Issues: https://github.com/kordlou/persian-fullcalendar/issues
- npm.io page: https://npm.io/package/persian-fullcalendar1

## Dependencies (4)

- [dayjs](https://npm.io/package/dayjs.md) ^1.11.7
- [moment](https://npm.io/package/moment.md) ^2.30.1
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.10.5
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.10.5

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-02-26

## README

# persian-fullcalendar

persian-fullcalendar is a lightweight React component for creating a Jalali/Georgian datepicker. There is also a range datepicker and timepicker in persian-fullcalendar. The module can also be customized to match the appearance of your designs.

## Install

with npm

`$ npm i persian-fullcalendar`

with yarn

`$ yarn add persian-fullcalendar`

## Props
### Date Picker and Calendar

| props                | type                                                       | default   |
|----------------------|------------------------------------------------------------|-----------|
| defaultValue         | timestamp &#124; Date &#124; Dayjs                         | undefined |
| weekend              | number[]                                                   | undefined |
| round                | string one of thin &#124; x1 &#124; x2 &#124; x3 &#124; x4 | thin      |
| accentColor          | string                                                     | #0D59F2   |
| locale               | string one of fa &#124; en                                 | fa        |
| direction            | string one of rtl &#124; ltr                               | rtl       |
| onChange             | function                                                   | undefined |
| range                | boolean                                                    | false     |
| from                 | timestamp &#124; Date &#124; Dayjs                         | undefined |
| to                   | timestamp &#124; Date &#124; Dayjs                         | undefined |
| show                 | boolean                                                    | false     |
| inputClass           | string                                                     | null      |
| inputAttributes      | object of InputHTMLAttributes                              | null      |
| className            | string                                                     | null      |
| customShowDateFormat | string  ex: YYYY MMMM DD or DD/MM etc.                     | undefined |
| position             | right &#124; left  &#124; center                           | right     |
| width                | number                                                     |           |
| height               | number                                                     |           |
| itemWidth            | number                                                     |           |
| itemHeight           | number                                                     |           |
| events               | array of json                                              |           |
| weekDays             | string  shortWeekDays longWeekDays                         |           |

### Calendar Provider

| props       | type                                                       | default |
|-------------|------------------------------------------------------------|---------|
| round       | string one of thin &#124; x1 &#124; x2 &#124; x3 &#124; x4 | thin    |
| accentColor | string                                                     | #0D59F2 |
| locale      | string one of fa &#124; en                                 | fa      |
| direction   | string one of rtl &#124; ltr                               | rtl     |
| children    | ReactNode                                                  | null    |



### Time Picker

| props           | type                                                       | default |
|-----------------|------------------------------------------------------------|---------|
| defaultValue    | timestamp &#124; Date &#124; Dayjs                         | Date    |
| round           | string one of thin &#124; x1 &#124; x2 &#124; x3 &#124; x4 | thin    |
| accentColor     | string                                                     | #0D59F2 |
| locale          | string one of fa &#124; en                                 | fa      |
| clockTime       | number one of 12 &#124; 24                                 | 24      |
| inputClass      | string                                                     | null    |
| inputAttributes | object of InputHTMLAttributes                              | null    |

## Usages
### Date picker

``` jsx
import { DatePicker } from "persian-fullcalendar";

function App() {
  return (
    <DatePicker onChange={(e) => console.log(e.value)} />
  )
}
```

### Range date picker

``` jsx
import { DatePicker } from "persian-fullcalendar";

function App() {
  return (
    <DatePicker onChange={(e) => console.log(e.from, e.to)} range />
  )
}
```

### Calendar

``` jsx
import { Calendar, CalendarProvider } from "persian-fullcalendar";

function App() {
  const [calendarValue, setCalendarValue] = useState(new Date())

  return (
    <CalendarProvider>
      <Calendar
        defaultValue={calendarValue}
        onChange={(e) => setCalendarValue(new Date(e.value))}
      />
    </CalendarProvider>
  )
}
```


### Time picker

``` jsx
import { TimePicker } from "persian-fullcalendar";

function App() {
  return (
    <TimePicker
      onChange={(e) => console.log(e.hour, e.minute, e.timeConvention)}
    />
  )
}
```

---
_Source: https://npm.io/package/persian-fullcalendar1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
