@adobe/parliament-ui-components
UI Components for Parliament projects
Last updated 18 days ago by macdonst .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/parliament-ui-components 
SYNC missed versions from official npm registry.

parliament-ui-components

UI Components for Parliament projects

Version Downloads/week Build Status codecov License Language grade: JavaScript

Install

You can install the package using a package manager like npm or yarn.

yarn add @adobe/parliament-ui-components

Usage

import React from 'react'

import { Heading1, Footer } from '@adobe/parliament-ui-components'

const Example = ({ title }) => {
  return (
    <>
      <Heading1>{title}</Heading1>
      <div>Hello world!</div>
      <Footer />
    </>
  )
}

and don't forget to import the packages styles from @adobe/parliament-ui-components/dist/index.css.

Development

Install dependencies

yarn install

Run Tests

yarn test

Run Storybook

This project uses [Storybook][http://storybook.js.org/] for testing the look and behavior of its UI components.

yarn storybook

Concurrent Development

If you want to do concurrent development of this project while it is a dependency of another project you can accomplish it by using yarn link and following these steps.

Setup

1. Register this Project

This will register @adobe/parliament-ui-components, react and react-dom so they can be used in other local projects. It will also avoid the invalid hook call warning.

yarn link
cd node_modules/react
yarn link
cd ../react-dom
yarn link

2. Watch for Changes

yarn run start

Now any changes you make in this project will automatically be built.

3. Use Sibling Project

Go to the root directory of your sibling project and run the following commands:

yarn link react
yarn link react-dom
yarn link @adobe/parliament-ui-components

Now when you run your sibling project it will use the local copy of @adobe/parliament-ui-components that you can edit on the fly. Again, avoiding the invalid hook call warning.

Tear Down

When you no longer want to use the local copy of @adobe/parliament-ui-components you can revert back to the published package by following these steps.

1. Unlink the Dependencies

In your sibling project run:

yarn unlink react
yarn unlink react-dom
yarn unlink @adobe/parliament-ui-components
yarn install --force

This will return your project to the state when you did a yarn install.

Documentation

TODO

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

Current Tags

  • 2.6.17                                ...           latest (18 days ago)

50 Versions

  • 2.6.17                                ...           18 days ago
  • 2.6.16                                ...           20 days ago
  • 2.6.15                                ...           22 days ago
  • 2.6.14                                ...           22 days ago
  • 2.6.13                                ...           22 days ago
  • 2.6.12                                ...           22 days ago
  • 2.6.11                                ...           22 days ago
  • 2.6.10                                ...           25 days ago
  • 2.6.9                                ...           a month ago
  • 2.6.8                                ...           a month ago
  • 2.6.7                                ...           2 months ago
  • 2.6.6                                ...           2 months ago
  • 2.6.5                                ...           2 months ago
  • 2.6.4                                ...           2 months ago
  • 2.6.3                                ...           2 months ago
  • 2.6.2                                ...           2 months ago
  • 2.6.1                                ...           2 months ago
  • 2.6.0                                ...           2 months ago
  • 2.5.0                                ...           3 months ago
  • 2.4.1                                ...           3 months ago
  • 2.4.0                                ...           3 months ago
  • 2.3.1                                ...           3 months ago
  • 2.3.0                                ...           3 months ago
  • 2.2.3                                ...           3 months ago
  • 2.2.2                                ...           3 months ago
  • 2.2.1                                ...           3 months ago
  • 2.2.0                                ...           3 months ago
  • 2.1.1                                ...           3 months ago
  • 2.1.0                                ...           3 months ago
  • 2.0.4                                ...           4 months ago
  • 2.0.3                                ...           4 months ago
  • 2.0.2                                ...           4 months ago
  • 2.0.1                                ...           4 months ago
  • 2.0.0                                ...           4 months ago
  • 1.6.2                                ...           4 months ago
  • 1.6.1                                ...           4 months ago
  • 1.6.0                                ...           4 months ago
  • 1.5.3                                ...           4 months ago
  • 1.5.2                                ...           4 months ago
  • 1.5.1                                ...           4 months ago
  • 1.5.0                                ...           4 months ago
  • 1.4.1                                ...           4 months ago
  • 1.4.0                                ...           5 months ago
  • 1.3.1                                ...           5 months ago
  • 1.3.0                                ...           5 months ago
  • 1.2.2                                ...           5 months ago
  • 1.2.1                                ...           5 months ago
  • 1.2.0                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
Downloads
Today 12
This Week 12
This Month 12
Last Day 0
Last Week 7
Last Month 245

Copyright 2014 - 2016 © taobao.org |