Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@paprika/calendar
Advanced tools
Readme
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 1,981 weekly downloads. As such, @paprika/calendar popularity was classified as 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.