1.0.51 • Published 7 years ago

eurostar-datepicker v1.0.51

Weekly downloads
7
License
ISC
Repository
-
Last release
7 years ago

Eurostar Datepicker Component

The component to allow the customer to select a date. This is currently used on booking-magnet for the customer to choose the depart and return date.

Contents

There is two variants of this component, default which has U.K. date format and U.S. for the American market which is of course in american date format.

Only the label changes, depart and return. Localisation is determined by the URL to determine the market i.e. fr-fr in URL market segment will return the French translations.

Installation

Base Styles must be installed in order to use the component. For more detailed explaination please review the Styleguide README here The datepicker has 1 third party library which is preinstalled with Base Styles and another internally within the JavaScript. The JS should be consumed from the transpiled dist version however if using from the ES6 raw source code, JSPM (could be possible with Webpack but is untested) will need to be installed for usage in order to get these third party library.

Third party dependencies:

  • breakpoint-sass
  • (handled via JSPM) pikaday

Eurostar:

  • eurostar-base-styles
  • eurostar-datepicker

Usage

  1. Extract the HTML markup as defined under Expand Markup: (https://style.eurostar.com/components/detail/datepicker.html)

  2. Import styles:

    // Using JSPM:
    @import "jspm:eurostar-datepicker/datepicker";
    // Using Webpack:
    @import "~eurostar-datepicker/_datepicker.scss";
  1. Import JS and Component Initialisation:
    // Using JSPM:
    import Datepicker from 'eurostar-datepicker/datepicker';
    const datepicker = new Datepicker();
    // Using Webpack / React:
    const Datepicker = require("eurostar-datepicker").default;
    new Datepicker();
1.0.51

7 years ago

1.0.50

7 years ago

1.0.49

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.40-alpha.2

7 years ago

1.0.40-alpha.1

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.38-alpha.1

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.34-alpha.1

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.31-alpha.6

7 years ago

1.0.31-alpha.5

7 years ago

1.0.31-alpha.4

7 years ago

1.0.31-alpha.3

7 years ago

1.0.31-alpha.2

7 years ago

1.0.31-alpha.1

7 years ago

1.0.30

7 years ago

1.0.30-alpha.2

7 years ago

1.0.30-alpha.1

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.27-alpha.5

7 years ago

1.0.27-alpha.5s

7 years ago

1.0.27-alpha.4

7 years ago

1.0.27-alpha.3

7 years ago

1.0.27-alpha.2

7 years ago

1.0.27-alpha.1

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23-alpha.1

8 years ago

1.0.22-alpha.2

8 years ago

1.0.22-alpha.1

8 years ago

1.0.23

8 years ago

1.0.21

8 years ago

1.0.22

8 years ago

1.0.21-alpha.3

8 years ago

1.0.21-alpha.2

8 years ago

1.0.21-alpha.1

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.19-alpha.2

8 years ago

1.0.19-alpha.1

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.17-alpha.1

8 years ago

1.0.17-alpha.4

8 years ago

1.0.17-alpha.3

8 years ago

1.0.17-alpha.2

8 years ago

1.0.1-7.alpha-1

8 years ago

1.0.16

8 years ago

1.0.16-alpha.4

8 years ago

1.0.16-alpha.3

8 years ago

1.0.16-alpha.2

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.1-4.alpha-1

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago