@vercel/geistdocs 1.11.4 → 1.13.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.
Files changed (63) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/controls.d.ts.map +1 -1
  3. package/dist/controls.js +7 -5
  4. package/dist/home-layout.d.ts.map +1 -1
  5. package/dist/home-layout.js +2 -7
  6. package/dist/internal/page-actions-client.d.ts +7 -3
  7. package/dist/internal/page-actions-client.d.ts.map +1 -1
  8. package/dist/internal/page-actions-client.js +82 -67
  9. package/dist/internal/provider-client.d.ts.map +1 -1
  10. package/dist/internal/provider-client.js +1 -1
  11. package/dist/internal/sidebar-responsive.d.ts +3 -0
  12. package/dist/internal/sidebar-responsive.d.ts.map +1 -0
  13. package/dist/internal/sidebar-responsive.js +10 -0
  14. package/dist/internal/sidebar-tree.d.ts +23 -0
  15. package/dist/internal/sidebar-tree.d.ts.map +1 -0
  16. package/dist/internal/sidebar-tree.js +115 -0
  17. package/dist/internal/sidebar.d.ts +2 -5
  18. package/dist/internal/sidebar.d.ts.map +1 -1
  19. package/dist/internal/sidebar.js +282 -44
  20. package/dist/internal/table-of-contents.d.ts +2 -1
  21. package/dist/internal/table-of-contents.d.ts.map +1 -1
  22. package/dist/internal/table-of-contents.js +1 -1
  23. package/dist/internal/ui/button.d.ts.map +1 -1
  24. package/dist/internal/ui/button.js +4 -4
  25. package/dist/internal/ui/dropdown-menu.js +4 -4
  26. package/dist/internal/ui/popover.js +1 -1
  27. package/dist/internal/ui/sheet.d.ts.map +1 -1
  28. package/dist/internal/ui/sheet.js +2 -2
  29. package/dist/layout.d.ts.map +1 -1
  30. package/dist/layout.js +1 -6
  31. package/dist/mdx.d.ts +1 -0
  32. package/dist/mdx.d.ts.map +1 -1
  33. package/dist/mobile-docs-bar.d.ts.map +1 -1
  34. package/dist/mobile-docs-bar.js +3 -3
  35. package/dist/navbar.js +1 -1
  36. package/dist/pages/docs.d.ts +3 -1
  37. package/dist/pages/docs.d.ts.map +1 -1
  38. package/dist/pages/docs.js +16 -10
  39. package/dist/source-config.d.ts +1 -0
  40. package/dist/source-config.d.ts.map +1 -1
  41. package/dist/source-config.js +1 -0
  42. package/dist/source.d.ts +1 -0
  43. package/dist/source.d.ts.map +1 -1
  44. package/dist/source.js +21 -2
  45. package/dist/versions.d.ts.map +1 -1
  46. package/dist/versions.js +3 -3
  47. package/docs/agents.md +2 -2
  48. package/docs/llms.txt +203 -32
  49. package/docs/manifest.json +10 -9
  50. package/docs/pages/configuration.md +9 -2
  51. package/docs/pages/getting-started.md +2 -0
  52. package/docs/pages/guides/nested-navigation.md +174 -13
  53. package/docs/pages/syntax.md +2 -1
  54. package/docs/sitemap.md +1 -1
  55. package/package.json +1 -1
  56. package/source-config.js +1 -0
  57. package/template/app/styles/geistdocs.css +8 -6
  58. package/template/content/docs/configuration.mdx +9 -2
  59. package/template/content/docs/getting-started.mdx +2 -0
  60. package/template/content/docs/guides/nested-navigation.mdx +174 -12
  61. package/template/content/docs/syntax.mdx +2 -1
  62. package/template/package.json +1 -1
  63. package/theme.css +150 -0
package/theme.css CHANGED
@@ -32,6 +32,13 @@
32
32
  --radius-xl: 0.75rem; /* 12px */
