cemtrik-dependencies 1.0.94 → 1.0.96

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ Check the top-level render call using <`+j+">.")}return S}}function br(d,S){{if(
36
36
  .bg-opacity-35 {
37
37
  opacity: .35;
38
38
  }
39
- `}),f.jsx(Re,{show:o,as:u.Fragment,children:f.jsxs(Yn,{as:"div",className:"relative z-50 relative",onClose:i,"data-testid":"modal",children:[f.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:f.jsx("div",{className:"fixed inset-0 bg-opacity-35 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>i(!1)})}),f.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:f.jsx("div",{className:"flex min-h-full items-center justify-center xs:p-2 p-4 text-center sm:items-center sm:p-0",children:f.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:f.jsxs(Yn.Panel,{className:k("relative transform rounded-lg bg-white px-4 pb-3 pt-5 text-left shadow-xl transition-all sm:w-full sm:pt-3 sm:px-3",n!==""&&n),style:t,children:[l&&f.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:f.jsx(Es,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),f.jsx("div",{className:k(r!==""&&r),"data-testid":"content",children:e}),s&&f.jsx("div",{className:"mt-5 sm:mt-6",children:f.jsx(ot,{id:"close-modal",onClick:()=>i(!1),children:"Cerrar"})}),f.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})]})}const ks=({isOpenModalConfirmation:e,setIsOpenModalConfirmation:n,close:t,title:r="¿Estás seguro de abandonar la creación de la acción?",description:o="La información se perderá si no creas la acción",classNameTitle:i="",classNameDescription:l=""})=>{const s=()=>{n(!1),t()};return f.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[f.jsx("p",{className:k("text-center text-sm",i!==""&&i),children:r}),f.jsx("p",{className:k("text-center text-sm",l!==""&&l),children:o}),f.jsxs("div",{className:"flex w-full justify-center mt-5",children:[f.jsx(or,{className:"rounded-md bg-white text-gray-500 text-sm shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50 w-24 h-9 mr-6",onClick:()=>n(),id:"cancel",children:"Cancelar"}),f.jsx(ot,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 focus-visible:outline-secondary-2 shadow-secondary-2 rounded py-1.5 text-white w-full px-5",outline:"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",onClick:s,id:"confirmation",children:"Aceptar"})]})]})},$s=({className:e="",style:n={}})=>f.jsx("div",{className:k("w-px",e!==""&&e),style:n}),Ps=({onClick:e,id:n="",className:t=""})=>f.jsxs("div",{className:k("flex items-center text-default-5",t!==""&&t),"data-testid":n,children:[f.jsx(ls,{className:"w-3 h-3 3xs:w-4 3xs:h-4 stroke-current cursor-pointer","data-testid":"chevron-left-icon",onClick:e}),f.jsx("span",{onClick:e,className:"text-sm cursor-pointer","data-testid":"go-back",children:"Volver"})]}),rn=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:i,onClick:l=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:b,classNameLabel:p="",classNameContainerInput:v="",classNameContainer:g="",className:x="",icon:E=null,onKeyDown:w,onFocus:C,min:F,max:I})=>{const[P,z]=u.useState(!1),W=Me({"ring-red-300 focus:ring-red-300 text-red-900":c||P,"focus:ring-indigo-600 text-gray-500":!c&&!P}),R=L=>{if(i&&i(L),r!=="email")return;const{value:H}=L.target,J=dn(H);z(!J)};return f.jsxs("div",{"data-testid":`container-input-${b}`,className:g,children:[n!==""&&f.jsx("label",{htmlFor:t,className:k("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${b}`,children:n}),f.jsxs("div",{className:k("relative mt-1 rounded-md",v!==""&&v),children:[f.jsx("input",{id:b,name:o,type:r,autoComplete:h,placeholder:e,onChange:R,onClick:l,onKeyDown:w,onFocus:C,value:s,readOnly:a,"data-testid":`input-${b}`,min:F,className:k("block w-full rounded-md border-0 py-1.5 shadow-sm placeholder-gray-300 ring-1 ring-gray-300 ring-inset focus:ring-1 focus:ring-inset text-sm sm:leading-6",W,x!==""&&x)}),E!==null&&f.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:E}),c&&E===null&&f.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:f.jsx(tr,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:m})]})};function it({className:e="w-6 h-6",color:n="#3730a3"}){return f.jsxs("svg",{className:k("fill-current animate-spin",e),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:n,strokeWidth:"4",fill:"none"}),f.jsx("path",{fill:n,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Ms(){return f.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen overflow-hidden bg-stone-600 opacity-75 flex flex-col items-center justify-center","data-testid":"spinner",style:{zIndex:60},children:[f.jsx("div",{className:"inline-block h-12 w-12 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] opacity-0 motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",role:"status"}),f.jsx(it,{className:"w-8 h-8 animate-spin"})]})}const sr=({height:e="36px",style:n={},label:t="",onChange:r,isReadOnly:o=!1,isError:i=!1,helperText:l="",name:s,id:a,className:c="",classNameLabel:m="",classNameInput:h="",options:b,value:p=-1,defaultValue:v={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:g="label",defaultId:x="value",bgOptionSelect:E="bg-indigo-600",isSearch:w=!1,loading:C=!1,isTest:F=!1})=>{const[I,P]=u.useState(""),[z,W]=u.useState(v),[R,L]=u.useState(!1),[H,J]=u.useState(!0);u.useEffect(()=>{if((b==null?void 0:b.length)!==1||!H)return;J(!1);const[O]=b,D=O[x],M=O[g];W({value:D,label:M}),r({target:{value:O,checked:!1,name:s,type:void 0,id:O[x]}})},[b,x,g,r,s,H]),u.useEffect(()=>{if(p===-1||(b==null?void 0:b.length)===0)return;const O=b==null?void 0:b.find(D=>D[x]===p);O&&W(O)},[p,b,x]),u.useEffect(()=>{p==="clear"&&(z.value!==v.value||z.label!==v.label||F)&&W(v)},[v,F,z,p]);const te=I===""?b:b.filter(O=>O[g].toLowerCase().includes(I.toLowerCase())),ae=Me({"ring-red-300 focus:ring-red-300 text-red-900":i&&!o,"text-gray-500":!i,"focus:ring-indigo-600":!i&&!o}),T=Me({"text-red-400":i&&!o,"text-gray-400":!i}),ne=O=>{W(O),r({target:{value:O,checked:!1,name:s,type:void 0,id:O[x]}})};return f.jsxs(Ne,{as:"div",value:z,onChange:ne,children:[f.jsx(Ne.Label,{className:k("block text-sm font-medium leading-6 text-gray-500 mb-0.5",m!==""&&m),children:t}),f.jsxs("div",{className:k("relative",c!==""&&c),children:[f.jsxs(Ne.Button,{className:"w-full","data-testid":`listbox-button-${a}`,children:[z.iconStart&&f.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:z.iconStart}),f.jsx(Ne.Input,{className:k("w-full rounded-md border-0 bg-white py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-gray-300 sm:text-sm sm:leading-6 truncate block",!i&&!o&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",o&&"focus:ring-gray-300",ae,h!==""&&h),onChange:O=>P(O.target.value),displayValue:O=>{var D;return(D=O[g])==null?void 0:D.trim()},autoComplete:"false",readOnly:!w||o,style:{height:e,...n},"data-testid":"input-search",onClick:()=>L(o?!1:!R),onBlur:()=>{P(""),L(!1)}})]}),z.iconEnd&&f.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:z.iconEnd}),f.jsx(Ne.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>L(o?!1:!R),"data-testid":"arrow-button",children:R?f.jsx(Kl,{className:k("h-5 w-5",T),"aria-hidden":"true"}):f.jsx(Gl,{className:k("h-5 w-5",T),"aria-hidden":"true"})}),!o&&f.jsx(f.Fragment,{children:C?f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none flex justify-center items-center py-2",children:f.jsx(it,{})}):(te??[]).length>0?f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden",children:te.map((O,D)=>f.jsx(Ne.Option,{value:O,className:k(O[x]===z[x]?`${E} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${E}`),"data-testid":`select-${a}-${O[x]}`,children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[O.iconStart&&f.jsx("span",{className:"mr-2","aria-hidden":"true",children:O.iconStart}),f.jsx("span",{className:"block font-normal break-all",children:O[g]})]}),O.iconEnd&&f.jsx("span",{className:"ml-2","aria-hidden":"true",children:O.iconEnd})]})},D))}):f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden flex justify-center items-center py-2",children:f.jsx("p",{"data-testid":"empty-options",children:"Sin opciones"})})})]}),l.length>0&&i&&f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${a}`,children:l})]})},As=({placeholder:e="",label:n="",htmlFor:t,name:r,handleChange:o,onClick:i=()=>{},value:l,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:b,classNameLabel:p="",classNameContainer:v="",className:g="",onKeyDown:x,options:E,idSelect:w,isMarginLeft:C=!0,classNameSelect:F="w-20",type:I="text"})=>{const{width:P}=Ot(),z=Me({"ring-red-300 focus:ring-red-300 text-red-900":c,"focus:ring-indigo-600 text-gray-500":!c});return f.jsxs(f.Fragment,{children:[f.jsx("style",{children:`
39
+ `}),f.jsx(Re,{show:o,as:u.Fragment,children:f.jsxs(Yn,{as:"div",className:"relative z-50 relative",onClose:i,"data-testid":"modal",children:[f.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:f.jsx("div",{className:"fixed inset-0 bg-opacity-35 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>i(!1)})}),f.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:f.jsx("div",{className:"flex min-h-full items-center justify-center xs:p-2 p-4 text-center sm:items-center sm:p-0",children:f.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:f.jsxs(Yn.Panel,{className:k("relative transform rounded-lg bg-white px-4 pb-3 pt-5 text-left shadow-xl transition-all sm:w-full sm:pt-3 sm:px-3",n!==""&&n),style:t,children:[l&&f.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:f.jsx(Es,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),f.jsx("div",{className:k(r!==""&&r),"data-testid":"content",children:e}),s&&f.jsx("div",{className:"mt-5 sm:mt-6",children:f.jsx(ot,{id:"close-modal",onClick:()=>i(!1),children:"Cerrar"})}),f.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})]})}const ks=({isOpenModalConfirmation:e,setIsOpenModalConfirmation:n,close:t,title:r="¿Estás seguro de abandonar la creación de la acción?",description:o="La información se perderá si no creas la acción",classNameTitle:i="",classNameDescription:l=""})=>{const s=()=>{n(!1),t()};return f.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[f.jsx("p",{className:k("text-center text-sm",i!==""&&i),children:r}),f.jsx("p",{className:k("text-center text-sm",l!==""&&l),children:o}),f.jsxs("div",{className:"flex w-full justify-center mt-5",children:[f.jsx(or,{className:"rounded-md bg-white text-gray-500 text-sm shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50 w-24 h-9 mr-6",onClick:()=>n(),id:"cancel",children:"Cancelar"}),f.jsx(ot,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 focus-visible:outline-secondary-2 shadow-secondary-2 rounded py-1.5 text-white w-full px-5",outline:"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",onClick:s,id:"confirmation",children:"Aceptar"})]})]})},$s=({className:e="",style:n={}})=>f.jsx("div",{className:k("w-px",e!==""&&e),style:n}),Ps=({onClick:e,id:n="",className:t=""})=>f.jsxs("div",{className:k("flex items-center text-default-5",t!==""&&t),"data-testid":n,children:[f.jsx(ls,{className:"w-3 h-3 3xs:w-4 3xs:h-4 stroke-current cursor-pointer","data-testid":"chevron-left-icon",onClick:e}),f.jsx("span",{onClick:e,className:"text-sm cursor-pointer","data-testid":"go-back",children:"Volver"})]}),rn=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:i,onClick:l=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:b,classNameLabel:p="",classNameContainerInput:v="",classNameContainer:g="",className:x="",icon:E=null,onKeyDown:w,onFocus:C,min:F,max:I})=>{const[P,z]=u.useState(!1),W=Me({"ring-red-300 focus:ring-red-300 text-red-900":c||P,"focus:ring-indigo-600 text-gray-500":!c&&!P}),R=L=>{if(i&&i(L),r!=="email")return;const{value:H}=L.target,J=dn(H);z(!J)};return f.jsxs("div",{"data-testid":`container-input-${b}`,className:g,children:[n!==""&&f.jsx("label",{htmlFor:t,className:k("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${b}`,children:n}),f.jsxs("div",{className:k("relative mt-1 rounded-md",v!==""&&v),children:[f.jsx("input",{id:b,name:o,type:r,autoComplete:h,placeholder:e,onChange:R,onClick:l,onKeyDown:w,onFocus:C,value:s,readOnly:a,"data-testid":`input-${b}`,min:F,className:k("block w-full rounded-md border-0 py-1.5 shadow-sm placeholder-gray-300 ring-1 ring-gray-300 ring-inset focus:ring-1 focus:ring-inset text-sm sm:leading-6",W,x!==""&&x)}),E!==null&&f.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:E}),c&&E===null&&f.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:f.jsx(tr,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:m})]})};function it({className:e="w-6 h-6",color:n="#3730a3"}){return f.jsxs("svg",{className:k("fill-current animate-spin",e),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:n,strokeWidth:"4",fill:"none"}),f.jsx("path",{fill:n,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Ms(){return f.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen overflow-hidden bg-stone-600 opacity-75 flex flex-col items-center justify-center","data-testid":"spinner",style:{zIndex:60},children:[f.jsx("div",{className:"inline-block h-12 w-12 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] opacity-0 motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",role:"status"}),f.jsx(it,{className:"w-8 h-8 animate-spin"})]})}const sr=({height:e="36px",style:n={},label:t="",onChange:r,isReadOnly:o=!1,isError:i=!1,helperText:l="",name:s,id:a,className:c="",classNameLabel:m="",classNameInput:h="",options:b,value:p=-1,defaultValue:v={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:g="label",defaultId:x="value",bgOptionSelect:E="bg-indigo-600",isSearch:w=!1,loading:C=!1,isTest:F=!1})=>{const[I,P]=u.useState(""),[z,W]=u.useState(v),[R,L]=u.useState(!1),[H,J]=u.useState(!0);u.useEffect(()=>{if((b==null?void 0:b.length)!==1||!H)return;J(!1);const[O]=b,D=O[x],M=O[g];W({value:D,label:M}),r({target:{value:O,checked:!1,name:s,type:void 0,id:O[x]}})},[b,x,g,r,s,H]),u.useEffect(()=>{if(p===-1||(b==null?void 0:b.length)===0)return;const O=b==null?void 0:b.find(D=>D[x]===p);O&&W(O)},[p,b,x]),u.useEffect(()=>{p==="clear"&&(z.value!==v.value||z.label!==v.label||F)&&W(v)},[v,F,z,p]);const te=I===""?b:b.filter(O=>O[g].toLowerCase().includes(I.toLowerCase())),ae=Me({"ring-red-300 focus:ring-red-300 text-red-900":i&&!o,"text-gray-500":!i,"focus:ring-indigo-600":!i&&!o}),T=Me({"text-red-400":i&&!o,"text-gray-400":!i}),ne=O=>{W(O),r({target:{value:O,checked:!1,name:s,type:void 0,id:O[x]}})};return f.jsxs(Ne,{as:"div",value:z,onChange:ne,children:[f.jsx(Ne.Label,{className:k("block text-sm font-medium leading-6 text-gray-500 mb-0.5",m!==""&&m),children:t}),f.jsxs("div",{className:k("relative",c!==""&&c),children:[f.jsxs(Ne.Button,{className:"w-full","data-testid":`listbox-button-${a}`,children:[z.iconStart&&f.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:z.iconStart}),f.jsx(Ne.Input,{className:k("w-full rounded-md border-0 bg-white py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-gray-300 sm:text-sm sm:leading-6 truncate block",!i&&!o&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",o&&"focus:ring-gray-300",ae,h!==""&&h),onChange:O=>P(O.target.value),displayValue:O=>{var D;return(D=O[g])==null?void 0:D.trim()},autoComplete:"false",readOnly:!w||o,style:{height:e,...n},"data-testid":"input-search",onClick:()=>L(o?!1:!R),onBlur:()=>{window.setTimeout(()=>{P(""),L(!1)},100)}})]}),z.iconEnd&&f.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:z.iconEnd}),f.jsx(Ne.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>L(o?!1:!R),"data-testid":"arrow-button",children:R?f.jsx(Kl,{className:k("h-5 w-5",T),"aria-hidden":"true"}):f.jsx(Gl,{className:k("h-5 w-5",T),"aria-hidden":"true"})}),!o&&f.jsx(f.Fragment,{children:C?f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none flex justify-center items-center py-2",children:f.jsx(it,{})}):(te??[]).length>0?f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden",children:te.map((O,D)=>f.jsx(Ne.Option,{value:O,className:k(O[x]===z[x]?`${E} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${E}`),"data-testid":`select-${a}-${O[x]}`,children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[O.iconStart&&f.jsx("span",{className:"mr-2","aria-hidden":"true",children:O.iconStart}),f.jsx("span",{className:"block font-normal break-all",children:O[g]})]}),O.iconEnd&&f.jsx("span",{className:"ml-2","aria-hidden":"true",children:O.iconEnd})]})},D))}):f.jsx(Ne.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden flex justify-center items-center py-2",children:f.jsx("p",{"data-testid":"empty-options",children:"Sin opciones"})})})]}),l.length>0&&i&&f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${a}`,children:l})]})},As=({placeholder:e="",label:n="",htmlFor:t,name:r,handleChange:o,onClick:i=()=>{},value:l,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:b,classNameLabel:p="",classNameContainer:v="",className:g="",onKeyDown:x,options:E,idSelect:w,isMarginLeft:C=!0,classNameSelect:F="w-20",type:I="text"})=>{const{width:P}=Ot(),z=Me({"ring-red-300 focus:ring-red-300 text-red-900":c,"focus:ring-indigo-600 text-gray-500":!c});return f.jsxs(f.Fragment,{children:[f.jsx("style",{children:`
40
40
  input[type="number"]::-webkit-inner-spin-button,
41
41
  input[type="number"]::-webkit-outer-spin-button {
42
42
  -webkit-appearance: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cemtrik-dependencies",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",