@injectivelabs/ui-shared
TypeScript icon, indicating that this package has built-in type declarations

1.12.47-alpha.5 • Public • Published

🌟 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:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.
  • cd playground and yarn story:dev to browse through the list of available components

Publish

  • See here for instructions

How to add new fonts

  • Add the respective font files to /lib/fonts folder
  • Create the ${fontName}.css in the /lib/css/fonts folder
  • Update package.json exports object
{
  "exports": {
    "./lib/fonts/{fontName}.css": "./lib/css/fonts/{fontName}.css"
  }
}

How to add a new icon

  • Create the {iconName}.vue file in the /lib/icons folder
  • Test the icon renders properly
    • yarn dev:prepare
    • cd playground
    • yarn story:dev

How to add a new render-less components

  • Create the {componentName}.vue file in the /lib/components folder
  • Add the {componentName}.test.ts file in the /test folder
  • Add the ${componentName}.story.vue file in the playground/story folder
  • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @injectivelabs/ui-shared

Weekly Downloads

57

Version

1.12.47-alpha.5

License

MIT

Unpacked Size

239 kB

Total Files

207

Last publish

Collaborators

  • shanemoore
  • mmeloni
  • hmoragrega
  • phucta
  • thomasralee
  • albertchon
  • bangjelkoski
  • markuswaas
  • maximshen