@stackone/malachite 2.126.0 → 2.128.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/COMPONENTS.md +3 -1
- package/dist/components/Invisible.js +16 -0
- package/dist/components/Invisible.js.map +1 -0
- package/dist/components/PillButtonGroup.js +35 -0
- package/dist/components/PillButtonGroup.js.map +1 -0
- package/dist/components/Table/Table.js +657 -641
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +412 -408
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3604,6 +3604,15 @@ declare type InputVariant = 'default' | 'ghost';
|
|
|
3604
3604
|
|
|
3605
3605
|
export declare const IntegrationsIcon: React.FC<IconProps_69>;
|
|
3606
3606
|
|
|
3607
|
+
/** Keeps its children's space while hiding them from sight, focus and assistive technology. */
|
|
3608
|
+
export declare const Invisible: default_2.FC<InvisibleProps>;
|
|
3609
|
+
|
|
3610
|
+
export declare interface InvisibleProps {
|
|
3611
|
+
children: default_2.ReactNode;
|
|
3612
|
+
/** Hides the children while true, so a slot can toggle without remounting them. Defaults to true. */
|
|
3613
|
+
hidden?: boolean;
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3607
3616
|
declare const Item: default_2.FC<KeyValueStripItemProps>;
|
|
3608
3617
|
|
|
3609
3618
|
declare const Item_2: default_2.FC<TimelineItemProps>;
|
|
@@ -4807,6 +4816,29 @@ declare interface PillButtonBaseProps {
|
|
|
4807
4816
|
rel?: string;
|
|
4808
4817
|
}
|
|
4809
4818
|
|
|
4819
|
+
export declare const PillButtonGroup: default_2.FC<PillButtonGroupProps>;
|
|
4820
|
+
|
|
4821
|
+
declare interface PillButtonGroupBaseProps {
|
|
4822
|
+
children: default_2.ReactNode;
|
|
4823
|
+
className?: string;
|
|
4824
|
+
}
|
|
4825
|
+
|
|
4826
|
+
declare type PillButtonGroupNameProps = {
|
|
4827
|
+
label: string | default_2.ReactElement;
|
|
4828
|
+
'aria-label'?: never;
|
|
4829
|
+
'aria-labelledby'?: never;
|
|
4830
|
+
} | {
|
|
4831
|
+
label?: never;
|
|
4832
|
+
'aria-label': string;
|
|
4833
|
+
'aria-labelledby'?: never;
|
|
4834
|
+
} | {
|
|
4835
|
+
label?: never;
|
|
4836
|
+
'aria-label'?: never;
|
|
4837
|
+
'aria-labelledby': string;
|
|
4838
|
+
};
|
|
4839
|
+
|
|
4840
|
+
export declare type PillButtonGroupProps = PillButtonGroupBaseProps & PillButtonGroupNameProps;
|
|
4841
|
+
|
|
4810
4842
|
declare type PillButtonProps = PillButtonBaseProps & ({
|
|
4811
4843
|
tone?: Extract<PillButtonTone, 'default'>;
|
|
4812
4844
|
pressed?: boolean;
|
|
@@ -6227,7 +6259,7 @@ export declare interface TabItem {
|
|
|
6227
6259
|
content?: default_2.ReactNode;
|
|
6228
6260
|
}
|
|
6229
6261
|
|
|
6230
|
-
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, title, subtitle, extra, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
6262
|
+
export declare const Table: <T = Record<string, unknown>>({ columns, data, loading, loadingRowCount, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, error, errorTitle, errorSubTitle, emptyTitle, emptySubTitle, bordered, showHeader, rowKey, scrollHeight, size, rowDensity, layout, headerVariant, title, subtitle, extra, rowClassName, rowVariant, onRow, onClickRow, selectedRowKey, scrollSelectedIntoView, rowSelection, pagination, className, style, stickyHeaderTop, scrollX, rowSection, renderSectionDivider, onVisibleOrderChange, virtual, virtualRowHeightEstimate, virtualScrollElement, }: TableProps<T>) => JSX_2.Element;
|
|
6231
6263
|
|
|
6232
6264
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
6233
6265
|
title: string | default_2.ReactNode;
|
|
@@ -6279,6 +6311,12 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
6279
6311
|
columns: TableColumns<T>;
|
|
6280
6312
|
data: T[];
|
|
6281
6313
|
loading?: boolean;
|
|
6314
|
+
/** How many skeleton rows `loading` draws, for a table whose real row count is known. */
|
|
6315
|
+
loadingRowCount?: number;
|
|
6316
|
+
/** Names the inline table for assistive technology. */
|
|
6317
|
+
'aria-label'?: string;
|
|
6318
|
+
/** Names the inline table by the id of a visible heading. */
|
|
6319
|
+
'aria-labelledby'?: string;
|
|
6282
6320
|
error?: boolean;
|
|
6283
6321
|
errorTitle?: string;
|
|
6284
6322
|
errorSubTitle?: string;
|