siam-ui-utils 1.0.23 → 1.1.1

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 (74) hide show
  1. package/.eslintrc.json +23 -1
  2. package/dist_browser/src/{anular-ayuda-icon.jsx → iconos/anular-ayuda-icon.jsx} +2 -4
  3. package/{src → dist_browser/src/iconos}/codigo-verificacion-icon.jsx +1 -1
  4. package/dist_browser/src/{forgot-dni-icon.jsx → iconos/forgot-dni-icon.jsx} +1 -1
  5. package/{src → dist_browser/src/iconos}/forgot-password-icon.jsx +1 -1
  6. package/dist_browser/src/iconos/index.js +31 -0
  7. package/dist_browser/src/index.js +1 -33
  8. package/package.json +1 -1
  9. package/src/{anular-ayuda-icon.jsx → iconos/anular-ayuda-icon.jsx} +2 -4
  10. package/{dist_browser/src → src/iconos}/codigo-verificacion-icon.jsx +1 -1
  11. package/src/{forgot-dni-icon.jsx → iconos/forgot-dni-icon.jsx} +1 -1
  12. package/{dist_browser/src → src/iconos}/forgot-password-icon.jsx +1 -1
  13. package/src/iconos/index.js +31 -0
  14. package/src/index.js +1 -33
  15. package/dist_browser/src/CustomBootstrap.js +0 -10
  16. package/dist_browser/src/CustomSelectInput.js +0 -11
  17. package/dist_browser/src/commons/defaultValues.js +0 -22
  18. package/dist_browser/src/constants/defaultValues.js +0 -7
  19. package/src/commons/defaultValues.js +0 -22
  20. package/src/constants/defaultValues.js +0 -7
  21. /package/dist_browser/src/{asesoria-burbuja-button.jsx → iconos/asesoria-burbuja-button.jsx} +0 -0
  22. /package/dist_browser/src/{asesoria-burbuja-icon.jsx → iconos/asesoria-burbuja-icon.jsx} +0 -0
  23. /package/dist_browser/src/{atencion-presencial-icon.jsx → iconos/atencion-presencial-icon.jsx} +0 -0
  24. /package/dist_browser/src/{atencion-telefonica-icon.jsx → iconos/atencion-telefonica-icon.jsx} +0 -0
  25. /package/dist_browser/src/{atencion-turno-telefonico-icon.jsx → iconos/atencion-turno-telefonico-icon.jsx} +0 -0
  26. /package/dist_browser/src/{atencion-virtual-icon.jsx → iconos/atencion-virtual-icon.jsx} +0 -0
  27. /package/dist_browser/src/{biblioteca-burbuja-button.jsx → iconos/biblioteca-burbuja-button.jsx} +0 -0
  28. /package/dist_browser/src/{biblioteca-burbuja-icon.jsx → iconos/biblioteca-burbuja-icon.jsx} +0 -0
  29. /package/dist_browser/src/{cancelar-turno-icon.jsx → iconos/cancelar-turno-icon.jsx} +0 -0
  30. /package/dist_browser/src/{constants-svg.js → iconos/constants-svg.js} +0 -0
  31. /package/dist_browser/src/{curso-autogestionado-color-icon.jsx → iconos/curso-autogestionado-color-icon.jsx} +0 -0
  32. /package/dist_browser/src/{curso-autogestionado-icon.jsx → iconos/curso-autogestionado-icon.jsx} +0 -0
  33. /package/dist_browser/src/{curso-burbuja-button.jsx → iconos/curso-burbuja-button.jsx} +0 -0
  34. /package/dist_browser/src/{curso-burbuja-icon.jsx → iconos/curso-burbuja-icon.jsx} +0 -0
  35. /package/dist_browser/src/{curso-presencial-color-icon.jsx → iconos/curso-presencial-color-icon.jsx} +0 -0
  36. /package/dist_browser/src/{curso-presencial-icon.jsx → iconos/curso-presencial-icon.jsx} +0 -0
  37. /package/dist_browser/src/{curso-virtual-color-icon.jsx → iconos/curso-virtual-color-icon.jsx} +0 -0
  38. /package/dist_browser/src/{curso-virtual-icon.jsx → iconos/curso-virtual-icon.jsx} +0 -0
  39. /package/dist_browser/src/{delegaciones-icon.jsx → iconos/delegaciones-icon.jsx} +0 -0
  40. /package/dist_browser/src/{icon-button-svg.jsx → iconos/icon-button-svg.jsx} +0 -0
  41. /package/dist_browser/src/{lapiz-act-contacto-perf-button.jsx → iconos/lapiz-act-contacto-perf-button.jsx} +0 -0
  42. /package/dist_browser/src/{styled-icon.jsx → iconos/styled-icon.jsx} +0 -0
  43. /package/dist_browser/src/{styled-timer-reenv-cod.jsx → iconos/styled-timer-reenv-cod.jsx} +0 -0
  44. /package/dist_browser/src/{user-styled-icon.jsx → iconos/user/user-styled-icon.jsx} +0 -0
  45. /package/dist_browser/src/{verificar-sin-verificar-icon.jsx → iconos/verificar-sin-verificar-icon.jsx} +0 -0
  46. /package/dist_browser/src/{verificar-verificado-icon.jsx → iconos/verificar-verificado-icon.jsx} +0 -0
  47. /package/dist_browser/src/{whatsapp-icon-button.jsx → iconos/whatsapp-icon-button.jsx} +0 -0
  48. /package/src/{asesoria-burbuja-button.jsx → iconos/asesoria-burbuja-button.jsx} +0 -0
  49. /package/src/{asesoria-burbuja-icon.jsx → iconos/asesoria-burbuja-icon.jsx} +0 -0
  50. /package/src/{atencion-presencial-icon.jsx → iconos/atencion-presencial-icon.jsx} +0 -0
  51. /package/src/{atencion-telefonica-icon.jsx → iconos/atencion-telefonica-icon.jsx} +0 -0
  52. /package/src/{atencion-turno-telefonico-icon.jsx → iconos/atencion-turno-telefonico-icon.jsx} +0 -0
  53. /package/src/{atencion-virtual-icon.jsx → iconos/atencion-virtual-icon.jsx} +0 -0
  54. /package/src/{biblioteca-burbuja-button.jsx → iconos/biblioteca-burbuja-button.jsx} +0 -0
  55. /package/src/{biblioteca-burbuja-icon.jsx → iconos/biblioteca-burbuja-icon.jsx} +0 -0
  56. /package/src/{cancelar-turno-icon.jsx → iconos/cancelar-turno-icon.jsx} +0 -0
  57. /package/src/{constants-svg.js → iconos/constants-svg.js} +0 -0
  58. /package/src/{curso-autogestionado-color-icon.jsx → iconos/curso-autogestionado-color-icon.jsx} +0 -0
  59. /package/src/{curso-autogestionado-icon.jsx → iconos/curso-autogestionado-icon.jsx} +0 -0
  60. /package/src/{curso-burbuja-button.jsx → iconos/curso-burbuja-button.jsx} +0 -0
  61. /package/src/{curso-burbuja-icon.jsx → iconos/curso-burbuja-icon.jsx} +0 -0
  62. /package/src/{curso-presencial-color-icon.jsx → iconos/curso-presencial-color-icon.jsx} +0 -0
  63. /package/src/{curso-presencial-icon.jsx → iconos/curso-presencial-icon.jsx} +0 -0
  64. /package/src/{curso-virtual-color-icon.jsx → iconos/curso-virtual-color-icon.jsx} +0 -0
  65. /package/src/{curso-virtual-icon.jsx → iconos/curso-virtual-icon.jsx} +0 -0
  66. /package/src/{delegaciones-icon.jsx → iconos/delegaciones-icon.jsx} +0 -0
  67. /package/src/{icon-button-svg.jsx → iconos/icon-button-svg.jsx} +0 -0
  68. /package/src/{lapiz-act-contacto-perf-button.jsx → iconos/lapiz-act-contacto-perf-button.jsx} +0 -0
  69. /package/src/{styled-icon.jsx → iconos/styled-icon.jsx} +0 -0
  70. /package/src/{styled-timer-reenv-cod.jsx → iconos/styled-timer-reenv-cod.jsx} +0 -0
  71. /package/src/{user-styled-icon.jsx → iconos/user/user-styled-icon.jsx} +0 -0
  72. /package/src/{verificar-sin-verificar-icon.jsx → iconos/verificar-sin-verificar-icon.jsx} +0 -0
  73. /package/src/{verificar-verificado-icon.jsx → iconos/verificar-verificado-icon.jsx} +0 -0
  74. /package/src/{whatsapp-icon-button.jsx → iconos/whatsapp-icon-button.jsx} +0 -0
