@red-unica/libreria-componentes-moviles 0.0.9 → 0.0.11

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/README.md CHANGED
@@ -1,26 +0,0 @@
1
- # Librería componentes genéricos Red Única
2
-
3
- > Componentes React y archivos SASS genéricos para la versión móvil de Red Única.
4
-
5
- ## Instalación
6
-
7
- ```bash
8
- npm install --save @red-unica/libreria-componentes-moviles
9
- ```
10
-
11
- ## Uso
12
-
13
- ```jsx
14
- import React from 'react'
15
- import { Componente } from 'red-unica'
16
-
17
- const Example = () => {
18
- render() {
19
- return <Componente />
20
- }
21
- }
22
- ```
23
-
24
- ## License
25
-
26
- ISC ©
package/dist/principal.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)__webpack_require__.d(n,r,function(t){return e[t]}.bind(null,r));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=6)}([function(e,t){e.exports=require("react")},function(e,t,n){(t=n(5)(!1)).push([e.i,"@media screen and (max-width: 767px)and (pointer: coarse){#etiqueta-clientes-eyd.contenedor-etiqueta-clientes{height:3.4375vh;padding:.625vh 2.2222222222vw .625vh 2.2222222222vw;border-width:.15625vh .2777777778vw;border-radius:3.6111111111vw}#etiqueta-clientes-eyd.contenedor-etiqueta-clientes>.icono-etiqueta-clientes{height:2.03125vh;width:15%}#etiqueta-clientes-eyd.contenedor-etiqueta-clientes>.numero-leyenda-etiqueta-clientes{height:2.1875vh;width:83%}}",""]),e.exports=t},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("@red-unica/libreria-svg")},function(e,t,n){"use strict";var r=function isOldIE(){var e;return function memorize(){return void 0===e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),i=function getTarget(){var e={};return function memorize(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function getIndexByIdentifier(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function modulesToDom(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],c=t.base?a[0]+t.base:a[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var s=getIndexByIdentifier(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==s?(o[s].references++,o[s].updater(d)):o.push({identifier:l,updater:addStyle(d,t),references:1}),r.push(l)}return r}function insertStyleElement(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var a=function replaceText(){var e=[];return function replace(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function applyToSingletonTag(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=a(t,i);else{var o=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(o,c[t]):e.appendChild(o)}}function applyToTag(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var c=null,u=0;function addStyle(e,t){var n,r,i;if(t.singleton){var o=u++;n=c||(c=insertStyleElement(t)),r=applyToSingletonTag.bind(null,n,o,!1),i=applyToSingletonTag.bind(null,n,o,!0)}else n=insertStyleElement(t),r=applyToTag.bind(null,n,t),i=function remove(){!function removeStyleElement(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function updateStyle(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=modulesToDom(e=e||[],t);return function update(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=getIndexByIdentifier(n[r]);o[i].references--}for(var a=modulesToDom(e,t),c=0;c<n.length;c++){var u=getIndexByIdentifier(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function toString(){return this.map((function(t){var n=function cssWithMappingToString(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function toComment(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}(r),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"EtiquetaClientes",(function(){return _}));var r=n(0),i=n.n(r),o=n(2),a=n.n(o),c=n(3),u=n(4),l=n.n(u),s=n(1),d=n.n(s),f={insert:"head",singleton:!1},p=(l()(d.a,f),d.a.locals,function EtiquetaClientes(e){var t=e.numeroClientes;return i.a.createElement("div",{id:"etiqueta-clientes-eyd",className:"hereda-ancho borde-solido borde-p6 elemento-flexible alinear-contenido-laterales contenedor-etiqueta-clientes"},i.a.createElement("div",{className:"icono-etiqueta-clientes"},i.a.createElement(c.IconoUsuarioSinRostro,null)),i.a.createElement("div",{className:"cuerpo-3 negritas letra-p6 elemento-flexible alinear-elementos-final alinear-contenido-centro numero-leyenda-etiqueta-clientes"},"".concat(t," cliente").concat(function condicionTernaria(e,t,n){return e?t:n}(1===Number(t),"","s"))))});p.propTypes={numeroClientes:a.a.string.isRequired};var _=p}]));
1
+ !function(e,n){for(var t in n)e[t]=n[t]}(exports,function(e){var n={};function __webpack_require__(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,__webpack_require__),a.l=!0,a.exports}return __webpack_require__.m=e,__webpack_require__.c=n,__webpack_require__.d=function(e,n,t){__webpack_require__.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,n){if(1&n&&(e=__webpack_require__(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(__webpack_require__.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)__webpack_require__.d(t,a,function(n){return e[n]}.bind(null,a));return t},__webpack_require__.n=function(e){var n=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(n,"a",n),n},__webpack_require__.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=16)}([function(e,n){e.exports=require("react")},function(e,n){e.exports=require("prop-types")},function(e,n){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function toString(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,a){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(a)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var r=0;r<e.length;r++){var c=[].concat(e[r]);a&&o[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}},function(e,n){e.exports=require("@red-unica/libreria-svg")},function(e,n,t){"use strict";var a=function isOldIE(){var e;return function memorize(){return void 0===e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),o=function getTarget(){var e={};return function memorize(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function getIndexByIdentifier(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function modulesToDom(e,n){for(var t={},a=[],o=0;o<e.length;o++){var l=e[o],r=n.base?l[0]+n.base:l[0],c=t[r]||0,s="".concat(r," ").concat(c);t[r]=c+1;var d=getIndexByIdentifier(s),u={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(i[d].references++,i[d].updater(u)):i.push({identifier:s,updater:addStyle(u,n),references:1}),a.push(s)}return a}function insertStyleElement(e){var n=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var i=t.nc;i&&(a.nonce=i)}if(Object.keys(a).forEach((function(e){n.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(n);else{var l=o(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(n)}return n}var l=function replaceText(){var e=[];return function replace(n,t){return e[n]=t,e.filter(Boolean).join("\n")}}();function applyToSingletonTag(e,n,t,a){var o=t?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=l(n,o);else{var i=document.createTextNode(o),r=e.childNodes;r[n]&&e.removeChild(r[n]),r.length?e.insertBefore(i,r[n]):e.appendChild(i)}}function applyToTag(e,n,t){var a=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var r=null,c=0;function addStyle(e,n){var t,a,o;if(n.singleton){var i=c++;t=r||(r=insertStyleElement(n)),a=applyToSingletonTag.bind(null,t,i,!1),o=applyToSingletonTag.bind(null,t,i,!0)}else t=insertStyleElement(n),a=applyToTag.bind(null,t,n),o=function remove(){!function removeStyleElement(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return a(e),function updateStyle(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;a(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=a());var t=modulesToDom(e=e||[],n);return function update(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<t.length;a++){var o=getIndexByIdentifier(t[a]);i[o].references--}for(var l=modulesToDom(e,n),r=0;r<t.length;r++){var c=getIndexByIdentifier(t[r]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}t=l}}}},function(e,n){e.exports=require("react-number-format")},function(e,n){e.exports=require("react-visibility-sensor")},function(e,n,t){var a=t(5),o=t(9);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};a(o,i);e.exports=o.locals||{}},function(e,n,t){"use strict";t.r(n);var a=t(3),o=t.n(a)()((function(e){return e[1]}));o.push([e.i,"@media screen and (max-width: 767px)and (pointer: coarse){#etiqueta-clientes-eyd.contenedor-etiqueta-clientes{height:3.4375vh;padding:.625vh 2.2222222222vw .625vh 2.2222222222vw;border-width:.15625vh .2777777778vw;border-radius:3.6111111111vw}#etiqueta-clientes-eyd.contenedor-etiqueta-clientes>.icono-etiqueta-clientes{height:2.03125vh;width:15%}#etiqueta-clientes-eyd.contenedor-etiqueta-clientes>.numero-leyenda-etiqueta-clientes{height:2.1875vh;width:83%}}",""]),n.default=o},function(e,n,t){var a=t(5),o=t(11);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};a(o,i);e.exports=o.locals||{}},function(e,n,t){"use strict";t.r(n);var a=t(3),o=t.n(a)()((function(e){return e[1]}));o.push([e.i,"@media screen and (max-width: 767px)and (pointer: coarse){#etiqueta-semana-eyd.contenedor-etiqueta-semana-desempenio-movil{height:3.125vh}#etiqueta-semana-eyd.contenedor-etiqueta-semana-desempenio-movil>div{height:3.125vh;width:25.8333333333vw;padding:.78125vh 0 0 3.8888888889vw;border-radius:0 13.8888888889vw 7.8125vh 0}}",""]),n.default=o},function(e,n,t){var a=t(5),o=t(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};a(o,i);e.exports=o.locals||{}},function(e,n,t){"use strict";t.r(n);var a=t(3),o=t.n(a)()((function(e){return e[1]}));o.push([e.i,"@media screen and (max-width: 767px)and (pointer: coarse){#boton-desplegar-contraer-eyd.icono-mayor-boton-desplegar{width:3.0555555556vw;height:1.875vh;margin-left:3.8888888889vw}}",""]),n.default=o},function(e,n,t){var a=t(5),o=t(15);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};a(o,i);e.exports=o.locals||{}},function(e,n,t){"use strict";t.r(n);var a=t(3),o=t.n(a)()((function(e){return e[1]}));o.push([e.i,"@media screen and (max-width: 767px)and (pointer: coarse){#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-control{width:100%;padding:0}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-control>.menu-desplegable-opcion-seleccionada{width:100%;height:100%;padding-left:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-control>.menu-desplegable-opcion-seleccionada>.menu-desplegable-texto-numerico-espaciado-izquierdo{padding-left:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-control>div>.menu-desplegable-flechita{width:3.8888888889vw;margin-right:2.3166666667vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-borde-inferior{height:1.09375vh;width:100%;border:.5555555556vw solid #000f08;border-top:none !important}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha{width:100%;z-index:1;overflow-y:scroll;box-shadow:0 2.7777777778vw 1em -0.4em #cccdce;max-height:42.03125vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado>.menu-desplegable-opcion{padding-top:2.65625vh;padding-bottom:2.65625vh;border-bottom-width:.15625vh;border-bottom-style:inset;margin-left:2.7777777778vw;margin-right:2.7777777778vw;padding-left:4.1666666667vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado>.menu-desplegable-opcion>.menu-desplegable-texto-numerico-espaciado-derecho{padding-right:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado>.menu-desplegable-opcion>.menu-desplegable-texto-numerico-espaciado-derecho>.menu-desplegable-texto-numerico-espaciado-izquierdo{padding-left:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado-dos>.menu-desplegable-opcion{padding-top:2.65625vh;padding-bottom:2.65625vh;border-bottom-width:.15625vh;border-bottom-style:inset;margin-left:2.7777777778vw;margin-right:2.7777777778vw;padding-left:4.1666666667vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado-dos>.menu-desplegable-opcion>.menu-desplegable-texto-numerico-espaciado-derecho{padding-right:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha>.menu-desplegable-elemento-seleccionado-dos>.menu-desplegable-opcion>.menu-desplegable-texto-numerico-espaciado-derecho>.menu-desplegable-texto-numerico-espaciado-izquierdo{padding-left:2.7777777778vw}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion{box-shadow:0 -2.7777777778vw 1em -0.4em #cccdce !important}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1{margin-top:-13.59375vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2{margin-top:-21.25vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2.orientacion-3{margin-top:-28.90625vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2.orientacion-3.orientacion-4{margin-top:-36.5625vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2.orientacion-3.orientacion-4.orientacion-5{margin-top:-44.21875vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2.orientacion-3.orientacion-4.orientacion-5.orientacion-5-mas{margin-top:-47.96875vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-opciones-flecha.orientacion.orientacion-1.orientacion-2.orientacion-3.orientacion-4.orientacion-5.orientacion-5-mas.posicion-flecha{width:100%;padding-top:1.25vh;padding-bottom:1.25vh}#lista-desplegable-eyd.lista-desplegable-eyd>.menu-desplegable-componente-selector>.menu-desplegable-texto-ayuda{margin-top:1.40625vh}}",""]),n.default=o},function(e,n,t){"use strict";t.r(n),t.d(n,"EtiquetaClientes",(function(){return v})),t.d(n,"EtiquetaSemana",(function(){return h})),t.d(n,"BotonDesplegarContraer",(function(){return w})),t.d(n,"ListaDesplegable",(function(){return T})),t.d(n,"FormatoCantidad",(function(){return FormatoCantidad}));var a=t(0),o=t.n(a),i=t(1),l=t.n(i),r=t(6),FormatoCantidad=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return o.a.createElement(r.NumericFormat,{value:e,displayType:"text",thousandSeparator:!0,prefix:n,suffix:t})},c=t(4),s=3,d=4,u=5,p=7,m=864e5,g="lista-desplegable-eyd",b=function condicionTernaria(e,n,t){return e?n:t},f=(t(8),function EtiquetaClientes(e){var n=e.numeroClientes;return o.a.createElement("div",{id:"etiqueta-clientes-eyd",className:"hereda-ancho borde-solido borde-p6 elemento-flexible alinear-contenido-laterales contenedor-etiqueta-clientes"},o.a.createElement("div",{className:"icono-etiqueta-clientes"},o.a.createElement(c.IconoUsuarioSinRostro,null)),o.a.createElement("div",{className:"cuerpo-3 negritas letra-p6 elemento-flexible alinear-elementos-final alinear-contenido-centro numero-leyenda-etiqueta-clientes"},FormatoCantidad(n)," cliente".concat(b(1===Number(n),"","s"))))});f.propTypes={numeroClientes:l.a.string.isRequired};var v=f,h=(t(10),function EtiquetaSemana(){return o.a.createElement("div",{id:"etiqueta-semana-eyd",className:"fondo-p2 contenedor-etiqueta-semana-desempenio-movil"},o.a.createElement("div",{className:"fondo-p4 cuerpo-3 flotar-elemento-izquierda"},"Semana"," ",o.a.createElement("span",{className:"negritas"},function obtenerSemana(){var e=new Date;return e.setHours(0,0,0,0),e.setUTCDate(e.getUTCDate()+d-(e.getUTCDay()||p)),Math.ceil(((e-new Date(e.getUTCFullYear(),0,1))/m+1)/p)}())))}),y=t(2),_=t.n(y),x=(t(12),function BotonDesplegarContraer(e){var n=e.leyenda,t=e.eventoClic,a=e.alto,i=void 0===a?0:a,l=o.a.useState(!1),r=_()(l,2),d=r[0],u=r[1];return o.a.createElement("button",{className:"secundario ".concat(function altoBoton(){return 0===i?"d2":"d1"}()," fondo-s27"),onClick:function onClick(){!function mostrarOcultar(){u(!d)}(),t()}},n,o.a.createElement("div",{id:"boton-desplegar-contraer-eyd",className:"icono-mayor-boton-desplegar"},o.a.createElement(c.IconoMayor,{orientacion:b(d,s,1)})))});x.propTypes={leyenda:l.a.string.isRequired,eventoClic:l.a.func.isRequired,alto:l.a.number};var w=x,q=t(7),E=t.n(q),N=(t(14),function ListaDesplegable(e){var n,t=e.listaOpciones,a=e.eventoCambio,i=e.textoAyuda,l=void 0===i?null:i,r=e.mostrarAyuda,s=void 0!==r&&r,d=e.valorDefecto,p=void 0===d?null:d,m=o.a.useState(""),b=_()(m,2),f=b[0],v=b[1],h=o.a.useState(""),y=_()(h,2),x=y[0],w=y[1],q=o.a.useState(""),N=_()(q,2),T=N[0],C=N[1],k=o.a.useState(!0),M=_()(k,2),D=M[0],I=M[1],O=o.a.useState(t),j=_()(O,2),B=j[0],A=j[1],z=o.a.useState(),L=_()(z,2),R=L[0],U=L[1];o.a.useEffect((function(){A(t),U(t.find((function(e){return e.valor===p})))}),[t,p]);var F=function cambiarSeleccion(e){U(B[e.id-1]),a(B[e.id-1])};o.a.useEffect((function(){!function condicionalEstiloOrientacion(){n=t.length<=u?"orientacion-".concat(t.length," orientacion direccion-elemento-flexible-columna elemento-flexible"):"orientacion-5-mas orientacion direccion-elemento-flexible-columna elemento-flexible"}(),f&&C(T!==n&&D?"":n)}),[f,D]),o.a.useEffect((function(){v(!1)}),[R]);var P=function llenarLista(e,n,a){var i,l;for(i=n;i<a&&(l=(null==R?void 0:R.valor)===i+1?"negritas menu-desplegable-elemento-seleccionado fondo-vd2":"menu-desplegable-elemento-seleccionado-dos",e.push(o.a.createElement("div",{className:l,key:t[i].valor},o.a.createElement("div",{id:t[i].valor,className:"cuerpo-3 hereda-ancho menu-desplegable-opcion borde-vd4",onClick:function onClick(e){return F(e.currentTarget)}},o.a.createElement("div",{className:"menu-desplegable-texto-numerico-espaciado-derecho mostrar-elemento-en-linea-por-bloque-flex"},t[i].texto,t[i].textoNegritas&&o.a.createElement("div",{className:"mostrar-elemento-en-linea-por-bloque-flex menu-desplegable-texto-numerico-espaciado-izquierdo negritas"},FormatoCantidad(t[i].textoNegritas)))))),i!==t.length-1);i++);};return o.a.useEffect((function(){var e=[];P(e,0,u),t.length<=u||P(e,u,t.length),w(e)}),[f]),o.a.createElement("div",{id:g,className:"lista-desplegable-eyd ancho-total"},o.a.createElement("div",{className:"menu-desplegable-componente-selector cursor-puntero quitar-contorno hereda-ancho posicion-relativa",tabIndex:1,onBlur:function onBlur(){return function cerrarLista(){C(""),v(!1)}()},onClick:function onClick(){return function desplegarLista(){v(!0)}()}},o.a.createElement("div",{className:"menu-desplegable-control elemento-flexible alinear-contenido-flexible-al-inicio"},o.a.createElement("div",{className:"menu-desplegable-opcion-seleccionada"},o.a.createElement("div",null,o.a.createElement("div",{className:"mostrar-elemento-en-linea-por-bloque-flex"},!R&&l&&o.a.createElement("div",{className:"letra-vd5"},o.a.createElement("div",{className:"cuerpo-3"},l)),R&&o.a.createElement("div",null,o.a.createElement("div",{className:"cuerpo-3"},R.texto)),R&&R.textoNegritas&&o.a.createElement("div",{className:"mostrar-elemento-en-linea-por-bloque-flex menu-desplegable-texto-numerico-espaciado-izquierdo"},o.a.createElement("h4",{className:"numerico"},FormatoCantidad(R.textoNegritas)))))),o.a.createElement("div",{className:"elemento-flexible "},o.a.createElement("div",{className:"menu-desplegable-flechita"},o.a.createElement(c.IconoMayor,{color:2,orientacion:1})))),o.a.createElement("div",{className:"menu-desplegable-borde-inferior"}),f&&o.a.createElement(E.a,{onChange:function enCambio(e){I(e)}},o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"menu-desplegable-opciones-flecha fondo-p4 posicion-absoluta ".concat(T)},x))),S(f,s,l)))}),S=function pintarAyuda(e,n,t){return!e&&n&&o.a.createElement("div",{className:"menu-desplegable-texto-ayuda etiqueta-1"},t)};N.propTypes={listaOpciones:l.a.array.isRequired,eventoCambio:l.a.func.isRequired,textoAyuda:l.a.string,mostrarAyuda:l.a.bool,valorDefecto:l.a.any};var T=N}]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-unica/libreria-componentes-moviles",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Componentes React y archivos SASS genéricos para la versión móvil de Red Única (SAC).",
5
5
  "author": "Gerson Sierra",
6
6
  "license": "ISC",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
26
- "@babel/plugin-transform-runtime": "^7.12.1",
27
- "@babel/preset-env": "^7.15.8",
28
- "@babel/preset-react": "^7.14.5",
26
+ "@babel/plugin-transform-runtime": "^7.24.3",
27
+ "@babel/preset-env": "^7.24.4",
28
+ "@babel/preset-react": "^7.24.1",
29
29
  "@stryker-mutator/core": "^7.3.0",
30
30
  "@stryker-mutator/jest-runner": "^7.3.0",
31
31
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.5",
@@ -39,26 +39,28 @@
39
39
  "prop-types": "^15.8.1",
40
40
  "react": "^17.0.2",
41
41
  "react-dom": "^17.0.2",
42
- "react-scripts": "^5.0.1",
43
42
  "babel-loader": "^8.3.0",
44
- "mini-css-extract-plugin": "^0.9.0",
45
- "clean-webpack-plugin": "^0.1.19",
46
- "css-loader": "3.4.2",
43
+ "mini-css-extract-plugin": "^1.6.2",
44
+ "clean-webpack-plugin": "^1.0.1",
45
+ "css-loader": "^5.2.7",
47
46
  "path": "^0.12.7",
48
47
  "red-unica": "2.7.0",
49
- "sass": "^1.57.1",
50
- "sass-loader": "^10.1.0",
51
- "style-loader": "^2.0.0",
52
- "webpack": "^4.12.1",
53
- "webpack-cli": "^3.0.8",
54
- "webpack-dev-server": "^3.1.4",
55
- "webpack-node-externals": "^2.5.2",
56
- "terser-webpack-plugin": "^4.2.3"
57
- },
48
+ "sass": "^1.75.0",
49
+ "sass-loader": "^10.5.2",
50
+ "style-loader": "^1.3.0",
51
+ "webpack": "^4.47.0",
52
+ "webpack-cli": "^4.10.0",
53
+ "webpack-node-externals": "^3.0.0",
54
+ "terser-webpack-plugin": "^4.2.3",
55
+ "jest-environment-jsdom": "^29.7.0",
56
+ "jest-environment-jsdom-global": "^3.1.2"
57
+ },
58
58
  "files": [
59
59
  "dist"
60
60
  ],
61
61
  "dependencies": {
62
- "@red-unica/libreria-svg": "1.24.0"
62
+ "@red-unica/libreria-svg": "1.25.0",
63
+ "react-number-format": "5.3.4",
64
+ "react-visibility-sensor": "5.1.1"
63
65
  }
64
66
  }