@haklex/rich-compose 0.51.0 → 0.52.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.
@@ -1554,13 +1554,13 @@
1554
1554
  color: var(--rc-text);
1555
1555
  }
1556
1556
  .qy3solb {
1557
- counter-reset: shiki-line 0;
1557
+ counter-reset: code-line 0;
1558
1558
  }
1559
1559
  .qy3solb .line {
1560
- counter-increment: shiki-line 1;
1560
+ counter-increment: code-line 1;
1561
1561
  }
1562
1562
  .qy3solb .line::before {
1563
- content: counter(shiki-line);
1563
+ content: counter(code-line);
1564
1564
  color: transparent;
1565
1565
  text-align: right;
1566
1566
  box-sizing: content-box;
@@ -1569,9 +1569,19 @@
1569
1569
  position: sticky;
1570
1570
  left: 0;
1571
1571
  }
1572
+ .qy3solc code {
1573
+ min-width: 100%;
1574
+ width: max-content;
1575
+ }
1576
+ .qy3sol0 .qy3solc .line {
1577
+ padding-left: 0;
1578
+ }
1572
1579
  .qy3solc .line::before {
1573
1580
  color: var(--rc-text-quaternary);
1581
+ padding-left: 16px;
1574
1582
  padding-right: 16px;
1583
+ background-color: var(--rc-code-bg);
1584
+ z-index: 1;
1575
1585
  }
1576
1586
  .qy3sol0 pre {
1577
1587
  margin: 0 !important;
@@ -1586,15 +1596,12 @@
1586
1596
  font-family: var(--rc-font-mono) !important;
1587
1597
  line-height: inherit;
1588
1598
  }
