@axzydev/axzy_ui_system 1.7.2 → 1.7.3
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.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/stat-card/stat-card.props.ts +7 -0
- package/src/components/molecules/stat-card/stat-card.tsx +18 -0
package/dist/index.d.cts
CHANGED
|
@@ -3495,6 +3495,12 @@ interface ITStatCardProps {
|
|
|
3495
3495
|
value: string | number;
|
|
3496
3496
|
/** Optional trend indicator text (e.g. "+12%", "-3"). */
|
|
3497
3497
|
trend?: string;
|
|
3498
|
+
/** Optional secondary line under the value (context, not a trend). */
|
|
3499
|
+
hint?: string;
|
|
3500
|
+
/** Optional progress 0–100 rendered under the hint. */
|
|
3501
|
+
progress?: number;
|
|
3502
|
+
/** Semantic color for the progress bar. @default "primary" */
|
|
3503
|
+
progressColor?: ColorsTypes;
|
|
3498
3504
|
/** Direction of the trend, used to color the trend badge. */
|
|
3499
3505
|
trendDirection?: "up" | "down" | "neutral";
|
|
3500
3506
|
/** Icon element rendered next to the label in the top-right corner. */
|
|
@@ -3519,7 +3525,7 @@ interface ITStatCardProps {
|
|
|
3519
3525
|
* @example
|
|
3520
3526
|
* <ITStatCard label="Users" value={1042} trend="-3%" trendDirection="down" onClick={() => navigate("/users")} />
|
|
3521
3527
|
*/
|
|
3522
|
-
declare function ITStatCard({ label, value, trend, trendDirection, icon, color, className, style, onClick, }: ITStatCardProps): react_jsx_runtime.JSX.Element;
|
|
3528
|
+
declare function ITStatCard({ label, value, trend, trendDirection, hint, progress, progressColor, icon, color, className, style, onClick, }: ITStatCardProps): react_jsx_runtime.JSX.Element;
|
|
3523
3529
|
|
|
3524
3530
|
interface ITLineBarDatum {
|
|
3525
3531
|
/** Etiqueta del eje (p. ej. «May»). */
|
package/dist/index.d.ts
CHANGED
|
@@ -3495,6 +3495,12 @@ interface ITStatCardProps {
|
|
|
3495
3495
|
value: string | number;
|
|
3496
3496
|
/** Optional trend indicator text (e.g. "+12%", "-3"). */
|
|
3497
3497
|
trend?: string;
|
|
3498
|
+
/** Optional secondary line under the value (context, not a trend). */
|
|
3499
|
+
hint?: string;
|
|
3500
|
+
/** Optional progress 0–100 rendered under the hint. */
|
|
3501
|
+
progress?: number;
|
|
3502
|
+
/** Semantic color for the progress bar. @default "primary" */
|
|
3503
|
+
progressColor?: ColorsTypes;
|
|
3498
3504
|
/** Direction of the trend, used to color the trend badge. */
|
|
3499
3505
|
trendDirection?: "up" | "down" | "neutral";
|
|
3500
3506
|
/** Icon element rendered next to the label in the top-right corner. */
|
|
@@ -3519,7 +3525,7 @@ interface ITStatCardProps {
|
|
|
3519
3525
|
* @example
|
|
3520
3526
|
* <ITStatCard label="Users" value={1042} trend="-3%" trendDirection="down" onClick={() => navigate("/users")} />
|
|
3521
3527
|
*/
|
|
3522
|
-
declare function ITStatCard({ label, value, trend, trendDirection, icon, color, className, style, onClick, }: ITStatCardProps): react_jsx_runtime.JSX.Element;
|
|
3528
|
+
declare function ITStatCard({ label, value, trend, trendDirection, hint, progress, progressColor, icon, color, className, style, onClick, }: ITStatCardProps): react_jsx_runtime.JSX.Element;
|
|
3523
3529
|
|
|
3524
3530
|
interface ITLineBarDatum {
|
|
3525
3531
|
/** Etiqueta del eje (p. ej. «May»). */
|
package/dist/index.js
CHANGED
|
@@ -8935,6 +8935,9 @@ function ITStatCard({
|
|
|
8935
8935
|
value,
|
|
8936
8936
|
trend,
|
|
8937
8937
|
trendDirection = trend && trend.startsWith("-") ? "down" : "neutral",
|
|
8938
|
+
hint,
|
|
8939
|
+
progress,
|
|
8940
|
+
progressColor = "primary",
|
|
8938
8941
|
icon,
|
|
8939
8942
|
color = "bg-primary-50 dark:bg-primary-950/20",
|
|
8940
8943
|
className,
|
|
@@ -8963,7 +8966,18 @@ function ITStatCard({
|
|
|
8963
8966
|
/* @__PURE__ */ jsxs44("div", { className: "flex items-baseline gap-2", children: [
|
|
8964
8967
|
/* @__PURE__ */ jsx63(ITText, { as: "span", className: "text-2xl font-bold text-slate-800 dark:text-white", children: value }),
|
|
8965
8968
|
trend && /* @__PURE__ */ jsx63(ITText, { as: "span", className: clsx44("text-[11px] font-semibold px-1.5 py-0.5 rounded-md", trendColors[trendDirection]), children: trend })
|
|
8966
|
-
] })
|
|
8969
|
+
] }),
|
|
8970
|
+
hint && /* @__PURE__ */ jsx63(ITText, { as: "p", className: "mt-1 text-[11px] leading-snug text-slate-500 dark:text-slate-400", children: hint }),
|
|
8971
|
+
progress !== void 0 && /* @__PURE__ */ jsx63(
|
|
8972
|
+
ITProgress,
|
|
8973
|
+
{
|
|
8974
|
+
value: progress,
|
|
8975
|
+
max: 100,
|
|
8976
|
+
color: progressColor,
|
|
8977
|
+
size: "sm",
|
|
8978
|
+
className: "mt-2"
|
|
8979
|
+
}
|
|
8980
|
+
)
|
|
8967
8981
|
]
|
|
8968
8982
|
}
|
|
8969
8983
|
);
|