@convious/rtp-calendar
TypeScript icon, indicating that this package has built-in type declarations

2.4.11 • Public • Published

@convious/rtp-calendar

Calendar which represents prices over months

NPM JavaScript Style Guide

Install

npm install --save @convious/rtp-calendar

Usage

import React, { Component } from 'react'

import { RtpCalendar } from 'rtp-calendar'

class Example extends Component {
  render() {
    const prices = [
      {
        date: '2021-01-02',
        pricing: { availability: 'AVAILABLE' as Availability, price: '11.11', weight: 0 }
      },
      {
        date: '2021-01-03',
        pricing: { availability: 'AVAILABLE' as Availability, price: '22.22', weight: 2 }
      },
      {
        date: '2021-01-04',
        pricing: { availability: 'AVAILABLE' as Availability, price: '33.33', weight: 3 }
      }
    ]
    return (
      <RtpCalendar
        locale="en"
        prices={prices}
      />
    )
  }
}

Package development with npm link

For simultaneous development with another repo you can use npm link:

# In calendar dir run
npm link
# In project dir run
npm link @convious/rtp-calendar

Publishing package

npm version x.x.x -m "Git comment"  # Creates a version tag and a commit
npm login							              # Logs in to NPM
npm publish							            # Publishes new package version

License

MIT © Convious

Readme

Keywords

none

Package Sidebar

Install

npm i @convious/rtp-calendar

Weekly Downloads

19

Version

2.4.11

License

MIT

Unpacked Size

142 kB

Total Files

19

Last publish

Collaborators

  • rytis-convious
  • vytautas.mackonis
  • convious_npm