@starasia/admin 14.31.0 → 14.32.0
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/dist/index.cjs.js +1 -1
- package/dist/index.es.js +24 -21
- package/dist/index.umd.js +1 -1
- package/dist/types/menu.d.ts +7 -0
- package/package.json +1 -1
package/dist/types/menu.d.ts
CHANGED
|
@@ -74,6 +74,11 @@ export interface SidebarRailItem {
|
|
|
74
74
|
icon: IconName;
|
|
75
75
|
/** Label di bawah ikon. Buat pendek (±8 karakter) — sisanya di-ellipsis + tooltip. */
|
|
76
76
|
label: string;
|
|
77
|
+
/**
|
|
78
|
+
* Teks tooltip saat hover — mis. nama lengkap kategori saat `label` disingkat
|
|
79
|
+
* ("HR" → "Human Resource"). Default: `label`.
|
|
80
|
+
*/
|
|
81
|
+
tooltip?: string;
|
|
77
82
|
/**
|
|
78
83
|
* Group (`SidebarMenuGroup.id`) yang tampil di panel saat item ini aktif.
|
|
79
84
|
* Group anak (`parentGroupId` ada di sini) ikut tampil.
|
|
@@ -87,6 +92,8 @@ export interface SidebarRailAction {
|
|
|
87
92
|
key: string;
|
|
88
93
|
icon: IconName;
|
|
89
94
|
label: string;
|
|
95
|
+
/** Teks tooltip saat hover. Default: `label`. */
|
|
96
|
+
tooltip?: string;
|
|
90
97
|
/** Navigasi ke route ini saat diklik. Diabaikan kalau `onClick` diisi. */
|
|
91
98
|
to?: string;
|
|
92
99
|
onClick?: () => void;
|