@starasia/admin 15.0.0 → 16.0.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/components/TableLayout/types.d.ts +9 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +451 -448
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -62,6 +62,8 @@ export interface TableLayoutFooterCell {
|
|
|
62
62
|
rowSpan?: number;
|
|
63
63
|
/** Perataan teks sel. Default `'left'`. */
|
|
64
64
|
align?: TableLayoutAlign;
|
|
65
|
+
/** Sel angka (mis. total) — pakai tabular figures agar sejajar dengan kolomnya. */
|
|
66
|
+
numeric?: boolean;
|
|
65
67
|
}
|
|
66
68
|
/** Satu baris footer (<tr> di dalam <tfoot>). */
|
|
67
69
|
export interface TableLayoutFooterRow {
|
|
@@ -83,6 +85,13 @@ export interface TableLayoutColumn<T> {
|
|
|
83
85
|
render?: (row: T, rowIndex: number, data: T[]) => ReactNode;
|
|
84
86
|
/** perataan header + cell (default 'left') */
|
|
85
87
|
align?: TableLayoutAlign;
|
|
88
|
+
/**
|
|
89
|
+
* Kolom angka — header + cell dirender dengan tabular figures (lebar per digit
|
|
90
|
+
* seragam) supaya angka rata vertikal antar baris dan mudah dibandingkan.
|
|
91
|
+
* Tidak mengubah perataan; untuk kolom numerik umumnya pasangkan dengan
|
|
92
|
+
* `align: 'right'`.
|
|
93
|
+
*/
|
|
94
|
+
numeric?: boolean;
|
|
86
95
|
/**
|
|
87
96
|
* Warnai kolom ini (background tint). Token statis → SELURUH kolom bertint.
|
|
88
97
|
* Fungsi `(row, rowIndex, data) => warna | undefined` → pewarnaan kondisional
|