Tree-shaking and subpaths
The package is unbundled ESM with "sideEffects": ["**/*.css"]: one output file per source file, so a bundler can reduce an import to the component you use and its own dependencies.
Subpaths
Section titled “Subpaths”| Import path | Components |
|---|---|
@jcsoftdev/ui/ai |
15 |
@jcsoftdev/ui/atoms |
25 |
@jcsoftdev/ui/auth |
17 |
@jcsoftdev/ui/brand |
2 |
@jcsoftdev/ui/calendar |
6 |
@jcsoftdev/ui/charts |
98 |
@jcsoftdev/ui/containers |
100 |
@jcsoftdev/ui/forms |
35 |
@jcsoftdev/ui/glass |
1 |
@jcsoftdev/ui/i18n |
1 |
@jcsoftdev/ui/icons |
152 |
@jcsoftdev/ui/intent |
1 |
@jcsoftdev/ui/liquid |
0 |
@jcsoftdev/ui/motion |
6 |
@jcsoftdev/ui/navigation |
12 |
@jcsoftdev/ui/overlays |
61 |
@jcsoftdev/ui/palette |
1 |
@jcsoftdev/ui/primitives |
1 |
@jcsoftdev/ui/rich-text |
2 |
@jcsoftdev/ui/shell |
4 |
@jcsoftdev/ui/states |
7 |
@jcsoftdev/ui/utils |
0 |
@jcsoftdev/ui/xlsx |
0 |
Also available: @jcsoftdev/ui/styles/* (CSS) and @jcsoftdev/ui/tokens/* (the tokens JSON).
Single-component entries
Section titled “Single-component entries”Inside a group, components that live in their own folder also have an entry point. 212 are available, for example:
import {} from "@jcsoftdev/ui/ai/attachment";import {} from "@jcsoftdev/ui/ai/chain-of-thought";import {} from "@jcsoftdev/ui/ai/chat-list";import {} from "@jcsoftdev/ui/ai/chat-message";import {} from "@jcsoftdev/ui/ai/code-block";import {} from "@jcsoftdev/ui/ai/conversation";Rules of thumb
Section titled “Rules of thumb”- Prefer the group entry (
@jcsoftdev/ui/atoms) in application code: it tree-shakes and reads well. - Use a single-component entry when you need the smallest possible import graph, for example in an island that ships to the browser.
- Heavy features load lazily: the DataGrid chart panel and the XLSX writer are imported on demand.
- Add
@sourcefor the packagedistfolder so Tailwind generates the classes the components use. - Compile the TypeScript yourself with the
sourceexport condition, which points atsrc/*/index.ts.