opus-react 0.6.23 → 0.6.25

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 CHANGED
@@ -6419,11 +6419,15 @@
6419
6419
  max-height: calc(var(--show-more-full-height) + 2px);
6420
6420
  }
6421
6421
 
6422
+ .opus_dSk-ve_contentShell[data-expanded="true"] {
6423
+ max-height: none;
6424
+ }
6425
+
6422
6426
  .opus_dSk-ve_inner {
6423
6427
  color: var(--opus-text);
6428
+ font-size: inherit;
6429
+ line-height: inherit;
6424
6430
  white-space: pre-wrap;
6425
- font-size: .86rem;
6426
- line-height: 1.55;
6427
6431
  display: flow-root;
6428
6432
  }
6429
6433
 
@@ -6454,10 +6458,6 @@
6454
6458
  border-radius: var(--opus-input-radius-mark);
6455
6459
  }
6456
6460
 
6457
- .opus_dSk-ve_toggleLabel {
6458
- animation: .22s cubic-bezier(.16, 1, .3, 1) opus_dSk-ve_showMoreLabelIn;
6459
- }
6460
-
6461
6461
  .opus_dSk-ve_chevron {
6462
6462
  width: 14px;
6463
6463
  height: 14px;
@@ -6472,26 +6472,10 @@
6472
6472
  transform: rotate(180deg);
6473
6473
  }
6474
6474
 
6475
- @keyframes opus_dSk-ve_showMoreLabelIn {
6476
- from {
6477
- opacity: 0;
6478
- transform: translateY(3px);
6479
- }
6480
-
6481
- to {
6482
- opacity: 1;
6483
- transform: translateY(0);
6484
- }
6485
- }
6486
-
6487
6475
  @media (prefers-reduced-motion: reduce) {
6488
6476
  .opus_dSk-ve_contentShell, .opus_dSk-ve_chevron {
6489
6477
  transition: none;
6490
6478
  }
6491
-
6492
- .opus_dSk-ve_toggleLabel {
6493
- animation: none;
6494
- }
6495
6479
  }
6496
6480
 
6497
6481
  /* components/Toast/Toast.module.css */
@@ -25408,6 +25392,73 @@ button.opus_H9TUGj_root:hover, button.opus_H9TUGj_root:focus-visible {
25408
25392
  }
25409
25393
  }
25410
25394
 
