@stackone/malachite 0.55.1 → 0.57.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.d.ts CHANGED
@@ -456,10 +456,12 @@ export declare interface DropdownItem {
456
456
  id: string;
457
457
  label: string;
458
458
  icon?: default_2.ReactNode;
459
- /** Alternate label shown in the trigger when selected (falls back to `label`). */
459
+ /** Alternate label shown in the closed trigger when selected (falls back to `label`). */
460
460
  triggerLabel?: string;
461
461
  /** Items sharing a `group` render under a section header, in first-seen order. */
462
462
  group?: string;
463
+ /** Descriptive blurb rendered after the label in the open menu only —
464
+ * the closed trigger never shows it. */
463
465
  subtitle?: string;
464
466
  rightSideText?: string;
465
467
  rightSideTextVariant?: 'muted' | 'primary';
@@ -1480,10 +1482,12 @@ export declare interface TabItem {
1480
1482
  disabled?: boolean;
1481
1483
  }
1482
1484
 
1483
- export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, bordered, showHeader, rowKey, scrollHeight, size, layout, headerVariant, rowClassName, rowVariant, onRow, onClickRow, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
1485
+ export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, rowClassName, rowVariant, onRow, onClickRow, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
1484
1486
 
1485
1487
  export declare type TableColumnDefinition<T = Record<string, unknown>> = {
1486
1488
  title: string | default_2.ReactNode;
1489
+ /** Explanatory text shown in a tooltip behind an info icon next to the title. */
1490
+ info?: string;
1487
1491
  dataIndex: keyof T | (string & {});
1488
1492
  key: string;
1489
1493
  width?: string | number;
@@ -1514,12 +1518,18 @@ declare type TableProps<T = Record<string, unknown>> = {
1514
1518
  error?: boolean;
1515
1519
  errorTitle?: string;
1516
1520
  errorSubTitle?: string;
1521
+ emptyTitle?: string;
1522
+ emptySubTitle?: string;
1517
1523
  bordered?: boolean;
1518
1524
  showHeader?: boolean;
1519
1525
  rowKey?: string | ((record: T) => string);
1520
1526
  scrollHeight?: string | number;
1521
1527
  type?: TableType;
1522
1528
  size?: TableSize;
1529
+ /** Vertical density of body rows. 'compact' halves the cell padding so
1530
+ * rows carrying controls (buttons, dropdowns) sit close to text-row
1531
+ * height; headers keep their own padding. */
1532
+ rowDensity?: 'default' | 'compact';
1523
1533
  layout?: 'fixed' | 'auto';
1524
1534
  headerVariant?: TableHeaderVariant;
1525
1535
  rowClassName?: (record: T, index: number) => string;