This is the Unbabel UI (Vue.js) component library AKA Samora.
Contribute in the repository here
Install it using npm
npm i --save @unbabel/ui
Import the components into your app using:
import { Button } from '@unbabel/ui';
And set it as a component:
components: {
Button,
},
So you can use it in your templates:
<Button>Click me!</Button>
Or if you only need the colours for your styles, you can import the .scss file using:
@import '~@unbabel/ui/src/colors';
If you just need the styles for a component, you can also import just those:
@import '~@unbabel/ui/src/components/styles/Button.scss';
To use any color variable with custom properties you need to use interpolation
--color: #{$un-purple};
- Button
- Modal
- TopBar
- Sidebar
- Star Group
- Loading Screen (Overlay)
- Toggle Group
- Timer
To develop or add new components, install the dependencies and launch the Storybook server to preview your components:
$ npm install
$ npm run storybook
Adding an entry per feature/MR
$ bin/changelog_entry "Changelog Entry Title" -m 1022
Releasing a version
$ bin/changelog -t v1.0.42
- Once all the desired changes are merged into master, decide if the next version is Major, Minor or Patch, and generate the changelog entry and commit the changes
- Example:
bin/changelog -t v1.0.42
- Example:
- Bump
package.json
and create a new tag by runningnpm version (major|minor|patch)
- Example:
npm version minor
- Example:
- Push all changes
- Push the new tag
- Example:
git push origin tag v1.0.42
- Example:
- The CI will pick up the new tag and submit it to NPM