@lotics/ui 15.1.0 → 15.1.1
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/AGENTS.md +5 -0
- package/docs/templates.md +6 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -27,6 +27,11 @@ CURRENT major only — upgrading an app across majors is `MIGRATION.md`.
|
|
|
27
27
|
license to hand-roll.
|
|
28
28
|
- **One canonical component per data role** (member → `MemberChip`, select → `OptionBadge`,
|
|
29
29
|
files → `FilePreview` family, …) — the catalog's Reach-by-role outranks neighboring code.
|
|
30
|
+
- **`Badge` = STATUS only; supporting detail is the muted second line.** A type / category /
|
|
31
|
+
attribute / count is not a status — it belongs under its identity as `size="xs" color="muted"`,
|
|
32
|
+
never a second chip. A chip beside a name reads as its PEER (a colored one reads louder),
|
|
33
|
+
inverting the hierarchy the row is scanned by. →
|
|
34
|
+
[composition.md §`Badge` is for STATUS only](./docs/composition.md).
|
|
30
35
|
- **The kit's fonts/colors/icons ARE the design system** — never a custom font, icon set, or
|
|
31
36
|
hand-picked palette shade; color is `solid`/`tint`/`ramp` with ONE accent per screen.
|
|
32
37
|
- **Pure primitives only** — no i18n, analytics, or domain types in `src/` (pass `labels`,
|
package/docs/templates.md
CHANGED
|
@@ -178,7 +178,12 @@ screens — register, per-row action, gated selection, and act-on-many in one. T
|
|
|
178
178
|
**disabled** checkbox (the same gating as any blocked line). A row's status is
|
|
179
179
|
`Badge variant="dot"` — never the tonal `Badge` (that's the drawer/header twin; → [composition
|
|
180
180
|
grammar §"Status indicators have a WEIGHT"](./composition.md)) — and the SAME dot vocabulary
|
|
181
|
-
drives the status facet. A
|
|
181
|
+
drives the status facet. A cell that carries supporting detail is a HIERARCHY, not two peers:
|
|
182
|
+
the identity on top (`size="sm"`, `weight="medium"` when it IS the row's name), its supporting
|
|
183
|
+
value beneath as `size="xs" color="muted"`, `gap: 2` — and a category / type / attribute goes
|
|
184
|
+
on THAT line, never a second chip beside the name (which reads as its peer, or louder when
|
|
185
|
+
colored, inverting what the row is scanned by; → [composition grammar §`Badge` is for STATUS
|
|
186
|
+
only](./composition.md)). A per-row action `Button` (here Print) is the row's primary action in
|
|
182
187
|
the trailing column, `⋯` its overflow. A select-all band, footer totals + `Pagination`, and a
|
|
183
188
|
`FloatingActionBar` carrying the bulk action while rows are ticked.
|
|
184
189
|
- **A row press opens the PRODUCTION workspace `Drawer`**, which demonstrates the full
|