payload-canvas 0.6.3 → 0.6.4

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 (53) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +6 -5
  3. package/dist/admin/aiKeyField.scss +58 -58
  4. package/dist/admin/diff/layoutDiff.scss +181 -181
  5. package/dist/admin/editor/assistant/assistant.scss +944 -944
  6. package/dist/admin/editor/classes/manager.scss +262 -262
  7. package/dist/admin/editor/comments/comments.scss +539 -539
  8. package/dist/admin/editor/dnd/dnd.scss +261 -261
  9. package/dist/admin/editor/editor.scss +2629 -2629
  10. package/dist/admin/editor/empty/empty.scss +92 -92
  11. package/dist/admin/editor/fields/fields.scss +778 -778
  12. package/dist/admin/editor/generate/generate.scss +276 -276
  13. package/dist/admin/editor/layout/layout.scss +240 -240
  14. package/dist/admin/editor/live/presence.scss +24 -24
  15. package/dist/admin/editor/locale/locale.scss +154 -154
  16. package/dist/admin/editor/media/media.scss +233 -233
  17. package/dist/admin/editor/menu/menu.scss +132 -132
  18. package/dist/admin/editor/motion/motion.scss +84 -84
  19. package/dist/admin/editor/sections/components.scss +238 -238
  20. package/dist/admin/editor/sections/variants.scss +90 -90
  21. package/dist/admin/editor/styles/ClassCss.js +3 -3
  22. package/dist/admin/editor/styles/classes.scss +381 -381
  23. package/dist/admin/editor/styles/styles.scss +1123 -1123
  24. package/dist/admin/editor/styles/tokens.js +2 -1
  25. package/dist/admin/editor/templates/templates.scss +654 -654
  26. package/dist/admin/editor/tooltip/tooltip.scss +39 -39
  27. package/dist/admin/editor/topbar/DocumentActions.js +1 -1
  28. package/dist/admin/editor/topbar/contentMode.scss +26 -26
  29. package/dist/admin/editor/topbar/screens/screens.scss +134 -134
  30. package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
  31. package/dist/admin/editor/topbar/topbar.scss +645 -645
  32. package/dist/admin/editor/ui/controls.scss +320 -320
  33. package/dist/admin/forms/submissions.scss +197 -197
  34. package/dist/admin/layoutField.scss +69 -69
  35. package/dist/admin/templateConditions.scss +24 -24
  36. package/dist/ai/prompt.js +40 -40
  37. package/dist/blocks/client/marquee.js +14 -14
  38. package/dist/blocks/payload.js +13 -3
  39. package/dist/core/responseError.d.ts +5 -0
  40. package/dist/core/responseError.js +8 -0
  41. package/dist/css/index.d.ts +6 -0
  42. package/dist/css/index.js +40 -1
  43. package/dist/css/shared.js +2 -2
  44. package/dist/live/session.js +18 -0
  45. package/dist/live/storage.d.ts +5 -0
  46. package/dist/live/storage.js +20 -0
  47. package/dist/mcp/shared.js +16 -16
  48. package/dist/plugin/index.d.ts +14 -1
  49. package/dist/plugin/index.js +46 -8
  50. package/dist/react/canvas/BuilderCanvas.js +4 -3
  51. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +2 -1
  52. package/dist/theme/admin/fields.scss +363 -363
  53. package/package.json +1 -1
