@eliseubatista99/react-scaffold-core 0.1.45 → 0.1.46

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/index.cjs.js CHANGED
@@ -141,7 +141,7 @@ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}
141
141
  input:-webkit-autofill {
142
142
  background-color: #00000000;
143
143
  }
144
- `,es=({name:e,label:t,leftIcon:r,rightIcon:o,bottomMessage:i,placeHolder:s,autoComplete:l="off",value:f,initialValue:d,type:m="text",onChange:w,onFocus:R,inputStyles:j,containerProps:A,step:P})=>{const h=O=>{w?.(O.currentTarget.value)},$=O=>{R?.()};return J.jsxs(Qa,{style:{width:"100%",maxWidth:"357px",gap:"8px",...A},children:[t,J.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",height:"47px",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",padding:"5px 15px",color:"#000000",fontFamily:"Poppins",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"24px",outline:"none",alignItems:"center",gap:"10px",...j},children:[r,J.jsx("input",{name:e,type:m,autoComplete:l,step:P,style:{flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none"},placeholder:s,value:f,defaultValue:d,onChange:h,onFocus:$}),o]}),i]})},ts=({id:e,styles:t,children:r})=>{const{isItemVisible:o}=et();return J.jsx(J.Fragment,{children:o(e)&&J.jsx("div",{style:{width:"100%",minHeight:"100%",left:0,top:0,position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...t},children:r})})},rs=({id:e,children:t,backgroundStyles:r,contentStyles:o,onClickOutsideModal:i})=>{const{isItemVisible:s}=et();return J.jsx(J.Fragment,{children:s(e)&&J.jsx("div",{style:{width:"100%",height:"100%",minHeight:"100vh",background:"#00000068",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...r},onClick:()=>{i?.()},children:J.jsx("div",{style:{width:"90%",maxWidth:"375px",height:"fit-content",minHeight:"80px",maxHeight:"50%",background:"#ffffff",borderRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1001,position:"relative",padding:"24px",...o},onClick:l=>{l.stopPropagation()},children:t})})})},ns=e=>{const t=Y.useRef(null),r=Y.useRef(null),[o,i]=Y.useState(24),[s,l]=Y.useState(24),f=Y.useCallback(()=>{t.current&&i(t.current.clientHeight)},[t,t.current]),d=Y.useCallback(()=>{r.current&&l(r.current.clientHeight)},[r,r.current]),m=Y.useCallback(()=>{let w=0;return e.header?.visibility==="always"&&(w=w+(o||0)),e.footer?.visibility==="always"&&(w=w+(s||0)),w},[r,r.current]);return Y.useEffect(()=>{f()},[f,t,t.current]),Y.useEffect(()=>{d()},[d,r,r.current]),{header:{...e.header,visible:e.header!==void 0,height:e.header?.visibility==="fixed"?0:o,ref:t},footer:{...e.footer,visible:e.footer!==void 0,height:e.footer?.visibility==="fixed"?0:s,ref:r},page:{extraHeight:m()}}},is=je.div`
144
+ `,es=({name:e,label:t,leftIcon:r,rightIcon:o,bottomMessage:i,placeHolder:s,autoComplete:l="off",value:f,initialValue:d,type:m="text",onChange:w,onFocus:R,inputStyles:j,containerProps:A,step:P})=>{const h=O=>{w?.(O.currentTarget.value)},$=O=>{R?.()};return J.jsxs(Qa,{style:{width:"100%",maxWidth:"357px",gap:"8px",...A},children:[t,J.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",height:"47px",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",padding:"5px 15px",color:"#000000",fontFamily:"inherit",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"24px",outline:"none",alignItems:"center",gap:"10px",...j},children:[r,J.jsx("input",{name:e,type:m,autoComplete:l,step:P,style:{flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none"},placeholder:s,value:f,defaultValue:d,onChange:h,onFocus:$}),o]}),i]})},ts=({id:e,styles:t,children:r})=>{const{isItemVisible:o}=et();return J.jsx(J.Fragment,{children:o(e)&&J.jsx("div",{style:{width:"100%",minHeight:"100%",left:0,top:0,position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...t},children:r})})},rs=({id:e,children:t,backgroundStyles:r,contentStyles:o,onClickOutsideModal:i})=>{const{isItemVisible:s}=et();return J.jsx(J.Fragment,{children:s(e)&&J.jsx("div",{style:{width:"100%",height:"100%",minHeight:"100vh",background:"#00000068",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...r},onClick:()=>{i?.()},children:J.jsx("div",{style:{width:"90%",maxWidth:"375px",height:"fit-content",minHeight:"80px",maxHeight:"50%",background:"#ffffff",borderRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1001,position:"relative",padding:"24px",...o},onClick:l=>{l.stopPropagation()},children:t})})})},ns=e=>{const t=Y.useRef(null),r=Y.useRef(null),[o,i]=Y.useState(24),[s,l]=Y.useState(24),f=Y.useCallback(()=>{t.current&&i(t.current.clientHeight)},[t,t.current]),d=Y.useCallback(()=>{r.current&&l(r.current.clientHeight)},[r,r.current]),m=Y.useCallback(()=>{let w=0;return e.header?.visibility==="always"&&(w=w+(o||0)),e.footer?.visibility==="always"&&(w=w+(s||0)),w},[r,r.current]);return Y.useEffect(()=>{f()},[f,t,t.current]),Y.useEffect(()=>{d()},[d,r,r.current]),{header:{...e.header,visible:e.header!==void 0,height:e.header?.visibility==="fixed"?0:o,ref:t},footer:{...e.footer,visible:e.footer!==void 0,height:e.footer?.visibility==="fixed"?0:s,ref:r},page:{extraHeight:m()}}},is=je.div`
145
145
  min-height: 100%;
146
146
  max-height: 100%;
147
147
  width: 100%;
package/dist/index.es.js CHANGED
@@ -6490,7 +6490,7 @@ const gn = q.createContext({
6490
6490
  borderRadius: "5px",
6491
6491
  padding: "5px 15px",
6492
6492
  color: "#000000",
6493
- fontFamily: "Poppins",
6493
+ fontFamily: "inherit",
6494
6494
  fontStyle: "normal",
6495
6495
  fontWeight: 400,
6496
6496
  fontSize: "16px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "private": false,
5
5
  "description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
6
6
  "main": "dist/index.cjs.js",