@clicktap/ui 0.17.3 → 0.17.5

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.
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Modal as m}from"react-aria-components";import{cn as s}from"../../utils/cn.js";function i({children:o,className:a,...r}){return t(m,{...r,className:s("absolute inset-1/2",a),children:o})}export{i as Modal,i as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{Modal as m}from"react-aria-components";import{cn as s}from"../../utils/cn.js";function i({children:o,className:a,...r}){return t(m,{...r,className:s("absolute inset-0",a),children:o})}export{i as Modal,i as default};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{forwardRef as h,useId as b}from"react";import{ModalOverlay as c}from"react-aria-components";import{motion as O,AnimatePresence as g}from"framer-motion";import{useDialogTrigger as x}from"../DialogTrigger/DialogTrigger.js";import{cn as w}from"../../utils/cn.js";const k=h(({style:i,...e},n)=>{const o=typeof i=="function"?i(e):i;return t(c,{...e,ref:n,style:o})});let r=null;function A(){return typeof window>"u"?null:(r||(r=O.create(k)),r)}const m=A();function s({animate:i,animation:e,setAnimation:n,className:o,animationVariants:f,children:a,...u}){const p=b(),{key:v,...y}=u,d={className:w("bg-black/30","fixed top-0 left-0","z-[1000]","w-screen h-[var(--visual-viewport-height)]",o),...y};return m?t(m,{isExiting:e==="hidden",onAnimationComplete:M=>{n(l=>M==="hidden"&&l==="hidden"?"unmounted":l)},variants:f||{hidden:{opacity:0,backdropFilter:"blur(0px)",transition:{delay:.08}},visible:{opacity:1,backdropFilter:"blur(8px)"}},initial:"hidden",animate:i,exit:"hidden",...d,children:a},v||p):t(c,{...d,children:a})}function D(i){const{isOpen:e}=i,{animation:n,setAnimation:o}=x();return e!==void 0?t(g,{children:e&&t(s,{...i,animate:"visible",animation:n,setAnimation:o})}):t(s,{...i,animate:n,animation:n,setAnimation:o})}export{D as ModalOverlay,D as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as h,useId as b}from"react";import{ModalOverlay as f}from"react-aria-components";import{motion as O,AnimatePresence as g}from"framer-motion";import{useDialogTrigger as x}from"../DialogTrigger/DialogTrigger.js";import{cn as w}from"../../utils/cn.js";const k=h(({style:i,children:n,...e},o)=>{const r=typeof i=="function"?i(e):i;return t(f,{...e,ref:o,style:r,children:n})});let a=null;function A(){return typeof window>"u"?null:(a||(a=O.create(k)),a)}const s=A();function c({animate:i,animation:n,setAnimation:e,className:o,animationVariants:r,children:d,...u}){const p=b(),{key:v,...y}=u,l={className:w("bg-black/30","fixed top-0 left-0","z-[1000]","w-screen h-[var(--visual-viewport-height)]",o),...y};return s?t(s,{isExiting:n==="hidden",onAnimationComplete:M=>{e(m=>M==="hidden"&&m==="hidden"?"unmounted":m)},variants:r||{hidden:{opacity:0,backdropFilter:"blur(0px)",transition:{delay:.08}},visible:{opacity:1,backdropFilter:"blur(8px)"}},initial:"hidden",animate:i,exit:"hidden",...l,children:d},v||p):t(f,{...l,children:d})}function D(i){const{isOpen:n}=i,{animation:e,setAnimation:o}=x();return n!==void 0?t(g,{children:n&&t(c,{...i,animate:"visible",animation:e,setAnimation:o})}):t(c,{...i,animate:e,animation:e,setAnimation:o})}export{D as ModalOverlay,D as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clicktap/ui",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "private": false,
5
5
  "author": "Clicktap",
6
6
  "description": "A library of React UI components and low-level hooks.",