ptf-ui-styleguide
v0.0.0
Published
PowerToFly UI kit. Includes:
Downloads
1
Readme
PTF UI (WIP)
PowerToFly UI kit. Includes:
- Theme engine
- UI components (low and mid. level)
- UI hooks
- Styleguide
Setup
- Create a personal access token
- Set URL of scoped package:
$ npm config set @ptf:registry https://gitlab.com/api/v4/projects/35502819/packages/npm/
- Add the token for the scoped package URL. Replace <your_token> with the token generated in step1:
$ npm config set -- '//gitlab.com/api/v4/projects/35502819/packages/npm/:_authToken' "<your_token>"
Development
- Install deps for the lib and the styleguides:
$ yarn install
- Run development environment for the styleguides:
$ yarn dev
Add your changes...
Run Tests:
$ cd ptf-ui
$ npm run tests
- Commit your changes
Publishing updated version
- From the
ptf-ui
directory, run the following command, replacing <update_type> with one of the semantic versioning release types (major, minor or patch):
$ cd ptf-ui
$ npm version <update_type>
- Open a Merge Request, get a Code Review approval and after getting your changes merged to the
main
branch, run the following command to publish an updated version number:
$ npm publish
Deploying Storybook
- From the
ptf-ui
directory, run the following command:
$ npm run chromatic --auto-accept-changes
or
$ yarn run chromatic --auto-accept-changes
Using the PowerToFly UI Library
- Install it:
$ yarn add @ptf/ui
or
$ npm install --save @ptf/ui
- Import needed components:
import {Button} from `@ptf/ui`
Output
Bundled CJS. Non-bundled ESM. Types.
Dependencies
Direct
- Classnames (reexported)
- Fresnel (reexported)
- Inline-Style-Prefixer (reexported)
- Kecasn
Peer
- React
- Styled-JSX or NextJS
- FontAwesome Core
- FontAwesome Brand Icons
- FontAwesome PRO Solid Icons
- React FontAwesome
- Semantic UI React
Related Resources: