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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ptkhanh94npm/repellendus-reprehenderit-sequi

v1.0.0

Published

[![npm](https://img.shields.io/npm/v/@ptkhanh94npm/repellendus-reprehenderit-sequi.svg)](https://www.npmjs.com/package/@ptkhanh94npm/repellendus-reprehenderit-sequi) ![downloads](https://img.shields.io/npm/dt/@ptkhanh94npm/repellendus-reprehenderit-sequi.

Downloads

2

Keywords

ArrayObject.entriestrimEndpruneObject.isECMAScript 2021concatMapbannerES2016prototypejwtproplanguageArray.prototype.findLastIndexweaksetStreammergeparserremovelesscssStyleSheetextendmatchAllsameValueZeroReactiveExtensionsdataviewargumentexitless.jsmovedefinestructuredCloneJSON-SchemarequireinstallECMAScript 2023encryptionglobasciiistyped arrayvisualponyfillURLintrinsicarraybufferlruECMAScript 2022variables in cssInt32Arraymime-dbimmutablewaitsearchregularhttpsreact-hookswrapfseventsjestsyntaxerrorspinnersescapeinvariantsymlinkreusewritablegetOwnPropertyDescriptorjQuerycharacterarktypeexpresstypedarrayES2015schemekarmawgetlimitedbytegenericsRxJStrimpipeless mixinsrm -rfl10ndatastructuresequenceesObject.definePropertyES6$.extendassignelectronArrayBuffer.prototype.sliceprotobufchailengthcss variablestyled-componentsUnderscoreregexpvariablesfindforEachmonorepoconcurrencypackagestringifysanitizationguiddeepeventDispatcherreadinstallerboundwriteHyBicollection.es6promisewhatwgcloneweakmapformindicatorsetImmediatejsoneslintpluginxtermdataclassnamesparseframeworkYAMLcreatetypedarrayslimitoptimisttraversespringtoArraynamestextcore-jsless cssString.prototype.trimcomputed-typesbabel-coreschemaruntimetrimRightsortreadableArray.prototype.includesbrowserslisteslintdescriptorgraphqltypedfast-copylessRegExp#flagsTypeBoxbufferiteratetssetPrototypeOffindLastjson-schemastreams2tc39serializationenvironmentnodejsUint8Array__proto__mkdirsgetPrototypeOfcontainsmulti-packagettysortedendertesterFloat64ArrayramdagroupBybyteLengthshebangbluebirdrgbfastfull-widthprogressreact-hook-formlistenersObservablesstyleguidewebnodePromiseWebSocketstouchArray.prototype.flatMapwaapispinnerfullwidthautoprefixercomparestatusECMAScript 3react animationqueryqueueBigInt64ArraytoobjectobjectpreprocessordataViewopenlogjsdifffindLastIndexpropertiesArray.prototype.flatlastredux-toolkittakeargparsefastclonethreemobileduplextimeeast-asian-widthfinduphelpersBigUint64Arrayes2015Float32ArrayformattingcommanderpicomatchrandomflagsoptimizerWeakMapsideECMAScript 2016inferenceequalityclientoutputflattencompile lessmixinsvaluestypeofdotenvgdprjoibatchdebuggerstableinternal slotES2023.envcurriedhasOwndeep-copyeslintconfigreduceomites2016cliless compilerargsxhrrm -frfind-upprotocol-buffersString.prototype.matchAllvarvalidatorserializesymboldeep-clonecss nestingfast-deep-cloneregular expressionwatcherrecursiveESnextzeroCSSStyleDeclarationMapvalidationpopmotion256nativephoneaccessoruuidprivate databootstrap csskeyReactiveXposeansipackage.jsonES2021apiquerystringstringbddcompilerregexresolveeslint-pluginserializerObservablestreammatchessymbolstelephonehandlersdragformathookformrangeerrorclassnamequotefunctionallook-updebugexecwatchFileinternalcolor_.extenddeepclonetestefficientbcryptpoint-freeutil.inspectES8ieconfigurablewarningjson-schema-validationECMAScript 7ES2020ratelimitassertscensorajvawesomesaucees63di18ntypesFunction.prototype.nametestinglockfilemruform-validationavapureconfigrmharmonyes8jasmineupbusyconcatiteratorsuperagentvalidsharedarraybufferjsxemitMicrosoftbindpolyfilltranspileECMAScript 20196to5typescriptdirectorymakefantasy-landaccessibilitynegativeyamlexit-codebyteOffsetUint32Arrayiterationpasswordcall-bound@@toStringTagfast-cloneutilspnpm9ES2022ArrayBufferwhichqsanimationstyleemojiUint8ClampedArrayenvsettingsIteratorshimlinkcryptorequestunicodeimmertypaniones-shim APIcall-bindgetterframercrypttranspilerperformanceObject.getPrototypeOfcurlprettycallbackimportfastifypluginlazyarraysafetostringtagzodterminalassertionECMAScript 2020fpidleObjectgetintrinsices2017has[[Prototype]]lintES7lookauthinputwordwrapnumbertoolspropertysuperstructcolourutilpostcss-pluginscheme-validationgradients css3Object.keysdefinePropertypackage managermomentmodulesregular expressionsuser-streamsloggerthrottleflatMapfunctionvaluetoSortedobjtrimLeftfile systemenumerablechannelnopees-shimscoreWebSocketdescriptionkoreansomestylesES3typesafeflateveryES2019cachereadablestreamstylesheetfigletreact posetapequeueMicrotaskartdropcopyoffsetformsirqratermdirpreserve-symlinksmkdircallboundkeysstarterprefixSetcolorsinspectclass-validatorjson-schema-validatorECMAScript 2015consumeObject.valuesjsonpathprotoshambootstrap lesses-abstractmake direrrortoStringTagworkerdiffsignalstrimStart-0matcheventscommand-lineTypeScriptRFC-6455fixed-widthfilefolderfastcopygesturesentrieswatchtypeio-tseventEmitterPushstatelessgetsigtermES2018argvUint16Arraystdlibworkspace:*callECMAScript 6watchingloadingviewa11yfilterlibphonenumberasyncconstjsdomapollohttpObject.fromEntriescode pointscollectioncolumnwordbreakauthenticationutilitiesdeterministicassertshellbabeles2018hashpersistentcoercibleslicetermthroattypeerroroperating-systemmapisConcatSpreadableRegExp.prototype.flagsmochadayjsdependencieshardlinksawaitextrajavascriptsignalreact-testing-libraryextensionmodulereactbuffershigher-ordersanitizedeletecodeslinewrappathjapaneseInt8ArrayvalidateArray.prototype.findLastrapidESpromisesECMAScript 5taskprivatepyyamlpatchflagxssfscharactersastJSONpackagesloggingcss lessWeakSetbreakbundlinges5Array.prototype.containsgroupdateSymboles7CSSurlcolumnsreducerfullmiddleware

Readme

npm downloads CI

@ptkhanh94npm/repellendus-reprehenderit-sequi

Ultimate calendar for your React app.

  • Pick days, months, years, or even decades
  • Supports range selection
  • Supports virtually any language
  • No moment.js needed

tl;dr

  • Install by executing npm install @ptkhanh94npm/repellendus-reprehenderit-sequi or yarn add @ptkhanh94npm/repellendus-reprehenderit-sequi.
  • Import by adding import Calendar from '@ptkhanh94npm/repellendus-reprehenderit-sequi'.
  • Use by adding <Calendar />. Use onChange prop for getting new values.

Demo

A minimal demo page can be found in sample directory.

Online demo is also available!

Before you continue

@ptkhanh94npm/repellendus-reprehenderit-sequi is under constant development. This documentation is written for @ptkhanh94npm/repellendus-reprehenderit-sequi 4.x branch. If you want to see documentation for other versions of @ptkhanh94npm/repellendus-reprehenderit-sequi, use dropdown on top of GitHub page to switch to an appropriate tag. Here are quick links to the newest docs from each branch:

Getting started

Compatibility

Your project needs to use React 16.8 or later.

@ptkhanh94npm/repellendus-reprehenderit-sequi uses modern web technologies. That's why it's so fast, lightweight and easy to style. This, however, comes at a cost of supporting only modern browsers.

Legacy browsers

If you need to support legacy browsers like Internet Explorer 10, you will need to use Intl.js or another Intl polyfill along with @ptkhanh94npm/repellendus-reprehenderit-sequi.

My locale isn't supported! What can I do?

If your locale isn't supported, you can use Intl.js or another Intl polyfill along with @ptkhanh94npm/repellendus-reprehenderit-sequi.

Installation

Add @ptkhanh94npm/repellendus-reprehenderit-sequi to your project by executing npm install @ptkhanh94npm/repellendus-reprehenderit-sequi or yarn add @ptkhanh94npm/repellendus-reprehenderit-sequi.

Usage

Here's an example of basic usage:

import { useState } from 'react';
import Calendar from '@ptkhanh94npm/repellendus-reprehenderit-sequi';

type ValuePiece = Date | null;

type Value = ValuePiece | [ValuePiece, ValuePiece];

function MyApp() {
  const [value, onChange] = useState<Value>(new Date());

  return (
    <div>
      <Calendar onChange={onChange} value={value} />
    </div>
  );
}

Check the sample directory in this repository for a full working example. For more examples and more advanced use cases, check Recipes in @ptkhanh94npm/repellendus-reprehenderit-sequi Wiki.

Custom styling

If you want to use default @ptkhanh94npm/repellendus-reprehenderit-sequi styling to build upon it, you can import @ptkhanh94npm/repellendus-reprehenderit-sequi's styles by using:

import '@ptkhanh94npm/repellendus-reprehenderit-sequi/dist/Calendar.css';

User guide

Calendar

Displays a complete, interactive calendar.

Props

| Prop name | Description | Default value | Example values | | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | activeStartDate | The beginning of a period that shall be displayed. If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in an uncontrolled way, use defaultActiveStartDate instead. | (today) | new Date(2017, 0, 1) | | allowPartialRange | Whether to call onChange with only partial result given selectRange prop. | false | true | | calendarType | Type of calendar that should be used. Can be 'gregory, 'hebrew', 'islamic', 'iso8601'. Setting to "gregory" or "hebrew" will change the first day of the week to Sunday. Setting to "islamic" will change the first day of the week to Saturday. Setting to "islamic" or "hebrew" will make weekends appear on Friday to Saturday. | Type of calendar most commonly used in a given locale | 'iso8601' | | className | Class name(s) that will be added along with "@ptkhanh94npm/repellendus-reprehenderit-sequi" to the main @ptkhanh94npm/repellendus-reprehenderit-sequi <div> element. | n/a | String: "class1 class2"Array of strings: ["class1", "class2 class3"] | | defaultActiveStartDate | The beginning of a period that shall be displayed by default. If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in a controlled way, use activeStartDate instead. | (today) | new Date(2017, 0, 1) | | defaultValue | Calendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in a controlled way, use value instead. | n/a | Date: new Date()An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)] | | defaultView | Determines which calendar view shall be opened initially. Does not disable navigation. Can be "month", "year", "decade" or "century". If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in a controlled way, use view instead. | The most detailed view allowed | "year" | | formatDay | Function called to override default formatting of day tile labels. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'd') | | formatLongDate | Function called to override default formatting of day tile abbr labels. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'dd MMM YYYY') | | formatMonth | Function called to override default formatting of month names. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'MMM') | | formatMonthYear | Function called to override default formatting of months and years. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'MMMM YYYY') | | formatShortWeekday | Function called to override default formatting of weekday names (shortened). Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'dd') | | formatWeekday | Function called to override default formatting of weekday names. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'dd') | | formatYear | Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function. | (default formatter) | (locale, date) => formatDate(date, 'YYYY') | | goToRangeStartOnSelect | Whether to go to the beginning of the range when selecting the end of the range. | true | false | | inputRef | A prop that behaves like ref, but it's passed to main <div> rendered by <Calendar> component. | n/a | Function:(ref) => { this.myCalendar = ref; }Ref created using createRef:this.ref = createRef();inputRef={this.ref}Ref created using useRef:const ref = useRef();inputRef={ref} | | locale | Locale that should be used by the calendar. Can be any IETF language tag. Note: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client. | Server locale/User's browser settings | "hu-HU" | | maxDate | Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although @ptkhanh94npm/repellendus-reprehenderit-sequi will ensure that no later date is selected. | n/a | Date: new Date() | | maxDetail | The most detailed view that the user shall see. View defined here also becomes the one on which clicking an item will select a date and pass it to onChange. Can be "month", "year", "decade" or "century". | "month" | "year" | | minDate | Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although @ptkhanh94npm/repellendus-reprehenderit-sequi will ensure that no earlier date is selected. | n/a | Date: new Date() | | minDetail | The least detailed view that the user shall see. Can be "month", "year", "decade" or "century". | "century" | "decade" | | navigationAriaLabel | aria-label attribute of a label rendered on calendar navigation bar. | n/a | "Go up" | | navigationAriaLive | aria-live attribute of a label rendered on calendar navigation bar. | undefined | "polite" | | navigationLabel | Content of a label rendered on calendar navigation bar. | (default label) | ({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`) | | next2AriaLabel | aria-label attribute of the "next on higher level" button on the navigation pane. | n/a | "Jump forwards" | | next2Label | Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | "»" | String: "»"React element: <DoubleNextIcon /> | | nextAriaLabel | aria-label attribute of the "next" button on the navigation pane. | n/a | "Next" | | nextLabel | Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon. | "›" | String: "›"React element: <NextIcon /> | | onActiveStartDateChange | Function called when the user navigates from one view to another using previous/next button. Note that this function will not be called when e.g. drilling up from January 2021 to 2021 or drilling down the other way around.action signifies the reason for active start date change and can be one of the following values: "prev", "prev2", "next", "next2", "drillUp", "drillDown", "onChange". | n/a | ({ action, activeStartDate, value, view }) => alert('Changed view to: ', activeStartDate, view) | | onChange | Function called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available. | n/a | (value, event) => alert('New date is: ', value) | | onClickDay | Function called when the user clicks a day. | n/a | (value, event) => alert('Clicked day: ', value) | | onClickDecade | Function called when the user clicks a decade. | n/a | (value, event) => alert('Clicked decade: ', value) | | onClickMonth | Function called when the user clicks a month. | n/a | (value, event) => alert('Clicked month: ', value) | | onClickWeekNumber | Function called when the user clicks a week number. | n/a | (weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date) | | onClickYear | Function called when the user clicks a year. | n/a | (value, event) => alert('Clicked year: ', value) | | onDrillDown | Function called when the user drills down by clicking a tile. | n/a | ({ activeStartDate, view }) => alert('Drilled down to: ', activeStartDate, view) | | onDrillUp | Function called when the user drills up by clicking drill up button. | n/a | ({ activeStartDate, view }) => alert('Drilled up to: ', activeStartDate, view) | | onViewChange | Function called when the user navigates from one view to another using drill up button or by clicking a tile.action signifies the reason for view change and can be one of the following values: "prev", "prev2", "next", "next2", "drillUp", "drillDown", "onChange". | n/a | ({ action, activeStartDate, value, view }) => alert('New view is: ', view) | | prev2AriaLabel | aria-label attribute of the "previous on higher level" button on the navigation pane. | n/a | "Jump backwards" | | prev2Label | Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | "«" | String: "«"React element: <DoublePreviousIcon /> | | prevAriaLabel | aria-label attribute of the "previous" button on the navigation pane. | n/a | "Previous" | | prevLabel | Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon. | "‹" | String: "‹"React element: <PreviousIcon /> | | returnValue | Which dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be "start", "end" or "range". The latter will cause an array with start and end values to be passed. | "start" | "range" | | selectRange | Whether the user shall select two dates forming a range instead of just one. Note: This feature will make @ptkhanh94npm/repellendus-reprehenderit-sequi return array with two dates regardless of returnValue setting. | false | true | | showDoubleView | Whether to show two months/years/… at a time instead of one. Defaults showFixedNumberOfWeeks prop to be true. | false | true | | showFixedNumberOfWeeks | Whether to always show fixed number of weeks (6). Forces showNeighboringMonth prop to be true. | false | true | | showNavigation | Whether a navigation bar with arrows and title shall be rendered. | true | false | | showNeighboringCentury | Whether decades from next century shall be rendered to fill the entire last row in. | false | true | | showNeighboringDecade | Whether years from next decade shall be rendered to fill the entire last row in. | false | true | | showNeighboringMonth | Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively. | true | false | | showWeekNumbers | Whether week numbers shall be shown at the left of MonthView or not. | false | true | | tileClassName | Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on). | n/a | String: "class1 class2"Array of strings: ["class1", "class2 class3"]Function: ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null | | tileContent | Allows to render custom content within a given calendar item (day on month view, month on year view and so on). | n/a | String: "Sample"React element: <TileContent />Function: ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null | | tileDisabled | Pass a function to determine if a certain day should be displayed as disabled. | n/a | ({ activeStartDate, date, view }) => date.getDay() === 0 | | value | Calendar value. Can be either one value or an array of two values. If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in an uncontrolled way, use defaultValue instead. | n/a | Date: new Date()String: 2017-01-01An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)]An array of strings: ['2017-01-01', '2017-08-01'] | | view | Determines which calendar view shall be opened. Does not disable navigation. Can be "month", "year", "decade" or "century". If you wish to use @ptkhanh94npm/repellendus-reprehenderit-sequi in an uncontrolled way, use defaultView instead. | The most detailed view allowed | "year" |

MonthView, YearView, DecadeView, CenturyView

Displays a given month, year, decade and a century, respectively.

Props

| Prop name | Description | Default value | Example values | | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | activeStartDate | The beginning of a period that shall be displayed. | n/a | new Date(2017, 0, 1) | | hover | The date over which the user is hovering. Used only when selectRange is enabled, to render a “WIP” range when the user is selecting range. | n/a | new Date(2017, 0, 1) | | maxDate | Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although @ptkhanh94npm/repellendus-reprehenderit-sequi will ensure that no later date is selected. | n/a | Date: new Date() | | minDate | Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although @ptkhanh94npm/repellendus-reprehenderit-sequi will ensure that no earlier date is selected. | n/a | Date: new Date() | | onClick | Function called when the user clicks an item (day on month view, month on year view and so on). | n/a | (value) => alert('New date is: ', value) | | tileClassName | Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on). | n/a | String: "class1 class2"Array of strings: ["class1", "class2 class3"]Function: ({ date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null | | tileContent | Allows to render custom content within a given item (day on month view, month on year view and so on). Note: For tiles with custom content you might want to set fixed height of @ptkhanh94npm/repellendus-reprehenderit-sequi__tile to ensure consistent layout. | n/a | ({ date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null | | value | Calendar value. Can be either one value or an array of two values. | n/a | Date: new Date()An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)]String: 2017-01-01An array of strings: ['2017-01-01', '2017-08-01'] |

Useful links

License

The MIT License.

Author

Thank you

Sponsors

Thank you to all our sponsors! Become a sponsor and get your image on our README on GitHub.

Backers

Thank you to all our backers! Become a backer and get your image on our README on GitHub.

Top Contributors

Thank you to all our contributors that helped on this project!

Top Contributors