import { j as e } from "../../../../../../../_virtual/jsx-runtime.js";
import "react";
import "../../../../../../../node_modules/.pnpm/@formkit_auto-animate@0.8.2/node_modules/@formkit/auto-animate/index.js";
import "../../../../../../../node_modules/.pnpm/react-hot-toast@2.5.2_react-dom@18.3.0-canary-3d9b20132-20240124_react@18.3.0-canary-3d_c02c1e17bf76c343fd22d1f22394ecf5/node_modules/react-hot-toast/dist/index.js";
import { fieldLabel as i } from "../form-class.js";
import { FieldTitle as g } from "../field-factory.js";
import { a as j } from "../../../../../../sdk/dist/shared/chunk-QGYZ7CG5.js";
import "../../../../../../sdk/dist/shared/chunk-AFVJZPLS.js";
import "@sinclair/typebox";
import "../../../../../../sdk/dist/shared/chunk-A3GF4PYW.js";
import "../../../../../../sdk/dist/shared/chunk-W33JMRRN.js";
import { Root as o, Trigger as t, Content as n, Group as c, Item as p } from "../../../../../../../node_modules/.pnpm/@radix-ui_themes@3.1.4_@types_react-dom@18.3.6_@types_react@18.3.3__@types_react@18.3.3_46b1dabc193c5ff5696ee783983c694e/node_modules/@radix-ui/themes/dist/esm/components/select.js";
const w = (d) => {
  const { currentValue: r, onChange: x, title: h, description: m, placeholder: f, schema: s } = d, l = (a) => x({ ...r, ...a });
  return /* @__PURE__ */ e.jsxs("div", { className: "border-field", children: [
    /* @__PURE__ */ e.jsx(g, { title: h, description: m }),
    /* @__PURE__ */ e.jsxs("div", { className: "flex items-start flex-wrap gap-x-4 gap-y-1", children: [
      /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 flex-1", children: [
        /* @__PURE__ */ e.jsx("label", { className: i, children: "Horizontal padding" }),
        /* @__PURE__ */ e.jsxs(
          o,
          {
            defaultValue: r.horizontal,
            size: "2",
            onValueChange: (a) => l({ horizontal: a }),
            children: [
              /* @__PURE__ */ e.jsx(t, { radius: "large", variant: "ghost" }),
              /* @__PURE__ */ e.jsx(n, { position: "popper", children: /* @__PURE__ */ e.jsx(c, { children: j(s.properties.horizontal).map((a) => /* @__PURE__ */ e.jsx(p, { value: a.const, children: a.title }, a.const)) }) })
            ]
          }
        )
      ] }),
      /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 flex-1", children: [
        /* @__PURE__ */ e.jsx("label", { className: i, children: "Vertical padding" }),
        /* @__PURE__ */ e.jsxs(
          o,
          {
            defaultValue: r.vertical,
            size: "2",
            onValueChange: (a) => l({ vertical: a }),
            children: [
              /* @__PURE__ */ e.jsx(t, { radius: "large", variant: "ghost" }),
              /* @__PURE__ */ e.jsx(n, { position: "popper", children: /* @__PURE__ */ e.jsx(c, { children: s.properties.vertical.anyOf.map((a) => /* @__PURE__ */ e.jsx(p, { value: a.const, children: a.title }, a.const)) }) })
            ]
          }
        )
      ] })
    ] })
  ] });
};
export {
  w as PagePaddingField
};
//# sourceMappingURL=padding.js.map
