siam-ui-utils 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist_browser/CustomBootstrap.js +23 -0
  2. package/dist_browser/CustomBootstrap.jsx +11 -0
  3. package/dist_browser/CustomSelectInput.js +23 -0
  4. package/dist_browser/CustomSelectInput.jsx +22 -0
  5. package/dist_browser/IntlMessages.js +20 -0
  6. package/dist_browser/IntlMessages.jsx +8 -0
  7. package/dist_browser/constants/defaultValues.js +9 -0
  8. package/dist_browser/iconos/anular-ayuda-icon.js +27 -0
  9. package/dist_browser/iconos/anular-ayuda-icon.jsx +41 -0
  10. package/dist_browser/iconos/asesoria-burbuja-button.js +11 -0
  11. package/dist_browser/iconos/asesoria-burbuja-button.jsx +41 -0
  12. package/dist_browser/iconos/asesoria-burbuja-icon.js +11 -0
  13. package/dist_browser/iconos/asesoria-burbuja-icon.jsx +41 -0
  14. package/dist_browser/iconos/atencion-presencial-icon.js +12 -0
  15. package/dist_browser/iconos/atencion-presencial-icon.jsx +52 -0
  16. package/dist_browser/iconos/atencion-telefonica-icon.js +12 -0
  17. package/dist_browser/iconos/atencion-telefonica-icon.jsx +28 -0
  18. package/dist_browser/iconos/atencion-turno-telefonico-icon.js +12 -0
  19. package/dist_browser/iconos/atencion-turno-telefonico-icon.jsx +31 -0
  20. package/dist_browser/iconos/atencion-virtual-icon.js +12 -0
  21. package/dist_browser/iconos/atencion-virtual-icon.jsx +26 -0
  22. package/dist_browser/iconos/biblioteca-burbuja-button.js +13 -0
  23. package/dist_browser/iconos/biblioteca-burbuja-button.jsx +26 -0
  24. package/dist_browser/iconos/biblioteca-burbuja-icon.js +11 -0
  25. package/dist_browser/iconos/biblioteca-burbuja-icon.jsx +28 -0
  26. package/dist_browser/iconos/cancelar-turno-icon.js +11 -0
  27. package/dist_browser/iconos/cancelar-turno-icon.jsx +21 -0
  28. package/dist_browser/iconos/codigo-verificacion-icon.js +12 -0
  29. package/dist_browser/iconos/codigo-verificacion-icon.jsx +25 -0
  30. package/dist_browser/iconos/constants-svg.js +21 -0
  31. package/dist_browser/iconos/curso-autogestionado-color-icon.js +12 -0
  32. package/dist_browser/iconos/curso-autogestionado-color-icon.jsx +117 -0
  33. package/dist_browser/iconos/curso-autogestionado-icon.js +12 -0
  34. package/dist_browser/iconos/curso-autogestionado-icon.jsx +34 -0
  35. package/dist_browser/iconos/curso-burbuja-button.js +15 -0
  36. package/dist_browser/iconos/curso-burbuja-button.jsx +20 -0
  37. package/dist_browser/iconos/curso-burbuja-icon.js +11 -0
  38. package/dist_browser/iconos/curso-burbuja-icon.jsx +34 -0
  39. package/dist_browser/iconos/curso-presencial-color-icon.js +12 -0
  40. package/dist_browser/iconos/curso-presencial-color-icon.jsx +135 -0
  41. package/dist_browser/iconos/curso-presencial-icon.js +12 -0
  42. package/dist_browser/iconos/curso-presencial-icon.jsx +48 -0
  43. package/dist_browser/iconos/curso-virtual-color-icon.js +12 -0
  44. package/dist_browser/iconos/curso-virtual-color-icon.jsx +57 -0
  45. package/dist_browser/iconos/curso-virtual-icon.js +12 -0
  46. package/dist_browser/iconos/curso-virtual-icon.jsx +26 -0
  47. package/dist_browser/iconos/delegaciones-icon.js +11 -0
  48. package/dist_browser/iconos/delegaciones-icon.jsx +44 -0
  49. package/dist_browser/iconos/forgot-dni-icon.js +12 -0
  50. package/dist_browser/iconos/forgot-dni-icon.jsx +22 -0
  51. package/dist_browser/iconos/forgot-password-icon.js +12 -0
  52. package/dist_browser/iconos/forgot-password-icon.jsx +23 -0
  53. package/dist_browser/iconos/icon-button-svg.js +28 -0
  54. package/dist_browser/iconos/icon-button-svg.jsx +29 -0
  55. package/dist_browser/iconos/index.js +57 -0
  56. package/dist_browser/iconos/lapiz-act-contacto-perf-button.js +14 -0
  57. package/dist_browser/iconos/lapiz-act-contacto-perf-button.jsx +24 -0
  58. package/dist_browser/iconos/styled-icon.js +24 -0
  59. package/dist_browser/iconos/styled-icon.jsx +12 -0
  60. package/dist_browser/iconos/user/styled-icon.js +25 -0
  61. package/dist_browser/iconos/user/styled-icon.jsx +13 -0
  62. package/dist_browser/iconos/verificar-sin-verificar-icon.js +14 -0
  63. package/dist_browser/iconos/verificar-sin-verificar-icon.jsx +18 -0
  64. package/dist_browser/iconos/verificar-verificado-icon.js +11 -0
  65. package/dist_browser/iconos/verificar-verificado-icon.jsx +15 -0
  66. package/dist_browser/iconos/whatsapp-icon-button.js +13 -0
  67. package/dist_browser/iconos/whatsapp-icon-button.jsx +23 -0
  68. package/dist_browser/index.js +20 -0
  69. package/{src/CustomBootstrap.tsx → dist_browser/src/CustomBootstrap.js} +3 -3
  70. package/{src/CustomSelectInput.tsx → dist_browser/src/CustomSelectInput.js} +3 -4
  71. package/dist_browser/src/IntlMessages.tsx +1 -1
  72. package/{src/iconos/anular-ayuda-icon.tsx → dist_browser/src/iconos/anular-ayuda-icon.jsx} +3 -3
  73. package/{src/iconos/asesoria-burbuja-button.tsx → dist_browser/src/iconos/asesoria-burbuja-button.jsx} +2 -2
  74. package/{src/iconos/asesoria-burbuja-icon.tsx → dist_browser/src/iconos/asesoria-burbuja-icon.jsx} +2 -2
  75. package/{src/iconos/atencion-presencial-icon.tsx → dist_browser/src/iconos/atencion-presencial-icon.jsx} +2 -2
  76. package/{src/iconos/atencion-telefonica-icon.tsx → dist_browser/src/iconos/atencion-telefonica-icon.jsx} +2 -2
  77. package/{src/iconos/atencion-turno-telefonico-icon.tsx → dist_browser/src/iconos/atencion-turno-telefonico-icon.jsx} +2 -2
  78. package/{src/iconos/atencion-virtual-icon.tsx → dist_browser/src/iconos/atencion-virtual-icon.jsx} +2 -2
  79. package/{src/iconos/biblioteca-burbuja-button.tsx → dist_browser/src/iconos/biblioteca-burbuja-button.jsx} +2 -2
  80. package/{src/iconos/biblioteca-burbuja-icon.tsx → dist_browser/src/iconos/biblioteca-burbuja-icon.jsx} +2 -2
  81. package/{src/iconos/cancelar-turno-icon.tsx → dist_browser/src/iconos/cancelar-turno-icon.jsx} +2 -2
  82. package/{src/iconos/codigo-verificacion-icon.tsx → dist_browser/src/iconos/codigo-verificacion-icon.jsx} +3 -3
  83. package/{src/iconos/curso-autogestionado-color-icon.tsx → dist_browser/src/iconos/curso-autogestionado-color-icon.jsx} +2 -2
  84. package/{src/iconos/curso-autogestionado-icon.tsx → dist_browser/src/iconos/curso-autogestionado-icon.jsx} +2 -2
  85. package/{src/iconos/curso-burbuja-button.tsx → dist_browser/src/iconos/curso-burbuja-button.jsx} +2 -2
  86. package/{src/iconos/curso-burbuja-icon.tsx → dist_browser/src/iconos/curso-burbuja-icon.jsx} +2 -2
  87. package/{src/iconos/curso-presencial-color-icon.tsx → dist_browser/src/iconos/curso-presencial-color-icon.jsx} +2 -2
  88. package/{src/iconos/curso-presencial-icon.tsx → dist_browser/src/iconos/curso-presencial-icon.jsx} +2 -2
  89. package/{src/iconos/curso-virtual-color-icon.tsx → dist_browser/src/iconos/curso-virtual-color-icon.jsx} +2 -2
  90. package/{src/iconos/curso-virtual-icon.tsx → dist_browser/src/iconos/curso-virtual-icon.jsx} +2 -2
  91. package/{src/iconos/delegaciones-icon.tsx → dist_browser/src/iconos/delegaciones-icon.jsx} +2 -2
  92. package/{src/iconos/forgot-dni-icon.tsx → dist_browser/src/iconos/forgot-dni-icon.jsx} +3 -3
  93. package/{src/iconos/forgot-password-icon.tsx → dist_browser/src/iconos/forgot-password-icon.jsx} +3 -3
  94. package/{src/iconos/icon-button-svg.tsx → dist_browser/src/iconos/icon-button-svg.jsx} +5 -8
  95. package/{src/iconos/lapiz-act-contacto-perf-button.tsx → dist_browser/src/iconos/lapiz-act-contacto-perf-button.jsx} +2 -2
  96. package/{src/iconos/styled-icon.tsx → dist_browser/src/iconos/styled-icon.jsx} +2 -2
  97. package/{src/iconos/user/styled-icon.tsx → dist_browser/src/iconos/user/styled-icon.jsx} +3 -5
  98. package/dist_browser/src/iconos/user/styled-timer-reenv-cod.jsx +16 -0
  99. package/{src/iconos/verificar-sin-verificar-icon.tsx → dist_browser/src/iconos/verificar-sin-verificar-icon.jsx} +2 -2
  100. package/{src/iconos/verificar-verificado-icon.tsx → dist_browser/src/iconos/verificar-verificado-icon.jsx} +2 -2
  101. package/{src/iconos/whatsapp-icon-button.tsx → dist_browser/src/iconos/whatsapp-icon-button.jsx} +2 -2
  102. package/index.d.ts +107 -0
  103. package/package.json +4 -7
  104. package/src/CustomBootstrap.js +10 -0
  105. package/src/CustomSelectInput.js +11 -0
  106. package/src/IntlMessages.tsx +1 -1
  107. package/src/iconos/anular-ayuda-icon.jsx +72 -0
  108. package/src/iconos/asesoria-burbuja-button.jsx +102 -0
  109. package/src/iconos/asesoria-burbuja-icon.jsx +102 -0
  110. package/src/iconos/atencion-presencial-icon.jsx +77 -0
  111. package/src/iconos/atencion-telefonica-icon.jsx +42 -0
  112. package/src/iconos/atencion-turno-telefonico-icon.jsx +51 -0
  113. package/src/iconos/atencion-virtual-icon.jsx +35 -0
  114. package/src/iconos/biblioteca-burbuja-button.jsx +57 -0
  115. package/src/iconos/biblioteca-burbuja-icon.jsx +65 -0
  116. package/src/iconos/cancelar-turno-icon.jsx +27 -0
  117. package/src/iconos/codigo-verificacion-icon.jsx +53 -0
  118. package/src/iconos/constants-svg.js +659 -0
  119. package/src/iconos/curso-autogestionado-color-icon.jsx +202 -0
  120. package/src/iconos/curso-autogestionado-icon.jsx +48 -0
  121. package/src/iconos/curso-burbuja-button.jsx +40 -0
  122. package/src/iconos/curso-burbuja-icon.jsx +96 -0
  123. package/src/iconos/curso-presencial-color-icon.jsx +255 -0
  124. package/src/iconos/curso-presencial-icon.jsx +70 -0
  125. package/src/iconos/curso-virtual-color-icon.jsx +108 -0
  126. package/src/iconos/curso-virtual-icon.jsx +38 -0
  127. package/src/iconos/delegaciones-icon.jsx +65 -0
  128. package/src/iconos/forgot-dni-icon.jsx +41 -0
  129. package/src/iconos/forgot-password-icon.jsx +45 -0
  130. package/src/iconos/icon-button-svg.jsx +49 -0
  131. package/src/iconos/lapiz-act-contacto-perf-button.jsx +43 -0
  132. package/src/iconos/styled-icon.jsx +25 -0
  133. package/src/iconos/user/styled-icon.jsx +22 -0
  134. package/src/iconos/user/styled-timer-reenv-cod.jsx +16 -0
  135. package/src/iconos/verificar-sin-verificar-icon.jsx +37 -0
  136. package/src/iconos/verificar-verificado-icon.jsx +29 -0
  137. package/src/iconos/whatsapp-icon-button.jsx +40 -0
  138. package/src/index.js +4 -0
  139. package/tsconfig.json +3 -6
  140. package/src/iconos/index.ts +0 -42
  141. /package/{src/iconos/constants-svg.ts → dist_browser/src/iconos/constants-svg.js} +0 -0
  142. /package/{src/index.ts → dist_browser/src/index.js} +0 -0
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const AtencionTelefonica = (props: any) => {
5
+ const AtencionTelefonica = (props) => {
6
6
  const { sublabel = '', showTitle = true } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const AtencionTurnoTelefonico = (props: any) => {
5
+ const AtencionTurnoTelefonico = (props) => {
6
6
  const { sublabel = '', isSelected = false } = props || {};
7
7
  const { size = '', width = '', height = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const AtencionVirtual = (props: any) => {
5
+ const AtencionVirtual = (props) => {
6
6
  const { sublabel = '', showTitle = true, isSelected = false } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { useHistory } from 'react-router-dom';
3
3
  import { withTheme } from 'styled-components';
4
4
  import { Icon } from './styled-icon';
5
5
 
6
- const BibliotecaBurbujaButton = (props: any) => {
6
+ const BibliotecaBurbujaButton = (props) => {
7
7
  const history = useHistory();
8
8
  const { sublabel = '', size = '' } = props || {};
9
9
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const BibliotecaBurbujaIcon = (props: any) => {
5
+ const BibliotecaBurbujaIcon = (props) => {
6
6
  const { sublabel = '', size = '', onHidden } = props || {};
7
7
  return (
8
8
  <Icon
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CancelarTurnoIcon = ({ size }: { size: any }) => (
5
+ const CancelarTurnoIcon = ({ size }) => (
6
6
  <Icon width={size}>
7
7
  <svg
8
8
  version="1.1"
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon } from './user/styled-icon';
3
+ import { Icon } from './user/styled-icon';
4
4
 
5
- const CodigoVerificacionIcon = (props: any) => {
5
+ const CodigoVerificacionIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { width, height } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoAutogestionadoColor = (props: any) => {
5
+ const CursoAutogestionadoColor = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoAutogestionado = (props: any) => {
5
+ const CursoAutogestionado = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { useHistory } from 'react-router-dom';
3
3
  import { withTheme } from 'styled-components';
4
4
  import { Icon } from './styled-icon';
5
5
 
6
- const CursoBurbujaButton = (props: any) => {
6
+ const CursoBurbujaButton = (props) => {
7
7
  const history = useHistory();
8
8
  const { sublabel = '', size = '' } = props || {};
9
9
 
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoBurbujaIcon = (props: any) => {
5
+ const CursoBurbujaIcon = (props) => {
6
6
  const { sublabel = '', size = '', onHidden } = props || {};
7
7
  return (
8
8
  <Icon
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoPresencialColor = (props: any) => {
5
+ const CursoPresencialColor = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoPresencial = (props: any) => {
5
+ const CursoPresencial = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoVirtualColor = (props: any) => {
5
+ const CursoVirtualColor = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const CursoVirtual = (props: any) => {
5
+ const CursoVirtual = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { size = '' } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const DelegacionesIcon = (props: any) => {
5
+ const DelegacionesIcon = (props) => {
6
6
  const { sublabel = '', size = '' } = props || {};
7
7
 
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon } from './user/styled-icon';
3
+ import { Icon } from './user/styled-icon';
4
4
 
5
- const ForgotDniIcon = (props: any) => {
5
+ const ForgotDniIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { width, height } = props || {};
8
8
  return (
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon } from './user/styled-icon';
3
+ import { Icon } from './user/styled-icon';
4
4
 
5
- const ForgotPasswordIcon = (props: any) => {
5
+ const ForgotPasswordIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
7
7
  const { width, height } = props || {};
8
8
  return (
@@ -1,20 +1,17 @@
1
- import React = require("react");
2
- import { useState } from 'react';
1
+ import React, { useState } from 'react';
3
2
  import { withTheme } from 'styled-components';
4
3
  import { Icon } from './styled-icon';
5
4
 
6
- const useSvgToReactEncoded = (svg: any) => {
5
+ const useSvgToReactEncoded = (svg) => {
7
6
  const svgWrapperRef = React.useRef();
8
7
  React.useEffect(() => {
9
- if (svgWrapperRef && svgWrapperRef.current) {
10
- (svgWrapperRef.current as any).innerHTML = svg;
11
- }
8
+ svgWrapperRef.current.innerHTML = svg;
12
9
  }, [svg]);
13
10
 
14
11
  return svgWrapperRef;
15
12
  };
16
13
 
17
- const IconButtonSvg = (props: any) => {
14
+ const IconButtonSvg = (props) => {
18
15
  const {
19
16
  sublabel = '',
20
17
  onClick = () => {
@@ -43,7 +40,7 @@ const IconButtonSvg = (props: any) => {
43
40
  width={width}
44
41
  height={height}
45
42
  >
46
- <div ref={svgWrapperRef as any} />
43
+ <div ref={svgWrapperRef} />
47
44
  <label>{sublabel}</label>
48
45
  </Icon>
49
46
  );
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const LapizActContactoPerfilButton = (props: any) => {
5
+ const LapizActContactoPerfilButton = (props) => {
6
6
  const { sublabel = '', size = '', onOpen } = props || {};
7
7
  const handleOpen = () => {
8
8
  onOpen(true);
@@ -1,8 +1,7 @@
1
- import React from "react";
2
1
  import { styled } from 'styled-components';
3
2
 
4
3
  // eslint-disable-next-line react/react-in-jsx-scope
5
- const IconDiv = (props: any) => <div {...props} />;
4
+ const IconDiv = (props) => <div {...props} />;
6
5
 
7
6
  export const Icon = styled(IconDiv)`
8
7
  display: flex;
@@ -23,3 +22,4 @@ export const Icon = styled(IconDiv)`
23
22
  display: ${(props) => props.display || 'none'};
24
23
  }
25
24
  `;
25
+ export default Icon;
@@ -1,10 +1,9 @@
1
- import React from "react";
2
1
  import { styled } from 'styled-components';
3
2
 
4
3
  // eslint-disable-next-line react/react-in-jsx-scope
5
- const IconDiv = (props: any) => <div {...props} />;
4
+ const IconDiv = (props) => <div {...props} />;
6
5
 
7
- const UserIcon = styled(IconDiv)`
6
+ export const Icon = styled(IconDiv)`
8
7
  display: flex;
9
8
  flex-direction: column;
10
9
  justify-content: center;
@@ -20,5 +19,4 @@ const UserIcon = styled(IconDiv)`
20
19
  display: ${(props) => props.display || 'none'};
21
20
  }
22
21
  `;
23
-
24
- export { UserIcon };
22
+ export default Icon;
@@ -0,0 +1,16 @@
1
+ import { styled } from 'styled-components';
2
+ import { Label } from 'reactstrap';
3
+
4
+ export const LabelTimer = styled(Label)`
5
+ color: ${({ color }) => color};
6
+ font-family: ${({ fontFamily }) => fontFamily};
7
+ font-style: ${({ fontStyle }) => fontStyle};
8
+ font-weight: ${({ fontWeight }) => fontWeight};
9
+ font-size: ${({ fontSize }) => fontSize};
10
+ padding-left: ${({ paddingLeft }) => paddingLeft};
11
+ padding-right: ${({ paddingRight }) => paddingRight};
12
+ width: ${({ width }) => width};
13
+ text-align: ${({ textAlign }) => textAlign};
14
+ cursor: ${({ cursor }) => cursor};
15
+ `;
16
+ export default LabelTimer;
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const VerificarSinVerificarIcon = (props: any) => {
5
+ const VerificarSinVerificarIcon = (props) => {
6
6
  const { sublabel = '', size = '', onVerificar } = props || {};
7
7
  const handleVerificar = () => {
8
8
  onVerificar(true);
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const VerificarVerificadoIcon = (props: any) => {
5
+ const VerificarVerificadoIcon = (props) => {
6
6
  const { sublabel = '', size = '' } = props || {};
7
7
  return (
8
8
  <Icon width={size} display={sublabel !== '' ? 'block' : 'none'}>
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { Icon } from './styled-icon';
4
4
 
5
- const WhatsappIconButton = (props: any) => {
5
+ const WhatsappIconButton = (props) => {
6
6
  const { phone = '', width = '', height = '', sublabel = '' } = props || {};
7
7
  return (
8
8
  <Icon
package/index.d.ts ADDED
@@ -0,0 +1,107 @@
1
+ declare module "siam-utils" {
2
+ //UTILS-CURRENCY
3
+ export function currencyToNumber(
4
+ currencyValue: string,
5
+ returnZero?: boolean
6
+ ): number;
7
+
8
+ export function fieldToCurrency(field: number): string;
9
+
10
+ export function fieldToNumber(field: string): number;
11
+
12
+ export function currencyToNumber(
13
+ currencyValue: string,
14
+ returnZero?: boolean
15
+ ): number;
16
+
17
+ export function currencyToPersistence(currencyValue: string): string;
18
+
19
+ //UTILS-DATES
20
+
21
+ export function fieldToDate(field: string): Date;
22
+
23
+ export function dateToPersistence(date: Date): string;
24
+
25
+ export function periodToPersistence(date: Date): string;
26
+
27
+ export function fieldToPersistence(field: string): string;
28
+
29
+ export function dateToDisplay(date: Date, format: string): string;
30
+
31
+ export function fieldToDisplay(field: string, format: string): string;
32
+
33
+ export function fieldPeriodoToDate(field: string): Date;
34
+
35
+ export function dateToDisplayPeriodo(date: Date): string;
36
+
37
+ export function dateToDisplayDiaMes(date: string): string;
38
+
39
+ export function dateToDisplayHoraMinuto(date: string): string;
40
+
41
+ export function fieldPeriodoToDisplay(field: string): string;
42
+
43
+ export function subtractDays(date: Date, days: number): Date;
44
+
45
+ export function addDays(date: Date, days: number): Date;
46
+
47
+ export function diffDateDays(firstDate: any, secondDate: any): number;
48
+
49
+ export function truncDate(date: Date): Date;
50
+
51
+ //UTILS-ERROR
52
+ export function errorMessage(error: {
53
+ message: any;
54
+ response: { data: { message: any; error: any } };
55
+ }): string;
56
+
57
+ //UTILS-NUMBER
58
+
59
+ export function numberToDisplay(
60
+ number: number,
61
+ fractionDigits: number
62
+ ): string;
63
+
64
+ export function numberToDisplayCurrency(number: number): string;
65
+
66
+ export function numberToPersistence(number: string): string | null;
67
+
68
+ export function numberToStringifyPersistence(number: number): string;
69
+
70
+ export function comprobanteToPersistence(comprobanteStr: string): string;
71
+
72
+ //UTILS-PERCENT
73
+
74
+ export function insertSimbol(
75
+ field: string,
76
+ simbol: string,
77
+ position?: string
78
+ ): string;
79
+
80
+ export function persistenceToDisplayPercent(
81
+ field: string,
82
+ position?: string
83
+ ): string;
84
+
85
+ //UTILS
86
+
87
+ export function mapOrder(array: any, order: any, key: any): any;
88
+
89
+ export function getDateWithFormat(): string;
90
+
91
+ export function getCurrentTime(): string;
92
+
93
+ export function idAyudaToKeyAyuda(idAyuda: string): any;
94
+
95
+ export const isLocalhost: boolean;
96
+
97
+ //UTILS-BOOLEAN
98
+
99
+ export function booleanToPersistence(valueBoolean: boolean): string;
100
+
101
+ export function persistenceToBoolean(valueChar: string): boolean;
102
+
103
+ //AUTH-HEADER
104
+ export function authHeader(): any;
105
+
106
+ export function getAuthUser(): any;
107
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -9,8 +9,8 @@
9
9
  "author": "Ampf Development Team",
10
10
  "license": "MIT",
11
11
  "description": "Conjunto de librerias de componentes utiles para AMPF",
12
- "main": "dist_node/index.js",
13
- "browser": "dist_browser/index.js",
12
+ "main": "dist_browser/index.ts",
13
+ "browser": "dist_browser/index.ts",
14
14
  "types": "dist_browser/index",
15
15
  "homepage": "https://github.com/ampfgit/siam-ui-utils#readme",
16
16
  "repository": {
@@ -19,11 +19,8 @@
19
19
  },
20
20
  "moduleResolution": "nodenext",
21
21
  "scripts": {
22
- "build-browser": "npx tsc src/index.ts --jsx react --outDir dist_browser",
23
- "build": "npm run build-node & npm run build-browser",
22
+ "build-browser": "npx tsc src/index.js --outDir dist_browser",
24
23
  "cpToDistBrowser": "copyfiles --all src/**/*.* dist_browser",
25
- "test": "vitest --clearScreen",
26
- "test-without-stopping": "vitest --clearScreen --run",
27
24
  "publish-npm": "npm run cpToDistBrowser & npm publish"
28
25
  },
29
26
  "dependencies": {
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Col } from 'reactstrap';
3
+
4
+ const Colxx = (props) => (
5
+ <Col {...props} widths={['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']} />
6
+ );
7
+ const Separator = ({ className }) => (
8
+ <div className={`separator ${className}`} />
9
+ );
10
+ export { Colxx, Separator };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { components } from 'react-select';
3
+
4
+ const CustomSelectInput = (props) => {
5
+ const customProps = { ...props };
6
+ delete customProps.autoCorrect;
7
+ delete customProps.autoCapitalize;
8
+ return <components.Input {...customProps} />;
9
+ };
10
+
11
+ export default CustomSelectInput;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+
2
2
  import { FormattedMessage, injectIntl } from 'react-intl';
3
3
 
4
4
  const _InjectMassage = (props: any) => <FormattedMessage {...props} />;
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import { withTheme } from 'styled-components';
3
+ import { useHistory } from 'react-router-dom';
4
+ import { Icon } from './styled-icon';
5
+ import { tipoServicioEconomico } from '../../constants/defaultValues';
6
+
7
+ const AnularAyudaIcon = (props) => {
8
+ const { AYUDAS_ECONOMICAS } = tipoServicioEconomico;
9
+ const { sublabel = '', size = '', title } = props || {};
10
+ const sublabeldisplay = sublabel.length > 0 ? 'block' : undefined;
11
+ const {
12
+ codDelegacion,
13
+ nroSolicitud,
14
+ cbuPago,
15
+ fechaVtoTramite,
16
+ netoFinal,
17
+ fechaAcreditacion,
18
+ } = props || {};
19
+ const history = useHistory();
20
+
21
+ return (
22
+ <Icon
23
+ width={size}
24
+ sublabeldisplay={sublabeldisplay}
25
+ title={title}
26
+ onClick={() =>
27
+ history.push('/app/econo/ayudas/desestimiento', {
28
+ codDelegacion: codDelegacion,
29
+ nroSolicitud: nroSolicitud,
30
+ cbuPago: cbuPago,
31
+ fechaVtoTramite: fechaVtoTramite,
32
+ netoFinal: netoFinal,
33
+ fechaAcreditacion: fechaAcreditacion,
34
+ tipoServicio: AYUDAS_ECONOMICAS,
35
+ })
36
+ }
37
+ >
38
+ <svg
39
+ version="1.1"
40
+ baseProfile="basic"
41
+ id="Capa_1"
42
+ xmlns="http://www.w3.org/2000/svg"
43
+ x="0px"
44
+ y="0px"
45
+ width="18.415px"
46
+ height="17.471px"
47
+ viewBox="0 0 18.415 17.471"
48
+ >
49
+ <g>
50
+ <path
51
+ fill="#CECECE"
52
+ d="M15.855,2.54C14.206,0.892,12.016,0,9.65,0c-2.27,0-4.402,0.834-6.013,2.366L3.153,2.851L2.106,1.804
53
+ C1.835,1.532,1.389,1.668,1.293,2.036L0.012,7.271c-0.077,0.351,0.233,0.66,0.582,0.582L5.85,6.574
54
+ C6.218,6.477,6.334,6.031,6.081,5.76L4.86,4.537l0.503-0.504c2.502-2.287,6.361-2.21,8.785,0.214
55
+ c1.357,1.358,2.017,3.219,1.823,5.138c-0.193,1.9-1.242,3.607-2.852,4.693c-2.269,1.492-5.43,1.299-7.523-0.465
56
+ c-0.602-0.506-1.086-1.105-1.474-1.766c-0.078-0.135-0.232-0.213-0.349-0.156l-1.727,0.719c-0.077,0.039-0.136,0.098-0.174,0.174
57
+ c-0.02,0.078-0.02,0.154,0.019,0.215c0.389,0.756,0.894,1.434,1.494,2.055c1.686,1.727,3.994,2.617,6.302,2.617
58
+ c1.862,0,3.724-0.582,5.255-1.746c2.036-1.551,3.276-3.877,3.451-6.398C18.569,6.787,17.638,4.324,15.855,2.54L15.855,2.54z"
59
+ />
60
+ <path
61
+ fill="#CECECE"
62
+ d="M10.405,4.537H8.893c-0.154,0-0.29,0.137-0.29,0.292v4.363c0,0.369,0.232,0.678,0.563,0.813l3.297,1.184
63
+ c0.154,0.059,0.329-0.018,0.367-0.174l0.504-1.416c0.021-0.076,0.021-0.154-0.019-0.232C13.275,9.29,13.217,9.25,13.14,9.211
64
+ l-2.21-0.795c-0.155-0.059-0.272-0.213-0.272-0.388V4.829C10.697,4.653,10.58,4.537,10.405,4.537L10.405,4.537z"
65
+ />
66
+ </g>
67
+ </svg>
68
+ </Icon>
69
+ );
70
+ };
71
+ AnularAyudaIcon.defaultProps = { theme: {} };
72
+ export default withTheme(AnularAyudaIcon);