import * as e from "react";
import s from "../../../../../../../../../_virtual/index9.js";
import { Slot as p } from "../../../../../../../@radix-ui_react-slot@1.1.0_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/@radix-ui/react-slot/dist/index.js";
import { Text as u } from "./text.js";
import { calloutRootPropDefs as l } from "./callout.props.js";
import { extractProps as d } from "../helpers/extract-props.js";
import { mapResponsiveProp as C, mapCalloutSizeToTextSize as x } from "../helpers/map-prop-values.js";
import { marginPropDefs as N } from "../props/margin.props.js";
const m = e.createContext({}), R = e.forwardRef((a, t) => {
  const { size: o = l.size.default } = a, { asChild: r, children: c, className: i, color: f, ...n } = d(a, l, N);
  return e.createElement(r ? p : "div", { "data-accent-color": f, ...n, className: s("rt-CalloutRoot", i), ref: t }, e.createElement(m.Provider, { value: e.useMemo(() => ({ size: o }), [o]) }, c));
});
R.displayName = "Callout.Root";
const z = e.forwardRef(({ className: a, ...t }, o) => e.createElement("div", { ...t, className: s("rt-CalloutIcon", a), ref: o }));
z.displayName = "Callout.Icon";
const v = e.forwardRef(({ className: a, ...t }, o) => {
  const { size: r } = e.useContext(m);
  return e.createElement(u, { as: "p", size: C(r, x), ...t, asChild: !1, ref: o, className: s("rt-CalloutText", a) });
});
v.displayName = "Callout.Text";
export {
  z as Icon,
  R as Root,
  v as Text
};
//# sourceMappingURL=callout.js.map
