@aleleba/ro-ut-ui 4.3.0 → 4.4.0
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.css +9 -3
- package/dist/index.js +1 -1
- package/dist/types/components/Avatars/Avatar/index.d.ts +34 -0
- package/dist/types/components/Avatars/index.d.ts +15 -0
- package/dist/types/components/Badges/Badge/index.d.ts +26 -0
- package/dist/types/components/Badges/index.d.ts +10 -0
- package/dist/types/components/IconButtons/IconButton/index.d.ts +46 -0
- package/dist/types/components/IconButtons/index.d.ts +30 -0
- package/dist/types/components/Icons/index.d.ts +2 -1
- package/dist/types/components/Links/Link/index.d.ts +37 -0
- package/dist/types/components/Links/index.d.ts +8 -0
- package/dist/types/components/Ratings/Rating/index.d.ts +45 -0
- package/dist/types/components/Ratings/index.d.ts +15 -0
- package/dist/types/components/Tags/Tag/index.d.ts +26 -0
- package/dist/types/components/Tags/index.d.ts +11 -0
- package/dist/types/components/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["ui-library"]=a():e["ui-library"]=a()}(this,()=>(()=>{"use strict";var e={d:(a,n)=>{for(var r in n)e.o(n,r)&&!e.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:n[r]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};e.r(a),e.d(a,{BorderCard:()=>Ve,Button:()=>Pe,ButtonThemes:()=>Se,ButtonTypes:()=>Ee,Card:()=>Ie,CardThemes:()=>Me,Checkbox:()=>Ya,CheckboxGroup:()=>nn,CheckboxGroupDirections:()=>$a,CheckboxThemes:()=>an,DatePicker:()=>Wn,DatePickerThemes:()=>Xn,Icon:()=>G,IconNames:()=>B,Input:()=>Je,InputThemes:()=>Ze,LeftNavbar:()=>ka,LeftNavbarThemes:()=>La,NavItem:()=>Da,NavList:()=>Oa,NavMenuContext:()=>la,Navbar:()=>ma,NavbarContext:()=>ua,NavbarThemes:()=>Pa,Radio:()=>Ma,RadioGroup:()=>Ua,RadioGroupDirections:()=>Fa,RadioThemes:()=>Ka,Select:()=>_n,SelectThemes:()=>Qn,Textarea:()=>bn,TextareaThemes:()=>yn,Toggle:()=>dn,ToggleThemes:()=>un,TopNavbar:()=>ha,TopNavbarThemes:()=>qa,getBorderCard:()=>Ke,getButtonThemeClass:()=>qe,getCardThemeClass:()=>Fe,getCheckboxThemeClass:()=>rn,getDatePickerThemeClass:()=>$n,getIconClass:()=>he,getInputThemeClass:()=>Ye,getLeftNavbarThemeClass:()=>Ga,getNavbarThemeClass:()=>Ba,getRadioThemeClass:()=>Za,getSelectThemeClass:()=>An,getTextareaThemeClass:()=>xn,getToggleThemeClass:()=>ln,getTopNavbarThemeClass:()=>Ra,useNavMenu:()=>va,useNavbar:()=>da});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",o="uRh5AMB7fHGMjymlSkIe",c="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",u="OOr9vC74FozQAPLK3TBF",d="jtiHB4J2Gd75DxgbExDU",l="htFKNG_lNNMADoynscvf",v="b41eXc_YG54TSjVcPdr3",m="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",p="neFnz7mqfjyob2IpBRAB",f="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",x="s4WqNjDDGgeMddVjGC39",g="bedJB1k7F24TZZ14mvGS",N="PgNn5YrHhpkkzKgbQGHw",j="g7BsZUvE5UmvGR7yux1n",k="oCPQLbmQjjlb4QfF6N3z",C="w1jjKytmOVrGE_OOWN24",w="wxOwGgByggkSrx_yH1Mm",T="jyv2Pn76yjv7yHzme6Vi",O="l_u5YpNTZO_QLR2ODTsM",S="D3lpa3rGkDORSZEMO4Pu",E="ptOAordfG6nUqt1RGPGD",P="tcijTEF2DcjdTgUYgwm_",q="Sb74MmtzlQ4r_auGli10",L="iRPlBCtkk8OZ1fVrK6Ac",D=require("react/jsx-runtime");var B,R=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},G=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,o=R(i?he({icon:i}):"",t);return(0,D.jsx)("span",{id:n,className:o})},H=n,Q=j,z=N,_=m,A=l,M=d,V=i,I=r,F=T,K=c,U=p,Z=v,J=x,Y=b,X=q,W=w,$=g,ee=C,ae=h,ne=S,re=O,te=E,ie=P,oe=o,ce=k,se=y,ue=t,de=L,le=f,ve=u,me=s;!function(e){e.perfil="perfil",e.password="password",e.google="google",e.facebook="facebook",e.dashboard="dashboard",e.calendario="calendario",e.administracionDeUsuario="administracionDeUsuario",e.rutas="rutas",e.chat="chat",e.informes="informes",e.flecha="flecha",e.nuevaRuta="nuevaRuta",e.notificacion="notificacion",e.usuarioDentroApp="usuarioDentroApp",e.rutaNueva="rutaNueva",e.nuevaRuta2="nuevaRuta2",e.rutaCompletada="rutaCompletada",e.hoy="hoy",e.rutasProgramadas="rutasProgramadas",e.rutasEliminadas="rutasEliminadas",e.rutasReprogramadas="rutasReprogramadas",e.search="search",e.camion="camion",e.pickup="pickup",e.motocicleta="motocicleta",e.barco="barco",e.varios="varios",e.menu="menu",e.chevronDown="chevronDown",e.check="check"}(B||(B={}));var he=function(e){switch(e.icon){case"perfil":return"".concat(H," ").concat(Q);case"password":return"".concat(H," ").concat(z);case"google":return"".concat(H," ").concat(_);case"facebook":return"".concat(H," ").concat(A);case"dashboard":return"".concat(H," ").concat(M);case"calendario":return"".concat(H," ").concat(V);case"administracionDeUsuario":return"".concat(H," ").concat(I);case"rutas":return"".concat(H," ").concat(F);case"chat":return"".concat(H," ").concat(K);case"informes":return"".concat(H," ").concat(U);case"flecha":return"".concat(H," ").concat(Z);case"nuevaRuta":return"".concat(H," ").concat(J);case"notificacion":return"".concat(H," ").concat(Y);case"usuarioDentroApp":return"".concat(H," ").concat(X);case"rutaNueva":return"".concat(H," ").concat(W);case"nuevaRuta2":return"".concat(H," ").concat($);case"rutaCompletada":return"".concat(H," ").concat(ee);case"hoy":return"".concat(H," ").concat(ae);case"rutasProgramadas":return"".concat(H," ").concat(ne);case"rutasEliminadas":return"".concat(H," ").concat(re);case"rutasReprogramadas":return"".concat(H," ").concat(te);case"search":return"".concat(H," ").concat(ie);case"camion":return"".concat(H," ").concat(oe);case"pickup":return"".concat(H," ").concat(ce);case"motocicleta":return"".concat(H," ").concat(se);case"barco":return"".concat(H," ").concat(ue);case"varios":return"".concat(H," ").concat(de);case"menu":return"".concat(H," ").concat(le);case"chevronDown":return"".concat(H," ").concat(ve);case"check":return"".concat(H," ").concat(me);default:return""}};const pe="UxC2t97LIIISx7e71_3R",fe="JJF9nOwFrn4f4Agjebcs",ye="cwK5avZb5ShuVPiPWB8Q",be="CFpiqnX4jq_EltxkwEvy",xe="yjB0ArEAyeYU6_u7zKsQ",ge="Djr8Yh2IQcUcgjSZ_WQ5",Ne="uyBaWoSnHEIxM4x7jgQw",je="qWYltwKufw7ZliVlCT9g",ke="oQRCOHaGpuh207HQzerc",Ce="HtF5k4mwsNW1v9YG7qd2",we="Pg7VF5nFKczFtA3r5E88",Te="wXyKJ8kY_42bOcyetwnC",Oe="dLCzLEcc0jSLJgsTyHoM";var Se,Ee,Pe=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Se.primary:c,u=e.hardBorder,d=void 0===u||u,l=e.type,v=void 0===l?Ee.button:l,m=e.onClick,h=R(pe,qe({theme:s}),d?fe:ye,o);return(0,D.jsx)("button",{id:n,className:h,type:v,onClick:m,children:t})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(Se||(Se={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Ee||(Ee={}));var qe=function(e){switch(e.theme){case Se.primary:return be;case Se.secondary:return xe;case Se.tertiary:return ge;case Se.quaternary:return Ne;case Se.quinary:return je;case Se.primaryOutline:return ke;case Se.secondaryOutline:return Ce;case Se.tertiaryOutline:return we;case Se.quaternaryOutline:return Te;case Se.quinaryOutline:return Oe;default:return""}};const Le="pAD4BifhMTLUZvCJxyOx",De="a2VHzo7AbMVmPMGC3mSx",Be="W0VuH9q0UPwsyVsTQQJe",Re="SIPeMNZqcOWCkESf4cPg",Ge="hPcmh2SHmHeXnUxGP93s",He="DcZJoe6Kl4lnV3k4i7nV",Qe="LH35do5a6HPSjPusBT_z",ze="juXoWoLQrRgOgzapK6H9",_e="tPCdlPqN6fB69GmnQ181",Ae="nsb5sNsicCrkfBe9SIFs";var Me,Ve,Ie=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,o=void 0===i?Me.primary:i,c=e.border,s=void 0===c?Ve.soft:c,u=e.title,d=R(Le,Fe({theme:o}),Ke({border:s}),t);return(0,D.jsxs)("div",{className:d,children:[u&&(0,D.jsx)("div",{className:De,children:(0,D.jsx)("h5",{className:Re,children:u})}),(0,D.jsx)("div",{className:Be,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Me||(Me={})),function(e){e.soft="soft",e.hard="hard"}(Ve||(Ve={}));var Fe=function(e){switch(e.theme){case"primary":return Qe;case"secondary":return ze;case"tertiary":return _e;case"quaternary":return Ae;default:return""}},Ke=function(e){switch(e.border){case"soft":return Ge;case"hard":return He;default:return""}};const Ue={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var Ze,Je=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,o=void 0===i?"text":i,c=e.theme,s=void 0===c?Ze.primary:c,u=e.placeholder,d=void 0===u?"":u,l=e.hardBorder,v=void 0!==l&&l,m=e.icon,h=e.onChange,p=void 0===h?function(){}:h,f=R(Ue["input-common"],Ye({theme:s}),v?Ue["input-border-hard"]:"",t,m?Ue["input-with-icon"]:"");return(0,D.jsxs)("div",{className:Ue.relative,children:[(0,D.jsx)("input",{id:n,className:f,placeholder:d,type:o,onChange:p}),m&&(0,D.jsx)(G,{className:Ue["icon-input"],icon:m})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(Ze||(Ze={}));var Ye=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return Ue["input-secondary"];case"tertiary":return Ue["input-tertiary"]}};const Xe="FnQHiSW9NTFa3WlXGoCc",We="NatMJzDzTApsQaVDAagx",$e="qY4Y2bWaIDQFsSw6KaT5",ea="zguwwN6hze6uapnqp5Ni",aa="ko1cAltyF24Od59He2SS",na="kpCx3tGL8Ty2NT_5o1mJ",ra="F6hI7ZfLokc9h5jkh6IL",ta="qlSGENr4s2AUMMLzL8AR",ia="RY7dvVQ6fbBnjtgy0igh",oa="OpF1ocsD_5dn_993DhqT",ca="FSuEOctgnc2BHuB5nXoQ",sa=require("react");var ua=(0,sa.createContext)(void 0),da=function(){var e;return null!==(e=(0,sa.useContext)(ua))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},la=(0,sa.createContext)("accordion"),va=function(){return(0,sa.useContext)(la)},ma=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?Pa.primary:c,u=e.defaultOpen,d=void 0!==u&&u,l=e.defaultExpanded,v=void 0!==l&&l,m=(0,sa.useState)(d),h=m[0],p=m[1],f=(0,sa.useState)(v),y=f[0],b=f[1],x=(0,sa.useState)(!1),g=x[0],N=x[1];(0,sa.useEffect)(function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(max-width: 767px)"),a=function(){return N(e.matches)};return a(),e.addEventListener?(e.addEventListener("change",a),function(){return e.removeEventListener("change",a)}):(e.addListener(a),function(){return e.removeListener(a)})}},[]),(0,sa.useEffect)(function(){if("undefined"!=typeof document){var e=document.documentElement;return e.style.setProperty("--ro-ut-sidebar-width",g?"0px":y?"24rem":"6rem"),e.style.setProperty("--ro-ut-topbar-height",g?"0px":"101px"),function(){e.style.removeProperty("--ro-ut-sidebar-width"),e.style.removeProperty("--ro-ut-topbar-height")}}},[g,y]);var j=(0,sa.useCallback)(function(){return p(function(e){return!e})},[]),k=(0,sa.useCallback)(function(e){return p(e)},[]),C=(0,sa.useCallback)(function(){return b(function(e){return!e})},[]),w={isOpen:h,toggle:j,setOpen:k,isExpanded:y,toggleExpanded:C,isMobile:g},T=R(Xe,Ba({theme:s}),o);return(0,D.jsx)(ua.Provider,{value:w,children:(0,D.jsx)("nav",{id:n,className:T,children:t})})},ha=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?qa.primary:c,u=e.brand,d=e.actions,l=e.menuIcon,v=void 0===l?B.menu:l,m=e.hideMenuToggle,h=void 0!==m&&m,p=da(),f=p.isOpen,y=p.toggle,b=p.isMobile?"accordion":"dropdown",x=R($e,Ra({theme:s}),o),g=R(ra,f?ta:ia);return(0,D.jsxs)("header",{id:n,className:x,children:[(0,D.jsxs)("div",{className:ea,children:[u&&(0,D.jsx)("div",{className:na,children:u}),!h&&(0,D.jsx)("button",{type:"button","aria-label":"Toggle menu",className:aa,onClick:y,children:(0,D.jsx)(G,{icon:v})})]}),(0,D.jsx)(la.Provider,{value:b,children:(0,D.jsx)("div",{className:g,children:t})}),d&&(0,D.jsx)("div",{className:oa,children:d})]})};const pa="lB8REa7QbS00_HY39qlv",fa="sSfHpXGaWQJlKsMHHaNz",ya="KUAQgA5jKT0cpt4YT9My",ba="VHv_24fnWV6U7utpmyOv",xa="xz7mio21qHuZpdmkS_Ql",ga="mecTZPfsBQEB8_dRnBQz",Na="B9dyOyj_V1ejlMhgfn9g",ja="ZddvyvLdn43wm9cl0jwZ";var ka=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,o=void 0===i?"":i,c=e.theme,s=void 0===c?La.primary:c,u=e.pinToggleIcon,d=void 0===u?B.flecha:u,l=e.hidePinToggle,v=void 0!==l&&l,m=da(),h=m.isOpen,p=m.isExpanded,f=m.toggleExpanded,y=R(pa,h?fa:ya,p?xa:ba,Ga({theme:s}),o);return(0,D.jsxs)("aside",{id:n,className:y,children:[(0,D.jsx)(la.Provider,{value:"accordion",children:t}),!v&&(0,D.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:ga,onClick:f,children:(0,D.jsx)(G,{icon:d,className:R(Na,p?ja:"")})})]})};const Ca="huVncZ_cd_BiHgGKvG2R",wa="OhBh129QqaKYIl1RoRRQ",Ta="mpssuMH2mFjNpZnuMaOp";var Oa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,o=e.level,c=void 0===o?1:o,s=va(),u=R(Ca,"dropdown"===s&&1===c?Ta:wa,i);return(0,D.jsx)("ul",{id:n,className:u,children:sa.Children.map(r,function(e){return(0,sa.isValidElement)(e)?(0,sa.cloneElement)(e,{level:c}):e})})};const Sa=require("react-router-dom"),Ea={"nav-item-wrapper":"DYcbVGvq2gOTbslQ9dtd","nav-item":"UuLDbzdBjeWuOYQrYFWC","nav-item-inline":"poOzQJfQ4Zwl1iu2RK31","nav-item-l1":"k4ofdETJ7Y_29z1Izk5N","nav-item-l2":"_dxePEO0GOkz4uV9ZCih","nav-item-l3":"dhQwjaox_1b3Ne2rtLUV","nav-item-collapsed":"bMDMJ1WsQxyWIruZxhk4","nav-item-active":"Ox3zdaZO80qbQ_tOnwAf","nav-item-icon":"FGmw5cM6XpFJK0IFEZA_","nav-item-icon-active":"oxRil4wKmzylOy_4besK","nav-item-label":"g6mZSnz_vDZHIPu7Lcn0","nav-item-label-collapsed":"EdGVseAHauIZaFqII1Oc","nav-item-chevron":"oUSWwp2gN16l9XDwC401","is-open":"f2sCWSYLCu5BcSoAQUfJ","nav-item-chevron-collapsed":"hq0Y1ntvELh0Hqs1kXut","nav-dropdown-panel":"YFeh0FaB0H6yto5JgjF6","nav-dropdown-below":"zrQ1EkV9gwCROBuciEk9","nav-dropdown-side":"zs65yT6zCjjFDszT1VGQ"};var Pa,qa,La,Da=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,o=e.children,c=e.className,s=void 0===c?"":c,u=e.active,d=void 0!==u&&u,l=e.to,v=e.href,m=e.onClick,h=e.defaultExpanded,p=void 0!==h&&h,f=e.level,y=void 0===f?1:f,b=va(),x=da().isExpanded,g=(0,sa.useState)(p),N=g[0],j=g[1],k=!!o&&y<3,C=y+1,w="accordion"===b&&!x,T=d&&y>1,O=d&&1===y,S=R(Ea["nav-item-label"],w?Ea["nav-item-label-collapsed"]:""),E=R(Ea["nav-item"],"accordion"===b?Ea["nav-item-l".concat(y)]:Ea["nav-item-inline"],w?Ea["nav-item-collapsed"]:"",T?Ea["nav-item-active"]:"",s),P=function(e){k&&j(function(e){return!e}),m&&m(e)},q=(0,D.jsxs)(D.Fragment,{children:[i&&(0,D.jsx)(G,{icon:i,className:R(Ea["nav-item-icon"],O?Ea["nav-item-icon-active"]:"")}),t&&(0,D.jsx)("span",{className:S,children:t}),k&&(0,D.jsx)(G,{icon:B.flecha,className:R(Ea["nav-item-chevron"],w?Ea["nav-item-chevron-collapsed"]:"",N?Ea["is-open"]:"")})]}),L=l?(0,D.jsx)(Sa.Link,{to:l,id:n,className:E,onClick:P,children:q}):v?(0,D.jsx)("a",{id:n,href:v,className:E,onClick:P,children:q}):(0,D.jsx)("button",{id:n,type:"button",className:E,onClick:P,children:q}),H=(0,sa.isValidElement)(o)?(0,sa.cloneElement)(o,{level:C}):o;return(0,D.jsxs)("li",{className:Ea["nav-item-wrapper"],onMouseEnter:"dropdown"===b&&k?function(){return j(!0)}:void 0,onMouseLeave:"dropdown"===b&&k?function(){return j(!1)}:void 0,children:[L,k&&N&&("accordion"===b?H:(0,D.jsx)("div",{className:R(Ea["nav-dropdown-panel"],1===y?Ea["nav-dropdown-below"]:Ea["nav-dropdown-side"]),children:H}))]})};!function(e){e.primary="primary"}(Pa||(Pa={})),function(e){e.primary="primary",e.dark="dark"}(qa||(qa={})),function(e){e.primary="primary"}(La||(La={}));var Ba=function(e){return e.theme===Pa.primary?We:""},Ra=function(e){switch(e.theme){case qa.primary:return"";case qa.dark:return ca;default:return""}},Ga=function(e){e.theme;return La.primary,""};const Ha="GXbNNfaRE3TyRdoGrwb7",Qa="JJlpwqbl4lBtQC3RnNnw",za="YHIztbHCIlsXLL9Yn8ww",_a="KDNJqjBclhbRaDk4mBr6",Aa="EhYmjqYe_GtBncOd1xD9";var Ma=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ka.primary:t,o=e.name,c=e.value,s=e.label,u=e.checked,d=e.defaultChecked,l=e.disabled,v=void 0!==l&&l,m=e.onChange,h=void 0===m?function(){}:m,p=R(Ha,Za({theme:i}),v?Aa:"",r);return(0,D.jsxs)("label",{className:p,children:[(0,D.jsx)("input",{id:a,className:Qa,type:"radio",name:o,value:c,checked:u,defaultChecked:d,disabled:v,onChange:h}),(0,D.jsx)("span",{className:za,"aria-hidden":"true"}),s&&(0,D.jsx)("span",{className:_a,children:s})]})};const Va="QBLrCrEV0gM6Kw5pF1St",Ia="RU1XYIJgTOpk_L6PLAhf";var Fa;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Fa||(Fa={}));var Ka,Ua=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Ka.primary:t,o=e.name,c=e.options,s=void 0===c?[]:c,u=e.value,d=e.defaultValue,l=void 0===d?"":d,v=e.direction,m=void 0===v?Fa.vertical:v,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,sa.useState)(l),x=b[0],g=b[1],N=void 0!==u?u:x,j=function(e){void 0===u&&g(e.target.value),y(e)},k=R(Va,m===Fa.horizontal?Ia:"",r);return(0,D.jsx)("div",{id:a,role:"radiogroup",className:k,children:s.map(function(e){return(0,D.jsx)(Ma,{theme:i,name:o,value:e.value,label:e.label,checked:N===e.value,disabled:p||e.disabled,onChange:j},e.value)})})};!function(e){e.primary="primary"}(Ka||(Ka={}));var Za=function(e){e.theme;return""};const Ja={"checkbox-label":"zjjHhR8Wrs1uEuvkvAET","checkbox-input":"jgDLO2lj8lIL4n2aUvd4","checkbox-box":"tBBM2Tox6G2Lc1HgNzpm","checkbox-check":"pwzoSwjqGtatjDWB8YwK","checkbox-dash":"tV_vzpZfKvHlPlIiWYQj","checkbox-disabled":"ntiFyXsULeH5Q21zjZaP"};var Ya=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?an.primary:t,o=e.name,c=e.value,s=e.label,u=e.checked,d=e.defaultChecked,l=e.indeterminate,v=void 0!==l&&l,m=e.disabled,h=void 0!==m&&m,p=e.onChange,f=void 0===p?function(){}:p,y=(0,sa.useRef)(null);(0,sa.useEffect)(function(){y.current&&(y.current.indeterminate=v)},[v]);var b=R(Ja["checkbox-label"],rn({theme:i}),h?Ja["checkbox-disabled"]:"",r);return(0,D.jsxs)("label",{className:b,children:[(0,D.jsx)("input",{ref:y,id:a,className:Ja["checkbox-input"],type:"checkbox",name:o,value:c,checked:u,defaultChecked:d,disabled:h,onChange:f}),(0,D.jsxs)("span",{className:Ja["checkbox-box"],"aria-hidden":"true",children:[(0,D.jsx)(G,{className:Ja["checkbox-check"],icon:B.check}),(0,D.jsx)("span",{className:Ja["checkbox-dash"]})]}),s&&(0,D.jsx)("span",{className:Ja["checkbox-text"],children:s})]})};const Xa="moROzwaINmGAqyCdeqUb",Wa="uGMTsBF__2RgYnA6S_ae";var $a,en=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))};!function(e){e.vertical="vertical",e.horizontal="horizontal"}($a||($a={}));var an,nn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?an.primary:t,o=e.name,c=e.options,s=void 0===c?[]:c,u=e.values,d=e.defaultValues,l=void 0===d?[]:d,v=e.direction,m=void 0===v?$a.vertical:v,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,sa.useState)(l),x=b[0],g=b[1],N=void 0!==u?u:x,j=R(Xa,m===$a.horizontal?Wa:"",r);return(0,D.jsx)("div",{id:a,role:"group",className:j,children:s.map(function(e){return(0,D.jsx)(Ya,{theme:i,name:o,value:e.value,label:e.label,checked:N.includes(e.value),disabled:p||e.disabled,onChange:function(){return a=e.value,n=N.includes(a)?N.filter(function(e){return e!==a}):en(en([],N,!0),[a],!1),void 0===u&&g(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(an||(an={}));var rn=function(e){e.theme;return""};const tn="zegNFU1IXq2D0NAslGyj",on="rGbn8Dr7CvRzb5aBaIm6",cn="oHn7xu1kuT37RPqDSpc0",sn="VofOiaYafh2S6lqJD62h";var un,dn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?un.primary:t,o=e.checked,c=e.defaultChecked,s=void 0!==c&&c,u=e.label,d=e.children,l=void 0===d?"Activar":d,v=e.disabled,m=void 0!==v&&v,h=e.onChange,p=void 0===h?function(){}:h,f=(0,sa.useState)(s),y=f[0],b=f[1],x=void 0!==o?o:y,g=R(cn,ln({theme:i}),x?sn:"",r);return(0,D.jsxs)("span",{className:tn,children:[u&&(0,D.jsx)("span",{className:on,children:u}),(0,D.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":x,disabled:m,className:g,onClick:function(){void 0===o&&b(!x),p(!x)},children:l})]})};!function(e){e.primary="primary"}(un||(un={}));var ln=function(e){e.theme;return""};const vn="kkj7ttLeFO1S4d8mM_Pn",mn="a_HuZeJ_oVLoqS7eukOK",hn="OluyRygiDnbSKaGwqvJW",pn="h4zm0kOhR9ZxkSdTB7GN",fn="pfLJgfyLJlYmzTol8bA5";var yn,bn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?yn.primary:t,o=e.value,c=e.defaultValue,s=e.placeholder,u=void 0===s?"":s,d=e.rows,l=void 0===d?4:d,v=e.autoResize,m=void 0!==v&&v,h=e.hardBorder,p=void 0!==h&&h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,x=void 0===b?function(){}:b,g=R(vn,xn({theme:i}),p?pn:"",m?fn:"",r);return(0,D.jsx)("textarea",{id:a,className:g,value:o,defaultValue:c,placeholder:u,rows:l,disabled:y,onChange:function(e){m&&(e.currentTarget.style.height="auto",e.currentTarget.style.height="".concat(e.currentTarget.scrollHeight,"px")),x(e)}})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(yn||(yn={}));var xn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return mn;case"tertiary":return hn}};const gn="WihApGsGcC1E22NRG0P5",Nn="fUrHs64HZzxc8wuJx0Sb",jn="LXJF8zINUAOvCEJtkK8Q",kn="Wb8G9wRU_hGXsgxvtTI1",Cn="EkMWU0uN6UWfqy9bLsBt",wn="jFyLmbuHrBcChK1PCUAW",Tn="toX_UmDpZNE2kruEXl8S",On="H1zoebUk7LJVtn0H0Zu_",Sn="i_2UnWCN655j4bednibQ",En="SITJboRY_HWw8TaUHpkS",Pn="c4nJQCuqPERLXusqZmTf",qn="rVjFTHZ3d6gzTyGq1wOq",Ln="rLYHgyXqKJfVOrHCTUHr",Dn="_aOV8eUPNj11n_VY0NAB",Bn="gFuL19WEJXow8Pop913u",Rn="gdPP8CuH6BxL79m2ly8i",Gn="tm2CatA44Mbqd0CMaXp7",Hn="HfTjK7bgJmXNcDqfhL0J";var Qn,zn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))},_n=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Qn.primary:t,o=e.options,c=void 0===o?[]:o,s=e.multiple,u=void 0!==s&&s,d=e.value,l=e.defaultValue,v=void 0===l?"":l,m=e.values,h=e.defaultValues,p=void 0===h?[]:h,f=e.placeholder,y=void 0===f?"":f,b=e.searchable,x=void 0!==b&&b,g=e.icon,N=e.emptyMessage,j=void 0===N?"Sin resultados":N,k=e.hardBorder,C=void 0!==k&&k,w=e.disabled,T=void 0!==w&&w,O=e.onChange,S=void 0===O?function(){}:O,E=(0,sa.useState)(!1),P=E[0],q=E[1],L=(0,sa.useState)(""),H=L[0],Q=L[1],z=(0,sa.useState)(0),_=z[0],A=z[1],M=(0,sa.useState)(v),V=M[0],I=M[1],F=(0,sa.useState)(p),K=F[0],U=F[1],Z=(0,sa.useRef)(null),J=(0,sa.useRef)(null),Y=(0,sa.useId)(),X=void 0!==d?d:V,W=void 0!==m?m:K,$=(u?c.filter(function(e){return W.includes(e.value)}):c.filter(function(e){return e.value===X})).map(function(e){return e.label}).join(", "),ee=x&&H?c.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):c,ae=function(e){return u?W.includes(e.value):e.value===X};(0,sa.useEffect)(function(){if(P){var e=function(e){Z.current&&!Z.current.contains(e.target)&&(q(!1),Q(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[P]),(0,sa.useEffect)(function(){var e;P&&x&&(null===(e=J.current)||void 0===e||e.focus())},[P,x]);var ne=function(){T||(q(!0),A(0))},re=function(){q(!1),Q("")},te=function(e){if(!e.disabled)if(u){var a=W.includes(e.value)?W.filter(function(a){return a!==e.value}):zn(zn([],W,!0),[e.value],!1);void 0===m&&U(a),S(a)}else void 0===d&&I(e.value),S(e.value),re()},ie=R(Nn,An({theme:i}),C?Rn:"",T?Gn:"");return(0,D.jsxs)("div",{id:a,ref:Z,className:R(gn,r),children:[(0,D.jsxs)("div",{role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-controls":Y,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return P?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),P?A(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),A(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),P?ee[_]&&te(ee[_]):ne();break;case"Escape":re();break;case" ":P||x||(e.preventDefault(),ne())}},children:[g&&(0,D.jsx)(G,{className:wn,icon:g}),x&&P?(0,D.jsx)("input",{ref:J,className:Cn,value:H,placeholder:$||y,onChange:function(e){Q(e.target.value),A(0)},onClick:function(e){return e.stopPropagation()}}):(0,D.jsx)("span",{className:R(jn,$?"":kn),children:$||y}),(0,D.jsx)(G,{className:Tn,icon:B.chevronDown})]}),P&&(0,D.jsxs)("ul",{id:Y,role:"listbox","aria-multiselectable":u,className:On,children:[0===ee.length&&(0,D.jsx)("li",{className:Bn,children:j}),ee.map(function(e,a){return(0,D.jsxs)("li",{role:"option","aria-selected":ae(e),className:R(Sn,a===_?Pn:"",ae(e)?qn:"",e.disabled?Dn:""),onMouseEnter:function(){return A(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,D.jsx)("span",{className:En,children:e.label}),ae(e)&&(0,D.jsx)(G,{className:Ln,icon:B.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Qn||(Qn={}));var An=function(e){switch(e.theme){case"primary":default:return"";case"dark":return Hn}};const Mn="HVj3aNmDW6tJTr0uageu",Vn="hW1Ev2Vff5FMrAuQdu5Q",In="ZI5_XWdK17MXXnYMh5O_",Fn="PhpcwVhP56ggFwiGvuAl",Kn="ndBtMO52dtAMHPla372a",Un="YxneKx82bAQhUpOy8Adj",Zn="rEwN2ippBOfwtYrsL8xL",Jn="QGvk3ZseIqrsJEo4c5E8",Yn="cS9mLM8C2odtqKRL50qU";var Xn,Wn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Xn.primary:t,o=e.value,c=e.defaultValue,s=void 0===c?"":c,u=e.min,d=e.max,l=e.placeholder,v=void 0===l?"":l,m=e.icon,h=void 0===m?B.calendario:m,p=e.hardBorder,f=void 0!==p&&p,y=e.disabled,b=void 0!==y&&y,x=e.onChange,g=void 0===x?function(){}:x,N=(0,sa.useRef)(null),j=(0,sa.useState)(s),k=j[0],C=j[1],w=void 0!==o?o:k,T=R(Mn,$n({theme:i}),f?Jn:"",b?Yn:"",r);return(0,D.jsxs)("div",{className:T,onClick:function(){var e,a,n;if(!b){null===(e=N.current)||void 0===e||e.focus();try{null===(n=null===(a=N.current)||void 0===a?void 0:a.showPicker)||void 0===n||n.call(a)}catch(e){}}},children:[(0,D.jsx)(G,{className:Vn,icon:h}),(0,D.jsxs)("span",{className:In,children:[(0,D.jsx)("input",{ref:N,id:a,className:R(Fn,!w&&v?Kn:""),type:"date",value:w,min:u,max:d,disabled:b,onChange:function(e){void 0===o&&C(e.target.value),g(e)}}),!w&&v&&(0,D.jsx)("span",{className:Un,children:v})]}),(0,D.jsx)(G,{className:Zn,icon:B.chevronDown})]})};!function(e){e.primary="primary"}(Xn||(Xn={}));var $n=function(e){e.theme;return""};return a})());
|
|
1
|
+
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["ui-library"]=a():e["ui-library"]=a()}(this,()=>(()=>{"use strict";var e={d:(a,n)=>{for(var r in n)e.o(n,r)&&!e.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:n[r]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};e.r(a),e.d(a,{Avatar:()=>dr,AvatarSizes:()=>lr,AvatarThemes:()=>ur,Badge:()=>jr,BadgeVariants:()=>Nr,BorderCard:()=>He,Button:()=>Le,ButtonThemes:()=>qe,ButtonTypes:()=>Be,Card:()=>Fe,CardThemes:()=>Ue,Checkbox:()=>Xa,CheckboxGroup:()=>tn,CheckboxGroupDirections:()=>an,CheckboxThemes:()=>rn,DatePicker:()=>er,DatePickerThemes:()=>$n,Icon:()=>D,IconButton:()=>Wr,IconButtonShapes:()=>Yr,IconButtonSizes:()=>Zr,IconButtonThemes:()=>Jr,IconButtonTypes:()=>Kr,IconNames:()=>I,Input:()=>We,InputThemes:()=>Ke,LeftNavbar:()=>wa,LeftNavbarThemes:()=>Aa,Link:()=>it,LinkThemes:()=>tt,NavItem:()=>Ia,NavList:()=>za,NavMenuContext:()=>va,Navbar:()=>pa,NavbarContext:()=>da,NavbarThemes:()=>La,Radio:()=>Ua,RadioGroup:()=>Ya,RadioGroupDirections:()=>Ja,RadioThemes:()=>Za,Rating:()=>xt,RatingSizes:()=>gt,RatingThemes:()=>bt,Select:()=>_n,SelectThemes:()=>Gn,Tag:()=>Ar,TagThemes:()=>Er,Textarea:()=>xn,TextareaThemes:()=>gn,Toggle:()=>mn,ToggleThemes:()=>dn,TopNavbar:()=>fa,TopNavbarThemes:()=>Ea,getAvatarSizeClass:()=>vr,getAvatarThemeClass:()=>mr,getBadgeVariantClass:()=>kr,getBorderCard:()=>Ze,getButtonThemeClass:()=>Ee,getCardThemeClass:()=>Je,getCheckboxThemeClass:()=>cn,getDatePickerThemeClass:()=>ar,getIconButtonShapeClass:()=>et,getIconButtonSizeClass:()=>$r,getIconButtonThemeClass:()=>Xr,getIconClass:()=>fe,getInputThemeClass:()=>Xe,getLeftNavbarThemeClass:()=>Ma,getLinkThemeClass:()=>ct,getNavbarThemeClass:()=>Pa,getRadioThemeClass:()=>Ka,getRatingSizeClass:()=>jt,getRatingThemeClass:()=>Nt,getSelectThemeClass:()=>Qn,getTagThemeClass:()=>Ir,getTextareaThemeClass:()=>Nn,getToggleThemeClass:()=>vn,getTopNavbarThemeClass:()=>Da,useNavMenu:()=>ha,useNavbar:()=>ma});const n="namBd2yDO5uRnuiJiF4I",r="IezAhh3IOxZrbRaPnSuX",t="peAKuLVAiIXSFB_8weUX",i="fX0XkPg_VOwlCS_puohG",c="uRh5AMB7fHGMjymlSkIe",o="A61ABO8IXKvkyJ2iRq6l",s="nYNZP8pJf0SUq0ZPndyE",u="OOr9vC74FozQAPLK3TBF",l="jtiHB4J2Gd75DxgbExDU",d="htFKNG_lNNMADoynscvf",m="b41eXc_YG54TSjVcPdr3",v="iDCPPzPmlHXmY6DeRlrz",h="qSKheV1seun_M2zooNYG",p="neFnz7mqfjyob2IpBRAB",f="fMuDGJLmZu10m_5wuQwH",y="W1_8p2A4KoAru1W3fQQt",b="tm0XixvT9lg82S8vBQ7H",g="s4WqNjDDGgeMddVjGC39",x="bedJB1k7F24TZZ14mvGS",N="PgNn5YrHhpkkzKgbQGHw",j="g7BsZUvE5UmvGR7yux1n",k="oCPQLbmQjjlb4QfF6N3z",C="w1jjKytmOVrGE_OOWN24",w="wxOwGgByggkSrx_yH1Mm",T="jyv2Pn76yjv7yHzme6Vi",S="l_u5YpNTZO_QLR2ODTsM",O="D3lpa3rGkDORSZEMO4Pu",z="ptOAordfG6nUqt1RGPGD",q="tcijTEF2DcjdTgUYgwm_",B="odUpHd2U2lDHRINyeow1",L="Sb74MmtzlQ4r_auGli10",E="iRPlBCtkk8OZ1fVrK6Ac",A=require("react/jsx-runtime");var I,P=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return e.filter(function(e){return e}).join(" ")},D=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=P(i?fe({icon:i}):"",t);return(0,A.jsx)("span",{id:n,className:c})},M=n,R=j,G=N,V=v,_=d,Q=l,U=i,H=r,F=T,J=o,Z=p,Y=m,K=g,W=b,X=L,$=w,ee=x,ae=C,ne=h,re=O,te=S,ie=z,ce=q,oe=c,se=k,ue=y,le=t,de=E,me=f,ve=u,he=s,pe=B;!function(e){e.perfil="perfil",e.password="password",e.google="google",e.facebook="facebook",e.dashboard="dashboard",e.calendario="calendario",e.administracionDeUsuario="administracionDeUsuario",e.rutas="rutas",e.chat="chat",e.informes="informes",e.flecha="flecha",e.nuevaRuta="nuevaRuta",e.notificacion="notificacion",e.usuarioDentroApp="usuarioDentroApp",e.rutaNueva="rutaNueva",e.nuevaRuta2="nuevaRuta2",e.rutaCompletada="rutaCompletada",e.hoy="hoy",e.rutasProgramadas="rutasProgramadas",e.rutasEliminadas="rutasEliminadas",e.rutasReprogramadas="rutasReprogramadas",e.search="search",e.camion="camion",e.pickup="pickup",e.motocicleta="motocicleta",e.barco="barco",e.varios="varios",e.menu="menu",e.chevronDown="chevronDown",e.check="check",e.star="star"}(I||(I={}));var fe=function(e){switch(e.icon){case"perfil":return"".concat(M," ").concat(R);case"password":return"".concat(M," ").concat(G);case"google":return"".concat(M," ").concat(V);case"facebook":return"".concat(M," ").concat(_);case"dashboard":return"".concat(M," ").concat(Q);case"calendario":return"".concat(M," ").concat(U);case"administracionDeUsuario":return"".concat(M," ").concat(H);case"rutas":return"".concat(M," ").concat(F);case"chat":return"".concat(M," ").concat(J);case"informes":return"".concat(M," ").concat(Z);case"flecha":return"".concat(M," ").concat(Y);case"nuevaRuta":return"".concat(M," ").concat(K);case"notificacion":return"".concat(M," ").concat(W);case"usuarioDentroApp":return"".concat(M," ").concat(X);case"rutaNueva":return"".concat(M," ").concat($);case"nuevaRuta2":return"".concat(M," ").concat(ee);case"rutaCompletada":return"".concat(M," ").concat(ae);case"hoy":return"".concat(M," ").concat(ne);case"rutasProgramadas":return"".concat(M," ").concat(re);case"rutasEliminadas":return"".concat(M," ").concat(te);case"rutasReprogramadas":return"".concat(M," ").concat(ie);case"search":return"".concat(M," ").concat(ce);case"camion":return"".concat(M," ").concat(oe);case"pickup":return"".concat(M," ").concat(se);case"motocicleta":return"".concat(M," ").concat(ue);case"barco":return"".concat(M," ").concat(le);case"varios":return"".concat(M," ").concat(de);case"menu":return"".concat(M," ").concat(me);case"chevronDown":return"".concat(M," ").concat(ve);case"check":return"".concat(M," ").concat(he);case"star":return"".concat(M," ").concat(pe);default:return""}};const ye="UxC2t97LIIISx7e71_3R",be="JJF9nOwFrn4f4Agjebcs",ge="cwK5avZb5ShuVPiPWB8Q",xe="CFpiqnX4jq_EltxkwEvy",Ne="yjB0ArEAyeYU6_u7zKsQ",je="Djr8Yh2IQcUcgjSZ_WQ5",ke="uyBaWoSnHEIxM4x7jgQw",Ce="qWYltwKufw7ZliVlCT9g",we="oQRCOHaGpuh207HQzerc",Te="HtF5k4mwsNW1v9YG7qd2",Se="Pg7VF5nFKczFtA3r5E88",Oe="wXyKJ8kY_42bOcyetwnC",ze="dLCzLEcc0jSLJgsTyHoM";var qe,Be,Le=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?qe.primary:o,u=e.hardBorder,l=void 0===u||u,d=e.type,m=void 0===d?Be.button:d,v=e.onClick,h=P(ye,Ee({theme:s}),l?be:ge,c);return(0,A.jsx)("button",{id:n,className:h,type:m,onClick:v,children:t})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary",e.primaryOutline="primaryOutline",e.secondaryOutline="secondaryOutline",e.tertiaryOutline="tertiaryOutline",e.quaternaryOutline="quaternaryOutline",e.quinaryOutline="quinaryOutline"}(qe||(qe={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Be||(Be={}));var Ee=function(e){switch(e.theme){case qe.primary:return xe;case qe.secondary:return Ne;case qe.tertiary:return je;case qe.quaternary:return ke;case qe.quinary:return Ce;case qe.primaryOutline:return we;case qe.secondaryOutline:return Te;case qe.tertiaryOutline:return Se;case qe.quaternaryOutline:return Oe;case qe.quinaryOutline:return ze;default:return""}};const Ae="pAD4BifhMTLUZvCJxyOx",Ie="a2VHzo7AbMVmPMGC3mSx",Pe="W0VuH9q0UPwsyVsTQQJe",De="SIPeMNZqcOWCkESf4cPg",Me="hPcmh2SHmHeXnUxGP93s",Re="DcZJoe6Kl4lnV3k4i7nV",Ge="LH35do5a6HPSjPusBT_z",Ve="juXoWoLQrRgOgzapK6H9",_e="tPCdlPqN6fB69GmnQ181",Qe="nsb5sNsicCrkfBe9SIFs";var Ue,He,Fe=function(e){var a=e.children,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Ue.primary:i,o=e.border,s=void 0===o?He.soft:o,u=e.title,l=P(Ae,Je({theme:c}),Ze({border:s}),t);return(0,A.jsxs)("div",{className:l,children:[u&&(0,A.jsx)("div",{className:Ie,children:(0,A.jsx)("h5",{className:De,children:u})}),(0,A.jsx)("div",{className:Pe,children:n})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary"}(Ue||(Ue={})),function(e){e.soft="soft",e.hard="hard"}(He||(He={}));var Je=function(e){switch(e.theme){case"primary":return Ge;case"secondary":return Ve;case"tertiary":return _e;case"quaternary":return Qe;default:return""}},Ze=function(e){switch(e.border){case"soft":return Me;case"hard":return Re;default:return""}};const Ye={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var Ke,We=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.type,c=void 0===i?"text":i,o=e.theme,s=void 0===o?Ke.primary:o,u=e.placeholder,l=void 0===u?"":u,d=e.hardBorder,m=void 0!==d&&d,v=e.icon,h=e.onChange,p=void 0===h?function(){}:h,f=P(Ye["input-common"],Xe({theme:s}),m?Ye["input-border-hard"]:"",t,v?Ye["input-with-icon"]:"");return(0,A.jsxs)("div",{className:Ye.relative,children:[(0,A.jsx)("input",{id:n,className:f,placeholder:l,type:c,onChange:p}),v&&(0,A.jsx)(D,{className:Ye["icon-input"],icon:v})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(Ke||(Ke={}));var Xe=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return Ye["input-secondary"];case"tertiary":return Ye["input-tertiary"]}};const $e="FnQHiSW9NTFa3WlXGoCc",ea="NatMJzDzTApsQaVDAagx",aa="qY4Y2bWaIDQFsSw6KaT5",na="zguwwN6hze6uapnqp5Ni",ra="ko1cAltyF24Od59He2SS",ta="kpCx3tGL8Ty2NT_5o1mJ",ia="F6hI7ZfLokc9h5jkh6IL",ca="qlSGENr4s2AUMMLzL8AR",oa="RY7dvVQ6fbBnjtgy0igh",sa="OpF1ocsD_5dn_993DhqT",ua="FSuEOctgnc2BHuB5nXoQ",la=require("react");var da=(0,la.createContext)(void 0),ma=function(){var e;return null!==(e=(0,la.useContext)(da))&&void 0!==e?e:{isOpen:!1,toggle:function(){},setOpen:function(){},isExpanded:!1,toggleExpanded:function(){},isMobile:!1}},va=(0,la.createContext)("accordion"),ha=function(){return(0,la.useContext)(va)},pa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?La.primary:o,u=e.defaultOpen,l=void 0!==u&&u,d=e.defaultExpanded,m=void 0!==d&&d,v=(0,la.useState)(l),h=v[0],p=v[1],f=(0,la.useState)(m),y=f[0],b=f[1],g=(0,la.useState)(!1),x=g[0],N=g[1];(0,la.useEffect)(function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(max-width: 767px)"),a=function(){return N(e.matches)};return a(),e.addEventListener?(e.addEventListener("change",a),function(){return e.removeEventListener("change",a)}):(e.addListener(a),function(){return e.removeListener(a)})}},[]),(0,la.useEffect)(function(){if("undefined"!=typeof document){var e=document.documentElement;return e.style.setProperty("--ro-ut-sidebar-width",x?"0px":y?"24rem":"6rem"),e.style.setProperty("--ro-ut-topbar-height",x?"0px":"101px"),function(){e.style.removeProperty("--ro-ut-sidebar-width"),e.style.removeProperty("--ro-ut-topbar-height")}}},[x,y]);var j=(0,la.useCallback)(function(){return p(function(e){return!e})},[]),k=(0,la.useCallback)(function(e){return p(e)},[]),C=(0,la.useCallback)(function(){return b(function(e){return!e})},[]),w={isOpen:h,toggle:j,setOpen:k,isExpanded:y,toggleExpanded:C,isMobile:x},T=P($e,Pa({theme:s}),c);return(0,A.jsx)(da.Provider,{value:w,children:(0,A.jsx)("nav",{id:n,className:T,children:t})})},fa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Ea.primary:o,u=e.brand,l=e.actions,d=e.menuIcon,m=void 0===d?I.menu:d,v=e.hideMenuToggle,h=void 0!==v&&v,p=ma(),f=p.isOpen,y=p.toggle,b=p.isMobile?"accordion":"dropdown",g=P(aa,Da({theme:s}),c),x=P(ia,f?ca:oa);return(0,A.jsxs)("header",{id:n,className:g,children:[(0,A.jsxs)("div",{className:na,children:[u&&(0,A.jsx)("div",{className:ta,children:u}),!h&&(0,A.jsx)("button",{type:"button","aria-label":"Toggle menu",className:ra,onClick:y,children:(0,A.jsx)(D,{icon:m})})]}),(0,A.jsx)(va.Provider,{value:b,children:(0,A.jsx)("div",{className:x,children:t})}),l&&(0,A.jsx)("div",{className:sa,children:l})]})};const ya="lB8REa7QbS00_HY39qlv",ba="sSfHpXGaWQJlKsMHHaNz",ga="KUAQgA5jKT0cpt4YT9My",xa="VHv_24fnWV6U7utpmyOv",Na="xz7mio21qHuZpdmkS_Ql",ja="mecTZPfsBQEB8_dRnBQz",ka="B9dyOyj_V1ejlMhgfn9g",Ca="ZddvyvLdn43wm9cl0jwZ";var wa=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=void 0===r?"":r,i=e.className,c=void 0===i?"":i,o=e.theme,s=void 0===o?Aa.primary:o,u=e.pinToggleIcon,l=void 0===u?I.flecha:u,d=e.hidePinToggle,m=void 0!==d&&d,v=ma(),h=v.isOpen,p=v.isExpanded,f=v.toggleExpanded,y=P(ya,h?ba:ga,p?Na:xa,Ma({theme:s}),c);return(0,A.jsxs)("aside",{id:n,className:y,children:[(0,A.jsx)(va.Provider,{value:"accordion",children:t}),!m&&(0,A.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:ja,onClick:f,children:(0,A.jsx)(D,{icon:l,className:P(ka,p?Ca:"")})})]})};const Ta="huVncZ_cd_BiHgGKvG2R",Sa="OhBh129QqaKYIl1RoRRQ",Oa="mpssuMH2mFjNpZnuMaOp";var za=function(e){var a=e.id,n=void 0===a?"":a,r=e.children,t=e.className,i=void 0===t?"":t,c=e.level,o=void 0===c?1:c,s=ha(),u=P(Ta,"dropdown"===s&&1===o?Oa:Sa,i);return(0,A.jsx)("ul",{id:n,className:u,children:la.Children.map(r,function(e){return(0,la.isValidElement)(e)?(0,la.cloneElement)(e,{level:o}):e})})};const qa=require("react-router-dom"),Ba={"nav-item-wrapper":"DYcbVGvq2gOTbslQ9dtd","nav-item":"UuLDbzdBjeWuOYQrYFWC","nav-item-inline":"poOzQJfQ4Zwl1iu2RK31","nav-item-l1":"k4ofdETJ7Y_29z1Izk5N","nav-item-l2":"_dxePEO0GOkz4uV9ZCih","nav-item-l3":"dhQwjaox_1b3Ne2rtLUV","nav-item-collapsed":"bMDMJ1WsQxyWIruZxhk4","nav-item-active":"Ox3zdaZO80qbQ_tOnwAf","nav-item-icon":"FGmw5cM6XpFJK0IFEZA_","nav-item-icon-active":"oxRil4wKmzylOy_4besK","nav-item-label":"g6mZSnz_vDZHIPu7Lcn0","nav-item-label-collapsed":"EdGVseAHauIZaFqII1Oc","nav-item-chevron":"oUSWwp2gN16l9XDwC401","is-open":"f2sCWSYLCu5BcSoAQUfJ","nav-item-chevron-collapsed":"hq0Y1ntvELh0Hqs1kXut","nav-dropdown-panel":"YFeh0FaB0H6yto5JgjF6","nav-dropdown-below":"zrQ1EkV9gwCROBuciEk9","nav-dropdown-side":"zs65yT6zCjjFDszT1VGQ"};var La,Ea,Aa,Ia=function(e){var a=e.id,n=void 0===a?"":a,r=e.label,t=void 0===r?"":r,i=e.icon,c=e.children,o=e.className,s=void 0===o?"":o,u=e.active,l=void 0!==u&&u,d=e.to,m=e.href,v=e.onClick,h=e.defaultExpanded,p=void 0!==h&&h,f=e.level,y=void 0===f?1:f,b=ha(),g=ma().isExpanded,x=(0,la.useState)(p),N=x[0],j=x[1],k=!!c&&y<3,C=y+1,w="accordion"===b&&!g,T=l&&y>1,S=l&&1===y,O=P(Ba["nav-item-label"],w?Ba["nav-item-label-collapsed"]:""),z=P(Ba["nav-item"],"accordion"===b?Ba["nav-item-l".concat(y)]:Ba["nav-item-inline"],w?Ba["nav-item-collapsed"]:"",T?Ba["nav-item-active"]:"",s),q=function(e){k&&j(function(e){return!e}),v&&v(e)},B=(0,A.jsxs)(A.Fragment,{children:[i&&(0,A.jsx)(D,{icon:i,className:P(Ba["nav-item-icon"],S?Ba["nav-item-icon-active"]:"")}),t&&(0,A.jsx)("span",{className:O,children:t}),k&&(0,A.jsx)(D,{icon:I.flecha,className:P(Ba["nav-item-chevron"],w?Ba["nav-item-chevron-collapsed"]:"",N?Ba["is-open"]:"")})]}),L=d?(0,A.jsx)(qa.Link,{to:d,id:n,className:z,onClick:q,children:B}):m?(0,A.jsx)("a",{id:n,href:m,className:z,onClick:q,children:B}):(0,A.jsx)("button",{id:n,type:"button",className:z,onClick:q,children:B}),E=(0,la.isValidElement)(c)?(0,la.cloneElement)(c,{level:C}):c;return(0,A.jsxs)("li",{className:Ba["nav-item-wrapper"],onMouseEnter:"dropdown"===b&&k?function(){return j(!0)}:void 0,onMouseLeave:"dropdown"===b&&k?function(){return j(!1)}:void 0,children:[L,k&&N&&("accordion"===b?E:(0,A.jsx)("div",{className:P(Ba["nav-dropdown-panel"],1===y?Ba["nav-dropdown-below"]:Ba["nav-dropdown-side"]),children:E}))]})};!function(e){e.primary="primary"}(La||(La={})),function(e){e.primary="primary",e.dark="dark"}(Ea||(Ea={})),function(e){e.primary="primary"}(Aa||(Aa={}));var Pa=function(e){return e.theme===La.primary?ea:""},Da=function(e){switch(e.theme){case Ea.primary:return"";case Ea.dark:return ua;default:return""}},Ma=function(e){e.theme;return Aa.primary,""};const Ra="GXbNNfaRE3TyRdoGrwb7",Ga="JJlpwqbl4lBtQC3RnNnw",Va="YHIztbHCIlsXLL9Yn8ww",_a="KDNJqjBclhbRaDk4mBr6",Qa="EhYmjqYe_GtBncOd1xD9";var Ua=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.value,s=e.label,u=e.checked,l=e.defaultChecked,d=e.disabled,m=void 0!==d&&d,v=e.onChange,h=void 0===v?function(){}:v,p=P(Ra,Ka({theme:i}),m?Qa:"",r);return(0,A.jsxs)("label",{className:p,children:[(0,A.jsx)("input",{id:a,className:Ga,type:"radio",name:c,value:o,checked:u,defaultChecked:l,disabled:m,onChange:h}),(0,A.jsx)("span",{className:Va,"aria-hidden":"true"}),s&&(0,A.jsx)("span",{className:_a,children:s})]})};const Ha="QBLrCrEV0gM6Kw5pF1St",Fa="RU1XYIJgTOpk_L6PLAhf";var Ja;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(Ja||(Ja={}));var Za,Ya=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Za.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,u=e.value,l=e.defaultValue,d=void 0===l?"":l,m=e.direction,v=void 0===m?Ja.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,la.useState)(d),g=b[0],x=b[1],N=void 0!==u?u:g,j=function(e){void 0===u&&x(e.target.value),y(e)},k=P(Ha,v===Ja.horizontal?Fa:"",r);return(0,A.jsx)("div",{id:a,role:"radiogroup",className:k,children:s.map(function(e){return(0,A.jsx)(Ua,{theme:i,name:c,value:e.value,label:e.label,checked:N===e.value,disabled:p||e.disabled,onChange:j},e.value)})})};!function(e){e.primary="primary"}(Za||(Za={}));var Ka=function(e){e.theme;return""};const Wa={"checkbox-label":"zjjHhR8Wrs1uEuvkvAET","checkbox-input":"jgDLO2lj8lIL4n2aUvd4","checkbox-box":"tBBM2Tox6G2Lc1HgNzpm","checkbox-check":"pwzoSwjqGtatjDWB8YwK","checkbox-dash":"tV_vzpZfKvHlPlIiWYQj","checkbox-disabled":"ntiFyXsULeH5Q21zjZaP"};var Xa=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?rn.primary:t,c=e.name,o=e.value,s=e.label,u=e.checked,l=e.defaultChecked,d=e.indeterminate,m=void 0!==d&&d,v=e.disabled,h=void 0!==v&&v,p=e.onChange,f=void 0===p?function(){}:p,y=(0,la.useRef)(null);(0,la.useEffect)(function(){y.current&&(y.current.indeterminate=m)},[m]);var b=P(Wa["checkbox-label"],cn({theme:i}),h?Wa["checkbox-disabled"]:"",r);return(0,A.jsxs)("label",{className:b,children:[(0,A.jsx)("input",{ref:y,id:a,className:Wa["checkbox-input"],type:"checkbox",name:c,value:o,checked:u,defaultChecked:l,disabled:h,onChange:f}),(0,A.jsxs)("span",{className:Wa["checkbox-box"],"aria-hidden":"true",children:[(0,A.jsx)(D,{className:Wa["checkbox-check"],icon:I.check}),(0,A.jsx)("span",{className:Wa["checkbox-dash"]})]}),s&&(0,A.jsx)("span",{className:Wa["checkbox-text"],children:s})]})};const $a="moROzwaINmGAqyCdeqUb",en="uGMTsBF__2RgYnA6S_ae";var an,nn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))};!function(e){e.vertical="vertical",e.horizontal="horizontal"}(an||(an={}));var rn,tn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?rn.primary:t,c=e.name,o=e.options,s=void 0===o?[]:o,u=e.values,l=e.defaultValues,d=void 0===l?[]:l,m=e.direction,v=void 0===m?an.vertical:m,h=e.disabled,p=void 0!==h&&h,f=e.onChange,y=void 0===f?function(){}:f,b=(0,la.useState)(d),g=b[0],x=b[1],N=void 0!==u?u:g,j=P($a,v===an.horizontal?en:"",r);return(0,A.jsx)("div",{id:a,role:"group",className:j,children:s.map(function(e){return(0,A.jsx)(Xa,{theme:i,name:c,value:e.value,label:e.label,checked:N.includes(e.value),disabled:p||e.disabled,onChange:function(){return a=e.value,n=N.includes(a)?N.filter(function(e){return e!==a}):nn(nn([],N,!0),[a],!1),void 0===u&&x(n),void y(n);var a,n}},e.value)})})};!function(e){e.primary="primary"}(rn||(rn={}));var cn=function(e){e.theme;return""};const on="zegNFU1IXq2D0NAslGyj",sn="rGbn8Dr7CvRzb5aBaIm6",un="oHn7xu1kuT37RPqDSpc0",ln="VofOiaYafh2S6lqJD62h";var dn,mn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?dn.primary:t,c=e.checked,o=e.defaultChecked,s=void 0!==o&&o,u=e.label,l=e.children,d=void 0===l?"Activar":l,m=e.disabled,v=void 0!==m&&m,h=e.onChange,p=void 0===h?function(){}:h,f=(0,la.useState)(s),y=f[0],b=f[1],g=void 0!==c?c:y,x=P(un,vn({theme:i}),g?ln:"",r);return(0,A.jsxs)("span",{className:on,children:[u&&(0,A.jsx)("span",{className:sn,children:u}),(0,A.jsx)("button",{id:a,type:"button",role:"switch","aria-checked":g,disabled:v,className:x,onClick:function(){void 0===c&&b(!g),p(!g)},children:d})]})};!function(e){e.primary="primary"}(dn||(dn={}));var vn=function(e){e.theme;return""};const hn="kkj7ttLeFO1S4d8mM_Pn",pn="a_HuZeJ_oVLoqS7eukOK",fn="OluyRygiDnbSKaGwqvJW",yn="h4zm0kOhR9ZxkSdTB7GN",bn="pfLJgfyLJlYmzTol8bA5";var gn,xn=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?gn.primary:t,c=e.value,o=e.defaultValue,s=e.placeholder,u=void 0===s?"":s,l=e.rows,d=void 0===l?4:l,m=e.autoResize,v=void 0!==m&&m,h=e.hardBorder,p=void 0!==h&&h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,g=void 0===b?function(){}:b,x=P(hn,Nn({theme:i}),p?yn:"",v?bn:"",r);return(0,A.jsx)("textarea",{id:a,className:x,value:c,defaultValue:o,placeholder:u,rows:d,disabled:y,onChange:function(e){v&&(e.currentTarget.style.height="auto",e.currentTarget.style.height="".concat(e.currentTarget.scrollHeight,"px")),g(e)}})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary"}(gn||(gn={}));var Nn=function(e){switch(e.theme){case"primary":default:return"";case"secondary":return pn;case"tertiary":return fn}};const jn="WihApGsGcC1E22NRG0P5",kn="fUrHs64HZzxc8wuJx0Sb",Cn="LXJF8zINUAOvCEJtkK8Q",wn="Wb8G9wRU_hGXsgxvtTI1",Tn="EkMWU0uN6UWfqy9bLsBt",Sn="jFyLmbuHrBcChK1PCUAW",On="toX_UmDpZNE2kruEXl8S",zn="H1zoebUk7LJVtn0H0Zu_",qn="i_2UnWCN655j4bednibQ",Bn="SITJboRY_HWw8TaUHpkS",Ln="c4nJQCuqPERLXusqZmTf",En="rVjFTHZ3d6gzTyGq1wOq",An="rLYHgyXqKJfVOrHCTUHr",In="_aOV8eUPNj11n_VY0NAB",Pn="gFuL19WEJXow8Pop913u",Dn="gdPP8CuH6BxL79m2ly8i",Mn="tm2CatA44Mbqd0CMaXp7",Rn="HfTjK7bgJmXNcDqfhL0J";var Gn,Vn=function(e,a,n){if(n||2===arguments.length)for(var r,t=0,i=a.length;t<i;t++)!r&&t in a||(r||(r=Array.prototype.slice.call(a,0,t)),r[t]=a[t]);return e.concat(r||Array.prototype.slice.call(a))},_n=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?Gn.primary:t,c=e.options,o=void 0===c?[]:c,s=e.multiple,u=void 0!==s&&s,l=e.value,d=e.defaultValue,m=void 0===d?"":d,v=e.values,h=e.defaultValues,p=void 0===h?[]:h,f=e.placeholder,y=void 0===f?"":f,b=e.searchable,g=void 0!==b&&b,x=e.icon,N=e.emptyMessage,j=void 0===N?"Sin resultados":N,k=e.hardBorder,C=void 0!==k&&k,w=e.disabled,T=void 0!==w&&w,S=e.onChange,O=void 0===S?function(){}:S,z=(0,la.useState)(!1),q=z[0],B=z[1],L=(0,la.useState)(""),E=L[0],M=L[1],R=(0,la.useState)(0),G=R[0],V=R[1],_=(0,la.useState)(m),Q=_[0],U=_[1],H=(0,la.useState)(p),F=H[0],J=H[1],Z=(0,la.useRef)(null),Y=(0,la.useRef)(null),K=(0,la.useId)(),W=void 0!==l?l:Q,X=void 0!==v?v:F,$=(u?o.filter(function(e){return X.includes(e.value)}):o.filter(function(e){return e.value===W})).map(function(e){return e.label}).join(", "),ee=g&&E?o.filter(function(e){return e.label.toLowerCase().includes(E.toLowerCase())}):o,ae=function(e){return u?X.includes(e.value):e.value===W};(0,la.useEffect)(function(){if(q){var e=function(e){Z.current&&!Z.current.contains(e.target)&&(B(!1),M(""))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[q]),(0,la.useEffect)(function(){var e;q&&g&&(null===(e=Y.current)||void 0===e||e.focus())},[q,g]);var ne=function(){T||(B(!0),V(0))},re=function(){B(!1),M("")},te=function(e){if(!e.disabled)if(u){var a=X.includes(e.value)?X.filter(function(a){return a!==e.value}):Vn(Vn([],X,!0),[e.value],!1);void 0===v&&J(a),O(a)}else void 0===l&&U(e.value),O(e.value),re()},ie=P(kn,Qn({theme:i}),C?Dn:"",T?Mn:"");return(0,A.jsxs)("div",{id:a,ref:Z,className:P(jn,r),children:[(0,A.jsxs)("div",{role:"combobox","aria-expanded":q,"aria-haspopup":"listbox","aria-controls":K,"aria-disabled":T,tabIndex:T?-1:0,className:ie,onClick:function(){return q?re():ne()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),q?V(function(e){return Math.min(e+1,ee.length-1)}):ne();break;case"ArrowUp":e.preventDefault(),V(function(e){return Math.max(e-1,0)});break;case"Enter":e.preventDefault(),q?ee[G]&&te(ee[G]):ne();break;case"Escape":re();break;case" ":q||g||(e.preventDefault(),ne())}},children:[x&&(0,A.jsx)(D,{className:Sn,icon:x}),g&&q?(0,A.jsx)("input",{ref:Y,className:Tn,value:E,placeholder:$||y,onChange:function(e){M(e.target.value),V(0)},onClick:function(e){return e.stopPropagation()}}):(0,A.jsx)("span",{className:P(Cn,$?"":wn),children:$||y}),(0,A.jsx)(D,{className:On,icon:I.chevronDown})]}),q&&(0,A.jsxs)("ul",{id:K,role:"listbox","aria-multiselectable":u,className:zn,children:[0===ee.length&&(0,A.jsx)("li",{className:Pn,children:j}),ee.map(function(e,a){return(0,A.jsxs)("li",{role:"option","aria-selected":ae(e),className:P(qn,a===G?Ln:"",ae(e)?En:"",e.disabled?In:""),onMouseEnter:function(){return V(a)},onClick:function(a){a.stopPropagation(),te(e)},children:[(0,A.jsx)("span",{className:Bn,children:e.label}),ae(e)&&(0,A.jsx)(D,{className:An,icon:I.check})]},e.value)})]})]})};!function(e){e.primary="primary",e.dark="dark"}(Gn||(Gn={}));var Qn=function(e){switch(e.theme){case"primary":default:return"";case"dark":return Rn}};const Un="HVj3aNmDW6tJTr0uageu",Hn="hW1Ev2Vff5FMrAuQdu5Q",Fn="ZI5_XWdK17MXXnYMh5O_",Jn="PhpcwVhP56ggFwiGvuAl",Zn="ndBtMO52dtAMHPla372a",Yn="YxneKx82bAQhUpOy8Adj",Kn="rEwN2ippBOfwtYrsL8xL",Wn="QGvk3ZseIqrsJEo4c5E8",Xn="cS9mLM8C2odtqKRL50qU";var $n,er=function(e){var a=e.id,n=e.className,r=void 0===n?"":n,t=e.theme,i=void 0===t?$n.primary:t,c=e.value,o=e.defaultValue,s=void 0===o?"":o,u=e.min,l=e.max,d=e.placeholder,m=void 0===d?"":d,v=e.icon,h=void 0===v?I.calendario:v,p=e.hardBorder,f=void 0!==p&&p,y=e.disabled,b=void 0!==y&&y,g=e.onChange,x=void 0===g?function(){}:g,N=(0,la.useRef)(null),j=(0,la.useState)(s),k=j[0],C=j[1],w=void 0!==c?c:k,T=P(Un,ar({theme:i}),f?Wn:"",b?Xn:"",r);return(0,A.jsxs)("div",{className:T,onClick:function(){var e,a,n;if(!b){null===(e=N.current)||void 0===e||e.focus();try{null===(n=null===(a=N.current)||void 0===a?void 0:a.showPicker)||void 0===n||n.call(a)}catch(e){}}},children:[(0,A.jsx)(D,{className:Hn,icon:h}),(0,A.jsxs)("span",{className:Fn,children:[(0,A.jsx)("input",{ref:N,id:a,className:P(Jn,!w&&m?Zn:""),type:"date",value:w,min:u,max:l,disabled:b,onChange:function(e){void 0===c&&C(e.target.value),x(e)}}),!w&&m&&(0,A.jsx)("span",{className:Yn,children:m})]}),(0,A.jsx)(D,{className:Kn,icon:I.chevronDown})]})};!function(e){e.primary="primary"}($n||($n={}));var ar=function(e){e.theme;return""};const nr="csTTdgNhhaKeM3WzlV5O",rr="WmmocI2yHIe8GUSg2X13",tr="Ztm3_ulDynd0uNXYEM9R",ir="ZUtlZ5rivCyTPAaLLX5w",cr="Eq1489yFWMUmM_u6vh9f",or="PMVJ8fczX7bKcOIU0fOL",sr="TIFdzexsUxA525Gdwpcb";var ur,lr,dr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?ur.primary:i,o=e.size,s=void 0===o?lr.md:o,u=e.src,l=e.alt,d=void 0===l?"":l,m=e.fallbackIcon,v=void 0===m?I.usuarioDentroApp:m,h=P(nr,mr({theme:c}),vr({size:s}),t);return(0,A.jsx)("span",{id:n,className:h,children:u?(0,A.jsx)("img",{className:rr,src:u,alt:d}):(0,A.jsx)(D,{className:tr,icon:v})})};!function(e){e.primary="primary"}(ur||(ur={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(lr||(lr={}));var mr=function(e){return e.theme===ur.primary?ir:""},vr=function(e){switch(e.size){case lr.sm:return cr;case lr.md:return or;case lr.lg:return sr;default:return""}};const hr="IWyEVo8NMrRjUWP04rfw",pr="CqnccCvEtLIl5USsaXlg",fr="YG349hVZasvp2jO4kPsA",yr="_CvqVXegZYiyGoajONPu",br="UUiupi6FttBIFLsTsP3g",gr="A0QVkfVJsx9sZLnPR6kv",xr="VkrlgKZfUw3mzJQ6C8p9";var Nr,jr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.variant,c=void 0===i?Nr.success:i,o=e.icon,s=e.children,u=P(hr,kr({variant:c}),t);return(0,A.jsxs)("span",{id:n,className:u,children:[o&&(0,A.jsx)(D,{className:pr,icon:o}),(0,A.jsx)("span",{className:fr,children:s})]})};!function(e){e.success="success",e.progress="progress",e.pending="pending",e.info="info"}(Nr||(Nr={}));var kr=function(e){switch(e.variant){case Nr.success:return yr;case Nr.progress:return br;case Nr.pending:return gr;case Nr.info:return xr;default:return""}};const Cr="XT6EGfuWYGIoJSqy05TJ",wr="UIk9FL7BDJpO9kTxs_Uw",Tr="lBgbjqELas7qzyxa17Gg",Sr="KAT9D73UpzE9tm2yc2Tz",Or="K1sgv7WJBtYs1CrvdSgv",zr="It7juqSa974gPQ1ECS7P",qr="xqzhTvRpnACwBTzGmCFd",Br="aYo2q4_DqNJ5Yl0NQB9t",Lr="bTytWyysO56yZTSSf5LT";var Er,Ar=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?Er.primary:i,o=e.icon,s=e.label,u=P(Cr,t),l=P(wr,Ir({theme:c}));return(0,A.jsxs)("span",{id:n,className:u,children:[(0,A.jsx)("span",{className:l,children:(0,A.jsx)(D,{className:Tr,icon:o})}),s&&(0,A.jsx)("span",{className:Sr,children:s})]})};!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.quaternary="quaternary",e.quinary="quinary"}(Er||(Er={}));var Ir=function(e){switch(e.theme){case Er.primary:return Or;case Er.secondary:return zr;case Er.tertiary:return qr;case Er.quaternary:return Br;case Er.quinary:return Lr;default:return""}};const Pr="MBywYK0SgL4lTZV_77nW",Dr="j8IeW9LCX93pCcFNrNdY",Mr="YBLMvqC9pz7R4bSGdeh6",Rr="aWScMBie4dNuQWeWzk94",Gr="vpvm_c6Fwnhmhnve66Of",Vr="E11UJFYJUt38tQ_rmIFl",_r="l5moywrOYUj3JR58GJ3Q",Qr="VUVz_XqUxME6E3pS7NEm",Ur="yBxzIsU4VisEdoiz2GnA",Hr="SHOkFcwsH5L4yMMkYR30",Fr="v4frrN_DRHohQdZjJiVA";var Jr,Zr,Yr,Kr,Wr=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.icon,c=e.ariaLabel,o=e.theme,s=void 0===o?Jr.primary:o,u=e.size,l=void 0===u?Zr.md:u,d=e.shape,m=void 0===d?Yr.circle:d,v=e.disabled,h=void 0!==v&&v,p=e.type,f=void 0===p?Kr.button:p,y=e.onClick,b=P(Pr,Xr({theme:s}),$r({size:l}),et({shape:m}),t);return(0,A.jsx)("button",{id:n,className:b,type:f,"aria-label":c,disabled:h,onClick:y,children:(0,A.jsx)(D,{className:Dr,icon:i})})};!function(e){e.primary="primary",e.secondary="secondary",e.outline="outline",e.ghost="ghost"}(Jr||(Jr={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(Zr||(Zr={})),function(e){e.circle="circle",e.square="square"}(Yr||(Yr={})),function(e){e.submit="submit",e.reset="reset",e.button="button"}(Kr||(Kr={}));var Xr=function(e){switch(e.theme){case Jr.primary:return Qr;case Jr.secondary:return Ur;case Jr.outline:return Hr;case Jr.ghost:return Fr;default:return""}},$r=function(e){switch(e.size){case Zr.sm:return Gr;case Zr.md:return Vr;case Zr.lg:return _r;default:return""}},et=function(e){switch(e.shape){case Yr.circle:return Mr;case Yr.square:return Rr;default:return""}};const at="ta7Gh0oux0JTjsuKbz67",nt="KZtf6l8cQuhmNelFlruw",rt="Ofk0fCFamMeiTdjTIFee";var tt,it=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?tt.primary:i,o=e.to,s=e.href,u=e.target,l=e.children,d=e.onClick,m=P(at,ct({theme:c}),t);return o?(0,A.jsx)(qa.Link,{to:o,id:n,className:m,onClick:d,children:l}):s?(0,A.jsx)("a",{id:n,href:s,target:u,className:m,onClick:d,children:l}):(0,A.jsx)("button",{id:n,type:"button",className:m,onClick:d,children:l})};!function(e){e.primary="primary",e.muted="muted"}(tt||(tt={}));var ct=function(e){switch(e.theme){case tt.primary:return nt;case tt.muted:return rt;default:return""}};const ot="NVSkcMXjGBloaxcmkInt",st="mabEcjJJijuiIgVk79DH",ut="IyemsZ0IYvI3nuNOXkvX",lt="Dqhex8Evhb4AAc9Xkvo5",dt="N5bqz6Zxbi50Vhek2ylV",mt="a2NsnBpqeBMKcuZP7okt",vt="ElABlLAgZYeancITzEhQ",ht="B_mWTdrLaXzyri3tKAWA",pt="UuPlwVneHDPTMC1UZW6G",ft="cRoCcl6LJW501_zUJ2_G",yt="co6gq0z96SbIsuyd9xp_";var bt,gt,xt=function(e){var a=e.id,n=void 0===a?"":a,r=e.className,t=void 0===r?"":r,i=e.theme,c=void 0===i?bt.primary:i,o=e.size,s=void 0===o?gt.md:o,u=e.value,l=e.defaultValue,d=void 0===l?0:l,m=e.max,v=void 0===m?5:m,h=e.readOnly,p=void 0===h||h,f=e.disabled,y=void 0!==f&&f,b=e.onChange,g=void 0===b?function(){}:b,x=(0,la.useState)(d),N=x[0],j=x[1],k=void 0!==u?u:N,C=!p&&!y,w=function(e){C&&(void 0===u&&j(e),g(e))},T=P(ot,Nt({theme:c}),jt({size:s}),C?st:"",t),S=Array.from({length:v},function(e,a){var n=100*Math.max(0,Math.min(1,k-a));return(0,A.jsxs)("span",{className:ut,children:[(0,A.jsx)(D,{className:lt,icon:I.star}),(0,A.jsx)("span",{className:dt,style:{width:"".concat(n,"%")},children:(0,A.jsx)(D,{className:mt,icon:I.star})}),C&&(0,A.jsx)("button",{type:"button",className:vt,"aria-label":"".concat(a+1),onClick:function(){return w(a+1)}})]},a)});return(0,A.jsx)("span",{id:n,className:T,role:C?"slider":"img","aria-label":"".concat(k," / ").concat(v),"aria-valuenow":C?k:void 0,"aria-valuemin":C?0:void 0,"aria-valuemax":C?v:void 0,tabIndex:C?0:void 0,onKeyDown:function(e){C&&("ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),w(Math.min(v,k+1))):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),w(Math.max(0,k-1))))},children:S})};!function(e){e.primary="primary"}(bt||(bt={})),function(e){e.sm="sm",e.md="md",e.lg="lg"}(gt||(gt={}));var Nt=function(e){return e.theme===bt.primary?ht:""},jt=function(e){switch(e.size){case gt.sm:return pt;case gt.md:return ft;case gt.lg:return yt;default:return""}};return a})());
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { AvatarThemes, AvatarSizes } from '..';
|
|
4
|
+
export type TAvatarProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the id of the avatar.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the classes that you want to add
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the theme you want to add to the avatar
|
|
15
|
+
*/
|
|
16
|
+
theme?: AvatarThemes;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the size of the avatar
|
|
19
|
+
*/
|
|
20
|
+
size?: AvatarSizes;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the source url of the avatar image
|
|
23
|
+
*/
|
|
24
|
+
src?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Is this the alt text of the avatar image
|
|
27
|
+
*/
|
|
28
|
+
alt?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Is this the icon shown when there is no image (fallback)
|
|
31
|
+
*/
|
|
32
|
+
fallbackIcon?: IconNames;
|
|
33
|
+
};
|
|
34
|
+
export declare const Avatar: FC<TAvatarProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum AvatarThemes {
|
|
2
|
+
primary = "primary"
|
|
3
|
+
}
|
|
4
|
+
export declare enum AvatarSizes {
|
|
5
|
+
sm = "sm",
|
|
6
|
+
md = "md",
|
|
7
|
+
lg = "lg"
|
|
8
|
+
}
|
|
9
|
+
export declare const getAvatarThemeClass: ({ theme }: {
|
|
10
|
+
theme: AvatarThemes;
|
|
11
|
+
}) => string;
|
|
12
|
+
export declare const getAvatarSizeClass: ({ size }: {
|
|
13
|
+
size: AvatarSizes;
|
|
14
|
+
}) => string;
|
|
15
|
+
export * from './Avatar';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { BadgeVariants } from '..';
|
|
4
|
+
export type TBadgeProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the id of the badge.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the classes that you want to add
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the variant (status) of the badge
|
|
15
|
+
*/
|
|
16
|
+
variant?: BadgeVariants;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the icon shown at the left of the badge
|
|
19
|
+
*/
|
|
20
|
+
icon?: IconNames;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the content (label) of the badge
|
|
23
|
+
*/
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
};
|
|
26
|
+
export declare const Badge: FC<TBadgeProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC, MouseEventHandler } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { IconButtonThemes, IconButtonSizes, IconButtonShapes, IconButtonTypes } from '..';
|
|
4
|
+
export type TIconButtonProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the id of the icon button.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the classes that you want to add
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the icon shown inside the button
|
|
15
|
+
*/
|
|
16
|
+
icon: IconNames;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the accessible label of the button (required, used as aria-label)
|
|
19
|
+
*/
|
|
20
|
+
ariaLabel: string;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the theme you want to add to the icon button
|
|
23
|
+
*/
|
|
24
|
+
theme?: IconButtonThemes;
|
|
25
|
+
/**
|
|
26
|
+
* Is this the size of the icon button
|
|
27
|
+
*/
|
|
28
|
+
size?: IconButtonSizes;
|
|
29
|
+
/**
|
|
30
|
+
* Is this the shape of the icon button
|
|
31
|
+
*/
|
|
32
|
+
shape?: IconButtonShapes;
|
|
33
|
+
/**
|
|
34
|
+
* Is this the disabled state of the icon button
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Is this the type of the button.
|
|
39
|
+
*/
|
|
40
|
+
type?: IconButtonTypes;
|
|
41
|
+
/**
|
|
42
|
+
* Is this the onClick event of the icon button.
|
|
43
|
+
*/
|
|
44
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
45
|
+
};
|
|
46
|
+
export declare const IconButton: FC<TIconButtonProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum IconButtonThemes {
|
|
2
|
+
primary = "primary",
|
|
3
|
+
secondary = "secondary",
|
|
4
|
+
outline = "outline",
|
|
5
|
+
ghost = "ghost"
|
|
6
|
+
}
|
|
7
|
+
export declare enum IconButtonSizes {
|
|
8
|
+
sm = "sm",
|
|
9
|
+
md = "md",
|
|
10
|
+
lg = "lg"
|
|
11
|
+
}
|
|
12
|
+
export declare enum IconButtonShapes {
|
|
13
|
+
circle = "circle",
|
|
14
|
+
square = "square"
|
|
15
|
+
}
|
|
16
|
+
export declare enum IconButtonTypes {
|
|
17
|
+
submit = "submit",
|
|
18
|
+
reset = "reset",
|
|
19
|
+
button = "button"
|
|
20
|
+
}
|
|
21
|
+
export declare const getIconButtonThemeClass: ({ theme }: {
|
|
22
|
+
theme: IconButtonThemes;
|
|
23
|
+
}) => string;
|
|
24
|
+
export declare const getIconButtonSizeClass: ({ size }: {
|
|
25
|
+
size: IconButtonSizes;
|
|
26
|
+
}) => string;
|
|
27
|
+
export declare const getIconButtonShapeClass: ({ shape }: {
|
|
28
|
+
shape: IconButtonShapes;
|
|
29
|
+
}) => string;
|
|
30
|
+
export * from './IconButton';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FC, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { LinkThemes } from '..';
|
|
3
|
+
export type TLinkProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Is this the id of the link.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Is this the classes that you want to add
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Is this the theme you want to add to the link
|
|
14
|
+
*/
|
|
15
|
+
theme?: LinkThemes;
|
|
16
|
+
/**
|
|
17
|
+
* react-router destination. Renders a <Link> when provided.
|
|
18
|
+
*/
|
|
19
|
+
to?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Plain href. Renders an <a> when provided (and `to` is not).
|
|
22
|
+
*/
|
|
23
|
+
href?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Is this the target of the anchor (only applies to href).
|
|
26
|
+
*/
|
|
27
|
+
target?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Is this the content of the link
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Is this the onClick event of the link.
|
|
34
|
+
*/
|
|
35
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
36
|
+
};
|
|
37
|
+
export declare const Link: FC<TLinkProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RatingThemes, RatingSizes } from '..';
|
|
3
|
+
export type TRatingProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Is this the id of the rating.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Is this the classes that you want to add
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Is this the theme you want to add to the rating
|
|
14
|
+
*/
|
|
15
|
+
theme?: RatingThemes;
|
|
16
|
+
/**
|
|
17
|
+
* Is this the size of the rating stars
|
|
18
|
+
*/
|
|
19
|
+
size?: RatingSizes;
|
|
20
|
+
/**
|
|
21
|
+
* Is this the rating value (controlled, supports halves)
|
|
22
|
+
*/
|
|
23
|
+
value?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Is this the initial rating value (uncontrolled)
|
|
26
|
+
*/
|
|
27
|
+
defaultValue?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Is this the maximum number of stars
|
|
30
|
+
*/
|
|
31
|
+
max?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Is this the read-only state (no interaction)
|
|
34
|
+
*/
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Is this the disabled state of the rating
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Is this the onChange event, called with the selected value
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (value: number) => void;
|
|
44
|
+
};
|
|
45
|
+
export declare const Rating: FC<TRatingProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum RatingThemes {
|
|
2
|
+
primary = "primary"
|
|
3
|
+
}
|
|
4
|
+
export declare enum RatingSizes {
|
|
5
|
+
sm = "sm",
|
|
6
|
+
md = "md",
|
|
7
|
+
lg = "lg"
|
|
8
|
+
}
|
|
9
|
+
export declare const getRatingThemeClass: ({ theme }: {
|
|
10
|
+
theme: RatingThemes;
|
|
11
|
+
}) => string;
|
|
12
|
+
export declare const getRatingSizeClass: ({ size }: {
|
|
13
|
+
size: RatingSizes;
|
|
14
|
+
}) => string;
|
|
15
|
+
export * from './Rating';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconNames } from '@components';
|
|
3
|
+
import { TagThemes } from '..';
|
|
4
|
+
export type TTagProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Is this the id of the tag.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Is this the classes that you want to add
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Is this the theme (color) you want to add to the tag
|
|
15
|
+
*/
|
|
16
|
+
theme?: TagThemes;
|
|
17
|
+
/**
|
|
18
|
+
* Is this the icon shown inside the tag
|
|
19
|
+
*/
|
|
20
|
+
icon: IconNames;
|
|
21
|
+
/**
|
|
22
|
+
* Is this the optional label shown below the tag box
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const Tag: FC<TTagProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum TagThemes {
|
|
2
|
+
primary = "primary",
|
|
3
|
+
secondary = "secondary",
|
|
4
|
+
tertiary = "tertiary",
|
|
5
|
+
quaternary = "quaternary",
|
|
6
|
+
quinary = "quinary"
|
|
7
|
+
}
|
|
8
|
+
export declare const getTagThemeClass: ({ theme }: {
|
|
9
|
+
theme: TagThemes;
|
|
10
|
+
}) => string;
|
|
11
|
+
export * from './Tag';
|
|
@@ -10,3 +10,9 @@ export * from './Toggles';
|
|
|
10
10
|
export * from './Textareas';
|
|
11
11
|
export * from './Selects';
|
|
12
12
|
export * from './DatePickers';
|
|
13
|
+
export * from './Avatars';
|
|
14
|
+
export * from './Badges';
|
|
15
|
+
export * from './Tags';
|
|
16
|
+
export * from './IconButtons';
|
|
17
|
+
export * from './Links';
|
|
18
|
+
export * from './Ratings';
|