3.4.0 • Published 1 year ago

emerald-ui v3.4.0

Weekly downloads
256
License
ISC
Repository
github
Last release
1 year ago

Build Status

emerald-ui

Visual component library.

                    .------------------------.
                    |    Thanks for using    |
     _         _    |       EMERALD UI       |
^~^~/o\_______/ \   /------------------------'
         _______/  /
        |_____
__  __________\
  | |_
  |___\

Check out live examples in Storybook or go to the docs

Installation

Notes:

  1. Emerald UI has two peer dependencies: react and react-bootstrap. You must have those installed in order for Emerald-UI to work completely. Certain components don't depend on react-bootstrap so you might use them without having to install it. But it's recommended to install react-bootstrap nevertheless.

  2. Material Icons are used by components like Icon. You must import them, e.g. in your head tag: <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Run npm i emerald-ui

To import the styles to your app:

import 'emerald-ui/lib/styles.css';

Append tm, ceb or ec to apply the respective theme:

import 'emerald-ui/lib/styles-tm.css';

Note: By importing styles.css the ec theme will be applied.

To import components with a single import:

import { ComponentName1, ComponentName2 } from 'emerald-ui';

To import individual components:

import ComponentName from 'emerald-ui/lib/ComponentName';

For developers and collaborators

Installation

After cloning the repo, run npm i to install all the dependencies.

Important: If you get an error while installing the dependencies, run npm install -f -g node-sass and then remove the entry from package.json. This will force the installation of node-sass.

Usage tips

For testing the components visually we use Storybook. There you can see the components in action. For the optimal development performance we recommend running npm start in a Terminal tab and npm t in another. This way we activate the storybook server and the tests runner, so when a change is made you can get Storybook reloaded and see in real time whether the tests are green.

  • npm start will run Storybook.
  • npm t will run the tests with a watch. npm t -- --coverage will run the tests with a coverage report (both in console and in HTML). This will not run with a watch. If you want tu run the tests with coverage and watch, run npm t -- --coverage --watch.
  • npm run build will build the JS and CSS files, run the linter and will copy the svg and images to the lib folder.

Collaboration

Be sure to run npm run build to check that everything is green, which is that no tests are broken as well as the linter, before commiting and pushing changes to master. Under no circumstances should a broken build exist in the repo.

3.2.0

1 year ago

3.4.0

1 year ago

3.3.0

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

2.19.12

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.19.11

1 year ago

2.19.8

2 years ago

2.19.9

2 years ago

2.19.6

2 years ago

2.19.7

2 years ago

2.19.4

2 years ago

2.19.5

2 years ago

2.19.2

2 years ago

2.19.3

2 years ago

2.19.10

2 years ago

2.19.0

2 years ago

2.19.1

2 years ago

2.18.3

2 years ago

2.18.2

2 years ago

2.18.1

2 years ago

2.18.0

2 years ago

2.17.2

2 years ago

2.17.0

2 years ago

2.17.1

2 years ago

2.15.1

2 years ago

2.16.0

2 years ago

2.15.0

3 years ago

2.14.3

3 years ago

2.14.1

3 years ago

2.14.2

3 years ago

2.14.0

3 years ago

2.13.1

3 years ago

2.13.0

3 years ago

2.12.0

3 years ago

2.11.5

3 years ago

2.11.4

3 years ago

2.11.3

3 years ago

2.11.2

3 years ago

2.11.1

3 years ago

2.11.0

3 years ago

2.8.1

3 years ago

2.9.2

3 years ago

2.9.1

3 years ago

2.10.1

3 years ago

2.10.2

3 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.10.3

3 years ago

2.10.4

3 years ago

2.6.1

3 years ago

2.6.3

3 years ago

2.8.0

3 years ago

2.6.2

3 years ago

2.7.0

3 years ago

2.6.5

3 years ago

2.6.4

3 years ago

2.6.7

3 years ago

2.6.6

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.6

3 years ago

2.4.5

3 years ago

2.4.4

3 years ago

2.4.3

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

2.3.0

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-beta.0

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0-beta.6

6 years ago

0.1.0-beta.5

6 years ago

0.1.0-beta.4

6 years ago

0.1.0-beta.3

6 years ago

0.1.0-beta.2

6 years ago

0.1.0-beta.1

6 years ago

0.1.0-beta.0

6 years ago

0.1.0-alpha.19

6 years ago

0.1.1-alpha.18

6 years ago

0.1.0-alpha.18

6 years ago

0.1.0-alpha.17

6 years ago