@sfperusacdev/sf-ui 0.1.27 → 0.1.28

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,5 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type KPICardAccentTone = "emerald" | "blue" | "amber" | "red" | "teal" | "slate";
3
+ export type KPICardProgress = {
4
+ value: number;
5
+ max: number;
6
+ label?: string;
7
+ };
3
8
  type KPICardProps = {
4
9
  label: string;
5
10
  value: string | number;
@@ -9,10 +14,11 @@ type KPICardProps = {
9
14
  trend?: number;
10
15
  trendLabel?: string;
11
16
  accentTone?: KPICardAccentTone;
17
+ progress?: KPICardProgress;
12
18
  className?: string;
13
19
  onClick?: () => void;
14
20
  };
15
- export declare const KPICard: ({ label, value, sublabel, icon, iconClassName, trend, trendLabel, accentTone, className, onClick, }: KPICardProps) => import("react").JSX.Element;
21
+ export declare const KPICard: ({ label, value, sublabel, icon, iconClassName, trend, trendLabel, accentTone, progress, className, onClick, }: KPICardProps) => import("react").JSX.Element;
16
22
  type KPIGridProps = {
17
23
  children: ReactNode;
18
24
  cols?: 2 | 3 | 4 | 5;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  export { Badge } from './Badge';
2
2
  export { badgeClassName, badgeDotClassName } from './badgeClassName';
3
3
  export { KPICard, KPIGrid } from './KPICard';
4
- export type { KPICardAccentTone } from './KPICard';
4
+ export type { KPICardAccentTone, KPICardProgress } from './KPICard';
5
5
  export { MetricBarRow, MetricBarList } from './MetricBar';
6
6
  export { EntityCard, EntityCardGrid } from './EntityCard';
7
7
  export type { EntityCardProps } from './EntityCard';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfperusacdev/sf-ui",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "SF UI — librería de componentes React (inputs, tablas, hooks) para aplicaciones SF Perú.",
5
5
  "type": "module",
6
6
  "main": "./dist/sf-ui.umd.cjs",