@pipelex/mthds-ui 0.44.0 → 0.46.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 (37) hide show
  1. package/dist/{chunk-ENRYQOCO.js → chunk-CZGIDVT7.js} +2 -2
  2. package/dist/{chunk-7JZBXBZS.js → chunk-DNYJEPHT.js} +3 -3
  3. package/dist/{chunk-6S5TQPTO.js → chunk-DUBNSW66.js} +2 -2
  4. package/dist/{chunk-5E3UJI2I.js → chunk-SCKRIESM.js} +411 -29
  5. package/dist/chunk-SCKRIESM.js.map +1 -0
  6. package/dist/{chunk-N2F62MW7.js → chunk-UAYO53EO.js} +5 -5
  7. package/dist/chunk-UAYO53EO.js.map +1 -0
  8. package/dist/{chunk-4KLE62AN.js → chunk-X7GHQ3SD.js} +1 -1
  9. package/dist/{chunk-4KLE62AN.js.map → chunk-X7GHQ3SD.js.map} +1 -1
  10. package/dist/form/react/index.d.ts +17 -11
  11. package/dist/form/react/index.js +2 -2
  12. package/dist/form/react/index.js.map +1 -1
  13. package/dist/graph/index.d.ts +226 -4
  14. package/dist/graph/index.js +8 -4
  15. package/dist/graph/react/index.d.ts +2 -2
  16. package/dist/graph/react/index.js +1679 -985
  17. package/dist/graph/react/index.js.map +1 -1
  18. package/dist/graph/react/styles/simple/SimpleDetailPanel.css +492 -0
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +8 -4
  21. package/dist/{registryJoin-C6Wfkik-.d.ts → registryJoin-C7paykZ2.d.ts} +1 -1
  22. package/dist/standalone/graph-standalone.html +620 -127
  23. package/dist/standalone/graph-viewer.css +493 -0
  24. package/dist/standalone/graph-viewer.js +127 -127
  25. package/dist/static-graph/index.d.ts +1 -1
  26. package/dist/static-graph/index.js +1 -1
  27. package/dist/timeline/index.d.ts +3 -3
  28. package/dist/timeline/index.js +2 -2
  29. package/dist/timeline/react/index.d.ts +2 -2
  30. package/dist/timeline/react/index.js +5 -5
  31. package/dist/{types-DLAnYNoi.d.ts → types-DgYaVX6K.d.ts} +8 -0
  32. package/package.json +3 -2
  33. package/dist/chunk-5E3UJI2I.js.map +0 -1
  34. package/dist/chunk-N2F62MW7.js.map +0 -1
  35. /package/dist/{chunk-ENRYQOCO.js.map → chunk-CZGIDVT7.js.map} +0 -0
  36. /package/dist/{chunk-7JZBXBZS.js.map → chunk-DNYJEPHT.js.map} +0 -0
  37. /package/dist/{chunk-6S5TQPTO.js.map → chunk-DUBNSW66.js.map} +0 -0
@@ -3060,6 +3060,499 @@ button.node-validation-badge {
3060
3060
  outline-offset: 1px;
3061
3061
  }
3062
3062
 