1589
- .qy3sol0 .shiki, .qy3sol0 code, .qy3sol0 pre {
1599
+ .qy3sol0 .highlights, .qy3sol0 code, .qy3sol0 pre {
1590
1600
  background: transparent !important;
1591
1601
  line-height: inherit;
1592
1602
  }
1593
- [data-theme='dark'] .qy3sol0 .shiki-themes, [data-theme='dark'] .qy3sol0 .shiki-themes span {
1594
- color: var(--shiki-dark) !important;
1595
- font-style: var(--shiki-dark-font-style) !important;
1596
- font-weight: var(--shiki-dark-font-weight) !important;
1597
- text-decoration: var(--shiki-dark-text-decoration) !important;
1603
+ [data-theme='dark'] .qy3sol0 .highlights-themes, [data-theme='dark'] .qy3sol0 .highlights-themes span {
1604
+ color: var(--hls-dark) !important;
1598
1605
  }
1599
1606
  .qy3sol0 .line {
1600
1607
  display: block;
@@ -5879,11 +5886,8 @@ figure.rich-image[data-display="fixed-height"] img {
5879
5886
  ._1v9rg4be code {
5880
5887
  font-family: inherit;
5881
5888
  }
5882
- [data-theme='dark'] ._1v9rg4be .shiki-themes, [data-theme='dark'] ._1v9rg4be .shiki-themes span {
5883
- color: var(--shiki-dark) !important;
5884
- font-style: var(--shiki-dark-font-style) !important;
5885
- font-weight: var(--shiki-dark-font-weight) !important;
5886
- text-decoration: var(--shiki-dark-text-decoration) !important;
5889
+ [data-theme='dark'] ._1v9rg4be .highlights-themes, [data-theme='dark'] ._1v9rg4be .highlights-themes span {
5890
+ color: var(--hls-dark) !important;
5887
5891
  }
5888
5892
  ._1v9rg4bf {
5889
5893
  display: inline-flex;
@@ -6316,7 +6320,7 @@ figure.rich-image[data-display="fixed-height"] img {
6316
6320
  }
6317
6321
  .pa8uv2b .cm-gutters {
6318
6322
  border-right: none;
6319
- background-color: transparent;
6323
+ background-color: var(--rc-code-bg);
6320
6324
  padding-left: 16px;
6321
6325
  }
6322
6326
  .pa8uv2b .cm-lineNumbers .cm-gutterElement {
@@ -6325,13 +6329,6 @@ figure.rich-image[data-display="fixed-height"] img {
6325
6329
  text-align: right;
6326
6330
  color: var(--rc-text-quaternary) !important;
6327
6331
  }
6328
- .pa8uv2b > .shikicode.output {
6329
- position: static !important;
6330
- inset: auto !important;
6331
- }
6332
- .pa8uv2c > textarea.shikicode {
6333
- display: none;
6334
- }
6335
6332
  .pa8uv2d {
6336
6333
  position: absolute;
6337
6334
  left: 0;
@@ -6360,13 +6357,6 @@ figure.rich-image[data-display="fixed-height"] img {
6360
6357
  .pa8uv2e:hover {
6361
6358
  color: var(--rc-text);
6362
6359
  }
6363
- .pa8uv20 .shikicode.input, .pa8uv20 .shikicode.output, .pa8uv20 .shikicode.output code, .pa8uv20 .shikicode.output .line, .pa8uv20 .shikicode.output .line span {
6364
- font-variant-ligatures: none;
6365
- font-kerning: none;
6366
- }
6367
- .pa8uv20 .shikicode.input, .pa8uv20 .shikicode.output {
6368
- font-family: var(--rc-font-mono) !important;
6369
- }
6370
6360
  .pa8uv2b pre, .pa8uv2b code, .pa8uv2b .line, .pa8uv2b .line span {
6371
6361
  font-family: var(--rc-font-mono) !important;
6372
6362
  }
@@ -6386,34 +6376,16 @@ figure.rich-image[data-display="fixed-height"] img {
6386
6376
  flex-direction: column;
6387
6377
  font-family: var(--rc-font-mono) !important;
6388
6378
  }
6389
- .pa8uv20 .shiki, .pa8uv20 code, .pa8uv20 pre {
6379
+ .pa8uv20 .highlights, .pa8uv20 code, .pa8uv20 pre {
6390
6380
  background: transparent !important;
6391
6381
  }
6392
- [data-theme='dark'] .pa8uv20 .shiki-themes, [data-theme='dark'] .pa8uv20 .shiki-themes span {
6393
- color: var(--shiki-dark) !important;
6394
- font-style: var(--shiki-dark-font-style) !important;
6395
- font-weight: var(--shiki-dark-font-weight) !important;
6396
- text-decoration: var(--shiki-dark-text-decoration) !important;
6397
- }
6398
- .pa8uv2b:has(.shikicode.input.line-numbers) .shikicode.output .line::before {
6399
- background-color: transparent !important;
6400
- color: var(--rc-text-quaternary) !important;
6401
- min-width: calc(var(--rc-ln-digits, 2) * 1ch);
6402
- padding-right: 16px;
6403
- }
6404
- .pa8uv2b:not(:has(.shikicode.input.line-numbers)) .shikicode.output .line::before {
6405
- display: none;
6382
+ [data-theme='dark'] .pa8uv20 .highlights-themes, [data-theme='dark'] .pa8uv20 .highlights-themes span {
6383
+ color: var(--hls-dark) !important;
6406
6384
  }
6407
6385
  .pa8uv20 .line {
6408
6386
  display: block;
6409
6387
  padding: 0 16px;
6410
6388
  }
6411
- .pa8uv20 .shikicode.input.line-numbers {
6412
- padding-left: calc(2ch + 32px);
6413
- }
6414
- .pa8uv20 .shikicode.input:not(.line-numbers) {
6415
- padding-left: 16px;
6416
- }
6417
6389
  .pa8uv20 .line > span:last-child {
6418
6390
  margin-right: 16px;
6419
6391
  }
@@ -6463,13 +6435,13 @@ figure.rich-image[data-display="fixed-height"] img {
6463
6435
  color: #ef4444;
6464
6436
  }
6465
6437
  .pa8uv2f {
6466
- counter-reset: shiki-line 0;
6438
+ counter-reset: code-line 0;
6467
6439
  }
6468
6440
  .pa8uv2f .line {
6469
- counter-increment: shiki-line 1;
6441
+ counter-increment: code-line 1;
6470
6442
  }
6471
6443
  .pa8uv2f .line::before {
6472
- content: counter(shiki-line);
6444
+ content: counter(code-line);
6473
6445
  color: transparent;
6474
6446
  text-align: right;
6475
6447
  box-sizing: content-box;
@@ -6478,10 +6450,20 @@ figure.rich-image[data-display="fixed-height"] img {
6478
6450
  position: sticky;
6479
6451
  left: 0;
6480
6452
  }
6453
+ .pa8uv2g code {
6454
+ min-width: 100%;
6455
+ width: max-content;
6456
+ }
6457
+ .pa8uv20 .pa8uv2g .line {
6458
+ padding-left: 0;
6459
+ }
6481
6460
  .pa8uv2g .line::before {
6482
6461
  color: var(--rc-text-quaternary);
6483
6462
  min-width: calc(var(--rc-ln-digits, 2) * 1ch);
6463
+ padding-left: 16px;
6484
6464
  padding-right: 16px;
6465
+ background-color: var(--rc-code-bg);
6466
+ z-index: 1;
6485
6467
  }
6486
6468
  .pa8uv29 pre::-webkit-scrollbar-track {
6487
6469
  margin-left: 1rem;
@@ -6903,7 +6885,7 @@ pre.rich-code-block, code.rich-code-block {
6903
6885
  user-select: none;
6904
6886
  }
6905
6887
  ._1kngc4rc {
6906
- counter-reset: shiki-line var(--start-line, 0);
6888
+ counter-reset: code-line var(--start-line, 0);
6907
6889
  }
6908
6890
  ._1kngc4rc pre {
6909
6891
  margin: 0;
@@ -6924,8 +6906,8 @@ pre.rich-code-block, code.rich-code-block {
6924
6906
  line-height: 1.5;
6925
6907
  }
6926
6908
  ._1kngc4rc .line::before {
6927
- content: counter(shiki-line);
6928
- counter-increment: shiki-line;
6909
+ content: counter(code-line);
6910
+ counter-increment: code-line;
6929
6911
  flex-shrink: 0;
6930
6912
  width: 4ch;
6931
6913
  text-align: right;