package/.eslintrc.json CHANGED
@@ -1,3 +1,25 @@
1
1
  {
2
- "extends": "react-app"
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:react/recommended",
5
+ "plugin:react-hooks/recommended"
6
+ ],
7
+ "plugins": [
8
+ "react",
9
+ "react-hooks"
10
+ ],
11
+ "parserOptions": {
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module",
14
+ "ecmaFeatures": {
15
+ "jsx": true
16
+ }
17
+ },
18
+ "env": {
19
+ "browser": true,
20
+ "es2020": true
21
+ },
22
+ "rules": {
23
+ "react/react-in-jsx-scope": "off"
24
+ }
3
25
  }
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { useHistory } from 'react-router-dom';
4
4
  import { Icon } from './styled-icon';
5
- import { tipoServicioEconomico } from './constants/defaultValues';
6
5
 
7
6
  const AnularAyudaIcon = (props) => {
8
- const { AYUDAS_ECONOMICAS } = tipoServicioEconomico;
9
- const { sublabel = '', size = '', title } = props || {};
7
+ const { sublabel = '', size = '', title, tipoServicioEconomico} = props || {};
10
8
  const sublabeldisplay = sublabel.length > 0 ? 'block' : undefined;
11
9
  const {
12
10
  codDelegacion,
@@ -31,7 +29,7 @@ const AnularAyudaIcon = (props) => {
31
29
  fechaVtoTramite: fechaVtoTramite,
32
30
  netoFinal: netoFinal,
33
31
  fechaAcreditacion: fechaAcreditacion,
34
- tipoServicio: AYUDAS_ECONOMICAS,
32
+ tipoServicio: tipoServicioEconomico,
35
33
  })
36
34
  }
