braid-ui 1.0.26 → 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.js CHANGED
@@ -3182,6 +3182,7 @@ var BusinessFiltersSheet = ({
3182
3182
  onResetFilters
3183
3183
  }) => {
3184
3184
  const [localFilters, setLocalFilters] = useState(filters);
3185
+ const [open, setOpen] = useState(false);
3185
3186
  useEffect(() => {
3186
3187
  setLocalFilters(filters);
3187
3188
  }, [filters]);
@@ -3192,6 +3193,7 @@ var BusinessFiltersSheet = ({
3192
3193
  Object.entries(localFilters).forEach(([key, value]) => {
3193
3194
  onFilterChange(key, value);
3194
3195
  });
3196
+ setOpen(false);
3195
3197
  };
3196
3198
  const handleResetFilters = () => {
3197
3199
  const resetFilters = {
@@ -3203,8 +3205,9 @@ var BusinessFiltersSheet = ({
3203
3205
  };
3204
3206
  setLocalFilters(resetFilters);
3205
3207
  onResetFilters();
3208
+ setOpen(false);
3206
3209
  };
3207
- return /* @__PURE__ */ jsxs(Sheet, { children: [
3210
+ return /* @__PURE__ */ jsxs(Sheet, { open, onOpenChange: setOpen, children: [
3208
3211
  /* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "gap-2", children: [
3209
3212
  /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
3210
3213
  "Filters"
@@ -3342,12 +3345,9 @@ var PageLayout = React15.forwardRef(
3342
3345
  });
3343
3346
  };
3344
3347
  return /* @__PURE__ */ jsxs("div", { ref, className: "flex flex-col h-screen bg-gradient-subtle", children: [
3345
- /* @__PURE__ */ jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsx("div", { className: cn(
3346
- "container mx-auto px-4 py-6",
3347
- maxWidthClasses[maxWidth]
3348
- ), children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
3348
+ /* @__PURE__ */ jsx("div", { className: "flex-none border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ jsx("div", { className: cn("container mx-auto px-4 py-6", maxWidthClasses[maxWidth]), children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
3349
3349
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-h-[2.5rem]", children: [
3350
- /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-foreground mb-2", children: title }),
3350
+ /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-foreground", children: title }),
3351
3351
  description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description })
3352
3352
  ] }),
3353
3353
  headerContent && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: headerContent }),
@@ -3376,11 +3376,7 @@ var PageLayout = React15.forwardRef(
3376
3376
  );
3377
3377
  }) })
3378
3378
  ] }) }) }),
3379
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: cn(
3380
- "container mx-auto px-4 py-6",
3381
- maxWidthClasses[maxWidth],
3382
- className
3383
- ), children: mode === "cards" && cards.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn("grid gap-6", getGridClasses(gridCols, responsive)), children: cards.map((card) => {
3379
+ /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: cn("container mx-auto px-4 py-6", maxWidthClasses[maxWidth], className), children: mode === "cards" && cards.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn("grid gap-6", getGridClasses(gridCols, responsive)), children: cards.map((card) => {
3384
3380
  const isEditing = editingCards.has(card.key);
3385
3381
  const shouldExpand = card.expandOnEdit && isEditing;
3386
3382
  return /* @__PURE__ */ jsx(
@@ -3390,14 +3386,7 @@ var PageLayout = React15.forwardRef(
3390
3386
  "transition-all duration-300",
3391
3387
  shouldExpand && (gridCols > 1 ? "col-span-full" : "")
3392
3388
  ),
3393
- children: /* @__PURE__ */ jsx(
3394
- card.component,
3395
- {
3396
- ...card.props,
3397
- isEditing,
3398
- onToggleEdit: () => toggleEdit(card.key)
3399
- }
3400
- )
3389
+ children: /* @__PURE__ */ jsx(card.component, { ...card.props, isEditing, onToggleEdit: () => toggleEdit(card.key) })
3401
3390
  },
3402
3391
  card.key
3403
3392
  );