UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

45 lines (44 loc) 1.59 kB
"use client"; import { jsx as r } from "react/jsx-runtime"; import { classNames as i } from "../../../../../utils.js"; import { Trigger as l, Content as n, Overlay as p, Root as m, Title as x, Description as N, Portal as _, Close as f } from "../../../../../node_modules/.pnpm/@radix-ui_react-dialog@1.1.6_@types_react-dom@19.0.4_@types_react@19.0.10__@types_react@19.0._hjv5xdlxm3zsqf3yg6gf36cppa/node_modules/@radix-ui/react-dialog/dist/index.js"; import { forwardRef as o } from "react"; const e = ({ children: t, ...a }) => /* @__PURE__ */ r(m, { ...a, children: t }); e.displayName = m.displayName; const d = o(({ children: t, ...a }, s) => /* @__PURE__ */ r(l, { ref: s, ...a, children: t })); d.displayName = l.displayName; const y = o(({ children: t, className: a, ...s }, g) => /* @__PURE__ */ r( n, { className: i( "data-[state=open]:animate-content-show focus:outline-hidden z-1000 fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] rounded-sm bg-white shadow-[hsl(206_22%_7%/35%)_0px_10px_38px_-10px,hsl(206_22%_7%/20%)_0px_10px_20px_-15px]", a ), ref: g, ...s, children: t } )); y.displayName = n.displayName; const c = o(({ className: t, ...a }, s) => /* @__PURE__ */ r( p, { className: i( "z-100 data-[state=open]:animate-overlay-show fixed inset-0 bg-gray-900 bg-opacity-10" ), ref: s, ...a } )); c.displayName = p.displayName; e.Trigger = d; e.Content = y; e.Overlay = c; e.Title = x; e.Description = N; e.Portal = _; e.Close = f; export { e as Dialog }; //# sourceMappingURL=dialog.js.map