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

qwik-calendar

v0.2.2

Published

Um componente de calendário para aplicações Qwik

Downloads

40

Readme

qwik-calendar

A calendar component for qwik apps!

The goal is to recreate wojtekmaj/react-calendar for qwik applications. This library is still in development so there are a lot of incomplete stuff

Instalation

You can install this component libary using:

npm i qwik-calendar

Usage

import { Calendar } from "qwik-calendar";

export default () => {
  return (
    <>
      <head>
        <meta charSet="utf-8" />
        <title>Qwik Calendar by Kunum</title>
      </head>
      <body>
        <Calendar/>
      </body>
    </>
  );
};

User guide

Calendar

import { Calendar } from "qwik-calendar";

<Calendar/>

| Prop name | Prop Type | Description | Default value | Example values | | ---------------------- | -------------------------------- | ------------------------------------------------------------------------------- | ------------- | ------------------------------------------ | | onClickDay$ | (day: Date) => void | undefined | Function called when the user clicks a day. | n/a | (value) => alert('Clicked day: ', value) | | calendarStyles | CSSProperties| undefined | CSS styles for the calendar container | n/a | {borderRadius: "10px"} | | navigationStyles | CSSProperties| undefined | CSS styles for the navigation (header) container | n/a | {backgroundColor: "#DDDDDD"} | | navigationButtonStyles | CSSProperties | undefined | CSS styles for the buttons on the navigation bar | n/a | {fontSize: "12px"} | | monthViewStyles | CSSProperties| undefined | CSS styles for the month view (days) container | n/a | {backgroundColor: "#EEEEEE"} | | yearViewStyles | CSSProperties | undefined | CSS styles for the year view (months) container | n/a | {backgroundColor: "#EEEEEE"} | | dayStyles | CSSProperties| undefined | CSS styles for each individual day (MonthView) | n/a | {borderRadius: "50%"} | | monthStyles | CSSProperties | undefined | CSS styles for each individual month (YearView) | n/a | {borderRadius: "10%"} | | daysStyles | CSSProperties| undefined | CSS styles for the days container | n/a | {backgroundColor: "#EEEEEE"} | | invalidDayStyles | CSSProperties| undefined | CSS styles for invalid days (days from other months) | n/a | {color: "#FEFEFE"} | | dayTextColor | string | undefined | The color of the day number | "#00000" | "#101101" | | weekendTextColor | string | undefined | The color of the weekend day number | "#d10000" | "ff0000" | | todayBgColor | string | undefined | The background color used to mark the current day in the calendar | "#ffff76" | "ffe386" | | locale | string | undefined | The language of the calendar | "pt-br" | "en-us" | | hideNavigation | boolean | undefined | Defines if the navigation bar is going to be displayed | false | true | | showNeighbouringMonth | boolean | undefined | Defines if the Month View is going to display days from the neighbouring months | true | false | | startingView | string | undefined | Defines in which view the calendar will start when first-rendered | "month" | "year" |

Views

Views are pre-defined exibition of the calendar that shows diferent kinds os dates. The user can move foward or backwards through the dates faster using diferent views that can be changed using the navigation bar.

Avaliable views:

  • Month View: Shows an specific month with all of its days.
  • Year view: Shows an specific year with all of its months.
  • Decade view: Shows all years within an decade.

Docs in other languages