@eliseubatista99/react-scaffold-core 1.2.4 → 1.2.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.
package/dist/index.cjs.js CHANGED
@@ -198,4 +198,4 @@ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}
198
198
  textarea::-webkit-scrollbar-thumb:hover {
199
199
  background: #555; /* hover */
200
200
  }
201
- `,Os=({name:e,label:t,leftIcon:r,rightIcon:i,bottomMessage:a,placeHolder:s,value:c,initialValue:u,onChange:l,onFocus:d,onBlur:g,inputStyles:y,containerStyles:E,styles:M})=>{const C=S=>{l?.(S.currentTarget.value)},p=S=>{d?.()},R=S=>{g?.()};return X.jsxs(xs,{style:{width:"100%",maxWidth:"357px",gap:"8px",...M},children:[t,X.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",color:"#000000",fontFamily:"inherit",fontStyle:"normal",fontWeight:400,outline:"none",alignItems:"flex-start",gap:"10px",...E},children:[r,X.jsx("textarea",{name:e,style:{resize:"none",flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none",minHeight:"47px",...y},placeholder:s,value:c,defaultValue:u,onChange:C,onFocus:p,onBlur:R}),i]}),a]})},Cs=({id:e,children:t,styles:r,durationInSeconds:i=3})=>{const a=V.useRef(!1),{isItemVisible:s,hideItem:c}=et();return V.useEffect(()=>{const u=s(e);a.current!==u&&(a.current=u,u&&setTimeout(()=>c(e),i*1e3))},[a,s,c]),X.jsx(X.Fragment,{children:s(e)&&X.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},children:t})})},ks=({overflowEllipsis:e,maxNumberOfLines:t,children:r,styles:i})=>X.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t||void 0,WebkitBoxOrient:"vertical",whiteSpace:"unset",textOverflow:e?"ellipsis":void 0,fontSize:"16px",fontStyle:"normal",lineHeight:"normal",color:"inherit",pointerEvents:"none",...i},children:r});exports.Button=jn;exports.Carousel=la;exports.Checkbox=ua;exports.Drawer=Xo;exports.FeedbackProvider=Bo;exports.Form=Jo;exports.FormsHelper=Qt;exports.Image=Zo;exports.InputField=On;exports.Loader=ts;exports.Modal=rs;exports.NavigationProvider=Yo;exports.NumberHelper=Cn;exports.NumericInputField=is;exports.ObjectsHelper=ls;exports.PageLayout=ss;exports.ProgressBar=bs;exports.RadioButton=ws;exports.ScrollHelper=us;exports.SvgImage=Ss;exports.TextAreaField=Os;exports.TextHelper=cs;exports.TimeHelper=ys;exports.Toast=Cs;exports.Typography=ks;exports.defaultBreakpoints=tn;exports.useDidMount=Zr;exports.useDrag=en;exports.useFeedback=et;exports.useFetch=ca;exports.useNavigation=Uo;exports.useOnScreen=fa;exports.usePointer=Qr;exports.useResponsive=da;exports.useTranslations=ma;
201
+ `,Os=({name:e,label:t,leftIcon:r,rightIcon:i,bottomMessage:a,placeHolder:s,value:c,initialValue:u,onChange:l,onFocus:d,onBlur:g,inputStyles:y,containerStyles:E,styles:M})=>{const C=S=>{l?.(S.currentTarget.value)},p=S=>{d?.()},R=S=>{g?.()};return X.jsxs(xs,{style:{width:"100%",maxWidth:"357px",gap:"8px",...M},children:[t,X.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",color:"#000000",fontFamily:"inherit",fontStyle:"normal",fontWeight:400,outline:"none",alignItems:"flex-start",gap:"10px",...E},children:[r,X.jsx("textarea",{name:e,style:{resize:"none",flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none",minHeight:"47px",...y},placeholder:s,value:c,defaultValue:u,onChange:C,onFocus:p,onBlur:R}),i]}),a]})},Cs=({id:e,children:t,styles:r,durationInSeconds:i=3})=>{const a=V.useRef(!1),{isItemVisible:s,hideItem:c}=et();return V.useEffect(()=>{const u=s(e);a.current!==u&&(a.current=u,u&&setTimeout(()=>c(e),i*1e3))},[a,s,c]),X.jsx(X.Fragment,{children:s(e)&&X.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},children:t})})},ks=({overflowEllipsis:e,maxNumberOfLines:t,children:r,styles:i})=>X.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t||void 0,WebkitBoxOrient:"vertical",whiteSpace:"unset",textOverflow:e?"ellipsis":void 0,fontSize:"16px",fontStyle:"normal",lineHeight:"inherit",color:"inherit",pointerEvents:"none",...i},children:r});exports.Button=jn;exports.Carousel=la;exports.Checkbox=ua;exports.Drawer=Xo;exports.FeedbackProvider=Bo;exports.Form=Jo;exports.FormsHelper=Qt;exports.Image=Zo;exports.InputField=On;exports.Loader=ts;exports.Modal=rs;exports.NavigationProvider=Yo;exports.NumberHelper=Cn;exports.NumericInputField=is;exports.ObjectsHelper=ls;exports.PageLayout=ss;exports.ProgressBar=bs;exports.RadioButton=ws;exports.ScrollHelper=us;exports.SvgImage=Ss;exports.TextAreaField=Os;exports.TextHelper=cs;exports.TimeHelper=ys;exports.Toast=Cs;exports.Typography=ks;exports.defaultBreakpoints=tn;exports.useDidMount=Zr;exports.useDrag=en;exports.useFeedback=et;exports.useFetch=ca;exports.useNavigation=Uo;exports.useOnScreen=fa;exports.usePointer=Qr;exports.useResponsive=da;exports.useTranslations=ma;
package/dist/index.es.js CHANGED
@@ -7560,7 +7560,7 @@ const Es = ({
7560
7560
  textOverflow: e ? "ellipsis" : void 0,
7561
7561
  fontSize: "16px",
7562
7562
  fontStyle: "normal",
7563
- lineHeight: "normal",
7563
+ lineHeight: "inherit",
7564
7564
  color: "inherit",
7565
7565
  pointerEvents: "none",
7566
7566
  ...i
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
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",
@@ -58,4 +58,4 @@
58
58
  "slick-carousel": "^1.8.1",
59
59
  "dayjs": "^1.11.19"
60
60
  }
61
- }
61
+ }