@smwb/ui-styles 2.8.0 → 2.9.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 +7 -4
- package/less/components/dagView/dagView.less +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,13 +199,16 @@ An edge the app marks `active` shows work flowing along it (`DagViewEdge.active`
|
|
|
199
199
|
the flow colour over a paler track, a static glow lies under it and pulses run from `source` to `target`; a running
|
|
200
200
|
node's frame glows and pulses with its dot. This `active` is not the selection highlight — the selected node's edges
|
|
201
201
|
keep `@dagViewEdgeActiveColor`, and where both apply the flowing edge wins the colour and the arrow. All flow rules and
|
|
202
|
-
the node glow are gated on markup only `@smwb/ui-solid` writes (`data-animate-running`
|
|
203
|
-
classes on the edge paths), so the shared CSS is inert for `@smwb/ui-react` until its own
|
|
204
|
-
change React sees is the new custom properties on its root and the dot's duration read from
|
|
202
|
+
the node glow are gated on markup only `@smwb/ui-solid` writes (`data-animate-running` and `data-animate-flow` on
|
|
203
|
+
the root, the flowing classes on the edge paths), so the shared CSS is inert for `@smwb/ui-react` until its own
|
|
204
|
+
issue lands; the only change React sees is the new custom properties on its root and the dot's duration read from
|
|
205
205
|
`--smwb-dag-view-node-pulse-duration`, whose default is the 1.4 s of before. Motion is CSS only: with
|
|
206
206
|
`prefers-reduced-motion: reduce` the pulses stay hidden, the flowing edge stays lit in the full flow colour, and a
|
|
207
207
|
running node keeps a still glow; `animateRunning={false}` stops a running node's glow and dot pulse without reduced
|
|
208
|
-
motion.
|
|
208
|
+
motion. `animateFlow={false}` (`data-animate-flow="false"` on the root) asks for that same still state on demand and
|
|
209
|
+
keeps the light: the pulses are hidden, a running node's dot and frame hold still, the flowing edge stays lit in the
|
|
210
|
+
full flow colour with its static glow, and the running node keeps its still glow. Those rules sit after the motion
|
|
211
|
+
media query, which is what makes them win at equal specificity.
|
|
209
212
|
|
|
210
213
|
The statuses are `idle`, `pending`, `running`, `success`, `warning`, `error` and `skipped`; a node with any other
|
|
211
214
|
status is drawn as `idle`. Each colour variable has a `…Dark` twin (e.g. `@dagViewStatusSuccessDark`), `false` by
|
|
@@ -388,6 +388,25 @@
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
// animateFlow={false}: the same still state reduced motion shows — the flow
|
|
392
|
+
// stays lit in the full flow colour and the glows stay, nothing moves. The
|
|
393
|
+
// block sits after the motion rules so its frame rule, of equal specificity
|
|
394
|
+
// to theirs, wins.
|
|
395
|
+
.smwb-dag-view[data-animate-flow="false"] {
|
|
396
|
+
.smwb-dag-view__edge--flowing {
|
|
397
|
+
stroke: var(--smwb-dag-view-edge-flow-color);
|
|
398
|
+
}
|
|
399
|
+
.smwb-dag-view__edge-pulse {
|
|
400
|
+
display: none;
|
|
401
|
+
}
|
|
402
|
+
.smwb-dag-view__node[data-status="running"] .smwb-dag-view__dot {
|
|
403
|
+
animation: none;
|
|
404
|
+
}
|
|
405
|
+
.smwb-dag-view__node[data-status="running"]::before {
|
|
406
|
+
animation: none;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
391
410
|
@keyframes smwb-dag-view-pulse {
|
|
392
411
|
50% {
|
|
393
412
|
opacity: 0.35;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-styles",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Framework-agnostic LESS design tokens and component styles (smwb-*) shared by the @smwb UI libraries. Prebuilt aggregate CSS lives in @smwb/ui-css.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|