@stackone/malachite 0.26.1 → 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
@@ -320,7 +320,8 @@ export declare enum FlexAlign {
320
320
  Top = "flex-start",
321
321
  Bottom = "flex-end",
322
322
  Center = "center",
323
- Normal = "normal"
323
+ Normal = "normal",
324
+ Stretch = "stretch"
324
325
  }
325
326
 
326
327
  export declare enum FlexDirection {
@@ -831,6 +832,19 @@ declare type PillButtonSize = 'small' | 'medium';
831
832
 
832
833
  declare type PillButtonVariant = 'default' | 'inverted';
833
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
+
834
848
  /**
835
849
  * Reset theme to default values
836
850
  */
@@ -928,6 +942,8 @@ declare interface SpinnerProps {
928
942
  style?: default_2.CSSProperties;
929
943
  }
930
944
 
945
+ export declare const Statistic: default_2.FC<StatisticProps>;
946
+
931
947
  declare interface StatisticLabelProps {
932
948
  bold?: boolean;
933
949
  children: default_2.ReactNode;
@@ -936,6 +952,20 @@ declare interface StatisticLabelProps {
936
952
  style?: default_2.CSSProperties;
937
953
  }
938
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
+
939
969
  declare interface StatisticValueProps {
940
970
  children: default_2.ReactNode;
941
971
  secondary?: boolean;
@@ -943,6 +973,23 @@ declare interface StatisticValueProps {
943
973
  style?: default_2.CSSProperties;
944
974
  }
945
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
+
946
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;
947
994
 
948
995
  export declare type TableColumnDefinition<T = Record<string, unknown>> = {