UNPKG

@szum-tech/design-system

Version:

Szum-Tech design system with tailwindcss support

49 lines (45 loc) 2.82 kB
'use strict'; var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs'); var radixUi = require('radix-ui'); var jsxRuntime = require('react/jsx-runtime'); var tailwindMerge = require('tailwind-merge'); var AlertDialog = radixUi.AlertDialog.Root; var AlertDialogTrigger = radixUi.AlertDialog.Trigger; function AlertDialogContent({ className, ...props }) { return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.AlertDialog.Portal, { children: [ /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs" }), /* @__PURE__ */ jsxRuntime.jsx( radixUi.AlertDialog.Content, { className: chunkH2BWO3SI_cjs.cn( "bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 flex w-full max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-800 p-4 shadow-lg duration-200", className ), ...props } ) ] }); } var AlertDialogAction = radixUi.AlertDialog.Action; function AlertDialogFooter({ className, ...props }) { return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props }); } function AlertDialogTitle({ className, ref, ...props }) { return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Title, { ref, className: chunkH2BWO3SI_cjs.cn("text-heading-6", className), ...props }); } function AlertDialogDescription({ className, ...props }) { return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Description, { className: chunkH2BWO3SI_cjs.cn("text-body-2 text-gray-300", className), ...props }); } var AlertDialogCancel = radixUi.AlertDialog.Cancel; function AlertDialogHeader({ className, ...props }) { return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("mb-4 flex flex-col space-y-2 text-center sm:text-left", className), ...props }); } exports.AlertDialog = AlertDialog; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogTrigger = AlertDialogTrigger;