najm-kit 2.1.17 → 2.1.18

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
@@ -1438,7 +1438,7 @@ interface NStatCardClassNames {
1438
1438
  }
1439
1439
  interface BaseProps$1 {
1440
1440
  icon: NIconSource;
1441
- label: string;
1441
+ label?: string;
1442
1442
  onClick?: () => void;
1443
1443
  bordered?: boolean;
1444
1444
  className?: string;
package/dist/index.mjs CHANGED
@@ -5319,7 +5319,7 @@ function DefaultCard({
5319
5319
  ),
5320
5320
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5321
5321
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
5322
- /* @__PURE__ */ jsx("p", { className: cn("truncate text-xs text-muted-foreground", classNames?.label), children: label }),
5322
+ label && /* @__PURE__ */ jsx("p", { className: cn("truncate text-xs text-muted-foreground", classNames?.label), children: label }),
5323
5323
  change && /* @__PURE__ */ jsxs(
5324
5324
  "span",
5325
5325
  {
@@ -5436,7 +5436,7 @@ function CompactCard({ icon, label, value, unit, iconColor, onClick, bordered, c
5436
5436
  }
5437
5437
  ),
5438
5438
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5439
- /* @__PURE__ */ jsx("p", { className: cn("truncate text-[11px] leading-none text-muted-foreground", classNames?.label), children: label }),
5439
+ label && /* @__PURE__ */ jsx("p", { className: cn("truncate text-[11px] leading-none text-muted-foreground", classNames?.label), children: label }),
5440
5440
  /* @__PURE__ */ jsxs("p", { className: cn("truncate text-base font-semibold leading-tight text-foreground", classNames?.value), children: [
5441
5441
  value,
5442
5442
  unit ? ` ${unit}` : ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",