housfy-ui-lib

Created by `sfc-init`
1,152
Install
npm install housfy-ui-lib@1.1.33
Latest Version:1.1.33
Vue:2
Last Updated:Dec 12, 2022
Links: npm
Maintainer: housfy

housfy-ui

Created by sfc-init

Local development

npm run dev to view /dev/storyboard.vue content

npm run build to share changes to other local projects

In each project consuming this lib, you can modify package.json, to point your local housfy-ui-lib folder: "housfy-ui-lib": "../PATH-TO-YOUR-housfy-ui-lib"

Publish

First time: Add npm user to your terminal. Ask sergi.rourera@housfy.com for NPM credentials.

  1. Increase version at package.json
  2. npm run build
  3. npm publish

View components

Add components to /dev/storyboard.vue, to view them on browser, after npm run dev.

Share components

Add components to /src/index.ts, to share them with other projects.

CSS classes

To prevent class conflicts with other projects, components have prefixed classes like .h-ui-ppp-vvv, where:

  • h-ui stands for housfy-ui
  • ppp should be a prop name (like variant on HousfyButton)
  • vvv should be a prop value (like secondary on HousfyButton)

SVG

SVG files must be replicated on every project using this library.

HousfySvg component takes path & svg props to get svg full path. For example:

<HousfySvg path="assets/svg" svg="icons/search" /> will import svg from @/src/assets/svg/icons/search.svg

Version History

Version Released Vue License
1.1.33 ^2.6.14
1.1.32 ^2.6.14
1.1.31 ^2.6.14
1.1.30 ^2.6.14
1.1.29 ^2.6.14
Pre-releases (9)
Version Released Vue License
1.1.34-beta5 ^2.6.14
1.1.34-beta4 ^2.6.14
1.1.34-beta3 ^2.6.14
1.1.34-beta2 ^2.6.14
1.1.34-beta ^2.6.14