@stackshift-ui/sheet 1.0.0-beta.4 → 1.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sheet.d.ts DELETED
@@ -1,34 +0,0 @@
1
- import * as SheetPrimitive from "@radix-ui/react-dialog";
2
- import * as React from "react";
3
- declare const Sheet: React.ForwardRefExoticComponent<SheetPrimitive.DialogProps & React.RefAttributes<never>>;
4
- declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare namespace SheetTrigger {
6
- var displayName: string;
7
- }
8
- declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
9
- declare namespace SheetClose {
10
- var displayName: string;
11
- }
12
- declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
13
- side?: "top" | "right" | "bottom" | "left";
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare namespace SheetContent {
16
- var displayName: string;
17
- }
18
- declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
19
- declare namespace SheetHeader {
20
- var displayName: string;
21
- }
22
- declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
23
- declare namespace SheetFooter {
24
- var displayName: string;
25
- }
26
- declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
27
- declare namespace SheetTitle {
28
- var displayName: string;
29
- }
30
- declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
31
- declare namespace SheetDescription {
32
- var displayName: string;
33
- }
34
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };
package/dist/sheet.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var H=Object.create;var l=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var X=(e,t)=>{for(var a in t)l(e,a,{get:t[a],enumerable:!0})},p=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of I(t))!U.call(e,n)&&n!==a&&l(e,n,{get:()=>t[n],enumerable:!(r=E(t,n))||r.enumerable});return e};var d=(e,t,a)=>(a=e!=null?H(W(e)):{},p(t||!e||!e.__esModule?l(a,"default",{value:e,enumerable:!0}):a,e)),q=e=>p(l({},"__esModule",{value:!0}),e);var A={};X(A,{Sheet:()=>R,SheetClose:()=>x,SheetContent:()=>D,SheetDescription:()=>F,SheetFooter:()=>k,SheetHeader:()=>O,SheetTitle:()=>z,SheetTrigger:()=>b});module.exports=q(A);var i=d(require("@radix-ui/react-dialog")),c=require("lucide-react"),m=d(require("react")),o=require("@stackshift-ui/system"),s=require("react/jsx-runtime"),h="Sheet",f="SheetTrigger",u="SheetPortal",y="SheetClose",S="SheetOverlay",P="SheetContent",C="SheetHeader",g="SheetFooter",v="SheetTitle",N="SheetDescription",R=m.forwardRef(({...e},t)=>{let{[h]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(a,{as:i.Root,ref:t,"data-slot":"sheet",...e})});R.displayName=h;function b({...e}){let{[f]:t=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(t,{as:i.Trigger,"data-slot":"sheet-trigger",...e})}b.displayName=f;function x({...e}){let{[y]:t=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(t,{as:i.Close,"data-slot":"sheet-close",...e})}x.displayName=y;function T({...e}){let{[u]:t=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(t,{as:i.Portal,"data-slot":"sheet-portal",...e})}T.displayName=u;var w=m.forwardRef(({className:e,...t},a)=>{let{[S]:r=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(r,{as:i.Overlay,ref:a,"data-slot":"sheet-overlay",className:(0,o.cn)("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),...t})});w.displayName=S;function D({className:e,children:t,side:a="right",...r}){let{[P]:n=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsxs)(T,{children:[(0,s.jsx)(w,{}),(0,s.jsxs)(n,{as:i.Content,"data-slot":"sheet-content",className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",a==="right"&&"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",a==="left"&&"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",a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,(0,s.jsxs)(i.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,s.jsx)(c.XIcon,{className:"size-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}D.displayName=P;function O({className:e,...t}){let{[C]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(a,{"data-slot":"sheet-header",className:(0,o.cn)("flex flex-col gap-1.5 p-4",e),...t})}O.displayName=C;function k({className:e,...t}){let{[g]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(a,{"data-slot":"sheet-footer",className:(0,o.cn)("mt-auto flex flex-col gap-2 p-4",e),...t})}k.displayName=g;function z({className:e,...t}){let{[v]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(a,{as:i.Title,"data-slot":"sheet-title",className:(0,o.cn)("text-foreground font-semibold",e),...t})}z.displayName=v;function F({className:e,...t}){let{[N]:a=o.DefaultComponent}=(0,o.useStackShiftUIComponents)();return(0,s.jsx)(a,{as:i.Description,"data-slot":"sheet-description",className:(0,o.cn)("text-muted-foreground text-sm",e),...t})}F.displayName=N;0&&(module.exports={Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetTitle,SheetTrigger});
package/dist/sheet.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a,b,c,d,e,f,g,h}from"./chunk-URL6WFJR.mjs";import"./chunk-3EYN2AKU.mjs";export{a as Sheet,c as SheetClose,d as SheetContent,h as SheetDescription,f as SheetFooter,e as SheetHeader,g as SheetTitle,b as SheetTrigger};