@worldresources/wri-design-systems 2.194.3 → 2.194.5

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
@@ -452,7 +452,11 @@ type RichTextEditorLabels = {
452
452
  /** Short text rendered inside the bold control icon button (for example: B, N). */
453
453
  boldIconText: string;
454
454
  italicTooltip: string;
455
+ /** Short text rendered inside the italic control icon button (for example: I, K). */
456
+ italicIconText: string;
455
457
  underlineTooltip: string;
458
+ /** Short text rendered inside the underline control icon button (for example: U, S). */
459
+ underlineIconText: string;
456
460
  strikethroughTooltip: string;
457
461
  bulletListTooltip: string;
458
462
  orderedListTooltip: string;
@@ -1250,6 +1254,8 @@ type TableColumn = {
1250
1254
  label: string;
1251
1255
  sortable?: boolean;
1252
1256
  width?: string;
1257
+ /** Optional custom renderer for this column cell. */
1258
+ cell?: (row: any) => ReactNode;
1253
1259
  /** When true, this column sticks to the left during horizontal scroll. */
1254
1260
  sticky?: boolean;
1255
1261
  };
@@ -1260,7 +1266,7 @@ type TableRenderRowContext = {
1260
1266
  type TableProps = {
1261
1267
  columns: TableColumn[];
1262
1268
  data?: any;
1263
- renderRow: (row: any, context?: TableRenderRowContext) => ReactNode;
1269
+ renderRow?: (row: any, context?: TableRenderRowContext) => ReactNode;
1264
1270
  striped?: boolean;
1265
1271
  stickyHeader?: boolean;
1266
1272
  selectable?: boolean;
@@ -1280,6 +1286,7 @@ type TableProps = {
1280
1286
  onPageSizeChange?: (pageSize: number) => void;
1281
1287
  onPageChange?: (page: number) => void;
1282
1288
  onAllItemsSelected?: (checked: boolean) => void;
1289
+ onRowSelected?: (row: any, checked: boolean) => void;
1283
1290
  loading?: boolean;
1284
1291
  /** When set, the table scrolls vertically within this height and horizontally when it overflows its container (e.g. '400px', '60vh'). */
1285
1292
  height?: string;
@@ -1287,7 +1294,7 @@ type TableProps = {
1287
1294
  labels?: Partial<TableLabels>;
1288
1295
  };
1289
1296
 
1290
- declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, variant, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, loading, height, labels, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
1297
+ declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, variant, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, onRowSelected, loading, height, labels, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
1291
1298
 
1292
1299
  declare const TableRow: React__default.ForwardRefExoticComponent<Table$1.RowProps & React__default.RefAttributes<HTMLTableRowElement>>;
1293
1300
  declare const TableCell: React__default.ForwardRefExoticComponent<Table$1.CellProps & React__default.RefAttributes<HTMLTableCellElement>>;