automoby-kit 1.0.25 → 1.0.26
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/cjs/Backdrop.js +1 -1
- package/dist/esm/Backdrop.js +1 -1
- package/dist/types/Backdrop.js +2 -0
- package/package.json +1 -1
package/dist/cjs/Backdrop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("react/jsx-runtime"),e=require("react"),
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("react"),i=require("./utils.js");const s=e.forwardRef(({isOpen:e=!1,onClick:s,blur:t=!1,zIndex:a=51,className:n,children:l,visibleChildren:c,...d},o)=>{const u=i("fixed inset-0 transition-all duration-300",{"backdrop-blur-sm":t},n),h={backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:a,width:"100vw",height:"100vh"};return r.jsxs(r.Fragment,{children:[!e&&c,e&&r.jsxs("div",{ref:o,className:u,style:h,onClick:r=>{s&&r.target===r.currentTarget&&s()},role:"presentation",...d,children:[c,l]})]})});s.displayName="Backdrop",exports.Backdrop=s;
|
package/dist/esm/Backdrop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as r,Fragment as e}from"react/jsx-runtime";import i from"react";import t from"./utils.js";const n=i.forwardRef(({isOpen:i=!1,onClick:n,blur:o=!1,zIndex:a=51,className:l,children:s,visibleChildren:c,...d},m)=>{const p=t("fixed inset-0 transition-all duration-300",{"backdrop-blur-sm":o},l);return r(e,{children:[!i&&c,i&&r("div",{ref:m,className:p,style:{backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:a},onClick:r=>{n&&r.target===r.currentTarget&&n()},role:"presentation",...d,children:[c,s]})]})});n.displayName="Backdrop";export{n as Backdrop};
|
|
1
|
+
import{jsxs as r,Fragment as e}from"react/jsx-runtime";import i from"react";import t from"./utils.js";const n=i.forwardRef(({isOpen:i=!1,onClick:n,blur:o=!1,zIndex:a=51,className:l,children:s,visibleChildren:c,...d},m)=>{const p=t("fixed inset-0 transition-all duration-300",{"backdrop-blur-sm":o},l);return r(e,{children:[!i&&c,i&&r("div",{ref:m,className:p,style:{backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:a,width:"100vw",height:"100vh"},onClick:r=>{n&&r.target===r.currentTarget&&n()},role:"presentation",...d,children:[c,s]})]})});n.displayName="Backdrop";export{n as Backdrop};
|
package/dist/types/Backdrop.js
CHANGED
|
@@ -18,6 +18,8 @@ const Backdrop = React.forwardRef(({ isOpen = false, onClick, blur = false, zInd
|
|
|
18
18
|
const backdropStyle = {
|
|
19
19
|
backgroundColor: 'rgba(0, 0, 0, 0.60)',
|
|
20
20
|
zIndex,
|
|
21
|
+
width: '100vw',
|
|
22
|
+
height: '100vh',
|
|
21
23
|
};
|
|
22
24
|
return (jsxs(Fragment, { children: [!isOpen && visibleChildren, isOpen && (jsxs("div", { ref: ref, className: backdropClasses, style: backdropStyle, onClick: handleClick, role: "presentation", ...props, children: [visibleChildren, children] }))] }));
|
|
23
25
|
});
|