@partrunner-ai/ui 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/index.cjs +644 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +315 -2
- package/dist/index.d.ts +315 -2
- package/dist/index.js +623 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/light.css +611 -0
- package/styles/theme.css +611 -0
- package/styles/ui.css +611 -0
package/README.md
CHANGED
|
@@ -30,6 +30,35 @@ import {
|
|
|
30
30
|
The package works with React 18 and 19 and does not require a Tailwind runtime.
|
|
31
31
|
Styles use semantic `--pr-*` tokens.
|
|
32
32
|
|
|
33
|
+
## One job, one component
|
|
34
|
+
|
|
35
|
+
Do not choose between two components for one job. The short form of the table
|
|
36
|
+
in [`docs/crystal-guide.md` § 5b](../../docs/crystal-guide.md) — the guide has the
|
|
37
|
+
full table, the ordered tie-breaks and the list page recipe:
|
|
38
|
+
|
|
39
|
+
| Job | Component |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| Page container | `Page` |
|
|
42
|
+
| Page title block | `PageHeader` |
|
|
43
|
+
| Section title inside a page | `SectionHeading` |
|
|
44
|
+
| KPI row | `StatTile` in `StatTileGrid` |
|
|
45
|
+
| Routes | `NavigationTabs` |
|
|
46
|
+
| Panels with their own content | `Tabs` |
|
|
47
|
+
| Same data, other subset or view | `SegmentedControl` |
|
|
48
|
+
| Filter on one field, ≤7 values, with counts | `FilterChip` in `FilterChipRow` |
|
|
49
|
+
| Any other filter | `MultiSelect variant="filter"` |
|
|
50
|
+
| Date window of a list | `DateRangeFilter` |
|
|
51
|
+
| Date field in a form | `DatePicker` |
|
|
52
|
+
| Row of list controls | `Toolbar` + `SearchField`, `ToolbarGroup`, `ToolbarSpacer` |
|
|
53
|
+
| Table on a page | `TableFrame` around `Table` (+ `Pagination` in `footer`) |
|
|
54
|
+
| Loading compound table | `TableSkeleton` |
|
|
55
|
+
| Nothing to show | `EmptyState` |
|
|
56
|
+
| Status label | `Badge tone` |
|
|
57
|
+
| Tone dot beside text | `StatusDot` |
|
|
58
|
+
| Person by initials | `Avatar` |
|
|
59
|
+
| Icon in a tinted chip | `IconTile` |
|
|
60
|
+
| Stable entity colour | `toneFromString(seed)` |
|
|
61
|
+
|
|
33
62
|
Package code is licensed under MIT. Bundled Barlow and Bebas Neue font files
|
|
34
63
|
are licensed under the SIL Open Font License 1.1 included in `styles/fonts`.
|
|
35
64
|
See `TRADEMARKS.md` for trademark terms.
|