1.0.36 • Published 7 years ago

eurostar-navigation v1.0.36

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

Eurostar Navigation Component

Component that displays the navigation.

Contents

Contains Eurostar Logo, the Market Selector and three Navigation Blocks (user, primary and secondary) components.

Installation

Base Styles must be installed in order to use the component. For more detailed explaination please review the Styleguide README here

The Navigation has 2 third party libraries which are preinstalled with Base Styles and 3 Eurostar components as dependencies. The Eurostar dependencies can be installed using jspm or npm depending on the bundler tool. For more detailed explaination please review the Styleguide README: /docs/documentation.html#consuming.

Third party dependencies:

  • breakpoint-sass
  • susy

Eurostar dependencies:

  • eurostar-market-selector
  • eurostar-market-option: This is a dependency of market-selector
  • eurostar-navigation-block

Usage

After installing the dependencies follow the below steps to get a base Navigation component in place.

  1. Setup the HTML markup as defined within the Examples for Default variant below or here https://style.eurostar.com/components/detail/navigation.html

  2. Import styles:

  • Using JSPM:
    @import "jspm:eurostar-market-option/market-option";
    @import "jspm:eurostar-market-selector/market-selector";
    @import "jspm:eurostar-navigation/navigation";
    @import "jspm:eurostar-navigation-block/navigation-block";
  • Using Webpack:
    @import "~eurostar-market-option/_market-option.scss";
    @import "~eurostar-market-selector/_market-selector.scss";
    @import "~eurostar-navigation/_navigation.scss";
    @import "~eurostar-navigation-block/_navigation-block.scss";
  1. Import JS and Component Initialisation:
  • Using JSPM:
    import MarketSelector from 'eurostar-market-selector/market-selector';
    import Navigation from 'eurostar-navigation/navigation';

    const marketSelector = new MarketSelector();
    const navigation = new Navigation();
  • Using Webpack in React App:
componentDidMount() {
    const Navigation = require("eurostar-navigation/dist/navigation").default
    const MarketSelector = require("eurostar-market-selector/dist/market-selector").default
    new Navigation()
    new MarketSelector()
}
1.0.36

7 years ago

1.0.34

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.31-alpha.1

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.23-alpha.1

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

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.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago