@stackone/malachite 0.17.0 → 0.19.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 +34 -7
- package/dist/index.js +1768 -1649
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
101
101
|
flexGrow?: boolean;
|
|
102
102
|
fill?: boolean;
|
|
103
103
|
tooltip?: string;
|
|
104
|
+
iconOnly?: boolean;
|
|
104
105
|
children?: default_2.ReactNode;
|
|
105
106
|
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
106
107
|
}
|
|
@@ -240,20 +241,28 @@ export declare const darkTheme: MalachiteTheme;
|
|
|
240
241
|
|
|
241
242
|
export declare const defaultTheme: MalachiteTheme;
|
|
242
243
|
|
|
243
|
-
/**
|
|
244
|
-
* A 1px horizontal divider component that uses the card border style from the theme.
|
|
245
|
-
* The divider spans edge to edge of its container.
|
|
246
|
-
* Supports configurable margin and padding using predefined spacing sizes.
|
|
247
|
-
*/
|
|
248
244
|
export declare const Divider: default_2.FC<DividerProps>;
|
|
249
245
|
|
|
250
246
|
declare interface DividerProps {
|
|
251
247
|
margin?: SpacingSize;
|
|
252
248
|
padding?: PaddingSize;
|
|
253
249
|
className?: string;
|
|
250
|
+
variant?: DividerVariant;
|
|
251
|
+
grow?: boolean;
|
|
254
252
|
}
|
|
255
253
|
|
|
256
|
-
|
|
254
|
+
/**
|
|
255
|
+
* A 1px horizontal divider component that uses the card border style from the theme.
|
|
256
|
+
* The divider spans edge to edge of its container.
|
|
257
|
+
* Supports configurable margin and padding using predefined spacing sizes.
|
|
258
|
+
*/
|
|
259
|
+
export declare enum DividerVariant {
|
|
260
|
+
Default = "default",
|
|
261
|
+
Muted = "muted",
|
|
262
|
+
Emphasis = "emphasis"
|
|
263
|
+
}
|
|
264
|
+
|
|
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;
|
|
257
266
|
|
|
258
267
|
export declare interface DropdownItem {
|
|
259
268
|
id: string;
|
|
@@ -280,6 +289,7 @@ export declare interface DropdownProps {
|
|
|
280
289
|
required?: boolean;
|
|
281
290
|
helperText?: string;
|
|
282
291
|
placeholder?: string;
|
|
292
|
+
search?: boolean;
|
|
283
293
|
}
|
|
284
294
|
|
|
285
295
|
declare interface EllipsisTextProps {
|
|
@@ -644,6 +654,20 @@ export declare interface MalachiteTheme {
|
|
|
644
654
|
background: string;
|
|
645
655
|
outline: string;
|
|
646
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
|
+
};
|
|
647
671
|
error: {
|
|
648
672
|
iconBackground: string;
|
|
649
673
|
iconForeground: string;
|
|
@@ -758,6 +782,8 @@ declare interface PillButtonProps {
|
|
|
758
782
|
*/
|
|
759
783
|
export declare function resetTheme(): void;
|
|
760
784
|
|
|
785
|
+
export declare type RowVariant = 'success' | 'warning' | 'error' | 'info';
|
|
786
|
+
|
|
761
787
|
declare interface SecondaryTextProps {
|
|
762
788
|
children: default_2.ReactNode;
|
|
763
789
|
fontWeight?: FontWeight;
|
|
@@ -831,7 +857,7 @@ declare interface StatisticValueProps {
|
|
|
831
857
|
style?: default_2.CSSProperties;
|
|
832
858
|
}
|
|
833
859
|
|
|
834
|
-
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;
|
|
835
861
|
|
|
836
862
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
837
863
|
title: string | default_2.ReactNode;
|
|
@@ -870,6 +896,7 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
870
896
|
size?: TableSize;
|
|
871
897
|
layout?: 'fixed' | 'auto';
|
|
872
898
|
rowClassName?: (record: T, index: number) => string;
|
|
899
|
+
rowVariant?: (record: T, index: number) => RowVariant | undefined;
|
|
873
900
|
onRow?: (record: T, index: number) => TableRowActions<T>;
|
|
874
901
|
rowSelection?: TableRowSelection<T>;
|
|
875
902
|
pagination?: {
|