payload-canvas 0.2.0 → 0.3.0-next.1

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 (95) hide show
  1. package/README.md +14 -22
  2. package/dist/admin/BuilderTab.js +1 -1
  3. package/dist/admin/diff/LayoutDiff.js +3 -3
  4. package/dist/admin/diff/layoutDiff.scss +48 -48
  5. package/dist/admin/editor/DragLayer.js +1 -1
  6. package/dist/admin/editor/InlineToolbar.js +1 -1
  7. package/dist/admin/editor/Inspector.js +1 -1
  8. package/dist/admin/editor/Outline.js +1 -1
  9. package/dist/admin/editor/Overlay.js +1 -1
  10. package/dist/admin/editor/assistant/AssistantPanel.js +1 -1
  11. package/dist/admin/editor/assistant/ConnectAgents.js +1 -1
  12. package/dist/admin/editor/assistant/assistant.scss +65 -65
  13. package/dist/admin/editor/dnd/dnd.scss +2 -2
  14. package/dist/admin/editor/editor.scss +134 -134
  15. package/dist/admin/editor/empty/EmptyStart.js +3 -3
  16. package/dist/admin/editor/empty/empty.scss +3 -3
  17. package/dist/admin/editor/fields/ArrayField.js +2 -2
  18. package/dist/admin/editor/fields/access.d.ts +1 -1
  19. package/dist/admin/editor/fields/fields.scss +33 -33
  20. package/dist/admin/editor/generate/GenerateImage.js +1 -1
  21. package/dist/admin/editor/generate/generate.scss +48 -48
  22. package/dist/admin/editor/icons.js +1 -1
  23. package/dist/admin/editor/insert/InsertHandle.js +1 -1
  24. package/dist/admin/editor/layout/FrameResize.js +1 -1
  25. package/dist/admin/editor/layout/LeftPanel.js +1 -1
  26. package/dist/admin/editor/layout/layout.scss +4 -4
  27. package/dist/admin/editor/live/PresenceUI.js +1 -1
  28. package/dist/admin/editor/live/presence.scss +1 -1
  29. package/dist/admin/editor/locale/LocaleField.d.ts +1 -1
  30. package/dist/admin/editor/locale/LocaleField.js +1 -1
  31. package/dist/admin/editor/locale/locale.scss +12 -12
  32. package/dist/admin/editor/media/ImageEditor.js +1 -1
  33. package/dist/admin/editor/media/media.scss +23 -23
  34. package/dist/admin/editor/menu/Menu.js +1 -1
  35. package/dist/admin/editor/menu/menu.scss +16 -16
  36. package/dist/admin/editor/motion/MotionPanel.js +1 -1
  37. package/dist/admin/editor/motion/model.d.ts +2 -2
  38. package/dist/admin/editor/motion/motion.scss +2 -2
  39. package/dist/admin/editor/regions/RegionOverlay.js +1 -1
  40. package/dist/admin/editor/regions/RegionPane.js +1 -1
  41. package/dist/admin/editor/renderField.js +1 -1
  42. package/dist/admin/editor/styles/ColorPicker.js +1 -1
  43. package/dist/admin/editor/styles/VariantBar.js +1 -1
  44. package/dist/admin/editor/styles/controls.js +1 -1
  45. package/dist/admin/editor/styles/sections.js +1 -1
  46. package/dist/admin/editor/styles/styles.scss +93 -93
  47. package/dist/admin/editor/templates/Bindable.d.ts +1 -1
  48. package/dist/admin/editor/templates/Bindable.js +1 -1
  49. package/dist/admin/editor/templates/SamplePicker.js +1 -1
  50. package/dist/admin/editor/templates/templates.scss +90 -90
  51. package/dist/admin/editor/tooltip/tooltip.scss +4 -4
  52. package/dist/admin/editor/topbar/DocumentActions.js +1 -1
  53. package/dist/admin/editor/topbar/DocumentTitle.js +1 -1
  54. package/dist/admin/editor/topbar/screens/DrawerRouter.d.ts +1 -1
  55. package/dist/admin/editor/topbar/screens/ScreenDrawer.js +1 -1
  56. package/dist/admin/editor/topbar/screens/drawerRouterSupport.d.ts +1 -1
  57. package/dist/admin/editor/topbar/screens/screens.scss +20 -20
  58. package/dist/admin/editor/topbar/settingsDrawer.js +3 -3
  59. package/dist/admin/editor/topbar/settingsDrawer.scss +7 -7
  60. package/dist/admin/editor/topbar/topbar.scss +47 -47
  61. package/dist/admin/editor/ui/Select.js +1 -1
  62. package/dist/admin/editor/ui/controls.scss +26 -26
  63. package/dist/admin/screen/BuilderScreen.js +1 -1
  64. package/dist/ai/adapters/anthropic.d.ts +2 -2
  65. package/dist/ai/images/service.js +1 -1
  66. package/dist/ai/loop.d.ts +5 -5
  67. package/dist/blocks/defaults.d.ts +9 -9
  68. package/dist/core/bindings.d.ts +1 -1
  69. package/dist/core/fieldAccess.js +1 -1
  70. package/dist/core/fieldHooks.d.ts +1 -1
  71. package/dist/core/motion.d.ts +7 -7
  72. package/dist/live/draftAccess.js +1 -1
  73. package/dist/live/session.d.ts +1 -1
  74. package/dist/live/storage.js +2 -4
  75. package/dist/mcp/shared.d.ts +31 -31
  76. package/dist/plugin/index.js +4 -4
  77. package/dist/plugin/templates.js +5 -1
  78. package/dist/protocol/index.d.ts +1 -1
  79. package/dist/react/canvas/BuilderCanvas.js +1 -1
  80. package/dist/react/canvas/inline/rich/editor.js +6 -1
  81. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +1 -1
  82. package/dist/react/motion/style.js +1 -1
  83. package/dist/react/render/PayloadRoot.js +1 -1
  84. package/dist/react/render/RenderLayout.js +1 -1
  85. package/dist/react/render/resolve.js +2 -0
  86. package/dist/react/server.d.ts +3 -1
  87. package/dist/react/server.js +5 -2
  88. package/dist/react/theme/ThemeStyle.js +1 -1
  89. package/dist/theme/admin/ColorField.d.ts +2 -2
  90. package/dist/theme/admin/ColorField.js +2 -2
  91. package/dist/theme/admin/FontField.d.ts +2 -2
  92. package/dist/theme/admin/FontField.js +2 -2
  93. package/dist/theme/admin/SaveSignal.js +2 -2
  94. package/dist/theme/admin/fields.scss +48 -48
  95. package/package.json +28 -23
