@woovi/ui 6.8.10 → 6.8.12

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.
@@ -1,12 +1,12 @@
1
- import type { ReactNode } from 'react';
2
- type CardAnalyticsProps = {
1
+ import Card from '../card/Card.tsx';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ type CardAnalyticsProps = ComponentProps<typeof Card> & {
3
4
  title: string;
4
5
  value: string | number | null | JSX.Element;
5
6
  badge?: string | number;
6
- total?: string | number;
7
+ total?: string | number | null | JSX.Element;
7
8
  color?: 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'error' | 'warning' | '';
8
9
  loading?: boolean;
9
- onClick?: () => void;
10
10
  };
11
- declare const CardAnalytics: ({ color, title, value, total, badge, onClick, loading, }: CardAnalyticsProps) => ReactNode;
11
+ declare const CardAnalytics: ({ sx, color, title, value, total, badge, onClick, loading, ...props }: CardAnalyticsProps) => ReactNode;
12
12
  export default CardAnalytics;