"use client";
import { jsxs as r, jsx as o } from "react/jsx-runtime";
import { S as c } from "./surface-BIC6CXiz.js";
import { c as s } from "./cn-Bhsu1vx2.js";
import { a9 as g, aa as d, ab as p, ac as m, ad as D, ae as f, af as u, ag as x } from "./vendor-base-ui-DWIDNgE1.js";
const y = {
  size: {
    base: {
      classes: "min-w-96",
      description: "Default dialog width"
    },
    sm: {
      classes: "min-w-72",
      description: "Small dialog for simple confirmations"
    },
    lg: {
      classes: "min-w-[32rem]",
      description: "Large dialog for complex content"
    },
    xl: {
      classes: "min-w-[48rem]",
      description: "Extra large dialog for detailed views"
    }
  }
}, t = {
  size: "base"
};
function w({
  size: i = t.size
} = {}) {
  return s(
    // Base styles
    "shadow-m z-modal fixed top-1/2 left-1/2 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-xl bg-kumo-base text-kumo-default duration-150 data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0",
    // Apply size from KUMO_DIALOG_VARIANTS
    y.size[i].classes
  );
}
function T({
  className: i,
  children: e,
  style: l,
  size: n = t.size
}) {
  return /* @__PURE__ */ r(f, { children: [
    /* @__PURE__ */ o(u, { className: "z-modal fixed inset-0 bg-kumo-overlay opacity-80 transition-all duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0" }),
    /* @__PURE__ */ o(
      c,
      {
        as: x,
        className: s(w({ size: n }), i),
        style: {
          transitionProperty: "scale, opacity",
          transitionTimingFunction: "var(--default-transition-timing-function)",
          "--tw-shadow": "0 20px 25px -5px rgb(0 0 0 / 0.03), 0 8px 10px -6px rgb(0 0 0 / 0.03)",
          ...l
        },
        children: e
      }
    )
  ] });
}
const a = Object.assign(T, {
  Root: D,
  Trigger: m,
  Title: p,
  Description: d,
  Close: g
}), h = a.Root, v = a.Trigger, C = a.Title, O = a.Description, S = a.Close;
export {
  a as D,
  h as a,
  v as b,
  C as c,
  O as d,
  S as e
};
//# sourceMappingURL=dialog-B1TaN0oR.js.map