33
33
  --radius-2xl: 1rem; /* 16px */
34
34
 
35
+ /* Geist responsive scale */
36
+ --breakpoint-sm: 401px;
37
+ --breakpoint-md: 601px;
38
+ --breakpoint-lg: 961px;
39
+ --breakpoint-xl: 1200px;
40
+ --breakpoint-2xl: 1400px;
41
+
35
42
  --shadow-2xs: var(--ds-shadow-2xs);
36
43
  --shadow-xs: var(--ds-shadow-xs);
37
44
  --shadow-sm: var(--ds-shadow-small);
@@ -288,6 +295,9 @@
288
295
  0px 8px 16px -4px rgba(0, 0, 0, 0.04),
289
296
  0px 24px 32px -8px rgba(0, 0, 0, 0.06), var(--ds-shadow-background-border);
290
297
 
298
+ --ds-focus-ring:
299
+ 0 0 0 2px var(--ds-background-100), 0 0 0 4px var(--ds-blue-700);
300
+
291
301
  --ds-shadow-fullscreen:
292
302
  var(--ds-shadow-border-base), 0px 1px 1px rgba(0, 0, 0, 0.02),
293
303
  0px 8px 16px -4px rgba(0, 0, 0, 0.04),
@@ -443,6 +453,9 @@
443
453
  var(--ds-shadow-border-base), 0px 1px 1px rgba(0, 0, 0, 0.08),
444
454
  0px 8px 16px -4px rgba(0, 0, 0, 0.16),
445
455
  0px 24px 32px -8px rgba(0, 0, 0, 0.24), var(--ds-shadow-background-border);
456
+
457
+ --ds-focus-ring:
458
+ 0 0 0 2px var(--ds-background-100), 0 0 0 4px var(--ds-blue-900);
446
459
  }
447
460
 
448
461
  @layer base {
@@ -746,6 +759,143 @@
746
759
  border-color: var(--ds-gray-alpha-400);
747
760
  }
748
761
 
