/** * ไอคอนตามความหมาย (0.94.0) — เลือกจากความหมาย ไม่ใช่รูป: ทุกแอปได้ "ลบ" / "แก้ไข" หน้าตาเดียวกัน * และเปลี่ยนรูปของความหมายใดได้ที่บรรทัดเดียว · เป็นชื่อเรียกอื่นของไอคอน lucide (ไม่เพิ่มขนาด bundle) * แต่ละรูปเลือกจากที่แอปใช้มากที่สุด (สำรวจ 2026-11-01: แพ็กเกจ + supplychain, DueBell, PDF, Pi Done) * * import { ActionDelete, StatusWarning } from "@suphark/ui/icons"; * * ไม่มี "use client" — ใช้ใน server component ได้ · เพิ่ม/เปลี่ยนชื่อ = แก้ `SEMANTIC_ICON_NAMES` ด้วย (หน้า showcase + เทสต์) */ // ---------- คำสั่ง ---------- // ---------- สถานะ ---------- export { Archive as ActionArchive, ArrowUpDown as ActionSort, Check as ActionConfirm, CircleAlert as StatusError, CircleCheck as StatusSuccess, Clock as StatusPending, Copy as ActionCopy, Download as ActionDownload, Ellipsis as ActionMore, ExternalLink as ActionOpenExternal, Eye as ActionView, EyeOff as ActionHide, GripVertical as ActionDrag, History as ActionHistory, Info as StatusInfo, Link2 as ActionLink, ListFilter as ActionFilter, LoaderCircle as StatusLoading, Lock as StatusLocked, Paperclip as ActionAttach, Pencil as ActionEdit, Plus as ActionAdd, Printer as ActionPrint, RefreshCw as ActionRefresh, RotateCcw as ActionUndo, Save as ActionSave, Search as ActionSearch, Send as ActionSend, Settings as ActionSettings, Trash2 as ActionDelete, TriangleAlert as StatusWarning, Upload as ActionUpload, X as ActionClose, } from "lucide-react"; /** ชื่อ → ไอคอน lucide + ความหมาย (หน้า showcase / เทสต์ / ตาราง audit) — ต้องตรงกับ export ข้างบน */ export const SEMANTIC_ICON_NAMES = { ActionAdd: { lucide: "Plus", meaning: "เพิ่ม / สร้างใหม่" }, ActionEdit: { lucide: "Pencil", meaning: "แก้ไข" }, ActionDelete: { lucide: "Trash2", meaning: "ลบ" }, ActionSave: { lucide: "Save", meaning: "บันทึก" }, ActionClose: { lucide: "X", meaning: "ปิด / ยกเลิก / ล้าง" }, ActionConfirm: { lucide: "Check", meaning: "ยืนยัน / เลือกแล้ว" }, ActionCopy: { lucide: "Copy", meaning: "คัดลอก" }, ActionSearch: { lucide: "Search", meaning: "ค้นหา" }, ActionFilter: { lucide: "ListFilter", meaning: "กรอง" }, ActionSort: { lucide: "ArrowUpDown", meaning: "เรียงลำดับ" }, ActionMore: { lucide: "Ellipsis", meaning: "คำสั่งอื่น (⋯)" }, ActionRefresh: { lucide: "RefreshCw", meaning: "รีเฟรช / โหลดใหม่" }, ActionUndo: { lucide: "RotateCcw", meaning: "ย้อนกลับ / รีเซ็ต" }, ActionDownload: { lucide: "Download", meaning: "ดาวน์โหลด / ส่งออก" }, ActionUpload: { lucide: "Upload", meaning: "อัปโหลด / นำเข้า" }, ActionPrint: { lucide: "Printer", meaning: "พิมพ์" }, ActionSend: { lucide: "Send", meaning: "ส่ง" }, ActionArchive: { lucide: "Archive", meaning: "เก็บเข้าคลัง" }, ActionView: { lucide: "Eye", meaning: "ดู / แสดง" }, ActionHide: { lucide: "EyeOff", meaning: "ซ่อน" }, ActionOpenExternal: { lucide: "ExternalLink", meaning: "เปิดในหน้าต่างใหม่" }, ActionLink: { lucide: "Link2", meaning: "ลิงก์" }, ActionAttach: { lucide: "Paperclip", meaning: "แนบไฟล์" }, ActionDrag: { lucide: "GripVertical", meaning: "ที่จับลาก" }, ActionHistory: { lucide: "History", meaning: "ประวัติ" }, ActionSettings: { lucide: "Settings", meaning: "ตั้งค่า" }, StatusSuccess: { lucide: "CircleCheck", meaning: "สำเร็จ" }, StatusWarning: { lucide: "TriangleAlert", meaning: "เตือน" }, StatusError: { lucide: "CircleAlert", meaning: "ผิดพลาด" }, StatusInfo: { lucide: "Info", meaning: "ข้อมูล" }, StatusLoading: { lucide: "LoaderCircle", meaning: "กำลังโหลด (ใส่ animate-spin)" }, StatusPending: { lucide: "Clock", meaning: "รอดำเนินการ" }, StatusLocked: { lucide: "Lock", meaning: "ล็อก / ไม่มีสิทธิ์" }, } as const; export type SemanticIconName = keyof typeof SEMANTIC_ICON_NAMES;