@dreamlake/dockit 0.2.7 → 0.2.8

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.
@@ -51,7 +51,22 @@ function TabStrip() {
51
51
  ref: containerRef,
52
52
  "aria-label": "Documentation sections",
53
53
  className: "flex items-stretch relative m-0 p-0 list-none",
54
- style: { height: "100%" },
54
+ style: {
55
+ height: "100%",
56
+ // Labels never wrap. A second line would grow this row and push
57
+ // the topbar past its fixed 40px, so each tab keeps its
58
+ // intrinsic width (`shrink-0` on the <li>) and the strip clips
59
+ // whatever no longer fits rather than reflowing.
60
+ //
61
+ // `clip`, not `hidden`: the underbar below sits at bottom:-13px,
62
+ // deliberately outside this box. Setting `overflow-x: hidden`
63
+ // makes CSS compute the still-`visible` overflow-y to `auto`,
64
+ // which would clip that bar away (and risk a stray scrollbar).
65
+ // `clip` is the one overflow value that leaves the other axis
66
+ // genuinely visible.
67
+ overflowX: "clip",
68
+ overflowY: "visible"
69
+ },
55
70
  onMouseLeave: () => setHovered(null),
56
71
  children: [
57
72
  visibleTabs.map((tab) => {
@@ -59,7 +74,7 @@ function TabStrip() {
59
74
  return /* @__PURE__ */ jsx(
60
75
  "li",
61
76
  {
62
- className: "flex items-stretch",
77
+ className: "flex items-stretch shrink-0",
63
78
  onMouseEnter: () => setHovered(tab.id),
64
79
  children: /* @__PURE__ */ jsx(
65
80
  "a",
@@ -76,6 +91,7 @@ function TabStrip() {
76
91
  fontWeight: 600,
77
92
  letterSpacing: "0.12em",
78
93
  textTransform: "uppercase",
94
+ whiteSpace: "nowrap",
79
95
  color: isActive || hovered === tab.id ? "var(--color-doc-template-ink)" : "var(--color-doc-template-muted)",
80
96
  cursor: "pointer",
81
97
  transition: "color 0.18s ease"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dreamlake/dockit",
3
- "version": "0.2.7",
4
- "description": "The DreamLake documentation shell — Vike + React + Tailwind v4 + MDX docs framework with sidebar, TOC, search, and theming",
3
+ "version": "0.2.8",
4
+ "description": "The DreamLake documentation shell \u2014 Vike + React + Tailwind v4 + MDX docs framework with sidebar, TOC, search, and theming",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "files": [
@@ -37,6 +37,10 @@
37
37
  },
38
38
  "./styles.css": "./dist/styles.css"
39
39
  },
40
+ "scripts": {
41
+ "build": "vite build",
42
+ "typecheck": "tsc --noEmit"
43
+ },
40
44
  "peerDependencies": {
41
45
  "@mdx-js/react": ">=3.0.0",
42
46
  "react": ">=19.0.0",
@@ -75,9 +79,5 @@
75
79
  "vite": "^7.0.0",
76
80
  "vite-plugin-dts": "^4.3.0",
77
81
  "tailwindcss": "^4.0.0"
78
- },
79
- "scripts": {
80
- "build": "vite build",
81
- "typecheck": "tsc --noEmit"
82
82
  }
83
- }
83
+ }
File without changes
File without changes