762
+ @property --geistdocs-sidebar-fade-top {
763
+ syntax: "<length>";
764
+ inherits: false;
765
+ initial-value: 0px;
766
+ }
767
+
768
+ @property --geistdocs-sidebar-fade-bottom {
769
+ syntax: "<length>";
770
+ inherits: false;
771
+ initial-value: 0px;
772
+ }
773
+
774
+ .geistdocs-sidebar-scroll {
775
+ -ms-overflow-style: none;
776
+ scrollbar-width: none;
777
+ }
778
+
779
+ .geistdocs-sidebar-scroll::-webkit-scrollbar {
780
+ display: none;
781
+ }
782
+
783
+ .geistdocs-sidebar-pane {
784
+ transition:
785
+ transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1.1),
786
+ opacity 150ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
787
+ }
788
+
789
+ @media (min-width: 961px) {
790
+ .geistdocs-sidebar-scroll {
791
+ --geistdocs-sidebar-fade-size: 40px;
792
+ scroll-padding-block: var(--geistdocs-sidebar-fade-size);
793
+ mask-image: linear-gradient(
794
+ to bottom,
795
+ transparent 0,
796
+ black var(--geistdocs-sidebar-fade-top),
797
+ black calc(100% - var(--geistdocs-sidebar-fade-bottom)),
798
+ transparent 100%
799
+ );
800
+ transition:
801
+ --geistdocs-sidebar-fade-top 150ms ease,
802
+ --geistdocs-sidebar-fade-bottom 150ms ease;
803
+ }
804
+
805
+ .geistdocs-sidebar-scroll[data-fade-top="true"] {
806
+ --geistdocs-sidebar-fade-top: var(--geistdocs-sidebar-fade-size);
807
+ }
808
+
809
+ .geistdocs-sidebar-scroll[data-fade-bottom="true"] {
810
+ --geistdocs-sidebar-fade-bottom: var(--geistdocs-sidebar-fade-size);
811
+ }
812
+
813
+ @supports (animation-timeline: scroll()) {
814
+ .geistdocs-sidebar-scroll {
815
+ animation:
816
+ geistdocs-sidebar-fade-top linear both,
817
+ geistdocs-sidebar-fade-bottom linear both;
818
+ animation-range:
819
+ 0 var(--geistdocs-sidebar-fade-size),
820
+ calc(100% - var(--geistdocs-sidebar-fade-size)) 100%;
821
+ animation-timeline: scroll(self), scroll(self);
822
+ }
823
+
824
+ @keyframes geistdocs-sidebar-fade-top {
825
+ to {
826
+ --geistdocs-sidebar-fade-top: var(--geistdocs-sidebar-fade-size);
827
+ }
828
+ }
829
+
830
+ @keyframes geistdocs-sidebar-fade-bottom {
831
+ from {
832
+ --geistdocs-sidebar-fade-bottom: var(--geistdocs-sidebar-fade-size);
833
+ }
834
+ }
835
+ }
836
+ }
837
+
838
+ @container (max-width: 960px) {
839
+ #nd-page > .text-fd-muted-foreground:first-child {
840
+ display: none;
841
+ }
842
+ }
843
+
844
+ [data-geistdocs-mobile-sidebar] [data-slot="sheet-header"] {
845
+ height: calc(4rem + env(safe-area-inset-top));
846
+ padding-top: env(safe-area-inset-top);
847
+ padding-right: max(1rem, env(safe-area-inset-right));
848
+ padding-left: max(1rem, env(safe-area-inset-left));
849
+ }
850
+
851
+ [data-geistdocs-mobile-sidebar] nav {
852
+ padding-right: max(0.5rem, env(safe-area-inset-right));
853
+ padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
854
+ padding-left: max(0.5rem, env(safe-area-inset-left));
855
+ }
856
+
857
+ [data-geistdocs-mobile-sidebar] [data-slot="sheet-close"] {
858
+ top: calc(1rem + env(safe-area-inset-top));
859
+ right: max(1rem, env(safe-area-inset-right));
860
+ }
861
+
862
+ [data-geistdocs-mobile-toc] [data-slot="sheet-close"] {
863
+ top: calc(1rem + env(safe-area-inset-top));
864
+ right: max(1rem, env(safe-area-inset-right));
865
+ }
866
+
867
+ [data-geistdocs-mobile-toc] [data-slot="sheet-header"] {
868
+ padding-top: max(1rem, env(safe-area-inset-top));
869
+ padding-right: max(1rem, env(safe-area-inset-right));
870
+ padding-left: max(1rem, env(safe-area-inset-left));
871
+ }
872
+
873
+ [data-geistdocs-mobile-toc] nav {
874
+ padding-right: max(1rem, env(safe-area-inset-right));
875
+ padding-bottom: max(1rem, env(safe-area-inset-bottom));
876
+ padding-left: max(1rem, env(safe-area-inset-left));
877
+ }
878
+
879
+ [data-mobile-docs-bar] {
880
+ padding-right: max(1.5rem, env(safe-area-inset-right));
881
+ padding-left: max(1.5rem, env(safe-area-inset-left));
882
+ }
883
+
884
+ @media (prefers-reduced-motion: reduce) {
885
+ .geistdocs-sidebar-pane,
886
+ .geistdocs-sidebar-scroll,
887
+ body:has([data-home-route]) header {
888
+ transition: none;
889
+ animation: none;
890
+ }
891
+ }
892
+
893
+ @media (min-width: 1200px) {
894
+ [data-mobile-toc-trigger] {
895
+ display: none;
896
+ }
897
+ }
898
+
749
899
  /* On home routes (GeistdocsHomeLayout renders the [data-home-route] marker),
750
900
  the navbar starts borderless and fades its bottom border in only once the
751
901
  page is scrolled (ScrollState toggles [data-scrolled] on <html>). */