@adoptaunabuelo/react-components 0.2.53 → 0.2.54

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/index.js CHANGED
@@ -11003,7 +11003,7 @@ var n="none",r="contents",a=/input|select|textarea|button|object|iframe/;functio
11003
11003
  opacity: ${e=>e.disabled?.6:1};
11004
11004
  box-sizing: border-box;
11005
11005
  border-radius: 555px;
11006
- `,Label=e=>{var t;const[n,r]=React$6.useState(void 0);React$6.useEffect((()=>{r(a())}),[e.text]);const a=()=>{switch(e.text){case"inRegister":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"En registro"};case"registered":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Registrado"};case"waiting":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Pendiente de match"};case"training":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Formación en proceso"};case"match":return{color:"#59C183",backgroundColor:"#E7F6ED",text:"Match"};case"shutdown":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Baja"};case"banned":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Bloqueado"};case"exVolunteer":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Ex-voluntario"};case"paused":return{color:"#828282",backgroundColor:"#F2F2F2",text:"Pausa"};case"inProgress":case"En proceso":return{color:"#FF8854",backgroundColor:"#FFF6E5",text:"En proceso"};case"pending-remittance":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente remesa"};case"pending":case"Pendiente":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente"};case"canceled":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelado"};case"failed":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Fallido"};case"cancel":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelada"};case"No resuelto":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"No resuelto"};case"done":case"Resuelto":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Resuelto"};case"active":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Activa"};case"paid":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Pagado"}}};return"chip"===e.type?"big"===e.size?jsxRuntime.jsx(ChipsContainerBig,Object.assign({role:"chip"},e,{children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,e.text.length).toLocaleLowerCase()})})):"selector"===e.size?jsxRuntime.jsx(ChipSelector,Object.assign({role:"chip"},e,{children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",children:e.text})})):jsxRuntime.jsx(ChipsContainerSmall,{role:"chip",style:Object.assign(Object.assign({},e.style),{background:e.disabled?Color.background.soft:Color.background.primaryLow}),children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,2)})}):jsxRuntime.jsx(LabelStyled,Object.assign({role:"label",id:"Label"},e,{style:Object.assign({background:e.backgroundColor?e.backgroundColor:n?n.backgroundColor:Color.background.soft},e.style),children:jsxRuntime.jsx(Text$1,{type:"p",style:{fontSize:(null===(t=e.style)||void 0===t?void 0:t.fontSize)?e.style.fontSize:14,fontWeight:500,color:e.color?e.color:n?n.color:Color.text.full},children:(null==n?void 0:n.text)?n.text:e.text})}))},AvatarContainer=ut.div`
11006
+ `,Label=e=>{var t;const[n,r]=React$6.useState(void 0);React$6.useEffect((()=>{r(a())}),[e.text]);const a=()=>{switch(e.text){case"inRegister":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"En registro"};case"registered":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Registrado"};case"waiting":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Pendiente de match"};case"training":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Formación en proceso"};case"match":return{color:"#59C183",backgroundColor:"#E7F6ED",text:"Match"};case"shutdown":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Baja"};case"banned":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Bloqueado"};case"exVolunteer":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Ex-voluntario"};case"paused":return{color:"#828282",backgroundColor:"#F2F2F2",text:"Pausa"};case"inProgress":case"En proceso":return{color:"#FF8854",backgroundColor:"#FFF6E5",text:"En proceso"};case"pending_remittance":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente remesa"};case"pending":case"Pendiente":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente"};case"canceled":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelado"};case"failed":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Fallido"};case"cancel":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelada"};case"No resuelto":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"No resuelto"};case"done":case"Resuelto":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Resuelto"};case"active":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Activa"};case"paid":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Pagado"}}};return"chip"===e.type?"big"===e.size?jsxRuntime.jsx(ChipsContainerBig,Object.assign({role:"chip"},e,{children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,e.text.length).toLocaleLowerCase()})})):"selector"===e.size?jsxRuntime.jsx(ChipSelector,Object.assign({role:"chip"},e,{children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",children:e.text})})):jsxRuntime.jsx(ChipsContainerSmall,{role:"chip",style:Object.assign(Object.assign({},e.style),{background:e.disabled?Color.background.soft:Color.background.primaryLow}),children:jsxRuntime.jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,2)})}):jsxRuntime.jsx(LabelStyled,Object.assign({role:"label",id:"Label"},e,{style:Object.assign({background:e.backgroundColor?e.backgroundColor:n?n.backgroundColor:Color.background.soft},e.style),children:jsxRuntime.jsx(Text$1,{type:"p",style:{fontSize:(null===(t=e.style)||void 0===t?void 0:t.fontSize)?e.style.fontSize:14,fontWeight:500,color:e.color?e.color:n?n.color:Color.text.full},children:(null==n?void 0:n.text)?n.text:e.text})}))},AvatarContainer=ut.div`
11007
11007
  width: 50px;
11008
11008
  height: 50px;
11009
11009
  display: flex;
