@stackone/malachite 0.34.0 → 0.35.1
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 +21 -1
- package/dist/index.js +2800 -2680
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare interface ActionMenuProps {
|
|
|
35
35
|
label?: string;
|
|
36
36
|
triggerIcon?: default_2.ReactNode;
|
|
37
37
|
minWidth?: number;
|
|
38
|
+
size?: 'small' | 'xsmall';
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export declare const Alert: default_2.FC<AlertProps>;
|
|
@@ -212,6 +213,7 @@ export declare const CustomIcons: {
|
|
|
212
213
|
AdvancedLogsIcon: FC<IconProps>;
|
|
213
214
|
ApiKeysIcon: FC<IconProps>;
|
|
214
215
|
ArrowLeftIcon: FC<IconProps>;
|
|
216
|
+
ArrowUpRightIcon: FC<IconProps>;
|
|
215
217
|
AuthenticationIcon: FC<IconProps>;
|
|
216
218
|
BiDirectionalArrowsIcon: FC<IconProps>;
|
|
217
219
|
CaretDownIcon: FC<IconProps>;
|
|
@@ -731,6 +733,12 @@ export declare interface MalachiteTheme {
|
|
|
731
733
|
shadow: string;
|
|
732
734
|
};
|
|
733
735
|
};
|
|
736
|
+
numberTag: {
|
|
737
|
+
background: string;
|
|
738
|
+
foreground: string;
|
|
739
|
+
emphasisBackground: string;
|
|
740
|
+
emphasisForeground: string;
|
|
741
|
+
};
|
|
734
742
|
table: {
|
|
735
743
|
background: string;
|
|
736
744
|
boxShadow: string;
|
|
@@ -781,6 +789,7 @@ export declare interface MalachiteTheme {
|
|
|
781
789
|
destructive: string;
|
|
782
790
|
success: string;
|
|
783
791
|
warning: string;
|
|
792
|
+
warningMuted: string;
|
|
784
793
|
error: string;
|
|
785
794
|
linkForeground: string;
|
|
786
795
|
linkForegroundHover: string;
|
|
@@ -837,6 +846,14 @@ export declare interface MultiSelectProps {
|
|
|
837
846
|
|
|
838
847
|
export declare type MultiSelectSize = 'small' | 'medium';
|
|
839
848
|
|
|
849
|
+
export declare const NumberTag: default_2.FC<NumberTagProps>;
|
|
850
|
+
|
|
851
|
+
export declare interface NumberTagProps {
|
|
852
|
+
value: number | string;
|
|
853
|
+
emphasis?: boolean;
|
|
854
|
+
className?: string;
|
|
855
|
+
}
|
|
856
|
+
|
|
840
857
|
export declare const OverflowRow: default_2.FC<OverflowRowProps>;
|
|
841
858
|
|
|
842
859
|
declare interface OverflowRowProps {
|
|
@@ -899,6 +916,7 @@ export declare interface PartialMalachiteTheme {
|
|
|
899
916
|
pillButton?: Partial<MalachiteTheme['colors']['pillButton']>;
|
|
900
917
|
toggle?: Partial<MalachiteTheme['colors']['toggle']>;
|
|
901
918
|
tag?: Partial<MalachiteTheme['colors']['tag']>;
|
|
919
|
+
numberTag?: Partial<MalachiteTheme['colors']['numberTag']>;
|
|
902
920
|
table?: Partial<MalachiteTheme['colors']['table']>;
|
|
903
921
|
text?: Partial<MalachiteTheme['colors']['text']>;
|
|
904
922
|
codeBlock?: Partial<MalachiteTheme['colors']['codeBlock']>;
|
|
@@ -1102,7 +1120,7 @@ export declare interface TabItem {
|
|
|
1102
1120
|
disabled?: boolean;
|
|
1103
1121
|
}
|
|
1104
1122
|
|
|
1105
|
-
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, }: TableProps<T>) => JSX_2.Element;
|
|
1123
|
+
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, }: TableProps<T>) => JSX_2.Element;
|
|
1106
1124
|
|
|
1107
1125
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
1108
1126
|
title: string | default_2.ReactNode;
|
|
@@ -1169,6 +1187,8 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
1169
1187
|
* stacked above. */
|
|
1170
1188
|
stickyHeaderTop?: number;
|
|
1171
1189
|
scrollX?: boolean;
|
|
1190
|
+
rowSection?: (record: T) => string;
|
|
1191
|
+
renderSectionDivider?: (sectionKey: string, records: T[]) => default_2.ReactNode;
|
|
1172
1192
|
};
|
|
1173
1193
|
|
|
1174
1194
|
declare type TableRowActions<T = Record<string, unknown>> = {
|