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.cjs +8 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3214,6 +3214,7 @@ var BusinessFiltersSheet = ({
|
|
|
3214
3214
|
onResetFilters
|
|
3215
3215
|
}) => {
|
|
3216
3216
|
const [localFilters, setLocalFilters] = React15.useState(filters);
|
|
3217
|
+
const [open, setOpen] = React15.useState(false);
|
|
3217
3218
|
React15.useEffect(() => {
|
|
3218
3219
|
setLocalFilters(filters);
|
|
3219
3220
|
}, [filters]);
|
|
@@ -3224,6 +3225,7 @@ var BusinessFiltersSheet = ({
|
|
|
3224
3225
|
Object.entries(localFilters).forEach(([key, value]) => {
|
|
3225
3226
|
onFilterChange(key, value);
|
|
3226
3227
|
});
|
|
3228
|
+
setOpen(false);
|
|
3227
3229
|
};
|
|
3228
3230
|
const handleResetFilters = () => {
|
|
3229
3231
|
const resetFilters = {
|
|
@@ -3235,8 +3237,9 @@ var BusinessFiltersSheet = ({
|
|
|
3235
3237
|
};
|
|
3236
3238
|
setLocalFilters(resetFilters);
|
|
3237
3239
|
onResetFilters();
|
|
3240
|
+
setOpen(false);
|
|
3238
3241
|
};
|
|
3239
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { children: [
|
|
3242
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
3240
3243
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", className: "gap-2", children: [
|
|
3241
3244
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Filter, { className: "h-4 w-4" }),
|
|
3242
3245
|
"Filters"
|
|
@@ -3374,12 +3377,9 @@ var PageLayout = React15__namespace.forwardRef(
|
|
|
3374
3377
|
});
|
|
3375
3378
|
};
|
|
3376
3379
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: "flex flex-col h-screen bg-gradient-subtle", children: [
|
|
3377
|
-
/* @__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(
|
|
3378
|
-
"container mx-auto px-4 py-6",
|
|
3379
|
-
maxWidthClasses[maxWidth]
|
|
3380
|
-
), 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: [
|
|
3381
3381
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-h-[2.5rem]", children: [
|
|
3382
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground
|
|
3382
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-foreground", children: title }),
|
|
3383
3383
|
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: description })
|
|
3384
3384
|
] }),
|
|
3385
3385
|
headerContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: headerContent }),
|
|
@@ -3408,11 +3408,7 @@ var PageLayout = React15__namespace.forwardRef(
|
|
|
3408
3408
|
);
|
|
3409
3409
|
}) })
|
|
3410
3410
|
] }) }) }),
|
|
3411
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3412
|
-
"container mx-auto px-4 py-6",
|
|
3413
|
-
maxWidthClasses[maxWidth],
|
|
3414
|
-
className
|
|
3415
|
-
), 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) => {
|
|
3416
3412
|
const isEditing = editingCards.has(card.key);
|
|
3417
3413
|
const shouldExpand = card.expandOnEdit && isEditing;
|
|
3418
3414
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3422,14 +3418,7 @@ var PageLayout = React15__namespace.forwardRef(
|
|
|
3422
3418
|
"transition-all duration-300",
|
|
3423
3419
|
shouldExpand && (gridCols > 1 ? "col-span-full" : "")
|
|
3424
3420
|
),
|
|
3425
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3426
|
-
card.component,
|
|
3427
|
-
{
|
|
3428
|
-
...card.props,
|
|
3429
|
-
isEditing,
|
|
3430
|
-
onToggleEdit: () => toggleEdit(card.key)
|
|
3431
|
-
}
|
|
3432
|
-
)
|
|
3421
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(card.component, { ...card.props, isEditing, onToggleEdit: () => toggleEdit(card.key) })
|
|
3433
3422
|
},
|
|
3434
3423
|
card.key
|
|
3435
3424
|
);
|