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.
@@ -1 +1 @@
1
- "use strict";var r=require("react/jsx-runtime"),e=require("react"),s=require("./utils.js");const i=e.forwardRef(({isOpen:e=!1,onClick:i,blur:a=!1,zIndex:n=51,className:t,children:l,visibleChildren:c,...o},d)=>{const u=s("fixed inset-0 transition-all duration-300",{"backdrop-blur-sm":a},t),p={backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:n};return r.jsxs(r.Fragment,{children:[!e&&c,e&&r.jsxs("div",{ref:d,className:u,style:p,onClick:r=>{i&&r.target===r.currentTarget&&i()},role:"presentation",...o,children:[c,l]})]})});i.displayName="Backdrop",exports.Backdrop=i;
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;
@@ -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};
@@ -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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automoby-kit",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "A comprehensive React UI component library - created in war 2025",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",