@stackone/malachite 0.18.0 → 0.20.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 +20 -2
- package/dist/index.js +1476 -1358
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ export declare enum DividerVariant {
|
|
|
262
262
|
Emphasis = "emphasis"
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, formControl, description, helperText, placeholder, }: DropdownProps) => JSX_2.Element;
|
|
265
|
+
export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, formControl, description, helperText, placeholder, search, }: DropdownProps) => JSX_2.Element;
|
|
266
266
|
|
|
267
267
|
export declare interface DropdownItem {
|
|
268
268
|
id: string;
|
|
@@ -289,6 +289,7 @@ export declare interface DropdownProps {
|
|
|
289
289
|
required?: boolean;
|
|
290
290
|
helperText?: string;
|
|
291
291
|
placeholder?: string;
|
|
292
|
+
search?: boolean;
|
|
292
293
|
}
|
|
293
294
|
|
|
294
295
|
declare interface EllipsisTextProps {
|
|
@@ -653,6 +654,20 @@ export declare interface MalachiteTheme {
|
|
|
653
654
|
background: string;
|
|
654
655
|
outline: string;
|
|
655
656
|
};
|
|
657
|
+
rowVariant: {
|
|
658
|
+
success: {
|
|
659
|
+
background: string;
|
|
660
|
+
};
|
|
661
|
+
warning: {
|
|
662
|
+
background: string;
|
|
663
|
+
};
|
|
664
|
+
error: {
|
|
665
|
+
background: string;
|
|
666
|
+
};
|
|
667
|
+
info: {
|
|
668
|
+
background: string;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
656
671
|
error: {
|
|
657
672
|
iconBackground: string;
|
|
658
673
|
iconForeground: string;
|
|
@@ -767,6 +782,8 @@ declare interface PillButtonProps {
|
|
|
767
782
|
*/
|
|
768
783
|
export declare function resetTheme(): void;
|
|
769
784
|
|
|
785
|
+
export declare type RowVariant = 'success' | 'warning' | 'error' | 'info';
|
|
786
|
+
|
|
770
787
|
declare interface SecondaryTextProps {
|
|
771
788
|
children: default_2.ReactNode;
|
|
772
789
|
fontWeight?: FontWeight;
|
|
@@ -840,7 +857,7 @@ declare interface StatisticValueProps {
|
|
|
840
857
|
style?: default_2.CSSProperties;
|
|
841
858
|
}
|
|
842
859
|
|
|
843
|
-
export declare const Table: <T extends Record<string, unknown> = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, bordered, showHeader, rowKey, scrollHeight, size, layout, rowClassName, onRow, rowSelection, pagination, className, style, }: TableProps<T>) => JSX_2.Element;
|
|
860
|
+
export declare const Table: <T extends Record<string, unknown> = Record<string, unknown>>({ columns, data, loading, error, errorTitle, errorSubTitle, bordered, showHeader, rowKey, scrollHeight, size, layout, rowClassName, rowVariant, onRow, rowSelection, pagination, className, style, }: TableProps<T>) => JSX_2.Element;
|
|
844
861
|
|
|
845
862
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
846
863
|
title: string | default_2.ReactNode;
|
|
@@ -879,6 +896,7 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
879
896
|
size?: TableSize;
|
|
880
897
|
layout?: 'fixed' | 'auto';
|
|
881
898
|
rowClassName?: (record: T, index: number) => string;
|
|
899
|
+
rowVariant?: (record: T, index: number) => RowVariant | undefined;
|
|
882
900
|
onRow?: (record: T, index: number) => TableRowActions<T>;
|
|
883
901
|
rowSelection?: TableRowSelection<T>;
|
|
884
902
|
pagination?: {
|