@pipelex/mthds-ui 0.39.0 → 0.40.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.
Files changed (41) hide show
  1. package/README.md +3 -1
  2. package/dist/chunk-7JZBXBZS.js +258 -0
  3. package/dist/chunk-7JZBXBZS.js.map +1 -0
  4. package/dist/{chunk-AGFLCOWW.js → chunk-HPARBH6K.js} +14 -197
  5. package/dist/chunk-HPARBH6K.js.map +1 -0
  6. package/dist/chunk-N2F62MW7.js +55 -0
  7. package/dist/chunk-N2F62MW7.js.map +1 -0
  8. package/dist/chunk-P6IGZVWE.js +155 -0
  9. package/dist/chunk-P6IGZVWE.js.map +1 -0
  10. package/dist/chunk-RU3CIXFC.js +1251 -0
  11. package/dist/chunk-RU3CIXFC.js.map +1 -0
  12. package/dist/form/react/index.d.ts +1 -1
  13. package/dist/graph/index.d.ts +19 -3
  14. package/dist/graph/index.js +20 -12
  15. package/dist/graph/react/index.d.ts +13 -13
  16. package/dist/graph/react/index.js +387 -560
  17. package/dist/graph/react/index.js.map +1 -1
  18. package/dist/graph/react/viewer/GraphToolbar.css +2 -107
  19. package/dist/graph/react/viewer/StyleMenu.css +109 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +20 -12
  22. package/dist/registryJoin-C6Wfkik-.d.ts +441 -0
  23. package/dist/standalone/graph-standalone.html +171 -166
  24. package/dist/standalone/graph-viewer.css +74 -69
  25. package/dist/standalone/graph-viewer.js +97 -97
  26. package/dist/static-graph/index.d.ts +1 -1
  27. package/dist/timeline/index.d.ts +240 -77
  28. package/dist/timeline/index.js +61 -3
  29. package/dist/timeline/react/RunTimeline.css +48 -0
  30. package/dist/timeline/react/index.d.ts +46 -4
  31. package/dist/timeline/react/index.js +774 -105
  32. package/dist/timeline/react/index.js.map +1 -1
  33. package/dist/timeline/react/styles/simple/SimpleProgress.css +354 -0
  34. package/dist/{types-DsrzH6gM.d.ts → types-DLAnYNoi.d.ts} +1 -1
  35. package/package.json +3 -1
  36. package/dist/chunk-AGFLCOWW.js.map +0 -1
  37. package/dist/chunk-ILZJIORT.js +0 -54
  38. package/dist/chunk-ILZJIORT.js.map +0 -1
  39. package/dist/chunk-JJG2TO7P.js +0 -473
  40. package/dist/chunk-JJG2TO7P.js.map +0 -1
  41. package/dist/progressSnapshot-VZ4PLul9.d.ts +0 -191
@@ -2437,14 +2437,8 @@ button.node-validation-badge {
2437
2437
  font-weight: 600;
2438
2438
  }
2439
2439
 
2440
- /* ─── Style menu ────────────────────────────────────────────────────────── */
2441
- /* A list of the registered styles, opened from the toolbar. Placement */
2442
- /* follows the toolbar's anchor with the validation dropdown's vocabulary. */
2443
-
2444
- .graph-toolbar-style {
2445
- position: relative;
2446
- display: inline-flex;
2447
- }
2440
+ /* ─── Style menu's button while its list is open ───────────────────────── */
2441
+ /* The list itself is `StyleMenu.css`, shared with the run timeline. */
2448
2442
 
