braid-ui 1.0.25 → 1.0.27

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
@@ -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"