
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
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.
Zaman is a lightweight React component for creating a Jalali/Georgian datepicker. There is also a range datepicker and timepicker in Zaman. The module can also be customized to match the appearance of your designs.
I appreciate Ali Samandar's design of this library. Give him your support.
check out the codesandbox link.
with npm
$ npm i zaman
with yarn
$ yarn add zaman
props | type | default |
---|---|---|
defaultValue | timestamp | Date | Dayjs | undefined |
weekend | number[] | undefined |
round | string one of thin | x1 | x2 | x3 | x4 | thin |
accentColor | string | #0D59F2 |
locale | string one of fa | en | fa |
direction | string one of rtl | ltr | rtl |
onChange | function | undefined |
range | boolean | false |
from | timestamp | Date | Dayjs | undefined |
to | timestamp | Date | 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 | left | center | right |
props | type | default |
---|---|---|
round | string one of thin | x1 | x2 | x3 | x4 | thin |
accentColor | string | #0D59F2 |
locale | string one of fa | en | fa |
direction | string one of rtl | ltr | rtl |
children | ReactNode | null |
props | type | default |
---|---|---|
defaultValue | timestamp | Date | Dayjs | Date |
round | string one of thin | x1 | x2 | x3 | x4 | thin |
accentColor | string | #0D59F2 |
locale | string one of fa | en | fa |
clockTime | number one of 12 | 24 | 24 |
inputClass | string | null |
inputAttributes | object of InputHTMLAttributes | null |
import { DatePicker } from "zaman";
function App() {
return (
<DatePicker onChange={(e) => console.log(e.value)} />
)
}
import { DatePicker } from "zaman";
function App() {
return (
<DatePicker onChange={(e) => console.log(e.from, e.to)} range />
)
}
import { Calendar, CalendarProvider } from "zaman";
function App() {
const [calendarValue, setCalendarValue] = useState(new Date())
return (
<CalendarProvider>
<Calendar
defaultValue={calendarValue}
onChange={(e) => setCalendarValue(new Date(e.value))}
/>
</CalendarProvider>
)
}
import { TimePicker } from "zaman";
function App() {
return (
<TimePicker
onChange={(e) => console.log(e.hour, e.minute, e.timeConvention)}
/>
)
}
FAQs
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.
The npm package zaman receives a total of 483 weekly downloads. As such, zaman popularity was classified as not popular.
We found that zaman demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.