@injectivelabs/injective-ui
Collection of re-useable fonts, render-less FE components and tailwind configs to ease development across the wide range of Injective products.
994
| Install | |
|---|---|
npm install @injectivelabs/injective-ui |
|
| Latest Version: | 1.0.15-alpha.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Nov 24, 2022 |
| Links: | npm |
Maintainer: bangjelkoski
🌟 Injective Components library
Collection of re-useable fonts, render-less FE components and tailwind configs to ease development across the wide range of Injective products.
Development
- Run
npm run dev:prepareto generate type stubs. - Use
npm run devto start playground in development mode. cd playgroundandyarn story:devto browse through the list of available components
Publish
- Update package.json version
- Run
npm publish --access public
How to add new fonts
- Add the respective font files to
/lib/fontsfolder - Create the
${fontName}.cssin the/lib/css/fontsfolder - Update package.json
exportsobject
{
"exports": {
"./lib/fonts/{fontName}.css": "./lib/css/fonts/{fontName}.css"
}
}
How to add a new icon
- Create the
{iconName}.vuefile in the/lib/iconsfolder - Test the icon renders properly
- yarn dev:prepare
- cd playground
- yarn story:dev
How to add a new render-less components
- Create the
{componentName}.vuefile in the/lib/componentsfolder - Add the
{componentName}.test.tsfile in the/testfolder - Add the
${componentName}.story.vuefile in theplayground/storyfolder - Test the component test passes smoothly
- yarn test:coverage
- Test the component renders properly
- yarn dev:prepare
- cd playground
- yarn story:dev
🔓 License
This software is licensed under the MIT license. See LICENSE for full disclosure.
Related Packages
@injectivelabs/ui-shared
Collection of re-useable fonts, render-less FE components and tailwind configs t...
5,854
@injectivelabs/nuxt-bugsnag
4,099
49
Version History
Pre-releases (15)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.15-alpha.0 | ^3.0 | MIT | |
| 1.0.13-alpha.0 | ^3.0 | MIT | |
| 1.0.12-alpha.0 | ^3.0 | MIT | |
| 1.0.11-alpha.0 | ^3.0 | MIT | |
| 1.0.10-alpha.0 | ^3.0 | MIT | |
| 1.0.9-alpha.0 | ^3.0 | MIT | |
| 1.0.8-alpha.0 | ^3.0 | MIT | |
| 1.0.7-alpha.0 | ^3.0 | MIT | |
| 1.0.6-alpha.0 | ^3.0 | MIT | |
| 1.0.5-alpha.0 | ^3.0 | MIT | |
| 1.0.4-alpha.0 | ^3.0 | MIT | |
| 1.0.3-alpha.0 | ^3.0 | MIT | |
| 1.0.2-alpha.0 | ^3.0 | MIT | |
| 1.0.1-alpha.0 | ^3.0 | MIT | |
| 1.0.0-alpha.0 | ^3.0 | MIT |