najm-kit 2.1.49 → 2.1.51

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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -7508,6 +7508,14 @@ function mediaRootClasses(layout) {
7508
7508
  }
7509
7509
  return "grid grid-cols-[auto_minmax(0,1fr)] gap-3 p-3 sm:flex sm:flex-col sm:p-4";
7510
7510
  }
7511
+ function CardMediaBody({
7512
+ children,
7513
+ className,
7514
+ grouped
7515
+ }) {
7516
+ if (!grouped) return /* @__PURE__ */ jsx(Fragment, { children });
7517
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-body", className, children });
7518
+ }
7511
7519
  function NCard({
7512
7520
  children,
7513
7521
  title,
@@ -7624,11 +7632,11 @@ function NCard({
7624
7632
  }
7625
7633
  ) : null,
7626
7634
  /* @__PURE__ */ jsxs(
7627
- "div",
7635
+ CardMediaBody,
7628
7636
  {
7629
- "data-slot": "card-body",
7637
+ grouped: compactSideBody,
7630
7638
  className: cn(
7631
- compactSideBody ? "col-start-2 row-start-1 flex min-w-0 flex-col gap-2 self-start" : "contents",
7639
+ "col-start-2 row-start-1 flex min-w-0 flex-col gap-2 self-start",
7632
7640
  (responsiveAvatarBody || responsiveImageBody) && "sm:contents"
7633
7641
  ),
7634
7642
  children: [
@@ -7677,7 +7685,7 @@ function NCard({
7677
7685
  CardContent,
7678
7686
  {
7679
7687
  className: cn(
7680
- "m-0 flex min-w-0 flex-1 flex-col gap-2 p-0",
7688
+ "m-0 flex min-w-0 flex-col gap-2 p-0",
7681
7689
  sideBody && "col-start-2",
7682
7690
  headerBody && "col-span-full",
7683
7691
  responsiveAvatarBody && "col-start-2 sm:col-span-full",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.49",
3
+ "version": "2.1.51",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",