@loja-integrada/admin-components v0.19.2
Admin Components / Styleguide
Components for Loja Integrada admin. https://lojaintegrada.github.io/admin-components/
Usage
yarn add @loja-integrada/admin-components
import { Button } from '@loja-integrada/admin-components'
<Button></Button>
Comamnds
Storybook
yarn storybook
Test
yarn test
yarn test:cypress
Lint
yarn lint
# Run before each commit
yarn lint --fix
Check tailwindcss configs
npx tailwind-config-viewer
Publishing
- Merge the PR to
main
- Create an release with the pattern
styleguide@VERSION
, likestyleguide@0.0.23
- Check result at GitHub Actions
Deploy to GitHub Pages is automatic after deploy to NPM
Testing
This project works with both Jest or Cypress Components.
Use .spec.
for Cypress and .test.
for Jest
Bundle analysis
Calculates the real cost of your library using size-limit with yarn size
and visulize it with yarn analyze
.
Module Formats
CJS, ESModules, and UMD module formats are supported.
Named Exports
Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.
Including Styles
Prefer using only Tailwind classes
WIP
For vanilla CSS, you can include it at the root directory and add it to the files
section in your package.json
, so that it can be imported separately by your users and run through their bundler's loader.
Others
If you’re new to TypeScript and React, checkout this handy cheatsheet NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
5 days ago
14 days ago
14 days ago
1 month ago
5 months ago
6 months ago
6 months ago
11 months ago
10 months ago
10 months ago
9 months ago
8 months ago
8 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago