@suphark/ui 0.20.0 → 0.20.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.20.1] — 2026-10-01
6
+
7
+ ### Fixed
8
+
9
+ - **`confirm.requireText` ถูกทิ้งเงียบ ๆ** (รายงานจาก Pi Config): `RowActions`, `ConfirmActionButton` และ `ActionMenu` ส่งให้ `ConfirmDialog` แค่ title/description/label/destructive — ใส่ `confirm: { requireText: slug }` แล้วลบได้ด้วยคลิกเดียวทั้งที่ `ConfirmSpec` ประกาศว่ารองรับ → ส่ง `requireText` + `requireTextLabel` ต่อครบทั้งสามที่; tests 2 กรณี (รวม 185)
10
+
5
11
  ## [0.20.0] — 2026-10-01
6
12
 
7
13
  ขั้น "layout" ของแผนรวม UI ทุกแอป (ดู `todo/todo.md`) — เพิ่มอย่างเดียว ไม่มี prop เดิมเปลี่ยนความหมาย
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suphark/ui",
3
- "version": "0.20.0",
3
+ "version": "0.20.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 เอง",
@@ -142,6 +142,8 @@ export function ActionMenu({
142
142
  description={spec.description}
143
143
  confirmLabel={spec.confirmLabel}
144
144
  cancelLabel={spec.cancelLabel}
145
+ requireText={spec.requireText}
146
+ requireTextLabel={spec.requireTextLabel}
145
147
  destructive={spec.destructive ?? confirming.destructive}
146
148
  pending={pending}
147
149
  onConfirm={async () => {
@@ -66,6 +66,8 @@ export function ConfirmActionButton({
66
66
  description={spec.description}
67
67
  confirmLabel={spec.confirmLabel}
68
68
  cancelLabel={spec.cancelLabel}
69
+ requireText={spec.requireText}
70
+ requireTextLabel={spec.requireTextLabel}
69
71
  destructive={destructive}
70
72
  pending={pending}
71
73
  onConfirm={() => {
@@ -117,6 +117,8 @@ export function RowActions({ items, label }: { items: RowAction[]; label?: strin
117
117
  description={spec.description}
118
118
  confirmLabel={spec.confirmLabel}
119
119
  cancelLabel={spec.cancelLabel}
120
+ requireText={spec.requireText}
121
+ requireTextLabel={spec.requireTextLabel}
120
122
  destructive={spec.destructive ?? confirming.destructive}
121
123
  onConfirm={() => {
122
124
  const it = confirming;