colourbox-ui

2.1.7 • Public • Published

colourbox-ui

Colourbox UI is a collection of reusable React components and default styling definitions It is used in the Colourbox CMS

Run locally

have nvm installed and run:

nvm use npm i npm run storybook

Install in other project

npm i colourbox-ui

Install

npm i

Sandbox

npm run sandbox {module}

Each component should have a folder in sandbox that mirrors the path.

Modules

index.js or index.jsx and any other files.

Import import 'sandbox/initialize';, includes colourbox-ui styles and icons

Always import components from colourbox-ui

Example - Button

Button component path: components/Button/Button.jsx

Button sandbox path: components/button/index.jsx

npm run sandbox ./src/components/button/index.jsx

gitHooks

post-merge npm install hook

touch post-merge in .git/hooks

Run chmod +x post-merge to make it executable.

#/usr/bin/env bash

changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"

check_run() {
	echo "$changed_files" | grep --quiet "$1" && eval "$2"
}

check_run package.json "npm install"
check_run package-lock.json "npm install"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.75latest
2.1.21beta

Version History

VersionDownloads (Last 7 Days)Published
2.1.75
2.1.61
2.1.50
2.1.40
2.1.30
2.1.21
2.1.11
2.1.00
2.0.91
2.0.80
2.0.60
2.0.51
2.0.40
2.0.30
2.0.21
2.0.10
2.0.00
1.6.41
1.6.20
1.6.10
1.6.00
1.5.240
1.5.230
1.5.220
1.5.210
1.5.200
1.5.190
1.5.180
1.5.170
1.5.160
1.5.151
1.5.141
1.5.130
1.5.120
1.5.111
1.5.90
1.5.81
1.5.71
1.5.60
1.5.51
1.5.40
1.5.30
1.5.20
1.5.10
1.5.00
1.4.01
1.3.1420
1.3.1410
1.3.1401
1.3.1390
1.3.1380
1.3.1361
1.3.1350
1.3.1340
1.3.1330
1.3.1320
1.3.1310
1.3.1300
1.3.1290
1.3.1280
1.3.1270
1.3.1260
1.3.1251
1.3.1240
1.3.1231
1.3.1220
1.3.1210
1.3.1200
1.3.1191
1.3.1181
1.3.1171
1.3.1160
1.3.1150
1.3.1141
1.3.1130
1.3.1120
1.3.1111
1.3.1101
1.3.1091
1.3.1080
1.3.1070
1.3.1060
1.3.1051
1.3.1040
1.3.1030
1.3.1020
1.3.1010
1.3.1000
1.3.990
1.3.981
1.3.971
1.3.960
1.3.950
1.3.941
1.3.932
1.3.911
1.3.900
1.3.891
1.3.881
1.3.870
1.3.861
1.3.850
1.3.841
1.3.831
1.3.811
1.3.800
1.3.790
1.3.780
1.3.771
1.3.761
1.3.750
1.3.741
1.3.730
1.3.720
1.3.710
1.3.700
1.3.690
1.3.680
1.3.670
1.3.660
1.3.650
1.3.640
1.3.631
1.3.620
1.3.610
1.3.600
1.3.590
1.3.580
1.3.570
1.3.560
1.3.551
1.3.540
1.3.530
1.3.520
1.3.510
1.3.500
1.3.490
1.3.480
1.3.470
1.3.461
1.3.450
1.3.440
1.3.430
1.3.420
1.3.410
1.3.400
1.3.390
1.3.380
1.3.370
1.3.361
1.3.340
1.3.330
1.3.320
1.3.310
1.3.300
1.3.291
1.3.280
1.3.270
1.3.260
1.3.250
1.3.241
1.3.231
1.3.220
1.3.211
1.3.200
1.3.191
1.3.180
1.3.171
1.3.161
1.3.150
1.3.140
1.3.131
1.3.120
1.3.110
1.3.90
1.3.80
1.3.70
1.3.61
1.3.40
1.3.31
1.3.21
1.3.10
1.3.00
1.2.770
1.2.760
1.2.750
1.2.741
1.2.731
1.2.720
1.2.710
1.2.700
1.2.691
1.2.680
1.2.670
1.2.660
1.2.650
1.2.641
1.2.630
1.2.621
1.2.611
1.2.600
1.2.591
1.2.580
1.2.570
1.2.560
1.2.550
1.2.540
1.2.531
1.2.521
1.2.511
1.2.500
1.2.491
1.2.480
1.2.471
1.2.460
1.2.450
1.2.440
1.2.431
1.2.421
1.2.410
1.2.400
1.2.390
1.2.381
1.2.370
1.2.360
1.2.350
1.2.340
1.2.320
1.2.310
1.2.301
1.2.290
1.2.280
1.2.270
1.2.260
1.2.251
1.2.241
1.2.231
1.2.221
1.2.210
1.2.200
1.2.190
1.2.180
1.2.171
1.2.160
1.2.150
1.2.141
1.2.130
1.2.120
1.2.110
1.2.100
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.21
1.2.10
1.2.00
1.1.90
1.1.81
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.91
1.0.80
1.0.70
1.0.61
1.0.50
1.0.40
1.0.31
1.0.20
1.0.11
1.0.00
0.0.61
0.0.50
0.0.40
0.0.31
0.0.21
0.0.2-alpha.00
0.0.1-alpha.00
0.0.10

Package Sidebar

Install

npm i colourbox-ui

Weekly Downloads

27

Version

2.1.7

License

SEE LICENSE IN LICENSE

Unpacked Size

846 kB

Total Files

13

Last publish

Collaborators

  • colourbox