payload-canvas 0.6.3 → 0.6.5

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 (60) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +3237 -3236
  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/TopBar.js +2 -1
  29. package/dist/admin/editor/topbar/contentMode.scss +26 -26
  30. package/dist/admin/editor/topbar/screens/screens.scss +134 -134
  31. package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
  32. package/dist/admin/editor/topbar/tabTitle.d.ts +6 -0
  33. package/dist/admin/editor/topbar/tabTitle.js +9 -0
  34. package/dist/admin/editor/topbar/topbar.scss +645 -645
  35. package/dist/admin/editor/ui/controls.scss +320 -320
  36. package/dist/admin/forms/submissions.scss +197 -197
  37. package/dist/admin/layoutField.scss +69 -69
  38. package/dist/admin/templateConditions.scss +24 -24
  39. package/dist/ai/prompt.js +40 -40
  40. package/dist/blocks/client/marquee.js +14 -14
  41. package/dist/blocks/payload.js +13 -3
  42. package/dist/core/payloadBlocks.js +10 -1
  43. package/dist/core/responseError.d.ts +5 -0
  44. package/dist/core/responseError.js +8 -0
  45. package/dist/core/sections.d.ts +2 -0
  46. package/dist/core/sections.js +8 -0
  47. package/dist/css/index.d.ts +6 -0
  48. package/dist/css/index.js +40 -1
  49. package/dist/css/shared.js +2 -2
  50. package/dist/live/session.js +18 -0
  51. package/dist/live/storage.d.ts +5 -0
  52. package/dist/live/storage.js +20 -0
  53. package/dist/mcp/index.js +46 -19
  54. package/dist/mcp/shared.js +16 -16
  55. package/dist/plugin/index.d.ts +21 -1
  56. package/dist/plugin/index.js +46 -15
  57. package/dist/react/canvas/BuilderCanvas.js +76 -75
  58. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +8 -7
  59. package/dist/theme/admin/fields.scss +363 -363
  60. package/package.json +1 -1
