@farming-labs/theme 0.2.45 → 0.2.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -146,7 +146,7 @@
146
146
  "tsdown": "^0.20.3",
147
147
  "typescript": "^5.9.3",
148
148
  "vitest": "^4.1.8",
149
- "@farming-labs/docs": "0.2.45"
149
+ "@farming-labs/docs": "0.2.46"
150
150
  },
151
151
  "peerDependencies": {
152
152
  "@farming-labs/docs": ">=0.0.1",
@@ -8704,6 +8704,15 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
8704
8704
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
8705
8705
  }
8706
8706
 
8707
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title-text,
8708
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title figcaption {
8709
+ min-width: 0;
8710
+ flex: 1;
8711
+ overflow: hidden;
8712
+ text-overflow: ellipsis;
8713
+ white-space: nowrap;
8714
+ }
8715
+
8707
8716
  #nd-docs-layout[data-fd-framework] .fd-codeblock-title + .fd-copy-btn ~ pre {
8708
8717
  border-top-left-radius: 0 !important;
8709
8718
  border-top-right-radius: 0 !important;
@@ -8714,6 +8723,21 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
8714
8723
  border-top-right-radius: 0 !important;
8715
8724
  }
8716
8725
 
8726
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions {
8727
+ display: inline-flex;
8728
+ align-items: center;
8729
+ justify-content: center;
8730
+ flex: 0 0 auto;
8731
+ margin-left: auto;
8732
+ }
8733
+
8734
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions-floating {
8735
+ position: absolute;
8736
+ top: 4px;
8737
+ right: 4px;
8738
+ z-index: 2;
8739
+ }
8740
+
8717
8741
  #nd-docs-layout[data-fd-framework] .fd-copy-btn {
8718
8742
  position: absolute;
8719
8743
  top: 4px;
@@ -8737,6 +8761,18 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
8737
8761
  background 0.15s;
8738
8762
  }
8739
8763
 
8764
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions .fd-copy-btn,
8765
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions-floating .fd-copy-btn,
8766
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn {
8767
+ position: static;
8768
+ width: 28px;
8769
+ height: 28px;
8770
+ }
8771
+
8772
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn {
8773
+ opacity: 1;
8774
+ }
8775
+
8740
8776
  #nd-docs-layout[data-fd-framework] .fd-codeblock:hover .fd-copy-btn {
8741
8777
  opacity: 1;
8742
8778
  }
@@ -8787,7 +8823,8 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
8787
8823
  color: var(--color-fd-foreground);
8788
8824
  }
8789
8825
 
8790
- #nd-docs-layout[data-fd-framework] .fd-tab-trigger.fd-tab-active {
8826
+ #nd-docs-layout[data-fd-framework] .fd-tab-trigger.fd-tab-active,
8827
+ #nd-docs-layout[data-fd-framework] .fd-tab-trigger[data-state="active"] {
8791
8828
  color: var(--color-fd-foreground);
8792
8829
  font-weight: 600;
8793
8830
  border-bottom-color: var(--color-fd-primary);
@@ -8797,7 +8834,14 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
8797
8834
  display: none;
8798
8835
  }
8799
8836
 
8800
- #nd-docs-layout[data-fd-framework] .fd-tab-panel-active {
8837
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel[data-state="inactive"],
8838
+ #nd-docs-layout[data-fd-framework] .fd-code-group-panel[data-state="inactive"] {
8839
+ display: none;
8840
+ }
8841
+
8842
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel-active,
8843
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel[data-state="active"],
8844
+ #nd-docs-layout[data-fd-framework] .fd-code-group-panel[data-state="active"] {
8801
8845
  display: block;
8802
8846
  }
8803
8847
 
@@ -1704,6 +1704,15 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
1704
1704
  border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
1705
1705
  }
1706
1706
 
1707
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title-text,
1708
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title figcaption {
1709
+ min-width: 0;
1710
+ flex: 1;
1711
+ overflow: hidden;
1712
+ text-overflow: ellipsis;
1713
+ white-space: nowrap;
1714
+ }
1715
+
1707
1716
  #nd-docs-layout[data-fd-framework] .fd-codeblock-title + .fd-copy-btn ~ pre {
1708
1717
  border-top-left-radius: 0 !important;
1709
1718
  border-top-right-radius: 0 !important;
@@ -1714,6 +1723,21 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
1714
1723
  border-top-right-radius: 0 !important;
1715
1724
  }
1716
1725
 
