@canaia/ui-kit 0.0.12-alpha.39 → 0.0.12-alpha.40
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/canaia-ui-kit.es.js
CHANGED
|
@@ -54425,21 +54425,25 @@ const gIA = ({
|
|
|
54425
54425
|
onClose: e,
|
|
54426
54426
|
onClickButton2: t,
|
|
54427
54427
|
textButton2: n,
|
|
54428
|
-
|
|
54429
|
-
|
|
54430
|
-
|
|
54431
|
-
|
|
54432
|
-
|
|
54428
|
+
onClickButton1: i,
|
|
54429
|
+
textButton1: r = "Aceptar",
|
|
54430
|
+
description: o,
|
|
54431
|
+
description2: a,
|
|
54432
|
+
fontFamily: s = "Sansation-Bold",
|
|
54433
|
+
closeOnEsc: l = !0,
|
|
54434
|
+
closeOnOverlayClick: c = !0
|
|
54433
54435
|
}) => {
|
|
54434
|
-
const
|
|
54436
|
+
const g = () => {
|
|
54437
|
+
i ? i() : e();
|
|
54438
|
+
}, 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 });
|
|
54435
54439
|
return /* @__PURE__ */ E.jsx(pt, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ E.jsxs(
|
|
54436
54440
|
ni,
|
|
54437
54441
|
{
|
|
54438
54442
|
isOpen: A,
|
|
54439
54443
|
onClose: e,
|
|
54440
54444
|
isCentered: !0,
|
|
54441
|
-
closeOnEsc:
|
|
54442
|
-
closeOnOverlayClick:
|
|
54445
|
+
closeOnEsc: l,
|
|
54446
|
+
closeOnOverlayClick: c,
|
|
54443
54447
|
children: [
|
|
54444
54448
|
/* @__PURE__ */ E.jsx(ai, { opacity: 0.5, backgroundColor: "blackAlpha.600" }),
|
|
54445
54449
|
/* @__PURE__ */ E.jsxs(
|
|
@@ -54471,19 +54475,19 @@ const gIA = ({
|
|
|
54471
54475
|
),
|
|
54472
54476
|
/* @__PURE__ */ E.jsx(Xo, {}),
|
|
54473
54477
|
/* @__PURE__ */ E.jsxs(ri, { mx: "auto", maxW: "620px", w: "100%", p: "0", textAlign: "center", mt: "2", children: [
|
|
54474
|
-
|
|
54475
|
-
|
|
54478
|
+
B(),
|
|
54479
|
+
u()
|
|
54476
54480
|
] }),
|
|
54477
54481
|
/* @__PURE__ */ E.jsxs(XA, { justifyContent: t ? "space-around" : "center", mt: "2", width: "90%", children: [
|
|
54478
54482
|
t && n && /* @__PURE__ */ E.jsx(
|
|
54479
54483
|
ve,
|
|
54480
54484
|
{
|
|
54481
54485
|
mt: "6",
|
|
54482
|
-
mb: "",
|
|
54486
|
+
mb: "2",
|
|
54483
54487
|
px: "6",
|
|
54484
54488
|
py: "5",
|
|
54485
54489
|
variant: "outline",
|
|
54486
|
-
fontFamily:
|
|
54490
|
+
fontFamily: s,
|
|
54487
54491
|
fontSize: "18px",
|
|
54488
54492
|
color: "assist.500",
|
|
54489
54493
|
borderColor: "assist.500",
|
|
@@ -54503,11 +54507,11 @@ const gIA = ({
|
|
|
54503
54507
|
px: "6",
|
|
54504
54508
|
py: "5",
|
|
54505
54509
|
height: "42px",
|
|
54506
|
-
fontFamily:
|
|
54510
|
+
fontFamily: s,
|
|
54507
54511
|
fontSize: "18px",
|
|
54508
|
-
onClick:
|
|
54512
|
+
onClick: g,
|
|
54509
54513
|
_hover: { bg: "blue.500" },
|
|
54510
|
-
children:
|
|
54514
|
+
children: r
|
|
54511
54515
|
}
|
|
54512
54516
|
)
|
|
54513
54517
|
] })
|
|
@@ -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 MuA={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"]},wuA={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"]},puA=A=>{const[e,t]=R.useState(!1),[n,i]=R.useState(!1),r=vM({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(KlA,{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?MuA:wuA,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(LlA,{...A})]})]})};function DuA(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 muA=({isOpen:A,onClose:e,onClickButton2:t,textButton2:n,
|
|
1093
|
+
*/const MuA={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"]},wuA={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"]},puA=A=>{const[e,t]=R.useState(!1),[n,i]=R.useState(!1),r=vM({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(KlA,{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?MuA:wuA,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(LlA,{...A})]})]})};function DuA(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 muA=({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(DuA,{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})]})]})]})})},SuA=({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"})]}),xuA=({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(SuA,{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=eeA,mA.AudioButtons=feA,mA.BackNavigation=TeA,mA.Banner=VeA,mA.Button=Vj,mA.CanaiaProvider=nj,mA.CardCustom=ceA,mA.ChaHelpCanaia=puA,mA.ChatAssistant=MAA,mA.ChatInput=OAA,mA.ChatUser=HO,mA.ChatWithoutFeedback=DeA,mA.CustomBox=seA,mA.CustomCheckBox=CeA,mA.CustomProgressBar=aeA,mA.DragAndDrop=bO,mA.Header=jAA,mA.Input=VO,mA.InputPhone=NO,mA.MenuListCustom=teA,mA.MetricCustom=leA,mA.ModalCustom=LAA,mA.ModalDeleteFile=_AA,mA.ModalEliminatedSuccess=xuA,mA.ModalError=muA,mA.ModalFeedback=FeA,mA.ModalInactivity=YeA,mA.ModalPermission=jeA,mA.ModalPremium=SeA,mA.MultiHeaderAccordion=veA,mA.MultiInput=WO,mA.NegativeModal=peA,mA.PhotoUpload=vj,mA.PositiveModal=weA,mA.SegmentedControl=BeA,mA.Select=sj,mA.SideBar=XAA,mA.SideBarCustom=JeA,mA.SingleChoice=keA,mA.Spinner=geA,mA.SpinnerLittle=OeA,mA.StatusCustom=oeA,mA.Steps=Nj,mA.SwitchCustom=QeA,mA.Tabs=deA,mA.TabsOptions=UeA,mA.TagSelector=heA,mA.Text=yO,mA.TextareaCustom=neA,mA.Toast=Cp,mA.useCustomToast=wf,Object.defineProperty(mA,Symbol.toStringTag,{value:"Module"})});
|