pika-plugin-ai 0.6.8

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.
package/dist/index.css ADDED
@@ -0,0 +1,953 @@
1
+ /* styles.css */
2
+ :root {
3
+ --puck-color-azure-01: #00175d;
4
+ --puck-color-azure-02: #002c77;
5
+ --puck-color-azure-03: #014292;
6
+ --puck-color-azure-04: #0158ad;
7
+ --puck-color-azure-05: #3479be;
8
+ --puck-color-azure-06: #6499cf;
9
+ --puck-color-azure-08: #abc7e5;
10
+ --puck-color-azure-10: #e7eef7;
11
+ --puck-color-azure-11: #f3f6fb;
12
+ --puck-color-azure-12: #f7faff;
13
+ --puck-color-green-04: #0c680c;
14
+ --puck-color-green-06: #2faa53;
15
+ --puck-color-grey-01: #181818;
16
+ --puck-color-grey-02: #292929;
17
+ --puck-color-grey-03: #404040;
18
+ --puck-color-grey-04: #5a5a5a;
19
+ --puck-color-grey-05: #767676;
20
+ --puck-color-grey-06: #949494;
21
+ --puck-color-grey-07: #ababab;
22
+ --puck-color-grey-08: #c3c3c3;
23
+ --puck-color-grey-09: #dcdcdc;
24
+ --puck-color-grey-10: #efefef;
25
+ --puck-color-grey-11: #f5f5f5;
26
+ --puck-color-grey-12: #fafafa;
27
+ --puck-color-red-02: #6a0a10;
28
+ --puck-color-red-03: #8a1422;
29
+ --puck-color-red-04: #ac1f35;
30
+ --puck-color-red-05: #bf5366;
31
+ --puck-color-black: #000000;
32
+ --puck-color-white: #ffffff;
33
+ --puck-font-size-xxxs: 0.75rem;
34
+ --puck-font-size-xxs: 0.875rem;
35
+ --puck-font-size-xs: 1rem;
36
+ --puck-font-size-s: 1.125rem;
37
+ --puck-font-size-m: 1.3125rem;
38
+ --puck-font-size-base: var(--puck-font-size-xs);
39
+ --line-height-s: 1.333;
40
+ --line-height-m: 1.5;
41
+ }
42
+ @keyframes puck-ai-loader-spin {
43
+ 0% {
44
+ transform: rotate(0deg) scale(1);
45
+ }
46
+ 50% {
47
+ transform: rotate(180deg) scale(0.8);
48
+ }
49
+ 100% {
50
+ transform: rotate(360deg) scale(1);
51
+ }
52
+ }
53
+ .puck-ai-loader {
54
+ background: transparent;
55
+ border-radius: 100%;
56
+ border: 2px solid currentColor;
57
+ border-bottom-color: transparent;
58
+ display: inline-block;
59
+ animation: puck-ai-loader-spin 1s 0s infinite linear;
60
+ animation-fill-mode: both;
61
+ }
62
+ .puck-ai-icon-button {
63
+ appearance: none;
64
+ background: transparent;
65
+ border: none;
66
+ border-radius: 4px;
67
+ color: var(--puck-color-grey-08);
68
+ padding: 8px;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ cursor: pointer;
73
+ }
74
+ .puck-ai-icon-button:hover {
75
+ background-color: var(--puck-color-azure-11);
76
+ color: var(--puck-color-azure-04);
77
+ }
78
+ .puck-ai-chat {
79
+ background: white;
80
+ height: 100%;
81
+ display: flex;
82
+ flex-direction: column;
83
+ text-align: left;
84
+ }
85
+ .puck-ai-chat-header {
86
+ align-items: center;
87
+ display: flex;
88
+ gap: 4px;
89
+ padding: 4px 8px 4px 16px;
90
+ font-weight: 600;
91
+ border-bottom: 1px solid var(--puck-color-grey-09);
92
+ flex-shrink: 0;
93
+ }
94
+ .puck-ai-chat-header-title {
95
+ flex: 1;
96
+ }
97
+ @media (min-width: 638px) {
98
+ .puck-ai-chat-header {
99
+ padding: 12px 8px 12px 16px;
100
+ }
101
+ }
102
+ .puck-ai-chat-placeholder {
103
+ align-items: center;
104
+ box-sizing: border-box;
105
+ color: var(--puck-color-grey-06);
106
+ display: none;
107
+ justify-content: center;
108
+ flex-direction: column;
109
+ height: 100%;
110
+ text-align: center;
111
+ padding: 32px;
112
+ gap: 8px;
113
+ }
114
+ @media (min-width: 638px) {
115
+ .puck-ai-chat-placeholder {
116
+ display: flex;
117
+ }
118
+ }
119
+ .puck-ai-chat-actions {
120
+ display: flex;
121
+ gap: 8px;
122
+ justify-content: center;
123
+ flex-wrap: wrap;
124
+ margin-top: 4px;
125
+ }
126
+ .puck-ai-chat-action,
127
+ .puck-ai-chat-action-outlined {
128
+ border: 1px solid var(--puck-color-azure-04);
129
+ border-radius: 16px;
130
+ padding: 4px 12px;
131
+ font-size: 12px;
132
+ cursor: pointer;
133
+ }
134
+ .puck-ai-chat-action {
135
+ background: var(--puck-color-azure-04);
136
+ color: white;
137
+ }
138
+ .puck-ai-chat-action:hover {
139
+ opacity: 0.8;
140
+ }
141
+ .puck-ai-chat-action-outlined {
142
+ background: transparent;
143
+ color: var(--puck-color-azure-04);
144
+ }
145
+ .puck-ai-chat-action-outlined:hover {
146
+ background: var(--puck-color-azure-11);
147
+ }
148
+ .puck-ai-chatbody {
149
+ --chat-background-color: white;
150
+ display: flex;
151
+ flex-direction: column;
152
+ height: 100%;
153
+ min-height: 0;
154
+ }
155
+ .puck-ai-chatbody-inner {
156
+ background-color: var(--chat-background-color);
157
+ display: flex;
158
+ flex-direction: column;
159
+ position: relative;
160
+ flex: 1;
161
+ min-height: 0;
162
+ }
163
+ .puck-ai-chatbody--has-messages .puck-ai-chatbody-messages {
164
+ display: flex;
165
+ flex-direction: column-reverse;
166
+ padding: 16px;
167
+ overflow: auto;
168
+ flex: 1;
169
+ min-height: 0;
170
+ }
171
+ .puck-ai-chatbody-messages {
172
+ flex: 1;
173
+ min-height: 0;
174
+ overflow: auto;
175
+ }
176
+ .puck-ai-chatbody-form {
177
+ background-color: white;
178
+ padding: 16px;
179
+ flex-shrink: 0;
180
+ }
181
+ .puck-ai-chatbody--hide-input .puck-ai-chatbody-form {
182
+ display: none;
183
+ }
184
+ .puck-ai-chatbody--has-messages .puck-ai-chatbody-form {
185
+ border-top: 1px solid var(--puck-color-grey-09);
186
+ }
187
+ @media (min-width: 638px) {
188
+ .puck-ai-chatbody-form {
189
+ border-top: 1px solid var(--puck-color-grey-09);
190
+ }
191
+ }
192
+ .puck-ai-chatbody-example-prompts {
193
+ align-items: center;
194
+ display: flex;
195
+ flex-wrap: nowrap;
196
+ gap: 6px;
197
+ padding-top: 16px;
198
+ width: 100%;
199
+ overflow-x: auto;
200
+ }
201
+ .puck-ai-chatbody-example-prompt {
202
+ align-items: center;
203
+ background: white;
204
+ border: 1px solid var(--puck-color-grey-09);
205
+ border-radius: 48px;
206
+ cursor: pointer;
207
+ display: flex;
208
+ gap: 4px;
209
+ font-size: var(--puck-font-size-xxxs);
210
+ justify-content: center;
211
+ padding: 6px 12px;
212
+ text-wrap: nowrap;
213
+ text-decoration: none;
214
+ color: inherit;
215
+ }
216
+ .puck-ai-chatbody-example-prompt:hover {
217
+ background: var(--puck-color-azure-11);
218
+ border-color: var(--puck-color-azure-08);
219
+ color: var(--puck-color-azure-04);
220
+ }
221
+ .puck-ai-chatbody-example-prompt-arrow {
222
+ display: flex;
223
+ margin-left: auto;
224
+ }
225
+ .puck-ai-chatbody-default {
226
+ overflow-y: auto;
227
+ flex-grow: 1;
228
+ min-height: 0;
229
+ }
230
+ .puck-ai-chatbody--has-messages .puck-ai-chatbody-default {
231
+ display: none;
232
+ }
233
+ .puck-ai-chatbody-loader {
234
+ padding: 16px;
235
+ padding-top: 0;
236
+ }
237
+ .puck-ai-chatbody-error {
238
+ align-items: center;
239
+ display: flex;
240
+ gap: 8px;
241
+ font-size: var(--puck-font-size-xxs);
242
+ margin: 16px;
243
+ }
244
+ .puck-ai-chatbody-error-label {
245
+ color: var(--puck-color-red-04);
246
+ }
247
+ .puck-ai-chatbody-error-action {
248
+ margin-left: auto;
249
+ }
250
+ .puck-ai-chat-message {
251
+ font-size: var(--puck-font-size-xs);
252
+ line-height: var(--line-height-s);
253
+ overflow-wrap: break-word;
254
+ }
255
+ .puck-ai-chat-message--user-role .puck-ai-chat-message-text {
256
+ background: var(--puck-color-azure-10);
257
+ border-radius: 16px;
258
+ color: var(--puck-color-grey-03);
259
+ margin-left: 24px;
260
+ margin-bottom: 8px;
261
+ margin-top: 8px;
262
+ padding: 12px 16px;
263
+ }
264
+ .puck-ai-chat-message ul,
265
+ .puck-ai-chat-message ol {
266
+ list-style: decimal;
267
+ margin: 0;
268
+ margin-bottom: 12px;
269
+ margin-top: 12px;
270
+ padding-left: 32px;
271
+ }
272
+ .puck-ai-chat-message li {
273
+ margin-bottom: 8px;
274
+ margin-top: 8px;
275
+ padding-left: 8px;
276
+ }
277
+ .puck-ai-chat-message h1,
278
+ .puck-ai-chat-message h2,
279
+ .puck-ai-chat-message h3,
280
+ .puck-ai-chat-message h4,
281
+ .puck-ai-chat-message h5,
282
+ .puck-ai-chat-message h6 {
283
+ font-weight: 600;
284
+ }
285
+ .puck-ai-chat-message p {
286
+ margin-bottom: 8px;
287
+ margin-top: 8px;
288
+ }
289
+ .puck-ai-chat-message--user-role .puck-ai-chat-message-text > *:first-of-type {
290
+ margin-top: 0;
291
+ }
292
+ .puck-ai-chat-message--user-role .puck-ai-chat-message-text > *:last-of-type {
293
+ margin-bottom: 0;
294
+ }
295
+ .puck-ai-chat-message a {
296
+ color: var(--puck-color-azure-04);
297
+ font-weight: 600;
298
+ text-decoration: none;
299
+ }
300
+ .puck-ai-chat-message a:hover {
301
+ color: var(--puck-color-azure-05);
302
+ }
303
+ .puck-ai-chat-message hr {
304
+ border-top: none;
305
+ border-bottom-color: var(--puck-color-grey-09);
306
+ margin-bottom: 16px;
307
+ margin-top: 16px;
308
+ }
309
+ .puck-ai-chat-message blockquote {
310
+ margin-bottom: 8px;
311
+ margin-top: 8px;
312
+ margin-left: 0;
313
+ border-left: 2px solid var(--puck-color-grey-09);
314
+ padding-left: 16px;
315
+ }
316
+ .puck-ai-chat-message-data {
317
+ background: var(--puck-color-grey-12);
318
+ border: 1px solid var(--puck-color-grey-08);
319
+ border-radius: 16px;
320
+ color: var(--puck-color-grey-05);
321
+ margin-right: 24px;
322
+ padding: 8px 12px;
323
+ margin-top: 4px;
324
+ margin-bottom: 4px;
325
+ }
326
+ .puck-ai-chat-message-data-inner {
327
+ align-items: center;
328
+ display: flex;
329
+ gap: 8px;
330
+ }
331
+ .puck-ai-chat-message-data-icon {
332
+ display: flex;
333
+ }
334
+ .puck-ai-chat-message-file {
335
+ margin-bottom: 8px;
336
+ margin-top: 8px;
337
+ }
338
+ .puck-ai-chat-message-file--user {
339
+ margin-left: 24px;
340
+ }
341
+ .puck-ai-chat-message-file-image {
342
+ border-radius: 12px;
343
+ display: block;
344
+ max-height: 220px;
345
+ max-width: 100%;
346
+ object-fit: contain;
347
+ }
348
+ .puck-ai-chat-message-file--user .puck-ai-chat-message-file-image {
349
+ background: var(--puck-color-azure-10);
350
+ border: 1px solid var(--puck-color-azure-08);
351
+ }
352
+ .puck-ai-chat-message-file-caption {
353
+ color: var(--puck-color-grey-05);
354
+ display: block;
355
+ font-size: var(--puck-font-size-xxxs);
356
+ margin-top: 4px;
357
+ }
358
+ .puck-ai-chat-message-file--document {
359
+ background: var(--puck-color-azure-10);
360
+ border-radius: 12px;
361
+ padding: 8px 12px;
362
+ }
363
+ .puck-ai-chat-message-file--document a {
364
+ word-break: break-all;
365
+ }
366
+ .puck-ai-chat-message-reasoning {
367
+ background: var(--puck-color-grey-11);
368
+ border: 1px solid var(--puck-color-grey-09);
369
+ border-radius: 10px;
370
+ color: var(--puck-color-grey-04);
371
+ font-size: var(--puck-font-size-xxxs);
372
+ margin-bottom: 8px;
373
+ margin-top: 8px;
374
+ padding: 6px 10px;
375
+ }
376
+ .puck-ai-chat-message-reasoning-summary {
377
+ cursor: pointer;
378
+ font-weight: 600;
379
+ list-style: none;
380
+ display: flex;
381
+ align-items: center;
382
+ gap: 8px;
383
+ }
384
+ .puck-ai-chat-message-reasoning-summary::-webkit-details-marker {
385
+ display: none;
386
+ }
387
+ .puck-ai-chat-message-reasoning-streaming {
388
+ display: inline-flex;
389
+ align-items: center;
390
+ }
391
+ .puck-ai-chat-message-reasoning-body {
392
+ border-top: 1px solid var(--puck-color-grey-09);
393
+ margin-top: 8px;
394
+ padding-top: 8px;
395
+ }
396
+ .puck-ai-chat-message-reasoning-body p {
397
+ margin: 0 0 6px;
398
+ }
399
+ .puck-ai-chat-message-source {
400
+ color: var(--puck-color-grey-05);
401
+ font-size: var(--puck-font-size-xxxs);
402
+ margin-bottom: 6px;
403
+ margin-top: 6px;
404
+ }
405
+ .puck-ai-chat-message-source-meta {
406
+ color: var(--puck-color-grey-07);
407
+ margin-left: 6px;
408
+ }
409
+ .puck-ai-chat-message-step {
410
+ border-top: 1px dashed var(--puck-color-grey-09);
411
+ margin: 8px 0;
412
+ opacity: 0.6;
413
+ }
414
+ .puck-ai-chat-message-tool {
415
+ background: var(--puck-color-grey-12);
416
+ border: 1px solid var(--puck-color-grey-09);
417
+ border-radius: 12px;
418
+ margin-bottom: 8px;
419
+ margin-top: 8px;
420
+ margin-right: 24px;
421
+ padding: 8px 12px;
422
+ }
423
+ .puck-ai-chat-message-tool-header {
424
+ align-items: center;
425
+ display: flex;
426
+ flex-wrap: wrap;
427
+ gap: 8px;
428
+ }
429
+ .puck-ai-chat-message-tool-icon {
430
+ color: var(--puck-color-grey-06);
431
+ display: flex;
432
+ }
433
+ .puck-ai-chat-message-tool-name {
434
+ font-weight: 600;
435
+ color: var(--puck-color-grey-03);
436
+ }
437
+ .puck-ai-chat-message-tool-state {
438
+ align-items: center;
439
+ color: var(--puck-color-grey-05);
440
+ display: inline-flex;
441
+ font-size: var(--puck-font-size-xxxs);
442
+ gap: 6px;
443
+ margin-left: auto;
444
+ }
445
+ .puck-ai-chat-message-tool-error {
446
+ color: var(--puck-color-red-04);
447
+ font-size: var(--puck-font-size-xxxs);
448
+ margin-top: 6px;
449
+ }
450
+ .puck-ai-chat-message-tool-details {
451
+ margin-top: 8px;
452
+ }
453
+ .puck-ai-chat-message-tool-details summary {
454
+ color: var(--puck-color-azure-04);
455
+ cursor: pointer;
456
+ font-size: var(--puck-font-size-xxxs);
457
+ font-weight: 600;
458
+ list-style: none;
459
+ }
460
+ .puck-ai-chat-message-tool-details summary::-webkit-details-marker {
461
+ display: none;
462
+ }
463
+ .puck-ai-chat-message-tool-pre {
464
+ background: var(--puck-color-grey-11);
465
+ border-radius: 6px;
466
+ font-size: 11px;
467
+ line-height: 1.45;
468
+ margin-top: 6px;
469
+ max-height: 200px;
470
+ overflow: auto;
471
+ padding: 8px;
472
+ white-space: pre-wrap;
473
+ word-break: break-word;
474
+ }
475
+ .puck-ai-chat-message-data-summary {
476
+ color: var(--puck-color-grey-05);
477
+ font-size: var(--puck-font-size-xxxs);
478
+ margin-bottom: 6px;
479
+ margin-top: 6px;
480
+ }
481
+ .puck-ai-chat-message-data-raw {
482
+ margin-bottom: 6px;
483
+ margin-top: 6px;
484
+ }
485
+ .puck-ai-chat-message-data-raw summary {
486
+ color: var(--puck-color-grey-05);
487
+ cursor: pointer;
488
+ font-size: var(--puck-font-size-xxxs);
489
+ list-style: none;
490
+ }
491
+ .puck-ai-chat-message-data-raw summary::-webkit-details-marker {
492
+ display: none;
493
+ }
494
+ .puck-ai-target-banner {
495
+ align-items: center;
496
+ background: var(--puck-color-azure-11);
497
+ border: 1px solid var(--puck-color-azure-09);
498
+ border-radius: 6px;
499
+ display: flex;
500
+ flex-wrap: wrap;
501
+ gap: 6px;
502
+ margin-bottom: 8px;
503
+ padding: 6px 10px;
504
+ font-size: var(--puck-font-size-xxxs);
505
+ line-height: 1.4;
506
+ }
507
+ .puck-ai-target-banner-label {
508
+ color: var(--puck-color-azure-05);
509
+ font-weight: 600;
510
+ flex-shrink: 0;
511
+ }
512
+ .puck-ai-target-banner-name {
513
+ color: var(--puck-color-grey-02);
514
+ font-weight: 600;
515
+ }
516
+ .puck-ai-target-banner-id {
517
+ color: var(--puck-color-grey-05);
518
+ font-family: var(--puck-font-family-monospaced, monospace);
519
+ font-size: 11px;
520
+ background: var(--puck-color-azure-10);
521
+ border-radius: 3px;
522
+ padding: 1px 4px;
523
+ max-width: 140px;
524
+ overflow: hidden;
525
+ text-overflow: ellipsis;
526
+ white-space: nowrap;
527
+ }
528
+ .puck-ai-target-banner-clear {
529
+ appearance: none;
530
+ background: transparent;
531
+ border: none;
532
+ border-radius: 50%;
533
+ color: var(--puck-color-grey-06);
534
+ cursor: pointer;
535
+ display: flex;
536
+ align-items: center;
537
+ justify-content: center;
538
+ font-size: 16px;
539
+ line-height: 1;
540
+ margin-left: auto;
541
+ padding: 0 2px;
542
+ flex-shrink: 0;
543
+ }
544
+ .puck-ai-target-banner-clear:hover {
545
+ color: var(--puck-color-grey-02);
546
+ }
547
+ .puck-ai-prompt-form {
548
+ --radius: 9px;
549
+ background-color: var(--puck-color-grey-09);
550
+ border-radius: var(--radius);
551
+ width: 100%;
552
+ }
553
+ .puck-ai-prompt-form-inner {
554
+ border-radius: var(--radius);
555
+ padding: 1px;
556
+ position: relative;
557
+ }
558
+ .puck-ai-prompt-form--dark {
559
+ background-color: var(--puck-color-grey-02);
560
+ box-shadow: none;
561
+ }
562
+ @keyframes puck-ai-glow-loop {
563
+ 0% {
564
+ transform: translate(-50%, -50%) rotate(0deg);
565
+ }
566
+ 100% {
567
+ transform: translate(-50%, -50%) rotate(360deg);
568
+ }
569
+ }
570
+ .puck-ai-prompt-form--glow .puck-ai-prompt-form-glow {
571
+ border: 2px solid transparent;
572
+ border-radius: var(--radius);
573
+ -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
574
+ mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
575
+ -webkit-mask-clip: padding-box, border-box;
576
+ mask-clip: padding-box, border-box;
577
+ -webkit-mask-composite: intersect;
578
+ mask-composite: intersect;
579
+ pointer-events: none;
580
+ position: absolute;
581
+ inset: -1px;
582
+ z-index: 0;
583
+ overflow: hidden;
584
+ }
585
+ .puck-ai-prompt-form--glow .puck-ai-prompt-form-glow::after {
586
+ background:
587
+ radial-gradient(
588
+ circle at center,
589
+ var(--puck-color-azure-06),
590
+ transparent 50%);
591
+ content: "";
592
+ position: absolute;
593
+ top: 50%;
594
+ left: 50%;
595
+ transform: translate(-50%, -50%);
596
+ aspect-ratio: 1;
597
+ width: 200%;
598
+ animation: puck-ai-glow-loop 3s linear infinite;
599
+ }
600
+ .puck-ai-prompt-form-form-inner {
601
+ background-color: white;
602
+ border-radius: 8px;
603
+ position: relative;
604
+ }
605
+ .puck-ai-prompt-form-input {
606
+ background-color: transparent;
607
+ border: none;
608
+ display: block;
609
+ resize: none;
610
+ color: var(--puck-color-grey-03);
611
+ padding: 12px 16px;
612
+ padding-left: 16px;
613
+ padding-right: 8px;
614
+ padding-bottom: 4px;
615
+ font-family: inherit;
616
+ font-size: var(--puck-font-size-xs);
617
+ line-height: var(--line-height-s);
618
+ width: 100%;
619
+ box-sizing: border-box;
620
+ }
621
+ .puck-ai-prompt-form-input:focus {
622
+ outline: none;
623
+ }
624
+ .puck-ai-prompt-form-form-inner:has(.puck-ai-prompt-form-input:focus) {
625
+ outline: 2px solid var(--puck-color-azure-04);
626
+ }
627
+ .puck-ai-prompt-form--dark .puck-ai-prompt-form-input {
628
+ background-color: var(--puck-color-grey-01);
629
+ color: var(--puck-color-grey-08);
630
+ }
631
+ .puck-ai-prompt-form--is-disabled .puck-ai-prompt-form-input {
632
+ background-color: var(--puck-color-grey-12);
633
+ cursor: not-allowed;
634
+ }
635
+ .puck-ai-prompt-form-actions {
636
+ align-items: flex-end;
637
+ cursor: text;
638
+ display: flex;
639
+ gap: 8px;
640
+ bottom: 0;
641
+ left: 0;
642
+ right: 0;
643
+ padding: 6px;
644
+ }
645
+ .puck-ai-prompt-form-actions-left {
646
+ align-items: center;
647
+ cursor: auto;
648
+ display: flex;
649
+ padding-left: 8px;
650
+ }
651
+ .puck-ai-prompt-form-actions-right {
652
+ cursor: auto;
653
+ margin-left: auto;
654
+ }
655
+ .puck-ai-prompt-form-action-submit {
656
+ background: var(--puck-color-azure-04);
657
+ border-radius: 48px;
658
+ border: 0;
659
+ color: white;
660
+ display: flex;
661
+ align-items: center;
662
+ justify-content: center;
663
+ align-self: flex-end;
664
+ padding: 4px;
665
+ pointer-events: auto;
666
+ cursor: pointer;
667
+ }
668
+ .puck-ai-prompt-form-action-submit:hover {
669
+ background: var(--puck-color-azure-05);
670
+ }
671
+ .puck-ai-prompt-form--is-disabled .puck-ai-prompt-form-action-submit {
672
+ background-color: var(--puck-color-grey-06);
673
+ cursor: not-allowed;
674
+ }
675
+ .puck-ai-prompt-form--is-loading .puck-ai-prompt-form-action-submit {
676
+ background-color: var(--puck-color-azure-06);
677
+ cursor: not-allowed;
678
+ }
679
+ .puck-ai-image-attach-btn {
680
+ align-items: center;
681
+ background: transparent;
682
+ border: 1px solid transparent;
683
+ border-radius: 6px;
684
+ color: var(--puck-color-grey-05);
685
+ cursor: pointer;
686
+ display: flex;
687
+ justify-content: center;
688
+ padding: 5px;
689
+ transition:
690
+ background 80ms,
691
+ color 80ms,
692
+ border-color 80ms;
693
+ }
694
+ .puck-ai-image-attach-btn:hover {
695
+ background: var(--puck-color-grey-11);
696
+ border-color: var(--puck-color-grey-09);
697
+ color: var(--puck-color-grey-02);
698
+ }
699
+ .puck-ai-image-attach-btn:disabled {
700
+ color: var(--puck-color-grey-08);
701
+ cursor: not-allowed;
702
+ }
703
+ .puck-ai-prompt-form--drag-over .puck-ai-prompt-form-form-inner {
704
+ border-color: var(--puck-color-azure-05);
705
+ background: var(--puck-color-azure-12);
706
+ outline: 2px dashed var(--puck-color-azure-05);
707
+ }
708
+ .puck-ai-image-thumbnails {
709
+ display: flex;
710
+ flex-wrap: wrap;
711
+ gap: 6px;
712
+ padding: 8px 10px 0;
713
+ }
714
+ .puck-ai-image-thumbnail {
715
+ position: relative;
716
+ border-radius: 6px;
717
+ overflow: hidden;
718
+ width: 56px;
719
+ height: 56px;
720
+ border: 1px solid var(--puck-color-grey-09);
721
+ flex-shrink: 0;
722
+ }
723
+ .puck-ai-image-thumbnail img {
724
+ width: 100%;
725
+ height: 100%;
726
+ object-fit: cover;
727
+ display: block;
728
+ }
729
+ .puck-ai-image-thumbnail-remove {
730
+ position: absolute;
731
+ top: 2px;
732
+ right: 2px;
733
+ background: rgba(0, 0, 0, 0.55);
734
+ border: none;
735
+ border-radius: 50%;
736
+ color: #fff;
737
+ cursor: pointer;
738
+ display: flex;
739
+ align-items: center;
740
+ justify-content: center;
741
+ width: 16px;
742
+ height: 16px;
743
+ padding: 0;
744
+ opacity: 0;
745
+ transition: opacity 120ms;
746
+ }
747
+ .puck-ai-image-thumbnail:hover .puck-ai-image-thumbnail-remove {
748
+ opacity: 1;
749
+ }
750
+ .puck-ai-toggle {
751
+ cursor: pointer;
752
+ display: inline-flex;
753
+ align-items: center;
754
+ flex-shrink: 0;
755
+ height: 20px;
756
+ position: relative;
757
+ width: 36px;
758
+ }
759
+ .puck-ai-toggle-input {
760
+ height: 0;
761
+ opacity: 0;
762
+ position: absolute;
763
+ width: 0;
764
+ }
765
+ .puck-ai-toggle-slider {
766
+ background: var(--puck-color-grey-08);
767
+ border-radius: 20px;
768
+ inset: 0;
769
+ position: absolute;
770
+ transition: background 120ms;
771
+ }
772
+ .puck-ai-toggle-slider::after {
773
+ background: white;
774
+ border-radius: 50%;
775
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
776
+ content: "";
777
+ height: 16px;
778
+ left: 2px;
779
+ position: absolute;
780
+ top: 2px;
781
+ transition: left 120ms;
782
+ width: 16px;
783
+ }
784
+ .puck-ai-toggle-input:checked + .puck-ai-toggle-slider {
785
+ background: var(--puck-color-azure-04);
786
+ }
787
+ .puck-ai-toggle-input:checked + .puck-ai-toggle-slider::after {
788
+ left: 18px;
789
+ }
790
+ .puck-ai-toggle-input:focus-visible + .puck-ai-toggle-slider {
791
+ outline: 2px solid var(--puck-color-azure-04);
792
+ outline-offset: 2px;
793
+ }
794
+ .puck-ai-toggle--disabled {
795
+ cursor: not-allowed;
796
+ opacity: 0.45;
797
+ }
798
+ .puck-ai-toggle--disabled .puck-ai-toggle-input:disabled + .puck-ai-toggle-slider {
799
+ background: var(--puck-color-grey-08);
800
+ }
801
+ .puck-ai-settings-scroll {
802
+ flex: 1;
803
+ overflow-y: auto;
804
+ min-height: 0;
805
+ }
806
+ .puck-ai-settings {
807
+ display: flex;
808
+ flex-direction: column;
809
+ gap: 24px;
810
+ padding: 16px;
811
+ }
812
+ .puck-ai-settings-section {
813
+ display: flex;
814
+ flex-direction: column;
815
+ }
816
+ .puck-ai-settings-section-title {
817
+ color: var(--puck-color-grey-05);
818
+ font-size: 11px;
819
+ font-weight: 600;
820
+ letter-spacing: 0.06em;
821
+ margin-bottom: 4px;
822
+ text-transform: uppercase;
823
+ }
824
+ .puck-ai-settings-row {
825
+ align-items: center;
826
+ border-bottom: 1px solid var(--puck-color-grey-10);
827
+ display: flex;
828
+ gap: 12px;
829
+ justify-content: space-between;
830
+ padding: 10px 0;
831
+ }
832
+ .puck-ai-settings-row:last-child {
833
+ border-bottom: none;
834
+ }
835
+ .puck-ai-settings-row--column {
836
+ align-items: flex-start;
837
+ flex-direction: column;
838
+ gap: 8px;
839
+ }
840
+ .puck-ai-settings-label {
841
+ color: var(--puck-color-grey-02);
842
+ cursor: pointer;
843
+ display: flex;
844
+ flex-direction: column;
845
+ font-size: var(--puck-font-size-xxxs);
846
+ font-weight: 500;
847
+ gap: 2px;
848
+ }
849
+ .puck-ai-settings-hint {
850
+ color: var(--puck-color-grey-06);
851
+ font-size: 11px;
852
+ font-weight: 400;
853
+ }
854
+ .puck-ai-settings-select {
855
+ appearance: none;
856
+ background-color: var(--puck-color-grey-11);
857
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23767676'/%3E%3C/svg%3E");
858
+ background-position: right 8px center;
859
+ background-repeat: no-repeat;
860
+ border: 1px solid var(--puck-color-grey-09);
861
+ border-radius: 6px;
862
+ color: var(--puck-color-grey-02);
863
+ cursor: pointer;
864
+ flex-shrink: 0;
865
+ font-family: inherit;
866
+ font-size: var(--puck-font-size-xxxs);
867
+ padding: 5px 28px 5px 8px;
868
+ }
869
+ .puck-ai-settings-select:focus {
870
+ outline: 2px solid var(--puck-color-azure-04);
871
+ outline-offset: 2px;
872
+ }
873
+ .puck-ai-settings-input-wrap {
874
+ align-items: center;
875
+ background: var(--puck-color-grey-12);
876
+ border: 1px solid var(--puck-color-grey-09);
877
+ border-radius: 6px;
878
+ display: flex;
879
+ overflow: hidden;
880
+ width: 100%;
881
+ }
882
+ .puck-ai-settings-input-wrap:focus-within {
883
+ outline: 2px solid var(--puck-color-azure-04);
884
+ outline-offset: 0;
885
+ }
886
+ .puck-ai-settings-input {
887
+ background: transparent;
888
+ border: none;
889
+ color: var(--puck-color-grey-02);
890
+ flex: 1;
891
+ font-family: var(--puck-font-family-monospaced, monospace);
892
+ font-size: 11px;
893
+ min-width: 0;
894
+ padding: 7px 8px;
895
+ }
896
+ .puck-ai-settings-input:focus {
897
+ outline: none;
898
+ }
899
+ .puck-ai-settings-input-action {
900
+ align-items: center;
901
+ appearance: none;
902
+ background: transparent;
903
+ border: none;
904
+ border-left: 1px solid var(--puck-color-grey-09);
905
+ color: var(--puck-color-grey-06);
906
+ cursor: pointer;
907
+ display: flex;
908
+ flex-shrink: 0;
909
+ justify-content: center;
910
+ padding: 7px 8px;
911
+ }
912
+ .puck-ai-settings-input-action:hover {
913
+ background: var(--puck-color-grey-11);
914
+ color: var(--puck-color-grey-02);
915
+ }
916
+ .puck-ai-settings-link {
917
+ color: var(--puck-color-azure-04);
918
+ font-size: 11px;
919
+ text-decoration: none;
920
+ }
921
+ .puck-ai-settings-link:hover {
922
+ color: var(--puck-color-azure-05);
923
+ text-decoration: underline;
924
+ }
925
+ .puck-ai-settings-clear-chat {
926
+ align-items: center;
927
+ align-self: flex-start;
928
+ appearance: none;
929
+ background: var(--puck-color-white);
930
+ border: 1px solid var(--puck-color-red-04);
931
+ border-radius: 6px;
932
+ color: var(--puck-color-red-04);
933
+ cursor: pointer;
934
+ display: inline-flex;
935
+ font-family: inherit;
936
+ font-size: var(--puck-font-size-xxxs);
937
+ font-weight: 600;
938
+ gap: 8px;
939
+ margin-top: 4px;
940
+ padding: 8px 12px;
941
+ }
942
+ .puck-ai-settings-clear-chat:hover:not(:disabled) {
943
+ background: var(--puck-color-grey-12);
944
+ }
945
+ .puck-ai-settings-clear-chat:focus-visible {
946
+ outline: 2px solid var(--puck-color-azure-04);
947
+ outline-offset: 2px;
948
+ }
949
+ .puck-ai-settings-clear-chat:disabled {
950
+ cursor: not-allowed;
951
+ opacity: 0.45;
952
+ }
953
+ /*# sourceMappingURL=index.css.map */