1726
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions {
1727
+ display: inline-flex;
1728
+ align-items: center;
1729
+ justify-content: center;
1730
+ flex: 0 0 auto;
1731
+ margin-left: auto;
1732
+ }
1733
+
1734
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions-floating {
1735
+ position: absolute;
1736
+ top: 4px;
1737
+ right: 4px;
1738
+ z-index: 2;
1739
+ }
1740
+
1717
1741
  #nd-docs-layout[data-fd-framework] .fd-copy-btn {
1718
1742
  position: absolute;
1719
1743
  top: 4px;
@@ -1737,6 +1761,18 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
1737
1761
  background 0.15s;
1738
1762
  }
1739
1763
 
1764
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions .fd-copy-btn,
1765
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-actions-floating .fd-copy-btn,
1766
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn {
1767
+ position: static;
1768
+ width: 28px;
1769
+ height: 28px;
1770
+ }
1771
+
1772
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn {
1773
+ opacity: 1;
1774
+ }
1775
+
1740
1776
  #nd-docs-layout[data-fd-framework] .fd-codeblock:hover .fd-copy-btn {
1741
1777
  opacity: 1;
1742
1778
  }
@@ -1789,7 +1825,8 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
1789
1825
  color: var(--color-fd-foreground);
1790
1826
  }
1791
1827
 
1792
- #nd-docs-layout[data-fd-framework] .fd-tab-trigger.fd-tab-active {
1828
+ #nd-docs-layout[data-fd-framework] .fd-tab-trigger.fd-tab-active,
1829
+ #nd-docs-layout[data-fd-framework] .fd-tab-trigger[data-state="active"] {
1793
1830
  color: var(--color-fd-foreground);
1794
1831
  font-weight: 600;
1795
1832
  border-bottom-color: var(--color-fd-primary);
@@ -1799,7 +1836,14 @@ html.dark #nd-docs-layout[data-fd-framework] pre.shiki {
1799
1836
  display: none;
1800
1837
  }
1801
1838
 
1802
- #nd-docs-layout[data-fd-framework] .fd-tab-panel-active {
1839
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel[data-state="inactive"],
1840
+ #nd-docs-layout[data-fd-framework] .fd-code-group-panel[data-state="inactive"] {
1841
+ display: none;
1842
+ }
1843
+
1844
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel-active,
1845
+ #nd-docs-layout[data-fd-framework] .fd-tab-panel[data-state="active"],
1846
+ #nd-docs-layout[data-fd-framework] .fd-code-group-panel[data-state="active"] {
1803
1847
  display: block;
1804
1848
  }
1805
1849
 
@@ -603,6 +603,7 @@ aside button[class*="bg-fd-secondary"] {
603
603
  #nd-docs-layout article#nd-page figure.shiki figcaption,
604
604
  .fd-docs-content .fd-codeblock-title,
605
605
  #nd-docs-layout[data-fd-framework] .fd-codeblock-title {
606
+ box-sizing: border-box;
606
607
  min-height: 40px;
607
608
  padding: 8px 14px !important;
608
609
  border: 0 !important;
@@ -615,11 +616,47 @@ aside button[class*="bg-fd-secondary"] {
615
616
  line-height: 1.45;
616
617
  }
617
618
 
619
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title {
620
+ height: 40px;
621
+ }
622
+
618
623
  .fd-docs-content figure.shiki:has(figcaption) > div:first-child::before,
619
624
  #nd-docs-layout article#nd-page figure.shiki:has(figcaption) > div:first-child::before {
620
625
  display: none;
621
626
  }
622
627
 
628
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-codeblock-title-text {
629
+ min-height: 0;
630
+ padding: 0 14px;
631
+ border: 0 !important;
632
+ background: transparent !important;
633
+ line-height: inherit;
634
+ }
635
+
636
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-codeblock-actions {
637
+ margin-inline-end: -8px;
638
+ }
639
+
640
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn {
641
+ width: 24px !important;
642
+ height: 24px !important;
643
+ border: 0 !important;
644
+ background: transparent !important;
645
+ box-shadow: none !important;
646
+ color: var(--color-fd-muted-foreground) !important;
647
+ opacity: 0 !important;
648
+ }
649
+
650
+ #nd-docs-layout[data-fd-framework] .fd-codeblock:hover .fd-codeblock-title .fd-copy-btn,
651
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn:focus-visible {
652
+ opacity: 1 !important;
653
+ }
654
+
655
+ #nd-docs-layout[data-fd-framework] .fd-codeblock-title .fd-copy-btn:hover {
656
+ background: transparent !important;
657
+ color: var(--color-fd-foreground) !important;
658
+ }
659
+
623
660
  .fd-docs-content figure.shiki > div[role="region"],
624
661
  #nd-docs-layout article#nd-page figure.shiki > div[role="region"],
625
662
  .fd-docs-content .fd-codeblock-content,