bright-components

10.2.9 • Public • Published

React Components

See latest components here.

Developing with WebApp

Npm allows you to point at any github branch, develop your component first, push to your branch, and point WebApp bright-components to that branch.

In order to do that, update package.json with the commit hash you require and do an npm install.

"bright-components": "github:brighthr/brightcomponents#eff943143d40f95cf0cc2695ca888bce8f95dc04"

It is also possible to use the branch name, but if you push further commits you'll need to use npm update: "bright-components": "github:brighthr/brightcomponents#test-version"

Once demoed and tested, merge your bright-components PR to master.

Update the reference in WebApp to point to published version.

Component Library

We use Styleguidist to provide living documentation for the components.

Run npm run styleguide and then hit http://localhost:6060. This will update as you add to your component.

Windows devs

You'll probably want to run the following commands within the repo to ensure consistent line endings, since whilst Git will convert them for you, the linter expects LF, not CLRF:

$ git config core.eol lf
$ git config core.autocrlf input
$ git checkout-index --force --all

Generating icons

Create a new directory icons in root, if one does not already exist on your local machine. Add the icon.svg to this folder. Run the genIcons.js script with the following command npm run genIcons. Delete icon.svg from the icons directory.

Versioning

We use semactic-release package to automate versioning and deployment to NPM. Commit messages should adhere to conventions here.

Here is an example of the release type that will be done based on a commit messages:

Patch Release:

fix(pencil): stop graphite breaking when too much pressure applied

Feature Release:

feat(pencil): add graphiteWidth option

Breaking Release:

feat(Modal): add new required prop to Modal

BREAKING CHANGE: All modals need GA prop now.

  • When you squash and merge a PR onto master, make sure you put a "BREAKING CHANGE:" line in the commit message section.

example

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.2.9193latest

Version History

VersionDownloads (Last 7 Days)Published
10.2.9193
10.2.80
10.2.76
10.2.60
10.2.50
10.2.40
10.2.30
10.2.20
10.2.10
10.2.00
10.1.10
10.1.00
10.0.01
9.33.05
9.32.10
9.32.00
9.31.00
9.30.00
9.29.00
9.28.20
9.28.10
9.28.00
9.27.00
9.26.10
9.26.00
9.25.10
9.25.00
9.24.80
9.24.70
9.24.60
9.24.50
9.24.40
9.24.30
9.24.20
9.24.10
9.24.00
9.23.00
9.22.10
9.22.00
9.21.00
9.20.00
9.19.00
9.18.00
9.17.40
9.17.30
9.17.20
9.17.10
9.17.00
9.16.10
9.16.00
9.15.00
9.14.00
9.13.01
9.12.00
9.11.30
9.11.20
9.11.10
9.11.00
9.10.21
9.10.10
9.10.00
9.9.50
9.9.40
9.9.31
9.9.20
9.9.10
9.9.00
9.8.10
9.8.00
9.7.40
9.7.30
9.7.20
9.7.11
9.7.00
9.6.10
9.6.01
9.5.61
9.5.50
9.5.40
9.5.30
9.5.21
9.5.10
9.5.00
9.4.01
9.3.40
9.3.30
9.3.20
9.3.10
9.3.00
9.2.60
9.2.50
9.2.40
9.2.30
9.2.20
9.2.10
9.2.01
9.1.70
9.1.61
9.1.50
9.1.40
9.1.30
9.1.20
9.1.10
9.1.00
9.0.00
8.3.00
8.2.20
8.2.10
8.2.02
8.1.11
8.1.01
8.0.21
8.0.10
8.0.00
7.14.00
7.13.21
7.13.10
7.13.01
7.12.00
7.11.02
7.10.01
7.9.00
7.8.00
7.7.00
7.6.00
7.5.00
7.4.00
7.3.20
7.3.10
7.3.00
7.2.11
7.2.01
7.1.10
7.1.00
7.0.00
6.10.00
6.9.00
6.8.11
6.8.00
6.7.00
6.6.11
6.6.00
6.5.41
6.5.30
6.5.21
6.5.10
6.5.01
6.4.00
6.3.30
6.3.20
6.3.10
6.3.00
6.2.00
6.1.00
6.0.00
5.14.20
5.14.10
5.14.00
5.13.20
5.13.10
5.13.00
5.12.40
5.12.30
5.12.21
5.12.10
5.12.00
5.11.01
5.10.00
5.9.20
5.9.10
5.9.00
5.8.40
5.8.30
5.8.20
5.8.10
5.8.00
5.7.10
5.7.01
5.6.30
5.6.20
5.6.10
5.6.00
5.5.10
5.5.00
5.4.00
5.3.00
5.2.00
5.1.40
5.1.30
5.1.20
5.1.11
5.1.00
5.0.00
4.4.00
4.3.10
4.3.00
4.2.10
4.2.01
4.1.01
4.0.30
4.0.20
4.0.10
4.0.00
3.3.30
3.3.20
3.3.10
3.3.00
3.2.10
3.2.00
3.1.10
3.1.00
3.0.00
2.0.20
2.0.10
2.0.00
1.42.00
1.41.00
1.40.50
1.40.40
1.40.30
1.40.20
1.40.11
1.40.00
1.39.01
1.38.00
1.37.00
1.36.20
1.36.10
1.36.01
1.35.41
1.35.31
1.35.20
1.35.10
1.35.00
1.34.10
1.34.00
1.33.10
1.33.00
1.32.21
1.32.10
1.32.00
1.31.00
1.30.10
1.30.00
1.29.00
1.28.20
1.28.10
1.28.00
1.27.50
1.27.40
1.27.30
1.27.20
1.27.10
1.27.00
1.26.00
1.25.41
1.25.30
1.25.20
1.25.10
1.25.01
1.24.00
1.23.80
1.23.70
1.23.60
1.23.50
1.23.40
1.23.30
1.23.20
1.23.10
1.23.00
1.22.00
1.21.10
1.21.01
1.20.10
1.20.00
1.19.00
1.18.00
1.17.01
1.16.00
1.15.01
1.14.81
1.14.70
1.14.60
1.14.50
1.14.40
1.14.30
1.14.21
1.14.11
1.14.00
1.13.70
1.13.60
1.13.50
1.13.41
1.13.31
1.13.20
1.13.10
1.13.00
1.12.140
1.12.131
1.12.120
1.12.110
1.12.100
1.12.90
1.12.80
1.12.70
1.12.60
1.12.50
1.12.40
1.12.30
1.12.20
1.12.10
1.12.00
1.11.10
1.11.00
1.10.70
1.10.60
1.10.50
1.10.40
1.10.30
1.10.20
1.10.10
1.10.00
1.9.10
1.9.00
1.8.20
1.8.10
1.8.00
1.7.20
1.7.10
1.7.00
1.6.00
1.5.20
1.5.10
1.5.00
1.4.10
1.4.00
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.20
1.2.10
1.2.00
1.1.10
1.1.00
1.0.20
1.0.10
1.0.00
0.1.00

Package Sidebar

Install

npm i bright-components

Weekly Downloads

146

Version

10.2.9

License

none

Unpacked Size

2.71 MB

Total Files

1521

Last publish

Collaborators

  • bright.hr