@tmlmobilidade/ui 20250710.1005.34 → 20250710.1009.12

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.d.ts CHANGED
@@ -280,10 +280,6 @@ interface TextInputProps extends TextInputProps$1 {
280
280
  declare function TextInput({ classNames, error, validation, value, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
281
281
 
282
282
  interface DataTableProps<T> {
283
- /**
284
- * The classnames to be applied to the table.
285
- */
286
- classnames?: Partial<Record<'body' | 'cell' | 'footer' | 'header' | 'root' | 'row' | 'table' | 'tableWrapper', string>>;
287
283
  /**
288
284
  * The column configuration for the table.
289
285
  */
@@ -295,17 +291,17 @@ interface DataTableProps<T> {
295
291
  maxHeight?: number;
296
292
  /**
297
293
  * Callback function to handle row click events.
298
- * @param record - The data record for the clicked row.
294
+ * @param record The data record for the clicked row.
299
295
  */
300
296
  onRowClick?: (record: T) => void;
301
297
  /**
302
298
  * Callback function to handle row context menu events.
303
- * @param record - The data record for the row where the context menu was triggered.
299
+ * @param record The data record for the row where the context menu was triggered.
304
300
  */
305
301
  onRowContextMenu?: (record: T) => void;
306
302
  /**
307
303
  * Callback function to handle row double-click events.
308
- * @param record - The data record for the double-clicked row.
304
+ * @param record The data record for the double-clicked row.
309
305
  */
310
306
  onRowDoubleClick?: (record: T) => void;
311
307
  /**
@@ -315,15 +311,13 @@ interface DataTableProps<T> {
315
311
  /**
316
312
  * The id of each table row.
317
313
  */
318
- rowIdAccessor?: keyof T | (string & {});
314
+ rowIdAccessor?: keyof T;
319
315
  }
320
316
  interface DataTableColumn<T> {
321
317
  /**
322
- * Column accessor.
323
- * You can use dot-notation for nested objects property drilling.
324
- * (i.e. `department.name` or `department.company.name`)
318
+ * The row's object property key.
325
319
  */
326
- accessor: keyof T | (string & {});
320
+ accessor: keyof T;
327
321
  /**
328
322
  * Center the column content.
329
323
  * @default false
@@ -353,16 +347,13 @@ interface DataTableColumn<T> {
353
347
  */
354
348
  sortKey?: string;
355
349
  /**
356
- * Optional column header title.
357
- * If not present, one will be generated by "humanizing" the provided column accessor.
358
- * (i.e. `firstName` -> `First name`; `user.firstName` -> `User first name`)
350
+ * The column header title.
359
351
  */
360
- title?: React.ReactNode | string;
352
+ title: string;
361
353
  /**
362
354
  * The width of the column in pixels.
363
- * @default 100%
364
355
  */
365
- width?: number;
356
+ width: number;
366
357
  }
367
358
  declare function DataTable<T>({ records, ...props }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
368
359
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/datatable/DataTable/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAoHA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAI,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,EAAqB,CAAA,CAAA;IACpE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACCA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,CAAA,CAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,WACjEA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAA,MAAK,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAI,CAAA,CAAA,CACL,CAAA;AAE7B;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ui",
3
3
  "description": "UI components for Transportes Metropolitanos de Lisboa (TML) web applications.",
4
- "version": "20250710.1005.34",
4
+ "version": "20250710.1009.12",
5
5
  "author": "João de Vasconcelos & Jusi Monteiro",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "publishConfig": {