@@ -1,381 +1,381 @@
1
- // The classes field of the Styles panel, the class banner, the custom CSS box and the class
2
- // dialogs. Payload CSS variables only, no Tailwind (it would leak into the admin).
3
-
4
- @layer payload-default {
5
- .builder-classes {
6
- display: flex;
7
- flex-direction: column;
8
- gap: 6px;
9
- margin: 0 0 10px;
10
-
11
- .builder-styles__raw-input {
12
- min-height: 52px;
13
- }
14
- }
15
-
16
- .builder-classes__head {
17
- display: flex;
18
- align-items: center;
19
- justify-content: space-between;
20
- min-height: 20px;
21
- }
22
-
23
- .builder-classes__menu {
24
- display: grid;
25
- place-items: center;
26
- width: 22px;
27
- height: 20px;
28
- margin-right: -3px;
29
- padding: 0;
30
- border: 0;
31
- border-radius: var(--style-radius-s, 4px);
32
- background: none;
33
- color: var(--bs-muted);
34
- cursor: pointer;
35
-
36
- &:hover,
37
- &[data-popup-open] {
38
- background: var(--theme-elevation-100);
39
- color: var(--theme-text);
40
- }
41
-
42
- &:focus-visible {
43
- outline: 2px solid var(--bs-accent);
44
- outline-offset: 1px;
45
- }
46
- }
47
-
48
- // -------------------------------------------------------------------------
49
- // The classes field: chips and an input in one box that looks like an input
50
- // -------------------------------------------------------------------------
51
-
52
- .builder-classfield {
53
- display: flex;
54
- flex-wrap: wrap;
55
- align-items: center;
56
- gap: 4px;
57
- min-height: var(--bs-h);
58
- padding: 2px;
59
- border: 1px solid var(--bs-border);
60
- border-radius: var(--style-radius-s, 4px);
61
- background: var(--theme-input-bg, var(--theme-elevation-0));
62
-
63
- &:hover {
64
- border-color: var(--theme-elevation-250);
65
- }
66
-
67
- &:focus-within {
68
- border-color: var(--bs-accent);
69
- box-shadow: 0 0 0 1px var(--bs-accent);
70
- }
71
- }
72
-
73
- .builder-classfield__chip {
74
- display: inline-flex;
75
- align-items: center;
76
- min-width: 0;
77
- max-width: 100%;
78
- height: 20px;
79
- border-radius: 3px;
80
- font-size: var(--be-text-s);
81
- line-height: 1;
82
- }
83
-
84
- .builder-classfield__chip-main {
85
- display: inline-flex;
86
- align-items: center;
87
- gap: 5px;
88
- min-width: 0;
89
- height: 100%;
90
- padding: 0 2px 0 6px;
91
- border: 0;
92
- border-radius: inherit;
93
- background: none;
94
- color: inherit;
95
- font: inherit;
96
- cursor: pointer;
97
-
98
- &:focus-visible {
99
- outline: 2px solid var(--bs-accent);
100
- outline-offset: 0;
101
- }
102
- }
103
-
104
- .builder-classfield__chip-name {
105
- overflow: hidden;
106
- text-overflow: ellipsis;
107
- white-space: nowrap;
108
- }
109
-
110
- .builder-classfield__chip-code {
111
- color: var(--bs-muted);
112
- font-family: var(--font-mono, ui-monospace, monospace);
113
- }
114
-
115
- .builder-classfield__remove {
116
- display: grid;
117
- flex: none;
118
- place-items: center;
119
- width: 18px;
120
- height: 100%;
121
- padding: 0;
122
- border: 0;
123
- border-radius: 0 3px 3px 0;
124
- background: none;
125
- color: inherit;
126
- opacity: 0.55;
127
- cursor: pointer;
128
-
129
- svg {
130
- width: 12px;
131
- height: 12px;
132
- }
133
-
134
- &:hover,
135
- &:focus-visible {
136
- opacity: 1;
137
- }
138
-
139
- &:focus-visible {
140
- outline: 2px solid var(--bs-accent);
141
- outline-offset: -2px;
142
- }
143
- }
144
-
145
- // An editable class: a solid chip in the text font. Chosen (the controls edit it): the accent.
146
- .builder-classfield__chip--class {
147
- background: var(--theme-elevation-150);
148
- color: var(--theme-text);
149
- font-weight: var(--be-weight-strong);
150
-
151
- &:hover {
152
- background: var(--theme-elevation-200);
153
- }
154
-
155
- &[data-selected] {
156
- background: var(--bs-accent);
157
- color: var(--theme-elevation-0);
158
- }
159
- }
160
-
161
- .builder-classfield__draft-dot {
162
- flex: none;
163
- width: 6px;
164
- height: 6px;
165
- border-radius: 50%;
166
- background: var(--theme-warning-500, #d97706);
167
- box-shadow: 0 0 0 1.5px var(--theme-elevation-0);
168
- }
169
-
170
- // A class no control shows: quiet, in monospace, as the code writes it.
171
- .builder-classfield__chip--raw {
172
- box-shadow: inset 0 0 0 1px var(--bs-border);
173
- color: var(--theme-elevation-700, var(--bs-muted));
174
- font-family: var(--font-mono, ui-monospace, monospace);
175
-
176
- &:hover {
177
- background: var(--theme-elevation-50);
178
- color: var(--theme-text);
179
- }
180
-
181
- // Not in the theme's class list: probably a typo.
182
- &[data-unknown] {
183
- background: color-mix(in srgb, var(--theme-warning-500, #b7791f) 10%, transparent);
184
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-warning-500, #b7791f) 60%, transparent);
185
-
186
- .builder-classfield__chip-name {
187
- text-decoration: wavy underline var(--theme-warning-500, #b7791f);
188
- text-underline-offset: 3px;
189
- }
190
- }
191
- }
192
-
193
- .builder-classfield__input,
194
- .builder-classfield__edit {
195
- height: 20px;
196
- padding: 0 4px;
197
- border: 0;
198
- background: none;
199
- color: var(--theme-text);
200
- font-family: var(--font-mono, ui-monospace, monospace);
201
- font-size: var(--be-text-s);
202
- outline: 0;
203
-
204
- &::placeholder {
205
- color: var(--bs-dim);
206
- font-family: var(--font-body, inherit);
207
- }
208
- }
209
-
210
- .builder-classfield__input {
211
- flex: 1 0 56px;
212
- min-width: 56px;
213
- }
214
-
215
- // A quiet chip while it is edited in place.
216
- .builder-classfield__edit {
217
- field-sizing: content;
218
- min-width: 40px;
219
- max-width: 100%;
220
- border-radius: 3px;
221
- box-shadow: inset 0 0 0 1px var(--bs-accent);
222
- }
223
-
224
- // While a class is edited: the classes in it that no control shows.
225
- .builder-classes__extras {
226
- display: flex;
227
- flex-direction: column;
228
- gap: 4px;
229
- margin-top: 14px;
230
- }
231
-
232
- // -------------------------------------------------------------------------
233
- // The class being edited
234
- // -------------------------------------------------------------------------
235
-
236
- .builder-classes__banner {
237
- display: flex;
238
- flex-direction: column;
239
- gap: 3px;
240
- padding: 8px 10px;
241
- border: 1px solid color-mix(in srgb, var(--bs-accent) 45%, var(--bs-border));
242
- border-radius: var(--style-radius-m, 6px);
243
- background: color-mix(in srgb, var(--bs-accent) 7%, var(--theme-elevation-0));
244
- }
245
-
246
- .builder-classes__banner-head {
247
- display: flex;
248
- align-items: center;
249
- justify-content: space-between;
250
- gap: 6px;
251
- }
252
-
253
- .builder-classes__title {
254
- margin: 0;
255
- font-weight: var(--be-weight-strong);
256
-
257
- code {
258
- color: var(--bs-accent-text);
259
- font-size: var(--be-text-m);
260
- }
261
- }
262
-
263
- .builder-classes__close {
264
- display: grid;
265
- flex: none;
266
- place-items: center;
267
- width: 20px;
268
- height: 20px;
269
- margin: -2px -4px -2px 0;
270
- padding: 0;
271
- border: 0;
272
- border-radius: var(--style-radius-s, 4px);
273
- background: none;
274
- color: var(--bs-muted);
275
- cursor: pointer;
276
-
277
- svg {
278
- width: 14px;
279
- height: 14px;
280
- }
281
-
282
- &:hover {
283
- background: color-mix(in srgb, var(--bs-accent) 12%, transparent);
284
- color: var(--theme-text);
285
- }
286
-
287
- &:focus-visible {
288
- outline: 2px solid var(--bs-accent);
289
- outline-offset: 1px;
290
- }
291
- }
292
-
293
- .builder-classes__text {
294
- margin: 0;
295
- color: var(--theme-elevation-750, var(--theme-text));
296
- }
297
-
298
- .builder-classes__foot {
299
- display: flex;
300
- align-items: center;
301
- gap: 6px;
302
- margin-top: 4px;
303
-
304
- .builder-styles__button--primary:disabled {
305
- opacity: 0.45;
306
- cursor: default;
307
- }
308
- }
309
-
310
- .builder-classes__state {
311
- flex: 1;
312
- min-width: 0;
313
- color: var(--bs-muted);
314
- font-size: var(--be-text-s);
315
- line-height: 1.35;
316
-
317
- &[data-state='error'] {
318
- color: var(--theme-error-500);
319
- }
320
- }
321
-
322
- .builder-classes__css {
323
- display: flex;
324
- flex-direction: column;
325
- gap: 4px;
326
- margin-top: 14px;
327
-
328
- .builder-styles__hint {
329
- margin: 0;
330
- font-size: var(--be-text-s);
331
- }
332
- }
333
-
334
- .builder-styles__raw-input.builder-classes__css-input {
335
- height: auto;
336
- min-height: 104px;
337
- padding: 6px 8px;
338
- font-family: var(--font-mono, ui-monospace, monospace);
339
- font-size: var(--be-text-s);
340
- line-height: 1.5;
341
- white-space: pre;
342
- tab-size: 2;
343
- resize: vertical;
344
-
345
- &[aria-invalid='true'] {
346
- border-color: var(--theme-error-500);
347
- }
348
- }
349
-
350
- // -------------------------------------------------------------------------
351
- // Dialogs (Payload's modal: outside the editor root, so no editor variables)
352
- // -------------------------------------------------------------------------
353
-
354
- .builder-classes__dialog-fields {
355
- display: flex;
356
- flex-direction: column;
357
- gap: 16px;
358
- width: 100%;
359
- min-width: min(420px, 80vw);
360
- }
361
-
362
- .builder-classes__dialog-intro {
363
- margin: 0;
364
- color: var(--theme-elevation-600);
365
- }
366
-
367
- .builder-classes__dialog-styles {
368
- display: block;
369
- padding: 6px 8px;
370
- border-radius: var(--style-radius-s, 4px);
371
- background: var(--theme-elevation-50);
372
- font-family: var(--font-mono, ui-monospace, monospace);
373
- font-size: 12px;
374
- overflow-wrap: anywhere;
375
- }
376
-
377
- .builder-classes__dialog-error {
378
- margin: -8px 0 0;
379
- color: var(--theme-error-500);
380
- }
381
- }
1
+ // The classes field of the Styles panel, the class banner, the custom CSS box and the class
2
+ // dialogs. Payload CSS variables only, no Tailwind (it would leak into the admin).
3
+
4
+ @layer payload-default {
5
+ .builder-classes {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 6px;
9
+ margin: 0 0 10px;
10
+
11
+ .builder-styles__raw-input {
12
+ min-height: 52px;
13
+ }
14
+ }
15
+
16
+ .builder-classes__head {
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: space-between;
20
+ min-height: 20px;
21
+ }
22
+
23
+ .builder-classes__menu {
24
+ display: grid;
25
+ place-items: center;
26
+ width: 22px;
27
+ height: 20px;
28
+ margin-right: -3px;
29
+ padding: 0;
30
+ border: 0;
31
+ border-radius: var(--style-radius-s, 4px);
32
+ background: none;
33
+ color: var(--bs-muted);
34
+ cursor: pointer;
35
+
36
+ &:hover,
37
+ &[data-popup-open] {
38
+ background: var(--theme-elevation-100);
39
+ color: var(--theme-text);
40
+ }
41
+
42
+ &:focus-visible {
43
+ outline: 2px solid var(--bs-accent);
44
+ outline-offset: 1px;
45
+ }
46
+ }
47
+
48
+ // -------------------------------------------------------------------------
49
+ // The classes field: chips and an input in one box that looks like an input
50
+ // -------------------------------------------------------------------------
51
+
52
+ .builder-classfield {
53
+ display: flex;
54
+ flex-wrap: wrap;
55
+ align-items: center;
56
+ gap: 4px;
57
+ min-height: var(--bs-h);
58
+ padding: 2px;
59
+ border: 1px solid var(--bs-border);
60
+ border-radius: var(--style-radius-s, 4px);
61
+ background: var(--theme-input-bg, var(--theme-elevation-0));
62
+
63
+ &:hover {
64
+ border-color: var(--theme-elevation-250);
65
+ }
66
+
67
+ &:focus-within {
68
+ border-color: var(--bs-accent);
69
+ box-shadow: 0 0 0 1px var(--bs-accent);
70
+ }
71
+ }
72
+
73
+ .builder-classfield__chip {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ min-width: 0;
77
+ max-width: 100%;
78
+ height: 20px;
79
+ border-radius: 3px;
80
+ font-size: var(--be-text-s);
81
+ line-height: 1;
82
+ }
83
+
84
+ .builder-classfield__chip-main {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ gap: 5px;
88
+ min-width: 0;
89
+ height: 100%;
90
+ padding: 0 2px 0 6px;
91
+ border: 0;
92
+ border-radius: inherit;
93
+ background: none;
94
+ color: inherit;
95
+ font: inherit;
96
+ cursor: pointer;
97
+
98
+ &:focus-visible {
99
+ outline: 2px solid var(--bs-accent);
100
+ outline-offset: 0;
101
+ }
102
+ }
103
+
104
+ .builder-classfield__chip-name {
105
+ overflow: hidden;
106
+ text-overflow: ellipsis;
107
+ white-space: nowrap;
108
+ }
109
+
110
+ .builder-classfield__chip-code {
111
+ color: var(--bs-muted);
112
+ font-family: var(--font-mono, ui-monospace, monospace);
113
+ }
114
+
115
+ .builder-classfield__remove {
116
+ display: grid;
117
+ flex: none;
118
+ place-items: center;
119
+ width: 18px;
120
+ height: 100%;
121
+ padding: 0;
122
+ border: 0;
123
+ border-radius: 0 3px 3px 0;
124
+ background: none;
125
+ color: inherit;
126
+ opacity: 0.55;
127
+ cursor: pointer;
128
+
129
+ svg {
130
+ width: 12px;
131
+ height: 12px;
132
+ }
133
+
134
+ &:hover,
135
+ &:focus-visible {
136
+ opacity: 1;
137
+ }
138
+
139
+ &:focus-visible {
140
+ outline: 2px solid var(--bs-accent);
141
+ outline-offset: -2px;
142
+ }
143
+ }
144
+
145
+ // An editable class: a solid chip in the text font. Chosen (the controls edit it): the accent.
146
+ .builder-classfield__chip--class {
147
+ background: var(--theme-elevation-150);
148
+ color: var(--theme-text);
149
+ font-weight: var(--be-weight-strong);
150
+
151
+ &:hover {
152
+ background: var(--theme-elevation-200);
153
+ }
154
+
155
+ &[data-selected] {
156
+ background: var(--bs-accent);
157
+ color: var(--theme-elevation-0);
158
+ }
159
+ }
160
+
161
+ .builder-classfield__draft-dot {
162
+ flex: none;
163
+ width: 6px;
164
+ height: 6px;
165
+ border-radius: 50%;
166
+ background: var(--theme-warning-500, #d97706);
167
+ box-shadow: 0 0 0 1.5px var(--theme-elevation-0);
168
+ }
169
+
170
+ // A class no control shows: quiet, in monospace, as the code writes it.
171
+ .builder-classfield__chip--raw {
172
+ box-shadow: inset 0 0 0 1px var(--bs-border);
173
+ color: var(--theme-elevation-700, var(--bs-muted));
174
+ font-family: var(--font-mono, ui-monospace, monospace);
175
+
176
+ &:hover {
177
+ background: var(--theme-elevation-50);
178
+ color: var(--theme-text);
179
+ }
180
+
181
+ // Not in the theme's class list: probably a typo.
182
+ &[data-unknown] {
183
+ background: color-mix(in srgb, var(--theme-warning-500, #b7791f) 10%, transparent);
184
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-warning-500, #b7791f) 60%, transparent);
185
+
186
+ .builder-classfield__chip-name {
187
+ text-decoration: wavy underline var(--theme-warning-500, #b7791f);
188
+ text-underline-offset: 3px;
189
+ }
190
+ }
191
+ }
192
+
193
+ .builder-classfield__input,
194
+ .builder-classfield__edit {
195
+ height: 20px;
196
+ padding: 0 4px;
197
+ border: 0;
198
+ background: none;
199
+ color: var(--theme-text);
200
+ font-family: var(--font-mono, ui-monospace, monospace);
201
+ font-size: var(--be-text-s);
202
+ outline: 0;
203
+
204
+ &::placeholder {
205
+ color: var(--bs-dim);
206
+ font-family: var(--font-body, inherit);
207
+ }
208
+ }
209
+
210
+ .builder-classfield__input {
211
+ flex: 1 0 56px;
212
+ min-width: 56px;
213
+ }
214
+
215
+ // A quiet chip while it is edited in place.
216
+ .builder-classfield__edit {
217
+ field-sizing: content;
218
+ min-width: 40px;
219
+ max-width: 100%;
220
+ border-radius: 3px;
221
+ box-shadow: inset 0 0 0 1px var(--bs-accent);
222
+ }
223
+
224
+ // While a class is edited: the classes in it that no control shows.
225
+ .builder-classes__extras {
226
+ display: flex;
227
+ flex-direction: column;
228
+ gap: 4px;
229
+ margin-top: 14px;
230
+ }
231
+
232
+ // -------------------------------------------------------------------------
233
+ // The class being edited
234
+ // -------------------------------------------------------------------------
235
+
236
+ .builder-classes__banner {
237
+ display: flex;
238
+ flex-direction: column;
239
+ gap: 3px;
240
+ padding: 8px 10px;
241
+ border: 1px solid color-mix(in srgb, var(--bs-accent) 45%, var(--bs-border));
242
+ border-radius: var(--style-radius-m, 6px);
243
+ background: color-mix(in srgb, var(--bs-accent) 7%, var(--theme-elevation-0));
244
+ }
245
+
246
+ .builder-classes__banner-head {
247
+ display: flex;
248
+ align-items: center;
249
+ justify-content: space-between;
250
+ gap: 6px;
251
+ }
252
+
253
+ .builder-classes__title {
254
+ margin: 0;
255
+ font-weight: var(--be-weight-strong);
256
+
257
+ code {
258
+ color: var(--bs-accent-text);
259
+ font-size: var(--be-text-m);
260
+ }
261
+ }
262
+
263
+ .builder-classes__close {
264
+ display: grid;
265
+ flex: none;
266
+ place-items: center;
267
+ width: 20px;
268
+ height: 20px;
269
+ margin: -2px -4px -2px 0;
270
+ padding: 0;
271
+ border: 0;
272
+ border-radius: var(--style-radius-s, 4px);
273
+ background: none;
274
+ color: var(--bs-muted);
275
+ cursor: pointer;
276
+
277
+ svg {
278
+ width: 14px;
279
+ height: 14px;
280
+ }
281
+
282
+ &:hover {
283
+ background: color-mix(in srgb, var(--bs-accent) 12%, transparent);
284
+ color: var(--theme-text);
285
+ }
286
+
287
+ &:focus-visible {
288
+ outline: 2px solid var(--bs-accent);
289
+ outline-offset: 1px;
290
+ }
291
+ }
292
+
293
+ .builder-classes__text {
294
+ margin: 0;
295
+ color: var(--theme-elevation-750, var(--theme-text));
296
+ }
297
+
298
+ .builder-classes__foot {
299
+ display: flex;
300
+ align-items: center;
301
+ gap: 6px;
302
+ margin-top: 4px;
303
+
304
+ .builder-styles__button--primary:disabled {
305
+ opacity: 0.45;
306
+ cursor: default;
307
+ }
308
+ }
309
+
310
+ .builder-classes__state {
311
+ flex: 1;
312
+ min-width: 0;
313
+ color: var(--bs-muted);
314
+ font-size: var(--be-text-s);
315
+ line-height: 1.35;
316
+
317
+ &[data-state='error'] {
318
+ color: var(--theme-error-500);
319
+ }
320
+ }
321
+
322
+ .builder-classes__css {
323
+ display: flex;
324
+ flex-direction: column;
325
+ gap: 4px;
326
+ margin-top: 14px;
327
+
328
+ .builder-styles__hint {
329
+ margin: 0;
330
+ font-size: var(--be-text-s);
331
+ }
332
+ }
333
+
334
+ .builder-styles__raw-input.builder-classes__css-input {
335
+ height: auto;
336
+ min-height: 104px;
337
+ padding: 6px 8px;
338
+ font-family: var(--font-mono, ui-monospace, monospace);
339
+ font-size: var(--be-text-s);
340
+ line-height: 1.5;
341
+ white-space: pre;
342
+ tab-size: 2;
343
+ resize: vertical;
344
+
345
+ &[aria-invalid='true'] {
346
+ border-color: var(--theme-error-500);
347
+ }
348
+ }
349
+
350
+ // -------------------------------------------------------------------------
351
+ // Dialogs (Payload's modal: outside the editor root, so no editor variables)
352
+ // -------------------------------------------------------------------------
353
+
354
+ .builder-classes__dialog-fields {
355
+ display: flex;
356
+ flex-direction: column;
357
+ gap: 16px;
358
+ width: 100%;
359
+ min-width: min(420px, 80vw);
360
+ }
361
+
362
+ .builder-classes__dialog-intro {
363
+ margin: 0;
364
+ color: var(--theme-elevation-600);
365
+ }
366
+
367
+ .builder-classes__dialog-styles {
368
+ display: block;
369
+ padding: 6px 8px;
370
+ border-radius: var(--style-radius-s, 4px);
371
+ background: var(--theme-elevation-50);
372
+ font-family: var(--font-mono, ui-monospace, monospace);
373
+ font-size: 12px;
374
+ overflow-wrap: anywhere;
375
+ }
376
+
377
+ .builder-classes__dialog-error {
378
+ margin: -8px 0 0;
379
+ color: var(--theme-error-500);
380
+ }
381
+ }