@archetypeai/ds-cli 0.12.1 → 0.13.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/files/ds-manifest.json +43 -5
- package/package.json +1 -1
package/files/ds-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archetypeai-design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "alert",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"usage": [
|
|
47
47
|
"Status: `variant=\"status\"` colored via status tokens, e.g. class=\"text-atai-good border-atai-good\" (Completed), atai-critical (Failed), atai-warning (Interrupted), atai-neutral (Running), muted-foreground (Pending).",
|
|
48
48
|
"Size: `size=\"sm\"` gives the status pill smaller type and tighter spacing for tight spaces (cards, tables) or inline with text; defaults to `size=\"default\"`.",
|
|
49
|
-
"Selection: `variant=\"selection\"` for dismissible picks, with an embedded `Button variant=\"ghost\" size=\"inline\" visibility=\"dimmed\"` X icon to remove."
|
|
49
|
+
"Selection: `variant=\"selection\"` for dismissible picks, with an embedded `Button variant=\"ghost\" size=\"inline\" visibility=\"dimmed\"` X icon to remove.",
|
|
50
|
+
"Spacing: the badge carries no outer margin — the container owns the gap (e.g. `flex gap-2`). For the rare trailing-edge case, add `class=\"-mr-1\"` at the call site."
|
|
50
51
|
],
|
|
51
52
|
"variants": {
|
|
52
53
|
"badgeVariants": {
|
|
@@ -154,6 +155,7 @@
|
|
|
154
155
|
"usage": [
|
|
155
156
|
"Detail panel: `variant=\"info\"` + Card.Header (Card.Title + Card.Action icon) + Card.Content layout=\"stack\" holding Label sectionHeader → mono value pairs (Job Details, dialog notes).",
|
|
156
157
|
"Grid tile: `variant=\"status\"` for clickable job/model status cards in dashboard grids (pass href); `variant=\"intro\"` for hero/landing cards.",
|
|
158
|
+
"Card.Title capitalizes by default. Pass `titleCase={false}` when the title is user-authored and must render verbatim (agent names, filenames) — never reach in with `[&_[data-slot=card-title]]:normal-case`.",
|
|
157
159
|
"Single-metric status cards often need no CardHeader — omit when content is self-explanatory."
|
|
158
160
|
],
|
|
159
161
|
"variants": {
|
|
@@ -164,10 +166,15 @@
|
|
|
164
166
|
"intro",
|
|
165
167
|
"status",
|
|
166
168
|
"info"
|
|
169
|
+
],
|
|
170
|
+
"titleCase": [
|
|
171
|
+
"true",
|
|
172
|
+
"false"
|
|
167
173
|
]
|
|
168
174
|
},
|
|
169
175
|
"defaults": {
|
|
170
|
-
"variant": "default"
|
|
176
|
+
"variant": "default",
|
|
177
|
+
"titleCase": "true"
|
|
171
178
|
}
|
|
172
179
|
},
|
|
173
180
|
"cardContentVariants": {
|
|
@@ -243,6 +250,35 @@
|
|
|
243
250
|
"source": "https://design-system-console.archetypeai.workers.dev/r/console-utils.json",
|
|
244
251
|
"description": "className merge helper cn() (clsx + tailwind-merge with the rounded-interactive extension). Re-exported as $lib/utils in scaffolded apps."
|
|
245
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "counter",
|
|
255
|
+
"import": "@archetypeai/ds-ui-svelte-console/primitives/counter",
|
|
256
|
+
"source": "https://design-system-console.archetypeai.workers.dev/r/counter.json",
|
|
257
|
+
"description": "Odometer pill for a numeric count.",
|
|
258
|
+
"usage": [
|
|
259
|
+
"Count: `Counter value={412}` rolls only the digit places that changed; past 999 it abbreviates (`1.2K`, `123K`, `1.2M`) so it never grows a fifth column, and the exact number stays in its title + accessible label.",
|
|
260
|
+
"Absent vs zero vs loading: omit the component entirely when there is no count, pass `value={0}` for an empty one, and `value={null}` while it is still loading (reserves the same width so nothing reflows when it arrives).",
|
|
261
|
+
"Tone & size: `tone=\"muted\"` for a quieter pill against busy chrome; `size=\"sm\"` for dense rows (tables, list items). Inside a tab strip use `Tabs.Count`, which re-colors it for the active/inactive trigger."
|
|
262
|
+
],
|
|
263
|
+
"variants": {
|
|
264
|
+
"counterVariants": {
|
|
265
|
+
"axes": {
|
|
266
|
+
"tone": [
|
|
267
|
+
"solid",
|
|
268
|
+
"muted"
|
|
269
|
+
],
|
|
270
|
+
"size": [
|
|
271
|
+
"default",
|
|
272
|
+
"sm"
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"defaults": {
|
|
276
|
+
"tone": "solid",
|
|
277
|
+
"size": "default"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
246
282
|
{
|
|
247
283
|
"name": "dialog",
|
|
248
284
|
"import": "@archetypeai/ds-ui-svelte-console/primitives/dialog",
|
|
@@ -905,7 +941,8 @@
|
|
|
905
941
|
"description": "Data table.",
|
|
906
942
|
"usage": [
|
|
907
943
|
"Log/event tables: width-classed Table.Head columns, `Table.Body class=\"font-sans text-xs\"`, level cells colored with status tokens (text-atai-critical for error rows).",
|
|
908
|
-
"Mono body (`typography=\"mono\"` on Table.Body) for id-heavy tables; pair with `EmptyState variant=\"list\"` when empty."
|
|
944
|
+
"Mono body (`typography=\"mono\"` on Table.Body) for id-heavy tables; pair with `EmptyState variant=\"list\"` when empty.",
|
|
945
|
+
"Header rows never take the data-row hover — `Table.Header` neutralizes it; don't cancel `hover:bg-*` from consumer code."
|
|
909
946
|
],
|
|
910
947
|
"variants": {
|
|
911
948
|
"tableBodyVariants": {
|
|
@@ -929,7 +966,8 @@
|
|
|
929
966
|
"usage": [
|
|
930
967
|
"Icon view toggle (list/grid): `Tabs.List variant=\"toggle\"` + `Tabs.Trigger variant=\"icon\"` with an icon + title.",
|
|
931
968
|
"Segmented source switch (Library | File IDs | Upload): `variant=\"toggle\"` list + triggers `size=\"pill\" typography=\"mono\"`.",
|
|
932
|
-
"Page-section tabs (Progress | Logs | Artifacts): `Tabs.List variant=\"line\"` with plain text triggers; always `Tabs.Root bind:value`."
|
|
969
|
+
"Page-section tabs (Progress | Logs | Artifacts): `Tabs.List variant=\"line\"` with plain text triggers; always `Tabs.Root bind:value`.",
|
|
970
|
+
"Count on a trigger: `<Tabs.Trigger value=\"logs\">Logs <Tabs.Count value={logCount} /></Tabs.Trigger>` — an odometer pill that abbreviates past 999 (`1.2K`) so the strip never reflows. Pass `value={null}` while the count is still loading (it reserves the width), `value={0}` for an empty tab, and omit `Tabs.Count` entirely for a tab that has no count at all."
|
|
933
971
|
],
|
|
934
972
|
"variants": {
|
|
935
973
|
"tabsListVariants": {
|