@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.cjs
CHANGED
|
@@ -9064,6 +9064,9 @@ function ITStatCard({
|
|
|
9064
9064
|
value,
|
|
9065
9065
|
trend,
|
|
9066
9066
|
trendDirection = trend && trend.startsWith("-") ? "down" : "neutral",
|
|
9067
|
+
hint,
|
|
9068
|
+
progress,
|
|
9069
|
+
progressColor = "primary",
|
|
9067
9070
|
icon,
|
|
9068
9071
|
color = "bg-primary-50 dark:bg-primary-950/20",
|
|
9069
9072
|
className,
|
|
@@ -9092,7 +9095,18 @@ function ITStatCard({
|
|
|
9092
9095
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-baseline gap-2", children: [
|
|
9093
9096
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: "text-2xl font-bold text-slate-800 dark:text-white", children: value }),
|
|
9094
9097
|
trend && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: (0, import_clsx44.default)("text-[11px] font-semibold px-1.5 py-0.5 rounded-md", trendColors[trendDirection]), children: trend })
|
|
9095
|
-
] })
|
|
9098
|
+
] }),
|
|
9099
|
+
hint && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "p", className: "mt-1 text-[11px] leading-snug text-slate-500 dark:text-slate-400", children: hint }),
|
|
9100
|
+
progress !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
9101
|
+
ITProgress,
|
|
9102
|
+
{
|
|
9103
|
+
value: progress,
|
|
9104
|
+
max: 100,
|
|
9105
|
+
color: progressColor,
|
|
9106
|
+
size: "sm",
|
|
9107
|
+
className: "mt-2"
|
|
9108
|
+
}
|
|
9109
|
+
)
|
|
9096
9110
|
]
|
|
9097
9111
|
}
|
|
9098
9112
|
);
|