@ashley-shrok/viewmodel-shell 5.1.0 → 5.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/dist/index.d.ts +2 -1
- package/package.json +2 -2
- package/styles/default.css +8 -3
package/dist/index.d.ts
CHANGED
|
@@ -530,7 +530,8 @@ export interface TableRow {
|
|
|
530
530
|
* cell (right). A previous version typed this as `ButtonNode[]` and called
|
|
531
531
|
* the button renderer blindly, silently dropping non-button entries. */
|
|
532
532
|
actions?: (ButtonNode | CheckboxNode)[];
|
|
533
|
-
/** Row lifecycle STATE (NOT severity — that's `tone`). A freeform, app-extensible token; the framework ships styling for `done`, `disabled`, `running`. Emits .vms-table__row--{state}. Orthogonal to `tone`.
|
|
533
|
+
/** Row lifecycle STATE (NOT severity — that's `tone`). A freeform, app-extensible token; the framework ships styling for `done`, `disabled`, `running`. Emits .vms-table__row--{state}. Orthogonal to `tone`.
|
|
534
|
+
* APPEARANCE ONLY — `state` dims/tints the row and NEVER affects clickability or the cursor. Clickability is governed solely by `action`: a `state:"disabled"` row that ALSO sets `action` is dimmed AND still clickable (pointer cursor + hover + role=button), e.g. an already-paid invoice line shown muted but still openable for details. To make a row literally non-clickable, omit `action` (optionally still dim it with `state`). */
|
|
534
535
|
state?: string;
|
|
535
536
|
/** Semantic intent/severity — the universal status tone axis (closed). Emits .vms-table__row--{tone} (subtle tinted row background, reusing the shared tokens). Omitted = neutral. */
|
|
536
537
|
tone?: "danger" | "warning" | "success" | "info";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ashley-shrok/viewmodel-shell",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"description": "A server-driven UI framework where the wire format is structured enough that agents can build full-stack apps without ever opening a browser and all UI tests are pure unit tests with no browser runtime. Server returns a JSON tree of typed nodes; a thin TypeScript adapter renders it to DOM. Backend-agnostic
|
|
3
|
+
"version": "5.1.1",
|
|
4
|
+
"description": "A server-driven UI framework where the wire format is structured enough that agents can build full-stack apps without ever opening a browser and all UI tests are pure unit tests with no browser runtime. Server returns a JSON tree of typed nodes; a thin TypeScript adapter renders it to DOM. Backend-agnostic \u2014 a .NET reference backend ships with the repo, but any language can produce the JSON contract.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "ashley-shrok",
|
package/styles/default.css
CHANGED
|
@@ -938,11 +938,16 @@ select.vms-field__input { cursor: pointer; padding-right: var(--vms-space-xl);
|
|
|
938
938
|
outline-offset: -2px;
|
|
939
939
|
}
|
|
940
940
|
/* Row STATE (lifecycle) — done/disabled/running framework-styled; apps can add
|
|
941
|
-
more .vms-table__row--{state} rules.
|
|
941
|
+
more .vms-table__row--{state} rules. `state` is an APPEARANCE axis ONLY — it
|
|
942
|
+
dims/tints the row and NEVER affects clickability or cursor. Clickability is
|
|
943
|
+
governed solely by `row.action` (→ .vms-table__row--clickable → pointer +
|
|
944
|
+
hover + role=button). So a `state:"disabled"` row that ALSO has `row.action`
|
|
945
|
+
is dimmed AND still clickable, and correctly shows the pointer cursor — the
|
|
946
|
+
dim is a visual cue (e.g. an already-paid invoice line you can still open to
|
|
947
|
+
view details), not a behavioral disable. To make a row literally NOT
|
|
948
|
+
clickable, omit `row.action` (optionally still dim it with `state`). */
|
|
942
949
|
.vms-table__row--done { opacity: 0.6; }
|
|
943
950
|
.vms-table__row--disabled { opacity: 0.55; color: var(--vms-text-muted); }
|
|
944
|
-
.vms-table__row--disabled.vms-table__row--clickable { cursor: default; }
|
|
945
|
-
.vms-table__row--disabled.vms-table__row--clickable:hover { background: transparent; }
|
|
946
951
|
.vms-table__row--running { background: color-mix(in srgb, var(--vms-accent) 8%, transparent); }
|
|
947
952
|
/* Row TONE (severity) — the universal status axis (was the old critical/danger;
|
|
948
953
|
critical → danger). Tints derive from theme vars (color-mix), so a custom
|