@canaia/ui-kit 0.0.12-alpha.41 → 0.0.12-alpha.42

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.
@@ -54441,11 +54441,15 @@ const cIA = ({
54441
54441
  description2: a,
54442
54442
  fontFamily: s = "Sansation-Bold",
54443
54443
  closeOnEsc: l = !0,
54444
- closeOnOverlayClick: c = !0
54444
+ closeOnOverlayClick: c = !0,
54445
+ backgroundButton: g = "assist.500"
54445
54446
  }) => {
54446
- const g = () => {
54447
+ const B = () => {
54447
54448
  i ? i() : e();
54448
- }, B = () => o == null ? null : typeof o == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", children: o }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: o }), u = () => a == null ? null : typeof a == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", mt: "30px", children: a }) : /* @__PURE__ */ E.jsx(CA, { mt: "30px", children: a });
54449
+ }, u = g ? (() => {
54450
+ const [d, Q] = g.split("."), h = parseInt(Q, 10) + 200;
54451
+ return `${d}.${h}`;
54452
+ })() : "assist.500", I = () => o == null ? null : typeof o == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", children: o }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: o }), f = () => a == null ? null : typeof a == "string" ? /* @__PURE__ */ E.jsx(DA, { fontFamily: "Lato-Regular", fontSize: "19px", lineHeight: "1.4", mt: "30px", children: a }) : /* @__PURE__ */ E.jsx(CA, { mt: "30px", children: a });
54449
54453
  return /* @__PURE__ */ E.jsx(pt, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ E.jsxs(
54450
54454
  ni,
54451
54455
  {
@@ -54485,8 +54489,8 @@ const cIA = ({
54485
54489
  ),
54486
54490
  /* @__PURE__ */ E.jsx(Xo, {}),
54487
54491
  /* @__PURE__ */ E.jsxs(ri, { mx: "auto", maxW: "620px", w: "100%", p: "0", textAlign: "center", mt: "2", children: [
54488
- B(),
54489
- u()
54492
+ I(),
54493
+ f()
54490
54494
  ] }),
54491
54495
  /* @__PURE__ */ E.jsxs(XA, { justifyContent: t ? "space-around" : "center", mt: "2", width: "90%", children: [
54492
54496
  t && n && /* @__PURE__ */ E.jsx(
@@ -54519,8 +54523,8 @@ const cIA = ({
54519
54523
  height: "42px",
54520
54524
  fontFamily: s,
54521
54525
  fontSize: "18px",
54522
- onClick: g,
54523
- _hover: { bg: "blue.500" },
54526
+ onClick: B,
54527
+ _hover: { bg: u, color: "white", borderColor: u },
54524
54528
  children: r
54525
54529
  }
54526
54530
  )
@@ -1090,4 +1090,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1090
1090
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1091
1091
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1092
1092
  * Copyright 2024 Fonticons, Inc.
1093
- */const RuA={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},MuA={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},wuA=A=>{const[e,t]=R.useState(!1),[n,i]=R.useState(!1),r=kM({base:!0,md:!1});R.useEffect(()=>{r!==void 0&&i(r)},[r]);const o=n?{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"70vw",height:"70vh",borderRadius:"lg"}:{bottom:"5rem",right:"3rem",width:"360px",height:"500px",borderRadius:"lg"};return E.jsxs(E.Fragment,{children:[E.jsx(_lA,{onClick:()=>t(!0)}),E.jsx(CA,{position:"fixed",top:"0",left:"0",w:"100vw",h:"100vh",bg:"blackAlpha.600",zIndex:999,display:e&&n?"block":"none",onClick:()=>t(!1)}),E.jsxs(CA,{position:"fixed",bg:"white",boxShadow:"lg",overflow:"hidden",zIndex:1e3,transition:"all 0.2s",display:e?"block":"none",py:n?5:0,px:n?20:0,...o,children:[E.jsx(CA,{position:"absolute",top:"0.5rem",right:"0rem",display:"flex",gap:2,zIndex:1001,w:"100%",bg:"white",children:E.jsxs(jA,{alignItems:"center",justifyContent:"space-between",width:"100%",_after:{content:'""',position:"absolute",bottom:0,left:n?"7%":"5%",width:n?"86%":"93%",borderBottom:"1px solid",borderColor:"gray.200"},children:[E.jsx(CA,{children:E.jsx(DA,{fontFamily:"Sansation-Regular, sans-serif",fontSize:"17px",alignItems:"left",color:"primary.500",ml:n?"100px":8,children:"Pregunta a Canaia"})}),E.jsxs(CA,{mr:n?"72px":2,children:[E.jsx(at,{size:"sm","aria-label":n?"Colapsar":"Expandir",icon:E.jsx(Ih,{icon:n?RuA:MuA,style:{width:"1em",height:"1em"}}),onClick:()=>i(!n),variant:"ghost"}),E.jsx(at,{size:"sm","aria-label":"Cerrar chat",icon:E.jsx(va,{}),onClick:()=>t(!1),variant:"ghost"})]})]})}),E.jsx(XlA,{...A})]})]})};function puA(A){return Ae({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Alert"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,9a.5.5,0,0,0-1,0h0V13.02a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"15.001",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,21.935A9.933,9.933,0,1,1,21.934,12,9.945,9.945,0,0,1,12,21.935ZM12,3.069A8.933,8.933,0,1,0,20.934,12,8.944,8.944,0,0,0,12,3.069Z"},child:[]}]}]}]})(A)}const DuA=({isOpen:A,onClose:e,onClickButton2:t,textButton2:n,onClickButton1:i,textButton1:r="Aceptar",description:o,description2:a,fontFamily:s="Sansation-Bold",closeOnEsc:l=!0,closeOnOverlayClick:c=!0})=>{const g=()=>{i?i():e()},B=()=>o==null?null:typeof o=="string"?E.jsx(DA,{fontFamily:"Lato-Regular",fontSize:"19px",lineHeight:"1.4",children:o}):E.jsx(E.Fragment,{children:o}),u=()=>a==null?null:typeof a=="string"?E.jsx(DA,{fontFamily:"Lato-Regular",fontSize:"19px",lineHeight:"1.4",mt:"30px",children:a}):E.jsx(CA,{mt:"30px",children:a});return E.jsx(dt,{alignItems:"center",justifyContent:"center",children:E.jsxs(Wn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:l,closeOnOverlayClick:c,children:[E.jsx(Jn,{opacity:.5,backgroundColor:"blackAlpha.600"}),E.jsxs(Hn,{bg:"white",maxW:"474px",w:"100%",color:"gray.800",borderRadius:"8px",px:"10",py:"5",justifyContent:"center",alignItems:"center",children:[E.jsxs(Zn,{display:"flex",alignItems:"center",justifyContent:"center",flexDir:"column",gap:"2",children:[E.jsx(CA,{as:"span",textAlign:"center",children:E.jsx(puA,{size:40,color:"#DB071E",strokeWidth:.5})}),E.jsx(DA,{fontFamily:"Sansation-Bold",fontSize:"20px",color:"danger.400",children:"¡Atención!"})]}),E.jsx(Io,{}),E.jsxs(Gn,{mx:"auto",maxW:"620px",w:"100%",p:"0",textAlign:"center",mt:"2",children:[B(),u()]}),E.jsxs(jA,{justifyContent:t?"space-around":"center",mt:"2",width:"90%",children:[t&&n&&E.jsx(me,{mt:"6",mb:"2",px:"6",py:"5",variant:"outline",fontFamily:s,fontSize:"18px",color:"assist.500",borderColor:"assist.500",onClick:t,children:n}),E.jsx(me,{bg:"assist.500",color:"white",w:"fit-content",alignSelf:"center",mt:"6",mb:"2",px:"6",py:"5",height:"42px",fontFamily:s,fontSize:"18px",onClick:g,_hover:{bg:"blue.500"},children:r})]})]})]})})},muA=({width:A=24,height:e=24})=>E.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 12.5C4.5 11.3954 5.39543 10.5 6.5 10.5H42.5C43.6046 10.5 44.5 11.3954 44.5 12.5C44.5 13.6046 43.6046 14.5 42.5 14.5H6.5C5.39543 14.5 4.5 13.6046 4.5 12.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 6.5C19.9696 6.5 19.4609 6.71071 19.0858 7.08579C18.7107 7.46086 18.5 7.96957 18.5 8.5V12.5C18.5 13.6046 17.6046 14.5 16.5 14.5C15.3954 14.5 14.5 13.6046 14.5 12.5V8.5C14.5 6.9087 15.1321 5.38258 16.2574 4.25736C17.3826 3.13214 18.9087 2.5 20.5 2.5H28.5C30.0913 2.5 31.6174 3.13214 32.7426 4.25736C33.8679 5.38258 34.5 6.9087 34.5 8.5V12.5C34.5 13.6046 33.6046 14.5 32.5 14.5C31.3954 14.5 30.5 13.6046 30.5 12.5V8.5C30.5 7.96957 30.2893 7.46086 29.9142 7.08579C29.5391 6.71071 29.0304 6.5 28.5 6.5H20.5ZM10.5 10.5C11.6046 10.5 12.5 11.3954 12.5 12.5V40.5C12.5 41.0304 12.7107 41.5391 13.0858 41.9142C13.4609 42.2893 13.9696 42.5 14.5 42.5H34.5C35.0304 42.5 35.5391 42.2893 35.9142 41.9142C36.2893 41.5391 36.5 41.0304 36.5 40.5V12.5C36.5 11.3954 37.3954 10.5 38.5 10.5C39.6046 10.5 40.5 11.3954 40.5 12.5V40.5C40.5 42.0913 39.8679 43.6174 38.7426 44.7426C37.6174 45.8679 36.0913 46.5 34.5 46.5H14.5C12.9087 46.5 11.3826 45.8679 10.2574 44.7426C9.13214 43.6174 8.5 42.0913 8.5 40.5V12.5C8.5 11.3954 9.39543 10.5 10.5 10.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 20.5C21.6046 20.5 22.5 21.3954 22.5 22.5V34.5C22.5 35.6046 21.6046 36.5 20.5 36.5C19.3954 36.5 18.5 35.6046 18.5 34.5V22.5C18.5 21.3954 19.3954 20.5 20.5 20.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5 20.5C29.6046 20.5 30.5 21.3954 30.5 22.5V34.5C30.5 35.6046 29.6046 36.5 28.5 36.5C27.3954 36.5 26.5 35.6046 26.5 34.5V22.5C26.5 21.3954 27.3954 20.5 28.5 20.5Z",fill:"#21B06E"})]}),SuA=({isOpen:A,onClose:e=()=>{},text:t,textButton:n,backgroundButton:i="assist.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:a=!0,onEliminateClick:s})=>{const l=i?(()=>{const[c,g]=i.split("."),B=parseInt(g,10)+200;return`${c}.${B}`})():"assist.500";return E.jsx(dt,{alignItems:"center",justifyContent:"center",children:E.jsxs(Wn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:a,children:[E.jsx(Jn,{}),E.jsxs(Hn,{backgroundColor:"white.100",maxWidth:"301px",width:"100%",height:"175px",color:"black.600",borderRadius:"15px",children:[E.jsx(Zn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:E.jsx(CA,{as:"span",textAlign:"center",children:E.jsx(muA,{width:45,height:45})})}),E.jsx(Io,{hidden:r}),E.jsx(Gn,{margin:"0 auto",maxWidth:"310px",width:"100%",paddingBottom:"10px",mt:"-10px",children:E.jsx(DA,{fontFamily:"Lato",fontSize:"19px",mb:"8px",children:t})}),E.jsx(me,{backgroundColor:i,color:"white.100",height:"42px",maxWidth:"max-content",width:"102px",margin:"5px auto 30px",padding:"10px 24px",fontFamily:"Sansation-Bold",fontSize:"18px",borderRadius:"10px",onClick:s,_hover:{backgroundColor:l},children:n})]})]})})};mA.AccordionCustom=AeA,mA.AudioButtons=IeA,mA.BackNavigation=xeA,mA.Banner=yeA,mA.Button=yj,mA.CanaiaProvider=tj,mA.CardCustom=leA,mA.ChaHelpCanaia=wuA,mA.ChatAssistant=RAA,mA.ChatInput=jAA,mA.ChatUser=WO,mA.ChatWithoutFeedback=peA,mA.CustomBox=aeA,mA.CustomCheckBox=heA,mA.CustomProgressBar=oeA,mA.DragAndDrop=TO,mA.Header=zAA,mA.Input=yO,mA.InputPhone=vO,mA.MenuListCustom=eeA,mA.MetricCustom=seA,mA.ModalCustom=XAA,mA.ModalDeleteFile=LAA,mA.ModalEliminatedSuccess=SuA,mA.ModalError=DuA,mA.ModalFeedback=FeA,mA.ModalInactivity=PeA,mA.ModalPermission=zeA,mA.ModalPremium=meA,mA.MultiHeaderAccordion=keA,mA.MultiInput=NO,mA.NegativeModal=weA,mA.PhotoUpload=kj,mA.PositiveModal=MeA,mA.SegmentedControl=geA,mA.Select=aj,mA.SideBar=OAA,mA.SideBarCustom=ZeA,mA.SingleChoice=VeA,mA.Spinner=ceA,mA.SpinnerLittle=jeA,mA.StatusCustom=reA,mA.Steps=vj,mA.SwitchCustom=deA,mA.Tabs=feA,mA.TabsOptions=CeA,mA.TagSelector=QeA,mA.Text=bO,mA.TextareaCustom=teA,mA.Toast=hp,mA.useCustomToast=wf,Object.defineProperty(mA,Symbol.toStringTag,{value:"Module"})});
1093
+ */const RuA={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},MuA={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},wuA=A=>{const[e,t]=R.useState(!1),[n,i]=R.useState(!1),r=kM({base:!0,md:!1});R.useEffect(()=>{r!==void 0&&i(r)},[r]);const o=n?{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"70vw",height:"70vh",borderRadius:"lg"}:{bottom:"5rem",right:"3rem",width:"360px",height:"500px",borderRadius:"lg"};return E.jsxs(E.Fragment,{children:[E.jsx(_lA,{onClick:()=>t(!0)}),E.jsx(CA,{position:"fixed",top:"0",left:"0",w:"100vw",h:"100vh",bg:"blackAlpha.600",zIndex:999,display:e&&n?"block":"none",onClick:()=>t(!1)}),E.jsxs(CA,{position:"fixed",bg:"white",boxShadow:"lg",overflow:"hidden",zIndex:1e3,transition:"all 0.2s",display:e?"block":"none",py:n?5:0,px:n?20:0,...o,children:[E.jsx(CA,{position:"absolute",top:"0.5rem",right:"0rem",display:"flex",gap:2,zIndex:1001,w:"100%",bg:"white",children:E.jsxs(jA,{alignItems:"center",justifyContent:"space-between",width:"100%",_after:{content:'""',position:"absolute",bottom:0,left:n?"7%":"5%",width:n?"86%":"93%",borderBottom:"1px solid",borderColor:"gray.200"},children:[E.jsx(CA,{children:E.jsx(DA,{fontFamily:"Sansation-Regular, sans-serif",fontSize:"17px",alignItems:"left",color:"primary.500",ml:n?"100px":8,children:"Pregunta a Canaia"})}),E.jsxs(CA,{mr:n?"72px":2,children:[E.jsx(at,{size:"sm","aria-label":n?"Colapsar":"Expandir",icon:E.jsx(Ih,{icon:n?RuA:MuA,style:{width:"1em",height:"1em"}}),onClick:()=>i(!n),variant:"ghost"}),E.jsx(at,{size:"sm","aria-label":"Cerrar chat",icon:E.jsx(va,{}),onClick:()=>t(!1),variant:"ghost"})]})]})}),E.jsx(XlA,{...A})]})]})};function puA(A){return Ae({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Alert"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,9a.5.5,0,0,0-1,0h0V13.02a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"15.001",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,21.935A9.933,9.933,0,1,1,21.934,12,9.945,9.945,0,0,1,12,21.935ZM12,3.069A8.933,8.933,0,1,0,20.934,12,8.944,8.944,0,0,0,12,3.069Z"},child:[]}]}]}]})(A)}const DuA=({isOpen:A,onClose:e,onClickButton2:t,textButton2:n,onClickButton1:i,textButton1:r="Aceptar",description:o,description2:a,fontFamily:s="Sansation-Bold",closeOnEsc:l=!0,closeOnOverlayClick:c=!0,backgroundButton:g="assist.500"})=>{const B=()=>{i?i():e()},u=g?(()=>{const[d,Q]=g.split("."),h=parseInt(Q,10)+200;return`${d}.${h}`})():"assist.500",I=()=>o==null?null:typeof o=="string"?E.jsx(DA,{fontFamily:"Lato-Regular",fontSize:"19px",lineHeight:"1.4",children:o}):E.jsx(E.Fragment,{children:o}),f=()=>a==null?null:typeof a=="string"?E.jsx(DA,{fontFamily:"Lato-Regular",fontSize:"19px",lineHeight:"1.4",mt:"30px",children:a}):E.jsx(CA,{mt:"30px",children:a});return E.jsx(dt,{alignItems:"center",justifyContent:"center",children:E.jsxs(Wn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:l,closeOnOverlayClick:c,children:[E.jsx(Jn,{opacity:.5,backgroundColor:"blackAlpha.600"}),E.jsxs(Hn,{bg:"white",maxW:"474px",w:"100%",color:"gray.800",borderRadius:"8px",px:"10",py:"5",justifyContent:"center",alignItems:"center",children:[E.jsxs(Zn,{display:"flex",alignItems:"center",justifyContent:"center",flexDir:"column",gap:"2",children:[E.jsx(CA,{as:"span",textAlign:"center",children:E.jsx(puA,{size:40,color:"#DB071E",strokeWidth:.5})}),E.jsx(DA,{fontFamily:"Sansation-Bold",fontSize:"20px",color:"danger.400",children:"¡Atención!"})]}),E.jsx(Io,{}),E.jsxs(Gn,{mx:"auto",maxW:"620px",w:"100%",p:"0",textAlign:"center",mt:"2",children:[I(),f()]}),E.jsxs(jA,{justifyContent:t?"space-around":"center",mt:"2",width:"90%",children:[t&&n&&E.jsx(me,{mt:"6",mb:"2",px:"6",py:"5",variant:"outline",fontFamily:s,fontSize:"18px",color:"assist.500",borderColor:"assist.500",onClick:t,children:n}),E.jsx(me,{bg:"assist.500",color:"white",w:"fit-content",alignSelf:"center",mt:"6",mb:"2",px:"6",py:"5",height:"42px",fontFamily:s,fontSize:"18px",onClick:B,_hover:{bg:u,color:"white",borderColor:u},children:r})]})]})]})})},muA=({width:A=24,height:e=24})=>E.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 12.5C4.5 11.3954 5.39543 10.5 6.5 10.5H42.5C43.6046 10.5 44.5 11.3954 44.5 12.5C44.5 13.6046 43.6046 14.5 42.5 14.5H6.5C5.39543 14.5 4.5 13.6046 4.5 12.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 6.5C19.9696 6.5 19.4609 6.71071 19.0858 7.08579C18.7107 7.46086 18.5 7.96957 18.5 8.5V12.5C18.5 13.6046 17.6046 14.5 16.5 14.5C15.3954 14.5 14.5 13.6046 14.5 12.5V8.5C14.5 6.9087 15.1321 5.38258 16.2574 4.25736C17.3826 3.13214 18.9087 2.5 20.5 2.5H28.5C30.0913 2.5 31.6174 3.13214 32.7426 4.25736C33.8679 5.38258 34.5 6.9087 34.5 8.5V12.5C34.5 13.6046 33.6046 14.5 32.5 14.5C31.3954 14.5 30.5 13.6046 30.5 12.5V8.5C30.5 7.96957 30.2893 7.46086 29.9142 7.08579C29.5391 6.71071 29.0304 6.5 28.5 6.5H20.5ZM10.5 10.5C11.6046 10.5 12.5 11.3954 12.5 12.5V40.5C12.5 41.0304 12.7107 41.5391 13.0858 41.9142C13.4609 42.2893 13.9696 42.5 14.5 42.5H34.5C35.0304 42.5 35.5391 42.2893 35.9142 41.9142C36.2893 41.5391 36.5 41.0304 36.5 40.5V12.5C36.5 11.3954 37.3954 10.5 38.5 10.5C39.6046 10.5 40.5 11.3954 40.5 12.5V40.5C40.5 42.0913 39.8679 43.6174 38.7426 44.7426C37.6174 45.8679 36.0913 46.5 34.5 46.5H14.5C12.9087 46.5 11.3826 45.8679 10.2574 44.7426C9.13214 43.6174 8.5 42.0913 8.5 40.5V12.5C8.5 11.3954 9.39543 10.5 10.5 10.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 20.5C21.6046 20.5 22.5 21.3954 22.5 22.5V34.5C22.5 35.6046 21.6046 36.5 20.5 36.5C19.3954 36.5 18.5 35.6046 18.5 34.5V22.5C18.5 21.3954 19.3954 20.5 20.5 20.5Z",fill:"#21B06E"}),E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5 20.5C29.6046 20.5 30.5 21.3954 30.5 22.5V34.5C30.5 35.6046 29.6046 36.5 28.5 36.5C27.3954 36.5 26.5 35.6046 26.5 34.5V22.5C26.5 21.3954 27.3954 20.5 28.5 20.5Z",fill:"#21B06E"})]}),SuA=({isOpen:A,onClose:e=()=>{},text:t,textButton:n,backgroundButton:i="assist.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:a=!0,onEliminateClick:s})=>{const l=i?(()=>{const[c,g]=i.split("."),B=parseInt(g,10)+200;return`${c}.${B}`})():"assist.500";return E.jsx(dt,{alignItems:"center",justifyContent:"center",children:E.jsxs(Wn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:a,children:[E.jsx(Jn,{}),E.jsxs(Hn,{backgroundColor:"white.100",maxWidth:"301px",width:"100%",height:"175px",color:"black.600",borderRadius:"15px",children:[E.jsx(Zn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:E.jsx(CA,{as:"span",textAlign:"center",children:E.jsx(muA,{width:45,height:45})})}),E.jsx(Io,{hidden:r}),E.jsx(Gn,{margin:"0 auto",maxWidth:"310px",width:"100%",paddingBottom:"10px",mt:"-10px",children:E.jsx(DA,{fontFamily:"Lato",fontSize:"19px",mb:"8px",children:t})}),E.jsx(me,{backgroundColor:i,color:"white.100",height:"42px",maxWidth:"max-content",width:"102px",margin:"5px auto 30px",padding:"10px 24px",fontFamily:"Sansation-Bold",fontSize:"18px",borderRadius:"10px",onClick:s,_hover:{backgroundColor:l},children:n})]})]})})};mA.AccordionCustom=AeA,mA.AudioButtons=IeA,mA.BackNavigation=xeA,mA.Banner=yeA,mA.Button=yj,mA.CanaiaProvider=tj,mA.CardCustom=leA,mA.ChaHelpCanaia=wuA,mA.ChatAssistant=RAA,mA.ChatInput=jAA,mA.ChatUser=WO,mA.ChatWithoutFeedback=peA,mA.CustomBox=aeA,mA.CustomCheckBox=heA,mA.CustomProgressBar=oeA,mA.DragAndDrop=TO,mA.Header=zAA,mA.Input=yO,mA.InputPhone=vO,mA.MenuListCustom=eeA,mA.MetricCustom=seA,mA.ModalCustom=XAA,mA.ModalDeleteFile=LAA,mA.ModalEliminatedSuccess=SuA,mA.ModalError=DuA,mA.ModalFeedback=FeA,mA.ModalInactivity=PeA,mA.ModalPermission=zeA,mA.ModalPremium=meA,mA.MultiHeaderAccordion=keA,mA.MultiInput=NO,mA.NegativeModal=weA,mA.PhotoUpload=kj,mA.PositiveModal=MeA,mA.SegmentedControl=geA,mA.Select=aj,mA.SideBar=OAA,mA.SideBarCustom=ZeA,mA.SingleChoice=VeA,mA.Spinner=ceA,mA.SpinnerLittle=jeA,mA.StatusCustom=reA,mA.Steps=vj,mA.SwitchCustom=deA,mA.Tabs=feA,mA.TabsOptions=CeA,mA.TagSelector=QeA,mA.Text=bO,mA.TextareaCustom=teA,mA.Toast=hp,mA.useCustomToast=wf,Object.defineProperty(mA,Symbol.toStringTag,{value:"Module"})});
@@ -10,4 +10,5 @@ export type ModalAccountErrorProps = {
10
10
  closeOnEsc?: boolean;
11
11
  closeOnOverlayClick?: boolean;
12
12
  fontFamily?: string;
13
+ backgroundButton?: string;
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canaia/ui-kit",
3
- "version": "0.0.12-alpha.41",
3
+ "version": "0.0.12-alpha.42",
4
4
  "main": "dist/canaia-ui-kit.umd.js",
5
5
  "module": "dist/canaia-ui-kit.es.js",
6
6
  "type": "module",