@stackone/malachite 0.26.1 → 0.28.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
@@ -187,6 +187,7 @@ export declare const CustomIcons: {
187
187
  CaretUpIcon: FC<IconProps>;
188
188
  ChangePasswordIcon: FC<IconProps>;
189
189
  CheckCircleFilled: FC<IconProps>;
190
+ CheckIcon: FC<IconProps>;
190
191
  ClearIcon: FC<IconProps>;
191
192
  CloseIcon: FC<IconProps>;
192
193
  CommandKeyIcon: FC<IconProps>;
@@ -320,7 +321,8 @@ export declare enum FlexAlign {
320
321
  Top = "flex-start",
321
322
  Bottom = "flex-end",
322
323
  Center = "center",
323
- Normal = "normal"
324
+ Normal = "normal",
325
+ Stretch = "stretch"
324
326
  }
325
327
 
326
328
  export declare enum FlexDirection {
@@ -529,6 +531,7 @@ export declare interface MalachiteTheme {
529
531
  border: string;
530
532
  shadow: string;
531
533
  dimmedBackground: string;
534
+ warmBackground: string;
532
535
  headerBackground: string;
533
536
  footerBackground: string;
534
537
  };
@@ -831,6 +834,19 @@ declare type PillButtonSize = 'small' | 'medium';
831
834
 
832
835
  declare type PillButtonVariant = 'default' | 'inverted';
833
836
 
837
+ export declare const Progress: default_2.FC<ProgressProps>;
838
+
839
+ export declare interface ProgressProps {
840
+ value: number;
841
+ color?: string;
842
+ trackColor?: string;
843
+ height?: number;
844
+ 'aria-label'?: string;
845
+ 'aria-labelledby'?: string;
846
+ className?: string;
847
+ style?: default_2.CSSProperties;
848
+ }
849
+
834
850
  /**
835
851
  * Reset theme to default values
836
852
  */
@@ -928,6 +944,8 @@ declare interface SpinnerProps {
928
944
  style?: default_2.CSSProperties;
929
945
  }
930
946
 
947
+ export declare const Statistic: default_2.FC<StatisticProps>;
948
+
931
949
  declare interface StatisticLabelProps {
932
950
  bold?: boolean;
933
951
  children: default_2.ReactNode;
@@ -936,6 +954,20 @@ declare interface StatisticLabelProps {
936
954
  style?: default_2.CSSProperties;
937
955
  }
938
956
 
957
+ export declare interface StatisticProps {
958
+ label: string | default_2.ReactNode;
959
+ value: string | number | default_2.ReactNode;
960
+ sub?: string | default_2.ReactNode;
961
+ accent?: string;
962
+ valueSize?: StatisticValueSize;
963
+ width?: string | number;
964
+ minWidth?: string | number;
965
+ padding?: string;
966
+ align?: 'left' | 'center' | 'right';
967
+ className?: string;
968
+ style?: default_2.CSSProperties;
969
+ }
970
+
939
971
  declare interface StatisticValueProps {
940
972
  children: default_2.ReactNode;
941
973
  secondary?: boolean;
@@ -943,6 +975,23 @@ declare interface StatisticValueProps {
943
975
  style?: default_2.CSSProperties;
944
976
  }
945
977
 
978
+ export declare type StatisticValueSize = 'small' | 'medium' | 'large';
979
+
980
+ export declare const Swatch: default_2.FC<SwatchProps>;
981
+
982
+ export declare interface SwatchProps {
983
+ color?: string;
984
+ size?: number;
985
+ on?: boolean;
986
+ radius?: number;
987
+ children?: default_2.ReactNode;
988
+ onClick?: () => void;
989
+ 'aria-label'?: string;
990
+ 'aria-pressed'?: boolean;
991
+ className?: string;
992
+ style?: default_2.CSSProperties;
993
+ }
994
+
946
995
  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;
947
996
 
948
997
  export declare type TableColumnDefinition<T = Record<string, unknown>> = {