@@ -2,17 +2,17 @@
2
2
 
3
3
  @layer payload-default {
4
4
  .builder-styles {
5
- --bs-accent: var(--be-accent, var(--color-blue-500, #2f6fec));
6
- --bs-border: var(--theme-elevation-150);
7
- --bs-muted: var(--theme-elevation-600);
8
- --bs-accent-text: var(--be-accent-text, var(--theme-success-600));
9
- --bs-dim: var(--theme-elevation-400);
5
+ --bs-accent: var(--be-accent, var(--color-bg-brand));
6
+ --bs-border: var(--color-border);
7
+ --bs-muted: var(--color-text-secondary);
8
+ --bs-accent-text: var(--be-accent-text, var(--color-text-success));
9
+ --bs-dim: var(--color-text-tertiary);
10
10
  --bs-h: 26px;
11
11
  /* One column grid for every row: label, control, reset button. */
12
12
  --bs-label: 84px;
13
13
  --bs-gutter: 18px;
14
14
  --bs-gap: 6px;
15
- --bs-override: var(--theme-warning-500, #d97706);
15
+ --bs-override: var(--color-bg-warning, #d97706);
16
16
 
17
17
  display: flex;
18
18
  flex-direction: column;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  code {
30
- font-family: var(--font-mono, ui-monospace, monospace);
30
+ font-family: var(--text-mono-family, ui-monospace, monospace);
31
31
  font-size: var(--be-text-s);
32
32
  }
33
33
  }
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  .builder-styles__hint--error {
42
- color: var(--theme-error-500);
42
+ color: var(--color-bg-danger);
43
43
  }
44
44
 
45
45
  .builder-styles__link {
@@ -57,25 +57,25 @@
57
57
  height: var(--bs-h);
58
58
  padding: 0 10px;
59
59
  border: 1px solid var(--bs-border);
60
- border-radius: var(--style-radius-s, 4px);
61
- background: var(--theme-elevation-50);
62
- color: var(--theme-text);
60
+ border-radius: var(--radius-medium, 4px);
61
+ background: var(--color-bg-secondary);
62
+ color: var(--color-text);
63
63
  font: inherit;
64
64
  cursor: pointer;
65
65
 
66
66
  &:hover {
67
- border-color: var(--theme-elevation-300);
67
+ border-color: var(--color-border);
68
68
  }
69
69
  }
70
70
 
71
71
  .builder-styles__button--primary {
72
- border-color: var(--theme-elevation-800);
73
- background: var(--theme-elevation-800);
74
- color: var(--theme-elevation-0);
72
+ border-color: var(--color-text);
73
+ background: var(--color-text);
74
+ color: var(--color-bg);
75
75
 
76
76
  &:hover {
77
- border-color: var(--theme-elevation-1000);
78
- background: var(--theme-elevation-1000);
77
+ border-color: var(--color-text);
78
+ background: var(--color-text);
79
79
  }
80
80
  }
81
81
 
@@ -93,7 +93,7 @@
93
93
  margin: -4px 0 4px;
94
94
  padding: 4px 0 8px;
95
95
  border-bottom: 1px solid var(--bs-border);
96
- background: var(--theme-bg);
96
+ background: var(--color-bg);
97
97
  }
98
98
 
99
99
  .builder-styles__breakpoints {
@@ -112,20 +112,20 @@
112
112
  height: var(--bs-h);
113
113
  padding: 0 4px;
114
114
  border: 1px solid var(--bs-border);
115
- border-radius: var(--style-radius-s, 4px);
116
- background: var(--theme-elevation-0);
117
- color: var(--theme-text);
115
+ border-radius: var(--radius-medium, 4px);
116
+ background: var(--color-bg);
117
+ color: var(--color-text);
118
118
  font: inherit;
119
119
  font-size: var(--be-text-m);
120
120
  cursor: pointer;
121
121
 
122
122
  &:hover {
123
- border-color: var(--theme-elevation-300);
123
+ border-color: var(--color-border);
124
124
  }
125
125
 
126
126
  &[aria-pressed='true'] {
127
127
  border-color: var(--bs-accent);
128
- background: color-mix(in srgb, var(--bs-accent) 10%, var(--theme-elevation-0));
128
+ background: color-mix(in srgb, var(--bs-accent) 10%, var(--color-bg));
129
129
  color: var(--bs-accent-text);
130
130
  }
131
131
 
@@ -179,7 +179,7 @@
179
179
  font-size: var(--be-text-s);
180
180
 
181
181
  strong {
182
- color: var(--theme-text);
182
+ color: var(--color-text);
183
183
  font-weight: var(--be-weight-strong);
184
184
  }
185
185
 
@@ -200,10 +200,10 @@
200
200
  gap: 8px;
201
201
  margin: 0;
202
202
  padding: 6px 6px 6px 10px;
203
- border: 1px solid color-mix(in srgb, var(--theme-warning-650, #b07a00) 40%, transparent);
204
- border-radius: var(--style-radius-s, 4px);
205
- background: color-mix(in srgb, var(--theme-warning-650, #b07a00) 10%, transparent);
206
- color: var(--theme-text);
203
+ border: 1px solid color-mix(in srgb, var(--color-text-warning, #b07a00) 40%, transparent);
204
+ border-radius: var(--radius-medium, 4px);
205
+ background: color-mix(in srgb, var(--color-text-warning, #b07a00) 10%, transparent);
206
+ color: var(--color-text);
207
207
  font-size: var(--be-text-s);
208
208
  line-height: 1.4;
209
209
  }
@@ -216,9 +216,9 @@
216
216
  height: 24px;
217
217
  padding: 0 8px;
218
218
  border: 1px solid var(--bs-border);
219
- border-radius: var(--style-radius-s, 4px);
220
- background: var(--theme-elevation-0);
221
- color: var(--theme-text);
219
+ border-radius: var(--radius-medium, 4px);
220
+ background: var(--color-bg);
221
+ color: var(--color-text);
222
222
  font: inherit;
223
223
  font-size: var(--be-text-s);
224
224
  font-weight: var(--be-weight-medium);
@@ -237,7 +237,7 @@
237
237
  height: 5px;
238
238
  border-radius: 50%;
239
239
  // Also in a select list, which renders outside the panel.
240
- background: var(--bs-accent, var(--be-accent, var(--theme-success-500)));
240
+ background: var(--bs-accent, var(--be-accent, var(--color-bg-success)));
241
241
  }
242
242
 
243
243
  // -------------------------------------------------------------------------
@@ -245,7 +245,7 @@
245
245
  // -------------------------------------------------------------------------
246
246
 
247
247
  .builder-styles__section {
248
- border-bottom: 1px solid var(--theme-elevation-100);
248
+ border-bottom: 1px solid var(--color-bg-hover);
249
249
  }
250
250
 
251
251
  .builder-styles__section-head,
@@ -257,7 +257,7 @@
257
257
  padding: 8px 0;
258
258
  border: 0;
259
259
  background: none;
260
- color: var(--theme-text);
260
+ color: var(--color-text);
261
261
  font: inherit;
262
262
  font-size: var(--be-text-s);
263
263
  font-weight: var(--be-weight-strong);
@@ -351,7 +351,7 @@
351
351
  [data-source='shorthand'] > .builder-styles__label,
352
352
  .builder-styles__mini-caption[data-source='inherited'] > .builder-styles__mini-text,
353
353
  .builder-styles__mini-caption[data-source='shorthand'] > .builder-styles__mini-text {
354
- color: var(--theme-warning-600, #b7791f);
354
+ color: var(--color-text-warning, #b7791f);
355
355
  }
356
356
 
357
357
  .builder-styles__control {
@@ -404,15 +404,15 @@
404
404
 
405
405
  .builder-styles__override-text {
406
406
  margin: 0;
407
- color: var(--theme-elevation-800);
407
+ color: var(--color-text);
408
408
  font-size: var(--be-text-m);
409
409
  line-height: 1.45;
410
410
 
411
411
  code {
412
412
  padding: 0 3px;
413
413
  border-radius: 3px;
414
- background: var(--theme-elevation-100);
415
- color: var(--theme-text);
414
+ background: var(--color-bg-hover);
415
+ color: var(--color-text);
416
416
  }
417
417
  }
418
418
 
@@ -441,14 +441,14 @@
441
441
  height: var(--bs-h);
442
442
  padding: 0 6px;
443
443
  border: 1px solid var(--bs-border);
444
- border-radius: var(--style-radius-s, 4px);
445
- background: var(--theme-input-bg, var(--theme-elevation-0));
446
- color: var(--theme-text);
444
+ border-radius: var(--radius-medium, 4px);
445
+ background: var(--color-bg, var(--color-bg));
446
+ color: var(--color-text);
447
447
  font: inherit;
448
448
  font-size: var(--be-text-m);
449
449
 
450
450
  &:hover {
451
- border-color: var(--theme-elevation-250);
451
+ border-color: var(--color-border);
452
452
  }
453
453
 
454
454
  &:focus {
@@ -470,14 +470,14 @@
470
470
  margin-left: 3px;
471
471
 
472
472
  &[data-active] {
473
- background: var(--theme-elevation-150);
474
- color: var(--theme-text);
473
+ background: var(--color-border);
474
+ color: var(--color-text);
475
475
  }
476
476
 
477
477
  &[data-active][data-source='inherited'],
478
478
  &[data-active][data-source='shorthand'] {
479
- background: var(--theme-elevation-50);
480
- color: var(--theme-warning-600, #b7791f);
479
+ background: var(--color-bg-secondary);
480
+ color: var(--color-text-warning, #b7791f);
481
481
  }
482
482
  }
483
483
 
@@ -499,8 +499,8 @@
499
499
  }
500
500
 
501
501
  &:hover {
502
- background: var(--theme-elevation-100);
503
- color: var(--theme-error-500);
502
+ background: var(--color-bg-hover);
503
+ color: var(--color-bg-danger);
504
504
  }
505
505
 
506
506
  svg {
@@ -524,8 +524,8 @@
524
524
  height: var(--bs-h);
525
525
  padding: 0;
526
526
  border: 1px solid var(--bs-border);
527
- border-radius: var(--style-radius-s, 4px);
528
- background: var(--theme-elevation-0);
527
+ border-radius: var(--radius-medium, 4px);
528
+ background: var(--color-bg);
529
529
  color: var(--bs-muted);
530
530
  cursor: pointer;
531
531
 
@@ -548,8 +548,8 @@
548
548
  min-width: 0;
549
549
  overflow: hidden;
550
550
  border: 1px solid var(--bs-border);
551
- border-radius: var(--style-radius-s, 4px);
552
- background: var(--theme-input-bg, var(--theme-elevation-0));
551
+ border-radius: var(--radius-medium, 4px);
552
+ background: var(--color-bg, var(--color-bg));
553
553
  }
554
554
 
555
555
  .builder-styles__segment {
@@ -560,7 +560,7 @@
560
560
  height: calc(var(--bs-h) - 2px);
561
561
  padding: 0 2px;
562
562
  border: 0;
563
- border-left: 1px solid var(--theme-elevation-100);
563
+ border-left: 1px solid var(--color-bg-hover);
564
564
  background: none;
565
565
  color: var(--bs-muted);
566
566
  font: inherit;
@@ -572,20 +572,20 @@
572
572
  }
573
573
 
574
574
  &:hover {
575
- background: var(--theme-elevation-50);
576
- color: var(--theme-text);
575
+ background: var(--color-bg-secondary);
576
+ color: var(--color-text);
577
577
  }
578
578
 
579
579
  &[aria-pressed='true'] {
580
- background: var(--theme-elevation-150);
581
- color: var(--theme-text);
580
+ background: var(--color-border);
581
+ color: var(--color-text);
582
582
  }
583
583
 
584
584
  // Active only because of an inherited value: lighter, so it reads as "not set here".
585
585
  &[aria-pressed='true'][data-source='inherited'],
586
586
  &[aria-pressed='true'][data-source='shorthand'] {
587
- background: var(--theme-elevation-50);
588
- color: var(--theme-warning-600, #b7791f);
587
+ background: var(--color-bg-secondary);
588
+ color: var(--color-text-warning, #b7791f);
589
589
  }
590
590
  }
591
591
 
@@ -627,7 +627,7 @@
627
627
 
628
628
  .builder-styles__slider-value {
629
629
  min-width: 34px;
630
- color: var(--theme-text);
630
+ color: var(--color-text);
631
631
  font-variant-numeric: tabular-nums;
632
632
  text-align: right;
633
633
 
@@ -711,18 +711,18 @@
711
711
  / 46px minmax(0, 1fr) 46px;
712
712
  align-items: center;
713
713
  justify-items: center;
714
- border-radius: var(--style-radius-s, 4px);
714
+ border-radius: var(--radius-medium, 4px);
715
715
  }
716
716
 
717
717
  .builder-styles__ring--margin {
718
- border: 1px dashed var(--theme-elevation-250);
719
- background: var(--theme-elevation-50);
718
+ border: 1px dashed var(--color-border);
719
+ background: var(--color-bg-secondary);
720
720
  }
721
721
 
722
722
  .builder-styles__ring--padding {
723
723
  width: 100%;
724
- border: 1px solid var(--theme-elevation-200);
725
- background: var(--theme-elevation-100);
724
+ border: 1px solid var(--color-border);
725
+ background: var(--color-bg-hover);
726
726
  }
727
727
 
728
728
  .builder-styles__ring-label {
@@ -765,9 +765,9 @@
765
765
  max-width: 96px;
766
766
  height: 16px;
767
767
  margin: 4px 0;
768
- border: 1px dashed var(--theme-elevation-300);
768
+ border: 1px dashed var(--color-border);
769
769
  border-radius: 2px;
770
- background: var(--theme-elevation-50);
770
+ background: var(--color-bg-secondary);
771
771
  }
772
772
 
773
773
  .builder-styles__cell {
@@ -777,7 +777,7 @@
777
777
  border: 1px solid transparent;
778
778
  border-radius: 3px;
779
779
  background: transparent;
780
- color: var(--theme-text);
780
+ color: var(--color-text);
781
781
  font: inherit;
782
782
  font-size: var(--be-text-s);
783
783
  font-variant-numeric: tabular-nums;
@@ -788,14 +788,14 @@
788
788
  }
789
789
 
790
790
  &:hover {
791
- border-color: var(--theme-elevation-250);
792
- background: var(--theme-elevation-0);
791
+ border-color: var(--color-border);
792
+ background: var(--color-bg);
793
793
  }
794
794
 
795
795
  &:focus {
796
796
  border-color: var(--bs-accent);
797
797
  outline: 0;
798
- background: var(--theme-input-bg, var(--theme-elevation-0));
798
+ background: var(--color-bg, var(--color-bg));
799
799
  }
800
800
 
801
801
  &[data-source='set'] {
@@ -820,9 +820,9 @@
820
820
  overflow: auto;
821
821
  max-height: min(480px, calc(100vh - 16px));
822
822
  border: 1px solid var(--bs-border);
823
- border-radius: var(--style-radius-m, 6px);
824
- background: var(--theme-bg);
825
- color: var(--theme-text);
823
+ border-radius: var(--radius-large, 6px);
824
+ background: var(--color-bg);
825
+ color: var(--color-text);
826
826
  font-size: var(--be-text-m);
827
827
  box-shadow: var(--be-shadow);
828
828
  }
@@ -847,7 +847,7 @@
847
847
  white-space: nowrap;
848
848
 
849
849
  &[aria-selected='true'] {
850
- background: var(--theme-elevation-100);
850
+ background: var(--color-bg-hover);
851
851
  }
852
852
  }
853
853
 
@@ -875,16 +875,16 @@
875
875
  height: var(--bs-h);
876
876
  padding: 0 6px;
877
877
  border: 1px solid var(--bs-border);
878
- border-radius: var(--style-radius-s, 4px);
879
- background: var(--theme-input-bg, var(--theme-elevation-0));
880
- color: var(--theme-text);
878
+ border-radius: var(--radius-medium, 4px);
879
+ background: var(--color-bg, var(--color-bg));
880
+ color: var(--color-text);
881
881
  font: inherit;
882
882
  font-size: var(--be-text-m);
883
883
  text-align: left;
884
884
  cursor: pointer;
885
885
 
886
886
  &:hover {
887
- border-color: var(--theme-elevation-250);
887
+ border-color: var(--color-border);
888
888
  }
889
889
 
890
890
  &[data-source='inherited'],
@@ -901,12 +901,12 @@
901
901
  }
902
902
 
903
903
  .builder-styles__swatch {
904
- --checker: conic-gradient(var(--theme-elevation-150) 25%, var(--theme-elevation-0) 0 50%, var(--theme-elevation-150) 0 75%, var(--theme-elevation-0) 0) 0 0 / 8px 8px;
904
+ --checker: conic-gradient(var(--color-border) 25%, var(--color-bg) 0 50%, var(--color-border) 0 75%, var(--color-bg) 0) 0 0 / 8px 8px;
905
905
 
906
906
  flex: none;
907
907
  width: 16px;
908
908
  height: 16px;
909
- border: 1px solid var(--theme-elevation-200);
909
+ border: 1px solid var(--color-border);
910
910
  border-radius: 3px;
911
911
  background:
912
912
  linear-gradient(
@@ -916,7 +916,7 @@
916
916
  var(--checker);
917
917
 
918
918
  &[data-empty='true'] {
919
- background: linear-gradient(to top right, transparent 45%, var(--theme-error-500) 45% 55%, transparent 55%), var(--theme-elevation-0);
919
+ background: linear-gradient(to top right, transparent 45%, var(--color-bg-danger) 45% 55%, transparent 55%), var(--color-bg);
920
920
  }
921
921
  }
922
922
 
@@ -948,7 +948,7 @@
948
948
  .builder-styles__picker-value {
949
949
  flex: 1;
950
950
  overflow: hidden;
951
- font-family: var(--font-mono, ui-monospace, monospace);
951
+ font-family: var(--text-mono-family, ui-monospace, monospace);
952
952
  font-size: var(--be-text-s);
953
953
  text-overflow: ellipsis;
954
954
  white-space: nowrap;
@@ -990,7 +990,7 @@
990
990
  border: 1px solid transparent;
991
991
  border-radius: 3px;
992
992
  background: none;
993
- color: var(--theme-text);
993
+ color: var(--color-text);
994
994
  font: inherit;
995
995
  font-size: var(--be-text-s);
996
996
  text-align: left;
@@ -1005,7 +1005,7 @@
1005
1005
  }
1006
1006
 
1007
1007
  &:hover {
1008
- background: var(--theme-elevation-100);
1008
+ background: var(--color-bg-hover);
1009
1009
  }
1010
1010
 
1011
1011
  &[aria-pressed='true'] {
@@ -1029,7 +1029,7 @@
1029
1029
  &:hover {
1030
1030
  position: relative;
1031
1031
  z-index: 1;
1032
- outline: 1px solid var(--theme-text);
1032
+ outline: 1px solid var(--color-text);
1033
1033
  }
1034
1034
 
1035
1035
  &[aria-pressed='true'] {
@@ -1057,8 +1057,8 @@
1057
1057
  height: var(--bs-h);
1058
1058
  padding: 1px;
1059
1059
  border: 1px solid var(--bs-border);
1060
- border-radius: var(--style-radius-s, 4px);
1061
- background: var(--theme-elevation-0);
1060
+ border-radius: var(--radius-medium, 4px);
1061
+ background: var(--color-bg);
1062
1062
  cursor: pointer;
1063
1063
  }
1064
1064
 
@@ -1088,7 +1088,7 @@
1088
1088
  min-height: 64px;
1089
1089
  max-height: 240px;
1090
1090
  padding: 6px;
1091
- font-family: var(--font-mono, ui-monospace, monospace);
1091
+ font-family: var(--text-mono-family, ui-monospace, monospace);
1092
1092
  font-size: var(--be-text-m);
1093
1093
  line-height: 1.5;
1094
1094
  resize: vertical;
@@ -1117,7 +1117,7 @@
1117
1117
  gap: 2px;
1118
1118
  padding: 1px 2px 1px 6px;
1119
1119
  border-radius: 3px;
1120
- background: var(--theme-elevation-100);
1120
+ background: var(--color-bg-hover);
1121
1121
 
1122
1122
  .builder-styles__reset {
1123
1123
  width: 16px;
@@ -1127,12 +1127,12 @@
1127
1127
 
1128
1128
  // Not in the theme's class list: probably a typo.
1129
1129
  .builder-styles__class-chip--unknown {
1130
- outline: 1px dashed var(--theme-warning-500, #b7791f);
1130
+ outline: 1px dashed var(--color-bg-warning, #b7791f);
1131
1131
  outline-offset: -1px;
1132
- background: color-mix(in srgb, var(--theme-warning-500, #b7791f) 12%, transparent);
1132
+ background: color-mix(in srgb, var(--color-bg-warning, #b7791f) 12%, transparent);
1133
1133
 
1134
1134
  code {
1135
- text-decoration: wavy underline var(--theme-warning-500, #b7791f);
1135
+ text-decoration: wavy underline var(--color-bg-warning, #b7791f);
1136
1136
  }
1137
1137
  }
1138
1138
 
@@ -34,7 +34,7 @@ type SlotProps = {
34
34
  * One inspector field. Shows the normal input, plus a bind button when the prop can bind; the
35
35
  * bound chip when it is bound; or a special input for the Field block and the collection list.
36
36
  */
37
- export declare function FieldSlot(props: SlotProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
37
+ export declare function FieldSlot(props: SlotProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
38
38
  /** The sample document's value for a bound field: text, an image, or a note when it is empty. */
39
39
  export declare function SamplePreview({ scope, source }: {
40
40
  scope: BindingScope | null;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // Data binding in the block inspector: the "bind" button next to bindable props, the bound chip
4
4
  // with a live sample value, the Field block's field picker and the collection list's inputs.
5
5
  import { FieldLabel, SelectInput, TextInput, useConfig } from '@payloadcms/ui';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  /* oxlint-disable jsx-a11y/prefer-tag-over-role, jsx-a11y/no-noninteractive-element-to-interactive-role -- the document list is a listbox with option rows */
4
4
  import { useEffect, useId, useRef, useState } from 'react';
5
5
  import { Icon } from '../icons.js';