najm-kit 2.1.49 → 2.1.50

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 +11 -3
  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: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.49",
3
+ "version": "2.1.50",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",