@stackone/malachite 0.26.0 → 0.27.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 CHANGED
@@ -273,7 +273,7 @@ export declare enum DividerVariant {
273
273
  Emphasis = "emphasis"
274
274
  }
275
275
 
276
- export declare const Dropdown: ({ items, onItemSelected, defaultValue, disabled, error, label, hint, tooltip, name, required, loading, formControl, description, helperText, placeholder, search, }: DropdownProps) => JSX_2.Element;
276
+ 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;
277
277
 
278
278
  export declare interface DropdownItem {
279
279
  id: string;
@@ -290,6 +290,7 @@ export declare interface DropdownProps {
290
290
  tooltip?: string;
291
291
  name: FieldPath<FieldValues> | string;
292
292
  loading?: boolean;
293
+ menuLoading?: boolean;
293
294
  items: DropdownItem[];
294
295
  onItemSelected?: (id?: string) => void;
295
296
  defaultValue?: string;
@@ -319,7 +320,8 @@ export declare enum FlexAlign {
319
320
  Top = "flex-start",
320
321
  Bottom = "flex-end",
321
322
  Center = "center",
322
- Normal = "normal"
323
+ Normal = "normal",
324
+ Stretch = "stretch"
323
325
  }
324
326
 
325
327
  export declare enum FlexDirection {
@@ -830,6 +832,19 @@ declare type PillButtonSize = 'small' | 'medium';
830
832
 
831
833
  declare type PillButtonVariant = 'default' | 'inverted';
832
834
 
835
+ export declare const Progress: default_2.FC<ProgressProps>;
836
+
837
+ export declare interface ProgressProps {
838
+ value: number;
839
+ color?: string;
840
+ trackColor?: string;
841
+ height?: number;
842
+ 'aria-label'?: string;
843
+ 'aria-labelledby'?: string;
844
+ className?: string;
845
+ style?: default_2.CSSProperties;
846
+ }
847
+
833
848
  /**
834
849
  * Reset theme to default values
835
850
  */
@@ -927,6 +942,8 @@ declare interface SpinnerProps {
927
942
  style?: default_2.CSSProperties;
928
943
  }
929
944
 
945
+ export declare const Statistic: default_2.FC<StatisticProps>;
946
+
930
947
  declare interface StatisticLabelProps {
931
948
  bold?: boolean;
932
949
  children: default_2.ReactNode;
@@ -935,6 +952,20 @@ declare interface StatisticLabelProps {
935
952
  style?: default_2.CSSProperties;
936
953
  }
937
954
 
955
+ export declare interface StatisticProps {
956
+ label: string | default_2.ReactNode;
957
+ value: string | number | default_2.ReactNode;
958
+ sub?: string | default_2.ReactNode;
959
+ accent?: string;
960
+ valueSize?: StatisticValueSize;
961
+ width?: string | number;
962
+ minWidth?: string | number;
963
+ padding?: string;
964
+ align?: 'left' | 'center' | 'right';
965
+ className?: string;
966
+ style?: default_2.CSSProperties;
967
+ }
968
+
938
969
  declare interface StatisticValueProps {
939
970
  children: default_2.ReactNode;
940
971
  secondary?: boolean;
@@ -942,6 +973,23 @@ declare interface StatisticValueProps {
942
973
  style?: default_2.CSSProperties;
943
974
  }
944
975
 
976
+ export declare type StatisticValueSize = 'small' | 'medium' | 'large';
977
+
978
+ export declare const Swatch: default_2.FC<SwatchProps>;
979
+
980
+ export declare interface SwatchProps {
981
+ color?: string;
982
+ size?: number;
983
+ on?: boolean;
984
+ radius?: number;
985
+ children?: default_2.ReactNode;
986
+ onClick?: () => void;
987
+ 'aria-label'?: string;
988
+ 'aria-pressed'?: boolean;
989
+ className?: string;
990
+ style?: default_2.CSSProperties;
991
+ }
992
+
945
993
  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;
946
994
 
947
995
  export declare type TableColumnDefinition<T = Record<string, unknown>> = {