@m6d/cortex-react 0.7.0 → 0.9.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/dist/styles.css CHANGED
@@ -55,6 +55,14 @@
55
55
  monospace
56
56
  );
57
57
  --cortex-font-size: 0.8125rem;
58
+ /* These read --cortex-font-size (or the color named) when unset, so they ship
59
+ * unset: declaring one here gives that part its own value.
60
+ *
61
+ * --cortex-font-size-message: 0.875rem; message bubbles and the composer
62
+ * --cortex-font-size-header: 0.875rem; the chat and history titles
63
+ * --cortex-color-send-empty: transparent; the send button with nothing to send
64
+ * --cortex-color-send-empty-text: var(--cortex-color-text-muted);
65
+ */
58
66
  /* The widget's headings read --cortex-font-display and fall back to `inherit`,
59
67
  * so it ships unset on purpose — declaring it here is how you opt in:
60
68
  *
@@ -72,7 +80,7 @@
72
80
  color-scheme: light dark;
73
81
  }
74
82
 
75
- @layer cortex-preflight {
83
+ @layer base.cortex {
76
84
  :where(.cortex-widget),
77
85
  :where(.cortex-widget) *,
78
86
  :where(.cortex-widget) ::before,
@@ -364,8 +372,13 @@
364
372
  .cortex-widget__container--full .cortex-widget__history-btn {
365
373
  display: none;
366
374
  }
375
+ @media (min-width: 769px) {
376
+ .cortex-widget__container--full > .cortex-widget__screen:nth-child(2) .cortex-widget__new-btn {
377
+ display: none;
378
+ }
379
+ }
367
380
  .cortex-widget__container--full .cortex-widget__chat-title {
368
- font-size: 0.875rem;
381
+ font-size: var(--cortex-font-size-header, 0.875rem);
369
382
  }
370
383
  .cortex-widget__container--full .cortex-widget__chat-header {
371
384
  background: var(--cortex-color-surface);
@@ -464,8 +477,7 @@
464
477
  background: var(--cortex-color-surface);
465
478
  }
466
479
 
467
- .cortex-widget__back-btn,
468
- .cortex-widget__history-btn {
480
+ .cortex-widget__header-btn {
469
481
  flex-shrink: 0;
470
482
  width: 2rem;
471
483
  height: 2rem;
@@ -479,8 +491,7 @@
479
491
  transition: color 0.15s, background-color 0.15s;
480
492
  color: var(--cortex-color-text-muted);
481
493
  }
482
- .cortex-widget__back-btn:hover,
483
- .cortex-widget__history-btn:hover {
494
+ .cortex-widget__header-btn:hover {
484
495
  color: var(--cortex-color-text);
485
496
  background: var(--cortex-color-surface-muted);
486
497
  }
@@ -496,7 +507,7 @@
496
507
 
497
508
  .cortex-widget__chat-title {
498
509
  font-family: var(--cortex-font-display, inherit);
499
- font-size: var(--cortex-font-size);
510
+ font-size: var(--cortex-font-size-header, var(--cortex-font-size));
500
511
  font-weight: 500;
501
512
  color: var(--cortex-color-text-strong);
502
513
  overflow: hidden;
@@ -541,9 +552,14 @@
541
552
  padding: 1.25rem;
542
553
  text-align: center;
543
554
  }
544
- .cortex-widget__landing .cortex-widget__input-area {
545
- width: 100%;
555
+ .cortex-widget__landing .cortex-widget__landing-composer {
546
556
  max-width: 26rem;
557
+ }
558
+
559
+ .cortex-widget__landing-composer {
560
+ width: 100%;
561
+ }
562
+ .cortex-widget__landing-composer .cortex-widget__input-area {
547
563
  padding: 1rem 0 0;
548
564
  border-top: 0;
549
565
  background: transparent;
@@ -660,13 +676,8 @@ cortex-llm-usage-chips {
660
676
  border-radius: calc(var(--cortex-radius) * 1.5);
661
677
  border: 1px solid var(--cortex-color-border);
662
678
  padding: 0.375rem;
663
- transition: border-color 0.15s, background-color 0.15s;
664
- }
665
- .cortex-widget__input-box--disabled {
666
- background: var(--cortex-color-surface-muted);
667
- }
668
- .cortex-widget__input-box--enabled {
669
679
  background: color-mix(in oklab, var(--cortex-color-surface-subtle) 45%, var(--cortex-color-surface));
680
+ transition: border-color 0.15s, background-color 0.15s;
670
681
  }
671
682
  .cortex-widget__input-box--enabled:focus-within {
672
683
  border-color: var(--cortex-color-border-strong);
@@ -678,16 +689,23 @@ cortex-llm-usage-chips {
678
689
  background: var(--cortex-color-surface-muted);
679
690
  }
680
691
 
681
- .cortex-widget__textarea {
682
- flex: 1;
692
+ .cortex-widget__textarea,
693
+ .cortex-widget__textarea:focus,
694
+ .cortex-widget__textarea:focus-visible,
695
+ .cortex-widget__textarea:disabled {
683
696
  background: transparent;
684
- resize: none;
685
697
  border: 0;
686
698
  outline: none;
687
- font-size: var(--cortex-font-size);
699
+ box-shadow: none;
700
+ }
701
+
702
+ .cortex-widget__textarea {
703
+ flex: 1;
704
+ resize: none;
705
+ font-size: var(--cortex-font-size-message, var(--cortex-font-size));
688
706
  padding: 0.375rem 0.5rem;
689
707
  min-height: 28px;
690
- max-height: calc(5.5 * var(--cortex-font-size) + 0.75rem);
708
+ max-height: calc(5.5 * var(--cortex-font-size-message, var(--cortex-font-size)) + 0.75rem);
691
709
  overflow-y: auto;
692
710
  line-height: 1.375;
693
711
  color: var(--cortex-color-text-strong);
@@ -701,7 +719,6 @@ cortex-llm-usage-chips {
701
719
  }
702
720
  .cortex-widget__textarea:disabled {
703
721
  cursor: not-allowed;
704
- border: 0;
705
722
  }
706
723
 
707
724
  .cortex-widget__input-actions {
@@ -808,8 +825,8 @@ cortex-llm-usage-chips {
808
825
  cursor: default;
809
826
  }
810
827
  .cortex-widget__send-btn--empty {
811
- background: var(--cortex-color-border);
812
- color: var(--cortex-color-text-muted);
828
+ background: var(--cortex-color-send-empty, transparent);
829
+ color: var(--cortex-color-send-empty-text, var(--cortex-color-text-muted));
813
830
  }
814
831
  .cortex-widget__send-btn--ready {
815
832
  background: var(--cortex-color-primary);
@@ -831,13 +848,13 @@ cortex-llm-usage-chips {
831
848
  align-items: center;
832
849
  gap: 0.75rem;
833
850
  }
834
- .cortex-widget__threads-header .cortex-widget__new-chat-btn {
851
+ .cortex-widget__threads-header .cortex-widget__new-btn {
835
852
  margin-inline-start: auto;
836
853
  }
837
854
 
838
855
  .cortex-widget__threads-title {
839
856
  font-family: var(--cortex-font-display, inherit);
840
- font-size: 0.9375rem;
857
+ font-size: var(--cortex-font-size-header, 0.9375rem);
841
858
  font-weight: 600;
842
859
  color: var(--cortex-color-text-heading);
843
860
  letter-spacing: -0.01em;
@@ -1218,9 +1235,9 @@ cortex-llm-usage-chips {
1218
1235
  position: absolute;
1219
1236
  inset: -0.25rem;
1220
1237
  border-radius: 9999px;
1221
- border: 1.5px solid transparent;
1238
+ border: 1.5px solid color-mix(in oklab, var(--cortex-color-accent) 18%, transparent);
1222
1239
  border-top-color: var(--cortex-color-accent);
1223
- border-right-color: color-mix(in oklab, var(--cortex-color-accent) 40%, transparent);
1240
+ border-right-color: color-mix(in oklab, var(--cortex-color-accent) 45%, transparent);
1224
1241
  }
1225
1242
  .cortex-working-avatar--shown .cortex-working-avatar__ring {
1226
1243
  animation: cortex-tool-spin 1s linear infinite;
@@ -1260,15 +1277,15 @@ cortex-llm-usage-chips {
1260
1277
 
1261
1278
  .cortex-text-bubble--assistant,
1262
1279
  .cortex-subtle-activity,
1263
- .cortex-tool-pill:not(.cortex-tool-pill--gated),
1264
- .cortex-tool-pill:not(.cortex-tool-pill--gated) .cortex-tool-pill__icon {
1280
+ .cortex-tool-pill,
1281
+ .cortex-tool-pill .cortex-tool-pill__icon {
1265
1282
  transition: translate 420ms cubic-bezier(0.76, 0, 0.24, 1) 160ms;
1266
1283
  }
1267
1284
 
1268
1285
  .cortex-message--working-turn .cortex-text-bubble--assistant,
1269
1286
  .cortex-message--working-turn .cortex-subtle-activity,
1270
- .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated),
1271
- .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated) .cortex-tool-pill__icon {
1287
+ .cortex-message--working-turn .cortex-tool-pill,
1288
+ .cortex-message--working-turn .cortex-tool-pill .cortex-tool-pill__icon {
1272
1289
  transition-delay: 0s;
1273
1290
  }
1274
1291
  .cortex-message--working-turn .cortex-text-bubble--assistant,
@@ -1279,16 +1296,16 @@ cortex-llm-usage-chips {
1279
1296
  [dir=rtl] .cortex-message--working-turn .cortex-subtle-activity {
1280
1297
  translate: -2rem;
1281
1298
  }
1282
- .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated) {
1299
+ .cortex-message--working-turn .cortex-tool-pill {
1283
1300
  translate: 0.875rem;
1284
1301
  }
1285
- [dir=rtl] .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated) {
1302
+ [dir=rtl] .cortex-message--working-turn .cortex-tool-pill {
1286
1303
  translate: -0.875rem;
1287
1304
  }
1288
- .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated) .cortex-tool-pill__icon {
1305
+ .cortex-message--working-turn .cortex-tool-pill .cortex-tool-pill__icon {
1289
1306
  translate: -0.5rem;
1290
1307
  }
1291
- [dir=rtl] .cortex-message--working-turn .cortex-tool-pill:not(.cortex-tool-pill--gated) .cortex-tool-pill__icon {
1308
+ [dir=rtl] .cortex-message--working-turn .cortex-tool-pill .cortex-tool-pill__icon {
1292
1309
  translate: 0.5rem;
1293
1310
  }
1294
1311
 
@@ -1425,7 +1442,7 @@ cortex-llm-usage-chips {
1425
1442
  max-width: 80%;
1426
1443
  min-width: 0;
1427
1444
  overflow-wrap: anywhere;
1428
- font-size: var(--cortex-font-size);
1445
+ font-size: var(--cortex-font-size-message, var(--cortex-font-size));
1429
1446
  line-height: 1.625;
1430
1447
  padding: 1rem;
1431
1448
  border-radius: calc(var(--cortex-radius) * 2);
@@ -1580,7 +1597,130 @@ cortex-llm-usage-chips {
1580
1597
  opacity: 0;
1581
1598
  }
1582
1599
  }
1600
+ .cortex-expandable {
1601
+ display: block;
1602
+ position: relative;
1603
+ }
1604
+
1605
+ .cortex-expandable__content {
1606
+ isolation: isolate;
1607
+ }
1608
+
1609
+ .cortex-expandable__toolbar {
1610
+ position: absolute;
1611
+ top: 0.375rem;
1612
+ inset-inline-end: 0.375rem;
1613
+ z-index: 1;
1614
+ display: flex;
1615
+ gap: 0.125rem;
1616
+ padding: 0.125rem;
1617
+ border: 1px solid var(--cortex-color-border);
1618
+ border-radius: var(--cortex-radius);
1619
+ background: var(--cortex-color-surface);
1620
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
1621
+ opacity: 0;
1622
+ transition: opacity 0.15s;
1623
+ }
1624
+ .cortex-expandable:hover > .cortex-expandable__toolbar, .cortex-expandable__toolbar:has(:focus-visible) {
1625
+ opacity: 1;
1626
+ }
1627
+ @media (hover: none) {
1628
+ .cortex-expandable__toolbar {
1629
+ position: static;
1630
+ width: fit-content;
1631
+ margin: 0 0 0.25rem;
1632
+ margin-inline-start: auto;
1633
+ opacity: 1;
1634
+ }
1635
+ }
1636
+
1637
+ .cortex-expandable__action {
1638
+ flex-shrink: 0;
1639
+ width: 2rem;
1640
+ height: 2rem;
1641
+ border-radius: calc(var(--cortex-radius) * 0.75);
1642
+ display: flex;
1643
+ align-items: center;
1644
+ justify-content: center;
1645
+ background: transparent;
1646
+ border: 0;
1647
+ cursor: pointer;
1648
+ transition: color 0.15s, background-color 0.15s;
1649
+ width: 1.75rem;
1650
+ height: 1.75rem;
1651
+ color: var(--cortex-color-text-muted);
1652
+ }
1653
+ .cortex-expandable__action:hover {
1654
+ color: var(--cortex-color-text);
1655
+ background: var(--cortex-color-hover);
1656
+ }
1657
+
1658
+ .cortex-expandable__dialog {
1659
+ width: fit-content;
1660
+ min-width: min(24rem, 100vw - 2rem);
1661
+ max-width: calc(100vw - 2rem);
1662
+ max-height: calc(100dvh - 2rem);
1663
+ margin: auto;
1664
+ padding: 0;
1665
+ overflow: hidden;
1666
+ border: 1px solid var(--cortex-color-border);
1667
+ border-radius: calc(var(--cortex-radius) * 1.5);
1668
+ background: var(--cortex-color-surface);
1669
+ color: var(--cortex-color-text-strong);
1670
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
1671
+ }
1672
+ .cortex-expandable__dialog[open] {
1673
+ display: flex;
1674
+ flex-direction: column;
1675
+ animation: cortex-expandable-in 0.18s ease-out;
1676
+ }
1677
+ .cortex-expandable__dialog::backdrop {
1678
+ background: rgba(0, 0, 0, 0.45);
1679
+ animation: cortex-expandable-backdrop-in 0.18s ease-out;
1680
+ }
1681
+
1682
+ .cortex-expandable__head {
1683
+ display: flex;
1684
+ align-items: center;
1685
+ gap: 0.125rem;
1686
+ padding-block: 0.375rem;
1687
+ padding-inline: 1rem 0.375rem;
1688
+ border-bottom: 1px solid var(--cortex-color-border);
1689
+ }
1690
+
1691
+ .cortex-expandable__title {
1692
+ flex: 1;
1693
+ min-width: 0;
1694
+ margin-inline-end: 0.5rem;
1695
+ overflow: hidden;
1696
+ text-overflow: ellipsis;
1697
+ white-space: nowrap;
1698
+ font-size: 0.875rem;
1699
+ font-weight: 600;
1700
+ color: var(--cortex-color-text-heading);
1701
+ }
1702
+
1703
+ .cortex-expandable__body {
1704
+ min-height: 0;
1705
+ overflow: auto;
1706
+ overscroll-behavior: contain;
1707
+ }
1708
+
1709
+ @keyframes cortex-expandable-in {
1710
+ from {
1711
+ opacity: 0;
1712
+ transform: translateY(0.5rem) scale(0.98);
1713
+ }
1714
+ }
1715
+ @keyframes cortex-expandable-backdrop-in {
1716
+ from {
1717
+ opacity: 0;
1718
+ }
1719
+ }
1583
1720
  .cortex-media-block {
1721
+ display: block;
1722
+ width: 40rem;
1723
+ max-width: 100%;
1584
1724
  margin: 0.75em 0;
1585
1725
  border: 1px solid var(--cortex-color-border);
1586
1726
  border-radius: var(--cortex-radius);
@@ -1645,6 +1785,7 @@ cortex-llm-usage-chips {
1645
1785
  }
1646
1786
 
1647
1787
  .cortex-media-block__body {
1788
+ display: block;
1648
1789
  padding: 0.75rem;
1649
1790
  }
1650
1791
  .cortex-media-block__body[hidden] {
@@ -1659,6 +1800,9 @@ cortex-llm-usage-chips {
1659
1800
  max-width: 100%;
1660
1801
  height: auto;
1661
1802
  }
1803
+ .cortex-media-block__body > div > svg {
1804
+ margin-inline: auto;
1805
+ }
1662
1806
  .cortex-media-block__body--map {
1663
1807
  padding: 0;
1664
1808
  height: 18rem;
@@ -1667,6 +1811,26 @@ cortex-llm-usage-chips {
1667
1811
  height: 100%;
1668
1812
  }
1669
1813
 
1814
+ .cortex-expandable__body .cortex-media-block__body {
1815
+ width: min(72rem, 100vw - 2rem - 2px);
1816
+ }
1817
+ .cortex-expandable__body .cortex-media-block__body:not(.cortex-media-block__body--map) > div {
1818
+ display: grid;
1819
+ }
1820
+ .cortex-expandable__body .cortex-media-block__body:not(.cortex-media-block__body--map) svg {
1821
+ width: 100%;
1822
+ max-width: none !important;
1823
+ max-height: calc(100dvh - 6.5rem);
1824
+ }
1825
+ .cortex-expandable__body .cortex-media-block__body--map {
1826
+ height: min(48rem, 100dvh - 5rem);
1827
+ }
1828
+
1829
+ .cortex-expandable:has(> .cortex-expandable__content > .cortex-media-block__body--map) > .cortex-expandable__toolbar {
1830
+ right: 0.375rem;
1831
+ left: auto;
1832
+ }
1833
+
1670
1834
  .cortex-media-block__error {
1671
1835
  margin: 0;
1672
1836
  font-size: 0.8125rem;
@@ -1689,19 +1853,56 @@ cortex-llm-usage-chips {
1689
1853
  .cortex-attachment-image {
1690
1854
  margin: 0.75em 0;
1691
1855
  }
1692
- .cortex-attachment-image img {
1856
+ .cortex-attachment-image .cortex-expandable {
1857
+ width: fit-content;
1858
+ max-width: 100%;
1859
+ }
1860
+ .cortex-attachment-image .cortex-expandable__content img {
1693
1861
  display: block;
1694
1862
  max-width: 100%;
1695
1863
  border-radius: var(--cortex-radius);
1696
1864
  border: 1px solid var(--cortex-color-border);
1697
1865
  }
1698
1866
 
1867
+ .cortex-expandable__body .cortex-attachment-image__expanded {
1868
+ display: block;
1869
+ max-width: calc(100vw - 2rem - 2px);
1870
+ max-height: calc(100dvh - 5rem);
1871
+ margin: auto;
1872
+ border-radius: 0;
1873
+ }
1874
+
1699
1875
  .cortex-attachment-image__caption {
1700
1876
  margin: 0.25rem 0 0;
1701
1877
  font-size: 0.75rem;
1702
1878
  color: var(--cortex-color-text-muted);
1703
1879
  }
1704
1880
 
1881
+ .cortex-table-block {
1882
+ display: block;
1883
+ margin: 0.75em 0;
1884
+ }
1885
+ .cortex-table-block th {
1886
+ white-space: nowrap;
1887
+ }
1888
+ .cortex-table-block td {
1889
+ max-width: 20rem;
1890
+ }
1891
+ .cortex-table-block table {
1892
+ margin: 0;
1893
+ }
1894
+ .cortex-table-block .cortex-expandable {
1895
+ width: fit-content;
1896
+ max-width: 100%;
1897
+ }
1898
+
1899
+ .cortex-table-block__expanded {
1900
+ padding: 1rem;
1901
+ }
1902
+ .cortex-table-block__expanded td {
1903
+ max-width: 40rem;
1904
+ }
1905
+
1705
1906
  .cortex-reasoning-details {
1706
1907
  width: 100%;
1707
1908
  border-radius: var(--cortex-radius);
@@ -2324,51 +2525,82 @@ details[open] > summary .cortex-debug-tool__chevron {
2324
2525
  font-variant-numeric: tabular-nums;
2325
2526
  }
2326
2527
 
2327
- .cortex-tool-pill--gated {
2528
+ .cortex-approval-card {
2529
+ display: block;
2530
+ max-width: min(100%, 28rem);
2531
+ margin: 0.25rem 0;
2328
2532
  border: 1px solid var(--cortex-color-border);
2329
- border-radius: 9999px;
2330
- background: var(--cortex-color-surface-subtle);
2331
- padding: 0.3rem 0.75rem 0.3rem 0.65rem;
2332
- gap: 0.6rem;
2533
+ border-radius: var(--cortex-radius);
2534
+ background: var(--cortex-color-surface);
2535
+ overflow: hidden;
2333
2536
  }
2334
-
2335
- .cortex-tool-pill--asking {
2336
- padding-inline-end: 0.3rem;
2337
- flex-wrap: wrap;
2537
+ .cortex-approval-card--asking {
2538
+ border-color: color-mix(in oklab, var(--cortex-color-accent) 45%, var(--cortex-color-border));
2539
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--cortex-color-accent) 10%, transparent);
2338
2540
  }
2339
2541
 
2340
- .cortex-tool-pill__dot {
2341
- width: 0.5rem;
2342
- height: 0.5rem;
2343
- border-radius: 9999px;
2344
- background: var(--cortex-color-accent);
2542
+ .cortex-approval-card__head {
2543
+ display: flex;
2544
+ align-items: center;
2545
+ gap: 0.5rem;
2546
+ padding: 0.625rem 0.75rem 0;
2547
+ font-size: 0.75rem;
2548
+ font-weight: 600;
2549
+ color: var(--cortex-color-accent);
2345
2550
  }
2346
2551
 
2347
- .cortex-tool-pill--gated .cortex-tool-pill__title {
2552
+ .cortex-approval-card__sentence {
2553
+ margin: 0;
2554
+ padding: 0.375rem 0.75rem 0.5rem;
2555
+ font-weight: 600;
2348
2556
  color: var(--cortex-color-text-heading);
2349
- white-space: normal;
2350
2557
  }
2351
2558
 
2352
- .cortex-tool-pill__actions {
2559
+ .cortex-approval-card__foot {
2353
2560
  display: flex;
2354
- gap: 0.3rem;
2355
- margin-inline-start: 0.25rem;
2561
+ gap: 0.5rem;
2562
+ padding: 0.625rem 0.75rem;
2563
+ border-top: 1px solid var(--cortex-color-border);
2564
+ background: var(--cortex-color-surface-subtle);
2356
2565
  }
2357
2566
 
2358
- .cortex-tool-pill__action {
2567
+ .cortex-approval-card__button {
2359
2568
  border: 1px solid var(--cortex-color-border-strong);
2360
- border-radius: 9999px;
2361
- background: none;
2362
- padding: 4px 11px;
2569
+ border-radius: calc(var(--cortex-radius) * 0.75);
2570
+ background: var(--cortex-color-surface);
2571
+ padding: 0.375rem 0.875rem;
2363
2572
  font: inherit;
2364
- font-size: 12.5px;
2365
- color: var(--cortex-color-text-secondary);
2573
+ font-size: 0.8125rem;
2574
+ font-weight: 500;
2575
+ color: var(--cortex-color-text-strong);
2366
2576
  cursor: pointer;
2367
2577
  }
2368
- .cortex-tool-pill__action--approve {
2369
- background: var(--cortex-color-accent);
2578
+ .cortex-approval-card__button--approve {
2370
2579
  border-color: var(--cortex-color-accent);
2371
- color: #fff;
2580
+ background: var(--cortex-color-accent);
2581
+ color: var(--cortex-color-primary-foreground);
2582
+ }
2583
+
2584
+ .cortex-approval-card__line {
2585
+ display: flex;
2586
+ align-items: baseline;
2587
+ gap: 0.5rem;
2588
+ padding: 0.5rem 0.75rem;
2589
+ font-size: 0.8125rem;
2590
+ color: var(--cortex-color-text-secondary);
2591
+ }
2592
+ .cortex-approval-card__line .cortex-tool-pill__icon {
2593
+ flex-shrink: 0;
2594
+ }
2595
+
2596
+ .cortex-approval-card__decision {
2597
+ font-weight: 600;
2598
+ color: var(--cortex-color-text-strong);
2599
+ }
2600
+
2601
+ .cortex-approval-card__summary {
2602
+ min-width: 0;
2603
+ flex: 1;
2372
2604
  }
2373
2605
 
2374
2606
  .cortex-tool-fold {
@@ -3490,7 +3722,8 @@ html[dir=ltr] .cortex-llm-inspector__trigger {
3490
3722
  @media (prefers-reduced-motion: reduce) {
3491
3723
  .cortex-widget *,
3492
3724
  .cortex-widget *::before,
3493
- .cortex-widget *::after {
3725
+ .cortex-widget *::after,
3726
+ .cortex-widget *::backdrop {
3494
3727
  animation-duration: 0.01ms !important;
3495
3728
  animation-delay: 0s !important;
3496
3729
  animation-iteration-count: 1 !important;
package/dist/theme.css CHANGED
@@ -63,6 +63,15 @@
63
63
  );
64
64
  --cortex-font-size: 0.8125rem;
65
65
 
66
+ /* These read --cortex-font-size (or the color named) when unset, so they ship
67
+ * unset: declaring one here gives that part its own value.
68
+ *
69
+ * --cortex-font-size-message: 0.875rem; message bubbles and the composer
70
+ * --cortex-font-size-header: 0.875rem; the chat and history titles
71
+ * --cortex-color-send-empty: transparent; the send button with nothing to send
72
+ * --cortex-color-send-empty-text: var(--cortex-color-text-muted);
73
+ */
74
+
66
75
  /* The widget's headings read --cortex-font-display and fall back to `inherit`,
67
76
  * so it ships unset on purpose — declaring it here is how you opt in:
68
77
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m6d/cortex-react",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "React chat widget SDK for cortex servers",
5
5
  "license": "MIT",
6
6
  "sideEffects": [