braid-ui 1.0.27 → 1.0.28

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 CHANGED
@@ -3377,12 +3377,9 @@ var PageLayout = React15__namespace.forwardRef(
3377
3377
  });
3378
3378
  };
3379
3379
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: "flex flex-col h-screen bg-gradient-subtle", children: [
3380
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
3381
- "container mx-auto px-4 py-6",
3382
- maxWidthClasses[maxWidth]
3383
- ), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
3380
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("container mx-auto px-4 py-6", maxWidthClasses[maxWidth]), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
3384
3381
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-h-[2.5rem]", children: [
3385
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground mb-2", children: title }),
3382
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground", children: title }),
3386
3383
  description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: description })
3387
3384
  ] }),
3388
3385
  headerContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: headerContent }),
@@ -3411,11 +3408,7 @@ var PageLayout = React15__namespace.forwardRef(
3411
3408
  );
3412
3409
  }) })
3413
3410
  ] }) }) }),
3414
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
3415
- "container mx-auto px-4 py-6",
3416
- maxWidthClasses[maxWidth],
3417
- className
3418
- ), children: mode === "cards" && cards.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("grid gap-6", getGridClasses(gridCols, responsive)), children: cards.map((card) => {
3411
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("container mx-auto px-4 py-6", maxWidthClasses[maxWidth], className), children: mode === "cards" && cards.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("grid gap-6", getGridClasses(gridCols, responsive)), children: cards.map((card) => {
3419
3412
  const isEditing = editingCards.has(card.key);
3420
3413
  const shouldExpand = card.expandOnEdit && isEditing;
3421
3414
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -3425,14 +3418,7 @@ var PageLayout = React15__namespace.forwardRef(
3425
3418
  "transition-all duration-300",
3426
3419
  shouldExpand && (gridCols > 1 ? "col-span-full" : "")
3427
3420
  ),
3428
- children: /* @__PURE__ */ jsxRuntime.jsx(
3429
- card.component,
3430
- {
3431
- ...card.props,
3432
- isEditing,
3433
- onToggleEdit: () => toggleEdit(card.key)
3434
- }
3435
- )
3421
+ children: /* @__PURE__ */ jsxRuntime.jsx(card.component, { ...card.props, isEditing, onToggleEdit: () => toggleEdit(card.key) })
3436
3422
  },
3437
3423
  card.key
3438
3424
  );