@aleleba/ro-ut-ui 4.0.0 → 4.1.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 +5 -9
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(r,
|
|
1
|
+
!function(r,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["ui-library"]=t():r["ui-library"]=t()}(this,()=>(()=>{"use strict";var r={d:(t,a)=>{for(var e in a)r.o(a,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t),r:r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};r.r(t),r.d(t,{BorderCard:()=>Nr,Button:()=>yr,ButtonThemes:()=>dr,ButtonTypes:()=>lr,Card:()=>Pr,CardThemes:()=>xr,Icon:()=>R,IconNames:()=>D,Input:()=>Dr,InputThemes:()=>kr,getBorderCard:()=>Sr,getButtonThemeClass:()=>mr,getCardThemeClass:()=>Br,getIconClass:()=>ur,getInputThemeClass:()=>Gr});const a="namBd2yDO5uRnuiJiF4I",e="IezAhh3IOxZrbRaPnSuX",n="peAKuLVAiIXSFB_8weUX",c="fX0XkPg_VOwlCS_puohG",o="uRh5AMB7fHGMjymlSkIe",i="A61ABO8IXKvkyJ2iRq6l",u="jtiHB4J2Gd75DxgbExDU",s="htFKNG_lNNMADoynscvf",d="b41eXc_YG54TSjVcPdr3",l="iDCPPzPmlHXmY6DeRlrz",y="qSKheV1seun_M2zooNYG",m="neFnz7mqfjyob2IpBRAB",p="W1_8p2A4KoAru1W3fQQt",f="tm0XixvT9lg82S8vBQ7H",h="s4WqNjDDGgeMddVjGC39",b="bedJB1k7F24TZZ14mvGS",v="PgNn5YrHhpkkzKgbQGHw",g="g7BsZUvE5UmvGR7yux1n",j="oCPQLbmQjjlb4QfF6N3z",O="w1jjKytmOVrGE_OOWN24",q="wxOwGgByggkSrx_yH1Mm",C="jyv2Pn76yjv7yHzme6Vi",x="l_u5YpNTZO_QLR2ODTsM",N="D3lpa3rGkDORSZEMO4Pu",P="ptOAordfG6nUqt1RGPGD",B="tcijTEF2DcjdTgUYgwm_",S="Sb74MmtzlQ4r_auGli10",w="iRPlBCtkk8OZ1fVrK6Ac",k=require("react/jsx-runtime");var D,G=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.filter(function(r){return r}).join(" ")},R=function(r){var t=r.id,a=void 0===t?"":t,e=r.className,n=void 0===e?"":e,c=r.icon,o=G(c?ur({icon:c}):"",n);return(0,k.jsx)("span",{id:a,className:o})},Q=a,_=g,A=v,I=l,T=s,H=u,K=c,M=e,V=C,U=i,X=m,z=d,E=h,F=f,Z=S,L=q,W=b,Y=O,J=y,$=N,rr=x,tr=P,ar=B,er=o,nr=j,cr=p,or=n,ir=w;!function(r){r.perfil="perfil",r.password="password",r.google="google",r.facebook="facebook",r.dashboard="dashboard",r.calendario="calendario",r.administracionDeUsuario="administracionDeUsuario",r.rutas="rutas",r.chat="chat",r.informes="informes",r.flecha="flecha",r.nuevaRuta="nuevaRuta",r.notificacion="notificacion",r.usuarioDentroApp="usuarioDentroApp",r.rutaNueva="rutaNueva",r.nuevaRuta2="nuevaRuta2",r.rutaCompletada="rutaCompletada",r.hoy="hoy",r.rutasProgramadas="rutasProgramadas",r.rutasEliminadas="rutasEliminadas",r.rutasReprogramadas="rutasReprogramadas",r.search="search",r.camion="camion",r.pickup="pickup",r.motocicleta="motocicleta",r.barco="barco",r.varios="varios"}(D||(D={}));var ur=function(r){switch(r.icon){case"perfil":return"".concat(Q," ").concat(_);case"password":return"".concat(Q," ").concat(A);case"google":return"".concat(Q," ").concat(I);case"facebook":return"".concat(Q," ").concat(T);case"dashboard":return"".concat(Q," ").concat(H);case"calendario":return"".concat(Q," ").concat(K);case"administracionDeUsuario":return"".concat(Q," ").concat(M);case"rutas":return"".concat(Q," ").concat(V);case"chat":return"".concat(Q," ").concat(U);case"informes":return"".concat(Q," ").concat(X);case"flecha":return"".concat(Q," ").concat(z);case"nuevaRuta":return"".concat(Q," ").concat(E);case"notificacion":return"".concat(Q," ").concat(F);case"usuarioDentroApp":return"".concat(Q," ").concat(Z);case"rutaNueva":return"".concat(Q," ").concat(L);case"nuevaRuta2":return"".concat(Q," ").concat(W);case"rutaCompletada":return"".concat(Q," ").concat(Y);case"hoy":return"".concat(Q," ").concat(J);case"rutasProgramadas":return"".concat(Q," ").concat($);case"rutasEliminadas":return"".concat(Q," ").concat(rr);case"rutasReprogramadas":return"".concat(Q," ").concat(tr);case"search":return"".concat(Q," ").concat(ar);case"camion":return"".concat(Q," ").concat(er);case"pickup":return"".concat(Q," ").concat(nr);case"motocicleta":return"".concat(Q," ").concat(cr);case"barco":return"".concat(Q," ").concat(or);case"varios":return"".concat(Q," ").concat(ir);default:return""}};const sr={"btn-common":"UxC2t97LIIISx7e71_3R","btn-primary":"CFpiqnX4jq_EltxkwEvy","btn-secondary":"yjB0ArEAyeYU6_u7zKsQ","btn-tertiary":"Djr8Yh2IQcUcgjSZ_WQ5","btn-quaternary":"uyBaWoSnHEIxM4x7jgQw","btn-quinary":"qWYltwKufw7ZliVlCT9g","btn-primary-outline":"oQRCOHaGpuh207HQzerc","btn-secondary-outline":"HtF5k4mwsNW1v9YG7qd2","btn-tertiary-outline":"Pg7VF5nFKczFtA3r5E88","btn-quaternary-outline":"wXyKJ8kY_42bOcyetwnC","btn-quinary-outline":"dLCzLEcc0jSLJgsTyHoM"};var dr,lr,yr=function(r){var t=r.id,a=void 0===t?"":t,e=r.children,n=void 0===e?"":e,c=r.className,o=void 0===c?"":c,i=r.theme,u=void 0===i?dr.primary:i,s=r.hardBorder,d=void 0===s||s,l=r.type,y=void 0===l?lr.button:l,m=r.onClick,p=G(sr["btn-common"],mr({theme:u}),d?sr["rounded-full"]:sr["rounded-xl"],o);return(0,k.jsx)("button",{id:a,className:p,type:y,onClick:m,children:n})};!function(r){r.primary="primary",r.secondary="secondary",r.tertiary="tertiary",r.quaternary="quaternary",r.quinary="quinary",r.primaryOutline="primaryOutline",r.secondaryOutline="secondaryOutline",r.tertiaryOutline="tertiaryOutline",r.quaternaryOutline="quaternaryOutline",r.quinaryOutline="quinaryOutline"}(dr||(dr={})),function(r){r.submit="submit",r.reset="reset",r.button="button"}(lr||(lr={}));var mr=function(r){switch(r.theme){case dr.primary:return sr["btn-primary"];case dr.secondary:return sr["btn-secondary"];case dr.tertiary:return sr["btn-tertiary"];case dr.quaternary:return sr["btn-quaternary"];case dr.quinary:return sr["btn-quinary"];case dr.primaryOutline:return sr["btn-primary-outline"];case dr.secondaryOutline:return sr["btn-secondary-outline"];case dr.tertiaryOutline:return sr["btn-tertiary-outline"];case dr.quaternaryOutline:return sr["btn-quaternary-outline"];case dr.quinaryOutline:return sr["btn-quinary-outline"];default:return""}};const pr="pAD4BifhMTLUZvCJxyOx",fr="a2VHzo7AbMVmPMGC3mSx",hr="W0VuH9q0UPwsyVsTQQJe",br="SIPeMNZqcOWCkESf4cPg",vr="hPcmh2SHmHeXnUxGP93s",gr="DcZJoe6Kl4lnV3k4i7nV",jr="LH35do5a6HPSjPusBT_z",Or="juXoWoLQrRgOgzapK6H9",qr="tPCdlPqN6fB69GmnQ181",Cr="nsb5sNsicCrkfBe9SIFs";var xr,Nr,Pr=function(r){var t=r.children,a=void 0===t?"":t,e=r.className,n=void 0===e?"":e,c=r.theme,o=void 0===c?xr.primary:c,i=r.border,u=void 0===i?Nr.soft:i,s=r.title,d=G(pr,Br({theme:o}),Sr({border:u}),n);return(0,k.jsxs)("div",{className:d,children:[s&&(0,k.jsx)("div",{className:fr,children:(0,k.jsx)("h5",{className:br,children:s})}),(0,k.jsx)("div",{className:hr,children:a})]})};!function(r){r.primary="primary",r.secondary="secondary",r.tertiary="tertiary",r.quaternary="quaternary"}(xr||(xr={})),function(r){r.soft="soft",r.hard="hard"}(Nr||(Nr={}));var Br=function(r){switch(r.theme){case"primary":return jr;case"secondary":return Or;case"tertiary":return qr;case"quaternary":return Cr;default:return""}},Sr=function(r){switch(r.border){case"soft":return vr;case"hard":return gr;default:return""}};const wr={"icon-input":"RaCKCo18u9LiXlNtfXSg","input-common":"LCo8ZQNn4x9t1bQv68YX","input-with-icon":"nB_qk0uh4VaPFqAV_rdo","input-secondary":"r2dDDK1b9GSUQ7KkjlAS","input-border-hard":"xghXNj3fj0NG1DBWKj8w","input-tertiary":"eB30gQUCIMLMoZPeOKil"};var kr,Dr=function(r){var t=r.id,a=void 0===t?"":t,e=r.className,n=void 0===e?"":e,c=r.type,o=void 0===c?"text":c,i=r.theme,u=void 0===i?kr.primary:i,s=r.placeholder,d=void 0===s?"":s,l=r.hardBorder,y=void 0!==l&&l,m=r.icon,p=r.onChange,f=void 0===p?function(){}:p,h=G(wr["input-common"],Gr({theme:u}),y?wr["input-border-hard"]:"",n,m?wr["input-with-icon"]:"");return(0,k.jsxs)("div",{className:wr.relative,children:[(0,k.jsx)("input",{id:a,className:h,placeholder:d,type:o,onChange:f}),m&&(0,k.jsx)(R,{className:wr["icon-input"],icon:m})]})};!function(r){r.primary="primary",r.secondary="secondary",r.tertiary="tertiary"}(kr||(kr={}));var Gr=function(r){switch(r.theme){case"primary":default:return"";case"secondary":return wr["input-secondary"];case"tertiary":return wr["input-tertiary"]}};return t})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleleba/ro-ut-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "UI Component for Ro-ut App",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/types/components/index.d.ts",
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
"@storybook/cli": "^10.4.3",
|
|
62
62
|
"@storybook/preset-scss": "^1.0.3",
|
|
63
63
|
"@storybook/react-webpack5": "^10.4.3",
|
|
64
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
64
65
|
"@testing-library/dom": "^10.4.1",
|
|
65
66
|
"@testing-library/jest-dom": "^6.9.1",
|
|
66
67
|
"@testing-library/react": "^16.3.2",
|
|
67
68
|
"@testing-library/user-event": "^14.6.1",
|
|
68
69
|
"@types/jest": "^30.0.0",
|
|
69
|
-
"@types/node": "^
|
|
70
|
+
"@types/node": "^25.9.2",
|
|
70
71
|
"@types/react": "^19.2.17",
|
|
71
72
|
"@types/react-dom": "^19.2.3",
|
|
72
73
|
"@types/webpack": "^5.28.5",
|
|
73
|
-
"autoprefixer": "^10.4.20",
|
|
74
74
|
"babel-loader": "^10.1.1",
|
|
75
75
|
"clean-webpack-plugin": "^4.0.0",
|
|
76
76
|
"css-loader": "^7.1.4",
|
|
@@ -81,24 +81,24 @@
|
|
|
81
81
|
"eslint-plugin-react": "^7.37.5",
|
|
82
82
|
"eslint-plugin-storybook": "^10.4.3",
|
|
83
83
|
"eslint-webpack-plugin": "^6.0.0",
|
|
84
|
-
"globals": "^
|
|
84
|
+
"globals": "^17.6.0",
|
|
85
85
|
"html-webpack-plugin": "^5.6.7",
|
|
86
86
|
"identity-obj-proxy": "^3.0.0",
|
|
87
87
|
"jest": "^30.4.2",
|
|
88
88
|
"jest-environment-jsdom": "^30.4.1",
|
|
89
89
|
"jest-fetch-mock": "^3.0.3",
|
|
90
90
|
"mini-css-extract-plugin": "^2.10.2",
|
|
91
|
-
"postcss": "^8.
|
|
92
|
-
"postcss-loader": "^8.
|
|
91
|
+
"postcss": "^8.5.15",
|
|
92
|
+
"postcss-loader": "^8.2.1",
|
|
93
93
|
"react": "^19.2.7",
|
|
94
94
|
"react-dom": "^19.2.7",
|
|
95
|
-
"react-router-dom": "^
|
|
95
|
+
"react-router-dom": "^7.17.0",
|
|
96
96
|
"resolve-ts-aliases": "^1.0.1",
|
|
97
97
|
"sass": "^1.100.0",
|
|
98
98
|
"sass-loader": "^17.0.0",
|
|
99
99
|
"storybook": "^10.4.3",
|
|
100
100
|
"style-loader": "^4.0.0",
|
|
101
|
-
"tailwindcss": "^3.
|
|
101
|
+
"tailwindcss": "^4.3.0",
|
|
102
102
|
"terser-webpack-plugin": "^5.6.1",
|
|
103
103
|
"ts-jest": "^29.4.11",
|
|
104
104
|
"ts-loader": "^9.6.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"typescript": "^6.0.3",
|
|
107
107
|
"typescript-eslint": "^8.61.0",
|
|
108
108
|
"url-loader": "^4.1.1",
|
|
109
|
-
"webfonts-loader": "^8.
|
|
109
|
+
"webfonts-loader": "^8.1.1",
|
|
110
110
|
"webpack": "^5.107.2",
|
|
111
111
|
"webpack-cli": "^7.0.3",
|
|
112
112
|
"webpack-node-externals": "^3.0.0"
|