@bitbaum/chatkit 0.22.1 → 0.24.0

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/styles.css CHANGED
@@ -2426,3 +2426,235 @@ a.ck-turn-chip:hover {
2426
2426
  animation: none;
2427
2427
  }
2428
2428
  }
2429
+
2430
+ /* ── field and comments: after the ChatApp boundary on purpose ─────────────
2431
+ DictationField and CommentThread. Not a chat surface, so not in the
2432
+ embedded styles/chat.css (the widget's budget is for the chat). The same
2433
+ frame, 16px text, mic and voice bar as the composer, for everything that is
2434
+ not a conversation. */
2435
+ .ck-field-wrap,
2436
+ .ck-comments {
2437
+ font-family: var(--ck-font);
2438
+ color: var(--ck-fg);
2439
+ min-width: 0;
2440
+ }
2441
+ .ck-field-wrap *,
2442
+ .ck-comments * {
2443
+ box-sizing: border-box;
2444
+ }
2445
+ .ck-field-wrap {
2446
+ display: flex;
2447
+ flex-direction: column;
2448
+ gap: 0.375rem;
2449
+ }
2450
+ .ck-field-label {
2451
+ font-size: 0.875rem;
2452
+ font-weight: 600;
2453
+ color: var(--ck-fg-2);
2454
+ }
2455
+ .ck-field-frame {
2456
+ position: relative;
2457
+ min-width: 0;
2458
+ }
2459
+ .ck-field {
2460
+ display: flex;
2461
+ flex-direction: column;
2462
+ min-width: 0;
2463
+ padding: 0.5rem 0.625rem 0.5rem;
2464
+ border: 1px solid var(--ck-line);
2465
+ border-radius: var(--ck-radius-sm);
2466
+ background: var(--ck-bg);
2467
+ transition: border-color 0.15s ease;
2468
+ }
2469
+ .ck-field:focus-within {
2470
+ border-color: var(--ck-line-2);
2471
+ outline: 2px solid var(--ck-accent);
2472
+ outline-offset: 1px;
2473
+ }
2474
+ .ck-field-input {
2475
+ display: block;
2476
+ width: 100%;
2477
+ min-width: 0;
2478
+ min-height: 2.5rem;
2479
+ resize: none;
2480
+ padding: 0.25rem 0.125rem;
2481
+ border: 0;
2482
+ outline: none;
2483
+ background: transparent;
2484
+ color: var(--ck-fg);
2485
+ font: inherit;
2486
+ font-size: max(16px, var(--ck-text));
2487
+ line-height: var(--ck-leading);
2488
+ }
2489
+ .ck-field-input::placeholder {
2490
+ color: var(--ck-muted);
2491
+ }
2492
+ .ck-field-input:disabled {
2493
+ opacity: 0.6;
2494
+ }
2495
+ /* A multiline field: the controls sit under the text, on the right. */
2496
+ .ck-field-actions {
2497
+ display: flex;
2498
+ align-items: center;
2499
+ justify-content: flex-end;
2500
+ gap: 0.375rem;
2501
+ min-height: 0;
2502
+ }
2503
+ .ck-field-actions:empty {
2504
+ display: none;
2505
+ }
2506
+ /* A one-line field: the controls sit beside the text. */
2507
+ .ck-field-single {
2508
+ flex-direction: row;
2509
+ align-items: center;
2510
+ gap: 0.375rem;
2511
+ }
2512
+ .ck-field-single .ck-field-input {
2513
+ flex: 1;
2514
+ }
2515
+ .ck-field-improve,
2516
+ .ck-field-apply,
2517
+ .ck-field-suggestion {
2518
+ min-height: var(--ck-target);
2519
+ padding: 0 0.875rem;
2520
+ border: 1px solid var(--ck-line-2);
2521
+ border-radius: 999px;
2522
+ background: var(--ck-raised);
2523
+ color: var(--ck-fg);
2524
+ font: inherit;
2525
+ font-size: 0.9375rem;
2526
+ font-weight: 600;
2527
+ cursor: pointer;
2528
+ }
2529
+ .ck-field-improve[aria-expanded="true"] {
2530
+ border-color: var(--ck-accent);
2531
+ background: var(--ck-accent-soft);
2532
+ }
2533
+ .ck-field-improve:disabled,
2534
+ .ck-field-apply:disabled,
2535
+ .ck-field-suggestion:disabled {
2536
+ opacity: 0.5;
2537
+ cursor: default;
2538
+ }
2539
+ .ck-field-improve-panel {
2540
+ display: flex;
2541
+ flex-direction: column;
2542
+ gap: 0.5rem;
2543
+ padding: 0.625rem;
2544
+ border: 1px solid var(--ck-line);
2545
+ border-radius: var(--ck-radius-sm);
2546
+ background: var(--ck-overlay);
2547
+ }
2548
+ /* Suggestions are a few choices: an even grid, never wrapping pills. */
2549
+ .ck-field-suggestions {
2550
+ display: grid;
2551
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2552
+ gap: 0.375rem;
2553
+ }
2554
+ .ck-field-suggestion {
2555
+ min-width: 0;
2556
+ text-align: center;
2557
+ line-height: 1.25;
2558
+ padding-block: 0.5rem;
2559
+ }
2560
+ .ck-field-improve-row {
2561
+ display: flex;
2562
+ align-items: flex-start;
2563
+ gap: 0.375rem;
2564
+ }
2565
+ .ck-field-improve-row > .ck-field-wrap {
2566
+ flex: 1;
2567
+ }
2568
+ .ck-field-undo {
2569
+ display: flex;
2570
+ align-items: center;
2571
+ gap: 0.5rem;
2572
+ margin: 0;
2573
+ font-size: 0.9375rem;
2574
+ color: var(--ck-fg-2);
2575
+ }
2576
+ .ck-field-hint {
2577
+ font-size: 0.875rem;
2578
+ color: var(--ck-muted);
2579
+ }
2580
+ :where(.ck-field-wrap, .ck-comments) button:focus-visible,
2581
+ .ck-comment-signin-link:focus-visible {
2582
+ outline: 2px solid var(--ck-accent);
2583
+ outline-offset: 2px;
2584
+ }
2585
+
2586
+ /* ── comments: the conversation under anything ──────────────────────────── */
2587
+ .ck-comments {
2588
+ display: flex;
2589
+ flex-direction: column;
2590
+ gap: 0.75rem;
2591
+ }
2592
+ .ck-comments-title {
2593
+ margin: 0;
2594
+ font-size: 1.25rem;
2595
+ font-weight: 600;
2596
+ line-height: 1.3;
2597
+ }
2598
+ .ck-comment-list {
2599
+ list-style: none;
2600
+ margin: 0;
2601
+ padding: 0;
2602
+ }
2603
+ .ck-comment {
2604
+ padding: 0.75rem 0;
2605
+ border-top: 1px solid var(--ck-line);
2606
+ }
2607
+ .ck-comment:first-child {
2608
+ border-top: 0;
2609
+ }
2610
+ .ck-comment-meta {
2611
+ margin: 0 0 0.25rem;
2612
+ font-size: 0.875rem;
2613
+ color: var(--ck-muted);
2614
+ }
2615
+ .ck-comment-meta strong {
2616
+ color: var(--ck-fg);
2617
+ }
2618
+ .ck-comment-body {
2619
+ margin: 0;
2620
+ font-size: max(16px, var(--ck-text));
2621
+ line-height: var(--ck-leading);
2622
+ white-space: pre-wrap;
2623
+ overflow-wrap: anywhere;
2624
+ }
2625
+ .ck-comment-remove {
2626
+ min-height: 2rem;
2627
+ padding: 0;
2628
+ border: 0;
2629
+ background: none;
2630
+ color: var(--ck-accent);
2631
+ font: inherit;
2632
+ font-weight: 600;
2633
+ cursor: pointer;
2634
+ }
2635
+ .ck-comment-signin {
2636
+ margin: 0;
2637
+ }
2638
+ .ck-comment-signin-link {
2639
+ display: inline-flex;
2640
+ align-items: center;
2641
+ min-height: var(--ck-target);
2642
+ padding: 0 1rem;
2643
+ border: 1px solid var(--ck-line-2);
2644
+ border-radius: 999px;
2645
+ background: var(--ck-raised);
2646
+ color: var(--ck-fg);
2647
+ font-weight: 600;
2648
+ text-decoration: none;
2649
+ }
2650
+ @media (max-width: 380px) {
2651
+ .ck-field-suggestions {
2652
+ grid-template-columns: minmax(0, 1fr);
2653
+ }
2654
+ .ck-field-improve-row {
2655
+ flex-direction: column;
2656
+ }
2657
+ .ck-field-improve-row > .ck-field-wrap {
2658
+ width: 100%;
2659
+ }
2660
+ }