@stackone/malachite 0.56.0 → 0.58.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 +13 -5
- package/dist/index.js +2146 -2144
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,10 +52,12 @@ export declare type AccordionProps = AccordionBaseProps & ({
|
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* ActionMenu is a kebab-style overflow action menu. The trigger
|
|
56
|
-
* three-dot icon
|
|
57
|
-
* The popover is rendered to document.body via
|
|
58
|
-
* any Shadow DOM or overflow:hidden ancestors
|
|
55
|
+
* ActionMenu is a kebab-style overflow action menu. The trigger is a square
|
|
56
|
+
* icon-only outline Button (three-dot icon by default); on click, a popover
|
|
57
|
+
* appears with the given items. The popover is rendered to document.body via
|
|
58
|
+
* createPortal so it escapes any Shadow DOM or overflow:hidden ancestors —
|
|
59
|
+
* which is also why the popover is styled inline rather than with Tailwind:
|
|
60
|
+
* the scoped stylesheet does not reach document.body.
|
|
59
61
|
*/
|
|
60
62
|
export declare const ActionMenu: default_2.FC<ActionMenuProps>;
|
|
61
63
|
|
|
@@ -1482,7 +1484,7 @@ export declare interface TabItem {
|
|
|
1482
1484
|
disabled?: boolean;
|
|
1483
1485
|
}
|
|
1484
1486
|
|
|
1485
|
-
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;
|
|
1487
|
+
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;
|
|
1486
1488
|
|
|
1487
1489
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
1488
1490
|
title: string | default_2.ReactNode;
|
|
@@ -1518,12 +1520,18 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
1518
1520
|
error?: boolean;
|
|
1519
1521
|
errorTitle?: string;
|
|
1520
1522
|
errorSubTitle?: string;
|
|
1523
|
+
emptyTitle?: string;
|
|
1524
|
+
emptySubTitle?: string;
|
|
1521
1525
|
bordered?: boolean;
|
|
1522
1526
|
showHeader?: boolean;
|
|
1523
1527
|
rowKey?: string | ((record: T) => string);
|
|
1524
1528
|
scrollHeight?: string | number;
|
|
1525
1529
|
type?: TableType;
|
|
1526
1530
|
size?: TableSize;
|
|
1531
|
+
/** Vertical density of body rows. 'compact' halves the cell padding so
|
|
1532
|
+
* rows carrying controls (buttons, dropdowns) sit close to text-row
|
|
1533
|
+
* height; headers keep their own padding. */
|
|
1534
|
+
rowDensity?: 'default' | 'compact';
|
|
1527
1535
|
layout?: 'fixed' | 'auto';
|
|
1528
1536
|
headerVariant?: TableHeaderVariant;
|
|
1529
1537
|
rowClassName?: (record: T, index: number) => string;
|