The following is a set of guidelines for contributing with developing new components.
To develop new packages, you only need to install Node with NPM. Find below the default versions this repo was built with:
- Node:
v6+
- NPM:
v3
This repo is managed with sui-studio tool.
Some base commands (based on sui-studio) you should acknowledge :
npm run generate <category> <name>
to create a new component.npm run co
to commit your changes with a wizard.npm run release
publish all your changes for all packages (once your PR is merge).
Many presentational components give feedback from user interaction calling provided callbacks.
<MyButton
onClick={onClickHandler}
onHover={onHoverHandler}
/>
<MyTextArea
onScroll={onScrollHandler}
onChange={onChangeHandler}
/>
For compound component, we may need to provide several callbacks.
<MyDialogModal
onClick={onClickHandler}
onCancelClick={onCancelClickHandler}
/>
<MyFilters
onChange={onChangeHandler}
onFilterChange={onFilterChangeHandler}
onResetClick={onResetClickHandler}
/>