@@ -1,654 +1,654 @@
1
- // Templates and data binding in the editor: bind buttons, bound chips, the field picker and the
2
- // toolbar's template control. Payload CSS variables only, inside Payload's own layer.
3
-
4
- @layer payload-default {
5
- // ---------------------------------------------------------------------------
6
- // Inspector fields
7
- // ---------------------------------------------------------------------------
8
-
9
- .builder-bind {
10
- position: relative;
11
- display: flex;
12
- flex-direction: column;
13
- gap: 6px;
14
- min-width: 0;
15
- }
16
-
17
- .builder-bind__stack {
18
- display: flex;
19
- flex-direction: column;
20
- gap: calc(var(--base) * 0.5);
21
- }
22
-
23
- // The bind button sits on the label row of the input it binds. (`[data-tooltip]` sets relative.)
24
- .builder-editor .builder-bind > .builder-bind__button {
25
- position: absolute;
26
- }
27
-
28
- // Bind and unbind buttons sit at the inspector's right edge: their tooltips open to the left.
29
- .builder-editor .builder-bind__button,
30
- .builder-editor .builder-bind__chip-x {
31
- &:hover::after {
32
- left: auto;
33
- right: 0;
34
- transform: none;
35
- }
36
- }
37
-
38
- .builder-bind__button {
39
- top: -3px;
40
- right: 0;
41
- z-index: 1;
42
- display: inline-grid;
43
- place-items: center;
44
- width: 22px;
45
- height: 22px;
46
- padding: 0;
47
- border: 1px solid transparent;
48
- border-radius: var(--style-radius-s, 4px);
49
- background: transparent;
50
- color: var(--theme-elevation-400);
51
- cursor: pointer;
52
- transition:
53
- color 120ms ease,
54
- background-color 120ms ease,
55
- border-color 120ms ease;
56
-
57
- &:hover,
58
- &[aria-expanded='true'] {
59
- border-color: color-mix(in srgb, var(--theme-success-500) 40%, transparent);
60
- background: color-mix(in srgb, var(--theme-success-500) 12%, transparent);
61
- color: var(--theme-success-600);
62
- }
63
- }
64
-
65
- .builder-bind:hover > .builder-bind__button {
66
- color: var(--theme-elevation-700);
67
- }
68
-
69
- .builder-bind--bound {
70
- margin-bottom: 0;
71
- }
72
-
73
- .builder-bind__chip,
74
- .builder-bind__select {
75
- display: flex;
76
- align-items: center;
77
- min-width: 0;
78
- min-height: 34px;
79
- border: 1px solid color-mix(in srgb, var(--theme-success-500) 45%, transparent);
80
- border-radius: var(--style-radius-s, 4px);
81
- background: color-mix(in srgb, var(--theme-success-500) 10%, var(--theme-input-bg, var(--theme-elevation-0)));
82
- color: var(--theme-text);
83
- }
84
-
85
- .builder-bind__chip--missing,
86
- .builder-bind__select--missing {
87
- border-color: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 55%, transparent);
88
- background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 10%, transparent);
89
-
90
- svg:first-child {
91
- color: var(--theme-warning-600, var(--theme-error-500));
92
- }
93
- }
94
-
95
- .builder-bind__chip-main,
96
- .builder-bind__select {
97
- display: flex;
98
- flex: 1;
99
- align-items: center;
100
- gap: 7px;
101
- min-width: 0;
102
- padding: 6px 8px 6px 10px;
103
- border: 0;
104
- background: transparent;
105
- color: inherit;
106
- font: inherit;
107
- font-size: var(--be-text-m);
108
- text-align: left;
109
- cursor: pointer;
110
-
111
- > svg:first-child {
112
- flex: none;
113
- color: var(--theme-success-600);
114
- }
115
-
116
- &:disabled {
117
- cursor: default;
118
- }
119
- }
120
-
121
- .builder-bind__select {
122
- flex: none;
123
- width: 100%;
124
- border-color: var(--theme-elevation-150);
125
- background: var(--theme-input-bg, var(--theme-elevation-0));
126
-
127
- &:hover,
128
- &[aria-expanded='true'] {
129
- border-color: var(--theme-elevation-250);
130
- }
131
- }
132
-
133
- .builder-bind__chip-main:hover:not(:disabled) .builder-bind__chip-label {
134
- text-decoration: underline;
135
- text-underline-offset: 2px;
136
- }
137
-
138
- .builder-bind__chip-label {
139
- min-width: 0;
140
- overflow: hidden;
141
- font-weight: var(--be-weight-medium);
142
- text-overflow: ellipsis;
143
- white-space: nowrap;
144
- }
145
-
146
- .builder-bind__chip-path {
147
- flex: none;
148
- max-width: 45%;
149
- margin-left: auto;
150
- overflow: hidden;
151
- padding: 1px 0;
152
- color: var(--theme-elevation-600);
153
- font-family: var(--font-mono, monospace);
154
- font-size: var(--be-text-s);
155
- text-overflow: ellipsis;
156
- white-space: nowrap;
157
- }
158
-
159
- .builder-bind__placeholder {
160
- flex: 1;
161
- color: var(--theme-elevation-600);
162
- }
163
-
164
- .builder-bind__select-caret {
165
- flex: none;
166
- margin-left: 4px;
167
- color: var(--theme-elevation-600);
168
- }
169
-
170
- .builder-bind__chip-x {
171
- display: grid;
172
- flex: none;
173
- place-items: center;
174
- width: 26px;
175
- height: 26px;
176
- margin-right: 4px;
177
- padding: 0;
178
- border: 0;
179
- border-radius: var(--style-radius-s, 4px);
180
- background: none;
181
- color: var(--theme-elevation-600);
182
- cursor: pointer;
183
-
184
- &:hover {
185
- background: var(--theme-elevation-100);
186
- color: var(--theme-error-500);
187
- }
188
- }
189
-
190
- .builder-bind__note {
191
- margin: 0;
192
- color: var(--theme-elevation-600);
193
- font-size: var(--be-text-m);
194
- line-height: 1.45;
195
- }
196
-
197
- .builder-bind__note--warn {
198
- color: var(--theme-warning-600, var(--theme-error-500));
199
- }
200
-
201
- .builder-bind__preview {
202
- display: flex;
203
- flex-direction: column;
204
- gap: 4px;
205
- min-width: 0;
206
- padding: 6px 8px;
207
- // The binding chip above already says the value is bound; the preview is a plain quiet box.
208
- background: var(--theme-elevation-50);
209
- border-radius: var(--style-radius-s, 4px);
210
- }
211
-
212
- .builder-bind__preview-from {
213
- overflow: hidden;
214
- color: var(--theme-elevation-600);
215
- font-size: var(--be-text-s);
216
- font-weight: var(--be-weight-strong);
217
- letter-spacing: 0.04em;
218
- text-overflow: ellipsis;
219
- text-transform: uppercase;
220
- white-space: nowrap;
221
- }
222
-
223
- .builder-bind__preview-text {
224
- display: -webkit-box;
225
- overflow: hidden;
226
- color: var(--theme-text);
227
- font-size: var(--be-text-m);
228
- line-height: 1.45;
229
- -webkit-box-orient: vertical;
230
- -webkit-line-clamp: 3;
231
- overflow-wrap: anywhere;
232
- }
233
-
234
- .builder-bind__preview-image {
235
- display: block;
236
- width: 100%;
237
- max-height: 120px;
238
- border-radius: var(--style-radius-s, 4px);
239
- object-fit: cover;
240
- background: var(--theme-elevation-100);
241
- }
242
-
243
- .builder-bind__preview-empty {
244
- color: var(--theme-elevation-600);
245
- font-size: var(--be-text-m);
246
- font-style: italic;
247
- }
248
-
249
- .builder-bind__fallback-toggle {
250
- display: inline-flex;
251
- align-items: center;
252
- align-self: flex-start;
253
- gap: 4px;
254
- padding: 2px 0;
255
- border: 0;
256
- background: none;
257
- color: var(--theme-elevation-600);
258
- font: inherit;
259
- font-size: var(--be-text-m);
260
- cursor: pointer;
261
-
262
- &:hover {
263
- color: var(--theme-text);
264
- }
265
- }
266
-
267
- .builder-bind__fallback {
268
- padding: 8px 0 0 10px;
269
- border-left: 2px solid var(--theme-elevation-100);
270
- }
271
-
272
- // ---------------------------------------------------------------------------
273
- // Scope banner (top of the Content tab)
274
- // ---------------------------------------------------------------------------
275
-
276
- .builder-bind__banner {
277
- display: flex;
278
- align-items: flex-start;
279
- gap: 8px;
280
- padding: 8px 10px;
281
- border-radius: var(--style-radius-m, 6px);
282
- background: var(--theme-elevation-50);
283
- color: var(--theme-elevation-700);
284
- font-size: var(--be-text-m);
285
- line-height: 1.45;
286
-
287
- > svg {
288
- flex: none;
289
- margin-top: 1px;
290
- color: var(--theme-success-600);
291
- }
292
-
293
- p {
294
- margin: 0;
295
- }
296
- }
297
-
298
- .builder-bind__banner--warn {
299
- background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 12%, transparent);
300
- color: var(--theme-text);
301
-
302
- > svg {
303
- color: var(--theme-warning-600, var(--theme-error-500));
304
- }
305
- }
306
-
307
- .builder-bind__inline-icon {
308
- display: inline;
309
- vertical-align: -2px;
310
- }
311
-
312
- .builder-bind__link {
313
- margin-top: 4px;
314
- padding: 0;
315
- border: 0;
316
- background: none;
317
- color: var(--theme-text);
318
- font: inherit;
319
- font-weight: var(--be-weight-strong);
320
- text-decoration: underline;
321
- text-underline-offset: 2px;
322
- cursor: pointer;
323
- }
324
-
325
- // ---------------------------------------------------------------------------
326
- // Field picker and sample list (popovers)
327
- // ---------------------------------------------------------------------------
328
-
329
- .builder-bind__popover.builder-styles__popover,
330
- .builder-template__popover.builder-styles__popover {
331
- width: 340px;
332
- max-height: min(460px, calc(100vh - 16px));
333
- overflow: hidden;
334
- border-color: var(--theme-elevation-150);
335
- }
336
-
337
- .builder-bind__picker {
338
- display: flex;
339
- flex-direction: column;
340
- max-height: inherit;
341
- }
342
-
343
- .builder-bind__picker-head {
344
- display: flex;
345
- align-items: center;
346
- padding: 10px 12px 6px;
347
- }
348
-
349
- .builder-bind__picker-title {
350
- display: inline-flex;
351
- align-items: center;
352
- gap: 6px;
353
- color: var(--theme-elevation-600);
354
- font-size: var(--be-text-s);
355
- font-weight: var(--be-weight-strong);
356
- letter-spacing: 0.04em;
357
- text-transform: uppercase;
358
-
359
- svg {
360
- color: var(--theme-success-600);
361
- }
362
- }
363
-
364
- .builder-bind__picker-search {
365
- display: flex;
366
- flex: none;
367
- align-items: center;
368
- gap: 6px;
369
- height: 30px;
370
- margin: 0 10px 6px;
371
- padding: 0 8px;
372
- border: 1px solid var(--theme-elevation-150);
373
- border-radius: var(--style-radius-m, 6px);
374
- background: var(--theme-input-bg, var(--theme-elevation-0));
375
- color: var(--theme-elevation-400);
376
-
377
- &:focus-within {
378
- border-color: var(--theme-success-500);
379
- color: var(--theme-text);
380
- }
381
-
382
- input {
383
- flex: 1;
384
- min-width: 0;
385
- padding: 0;
386
- border: 0;
387
- outline: 0;
388
- background: transparent;
389
- color: var(--theme-text);
390
- font: inherit;
391
- font-size: var(--be-text-m);
392
- }
393
- }
394
-
395
- .builder-bind__picker-empty {
396
- margin: 0;
397
- padding: 16px 14px 18px;
398
- color: var(--theme-elevation-600);
399
- font-size: var(--be-text-m);
400
- text-align: center;
401
- }
402
-
403
- .builder-bind__picker-foot {
404
- margin: 0;
405
- padding: 8px 12px;
406
- border-top: 1px solid var(--theme-elevation-100);
407
- color: var(--theme-elevation-600);
408
- font-size: var(--be-text-s);
409
- }
410
-
411
- .builder-bind__rows {
412
- flex: 1;
413
- min-height: 0;
414
- margin: 0;
415
- padding: 2px 4px 6px;
416
- overflow: hidden auto;
417
- list-style: none;
418
- scrollbar-width: thin;
419
- }
420
-
421
- .builder-bind__row {
422
- display: flex;
423
- align-items: center;
424
- gap: 8px;
425
- min-height: 34px;
426
- padding: 4px 8px;
427
- border-radius: var(--style-radius-s, 4px);
428
- color: var(--theme-text);
429
- cursor: pointer;
430
-
431
- &[data-active] {
432
- background: var(--theme-elevation-100);
433
- }
434
-
435
- &[data-current] .builder-bind__row-label {
436
- font-weight: var(--be-weight-strong);
437
- }
438
- }
439
-
440
- .builder-bind__row--group {
441
- min-height: 26px;
442
- margin-top: 2px;
443
- color: var(--theme-elevation-600);
444
- font-size: var(--be-text-s);
445
- font-weight: var(--be-weight-strong);
446
- cursor: default;
447
-
448
- .builder-bind__row-label {
449
- font-weight: var(--be-weight-strong);
450
- }
451
- }
452
-
453
- .builder-bind__row-hop {
454
- padding: 0 5px;
455
- border-radius: 8px;
456
- background: var(--theme-elevation-100);
457
- font-size: var(--be-text-s);
458
- font-weight: var(--be-weight-medium);
459
- }
460
-
461
- .builder-bind__row-icon {
462
- display: grid;
463
- flex: none;
464
- place-items: center;
465
- width: 22px;
466
- height: 22px;
467
- border-radius: var(--style-radius-s, 4px);
468
- background: var(--theme-elevation-100);
469
- color: var(--theme-elevation-700);
470
- }
471
-
472
- .builder-bind__row-text {
473
- display: flex;
474
- flex: 1;
475
- flex-direction: column;
476
- min-width: 0;
477
- line-height: 1.25;
478
- }
479
-
480
- .builder-bind__row-label {
481
- overflow: hidden;
482
- font-size: var(--be-text-m);
483
- text-overflow: ellipsis;
484
- white-space: nowrap;
485
- }
486
-
487
- .builder-bind__row-path {
488
- overflow: hidden;
489
- color: var(--theme-elevation-600);
490
- font-family: var(--font-mono, monospace);
491
- font-size: var(--be-text-s);
492
- text-overflow: ellipsis;
493
- white-space: nowrap;
494
- }
495
-
496
- .builder-bind__row-hint {
497
- flex: none;
498
- max-width: 40%;
499
- overflow: hidden;
500
- color: var(--theme-elevation-600);
501
- font-size: var(--be-text-s);
502
- text-overflow: ellipsis;
503
- white-space: nowrap;
504
- }
505
-
506
- .builder-bind__row-check {
507
- flex: none;
508
- color: var(--theme-success-600);
509
- }
510
-
511
- // ---------------------------------------------------------------------------
512
- // Toolbar: template mode and the sample document
513
- // ---------------------------------------------------------------------------
514
-
515
- .builder-template__control {
516
- display: inline-flex;
517
- align-items: center;
518
- gap: 6px;
519
- min-width: 0;
520
- max-width: 100%;
521
- height: 28px;
522
- margin-left: 8px;
523
- padding: 0 10px 0 8px;
524
- border: 1px solid var(--theme-elevation-150);
525
- border-radius: 14px;
526
- background: var(--theme-elevation-50);
527
- color: var(--theme-elevation-800);
528
- font-size: var(--be-text-m);
529
- white-space: nowrap;
530
- cursor: pointer;
531
- transition:
532
- background-color 120ms ease,
533
- border-color 120ms ease;
534
-
535
- > svg:first-child {
536
- flex: none;
537
- color: var(--theme-success-600);
538
- }
539
-
540
- > svg:last-child {
541
- flex: none;
542
- color: var(--theme-elevation-600);
543
- }
544
-
545
- &:hover,
546
- &[aria-expanded='true'] {
547
- border-color: var(--theme-elevation-250);
548
- background: var(--theme-elevation-100);
549
- }
550
- }
551
-
552
- .builder-template__control--warn {
553
- border-color: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 55%, transparent);
554
- background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 12%, transparent);
555
-
556
- > svg:first-child {
557
- color: var(--theme-warning-600, var(--theme-error-500));
558
- }
559
- }
560
-
561
- .builder-template__mode {
562
- flex: none;
563
- font-weight: var(--be-weight-strong);
564
- }
565
-
566
- .builder-template__sep {
567
- flex: none;
568
- color: var(--theme-elevation-400);
569
- }
570
-
571
- .builder-template__text {
572
- min-width: 0;
573
- overflow: hidden;
574
- color: var(--theme-elevation-600);
575
- text-overflow: ellipsis;
576
-
577
- strong {
578
- color: var(--theme-text);
579
- font-weight: var(--be-weight-medium);
580
- }
581
- }
582
-
583
- .builder-template__status {
584
- flex: none;
585
- padding: 0 6px;
586
- border-radius: 8px;
587
- background: var(--theme-elevation-100);
588
- color: var(--theme-elevation-600);
589
- font-size: var(--be-text-s);
590
- line-height: 16px;
591
- }
592
-
593
- // ---------------------------------------------------------------------------
594
- // Outline and canvas hints
595
- // ---------------------------------------------------------------------------
596
-
597
- .builder-editor__row-bound {
598
- display: grid;
599
- flex: none;
600
- place-items: center;
601
- width: 18px;
602
- height: 18px;
603
- margin-left: auto;
604
- border-radius: 4px;
605
- background: color-mix(in srgb, var(--theme-success-500) 14%, transparent);
606
- color: var(--theme-success-600);
607
- }
608
-
609
- .builder-editor__row-bound--broken {
610
- background: color-mix(in srgb, var(--theme-warning-500) 18%, transparent);
611
- color: var(--theme-warning-700, var(--theme-warning-500));
612
- }
613
-
614
- .builder-editor__row:hover .builder-editor__row-bound {
615
- display: none;
616
- }
617
-
618
- .builder-editor__tag-bound {
619
- display: inline-grid;
620
- place-items: center;
621
- width: 15px;
622
- height: 15px;
623
- margin-left: 2px;
624
- border-radius: 3px;
625
- background: rgb(255 255 255 / 0.22);
626
- }
627
-
628
- // ---------------------------------------------------------------------------
629
- // Visibility conditions (Visibility.tsx); the rows use the where builder's styles
630
- // ---------------------------------------------------------------------------
631
-
632
- .builder-visibility {
633
- padding-top: calc(var(--base) * 0.75);
634
- border-top: 1px solid var(--theme-elevation-100);
635
- }
636
-
637
- // ---------------------------------------------------------------------------
638
- // Format picker of a bound prop and of the Field block (Bindable.tsx)
639
- // ---------------------------------------------------------------------------
640
-
641
- .builder-format {
642
- display: grid;
643
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
644
- gap: 4px;
645
- min-width: 0;
646
- margin: 0;
647
- padding: 0;
648
- border: 0;
649
- }
650
-
651
- .builder-format__name {
652
- grid-column: 1 / -1;
653
- }
654
- }
1
+ // Templates and data binding in the editor: bind buttons, bound chips, the field picker and the
2
+ // toolbar's template control. Payload CSS variables only, inside Payload's own layer.
3
+
4
+ @layer payload-default {
5
+ // ---------------------------------------------------------------------------
6
+ // Inspector fields
7
+ // ---------------------------------------------------------------------------
8
+
9
+ .builder-bind {
10
+ position: relative;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 6px;
14
+ min-width: 0;
15
+ }
16
+
17
+ .builder-bind__stack {
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: calc(var(--base) * 0.5);
21
+ }
22
+
23
+ // The bind button sits on the label row of the input it binds. (`[data-tooltip]` sets relative.)
24
+ .builder-editor .builder-bind > .builder-bind__button {
25
+ position: absolute;
26
+ }
27
+
28
+ // Bind and unbind buttons sit at the inspector's right edge: their tooltips open to the left.
29
+ .builder-editor .builder-bind__button,
30
+ .builder-editor .builder-bind__chip-x {
31
+ &:hover::after {
32
+ left: auto;
33
+ right: 0;
34
+ transform: none;
35
+ }
36
+ }
37
+
38
+ .builder-bind__button {
39
+ top: -3px;
40
+ right: 0;
41
+ z-index: 1;
42
+ display: inline-grid;
43
+ place-items: center;
44
+ width: 22px;
45
+ height: 22px;
46
+ padding: 0;
47
+ border: 1px solid transparent;
48
+ border-radius: var(--style-radius-s, 4px);
49
+ background: transparent;
50
+ color: var(--theme-elevation-400);
51
+ cursor: pointer;
52
+ transition:
53
+ color 120ms ease,
54
+ background-color 120ms ease,
55
+ border-color 120ms ease;
56
+
57
+ &:hover,
58
+ &[aria-expanded='true'] {
59
+ border-color: color-mix(in srgb, var(--theme-success-500) 40%, transparent);
60
+ background: color-mix(in srgb, var(--theme-success-500) 12%, transparent);
61
+ color: var(--theme-success-600);
62
+ }
63
+ }
64
+
65
+ .builder-bind:hover > .builder-bind__button {
66
+ color: var(--theme-elevation-700);
67
+ }
68
+
69
+ .builder-bind--bound {
70
+ margin-bottom: 0;
71
+ }
72
+
73
+ .builder-bind__chip,
74
+ .builder-bind__select {
75
+ display: flex;
76
+ align-items: center;
77
+ min-width: 0;
78
+ min-height: 34px;
79
+ border: 1px solid color-mix(in srgb, var(--theme-success-500) 45%, transparent);
80
+ border-radius: var(--style-radius-s, 4px);
81
+ background: color-mix(in srgb, var(--theme-success-500) 10%, var(--theme-input-bg, var(--theme-elevation-0)));
82
+ color: var(--theme-text);
83
+ }
84
+
85
+ .builder-bind__chip--missing,
86
+ .builder-bind__select--missing {
87
+ border-color: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 55%, transparent);
88
+ background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 10%, transparent);
89
+
90
+ svg:first-child {
91
+ color: var(--theme-warning-600, var(--theme-error-500));
92
+ }
93
+ }
94
+
95
+ .builder-bind__chip-main,
96
+ .builder-bind__select {
97
+ display: flex;
98
+ flex: 1;
99
+ align-items: center;
100
+ gap: 7px;
101
+ min-width: 0;
102
+ padding: 6px 8px 6px 10px;
103
+ border: 0;
104
+ background: transparent;
105
+ color: inherit;
106
+ font: inherit;
107
+ font-size: var(--be-text-m);
108
+ text-align: left;
109
+ cursor: pointer;
110
+
111
+ > svg:first-child {
112
+ flex: none;
113
+ color: var(--theme-success-600);
114
+ }
115
+
116
+ &:disabled {
117
+ cursor: default;
118
+ }
119
+ }
120
+
121
+ .builder-bind__select {
122
+ flex: none;
123
+ width: 100%;
124
+ border-color: var(--theme-elevation-150);
125
+ background: var(--theme-input-bg, var(--theme-elevation-0));
126
+
127
+ &:hover,
128
+ &[aria-expanded='true'] {
129
+ border-color: var(--theme-elevation-250);
130
+ }
131
+ }
132
+
133
+ .builder-bind__chip-main:hover:not(:disabled) .builder-bind__chip-label {
134
+ text-decoration: underline;
135
+ text-underline-offset: 2px;
136
+ }
137
+
138
+ .builder-bind__chip-label {
139
+ min-width: 0;
140
+ overflow: hidden;
141
+ font-weight: var(--be-weight-medium);
142
+ text-overflow: ellipsis;
143
+ white-space: nowrap;
144
+ }
145
+
146
+ .builder-bind__chip-path {
147
+ flex: none;
148
+ max-width: 45%;
149
+ margin-left: auto;
150
+ overflow: hidden;
151
+ padding: 1px 0;
152
+ color: var(--theme-elevation-600);
153
+ font-family: var(--font-mono, monospace);
154
+ font-size: var(--be-text-s);
155
+ text-overflow: ellipsis;
156
+ white-space: nowrap;
157
+ }
158
+
159
+ .builder-bind__placeholder {
160
+ flex: 1;
161
+ color: var(--theme-elevation-600);
162
+ }
163
+
164
+ .builder-bind__select-caret {
165
+ flex: none;
166
+ margin-left: 4px;
167
+ color: var(--theme-elevation-600);
168
+ }
169
+
170
+ .builder-bind__chip-x {
171
+ display: grid;
172
+ flex: none;
173
+ place-items: center;
174
+ width: 26px;
175
+ height: 26px;
176
+ margin-right: 4px;
177
+ padding: 0;
178
+ border: 0;
179
+ border-radius: var(--style-radius-s, 4px);
180
+ background: none;
181
+ color: var(--theme-elevation-600);
182
+ cursor: pointer;
183
+
184
+ &:hover {
185
+ background: var(--theme-elevation-100);
186
+ color: var(--theme-error-500);
187
+ }
188
+ }
189
+
190
+ .builder-bind__note {
191
+ margin: 0;
192
+ color: var(--theme-elevation-600);
193
+ font-size: var(--be-text-m);
194
+ line-height: 1.45;
195
+ }
196
+
197
+ .builder-bind__note--warn {
198
+ color: var(--theme-warning-600, var(--theme-error-500));
199
+ }
200
+
201
+ .builder-bind__preview {
202
+ display: flex;
203
+ flex-direction: column;
204
+ gap: 4px;
205
+ min-width: 0;
206
+ padding: 6px 8px;
207
+ // The binding chip above already says the value is bound; the preview is a plain quiet box.
208
+ background: var(--theme-elevation-50);
209
+ border-radius: var(--style-radius-s, 4px);
210
+ }
211
+
212
+ .builder-bind__preview-from {
213
+ overflow: hidden;
214
+ color: var(--theme-elevation-600);
215
+ font-size: var(--be-text-s);
216
+ font-weight: var(--be-weight-strong);
217
+ letter-spacing: 0.04em;
218
+ text-overflow: ellipsis;
219
+ text-transform: uppercase;
220
+ white-space: nowrap;
221
+ }
222
+
223
+ .builder-bind__preview-text {
224
+ display: -webkit-box;
225
+ overflow: hidden;
226
+ color: var(--theme-text);
227
+ font-size: var(--be-text-m);
228
+ line-height: 1.45;
229
+ -webkit-box-orient: vertical;
230
+ -webkit-line-clamp: 3;
231
+ overflow-wrap: anywhere;
232
+ }
233
+
234
+ .builder-bind__preview-image {
235
+ display: block;
236
+ width: 100%;
237
+ max-height: 120px;
238
+ border-radius: var(--style-radius-s, 4px);
239
+ object-fit: cover;
240
+ background: var(--theme-elevation-100);
241
+ }
242
+
243
+ .builder-bind__preview-empty {
244
+ color: var(--theme-elevation-600);
245
+ font-size: var(--be-text-m);
246
+ font-style: italic;
247
+ }
248
+
249
+ .builder-bind__fallback-toggle {
250
+ display: inline-flex;
251
+ align-items: center;
252
+ align-self: flex-start;
253
+ gap: 4px;
254
+ padding: 2px 0;
255
+ border: 0;
256
+ background: none;
257
+ color: var(--theme-elevation-600);
258
+ font: inherit;
259
+ font-size: var(--be-text-m);
260
+ cursor: pointer;
261
+
262
+ &:hover {
263
+ color: var(--theme-text);
264
+ }
265
+ }
266
+
267
+ .builder-bind__fallback {
268
+ padding: 8px 0 0 10px;
269
+ border-left: 2px solid var(--theme-elevation-100);
270
+ }
271
+
272
+ // ---------------------------------------------------------------------------
273
+ // Scope banner (top of the Content tab)
274
+ // ---------------------------------------------------------------------------
275
+
276
+ .builder-bind__banner {
277
+ display: flex;
278
+ align-items: flex-start;
279
+ gap: 8px;
280
+ padding: 8px 10px;
281
+ border-radius: var(--style-radius-m, 6px);
282
+ background: var(--theme-elevation-50);
283
+ color: var(--theme-elevation-700);
284
+ font-size: var(--be-text-m);
285
+ line-height: 1.45;
286
+
287
+ > svg {
288
+ flex: none;
289
+ margin-top: 1px;
290
+ color: var(--theme-success-600);
291
+ }
292
+
293
+ p {
294
+ margin: 0;
295
+ }
296
+ }
297
+
298
+ .builder-bind__banner--warn {
299
+ background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 12%, transparent);
300
+ color: var(--theme-text);
301
+
302
+ > svg {
303
+ color: var(--theme-warning-600, var(--theme-error-500));
304
+ }
305
+ }
306
+
307
+ .builder-bind__inline-icon {
308
+ display: inline;
309
+ vertical-align: -2px;
310
+ }
311
+
312
+ .builder-bind__link {
313
+ margin-top: 4px;
314
+ padding: 0;
315
+ border: 0;
316
+ background: none;
317
+ color: var(--theme-text);
318
+ font: inherit;
319
+ font-weight: var(--be-weight-strong);
320
+ text-decoration: underline;
321
+ text-underline-offset: 2px;
322
+ cursor: pointer;
323
+ }
324
+
325
+ // ---------------------------------------------------------------------------
326
+ // Field picker and sample list (popovers)
327
+ // ---------------------------------------------------------------------------
328
+
329
+ .builder-bind__popover.builder-styles__popover,
330
+ .builder-template__popover.builder-styles__popover {
331
+ width: 340px;
332
+ max-height: min(460px, calc(100vh - 16px));
333
+ overflow: hidden;
334
+ border-color: var(--theme-elevation-150);
335
+ }
336
+
337
+ .builder-bind__picker {
338
+ display: flex;
339
+ flex-direction: column;
340
+ max-height: inherit;
341
+ }
342
+
343
+ .builder-bind__picker-head {
344
+ display: flex;
345
+ align-items: center;
346
+ padding: 10px 12px 6px;
347
+ }
348
+
349
+ .builder-bind__picker-title {
350
+ display: inline-flex;
351
+ align-items: center;
352
+ gap: 6px;
353
+ color: var(--theme-elevation-600);
354
+ font-size: var(--be-text-s);
355
+ font-weight: var(--be-weight-strong);
356
+ letter-spacing: 0.04em;
357
+ text-transform: uppercase;
358
+
359
+ svg {
360
+ color: var(--theme-success-600);
361
+ }
362
+ }
363
+
364
+ .builder-bind__picker-search {
365
+ display: flex;
366
+ flex: none;
367
+ align-items: center;
368
+ gap: 6px;
369
+ height: 30px;
370
+ margin: 0 10px 6px;
371
+ padding: 0 8px;
372
+ border: 1px solid var(--theme-elevation-150);
373
+ border-radius: var(--style-radius-m, 6px);
374
+ background: var(--theme-input-bg, var(--theme-elevation-0));
375
+ color: var(--theme-elevation-400);
376
+
377
+ &:focus-within {
378
+ border-color: var(--theme-success-500);
379
+ color: var(--theme-text);
380
+ }
381
+
382
+ input {
383
+ flex: 1;
384
+ min-width: 0;
385
+ padding: 0;
386
+ border: 0;
387
+ outline: 0;
388
+ background: transparent;
389
+ color: var(--theme-text);
390
+ font: inherit;
391
+ font-size: var(--be-text-m);
392
+ }
393
+ }
394
+
395
+ .builder-bind__picker-empty {
396
+ margin: 0;
397
+ padding: 16px 14px 18px;
398
+ color: var(--theme-elevation-600);
399
+ font-size: var(--be-text-m);
400
+ text-align: center;
401
+ }
402
+
403
+ .builder-bind__picker-foot {
404
+ margin: 0;
405
+ padding: 8px 12px;
406
+ border-top: 1px solid var(--theme-elevation-100);
407
+ color: var(--theme-elevation-600);
408
+ font-size: var(--be-text-s);
409
+ }
410
+
411
+ .builder-bind__rows {
412
+ flex: 1;
413
+ min-height: 0;
414
+ margin: 0;
415
+ padding: 2px 4px 6px;
416
+ overflow: hidden auto;
417
+ list-style: none;
418
+ scrollbar-width: thin;
419
+ }
420
+
421
+ .builder-bind__row {
422
+ display: flex;
423
+ align-items: center;
424
+ gap: 8px;
425
+ min-height: 34px;
426
+ padding: 4px 8px;
427
+ border-radius: var(--style-radius-s, 4px);
428
+ color: var(--theme-text);
429
+ cursor: pointer;
430
+
431
+ &[data-active] {
432
+ background: var(--theme-elevation-100);
433
+ }
434
+
435
+ &[data-current] .builder-bind__row-label {
436
+ font-weight: var(--be-weight-strong);
437
+ }
438
+ }
439
+
440
+ .builder-bind__row--group {
441
+ min-height: 26px;
442
+ margin-top: 2px;
443
+ color: var(--theme-elevation-600);
444
+ font-size: var(--be-text-s);
445
+ font-weight: var(--be-weight-strong);
446
+ cursor: default;
447
+
448
+ .builder-bind__row-label {
449
+ font-weight: var(--be-weight-strong);
450
+ }
451
+ }
452
+
453
+ .builder-bind__row-hop {
454
+ padding: 0 5px;
455
+ border-radius: 8px;
456
+ background: var(--theme-elevation-100);
457
+ font-size: var(--be-text-s);
458
+ font-weight: var(--be-weight-medium);
459
+ }
460
+
461
+ .builder-bind__row-icon {
462
+ display: grid;
463
+ flex: none;
464
+ place-items: center;
465
+ width: 22px;
466
+ height: 22px;
467
+ border-radius: var(--style-radius-s, 4px);
468
+ background: var(--theme-elevation-100);
469
+ color: var(--theme-elevation-700);
470
+ }
471
+
472
+ .builder-bind__row-text {
473
+ display: flex;
474
+ flex: 1;
475
+ flex-direction: column;
476
+ min-width: 0;
477
+ line-height: 1.25;
478
+ }
479
+
480
+ .builder-bind__row-label {
481
+ overflow: hidden;
482
+ font-size: var(--be-text-m);
483
+ text-overflow: ellipsis;
484
+ white-space: nowrap;
485
+ }
486
+
487
+ .builder-bind__row-path {
488
+ overflow: hidden;
489
+ color: var(--theme-elevation-600);
490
+ font-family: var(--font-mono, monospace);
491
+ font-size: var(--be-text-s);
492
+ text-overflow: ellipsis;
493
+ white-space: nowrap;
494
+ }
495
+
496
+ .builder-bind__row-hint {
497
+ flex: none;
498
+ max-width: 40%;
499
+ overflow: hidden;
500
+ color: var(--theme-elevation-600);
501
+ font-size: var(--be-text-s);
502
+ text-overflow: ellipsis;
503
+ white-space: nowrap;
504
+ }
505
+
506
+ .builder-bind__row-check {
507
+ flex: none;
508
+ color: var(--theme-success-600);
509
+ }
510
+
511
+ // ---------------------------------------------------------------------------
512
+ // Toolbar: template mode and the sample document
513
+ // ---------------------------------------------------------------------------
514
+
515
+ .builder-template__control {
516
+ display: inline-flex;
517
+ align-items: center;
518
+ gap: 6px;
519
+ min-width: 0;
520
+ max-width: 100%;
521
+ height: 28px;
522
+ margin-left: 8px;
523
+ padding: 0 10px 0 8px;
524
+ border: 1px solid var(--theme-elevation-150);
525
+ border-radius: 14px;
526
+ background: var(--theme-elevation-50);
527
+ color: var(--theme-elevation-800);
528
+ font-size: var(--be-text-m);
529
+ white-space: nowrap;
530
+ cursor: pointer;
531
+ transition:
532
+ background-color 120ms ease,
533
+ border-color 120ms ease;
534
+
535
+ > svg:first-child {
536
+ flex: none;
537
+ color: var(--theme-success-600);
538
+ }
539
+
540
+ > svg:last-child {
541
+ flex: none;
542
+ color: var(--theme-elevation-600);
543
+ }
544
+
545
+ &:hover,
546
+ &[aria-expanded='true'] {
547
+ border-color: var(--theme-elevation-250);
548
+ background: var(--theme-elevation-100);
549
+ }
550
+ }
551
+
552
+ .builder-template__control--warn {
553
+ border-color: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 55%, transparent);
554
+ background: color-mix(in srgb, var(--theme-warning-500, var(--theme-error-500)) 12%, transparent);
555
+
556
+ > svg:first-child {
557
+ color: var(--theme-warning-600, var(--theme-error-500));
558
+ }
559
+ }
560
+
561
+ .builder-template__mode {
562
+ flex: none;
563
+ font-weight: var(--be-weight-strong);
564
+ }
565
+
566
+ .builder-template__sep {
567
+ flex: none;
568
+ color: var(--theme-elevation-400);
569
+ }
570
+
571
+ .builder-template__text {
572
+ min-width: 0;
573
+ overflow: hidden;
574
+ color: var(--theme-elevation-600);
575
+ text-overflow: ellipsis;
576
+
577
+ strong {
578
+ color: var(--theme-text);
579
+ font-weight: var(--be-weight-medium);
580
+ }
581
+ }
582
+
583
+ .builder-template__status {
584
+ flex: none;
585
+ padding: 0 6px;
586
+ border-radius: 8px;
587
+ background: var(--theme-elevation-100);
588
+ color: var(--theme-elevation-600);
589
+ font-size: var(--be-text-s);
590
+ line-height: 16px;
591
+ }
592
+
593
+ // ---------------------------------------------------------------------------
594
+ // Outline and canvas hints
595
+ // ---------------------------------------------------------------------------
596
+
597
+ .builder-editor__row-bound {
598
+ display: grid;
599
+ flex: none;
600
+ place-items: center;
601
+ width: 18px;
602
+ height: 18px;
603
+ margin-left: auto;
604
+ border-radius: 4px;
605
+ background: color-mix(in srgb, var(--theme-success-500) 14%, transparent);
606
+ color: var(--theme-success-600);
607
+ }
608
+
609
+ .builder-editor__row-bound--broken {
610
+ background: color-mix(in srgb, var(--theme-warning-500) 18%, transparent);
611
+ color: var(--theme-warning-700, var(--theme-warning-500));
612
+ }
613
+
614
+ .builder-editor__row:hover .builder-editor__row-bound {
615
+ display: none;
616
+ }
617
+
618
+ .builder-editor__tag-bound {
619
+ display: inline-grid;
620
+ place-items: center;
621
+ width: 15px;
622
+ height: 15px;
623
+ margin-left: 2px;
624
+ border-radius: 3px;
625
+ background: rgb(255 255 255 / 0.22);
626
+ }
627
+
628
+ // ---------------------------------------------------------------------------
629
+ // Visibility conditions (Visibility.tsx); the rows use the where builder's styles
630
+ // ---------------------------------------------------------------------------
631
+
632
+ .builder-visibility {
633
+ padding-top: calc(var(--base) * 0.75);
634
+ border-top: 1px solid var(--theme-elevation-100);
635
+ }
636
+
637
+ // ---------------------------------------------------------------------------
638
+ // Format picker of a bound prop and of the Field block (Bindable.tsx)
639
+ // ---------------------------------------------------------------------------
640
+
641
+ .builder-format {
642
+ display: grid;
643
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
644
+ gap: 4px;
645
+ min-width: 0;
646
+ margin: 0;
647
+ padding: 0;
648
+ border: 0;
649
+ }
650
+
651
+ .builder-format__name {
652
+ grid-column: 1 / -1;
653
+ }
654
+ }