@stackone/malachite 0.28.1 → 0.29.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 +73 -2
- package/dist/index.js +2935 -2408
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ export declare const CustomIcons: {
|
|
|
263
263
|
RejectIcon: FC<IconProps>;
|
|
264
264
|
ReloadIcon: FC<IconProps>;
|
|
265
265
|
RequiredFieldIndicatorIcon: FC<IconProps>;
|
|
266
|
+
SearchIcon: FC<IconProps>;
|
|
266
267
|
SecurityIcon: FC<IconProps>;
|
|
267
268
|
SettingsIcon: FC<IconProps>;
|
|
268
269
|
SignOutIcon: FC<IconProps>;
|
|
@@ -304,11 +305,15 @@ export declare enum DividerVariant {
|
|
|
304
305
|
Emphasis = "emphasis"
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, menuLoading, formControl, description, helperText, placeholder, search, }: DropdownProps) => JSX_2.Element;
|
|
308
|
+
export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, menuLoading, formControl, description, helperText, placeholder, search, size, }: DropdownProps) => JSX_2.Element;
|
|
308
309
|
|
|
309
310
|
export declare interface DropdownItem {
|
|
310
311
|
id: string;
|
|
311
312
|
label: string;
|
|
313
|
+
/** Alternate label shown in the trigger when selected (falls back to `label`). */
|
|
314
|
+
triggerLabel?: string;
|
|
315
|
+
/** Items sharing a `group` render under a section header, in first-seen order. */
|
|
316
|
+
group?: string;
|
|
312
317
|
subtitle?: string;
|
|
313
318
|
rightSideText?: string;
|
|
314
319
|
rightSideTextVariant?: 'muted' | 'primary';
|
|
@@ -334,8 +339,12 @@ export declare interface DropdownProps {
|
|
|
334
339
|
helperText?: default_2.ReactNode;
|
|
335
340
|
placeholder?: string;
|
|
336
341
|
search?: boolean;
|
|
342
|
+
/** 'medium' (42px) for form inputs; 'small' (32px) for toolbar chips. */
|
|
343
|
+
size?: DropdownSize;
|
|
337
344
|
}
|
|
338
345
|
|
|
346
|
+
export declare type DropdownSize = 'small' | 'medium';
|
|
347
|
+
|
|
339
348
|
declare interface EllipsisTextProps {
|
|
340
349
|
children: default_2.ReactNode;
|
|
341
350
|
tooltip?: default_2.ReactNode | string;
|
|
@@ -783,6 +792,32 @@ declare interface MarkdownProps {
|
|
|
783
792
|
omitMargin?: boolean;
|
|
784
793
|
}
|
|
785
794
|
|
|
795
|
+
export declare const MultiSelect: default_2.FC<MultiSelectProps>;
|
|
796
|
+
|
|
797
|
+
export declare interface MultiSelectOption {
|
|
798
|
+
value: string;
|
|
799
|
+
label: default_2.ReactNode;
|
|
800
|
+
searchText?: string;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export declare interface MultiSelectProps {
|
|
804
|
+
options: MultiSelectOption[];
|
|
805
|
+
value: string[];
|
|
806
|
+
onChange: (next: string[]) => void;
|
|
807
|
+
placeholder?: string;
|
|
808
|
+
renderTrigger?: (selected: MultiSelectOption[]) => default_2.ReactNode;
|
|
809
|
+
searchable?: boolean;
|
|
810
|
+
size?: MultiSelectSize;
|
|
811
|
+
width?: string | number;
|
|
812
|
+
minWidth?: number;
|
|
813
|
+
disabled?: boolean;
|
|
814
|
+
label?: string;
|
|
815
|
+
className?: string;
|
|
816
|
+
style?: default_2.CSSProperties;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
export declare type MultiSelectSize = 'small' | 'medium';
|
|
820
|
+
|
|
786
821
|
export declare const OverflowRow: default_2.FC<OverflowRowProps>;
|
|
787
822
|
|
|
788
823
|
declare interface OverflowRowProps {
|
|
@@ -887,6 +922,21 @@ export declare function resetTheme(): void;
|
|
|
887
922
|
|
|
888
923
|
export declare type RowVariant = 'success' | 'warning' | 'error' | 'info';
|
|
889
924
|
|
|
925
|
+
export declare const Search: default_2.FC<SearchProps>;
|
|
926
|
+
|
|
927
|
+
export declare interface SearchProps {
|
|
928
|
+
value: string;
|
|
929
|
+
onChange: (value: string) => void;
|
|
930
|
+
placeholder?: string;
|
|
931
|
+
size?: SearchSize;
|
|
932
|
+
disabled?: boolean;
|
|
933
|
+
autoFocus?: boolean;
|
|
934
|
+
className?: string;
|
|
935
|
+
style?: default_2.CSSProperties;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export declare type SearchSize = 'small' | 'medium';
|
|
939
|
+
|
|
890
940
|
declare interface SecondaryTextProps {
|
|
891
941
|
children: default_2.ReactNode;
|
|
892
942
|
fontWeight?: FontWeight;
|
|
@@ -1025,7 +1075,13 @@ export declare interface SwatchProps {
|
|
|
1025
1075
|
style?: default_2.CSSProperties;
|
|
1026
1076
|
}
|
|
1027
1077
|
|
|
1028
|
-
export declare
|
|
1078
|
+
export declare interface TabItem {
|
|
1079
|
+
key: string;
|
|
1080
|
+
label: default_2.ReactNode;
|
|
1081
|
+
disabled?: boolean;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
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, }: TableProps<T>) => JSX_2.Element;
|
|
1029
1085
|
|
|
1030
1086
|
export declare type TableColumnDefinition<T = Record<string, unknown>> = {
|
|
1031
1087
|
title: string | default_2.ReactNode;
|
|
@@ -1085,6 +1141,11 @@ declare type TableProps<T = Record<string, unknown>> = {
|
|
|
1085
1141
|
};
|
|
1086
1142
|
className?: string;
|
|
1087
1143
|
style?: default_2.CSSProperties;
|
|
1144
|
+
/** When set, makes the detached-variant header sticky at this offset (px) from the
|
|
1145
|
+
* top of the nearest scrolling ancestor. Use this when the table sits inside a
|
|
1146
|
+
* page-level scroll container with other sticky elements (e.g. tabs + toolbar)
|
|
1147
|
+
* stacked above. */
|
|
1148
|
+
stickyHeaderTop?: number;
|
|
1088
1149
|
};
|
|
1089
1150
|
|
|
1090
1151
|
declare type TableRowActions<T = Record<string, unknown>> = {
|
|
@@ -1117,6 +1178,16 @@ export declare type TableSize = 'small' | 'medium' | 'large';
|
|
|
1117
1178
|
|
|
1118
1179
|
export declare type TableType = 'default' | 'compact' | 'bordered';
|
|
1119
1180
|
|
|
1181
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
|
1182
|
+
|
|
1183
|
+
export declare interface TabsProps {
|
|
1184
|
+
items: TabItem[];
|
|
1185
|
+
activeKey: string;
|
|
1186
|
+
onChange: (key: string) => void;
|
|
1187
|
+
className?: string;
|
|
1188
|
+
style?: default_2.CSSProperties;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1120
1191
|
export declare const Tag: default_2.FC<TagProps>;
|
|
1121
1192
|
|
|
1122
1193
|
export declare interface TagProps {
|