37
35
  >
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon } from './user-styled-icon';
3
+ import { UserIcon as Icon } from './user/user-styled-icon';
4
4
 
5
5
  const CodigoVerificacionIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon} from './user-styled-icon';
3
+ import { UserIcon as Icon} from './user/user-styled-icon';
4
4
 
5
5
  const ForgotDniIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon} from './user-styled-icon';
3
+ import { UserIcon as Icon} from './user/user-styled-icon';
4
4
 
5
5
  const ForgotPasswordIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -0,0 +1,31 @@
1
+ export * from "./anular-ayuda-icon";
2
+ export * from "./asesoria-burbuja-button";
3
+ export * from "./asesoria-burbuja-icon";
4
+ export * from "./atencion-presencial-icon";
5
+ export * from "./atencion-telefonica-icon";
6
+ export * from "./atencion-turno-telefonico-icon";
7
+ export * from "./atencion-virtual-icon";
8
+ export * from "./biblioteca-burbuja-button";
9
+ export * from "./biblioteca-burbuja-icon";
10
+ export * from "./cancelar-turno-icon";
11
+ export * from "./codigo-verificacion-icon";
12
+ export * from "./constants-svg";
13
+ export * from "./curso-autogestionado-color-icon";
14
+ export * from "./curso-autogestionado-icon";
15
+ export * from "./curso-burbuja-button";
16
+ export * from "./curso-burbuja-icon";
17
+ export * from "./curso-presencial-color-icon";
18
+ export * from "./curso-presencial-icon";
19
+ export * from "./curso-virtual-color-icon";
20
+ export * from "./curso-virtual-icon";
21
+ export * from "./delegaciones-icon";
22
+ export * from "./forgot-dni-icon";
23
+ export * from "./forgot-password-icon";
24
+ export * from "./icon-button-svg";
25
+ export * from "./lapiz-act-contacto-perf-button";
26
+ export * from "./styled-icon";
27
+ export * from "./user/user-styled-icon";
28
+ export * from "./styled-timer-reenv-cod";
29
+ export * from "./verificar-sin-verificar-icon";
30
+ export * from "./verificar-verificado-icon";
31
+ export * from "./whatsapp-icon-button";
@@ -1,36 +1,4 @@
1
1
  export * from "./CustomBootstrap";
2
2
  export * from "./CustomSelectInput";
3
3
  export * from "./IntlMessages";
4
-
5
- //ICONOS
6
- export * from "./anular-ayuda-icon";
7
- export * from "./asesoria-burbuja-button";
8
- export * from "./asesoria-burbuja-icon";
9
- export * from "./atencion-presencial-icon";
10
- export * from "./atencion-telefonica-icon";
11
- export * from "./atencion-turno-telefonico-icon";
12
- export * from "./atencion-virtual-icon";
13
- export * from "./biblioteca-burbuja-button";
14
- export * from "./biblioteca-burbuja-icon";
15
- export * from "./cancelar-turno-icon";
16
- export * from "./codigo-verificacion-icon";
17
- export * from "./constants-svg";
18
- export * from "./curso-autogestionado-color-icon";
19
- export * from "./curso-autogestionado-icon";
20
- export * from "./curso-burbuja-button";
21
- export * from "./curso-burbuja-icon";
22
- export * from "./curso-presencial-color-icon";
23
- export * from "./curso-presencial-icon";
24
- export * from "./curso-virtual-color-icon";
25
- export * from "./curso-virtual-icon";
26
- export * from "./delegaciones-icon";
27
- export * from "./forgot-dni-icon";
28
- export * from "./forgot-password-icon";
29
- export * from "./icon-button-svg";
30
- export * from "./lapiz-act-contacto-perf-button";
31
- export * from "./styled-icon";
32
- export * from "./user-styled-icon";
33
- export * from "./styled-timer-reenv-cod";
34
- export * from "./verificar-sin-verificar-icon";
35
- export * from "./verificar-verificado-icon";
36
- export * from "./whatsapp-icon-button";
4
+ export * from "./iconos";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "1.0.23",
3
+ "version": "1.1.1",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
3
  import { useHistory } from 'react-router-dom';
4
4
  import { Icon } from './styled-icon';
5
- import { tipoServicioEconomico } from './constants/defaultValues';
6
5
 
7
6
  const AnularAyudaIcon = (props) => {
8
- const { AYUDAS_ECONOMICAS } = tipoServicioEconomico;
9
- const { sublabel = '', size = '', title } = props || {};
7
+ const { sublabel = '', size = '', title, tipoServicioEconomico} = props || {};
10
8
  const sublabeldisplay = sublabel.length > 0 ? 'block' : undefined;
11
9
  const {
12
10
  codDelegacion,
@@ -31,7 +29,7 @@ const AnularAyudaIcon = (props) => {
31
29
  fechaVtoTramite: fechaVtoTramite,
32
30
  netoFinal: netoFinal,
33
31
  fechaAcreditacion: fechaAcreditacion,
34
- tipoServicio: AYUDAS_ECONOMICAS,
32
+ tipoServicio: tipoServicioEconomico,
35
33
  })
36
34
  }
37
35
  >
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon } from './user-styled-icon';
3
+ import { UserIcon as Icon } from './user/user-styled-icon';
4
4
 
5
5
  const CodigoVerificacionIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon} from './user-styled-icon';
3
+ import { UserIcon as Icon} from './user/user-styled-icon';
4
4
 
5
5
  const ForgotDniIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withTheme } from 'styled-components';
3
- import { UserIcon as Icon} from './user-styled-icon';
3
+ import { UserIcon as Icon} from './user/user-styled-icon';
4
4
 