package/dist/esm/index.js CHANGED
@@ -11003,7 +11003,7 @@ var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;functio
11003
11003
  opacity: ${e=>e.disabled?.6:1};
11004
11004
  box-sizing: border-box;
11005
11005
  border-radius: 555px;
11006
- `,Label=e=>{var t;const[n,r]=useState(void 0);useEffect((()=>{r(o())}),[e.text]);const o=()=>{switch(e.text){case"inRegister":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"En registro"};case"registered":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Registrado"};case"waiting":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Pendiente de match"};case"training":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Formación en proceso"};case"match":return{color:"#59C183",backgroundColor:"#E7F6ED",text:"Match"};case"shutdown":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Baja"};case"banned":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Bloqueado"};case"exVolunteer":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Ex-voluntario"};case"paused":return{color:"#828282",backgroundColor:"#F2F2F2",text:"Pausa"};case"inProgress":case"En proceso":return{color:"#FF8854",backgroundColor:"#FFF6E5",text:"En proceso"};case"pending-remittance":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente remesa"};case"pending":case"Pendiente":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente"};case"canceled":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelado"};case"failed":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Fallido"};case"cancel":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelada"};case"No resuelto":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"No resuelto"};case"done":case"Resuelto":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Resuelto"};case"active":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Activa"};case"paid":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Pagado"}}};return"chip"===e.type?"big"===e.size?jsx(ChipsContainerBig,Object.assign({role:"chip"},e,{children:jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,e.text.length).toLocaleLowerCase()})})):"selector"===e.size?jsx(ChipSelector,Object.assign({role:"chip"},e,{children:jsx(Text$1,{type:"p2",weight:"medium",children:e.text})})):jsx(ChipsContainerSmall,{role:"chip",style:Object.assign(Object.assign({},e.style),{background:e.disabled?Color.background.soft:Color.background.primaryLow}),children:jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,2)})}):jsx(LabelStyled,Object.assign({role:"label",id:"Label"},e,{style:Object.assign({background:e.backgroundColor?e.backgroundColor:n?n.backgroundColor:Color.background.soft},e.style),children:jsx(Text$1,{type:"p",style:{fontSize:(null===(t=e.style)||void 0===t?void 0:t.fontSize)?e.style.fontSize:14,fontWeight:500,color:e.color?e.color:n?n.color:Color.text.full},children:(null==n?void 0:n.text)?n.text:e.text})}))},AvatarContainer=ut.div`
11006
+ `,Label=e=>{var t;const[n,r]=useState(void 0);useEffect((()=>{r(o())}),[e.text]);const o=()=>{switch(e.text){case"inRegister":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"En registro"};case"registered":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Registrado"};case"waiting":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Pendiente de match"};case"training":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Formación en proceso"};case"match":return{color:"#59C183",backgroundColor:"#E7F6ED",text:"Match"};case"shutdown":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Baja"};case"banned":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Bloqueado"};case"exVolunteer":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Ex-voluntario"};case"paused":return{color:"#828282",backgroundColor:"#F2F2F2",text:"Pausa"};case"inProgress":case"En proceso":return{color:"#FF8854",backgroundColor:"#FFF6E5",text:"En proceso"};case"pending_remittance":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente remesa"};case"pending":case"Pendiente":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente"};case"canceled":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelado"};case"failed":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Fallido"};case"cancel":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"Cancelada"};case"No resuelto":return{color:Color.text.red,backgroundColor:Color.background.redLow,text:"No resuelto"};case"done":case"Resuelto":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Resuelto"};case"active":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Activa"};case"paid":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Pagado"}}};return"chip"===e.type?"big"===e.size?jsx(ChipsContainerBig,Object.assign({role:"chip"},e,{children:jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,e.text.length).toLocaleLowerCase()})})):"selector"===e.size?jsx(ChipSelector,Object.assign({role:"chip"},e,{children:jsx(Text$1,{type:"p2",weight:"medium",children:e.text})})):jsx(ChipsContainerSmall,{role:"chip",style:Object.assign(Object.assign({},e.style),{background:e.disabled?Color.background.soft:Color.background.primaryLow}),children:jsx(Text$1,{type:"p2",weight:"medium",style:{color:e.disabled?Color.text.high:Color.text.primary},children:e.text.slice(0,1).toLocaleUpperCase()+e.text.slice(1,2)})}):jsx(LabelStyled,Object.assign({role:"label",id:"Label"},e,{style:Object.assign({background:e.backgroundColor?e.backgroundColor:n?n.backgroundColor:Color.background.soft},e.style),children:jsx(Text$1,{type:"p",style:{fontSize:(null===(t=e.style)||void 0===t?void 0:t.fontSize)?e.style.fontSize:14,fontWeight:500,color:e.color?e.color:n?n.color:Color.text.full},children:(null==n?void 0:n.text)?n.text:e.text})}))},AvatarContainer=ut.div`
11007
11007
  width: 50px;
11008
11008
  height: 50px;
11009
11009
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptaunabuelo/react-components",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,