2.4.11 • Published 2 months ago

@convious/rtp-calendar v2.4.11

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

@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

2.4.11

2 months ago

2.4.10

2 months ago

2.4.9

2 years ago

2.4.3

3 years ago

2.4.5

2 years ago

2.4.4

3 years ago

2.4.7

2 years ago

2.4.6

2 years ago

2.4.8

2 years ago

2.4.2

3 years ago

2.3.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.1

3 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago