@eliseubatista99/react-scaffold-core 0.1.58 → 0.1.59
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 +1 -1
- package/dist/index.es.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -161,4 +161,4 @@ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}
|
|
|
161
161
|
box-sizing: border-box;
|
|
162
162
|
position: relative;
|
|
163
163
|
}
|
|
164
|
-
`,us=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:u,header:l}=ss(e);return K.jsxs(ls,{id:"page-container",styles:{...t},children:[l.visible&&K.jsx("div",{ref:l.ref,id:"page-header",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${l.height}px`,marginBottom:`-${u.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${l.height}px`,paddingBottom:`${u.height}px`,...r},children:i})}),u.visible&&K.jsx("div",{ref:u.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content})]})},cs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:u,styles:l})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...l},onClick:()=>u?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),fs=({id:e,children:t,styles:r,durationInSeconds:i=3})=>{const a=U.useRef(!1),{isItemVisible:s,hideItem:c}=et();return U.useEffect(()=>{const u=s(e);a.current!==u&&(a.current=u,u&&setTimeout(()=>c(e),i*1e3))},[a,s,c]),K.jsx(K.Fragment,{children:s(e)&&K.jsx("div",{style:{width:"100px",height:"40px",background:"#534a4aff",color:"#ffffff",position:"fixed",top:"10px",left:"50%",transform:"translateX(-50%)",zIndex:1e3,borderRadius:"20px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"solid 3px #000000ff",...r},onClick:u=>{u.stopPropagation()},children:t})})},ds=({overflowEllipsis:e,children:t,styles:r})=>K.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",whiteSpace:e?"nowrap":"normal",textOverflow:e?"ellipsis":void 0,fontSize:"16px",fontStyle:"normal",lineHeight:"normal",color:"inherit",...r},children:t});class hs{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class ps{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}exports.Button=Tn;exports.Carousel=aa;exports.Checkbox=oa;exports.Drawer=Qo;exports.FeedbackProvider=Jo;exports.Form=ts;exports.Image=rs;exports.InputField=is;exports.Loader=as;exports.Modal=os;exports.NavigationProvider=Ko;exports.PageLayout=us;exports.ScrollHelper=hs;exports.SvgImage=cs;exports.TextHelper=ps;exports.TimeHelper=Qr;exports.Toast=fs;exports.Typography=ds;exports.defaultBreakpoints=en;exports.useDidMount=sa;exports.useDrag=Zr;exports.useFeedback=et;exports.useFetch=la;exports.useIsTouchingParentElement=va;exports.useNavigation=Go;exports.usePointer=Jr;exports.useResponsive=ga;exports.useTranslations=wa;
|
|
164
|
+
`,us=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:u,header:l}=ss(e);return K.jsxs(ls,{id:"page-container",styles:{...t},children:[l.visible&&K.jsx("div",{ref:l.ref,id:"page-header",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${l.height}px`,marginBottom:`-${u.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${l.height}px`,paddingBottom:`${u.height}px`,...r},children:i})}),u.visible&&K.jsx("div",{ref:u.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content})]})},cs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:u,styles:l})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...l},onClick:()=>u?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),fs=({id:e,children:t,styles:r,durationInSeconds:i=3})=>{const a=U.useRef(!1),{isItemVisible:s,hideItem:c}=et();return U.useEffect(()=>{const u=s(e);a.current!==u&&(a.current=u,u&&setTimeout(()=>c(e),i*1e3))},[a,s,c]),K.jsx(K.Fragment,{children:s(e)&&K.jsx("div",{style:{width:"100px",height:"40px",background:"#534a4aff",color:"#ffffff",position:"fixed",top:"10px",left:"50%",transform:"translateX(-50%)",zIndex:1e3,borderRadius:"20px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"solid 3px #000000ff",...r},onClick:u=>{u.stopPropagation()},children:t})})},ds=({overflowEllipsis:e,children:t,styles:r})=>K.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",whiteSpace:e?"nowrap":"normal",textOverflow:e?"ellipsis":void 0,overflowWrap:e?void 0:"break-word",fontSize:"16px",fontStyle:"normal",lineHeight:"normal",color:"inherit",...r},children:t});class hs{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class ps{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}exports.Button=Tn;exports.Carousel=aa;exports.Checkbox=oa;exports.Drawer=Qo;exports.FeedbackProvider=Jo;exports.Form=ts;exports.Image=rs;exports.InputField=is;exports.Loader=as;exports.Modal=os;exports.NavigationProvider=Ko;exports.PageLayout=us;exports.ScrollHelper=hs;exports.SvgImage=cs;exports.TextHelper=ps;exports.TimeHelper=Qr;exports.Toast=fs;exports.Typography=ds;exports.defaultBreakpoints=en;exports.useDidMount=sa;exports.useDrag=Zr;exports.useFeedback=et;exports.useFetch=la;exports.useIsTouchingParentElement=va;exports.useNavigation=Go;exports.usePointer=Jr;exports.useResponsive=ga;exports.useTranslations=wa;
|
package/dist/index.es.js
CHANGED
|
@@ -6990,6 +6990,7 @@ const wn = q.createContext({
|
|
|
6990
6990
|
overflow: "hidden",
|
|
6991
6991
|
whiteSpace: e ? "nowrap" : "normal",
|
|
6992
6992
|
textOverflow: e ? "ellipsis" : void 0,
|
|
6993
|
+
overflowWrap: e ? void 0 : "break-word",
|
|
6993
6994
|
fontSize: "16px",
|
|
6994
6995
|
fontStyle: "normal",
|
|
6995
6996
|
lineHeight: "normal",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliseubatista99/react-scaffold-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
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",
|