@suphark/ui 0.11.0 → 0.11.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  รูปแบบตาม [Keep a Changelog](https://keepachangelog.com/) · semver: patch = หน้าตา/บั๊ก, minor = component/prop ใหม่, major = เปลี่ยน/ลบ props
4
4
 
5
+ ## [0.11.1] — 2026-09-22
6
+
7
+ ### Changed
8
+
9
+ - `SubNav` (AppShell layout top): หัวกลุ่มกับรายการเคยเป็นสี muted เท่ากันจนแยกไม่ออก (ผู้ใช้ Pi Auth ชี้ในหน้า Settings) → หัวกลุ่มเป็น `text-[0.7rem] font-semibold uppercase tracking-wider text-muted-foreground/70`, รายการที่ไม่ active เป็น `text-foreground/80` (hover `text-foreground`), กลุ่มที่ 2 ขึ้นไปมีเส้นคั่น `border-t border-border/60` + `pt-3`; active และ `<select>` บนจอแคบคงเดิม — ไม่มี prop ใหม่ (ขอจาก Pi Auth)
10
+
5
11
  ## [0.11.0] — 2026-09-21
6
12
 
7
13
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suphark/ui",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Design system กลางของ Suphark apps: shadcn/ui (base-nova, Base UI, Tailwind v4) + shared components + token/ฟอนต์ Noto Sans Thai Looped — ส่งเป็น source ให้แอป Next transpile เอง",
@@ -106,9 +106,13 @@ export function SubNav({
106
106
  )}
107
107
  {sections.map((s, si) => (
108
108
  // biome-ignore lint/suspicious/noArrayIndexKey: กลุ่มคงที่
109
- <div key={si} className="flex flex-col gap-0.5">
109
+ <div
110
+ key={si}
111
+ className={cn("flex flex-col gap-0.5", si > 0 && "border-border/60 border-t pt-3")}
112
+ >
113
+ {/* หัวกลุ่มแบบ Clerk/Linear — ตัวเล็ก uppercase จางกว่ารายการ ให้แยกจากรายการได้ชัด (ขอจาก Pi Auth) */}
110
114
  {s.title && (
111
- <p className="px-2 pt-1 pb-0.5 font-medium text-muted-foreground text-xs">
115
+ <p className="px-2 pt-1 pb-1 font-semibold text-[0.7rem] text-muted-foreground/70 uppercase tracking-wider">
112
116
  {s.title}
113
117
  </p>
114
118
  )}
@@ -123,7 +127,7 @@ export function SubNav({
123
127
  "flex items-center gap-2 rounded-md px-2 py-1.5 text-sm no-underline outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/50 [&_svg:not([class*='size-'])]:size-4",
124
128
  active
125
129
  ? "bg-accent font-medium text-accent-foreground"
126
- : "text-muted-foreground hover:bg-accent/60 hover:text-foreground",
130
+ : "text-foreground/80 hover:bg-accent/60 hover:text-foreground",
127
131
  )}
128
132
  >
129
133
  {i.icon}