UNPKG

ivt

Version:

Ivt Components Library

3 lines (2 loc) 3.52 kB
import{c as e}from"../chunks/utils-C-nkZ_Ir.mjs";import{R as t,b as s,C as a,a as o,T as n,D as r,P as i,O as m}from"../chunks/index-D1EuiH1M.mjs";import c from"react";import{X as l}from"../chunks/x-COocN1ks.mjs";import"../chunks/bundle-mjs-DHbvkKp4.mjs";import"../chunks/index-DVnblQ-a.mjs";import"../chunks/index-C-j8pU3U.mjs";import"../chunks/index-Dr5ObK3L.mjs";import"react/jsx-runtime";import"../chunks/index-UQBMY2z8.mjs";import"../chunks/index-0-u0cdz8.mjs";import"../chunks/index-BOUg6o32.mjs";import"../chunks/index-C_Mk3Jfk.mjs";import"../chunks/index-DiPp8h7C.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-DSUHCtxx.mjs";import"../chunks/index-lVEpnR8T.mjs";import"../chunks/tslib.es6-Bvey-QDo.mjs";import"../chunks/index-1xuBLrml.mjs";import"../chunks/createLucideIcon-D1jKv6AP.mjs";function d({...e}){return c.createElement(t,{"data-slot":"sheet",...e})}function u({...e}){return c.createElement(s,{"data-slot":"sheet-trigger",...e})}function p({...e}){return c.createElement(a,{"data-slot":"sheet-close",...e})}function f({...e}){return c.createElement(i,{"data-slot":"sheet-portal",...e})}function h({className:t,...s}){return c.createElement(m,{"data-slot":"sheet-overlay",className:e("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",t),...s})}function x({className:t,children:s,side:n="right",...r}){return c.createElement(f,null,c.createElement(h,null),c.createElement(o,{"data-slot":"sheet-content",className:e("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",t),...r},s,c.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"},c.createElement(l,{className:"size-4"}),c.createElement("span",{className:"sr-only"},"Close"))))}function b({className:t,...s}){return c.createElement("div",{"data-slot":"sheet-header",className:e("flex flex-col space-y-2 text-center sm:text-left",t),...s})}function g({className:t,...s}){return c.createElement("div",{"data-slot":"sheet-footer",className:e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})}function j({className:t,...s}){return c.createElement(n,{"data-slot":"sheet-title",className:e("text-foreground text-lg font-semibold",t),...s})}function k({className:t,...s}){return c.createElement(r,{"data-slot":"sheet-description",className:e("text-muted-foreground text-sm",t),...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