2449
2443
  .graph-toolbar-btn--open {
2450
2444
  background: var(--surface-overlay-hover);
@@ -2452,6 +2446,78 @@ button.node-validation-badge {
2452
2446
  border-color: var(--border-strong);
2453
2447
  }
2454
2448
 
2449
+ /* ─── Phones: 44×44 touch targets ───────────────────────────────────────── */
2450
+ /* Below 640px (Tailwind's `sm` breakpoint) every toolbar button, the style
2451
+ menu's trigger and the validation button included, is a 44×44 target, the
2452
+ size a fingertip needs. The button itself grows rather than gaining an
2453
+ invisible extended hit area: the buttons sit 4px apart, so an area reaching
2454
+ 44px would cover its neighbour's and take the taps meant for it. Desktop
2455
+ sizes are untouched.
2456
+
2457
+ A bar of 44px buttons can be wider than a phone (or, on an edge anchor,
2458
+ taller than the viewer), so below 640px it wraps, never reaching past
2459
+ ReactFlow's 15px panel margin. The group separators are hidden there, since
2460
+ a wrapped row would end on one. */
2461
+ @media (max-width: 639.98px) {
2462
+ .graph-toolbar-panel {
2463
+ /* Not the shrink-to-fit width: for a `top-center` / `bottom-center` bar
2464
+ that is the half of the viewer `left: 50%` leaves it. */
2465
+ width: max-content;
2466
+ max-width: calc(100% - 2 * 15px);
2467
+ max-height: calc(100% - 2 * 15px);
2468
+ }
2469
+
2470
+ .graph-toolbar {
2471
+ flex-wrap: wrap;
2472
+ }
2473
+
2474
+ .graph-toolbar-separator {
2475
+ display: none;
2476
+ }
2477
+
2478
+ /* A row bar's short last row sits under the side it is anchored to. */
2479
+ .graph-toolbar-panel--horizontal.right .graph-toolbar {
2480
+ justify-content: flex-end;
2481
+ }
2482
+
2483
+ .graph-toolbar-panel--horizontal.center .graph-toolbar {
2484
+ justify-content: center;
2485
+ }
2486
+
2487
+ /* An edge anchor's column, as a flex item of the panel, is held to the
2488
+ panel's capped height, so it wraps into a second column, which grows
2489
+ toward the graph rather than off the viewer's edge. */
2490
+ .graph-toolbar-panel--vertical {
2491
+ display: flex;
2492
+ }
2493
+
2494
+ .graph-toolbar-panel--vertical.right .graph-toolbar {
2495
+ flex-wrap: wrap-reverse;
2496
+ }
2497
+
2498
+ .graph-toolbar-btn {
2499
+ width: 44px;
2500
+ height: 44px;
2501
+ border-radius: 8px;
2502
+ }
2503
+
2504
+ .graph-toolbar-btn svg {
2505
+ width: 18px;
2506
+ height: 18px;
2507
+ }
2508
+ }
2509
+
2510
+ /* ─── Style menu ────────────────────────────────────────────────────────── */
2511
+ /* A list of the registered styles, opened from a button: the graph */
2512
+ /* toolbar's, and the run timeline's header. Placement follows the button's */
2513
+ /* anchor with the validation dropdown's vocabulary. Token-only, so it */
2514
+ /* takes the palette of whichever container holds it. */
2515
+
2516
+ .graph-toolbar-style {
2517
+ position: relative;
2518
+ display: inline-flex;
2519
+ }
2520
+
2455
2521
  .graph-style-menu {
2456
2522
  position: absolute;
2457
2523
  z-index: 12;
@@ -2551,67 +2617,6 @@ button.node-validation-badge {
2551
2617
  color: var(--color-accent);
2552
2618
  }
2553
2619
 
2554
- /* ─── Phones: 44×44 touch targets ───────────────────────────────────────── */
2555
- /* Below 640px (Tailwind's `sm` breakpoint) every toolbar button, the style
2556
- menu's trigger and the validation button included, is a 44×44 target, the
2557
- size a fingertip needs. The button itself grows rather than gaining an
2558
- invisible extended hit area: the buttons sit 4px apart, so an area reaching
2559
- 44px would cover its neighbour's and take the taps meant for it. Desktop
2560
- sizes are untouched.
2561
-
2562
- A bar of 44px buttons can be wider than a phone (or, on an edge anchor,
2563
- taller than the viewer), so below 640px it wraps, never reaching past
2564
- ReactFlow's 15px panel margin. The group separators are hidden there, since
2565
- a wrapped row would end on one. */
2566
- @media (max-width: 639.98px) {
2567
- .graph-toolbar-panel {
2568
- /* Not the shrink-to-fit width: for a `top-center` / `bottom-center` bar
2569
- that is the half of the viewer `left: 50%` leaves it. */
2570
- width: max-content;
2571
- max-width: calc(100% - 2 * 15px);
2572
- max-height: calc(100% - 2 * 15px);
2573
- }
2574
-
2575
- .graph-toolbar {
2576
- flex-wrap: wrap;
2577
- }
2578
-
2579
- .graph-toolbar-separator {
2580
- display: none;
2581
- }
2582
-
2583
- /* A row bar's short last row sits under the side it is anchored to. */
2584
- .graph-toolbar-panel--horizontal.right .graph-toolbar {
2585
- justify-content: flex-end;
2586
- }
2587
-
2588
- .graph-toolbar-panel--horizontal.center .graph-toolbar {
2589
- justify-content: center;
2590
- }
2591
-
2592
- /* An edge anchor's column, as a flex item of the panel, is held to the
2593
- panel's capped height, so it wraps into a second column, which grows
2594
- toward the graph rather than off the viewer's edge. */
2595
- .graph-toolbar-panel--vertical {
2596
- display: flex;
2597
- }
2598
-
2599
- .graph-toolbar-panel--vertical.right .graph-toolbar {
2600
- flex-wrap: wrap-reverse;
2601
- }
2602
-
2603
- .graph-toolbar-btn {
2604
- width: 44px;
2605
- height: 44px;
2606
- border-radius: 8px;
2607
- }
2608
-
2609
- .graph-toolbar-btn svg {
2610
- width: 18px;
2611
- height: 18px;
2612
- }
2613
- }
2614
-
2615
2620
  /* ─── Simple style — a flowchart of the method's steps in plain words ───── */
2616
2621
  /* Token-only, like every component sheet here: the palette tokens on */
2617
2622
  /* `.react-flow-container` theme it. The box metrics mirror the constants in */