ctia-ui v0.25.0
CTIA UI Library
Let's make things easy (and beautiful :sparkling_heart:)
Supported components
- Bubble
- Buttons:
- ActionButton
- DeleteButton
- DownloadButton
- LoaderButton
- Checklist
- Divider
- Icons:
- IconAwesome
- IconBase
- IconLabel
- InfoBar (WellInfo previously)
- InlineDatepicker
- InlinePreloader
- Labels:
- ContinueLabel
- NoData
- Pager
- PagerPageSize
- PagerStatusFilter
- Preloader
- Switcher
- Tooltip:
- TooltipBase
- TooltipIcon
- UploadInstructions
- WithModal
Run local version of library
Install dependencies with yarn install or npm install.
Run yarn dev or npm run dev to start local dev server (will be run on http://localhost:1234).
To test locally import your components inside src/docs/index.js then use components inside render method. This file already will have recently added examples.
Build new version
yarn build then yarn build:docs
Integration with other projects
To add the UI library for a first time:
npm i ctia-ui or yarn add ctia-ui
To upgrade the current version:
npm update ctia-ui or yarn upgrade ctia-ui
Upgrade UI Library version
When time to update library comes (new components added or improved), follow next steps to update the library version.
- Be sure that your code is well tested, then commit it
- Increase verion number inside
package.jsonand commit this change - Build new version and commit results (
TODO: add gitlab worker to build new version) - Update related projects (
yarn upgrade ctia-uiornpm update ctia-ui)
Shell script draft (building automation process)
Example:
build.sh -v patch -m "Commit message"
Input params:
- commit message (string)
- release type (oneOf: 'patch','major','minor')
Patch example: 1.0.1 -> 1.0.2 (Increment the third digit) Minor example: 1.0.12 -> 1.1.0 (Increment the middle digit and reset last digit to zero) Major example: 1.3.54 -> 2.0.0 (Increment the first digit and reset middle and last digits to zero)
Details: https://docs.npmjs.com/about-semantic-versioning
Script flow:
- run build and then build:docs command
- commit and push changes to git (need to ask comment message as a param)
- change package version (
npm version <update_type>, seerelease typeinput param) - publish changes to npm (
npm publish)
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago