siam-ui-utils 2.2.21 → 2.2.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/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { components } from 'react-select';
|
|
2
2
|
|
|
3
|
-
const CustomSelectInput = (props) => {
|
|
3
|
+
export const CustomSelectInput = (props) => {
|
|
4
4
|
const customProps = { ...props };
|
|
5
5
|
delete customProps.autoCorrect;
|
|
6
6
|
delete customProps.autoCapitalize;
|
|
7
7
|
return <components.Input {...customProps} />;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export default CustomSelectInput;
|
package/src/select/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import Select from 'react-select';
|
|
3
3
|
import { Label } from 'reactstrap';
|
|
4
|
-
import CustomSelectInput from '../CustomSelectInput';
|
|
4
|
+
import {CustomSelectInput} from '../CustomSelectInput';
|
|
5
5
|
import { LABELS } from './constants';
|
|
6
6
|
import 'react-tagsinput/react-tagsinput.css';
|
|
7
7
|
|
|
@@ -34,7 +34,7 @@ interface Props {
|
|
|
34
34
|
|
|
35
35
|
const {SIN_DATOS, SELECCIONE}=LABELS
|
|
36
36
|
|
|
37
|
-
const CustomSelect: React.FC<Props> = (props: Props) => {
|
|
37
|
+
export const CustomSelect: React.FC<Props> = (props: Props) => {
|
|
38
38
|
const [firstElement] = useState(props.firstElement);
|
|
39
39
|
const [newItem] = useState(props.newItem);
|
|
40
40
|
const [selectedIoption, setIoption] = useState({});
|
|
@@ -144,4 +144,4 @@ const CustomSelect: React.FC<Props> = (props: Props) => {
|
|
|
144
144
|
</>
|
|
145
145
|
);
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
|
package/src/test-resources.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropzoneUploader, DropzoneUploaderDniDigital, TomarFoto } from '.';
|
|
2
2
|
import { CopyLink } from './copy-link';
|
|
3
3
|
import { CustomInputCheckbox, CustomInputRadio } from './custom-input';
|
|
4
|
-
import CustomSelect from './select';
|
|
4
|
+
import { CustomSelect } from './select';
|
|
5
5
|
import { Timer } from './timer';
|
|
6
6
|
import { ViewLayout } from './view-layout';
|
|
7
7
|
import { WhereByRoom } from './where-by-room';
|