
Security News
Python Tools Are Quickly Adopting the New pylock.toml Standard
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
@paprika/calendar
Advanced tools
This package consists of two components (SingleDateCalendar
and DateRangeCalendar
) providing calendar views but with difference that SingleDateCalendar
allows selecting only one exact date and DateRangeCalendar
allows selection range of dates.
npm install --save @paprika/calendar
or
yarn add @paprika/calendar
Please use <L10n />
component to wrap calendar components or you application.
import SingleDateCalendar from "@paprika/calendar/lib/SingleDateCalendar";
// alternative (but has potential problems with tree-shaking):
// import { SingleDateCalendar } from "@paprika/calendar";
const [date, setDate] = React.useState(null);
const [possibleDate, setPossibleDate] = React.useState(null);
<SingleDateCalendar
date={date}
onSelect={setDate}
possibleDate={possibleDate}
resetPossibleDate={() => {
setPossibleDate(null);
}}
/>;
import DateRangeCalendar from "@paprika/calendar/lib/DateRangeCalendar";
// alternative (but has potential problems with tree-shaking):
// import { DateRangeCalendar } from "@paprika/calendar";
import { START_DATE } from "@paprika/calendar/lib/tokens";
const [currentInput, setCurrentInput] = React.useState(START_DATE);
const [{ startDate, endDate }, setDates] = React.useState({ startDate: null, endDate: null });
const [possibleDate, setPossibleDate] = React.useState(null);
<DateRangeCalendar
startDate={startDate}
endDate={endDate}
onDatesChange={setDates}
possibleDate={possibleDate}
resetPossibleDate={() => {
setPossibleDate(null);
}}
focusedInput={currentInput || START_DATE}
onFocusChange={setCurrentInput}
/>;
date
(required)onSelect
(required)possibleDate
resetPossibleDate
startDate
(required)endDate
(required)onDatesChange
(required)possibleDate
resetPossibleDate
focusedInput
(required)onFocusChange
(required)FAQs
Calendar component
The npm package @paprika/calendar receives a total of 953 weekly downloads. As such, @paprika/calendar popularity was classified as not popular.
We found that @paprika/calendar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.