@jamsrui/drawer 0.0.2
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/README.md +40 -0
- package/dist/chunk-5LGURIDY.js +1 -0
- package/dist/chunk-6XYRR3IV.mjs +1 -0
- package/dist/chunk-BP77MJVR.mjs +1 -0
- package/dist/chunk-DIVLCNEY.js +1 -0
- package/dist/chunk-EBAXPVZK.js +1 -0
- package/dist/chunk-FLLYJJRJ.mjs +1 -0
- package/dist/chunk-GUMSFI7G.mjs +1 -0
- package/dist/chunk-IEFAZ5FA.js +1 -0
- package/dist/chunk-ILBTUKZ5.mjs +1 -0
- package/dist/chunk-KNT3NBAB.mjs +1 -0
- package/dist/chunk-KWIHRWXQ.mjs +1 -0
- package/dist/chunk-L4VK5JCO.js +1 -0
- package/dist/chunk-LJQ6DDUH.js +1 -0
- package/dist/chunk-LVXR3WXC.mjs +1 -0
- package/dist/chunk-MIPPECRL.mjs +1 -0
- package/dist/chunk-ND7OMDLN.js +1 -0
- package/dist/chunk-PNQ3EGNQ.js +1 -0
- package/dist/chunk-RD4N3HAN.js +1 -0
- package/dist/chunk-SOXQFYXF.mjs +1 -0
- package/dist/chunk-UM7Z4GKN.mjs +1 -0
- package/dist/chunk-VIEG7KXL.js +1 -0
- package/dist/chunk-WBBF5BOV.mjs +1 -0
- package/dist/chunk-X6T6A5NL.mjs +1 -0
- package/dist/chunk-YIBRX4K7.js +1 -0
- package/dist/chunk-YVT26KKP.js +1 -0
- package/dist/chunk-ZLIR7YT7.js +1 -0
- package/dist/drawer-body.d.mts +10 -0
- package/dist/drawer-body.d.ts +10 -0
- package/dist/drawer-body.js +1 -0
- package/dist/drawer-body.mjs +1 -0
- package/dist/drawer-close-button.d.mts +10 -0
- package/dist/drawer-close-button.d.ts +10 -0
- package/dist/drawer-close-button.js +1 -0
- package/dist/drawer-close-button.mjs +1 -0
- package/dist/drawer-close-trigger.d.mts +10 -0
- package/dist/drawer-close-trigger.d.ts +10 -0
- package/dist/drawer-close-trigger.js +1 -0
- package/dist/drawer-close-trigger.mjs +1 -0
- package/dist/drawer-config.d.mts +27 -0
- package/dist/drawer-config.d.ts +27 -0
- package/dist/drawer-config.js +1 -0
- package/dist/drawer-config.mjs +1 -0
- package/dist/drawer-content.d.mts +11 -0
- package/dist/drawer-content.d.ts +11 -0
- package/dist/drawer-content.js +1 -0
- package/dist/drawer-content.mjs +1 -0
- package/dist/drawer-context.d.mts +23 -0
- package/dist/drawer-context.d.ts +23 -0
- package/dist/drawer-context.js +1 -0
- package/dist/drawer-context.mjs +1 -0
- package/dist/drawer-footer.d.mts +10 -0
- package/dist/drawer-footer.d.ts +10 -0
- package/dist/drawer-footer.js +1 -0
- package/dist/drawer-footer.mjs +1 -0
- package/dist/drawer-header.d.mts +10 -0
- package/dist/drawer-header.d.ts +10 -0
- package/dist/drawer-header.js +1 -0
- package/dist/drawer-header.mjs +1 -0
- package/dist/drawer-popover.d.mts +10 -0
- package/dist/drawer-popover.d.ts +10 -0
- package/dist/drawer-popover.js +1 -0
- package/dist/drawer-popover.mjs +1 -0
- package/dist/drawer-trigger.d.mts +10 -0
- package/dist/drawer-trigger.d.ts +10 -0
- package/dist/drawer-trigger.js +1 -0
- package/dist/drawer-trigger.mjs +1 -0
- package/dist/drawer.d.mts +23 -0
- package/dist/drawer.d.ts +23 -0
- package/dist/drawer.js +1 -0
- package/dist/drawer.mjs +1 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/styles.d.mts +273 -0
- package/dist/styles.d.ts +273 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/use-drawer.d.mts +53 -0
- package/dist/use-drawer.d.ts +53 -0
- package/dist/use-drawer.js +1 -0
- package/dist/use-drawer.mjs +1 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# 🚀 **JamsrUI**
|
|
2
|
+
|
|
3
|
+
**A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 📖 **Overview**
|
|
7
|
+
|
|
8
|
+
[JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
|
|
9
|
+
|
|
10
|
+
## 🚀 Getting Started
|
|
11
|
+
|
|
12
|
+
Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
- 🚀 **Production-Ready**: Optimized for modern React projects.
|
|
17
|
+
- 🎨 **Customizable**: Easily override styles and themes.
|
|
18
|
+
- 🛠️ **Reusable Components**: Save time with prebuilt, efficient UI elements.
|
|
19
|
+
- ⚡ **Developer-Friendly**: Simple API and well-documented usage.
|
|
20
|
+
- 📦 **Lightweight**: Minimal dependencies for fast performance.
|
|
21
|
+
- 🖥️ **Modern Design**: Clean, responsive, and user-friendly components.
|
|
22
|
+
|
|
23
|
+
## 🌱 Community
|
|
24
|
+
|
|
25
|
+
We’re thrilled to see the community actively engage with **JamsrUI**! Whether you're sharing feedback, reporting bugs, requesting features, or showcasing projects built with JamsrUI, your involvement helps us grow and improve.
|
|
26
|
+
|
|
27
|
+
### How to Engage
|
|
28
|
+
|
|
29
|
+
- 💬 **Report Bugs**: [GitHub Issues](https://github.com/jamsrworld/jamsr-ui/issues)
|
|
30
|
+
- 🚀 **Request Features**: Share ideas for new components.
|
|
31
|
+
- 🤝 **Showcase Projects**: Let us know how you use JamsrUI.
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
We welcome contributions from developers of all skill levels!
|
|
36
|
+
|
|
37
|
+
## ⭐ Support the Project
|
|
38
|
+
|
|
39
|
+
If you find **JamsrUI** helpful, consider giving it a ⭐ on [GitHub](https://github.com/jamsrworld/jamsr-ui).
|
|
40
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _iconbutton = require('@jamsrui/icon-button');var _icons = require('@jamsrui/icons');var l=t=>{let{getCloseButtonProps:e}=_chunkL4VK5JCOjs.b.call(void 0, );return React.createElement(_iconbutton.IconButton,{label:"Close Drawer",...e(t)},React.createElement(_icons.CloseIcon,{className:"size-4"}))};exports.a = l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r,use as t}from"react";var o=r(null),s=()=>{let e=t(o);if(!e)throw new Error("useDrawerContext must be used within DrawerContext");return e};export{o as a,s as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-6XYRR3IV.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=e=>{let{getFooterProps:o}=r();return t("div",{props:[o(e)]})};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _hooks = require('@jamsrui/hooks');var m=e=>{let{getBodyProps:o}=_chunkL4VK5JCOjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[o(e)]})};exports.a = m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var e="",a= exports.b =_utils.tv.call(void 0, {slots:{backdrop:"z-backdrop !overflow-hidden",popover:"z-dialog",content:"absolute flex w-full flex-col overflow-y-auto bg-surface shadow-sm",header:"p-4",footer:"flex justify-end gap-2 p-4",body:"grow p-4",closeButton:"absolute right-4 top-4"},variants:{anchor:{left:{content:"left-0 top-0 h-dvh"},right:{content:"right-0 top-0 h-dvh"},top:{content:"left-0 top-0"},bottom:{content:"bottom-0 left-0"}},size:{xs:{content:"max-w-xs"},sm:{content:"max-w-sm"},md:{content:"max-w-md"},lg:{content:"max-w-lg"},xl:{content:"max-w-xl"},"2xl":{content:"max-w-2xl"},"3xl":{content:"max-w-3xl"},"4xl":{content:"max-w-4xl"},"5xl":{content:"max-w-5xl"},full:{content:"m-0 h-dvh max-w-full !rounded-none sm:m-0"}},isBordered:{true:{header:"border-b border-divider",footer:"border-t border-storke-primary"}},scrollBehavior:{inside:{body:"overflow-y-auto"},outside:{}},backdrop:{transparent:{backdrop:""},opaque:{backdrop:"bg-black/50"},blur:{backdrop:"bg-black/30 backdrop-blur-md backdrop-saturate-150"}},radius:_utils.radiusVariant.call(void 0, "content")},compoundVariants:[{anchor:["top","bottom"],className:{content:"w-full !max-w-full"}}],defaultVariants:{scrollBehavior:"inside",size:"lg",isBordered:!1,backdrop:"opaque",anchor:"right",radius:"none"}});exports.a = e; exports.b = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as d}from"./chunk-X6T6A5NL.mjs";import{useCallback as t,useMemo as j}from"react";import{useClick as z,useDismiss as A,useFloating as E,useInteractions as $,useRole as q}from"@floating-ui/react";import{useControlledState as J}from"@jamsrui/hooks";import{cn as a,dataAttrDev as n,mapPropsVariants as L,mergeProps as p}from"@jamsrui/utils";var _=k=>{let[x,G]=L(k,d.variantKeys),{classNames:s,slotProps:e,defaultOpen:S,isOpen:T,onOpenChange:H,isDismissible:I,isKeyboardDismissible:K,hideCloseButton:P=!1}=x,r=d(G),[i,m]=J({defaultProp:S,onChange:H,prop:T}),{context:l,refs:{setFloating:u,setReference:f}}=E({open:i,onOpenChange:m}),M=z(l,{enabled:!0}),V=A(l,{escapeKey:K,outsidePressEvent:"click",outsidePress:I}),R=q(l),U=$([M,V,R]),{getFloatingProps:g,getReferenceProps:y}=U,c=t(()=>{m(!1)},[m]),w=t(o=>({...p(e?.header,o),"data-slot":n("header"),className:r.header({className:a(e?.header?.className,s?.header,o.className)})}),[s?.header,e?.header,r]),D=t(o=>({...p(e?.footer,o),"data-slot":n("footer"),className:r.footer({className:a(e?.footer?.className,s?.footer,o.className)})}),[s?.footer,e?.footer,r]),N=t(o=>({...p(e?.body,o),"data-slot":n("body"),className:r.body({className:a(e?.body?.className,s?.body,o.className)})}),[s?.body,e?.body,r]),b=t(o=>({...p(e?.popover,o),"data-slot":n("popover"),className:r.popover({className:a(e?.popover?.className,s?.popover,o.className)}),ref:u,...g()}),[s?.popover,g,u,e?.popover,r]),C=t(o=>({...p(e?.content,o),"data-slot":n("content"),className:r.content({className:a(e?.content?.className,s?.content,o.className)}),initial:{opacity:0,x:"100%",transition:{type:"spring",stiffness:180,damping:30,mass:.9}},animate:{opacity:1,x:0,transition:{type:"spring",stiffness:120,damping:20,mass:.8}},exit:{opacity:0,x:"100%",transition:{type:"spring",stiffness:300,damping:30,mass:.6}}}),[s?.content,e?.content,r]),v=t(o=>({...p(e?.closeButton,o),"data-slot":n("closeButton"),className:r.closeButton({className:a(e?.closeButton?.className,s?.closeButton,o.className)}),radius:"full",size:"xs",onClick:c}),[s?.closeButton,c,e?.closeButton,r]),B=t(()=>({lockScroll:!0,"data-slot":n("backdrop"),className:r.backdrop({className:a(s?.backdrop)})}),[s?.backdrop,r]),h=t(()=>({context:l,modal:!0}),[l]),F=t(()=>({...y({ref:f})}),[y,f]),O=t(()=>({onClick:c}),[c]);return j(()=>({getHeaderProps:w,getFooterProps:D,getBodyProps:N,getContentProps:C,getCloseButtonProps:v,getBackdropProps:B,getFocusManagerProps:h,getTriggerProps:F,getTriggerCloseProps:O,isOpen:i,getPopoverProps:b,hideCloseButton:P}),[w,D,N,C,v,B,h,F,O,i,b,P])};export{_ as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as r}from"@jamsrui/utils";var[e,a]=r({displayName:"DrawerConfig"});export{e as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _react = require('react');var c=t=>{let{children:r}=t,{getTriggerProps:n}=_chunkL4VK5JCOjs.b.call(void 0, );return _react.isValidElement.call(void 0, r)?_react.cloneElement.call(void 0, r,n()):(console.warn("Invalid children passed to DialogTrigger"),null)};exports.a = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-6XYRR3IV.mjs";import{cloneElement as o,isValidElement as i}from"react";var c=t=>{let{children:r}=t,{getTriggerProps:n}=e();return i(r)?o(r,n()):(console.warn("Invalid children passed to DialogTrigger"),null)};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-6XYRR3IV.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var a=r=>{let{getHeaderProps:t}=e();return o("div",{props:[t(r)]})};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-6XYRR3IV.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=e=>{let{getBodyProps:o}=r();return t("div",{props:[o(e)]})};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _react = require('react');var o=_react.createContext.call(void 0, null),s= exports.b =()=>{let e=_react.use.call(void 0, o);if(!e)throw new Error("useDrawerContext must be used within DrawerContext");return e};exports.a = o; exports.b = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _hooks = require('@jamsrui/hooks');var m=e=>{let{getPopoverProps:o}=_chunkL4VK5JCOjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[o(e)]})};exports.a = m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-FLLYJJRJ.mjs";import{b as t}from"./chunk-GUMSFI7G.mjs";import{a as o}from"./chunk-6XYRR3IV.mjs";import{mergeConfigProps as m}from"@jamsrui/utils";var D=r=>{let{children:a}=r,e=t(),s=m(e,e,r),c=n(s);return React.createElement(o,{value:c},a)};export{D as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-6XYRR3IV.mjs";import{cloneElement as n,isValidElement as l}from"react";var a=o=>{let{children:e}=o,{getTriggerCloseProps:t}=r();return l(e)?n(e,t()):(console.warn("Invalid children passed to DialogCloseTrigger"),null)};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkEBAXPVZKjs = require('./chunk-EBAXPVZK.js');var _react = require('react');var _react3 = require('@floating-ui/react');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var _=k=>{let[x,G]=_utils.mapPropsVariants.call(void 0, k,_chunkEBAXPVZKjs.b.variantKeys),{classNames:s,slotProps:e,defaultOpen:S,isOpen:T,onOpenChange:H,isDismissible:I,isKeyboardDismissible:K,hideCloseButton:P=!1}=x,r=_chunkEBAXPVZKjs.b.call(void 0, G),[i,m]=_hooks.useControlledState.call(void 0, {defaultProp:S,onChange:H,prop:T}),{context:l,refs:{setFloating:u,setReference:f}}=_react3.useFloating.call(void 0, {open:i,onOpenChange:m}),M=_react3.useClick.call(void 0, l,{enabled:!0}),V=_react3.useDismiss.call(void 0, l,{escapeKey:K,outsidePressEvent:"click",outsidePress:I}),R=_react3.useRole.call(void 0, l),U=_react3.useInteractions.call(void 0, [M,V,R]),{getFloatingProps:g,getReferenceProps:y}=U,c=_react.useCallback.call(void 0, ()=>{m(!1)},[m]),w=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _2 => _2.header]),o),"data-slot":_utils.dataAttrDev.call(void 0, "header"),className:r.header({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _3 => _3.header, 'optionalAccess', _4 => _4.className]),_optionalChain([s, 'optionalAccess', _5 => _5.header]),o.className)})}),[_optionalChain([s, 'optionalAccess', _6 => _6.header]),_optionalChain([e, 'optionalAccess', _7 => _7.header]),r]),D=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _8 => _8.footer]),o),"data-slot":_utils.dataAttrDev.call(void 0, "footer"),className:r.footer({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _9 => _9.footer, 'optionalAccess', _10 => _10.className]),_optionalChain([s, 'optionalAccess', _11 => _11.footer]),o.className)})}),[_optionalChain([s, 'optionalAccess', _12 => _12.footer]),_optionalChain([e, 'optionalAccess', _13 => _13.footer]),r]),N=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _14 => _14.body]),o),"data-slot":_utils.dataAttrDev.call(void 0, "body"),className:r.body({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _15 => _15.body, 'optionalAccess', _16 => _16.className]),_optionalChain([s, 'optionalAccess', _17 => _17.body]),o.className)})}),[_optionalChain([s, 'optionalAccess', _18 => _18.body]),_optionalChain([e, 'optionalAccess', _19 => _19.body]),r]),b=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _20 => _20.popover]),o),"data-slot":_utils.dataAttrDev.call(void 0, "popover"),className:r.popover({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _21 => _21.popover, 'optionalAccess', _22 => _22.className]),_optionalChain([s, 'optionalAccess', _23 => _23.popover]),o.className)}),ref:u,...g()}),[_optionalChain([s, 'optionalAccess', _24 => _24.popover]),g,u,_optionalChain([e, 'optionalAccess', _25 => _25.popover]),r]),C=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _26 => _26.content]),o),"data-slot":_utils.dataAttrDev.call(void 0, "content"),className:r.content({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _27 => _27.content, 'optionalAccess', _28 => _28.className]),_optionalChain([s, 'optionalAccess', _29 => _29.content]),o.className)}),initial:{opacity:0,x:"100%",transition:{type:"spring",stiffness:180,damping:30,mass:.9}},animate:{opacity:1,x:0,transition:{type:"spring",stiffness:120,damping:20,mass:.8}},exit:{opacity:0,x:"100%",transition:{type:"spring",stiffness:300,damping:30,mass:.6}}}),[_optionalChain([s, 'optionalAccess', _30 => _30.content]),_optionalChain([e, 'optionalAccess', _31 => _31.content]),r]),v=_react.useCallback.call(void 0, o=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _32 => _32.closeButton]),o),"data-slot":_utils.dataAttrDev.call(void 0, "closeButton"),className:r.closeButton({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _33 => _33.closeButton, 'optionalAccess', _34 => _34.className]),_optionalChain([s, 'optionalAccess', _35 => _35.closeButton]),o.className)}),radius:"full",size:"xs",onClick:c}),[_optionalChain([s, 'optionalAccess', _36 => _36.closeButton]),c,_optionalChain([e, 'optionalAccess', _37 => _37.closeButton]),r]),B=_react.useCallback.call(void 0, ()=>({lockScroll:!0,"data-slot":_utils.dataAttrDev.call(void 0, "backdrop"),className:r.backdrop({className:_utils.cn.call(void 0, _optionalChain([s, 'optionalAccess', _38 => _38.backdrop]))})}),[_optionalChain([s, 'optionalAccess', _39 => _39.backdrop]),r]),h=_react.useCallback.call(void 0, ()=>({context:l,modal:!0}),[l]),F=_react.useCallback.call(void 0, ()=>({...y({ref:f})}),[y,f]),O=_react.useCallback.call(void 0, ()=>({onClick:c}),[c]);return _react.useMemo.call(void 0, ()=>({getHeaderProps:w,getFooterProps:D,getBodyProps:N,getContentProps:C,getCloseButtonProps:v,getBackdropProps:B,getFocusManagerProps:h,getTriggerProps:F,getTriggerCloseProps:O,isOpen:i,getPopoverProps:b,hideCloseButton:P}),[w,D,N,C,v,B,h,F,O,i,b,P])};exports.a = _;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _react = require('react');var a=o=>{let{children:e}=o,{getTriggerCloseProps:t}=_chunkL4VK5JCOjs.b.call(void 0, );return _react.isValidElement.call(void 0, e)?_react.cloneElement.call(void 0, e,t()):(console.warn("Invalid children passed to DialogCloseTrigger"),null)};exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkND7OMDLNjs = require('./chunk-ND7OMDLN.js');var _chunkZLIR7YT7js = require('./chunk-ZLIR7YT7.js');var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _utils = require('@jamsrui/utils');var D=r=>{let{children:a}=r,e=_chunkZLIR7YT7js.b.call(void 0, ),s=_utils.mergeConfigProps.call(void 0, e,e,r),c=_chunkND7OMDLNjs.a.call(void 0, s);return React.createElement(_chunkL4VK5JCOjs.a,{value:c},a)};exports.a = D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-WBBF5BOV.mjs";import{a as e}from"./chunk-UM7Z4GKN.mjs";import{b as r}from"./chunk-6XYRR3IV.mjs";import{FloatingOverlay as s,FloatingPortal as l}from"@floating-ui/react";import{AnimatePresence as c,motion as P}from"motion/react";var D=o=>{let{children:n}=o,{getContentProps:i,isOpen:a,getBackdropProps:m,hideCloseButton:p}=r();return React.createElement(c,null,a?React.createElement(l,null,React.createElement(s,{...m()},React.createElement(t,null,React.createElement(P.div,{...i(o)},!p&&React.createElement(e,null),n)))):null)};export{D as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o}from"./chunk-6XYRR3IV.mjs";import{IconButton as r}from"@jamsrui/icon-button";import{CloseIcon as n}from"@jamsrui/icons";var l=t=>{let{getCloseButtonProps:e}=o();return React.createElement(r,{label:"Close Drawer",...e(t)},React.createElement(n,{className:"size-4"}))};export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLJQ6DDUHjs = require('./chunk-LJQ6DDUH.js');var _chunk5LGURIDYjs = require('./chunk-5LGURIDY.js');var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _react = require('@floating-ui/react');var _react3 = require('motion/react');var D=o=>{let{children:n}=o,{getContentProps:i,isOpen:a,getBackdropProps:m,hideCloseButton:p}=_chunkL4VK5JCOjs.b.call(void 0, );return React.createElement(_react3.AnimatePresence,null,a?React.createElement(_react.FloatingPortal,null,React.createElement(_react.FloatingOverlay,{...m()},React.createElement(_chunkLJQ6DDUHjs.a,null,React.createElement(_react3.motion.div,{...i(o)},!p&&React.createElement(_chunk5LGURIDYjs.a,null),n)))):null)};exports.a = D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-6XYRR3IV.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var m=e=>{let{getPopoverProps:o}=r();return t("div",{props:[o(e)]})};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{radiusVariant as t,tv as o}from"@jamsrui/utils";var e="",a=o({slots:{backdrop:"z-backdrop !overflow-hidden",popover:"z-dialog",content:"absolute flex w-full flex-col overflow-y-auto bg-surface shadow-sm",header:"p-4",footer:"flex justify-end gap-2 p-4",body:"grow p-4",closeButton:"absolute right-4 top-4"},variants:{anchor:{left:{content:"left-0 top-0 h-dvh"},right:{content:"right-0 top-0 h-dvh"},top:{content:"left-0 top-0"},bottom:{content:"bottom-0 left-0"}},size:{xs:{content:"max-w-xs"},sm:{content:"max-w-sm"},md:{content:"max-w-md"},lg:{content:"max-w-lg"},xl:{content:"max-w-xl"},"2xl":{content:"max-w-2xl"},"3xl":{content:"max-w-3xl"},"4xl":{content:"max-w-4xl"},"5xl":{content:"max-w-5xl"},full:{content:"m-0 h-dvh max-w-full !rounded-none sm:m-0"}},isBordered:{true:{header:"border-b border-divider",footer:"border-t border-storke-primary"}},scrollBehavior:{inside:{body:"overflow-y-auto"},outside:{}},backdrop:{transparent:{backdrop:""},opaque:{backdrop:"bg-black/50"},blur:{backdrop:"bg-black/30 backdrop-blur-md backdrop-saturate-150"}},radius:t("content")},compoundVariants:[{anchor:["top","bottom"],className:{content:"w-full !max-w-full"}}],defaultVariants:{scrollBehavior:"inside",size:"lg",isBordered:!1,backdrop:"opaque",anchor:"right",radius:"none"}});export{e as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _hooks = require('@jamsrui/hooks');var m=e=>{let{getFooterProps:o}=_chunkL4VK5JCOjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[o(e)]})};exports.a = m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');var _hooks = require('@jamsrui/hooks');var a=r=>{let{getHeaderProps:t}=_chunkL4VK5JCOjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[t(r)]})};exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[e,a]=_utils.createConfigContext.call(void 0, {displayName:"DrawerConfig"});exports.a = e; exports.b = a;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerBody: (props: DrawerBody.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerBody {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerBody };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerBody: (props: DrawerBody.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerBody {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerBody };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDIVLCNEYjs = require('./chunk-DIVLCNEY.js');require('./chunk-L4VK5JCO.js');exports.DrawerBody = _chunkDIVLCNEYjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-KWIHRWXQ.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerBody};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { IconButton } from '@jamsrui/icon-button';
|
|
3
|
+
|
|
4
|
+
declare const DrawerCloseButton: (props: DrawerCloseButton.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace DrawerCloseButton {
|
|
6
|
+
interface Props extends Partial<IconButton.Props> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerCloseButton };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { IconButton } from '@jamsrui/icon-button';
|
|
3
|
+
|
|
4
|
+
declare const DrawerCloseButton: (props: DrawerCloseButton.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace DrawerCloseButton {
|
|
6
|
+
interface Props extends Partial<IconButton.Props> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerCloseButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5LGURIDYjs = require('./chunk-5LGURIDY.js');require('./chunk-L4VK5JCO.js');exports.DrawerCloseButton = _chunk5LGURIDYjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-UM7Z4GKN.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerCloseButton};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const DrawerCloseTrigger: (props: DrawerCloseTrigger.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
4
|
+
declare namespace DrawerCloseTrigger {
|
|
5
|
+
interface Props {
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerCloseTrigger };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const DrawerCloseTrigger: (props: DrawerCloseTrigger.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
4
|
+
declare namespace DrawerCloseTrigger {
|
|
5
|
+
interface Props {
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerCloseTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPNQ3EGNQjs = require('./chunk-PNQ3EGNQ.js');require('./chunk-L4VK5JCO.js');exports.DrawerCloseTrigger = _chunkPNQ3EGNQjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-MIPPECRL.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerCloseTrigger};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { GlobalConfigProps } from '@jamsrui/core';
|
|
3
|
+
import { Drawer } from './drawer.mjs';
|
|
4
|
+
import './use-drawer.mjs';
|
|
5
|
+
import '@floating-ui/react';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './drawer-body.mjs';
|
|
8
|
+
import './drawer-close-button.mjs';
|
|
9
|
+
import '@jamsrui/icon-button';
|
|
10
|
+
import './drawer-content.mjs';
|
|
11
|
+
import 'motion/react';
|
|
12
|
+
import './drawer-footer.mjs';
|
|
13
|
+
import './drawer-header.mjs';
|
|
14
|
+
import './drawer-popover.mjs';
|
|
15
|
+
import './styles.mjs';
|
|
16
|
+
import 'tailwind-variants';
|
|
17
|
+
|
|
18
|
+
declare const useDrawerConfig: () => DrawerConfig.Props;
|
|
19
|
+
declare const DrawerConfig: (props: DrawerConfig.Props & {
|
|
20
|
+
merge?: boolean;
|
|
21
|
+
}) => react.JSX.Element;
|
|
22
|
+
declare namespace DrawerConfig {
|
|
23
|
+
interface Props extends Drawer.Props, GlobalConfigProps<Drawer.Props> {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DrawerConfig, useDrawerConfig };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { GlobalConfigProps } from '@jamsrui/core';
|
|
3
|
+
import { Drawer } from './drawer.js';
|
|
4
|
+
import './use-drawer.js';
|
|
5
|
+
import '@floating-ui/react';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './drawer-body.js';
|
|
8
|
+
import './drawer-close-button.js';
|
|
9
|
+
import '@jamsrui/icon-button';
|
|
10
|
+
import './drawer-content.js';
|
|
11
|
+
import 'motion/react';
|
|
12
|
+
import './drawer-footer.js';
|
|
13
|
+
import './drawer-header.js';
|
|
14
|
+
import './drawer-popover.js';
|
|
15
|
+
import './styles.js';
|
|
16
|
+
import 'tailwind-variants';
|
|
17
|
+
|
|
18
|
+
declare const useDrawerConfig: () => DrawerConfig.Props;
|
|
19
|
+
declare const DrawerConfig: (props: DrawerConfig.Props & {
|
|
20
|
+
merge?: boolean;
|
|
21
|
+
}) => react.JSX.Element;
|
|
22
|
+
declare namespace DrawerConfig {
|
|
23
|
+
interface Props extends Drawer.Props, GlobalConfigProps<Drawer.Props> {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DrawerConfig, useDrawerConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZLIR7YT7js = require('./chunk-ZLIR7YT7.js');exports.DrawerConfig = _chunkZLIR7YT7js.a; exports.useDrawerConfig = _chunkZLIR7YT7js.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-GUMSFI7G.mjs";export{a as DrawerConfig,b as useDrawerConfig};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
+
|
|
4
|
+
declare const DrawerContent: (props: DrawerContent.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace DrawerContent {
|
|
6
|
+
interface Props extends Omit<HTMLMotionProps<"div">, "children"> {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { DrawerContent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
+
|
|
4
|
+
declare const DrawerContent: (props: DrawerContent.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace DrawerContent {
|
|
6
|
+
interface Props extends Omit<HTMLMotionProps<"div">, "children"> {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { DrawerContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVIEG7KXLjs = require('./chunk-VIEG7KXL.js');require('./chunk-LJQ6DDUH.js');require('./chunk-5LGURIDY.js');require('./chunk-L4VK5JCO.js');exports.DrawerContent = _chunkVIEG7KXLjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-SOXQFYXF.mjs";import"./chunk-WBBF5BOV.mjs";import"./chunk-UM7Z4GKN.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerContent};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { useDrawer } from './use-drawer.mjs';
|
|
3
|
+
import '@floating-ui/react';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './drawer-body.mjs';
|
|
6
|
+
import './drawer-close-button.mjs';
|
|
7
|
+
import '@jamsrui/icon-button';
|
|
8
|
+
import './drawer-content.mjs';
|
|
9
|
+
import 'motion/react';
|
|
10
|
+
import './drawer-footer.mjs';
|
|
11
|
+
import './drawer-header.mjs';
|
|
12
|
+
import './drawer-popover.mjs';
|
|
13
|
+
import './styles.mjs';
|
|
14
|
+
import 'tailwind-variants';
|
|
15
|
+
|
|
16
|
+
declare const useDrawerContext: () => DrawerContext.Props;
|
|
17
|
+
declare const DrawerContext: react.Context<DrawerContext.Props | null>;
|
|
18
|
+
declare namespace DrawerContext {
|
|
19
|
+
interface Props extends ReturnType<typeof useDrawer> {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { DrawerContext, useDrawerContext };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { useDrawer } from './use-drawer.js';
|
|
3
|
+
import '@floating-ui/react';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './drawer-body.js';
|
|
6
|
+
import './drawer-close-button.js';
|
|
7
|
+
import '@jamsrui/icon-button';
|
|
8
|
+
import './drawer-content.js';
|
|
9
|
+
import 'motion/react';
|
|
10
|
+
import './drawer-footer.js';
|
|
11
|
+
import './drawer-header.js';
|
|
12
|
+
import './drawer-popover.js';
|
|
13
|
+
import './styles.js';
|
|
14
|
+
import 'tailwind-variants';
|
|
15
|
+
|
|
16
|
+
declare const useDrawerContext: () => DrawerContext.Props;
|
|
17
|
+
declare const DrawerContext: react.Context<DrawerContext.Props | null>;
|
|
18
|
+
declare namespace DrawerContext {
|
|
19
|
+
interface Props extends ReturnType<typeof useDrawer> {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { DrawerContext, useDrawerContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4VK5JCOjs = require('./chunk-L4VK5JCO.js');exports.DrawerContext = _chunkL4VK5JCOjs.a; exports.useDrawerContext = _chunkL4VK5JCOjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-6XYRR3IV.mjs";export{a as DrawerContext,b as useDrawerContext};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerFooter: (props: DrawerFooter.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerFooter {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerFooter };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerFooter: (props: DrawerFooter.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerFooter {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerFooter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYIBRX4K7js = require('./chunk-YIBRX4K7.js');require('./chunk-L4VK5JCO.js');exports.DrawerFooter = _chunkYIBRX4K7js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-BP77MJVR.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerFooter};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerHeader: (props: DrawerHeader.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerHeader {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerHeader };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerHeader: (props: DrawerHeader.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerHeader {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYVT26KKPjs = require('./chunk-YVT26KKP.js');require('./chunk-L4VK5JCO.js');exports.DrawerHeader = _chunkYVT26KKPjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-KNT3NBAB.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerHeader};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerPopover: (props: DrawerPopover.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerPopover {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerPopover };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const DrawerPopover: (props: DrawerPopover.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace DrawerPopover {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerPopover };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLJQ6DDUHjs = require('./chunk-LJQ6DDUH.js');require('./chunk-L4VK5JCO.js');exports.DrawerPopover = _chunkLJQ6DDUHjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-WBBF5BOV.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerPopover};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const DrawerTrigger: (props: DrawerTrigger.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
4
|
+
declare namespace DrawerTrigger {
|
|
5
|
+
interface Props {
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerTrigger };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const DrawerTrigger: (props: DrawerTrigger.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
4
|
+
declare namespace DrawerTrigger {
|
|
5
|
+
interface Props {
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { DrawerTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIEFAZ5FAjs = require('./chunk-IEFAZ5FA.js');require('./chunk-L4VK5JCO.js');exports.DrawerTrigger = _chunkIEFAZ5FAjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-ILBTUKZ5.mjs";import"./chunk-6XYRR3IV.mjs";export{a as DrawerTrigger};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { useDrawer } from './use-drawer.mjs';
|
|
3
|
+
import '@floating-ui/react';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './drawer-body.mjs';
|
|
6
|
+
import './drawer-close-button.mjs';
|
|
7
|
+
import '@jamsrui/icon-button';
|
|
8
|
+
import './drawer-content.mjs';
|
|
9
|
+
import 'motion/react';
|
|
10
|
+
import './drawer-footer.mjs';
|
|
11
|
+
import './drawer-header.mjs';
|
|
12
|
+
import './drawer-popover.mjs';
|
|
13
|
+
import './styles.mjs';
|
|
14
|
+
import 'tailwind-variants';
|
|
15
|
+
|
|
16
|
+
declare const Drawer: (props: Drawer.Props) => react.JSX.Element;
|
|
17
|
+
declare namespace Drawer {
|
|
18
|
+
interface Props extends useDrawer.Props {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Drawer };
|
package/dist/drawer.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { useDrawer } from './use-drawer.js';
|
|
3
|
+
import '@floating-ui/react';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './drawer-body.js';
|
|
6
|
+
import './drawer-close-button.js';
|
|
7
|
+
import '@jamsrui/icon-button';
|
|
8
|
+
import './drawer-content.js';
|
|
9
|
+
import 'motion/react';
|
|
10
|
+
import './drawer-footer.js';
|
|
11
|
+
import './drawer-header.js';
|
|
12
|
+
import './drawer-popover.js';
|
|
13
|
+
import './styles.js';
|
|
14
|
+
import 'tailwind-variants';
|
|
15
|
+
|
|
16
|
+
declare const Drawer: (props: Drawer.Props) => react.JSX.Element;
|
|
17
|
+
declare namespace Drawer {
|
|
18
|
+
interface Props extends useDrawer.Props {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Drawer };
|
package/dist/drawer.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRD4N3HANjs = require('./chunk-RD4N3HAN.js');require('./chunk-ND7OMDLN.js');require('./chunk-EBAXPVZK.js');require('./chunk-ZLIR7YT7.js');require('./chunk-L4VK5JCO.js');exports.Drawer = _chunkRD4N3HANjs.a;
|
package/dist/drawer.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-LVXR3WXC.mjs";import"./chunk-FLLYJJRJ.mjs";import"./chunk-X6T6A5NL.mjs";import"./chunk-GUMSFI7G.mjs";import"./chunk-6XYRR3IV.mjs";export{a as Drawer};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { Drawer } from './drawer.mjs';
|
|
2
|
+
export { DrawerBody } from './drawer-body.mjs';
|
|
3
|
+
export { DrawerCloseButton } from './drawer-close-button.mjs';
|
|
4
|
+
export { DrawerCloseTrigger } from './drawer-close-trigger.mjs';
|
|
5
|
+
export { DrawerConfig, useDrawerConfig } from './drawer-config.mjs';
|
|
6
|
+
export { DrawerContent } from './drawer-content.mjs';
|
|
7
|
+
export { DrawerFooter } from './drawer-footer.mjs';
|
|
8
|
+
export { DrawerHeader } from './drawer-header.mjs';
|
|
9
|
+
export { DrawerTrigger } from './drawer-trigger.mjs';
|
|
10
|
+
import 'react';
|
|
11
|
+
import './use-drawer.mjs';
|
|
12
|
+
import '@floating-ui/react';
|
|
13
|
+
import '@jamsrui/utils';
|
|
14
|
+
import './drawer-popover.mjs';
|
|
15
|
+
import './styles.mjs';
|
|
16
|
+
import 'tailwind-variants';
|
|
17
|
+
import '@jamsrui/icon-button';
|
|
18
|
+
import '@jamsrui/core';
|
|
19
|
+
import 'motion/react';
|