@dilipod/ui 0.4.33 → 0.4.34

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.mjs CHANGED
@@ -652,7 +652,7 @@ var sheetVariants = cva(
652
652
  }
653
653
  }
654
654
  );
655
- var SheetContent = React51.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
655
+ var SheetContent = React51.forwardRef(({ side = "right", className, children, hideClose, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
656
656
  /* @__PURE__ */ jsx(SheetOverlay, {}),
657
657
  /* @__PURE__ */ jsxs(
658
658
  SheetPrimitive.Content,
@@ -662,6 +662,7 @@ var SheetContent = React51.forwardRef(({ side = "right", className, children, ..
662
662
  ...props,
663
663
  children: [
664
664
  children,
665
+ !hideClose && // @ts-expect-error - Radix Dialog Close accepts className and children at runtime
665
666
  /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
666
667
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
667
668
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })