camelmind 0.2.9 → 0.2.10

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": "camelmind",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Create and manage CamelMind documentation sites",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,8 +46,39 @@ export function Tabs({ children }: { children: React.ReactNode }) {
46
46
  if (tabs.length === 0) return null
47
47
 
48
48
  return (
49
- <div className="my-4">
50
- {/* rest of your JSX stays the same */}
49
+ <div className="my-4 border border-[var(--cm-border)] rounded-[var(--cm-radius-md)] overflow-hidden">
50
+ <div className="flex border-b border-[var(--cm-border)] px-2 pt-1" role="tablist">
51
+ {tabs.map((tab, i) => (
52
+ <button
53
+ key={i}
54
+ role="tab"
55
+ aria-selected={active === i}
56
+ aria-controls={`tab-panel-${uid}-${i}`}
57
+ id={`tab-${uid}-${i}`}
58
+ onClick={() => handleClick(i)}
59
+ style={active === i ? { borderColor: "var(--cm-active-border)", color: "var(--cm-active)" } : {}}
60
+ className={`px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors ${
61
+ active === i
62
+ ? "font-semibold"
63
+ : "border-transparent text-[var(--cm-text-muted)] hover:text-[var(--cm-text-secondary)] hover:border-[var(--cm-border)]"
64
+ }`}
65
+ >
66
+ {tab.props.label}
67
+ </button>
68
+ ))}
69
+ </div>
70
+ {tabs.map((tab, i) => (
71
+ <div
72
+ key={i}
73
+ role="tabpanel"
74
+ id={`tab-panel-${uid}-${i}`}
75
+ aria-labelledby={`tab-${uid}-${i}`}
76
+ hidden={active !== i}
77
+ className="px-4 pt-4 pb-2"
78
+ >
79
+ {tab.props.children}
80
+ </div>
81
+ ))}
51
82
  </div>
52
83
  )
53
84
  }
Binary file