gm-datagrid 0.1.30 → 0.1.31

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/README.md CHANGED
@@ -104,6 +104,8 @@ export default function ProductsPage() {
104
104
  | `stickyHeader` | `boolean` | `true` | Sticky column header and filter row inside the scroll area |
105
105
  | `locale` | `'es' \| 'en'` | `'es'` | Built-in UI language. See [Internationalisation](#internationalisation-locale) |
106
106
 
107
+ **Column types (built-in cells):** `BOOLEAN` → Sí/No chips; `DATE_TIME` or `DATETIME` alias → `DD/MM/YYYY HH:mm:ss`; `CODE` → monospace with `—` when empty.
108
+
107
109
  ### Pagination props
108
110
 
109
111
  | Prop | Type | Default | Description |
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface BooleanCellProps {
3
+ value: unknown;
4
+ /** Display labels when value is coerced to boolean */
5
+ trueLabel?: string;
6
+ falseLabel?: string;
7
+ }
8
+ /**
9
+ * Read-only boolean chip (Sí / No by default).
10
+ */
11
+ declare const BooleanCell: React.NamedExoticComponent<BooleanCellProps>;
12
+ export default BooleanCell;