specra 0.2.2 → 0.2.4

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 (32) hide show
  1. package/config/specra.config.schema.json +9 -14
  2. package/dist/components/docs/Callout.svelte +5 -4
  3. package/dist/components/docs/CodeBlock.svelte +2 -2
  4. package/dist/components/docs/DocLayout.svelte +1 -1
  5. package/dist/components/docs/Header.svelte +73 -3
  6. package/dist/components/docs/Header.svelte.d.ts +11 -0
  7. package/dist/components/docs/MdxLayout.svelte +1 -1
  8. package/dist/components/docs/MobileDocLayout.svelte +3 -15
  9. package/dist/components/docs/Sidebar.svelte +4 -11
  10. package/dist/components/docs/SidebarMenuItems.svelte +1 -3
  11. package/dist/components/docs/Step.svelte +2 -2
  12. package/dist/components/docs/TabGroups.svelte +2 -2
  13. package/dist/components/docs/TableOfContents.svelte +3 -10
  14. package/dist/components/docs/Timeline.svelte +15 -0
  15. package/dist/components/docs/Timeline.svelte.d.ts +7 -0
  16. package/dist/components/docs/TimelineItem.svelte +50 -0
  17. package/dist/components/docs/TimelineItem.svelte.d.ts +10 -0
  18. package/dist/components/docs/VersionBanner.svelte +60 -0
  19. package/dist/components/docs/VersionBanner.svelte.d.ts +10 -0
  20. package/dist/components/docs/VersionSwitcher.svelte +40 -13
  21. package/dist/components/docs/VersionSwitcher.svelte.d.ts +7 -0
  22. package/dist/components/docs/componentTextProps.js +2 -0
  23. package/dist/components/docs/index.d.ts +3 -0
  24. package/dist/components/docs/index.js +3 -0
  25. package/dist/config.d.ts +1 -1
  26. package/dist/config.server.d.ts +28 -1
  27. package/dist/config.server.js +66 -0
  28. package/dist/config.types.d.ts +25 -0
  29. package/dist/mdx-components.js +4 -2
  30. package/dist/mdx.js +325 -42
  31. package/dist/styles/globals.css +71 -0
  32. package/package.json +1 -1
@@ -147,6 +147,8 @@
147
147
  scroll-behavior: smooth;
148
148
  /* Always reserve space for scrollbar to prevent layout shift */
149
149
  scrollbar-gutter: stable;
150
+ /* Default header height — updated dynamically by Header component's ResizeObserver */
151
+ --header-height: 4rem;
150
152
  }
151
153
 
152
154
  body {
@@ -420,6 +422,75 @@ pre code {
420
422
  margin-bottom: 0.75rem;
421
423
  }
422
424
 
425
+ /* Override Tailwind typography's padding-inline-start on lists.
426
+ The plugin applies ~1.625em to every ol/ul, which compounds on
427
+ nested lists — each level pushes content further right.
428
+ Top-level lists get a modest indent; nested lists get less. */
429
+ .prose :where(ol, ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
430
+ padding-inline-start: 1.25em;
431
+ }
432
+
433
+ .prose :where(li ol, li ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
434
+ padding-inline-start: 1em;
435
+ }
436
+
437
+ /* Table styles - bordered with rounded corners matching CodeBlock/Callout */
438
+ .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
439
+ border-collapse: separate;
440
+ border-spacing: 0;
441
+ border: 1px solid var(--border);
442
+ border-radius: 0.75rem;
443
+ overflow: hidden;
444
+ width: 100%;
445
+ margin-top: 1rem;
446
+ margin-bottom: 1rem;
447
+ display: block;
448
+ overflow-x: auto;
449
+ -webkit-overflow-scrolling: touch;
450
+ }
451
+
452
+ .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
453
+ background: var(--muted);
454
+ }
455
+
456
+ .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
457
+ border-bottom: 1px solid var(--border);
458
+ border-right: 1px solid var(--border);
459
+ padding: 0.625rem 1rem;
460
+ font-weight: 600;
461
+ font-size: 0.875rem;
462
+ text-align: left;
463
+ color: var(--foreground);
464
+ }
465
+
466
+ .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
467
+ border-right: none;
468
+ }
469
+
470
+ .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
471
+ border-bottom: 1px solid var(--border);
472
+ border-right: 1px solid var(--border);
473
+ padding: 0.625rem 1rem;
474
+ font-size: 0.875rem;
475
+ color: var(--muted-foreground);
476
+ }
477
+
478
+ .prose :where(tbody td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
479
+ border-right: none;
480
+ }
481
+
482
+ .prose :where(tbody tr:last-child td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
483
+ border-bottom: none;
484
+ }
485
+
486
+ .prose :where(tbody tr:hover):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
487
+ background: var(--muted);
488
+ }
489
+
490
+ .dark .prose :where(tbody tr:hover):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
491
+ background: var(--muted);
492
+ }
493
+
423
494
  html body[data-scroll-locked] {
424
495
  overflow: visible !important;
425
496
  margin-right: 0 !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specra",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A modern documentation library for SvelteKit with built-in versioning, API reference generation, full-text search, and MDX support",
5
5
  "svelte": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",