siam-ui-utils 1.0.23 → 1.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/.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
  >
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.0",
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,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
- };