ivt
Version:
Ivt Components Library
3 lines (2 loc) • 3.44 kB
JavaScript
import{c as t}from"../chunks/utils-B4HRExF_.mjs";import{R as e,b as s,C as a,a as o,T as n,D as r,P as i,O as m}from"../chunks/index-CD0qf5ak.mjs";import l from"react";import{X as c}from"../chunks/x-rWMGj99P.mjs";import"../chunks/bundle-mjs-DdsKEIOo.mjs";import"../chunks/index-BgU_7G37.mjs";import"../chunks/index-C99OdH8-.mjs";import"../chunks/index-BXKQJZ6z.mjs";import"react/jsx-runtime";import"../chunks/index-BclYsZHn.mjs";import"../chunks/index-CJw5YZXp.mjs";import"../chunks/index-DX37fts-.mjs";import"../chunks/index-Bj6b6xW8.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-DwSoQWco.mjs";import"../chunks/index-CDzNhFWE.mjs";import"../chunks/tslib.es6-B8aZ0Vi5.mjs";import"../chunks/createLucideIcon-BSkMD9sy.mjs";function d({...t}){return l.createElement(e,{"data-slot":"sheet",...t})}function u({...t}){return l.createElement(s,{"data-slot":"sheet-trigger",...t})}function p({...t}){return l.createElement(a,{"data-slot":"sheet-close",...t})}function f({...t}){return l.createElement(i,{"data-slot":"sheet-portal",...t})}function h({className:e,...s}){return l.createElement(m,{"data-slot":"sheet-overlay",className:t("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 bg-black/50",e),...s})}function x({className:e,children:s,side:n="right",...r}){return l.createElement(f,null,l.createElement(h,null),l.createElement(o,{"data-slot":"sheet-content",className:t("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===n&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===n&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===n&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b","bottom"===n&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",e),...r},s,l.createElement(a,{className:"border-border-grid-container bg-card ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 cursor-pointer rounded-sm border p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none"},l.createElement(c,{className:"size-4"}),l.createElement("span",{className:"sr-only"},"Close"))))}function b({className:e,...s}){return l.createElement("div",{"data-slot":"sheet-header",className:t("flex flex-col space-y-2 text-center sm:text-left",e),...s})}function g({className:e,...s}){return l.createElement("div",{"data-slot":"sheet-footer",className:t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s})}function j({className:e,...s}){return l.createElement(n,{"data-slot":"sheet-title",className:t("text-foreground text-lg font-semibold",e),...s})}function k({className:e,...s}){return l.createElement(r,{"data-slot":"sheet-description",className:t("text-muted-foreground text-sm",e),...s})}export{d as Sheet,p as SheetClose,x as SheetContent,k as SheetDescription,g as SheetFooter,b as SheetHeader,j as SheetTitle,u as SheetTrigger};
//# sourceMappingURL=index.mjs.map