@activecollab/components
v2.0.269
Published
ActiveCollab Components
Downloads
4,153
Readme
ActiveCollab Design System
Visual language written in Storybook/React.
Installation
Use the package manager npm to install storybook and all dependencies.
npm installStart Development Environment
npm run startBuild Storybook for Production
npm run build:storyBuild Stories for Production
npm run build:distBuild SVG icons
When including new SVG icons to Storybook run command below and include new generated files/icons in commit.
npm run build:iconsUsage
Icon is same as included svg name.
people.svg is just people.
Check more on Icon Component.
<Icon name="name" />Run Tests
npm run testUpdate Tests
npm run test -- -uGenerate Code Coverage
npm run test:covClean all dist folders (If needed)
npm run cleanNaming conventions
Components:
Upper Camel case, with upper first letter.
Example: DateStepper
Props:
Camel case.
Example: shouldDisplay
Tests:
With test suffix.
Example: DateStepper.testContributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
