0.0.21 • Published 5 days ago

carbon-components-qwik v0.0.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 days ago

carbon-components-qwik

NPM GitHub

Carbon Design System components as Qwik components.


This library is an ongoing project to implement the React components of the Carbon Design System (v11) in Qwik.

Components

See components for the list of implemented (and unimplemented) components.

Project Structure

The basic project structure is as follows:

├── public/
│   └── ...
└── src/
    ├── components/
    │   └── ...
    ├── internal/
    │   ├── contexts
    │   └── hooks
    ├── shared-props
    └── index.ts

Folders

  • src/components: Root folder for all components, which are in sub-folders in kebab-case format
  • internal: Internal functions, types etc:
    • contexts: Contexts to avoid prop drilling in certain circumstances
    • hooks: Custom hook functions (e.g. usePrefix)
  • shared-props: Props shared by multiple components
  • index.ts: The entry point the library -- all public components are exported from this file
  • public/ is the home folder for static resources in Vite.

Development

Running Unit Tests

There are vitest unit tests for each component (minimum coverage thresholds are set higher than 95% for all metrics). To run these:

pnpm test

To run them with coverage:

pnpm coverage

All pushes to the GitHub repo will trigger a coverage run and a build run (which includes a linting check).

Linter and Code Quality Rules

The linter is ESLint. The spellcheck plugin is used (if you encounter a word not in the dictionary, just add it to the skipWords section of the .eslintrc.json file in the project root). ESLint is configured to format code using Prettier. TypeScript is configured in strict mode. See Contributing for more details on setup.

Running Test Page

pnpm start

This will launch a file called test.tsx (invoked from root.tsx) which is just a simple page containing components for preview purposes.

Icons

The Carbon icons are Qwik components from the project carbon-icons-qwik.

Production

pnpm build

Contributing

See Contributing

Changelog

See CHANGELOG

Licence

Apache-2.0

0.0.20

5 days ago

0.0.21

5 days ago

0.0.18

5 days ago

0.0.19

5 days ago

0.0.17

6 days ago

0.0.14

9 days ago

0.0.15

8 days ago

0.0.16

8 days ago

0.0.13

9 days ago

0.0.11

10 days ago

0.0.12

10 days ago

0.0.10

11 days ago

0.0.9

11 days ago

0.0.8

26 days ago

0.0.7

28 days ago

0.0.3

8 months ago

0.0.4

8 months ago

0.0.2

10 months ago

0.0.1-1

11 months ago