siam-ui-utils 1.0.21 → 1.0.23
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_browser/src/anular-ayuda-icon.jsx +2 -2
- package/dist_browser/src/commons/defaultValues.js +22 -0
- package/{src/constants/defaultValues.ts → dist_browser/src/constants/defaultValues.js} +2 -2
- package/package.json +1 -1
- package/src/CustomBootstrap.jsx +10 -0
- package/src/CustomSelectInput.jsx +11 -0
- package/src/anular-ayuda-icon.jsx +2 -2
- package/src/commons/defaultValues.js +22 -0
- package/{dist_browser/src/constants/defaultValues.ts → src/constants/defaultValues.js} +2 -2
- package/dist_browser/src/commons/defaultValues.ts +0 -29
- package/src/commons/defaultValues.ts +0 -29
- /package/{src/CustomBootstrap.js → dist_browser/src/CustomBootstrap.jsx} +0 -0
- /package/{src/CustomSelectInput.js → dist_browser/src/CustomSelectInput.jsx} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { withTheme } from 'styled-components';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
|
-
import { Icon } from './
|
|
5
|
-
import { tipoServicioEconomico } from '
|
|
4
|
+
import { Icon } from './styled-icon';
|
|
5
|
+
import { tipoServicioEconomico } from './constants/defaultValues';
|
|
6
6
|
|
|
7
7
|
const AnularAyudaIcon = (props) => {
|
|
8
8
|
const { AYUDAS_ECONOMICAS } = tipoServicioEconomico;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 };
|
package/package.json
CHANGED
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { withTheme } from 'styled-components';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
|
-
import { Icon } from './
|
|
5
|
-
import { tipoServicioEconomico } from '
|
|
4
|
+
import { Icon } from './styled-icon';
|
|
5
|
+
import { tipoServicioEconomico } from './constants/defaultValues';
|
|
6
6
|
|
|
7
7
|
const AnularAyudaIcon = (props) => {
|
|
8
8
|
const { AYUDAS_ECONOMICAS } = tipoServicioEconomico;
|
|
@@ -0,0 +1,22 @@
|
|
|
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,29 +0,0 @@
|
|
|
1
|
-
const idMutualToCodMutual: { [x: string]: string } = {
|
|
2
|
-
"01": "AMPF",
|
|
3
|
-
"02": "AMPC",
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const numberLocalConf: {
|
|
7
|
-
locales: string;
|
|
8
|
-
minimumFractionDigits: number;
|
|
9
|
-
maximumFractionDigits: number;
|
|
10
|
-
style: string;
|
|
11
|
-
currency: string;
|
|
12
|
-
} = {
|
|
13
|
-
locales: "es-AR",
|
|
14
|
-
minimumFractionDigits: 2,
|
|
15
|
-
maximumFractionDigits: 2,
|
|
16
|
-
style: "currency",
|
|
17
|
-
currency: "ARS",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const fieldTypes = {
|
|
21
|
-
string: 'string',
|
|
22
|
-
number: 'number',
|
|
23
|
-
date: 'date',
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const defaultDirection = 'ltr';
|
|
28
|
-
|
|
29
|
-
export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const idMutualToCodMutual: { [x: string]: string } = {
|
|
2
|
-
"01": "AMPF",
|
|
3
|
-
"02": "AMPC",
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const numberLocalConf: {
|
|
7
|
-
locales: string;
|
|
8
|
-
minimumFractionDigits: number;
|
|
9
|
-
maximumFractionDigits: number;
|
|
10
|
-
style: string;
|
|
11
|
-
currency: string;
|
|
12
|
-
} = {
|
|
13
|
-
locales: "es-AR",
|
|
14
|
-
minimumFractionDigits: 2,
|
|
15
|
-
maximumFractionDigits: 2,
|
|
16
|
-
style: "currency",
|
|
17
|
-
currency: "ARS",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const fieldTypes = {
|
|
21
|
-
string: 'string',
|
|
22
|
-
number: 'number',
|
|
23
|
-
date: 'date',
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const defaultDirection = 'ltr';
|
|
28
|
-
|
|
29
|
-
export { idMutualToCodMutual, numberLocalConf, fieldTypes, defaultDirection };
|
|
File without changes
|
|
File without changes
|