25395
+ /* components/SyntaxHighlighter/SyntaxHighlighter.module.css */
25396
+ .opus_nFPk0C_root {
25397
+ background: color-mix(in srgb, #090b12 94%, var(--opus-accent) 6%);
25398
+ color: #e8ebf3;
25399
+ white-space: pre;
25400
+ tab-size: 2;
25401
+ border: 1px solid #ffffff1f;
25402
+ border-radius: 9px;
25403
+ margin: 0;
25404
+ padding: 23px 12px 11px;
25405
+ font: 500 .8rem / 1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
25406
+ position: relative;
25407
+ overflow: auto;
25408
+ }
25409
+
25410
+ .opus_nFPk0C_language {
25411
+ color: #aab3c4;
25412
+ text-transform: uppercase;
25413
+ letter-spacing: .06em;
25414
+ font: 600 .64rem / 1 ui-monospace, monospace;
25415
+ position: absolute;
25416
+ top: 7px;
25417
+ right: 9px;
25418
+ }
25419
+
25420
+ .opus_nFPk0C_comment {
25421
+ color: #8b96a9;
25422
+ }
25423
+
25424
+ .opus_nFPk0C_keyword {
25425
+ color: #bd93f9;
25426
+ }
25427
+
25428
+ .opus_nFPk0C_number {
25429
+ color: #f8c56b;
25430
+ }
25431
+
25432
+ .opus_nFPk0C_string {
25433
+ color: #a8dc87;
25434
+ }
25435
+
25436
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_root, [data-theme="light"] .opus_nFPk0C_root {
25437
+ border-color: color-mix(in srgb, var(--opus-border) 82%, var(--opus-accent));
25438
+ background: color-mix(in srgb, var(--opus-panel) 88%, var(--opus-accent) 12%);
25439
+ color: #1c2131;
25440
+ }
25441
+
25442
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_language, [data-theme="light"] .opus_nFPk0C_language {
25443
+ color: #5d667d;
25444
+ }
25445
+
25446
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_comment, [data-theme="light"] .opus_nFPk0C_comment {
25447
+ color: #65708a;
25448
+ }
25449
+
25450
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_keyword, [data-theme="light"] .opus_nFPk0C_keyword {
25451
+ color: #6f3ec4;
25452
+ }
25453
+
25454
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_number, [data-theme="light"] .opus_nFPk0C_number {
25455
+ color: #9b5b06;
25456
+ }
25457
+
25458
+ [data-preview-root][data-theme="light"] .opus_nFPk0C_string, [data-theme="light"] .opus_nFPk0C_string {
25459
+ color: #257a4f;
25460
+ }
25461
+
25411
25462
  /* components/ChatBubble/ChatBubble.module.css */
25412
25463
  .opus_709yhz_group {
25413
25464
  width: 100%;
@@ -25423,13 +25474,14 @@ button.opus_H9TUGj_root:hover, button.opus_H9TUGj_root:focus-visible {
25423
25474
 
25424
25475
  .opus_709yhz_messages {
25425
25476
  gap: 2px;
25477
+ width: min(78%, 46rem);
25426
25478
  min-width: 0;
25427
- max-width: min(78%, 46rem);
25428
25479
  display: grid;
25429
25480
  }
25430
25481
 
25431
25482
  .opus_709yhz_message {
25432
25483
  gap: 4px;
25484
+ min-width: 0;
25433
25485
  display: grid;
25434
25486
  }
25435
25487
 
@@ -25438,10 +25490,12 @@ button.opus_H9TUGj_root:hover, button.opus_H9TUGj_root:focus-visible {
25438
25490
  }
25439
25491
 
25440
25492
  .opus_709yhz_bubble {
25441
- border: 1px solid color-mix(in srgb, var(--opus-border) 78%, transparent);
25442
- background: var(--chat-bubble-background, color-mix(in srgb, var(--opus-panel) 88%, var(--opus-accent) 12%));
25493
+ border: 1px solid var(--chat-bubble-border-active, color-mix(in srgb, var(--opus-border) 78%, transparent));
25494
+ background: var(--chat-bubble-background-active, color-mix(in srgb, var(--opus-panel) 78%, var(--opus-accent) 22%));
25495
+ width: fit-content;
25443
25496
  min-width: 0;
25444
- color: var(--opus-text);
25497
+ max-width: 100%;
25498
+ color: var(--chat-bubble-foreground-active, var(--opus-text));
25445
25499
  overflow-wrap: anywhere;
25446
25500
  border-radius: 16px;
25447
25501
  padding: 10px 12px;
@@ -25449,35 +25503,66 @@ button.opus_H9TUGj_root:hover, button.opus_H9TUGj_root:focus-visible {
25449
25503
  line-height: 1.5;
25450
25504
  }
25451
25505
 
25506
+ .opus_709yhz_group[data-alignment="left"] .opus_709yhz_bubble {
25507
+ justify-self: start;
25508
+ }
25509
+
25452
25510
  .opus_709yhz_group[data-alignment="right"] .opus_709yhz_bubble {
25453
- background: var(--chat-bubble-background, var(--opus-accent));
25454
- color: var(--opus-accent-contrast, #fff);
25455
- border-color: color-mix(in srgb, var(--opus-accent) 70%, var(--opus-border));
25511
+ border-color: var(--chat-bubble-border-active, color-mix(in srgb, var(--opus-accent) 70%, var(--opus-border)));
25512
+ justify-self: end;
25513
+ }
25514
+
25515
+ [data-preview-root][data-theme="light"] .opus_709yhz_group, [data-theme="light"] .opus_709yhz_group {
25516
+ --chat-bubble-background-active: var(--chat-bubble-background-light);
25517
+ --chat-bubble-foreground-active: var(--chat-bubble-foreground-light);
25518
+ --chat-bubble-border-active: var(--chat-bubble-border-light);
25519
+ }
25520
+
25521
+ [data-preview-root][data-theme="dark"] .opus_709yhz_group, [data-theme="dark"] .opus_709yhz_group {
25522
+ --chat-bubble-background-active: var(--chat-bubble-background-dark);
25523
+ --chat-bubble-foreground-active: var(--chat-bubble-foreground-dark);
25524
+ --chat-bubble-border-active: var(--chat-bubble-border-dark);
25456
25525
  }
25457
25526
 
25458
25527
  .opus_709yhz_message[data-position="first"] .opus_709yhz_bubble {
25459
- border-bottom-left-radius: 5px;
25528
+ border-bottom-left-radius: 0;
25460
25529
  }
25461
25530
 
25462
25531
  .opus_709yhz_message[data-position="middle"] .opus_709yhz_bubble {
25463
- border-top-left-radius: 5px;
25464
- border-bottom-left-radius: 5px;
25532
+ border-top-left-radius: 0;
25533
+ border-bottom-left-radius: 0;
25465
25534
  }
25466
25535
 
25467
25536
  .opus_709yhz_message[data-position="last"] .opus_709yhz_bubble {
25468
- border-top-left-radius: 5px;
25537
+ border-top-left-radius: 0;
25538
+ }
25539
+
25540
+ .opus_709yhz_group[data-alignment="left"] .opus_709yhz_message[data-adjacent-above="true"] .opus_709yhz_bubble {
25541
+ border-top-right-radius: var(--chat-bubble-corner-above);
25542
+ }
25543
+
25544
+ .opus_709yhz_group[data-alignment="left"] .opus_709yhz_message[data-adjacent-below="true"] .opus_709yhz_bubble {
25545
+ border-bottom-right-radius: var(--chat-bubble-corner-below);
25469
25546
  }
25470
25547
 
25471
25548
  .opus_709yhz_group[data-alignment="right"] .opus_709yhz_message[data-position="first"] .opus_709yhz_bubble {
25472
- border-radius: 16px 16px 5px;
25549
+ border-radius: 16px 16px 0;
25473
25550
  }
25474
25551
 
25475
25552
  .opus_709yhz_group[data-alignment="right"] .opus_709yhz_message[data-position="middle"] .opus_709yhz_bubble {
25476
- border-radius: 16px 5px 5px 16px;
25553
+ border-radius: 16px 0 0 16px;
25477
25554
  }
25478
25555
 
25479
25556
  .opus_709yhz_group[data-alignment="right"] .opus_709yhz_message[data-position="last"] .opus_709yhz_bubble {
25480
- border-radius: 16px 5px 16px 16px;
25557
+ border-radius: 16px 0 16px 16px;
25558
+ }
25559
+
25560
+ .opus_709yhz_group[data-alignment="right"] .opus_709yhz_message[data-adjacent-above="true"] .opus_709yhz_bubble {
25561
+ border-top-left-radius: var(--chat-bubble-corner-above);
25562
+ }
25563
+
25564
+ .opus_709yhz_group[data-alignment="right"] .opus_709yhz_message[data-adjacent-below="true"] .opus_709yhz_bubble {
25565
+ border-bottom-left-radius: var(--chat-bubble-corner-below);
25481
25566
  }
25482
25567
 
25483
25568
  .opus_709yhz_time {
@@ -25495,48 +25580,13 @@ button.opus_H9TUGj_root:hover, button.opus_H9TUGj_root:focus-visible {
25495
25580
  }
25496
25581
 
25497
25582
  .opus_709yhz_codeBlock {
25498
- background: color-mix(in srgb, #090b12 94%, var(--opus-accent) 6%);
25499
- color: #e8ebf3;
25500
- white-space: pre;
25501
- tab-size: 2;
25502
- border-radius: 9px;
25503
- margin: 8px 0 0;
25504
- padding: 28px 12px 12px;
25505
- font: 500 .8rem / 1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
25506
- position: relative;
25507
- overflow: auto;
25583
+ margin: 0;
25508
25584
  }
25509
25585
 
25510
25586
  .opus_709yhz_text + .opus_709yhz_codeBlock {
25511
25587
  margin-top: 8px;
25512
25588
  }
25513
25589
 
25514
- .opus_709yhz_codeLanguage {
25515
- color: #aab3c4;
25516
- text-transform: uppercase;
25517
- letter-spacing: .06em;
25518
- font: 600 .64rem / 1 ui-monospace, monospace;
25519
- position: absolute;
25520
- top: 7px;
25521
- right: 9px;
25522
- }
25523
-
25524
- .opus_709yhz_tokenComment {
25525
- color: #8b96a9;
25526
- }
25527
-
25528
- .opus_709yhz_tokenKeyword {
25529
- color: #bd93f9;
25530
- }
25531
-
25532
- .opus_709yhz_tokenNumber {
25533
- color: #f8c56b;
25534
- }
25535
-
25536
- .opus_709yhz_tokenString {
25537
- color: #a8dc87;
25538
- }
25539
-
25540
25590
  .opus_709yhz_group[data-alignment="right"] .ShowMore_toggle, .opus_709yhz_group[data-alignment="right"] button {
25541
25591
  color: inherit;
25542
25592
  }