3063
+ /* ─── The simple style's detail panel ───────────────────────────────────── */
3064
+ /* Token-only, like the rest of the panel: every colour comes from the active */
3065
+ /* theme palette on the viewer's container. It speaks the canvas's visual */
3066
+ /* language: proportional type, the step's category tint, the same status */
3067
+ /* marks (`.simple-status`, from SimpleStyle.css). */
3068
+
3069
+ .simple-detail {
3070
+ display: flex;
3071
+ flex-direction: column;
3072
+ gap: 14px;
3073
+ font-family: var(--font-sans);
3074
+ color: var(--text-default);
3075
+ font-size: 13px;
3076
+ line-height: 1.5;
3077
+ }
3078
+
3079
+ .simple-detail p {
3080
+ margin: 0;
3081
+ }
3082
+
3083
+ /* ─── Header: what kind of node, and where its run stands ──────────────── */
3084
+
3085
+ .simple-detail-header {
3086
+ --simple-detail-accent: var(--text-muted);
3087
+ display: flex;
3088
+ align-items: center;
3089
+ flex-wrap: wrap;
3090
+ gap: 6px 12px;
3091
+ min-height: 22px;
3092
+ /* Room for the panel's close button, which the close row tucks beside the
3093
+ first line of the content. */
3094
+ padding-right: 28px;
3095
+ }
3096
+ .simple-detail-header--ai,
3097
+ .simple-detail-header--judge {
3098
+ --simple-detail-accent: var(--color-accent);
3099
+ }
3100
+ .simple-detail-header--decision {
3101
+ --simple-detail-accent: var(--ctrl-condition-text);
3102
+ }
3103
+ .simple-detail-header--repeat {
3104
+ --simple-detail-accent: var(--ctrl-batch-text);
3105
+ }
3106
+
3107
+ .simple-detail-kind {
3108
+ display: inline-flex;
3109
+ align-items: center;
3110
+ gap: 6px;
3111
+ font-size: 12px;
3112
+ font-weight: 600;
3113
+ color: var(--simple-detail-accent, var(--text-muted));
3114
+ }
3115
+ .simple-detail-kind svg {
3116
+ flex-shrink: 0;
3117
+ }
3118
+ .simple-detail-kind--output {
3119
+ color: var(--color-success);
3120
+ }
3121
+
3122
+ .simple-detail-run {
3123
+ display: inline-flex;
3124
+ align-items: center;
3125
+ gap: 6px;
3126
+ font-size: 12px;
3127
+ color: var(--text-muted);
3128
+ }
3129
+ .simple-detail-run--failed {
3130
+ color: var(--color-error);
3131
+ }
3132
+
3133
+ /* Read by a screen reader, not shown: the status word a count line implies. */
3134
+ .simple-detail-sr {
3135
+ position: absolute;
3136
+ width: 1px;
3137
+ height: 1px;
3138
+ overflow: hidden;
3139
+ clip: rect(0 0 0 0);
3140
+ white-space: nowrap;
3141
+ }
3142
+
3143
+ .simple-detail-title {
3144
+ margin: 0;
3145
+ font-size: 17px;
3146
+ font-weight: 600;
3147
+ line-height: 1.35;
3148
+ color: var(--text-primary);
3149
+ }
3150
+
3151
+ .simple-detail-subtitle {
3152
+ margin-top: -10px;
3153
+ font-size: 12px;
3154
+ color: var(--text-muted);
3155
+ }
3156
+
3157
+ .simple-detail-description {
3158
+ color: var(--text-secondary);
3159
+ }
3160
+
3161
+ .simple-detail-foreach {
3162
+ display: inline-flex;
3163
+ align-self: flex-start;
3164
+ align-items: center;
3165
+ gap: 5px;
3166
+ margin-top: -6px;
3167
+ padding: 2px 8px;
3168
+ border-radius: 999px;
3169
+ border: 1px solid var(--ctrl-batch-border);
3170
+ background: var(--ctrl-batch-bg);
3171
+ color: var(--ctrl-batch-text);
3172
+ font-size: 11px;
3173
+ font-weight: 600;
3174
+ }
3175
+
3176
+ .simple-detail-note {
3177
+ font-size: 12px;
3178
+ color: var(--text-muted);
3179
+ padding: 8px 10px;
3180
+ border-radius: 8px;
3181
+ background: var(--surface-sunken);
3182
+ }
3183
+
3184
+ /* ─── Sections ─────────────────────────────────────────────────────────── */
3185
+
3186
+ .simple-detail-section {
3187
+ display: flex;
3188
+ flex-direction: column;
3189
+ gap: 8px;
3190
+ }
3191
+
3192
+ .simple-detail-section-title {
3193
+ margin: 0;
3194
+ font-size: 11px;
3195
+ font-weight: 600;
3196
+ color: var(--text-dim);
3197
+ }
3198
+
3199
+ /* ─── A value ──────────────────────────────────────────────────────────── */
3200
+
3201
+ .simple-value {
3202
+ display: flex;
3203
+ flex-direction: column;
3204
+ gap: 4px;
3205
+ padding: 10px 12px;
3206
+ border-radius: 10px;
3207
+ border: 1px solid var(--border-default);
3208
+ background: var(--surface-sunken);
3209
+ }
3210
+
3211
+ .simple-value-head {
3212
+ display: flex;
3213
+ align-items: baseline;
3214
+ flex-wrap: wrap;
3215
+ gap: 4px 8px;
3216
+ }
3217
+
3218
+ .simple-value-icon {
3219
+ display: inline-flex;
3220
+ align-self: center;
3221
+ color: var(--color-stuff-border, var(--text-muted));
3222
+ }
3223
+ .simple-value-icon--list {
3224
+ filter: drop-shadow(2px -2px 0 var(--border-strong));
3225
+ }
3226
+
3227
+ .simple-value-title {
3228
+ font-weight: 600;
3229
+ color: var(--text-primary);
3230
+ }
3231
+
3232
+ .simple-value-kind {
3233
+ font-size: 12px;
3234
+ color: var(--text-muted);
3235
+ }
3236
+
3237
+ .simple-value-description {
3238
+ font-size: 12px;
3239
+ color: var(--text-secondary);
3240
+ }
3241
+
3242
+ .simple-value-links {
3243
+ display: flex;
3244
+ flex-wrap: wrap;
3245
+ align-items: baseline;
3246
+ gap: 2px 0;
3247
+ font-size: 12px;
3248
+ color: var(--text-muted);
3249
+ }
3250
+ .simple-value-links-label {
3251
+ margin-right: 6px;
3252
+ }
3253
+ /* A flex item trims its trailing space, which would draw "a,b". */
3254
+ .simple-value-links-sep {
3255
+ white-space: pre;
3256
+ }
3257
+ .simple-value-links--none {
3258
+ font-style: italic;
3259
+ }
3260
+
3261
+ .simple-value-fold {
3262
+ margin-top: 4px;
3263
+ }
3264
+ .simple-detail-value {
3265
+ display: flex;
3266
+ flex-direction: column;
3267
+ gap: 8px;
3268
+ }
3269
+
3270
+ /* ─── A link to a node on the canvas ───────────────────────────────────── */
3271
+
3272
+ .simple-link {
3273
+ all: unset;
3274
+ cursor: pointer;
3275
+ color: var(--color-accent);
3276
+ text-decoration: underline;
3277
+ text-decoration-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
3278
+ text-underline-offset: 2px;
3279
+ font-size: inherit;
3280
+ line-height: inherit;
3281
+ }
3282
+ .simple-link:hover {
3283
+ text-decoration-color: currentColor;
3284
+ }
3285
+ .simple-link:focus-visible {
3286
+ outline: 2px solid var(--focus-ring);
3287
+ outline-offset: 2px;
3288
+ border-radius: 2px;
3289
+ }
3290
+ .simple-link--static {
3291
+ cursor: default;
3292
+ color: inherit;
3293
+ text-decoration: none;
3294
+ }
3295
+
3296
+ .simple-detail-links {
3297
+ list-style: none;
3298
+ margin: 0;
3299
+ padding: 0;
3300
+ display: flex;
3301
+ flex-direction: column;
3302
+ gap: 4px;
3303
+ }
3304
+ /* Numbered, since the order is the steps' order. Stated outright, since a
3305
+ Tailwind host's preflight takes every list's markers away, and a block list,
3306
+ since a flex container's items lose theirs. */
3307
+ .simple-detail-steps {
3308
+ list-style: decimal;
3309
+ margin: 0;
3310
+ padding-left: 22px;
3311
+ }
3312
+ .simple-detail-steps > li + li {
3313
+ margin-top: 4px;
3314
+ }
3315
+ .simple-detail-steps > li::marker {
3316
+ color: var(--text-dim);
3317
+ font-size: 12px;
3318
+ }
3319
+
3320
+ /* ─── A decision's outcomes ────────────────────────────────────────────── */
3321
+
3322
+ .simple-detail-outcomes {
3323
+ list-style: none;
3324
+ margin: 0;
3325
+ padding: 0;
3326
+ display: flex;
3327
+ flex-direction: column;
3328
+ gap: 6px;
3329
+ }
3330
+
3331
+ .simple-detail-outcome {
3332
+ display: flex;
3333
+ flex-wrap: wrap;
3334
+ align-items: baseline;
3335
+ gap: 2px 8px;
3336
+ padding: 8px 10px;
3337
+ border-radius: 8px;
3338
+ border: 1px solid var(--border-default);
3339
+ }
3340
+ .simple-detail-outcome--taken {
3341
+ border-color: color-mix(in srgb, var(--color-success) 55%, transparent);
3342
+ background: var(--color-success-bg);
3343
+ }
3344
+ .simple-detail-outcome--not-taken {
3345
+ opacity: 0.7;
3346
+ }
3347
+ .simple-detail-outcome-label {
3348
+ font-weight: 600;
3349
+ color: var(--ctrl-condition-text);
3350
+ }
3351
+ .simple-detail-outcome-arrow {
3352
+ color: var(--text-dim);
3353
+ }
3354
+ .simple-detail-outcome-target {
3355
+ flex: 1 1 auto;
3356
+ min-width: 0;
3357
+ }
3358
+ .simple-detail-outcome-taken {
3359
+ font-size: 11px;
3360
+ font-weight: 600;
3361
+ color: var(--text-muted);
3362
+ }
3363
+ .simple-detail-outcome--taken .simple-detail-outcome-taken {
3364
+ color: var(--color-success);
3365
+ }
3366
+
3367
+ .simple-detail-outcome-note {
3368
+ font-size: 12px;
3369
+ font-weight: 600;
3370
+ color: var(--ctrl-condition-text);
3371
+ }
3372
+
3373
+ /* ─── An arrow's two ends ──────────────────────────────────────────────── */
3374
+
3375
+ .simple-detail-ends {
3376
+ margin: 0;
3377
+ display: grid;
3378
+ grid-template-columns: auto 1fr;
3379
+ gap: 6px 12px;
3380
+ align-items: baseline;
3381
+ }
3382
+ .simple-detail-ends dt {
3383
+ font-size: 11px;
3384
+ font-weight: 600;
3385
+ color: var(--text-dim);
3386
+ }
3387
+ .simple-detail-ends dd {
3388
+ margin: 0;
3389
+ font-size: 15px;
3390
+ font-weight: 600;
3391
+ }
3392
+
3393
+ /* ─── What a value's concept contains ──────────────────────────────────── */
3394
+
3395
+ .simple-detail-fields {
3396
+ margin: 0;
3397
+ display: flex;
3398
+ flex-direction: column;
3399
+ gap: 2px;
3400
+ }
3401
+ .simple-detail-fields dt {
3402
+ font-weight: 600;
3403
+ color: var(--text-primary);
3404
+ margin-top: 6px;
3405
+ }
3406
+ .simple-detail-fields dt:first-child {
3407
+ margin-top: 0;
3408
+ }
3409
+ .simple-detail-fields dd {
3410
+ margin: 0;
3411
+ font-size: 12px;
3412
+ color: var(--text-secondary);
3413
+ }
3414
+
3415
+ /* ─── Folds: the prompt, a value, the technical details ────────────────── */
3416
+
3417
+ .simple-detail-fold {
3418
+ border-radius: 10px;
3419
+ border: 1px solid var(--border-default);
3420
+ }
3421
+ .simple-value-fold {
3422
+ border: none;
3423
+ }
3424
+
3425
+ .simple-detail-fold-title {
3426
+ cursor: pointer;
3427
+ padding: 8px 12px;
3428
+ font-size: 12px;
3429
+ font-weight: 600;
3430
+ color: var(--text-secondary);
3431
+ list-style: none;
3432
+ display: flex;
3433
+ align-items: center;
3434
+ gap: 6px;
3435
+ }
3436
+ .simple-value-fold > .simple-detail-fold-title {
3437
+ padding: 2px 0;
3438
+ color: var(--color-accent);
3439
+ }
3440
+ .simple-detail-fold-title::-webkit-details-marker {
3441
+ display: none;
3442
+ }
3443
+ .simple-detail-fold-title::before {
3444
+ content: "";
3445
+ width: 6px;
3446
+ height: 6px;
3447
+ border-right: 1.5px solid currentColor;
3448
+ border-bottom: 1.5px solid currentColor;
3449
+ transform: rotate(-45deg);
3450
+ transition: transform 0.15s;
3451
+ flex-shrink: 0;
3452
+ }
3453
+ .simple-detail-fold[open] > .simple-detail-fold-title::before {
3454
+ transform: rotate(45deg);
3455
+ }
3456
+ .simple-detail-fold-title:focus-visible {
3457
+ outline: 2px solid var(--focus-ring);
3458
+ outline-offset: -2px;
3459
+ border-radius: 10px;
3460
+ }
3461
+
3462
+ .simple-detail-fold-body {
3463
+ padding: 0 12px 12px;
3464
+ }
3465
+ .simple-value-fold > .simple-detail-fold-body {
3466
+ padding: 6px 0 0;
3467
+ }
3468
+
3469
+ .simple-detail-prompt {
3470
+ white-space: pre-wrap;
3471
+ overflow-wrap: anywhere;
3472
+ font-size: 12px;
3473
+ line-height: 1.55;
3474
+ color: var(--text-default);
3475
+ max-height: 320px;
3476
+ overflow-y: auto;
3477
+ }
3478
+
3479
+ /* The technical fold holds the detailed style's panel as it is: its own
3480
+ sections keep their own spacing. */
3481
+ .simple-detail-technical-body {
3482
+ display: flex;
3483
+ flex-direction: column;
3484
+ gap: 16px;
3485
+ padding-top: 4px;
3486
+ }
3487
+ .simple-detail-technical-body .detail-sticky-header {
3488
+ position: static;
3489
+ margin-top: 0;
3490
+ padding-top: 0;
3491
+ }
3492
+
3493
+ /* ─── A problem ────────────────────────────────────────────────────────── */
3494
+
3495
+ .simple-detail-problem {
3496
+ display: flex;
3497
+ flex-direction: column;
3498
+ gap: 4px;
3499
+ padding: 10px 12px;
3500
+ border-radius: 10px;
3501
+ border: 1px solid color-mix(in srgb, var(--color-error) 55%, transparent);
3502
+ background: var(--color-error-bg);
3503
+ }
3504
+ .simple-detail-problem-title {
3505
+ font-weight: 600;
3506
+ color: var(--color-error);
3507
+ }
3508
+ .simple-detail-problem-detail {
3509
+ font-size: 12px;
3510
+ color: var(--text-default);
3511
+ overflow-wrap: anywhere;
3512
+ }
3513
+ .simple-detail-problem-next {
3514
+ font-size: 12px;
3515
+ color: var(--text-secondary);
3516
+ }
3517
+ .simple-detail-problem-next-label {
3518
+ font-weight: 600;
3519
+ }
3520
+
3521
+ /* ─── A button ─────────────────────────────────────────────────────────── */
3522
+
3523
+ .simple-detail-button {
3524
+ all: unset;
3525
+ cursor: pointer;
3526
+ align-self: flex-start;
3527
+ padding: 5px 12px;
3528
+ border-radius: 8px;
3529
+ border: 1px solid var(--border-strong);
3530
+ background: var(--surface-elevated);
3531
+ color: var(--text-primary);
3532
+ font-size: 12px;
3533
+ font-weight: 600;
3534
+ }
3535
+ .simple-detail-button:hover {
3536
+ background: var(--surface-elevated-hover);
3537
+ }
3538
+ .simple-detail-button:focus-visible {
3539
+ outline: 2px solid var(--focus-ring);
3540
+ outline-offset: 2px;
3541
+ }
3542
+
3543
+ /* ─── An arrow that opens a panel ──────────────────────────────────────── */
3544
+ /* In a style whose arrows carry values, an arrow takes a click (through the
3545
+ edge's own invisible hit path, wider than the line), and the arrow open in
3546
+ the panel is drawn in the accent colour. */
3547
+
3548
+ .react-flow-container--value-arrows .react-flow__edge-routed {
3549
+ cursor: pointer;
3550
+ }
3551
+ .react-flow-container--value-arrows .react-flow__edge-routed.selected .react-flow__edge-path {
3552
+ stroke: var(--color-accent) !important;
3553
+ stroke-width: 2.5px !important;
3554
+ }
3555
+
3063
3556
  /* ─── Standalone GraphViewer chrome (toolbar, theme, layout) ─────────── */
3064
3557
 
3065
3558
  * {