@nextbridgehq/payload-block-builder 0.1.8 → 0.1.9

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.
@@ -362,6 +362,176 @@
362
362
 
363
363
  /* ── States ──────────────────────────────────────────────────────────────── */
364
364
 
365
+ /* Relationship Picker */
366
+
367
+ .bdf-rel {
368
+ display: flex;
369
+ width: 100%;
370
+ }
371
+
372
+ .bdf-rel__control {
373
+ flex: 1;
374
+ display: flex;
375
+ align-items: center;
376
+ min-height: 40px;
377
+ padding: 4px 8px;
378
+ background: var(--theme-input-bg, var(--theme-elevation-0));
379
+ border: 1px solid var(--theme-elevation-150);
380
+ border-radius: var(--style-radius-s, 4px);
381
+ cursor: pointer;
382
+ transition: border-color 0.1s;
383
+ box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
384
+ box-sizing: border-box;
385
+ user-select: none;
386
+ }
387
+ .bdf-rel__control:hover {
388
+ border-color: var(--theme-elevation-250);
389
+ }
390
+ .bdf-rel__control:focus {
391
+ outline: none;
392
+ border-color: var(--theme-elevation-400);
393
+ }
394
+
395
+ .bdf-rel--multi .bdf-rel__control {
396
+ border-top-right-radius: 0;
397
+ border-bottom-right-radius: 0;
398
+ border-right: none;
399
+ }
400
+
401
+ .bdf-rel__values {
402
+ flex: 1;
403
+ display: flex;
404
+ flex-wrap: wrap;
405
+ align-items: center;
406
+ gap: 4px;
407
+ min-width: 0;
408
+ padding: 2px 0;
409
+ }
410
+
411
+ .bdf-rel__placeholder {
412
+ color: var(--theme-elevation-400);
413
+ font-size: 1rem;
414
+ font-family: var(--font-body);
415
+ }
416
+
417
+ .bdf-rel__single {
418
+ font-size: 1rem;
419
+ color: var(--theme-elevation-800);
420
+ font-family: var(--font-body);
421
+ overflow: hidden;
422
+ text-overflow: ellipsis;
423
+ white-space: nowrap;
424
+ }
425
+
426
+ .bdf-rel__chip {
427
+ display: inline-flex;
428
+ align-items: stretch;
429
+ background: var(--theme-elevation-100);
430
+ border: 1px solid var(--theme-elevation-200);
431
+ border-radius: var(--style-radius-s, 4px);
432
+ font-size: 13px;
433
+ font-family: var(--font-body);
434
+ color: var(--theme-elevation-800);
435
+ max-width: 200px;
436
+ overflow: hidden;
437
+ }
438
+
439
+ .bdf-rel__chip-label {
440
+ padding: 2px 6px;
441
+ overflow: hidden;
442
+ text-overflow: ellipsis;
443
+ white-space: nowrap;
444
+ }
445
+
446
+ .bdf-rel__chip-remove {
447
+ display: flex;
448
+ align-items: center;
449
+ justify-content: center;
450
+ padding: 0 5px;
451
+ background: transparent;
452
+ border: none;
453
+ border-left: 1px solid var(--theme-elevation-200);
454
+ cursor: pointer;
455
+ color: var(--theme-elevation-500);
456
+ flex-shrink: 0;
457
+ line-height: 1;
458
+ transition: background 0.1s, color 0.1s;
459
+ }
460
+ .bdf-rel__chip-remove:hover {
461
+ background: var(--theme-elevation-150);
462
+ color: var(--theme-elevation-900);
463
+ }
464
+
465
+ .bdf-rel__indicators {
466
+ display: flex;
467
+ align-items: center;
468
+ padding-left: 4px;
469
+ flex-shrink: 0;
470
+ gap: 2px;
471
+ }
472
+
473
+ .bdf-rel__clear {
474
+ display: flex;
475
+ align-items: center;
476
+ justify-content: center;
477
+ width: 24px;
478
+ height: 24px;
479
+ background: transparent;
480
+ border: none;
481
+ cursor: pointer;
482
+ color: var(--theme-elevation-400);
483
+ padding: 0;
484
+ border-radius: 50%;
485
+ transition: color 0.1s;
486
+ }
487
+ .bdf-rel__clear:hover {
488
+ color: var(--theme-elevation-800);
489
+ }
490
+
491
+ .bdf-rel__sep {
492
+ display: block;
493
+ width: 1px;
494
+ height: 18px;
495
+ background: var(--theme-elevation-200);
496
+ margin: 0 4px;
497
+ }
498
+
499
+ .bdf-rel__chevron {
500
+ display: flex;
501
+ align-items: center;
502
+ color: var(--theme-elevation-400);
503
+ }
504
+
505
+ .bdf-rel__add {
506
+ display: flex;
507
+ align-items: center;
508
+ justify-content: center;
509
+ min-height: 40px;
510
+ padding: 0 14px;
511
+ background: var(--theme-elevation-100);
512
+ border: 1px solid var(--theme-elevation-150);
513
+ border-radius: 0 var(--style-radius-s, 4px) var(--style-radius-s, 4px) 0;
514
+ cursor: pointer;
515
+ color: var(--theme-elevation-700);
516
+ font-size: 20px;
517
+ font-family: var(--font-body);
518
+ line-height: 1;
519
+ transition: background 0.1s;
520
+ white-space: nowrap;
521
+ box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
522
+ box-sizing: border-box;
523
+ }
524
+ .bdf-rel__add:hover {
525
+ background: var(--theme-elevation-150);
526
+ }
527
+
528
+ .bdf-rel__hint {
529
+ margin-top: 4px;
530
+ font-size: 12px;
531
+ color: var(--theme-elevation-500);
532
+ font-family: var(--font-body);
533
+ }
534
+
365
535
  .bdf-empty {
366
536
  padding: calc(var(--base, 16px) * 1.5) var(--base, 16px);
367
537
  border: 1px dashed var(--theme-elevation-200);