5
5
  const ForgotPasswordIcon = (props) => {
6
6
  const { sublabel = '' } = props || {};
@@ -0,0 +1,31 @@
1
+ export * from "./anular-ayuda-icon";
2
+ export * from "./asesoria-burbuja-button";
3
+ export * from "./asesoria-burbuja-icon";
4
+ export * from "./atencion-presencial-icon";
5
+ export * from "./atencion-telefonica-icon";
6
+ export * from "./atencion-turno-telefonico-icon";
7
+ export * from "./atencion-virtual-icon";
8
+ export * from "./biblioteca-burbuja-button";
9
+ export * from "./biblioteca-burbuja-icon";
10
+ export * from "./cancelar-turno-icon";
11
+ export * from "./codigo-verificacion-icon";
12
+ export * from "./constants-svg";
13
+ export * from "./curso-autogestionado-color-icon";
14
+ export * from "./curso-autogestionado-icon";
15
+ export * from "./curso-burbuja-button";
16
+ export * from "./curso-burbuja-icon";
17
+ export * from "./curso-presencial-color-icon";
18
+ export * from "./curso-presencial-icon";
19
+ export * from "./curso-virtual-color-icon";
20
+ export * from "./curso-virtual-icon";
21
+ export * from "./delegaciones-icon";
22
+ export * from "./forgot-dni-icon";
23
+ export * from "./forgot-password-icon";
24
+ export * from "./icon-button-svg";
25
+ export * from "./lapiz-act-contacto-perf-button";
26
+ export * from "./styled-icon";
27
+ export * from "./user/user-styled-icon";
28
+ export * from "./styled-timer-reenv-cod";
29
+ export * from "./verificar-sin-verificar-icon";
30
+ export * from "./verificar-verificado-icon";
31
+ export * from "./whatsapp-icon-button";
package/src/index.js CHANGED
@@ -1,36 +1,4 @@
1
1
  export * from "./CustomBootstrap";
2
2
  export * from "./CustomSelectInput";
3
3
  export * from "./IntlMessages";
4
-
5
- //ICONOS
6
- export * from "./anular-ayuda-icon";
7
- export * from "./asesoria-burbuja-button";
8
- export * from "./asesoria-burbuja-icon";
9
- export * from "./atencion-presencial-icon";
10
- export * from "./atencion-telefonica-icon";
11
- export * from "./atencion-turno-telefonico-icon";
12
- export * from "./atencion-virtual-icon";
13
- export * from "./biblioteca-burbuja-button";
14
- export * from "./biblioteca-burbuja-icon";
15
- export * from "./cancelar-turno-icon";
16
- export * from "./codigo-verificacion-icon";
17
- export * from "./constants-svg";
18
- export * from "./curso-autogestionado-color-icon";
19
- export * from "./curso-autogestionado-icon";
20
- export * from "./curso-burbuja-button";
21
- export * from "./curso-burbuja-icon";
22
- export * from "./curso-presencial-color-icon";
23
- export * from "./curso-presencial-icon";
24
- export * from "./curso-virtual-color-icon";
25
- export * from "./curso-virtual-icon";
26
- export * from "./delegaciones-icon";
27
- export * from "./forgot-dni-icon";
28
- export * from "./forgot-password-icon";
29
- export * from "./icon-button-svg";
30
- export * from "./lapiz-act-contacto-perf-button";
31
- export * from "./styled-icon";
32
- export * from "./user-styled-icon";
33
- export * from "./styled-timer-reenv-cod";
34
- export * from "./verificar-sin-verificar-icon";
35
- export * from "./verificar-verificado-icon";
36
- export * from "./whatsapp-icon-button";
4
+ export * from "./iconos";
@@ -1,10 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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,22 +0,0 @@
1
- const idMutualToCodMutual = {
2
- "01": "AMPF",
3
- "02": "AMPC",
4
- };
5
-
6
- const numberLocalConf = {
7
- locales: "es-AR",
8
- minimumFractionDigits: 2,
9
- maximumFractionDigits: 2,
10
- style: "currency",
11
- currency: "ARS",
12
- };
13
-
14
- const fieldTypes = {
15
- string: "string",
16
- number: "number",
17
- date: "date",
18
- };
19
-
20
- const defaultDirection = "ltr";
21
-
22
- export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
@@ -1,7 +0,0 @@
1
- // Tiempo para los mensajes de notificacion
2
- export const timeOutMsBox = 6000;
3
-
4
- /* Tipos de servicio para Ayudas. */
5
- export const tipoServicioEconomico = {
6
- AYUDAS_ECONOMICAS: "AYUDAS_ECONOMICAS",
7
- };
@@ -1,22 +0,0 @@
1
- const idMutualToCodMutual = {
2
- "01": "AMPF",
3
- "02": "AMPC",
4
- };
5
-
6
- const numberLocalConf = {
7
- locales: "es-AR",
8
- minimumFractionDigits: 2,
9
- maximumFractionDigits: 2,
10
- style: "currency",
11
- currency: "ARS",
12
- };
13
-
14
- const fieldTypes = {
15
- string: "string",
16
- number: "number",
17
- date: "date",
18
- };
19
-
20
- const defaultDirection = "ltr";
21
-
22
- export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
@@ -1,7 +0,0 @@
1
- // Tiempo para los mensajes de notificacion
2
- export const timeOutMsBox = 6000;
3
-
4
- /* Tipos de servicio para Ayudas. */
5
- export const tipoServicioEconomico = {
6
- AYUDAS_ECONOMICAS: "AYUDAS_ECONOMICAS",
7
- };
File without changes