@visns-studio/visns-components 2.9.3 → 2.9.4
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.
|
@@ -4,7 +4,7 @@ import SelectList from './SelectList';
|
|
|
4
4
|
import AsyncSelect from 'react-select/async';
|
|
5
5
|
import { debounce } from 'lodash';
|
|
6
6
|
|
|
7
|
-
function VisnsAsyncSelect({ inputValue, onChange, settings }) {
|
|
7
|
+
function VisnsAsyncSelect({ inputValue, onChange, placeholder, settings }) {
|
|
8
8
|
const loadSuggestedOptions = useCallback(
|
|
9
9
|
debounce((inputValue, callback) => {
|
|
10
10
|
if (inputValue !== '') {
|
|
@@ -81,6 +81,7 @@ function VisnsAsyncSelect({ inputValue, onChange, settings }) {
|
|
|
81
81
|
}),
|
|
82
82
|
}}
|
|
83
83
|
value={inputValue}
|
|
84
|
+
placeholder={placeholder ? placeholder : 'Select...'}
|
|
84
85
|
/>
|
|
85
86
|
);
|
|
86
87
|
}
|
|
@@ -2,8 +2,15 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import SelectList from './SelectList';
|
|
3
3
|
import Select, { createFilter } from 'react-select';
|
|
4
4
|
|
|
5
|
-
function MultiSelect(
|
|
6
|
-
|
|
5
|
+
function MultiSelect({
|
|
6
|
+
inputValue,
|
|
7
|
+
multi,
|
|
8
|
+
onChange,
|
|
9
|
+
options,
|
|
10
|
+
placeholder,
|
|
11
|
+
settings,
|
|
12
|
+
style,
|
|
13
|
+
}) {
|
|
7
14
|
const [selectOptions, setSelectOptions] = useState([]);
|
|
8
15
|
|
|
9
16
|
useEffect(() => {
|
|
@@ -56,6 +63,7 @@ function MultiSelect(props) {
|
|
|
56
63
|
}),
|
|
57
64
|
}}
|
|
58
65
|
value={inputValue}
|
|
66
|
+
placeholder={placeholder ? placeholder : 'Select...'}
|
|
59
67
|
/>
|
|
60
68
|
);
|
|
61
69
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"array-move": "^4.0.0",
|
|
7
7
|
"awesome-debounce-promise": "^2.1.0",
|
|
8
8
|
"axios": "^1.6.2",
|
|
9
|
-
"framer-motion": "^10.16.
|
|
9
|
+
"framer-motion": "^10.16.12",
|
|
10
10
|
"html-react-parser": "^5.0.6",
|
|
11
11
|
"lodash": "^4.17.21",
|
|
12
12
|
"moment": "^2.29.4",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"react-color": "^2.19.3",
|
|
17
17
|
"react-confirm-alert": "^3.0.6",
|
|
18
18
|
"react-copy-to-clipboard": "^5.1.0",
|
|
19
|
-
"react-datepicker": "^4.
|
|
19
|
+
"react-datepicker": "^4.24.0",
|
|
20
20
|
"react-dropzone": "^14.2.3",
|
|
21
21
|
"react-number-format": "^5.3.1",
|
|
22
22
|
"react-password-strength-bar": "^0.4.1",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-toastify": "^9.1.3",
|
|
31
31
|
"react-toggle": "^4.1.3",
|
|
32
32
|
"react-tooltip": "^5.24.0",
|
|
33
|
-
"react-window": "^1.8.
|
|
33
|
+
"react-window": "^1.8.10",
|
|
34
34
|
"reactjs-popup": "^2.0.6",
|
|
35
35
|
"truncate": "^3.0.0",
|
|
36
36
|
"validator": "^13.11.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-dom": "^17.0.1"
|
|
46
46
|
},
|
|
47
47
|
"name": "@visns-studio/visns-components",
|
|
48
|
-
"version": "2.9.
|
|
48
|
+
"version": "2.9.4",
|
|
49
49
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
50
50
|
"main": "index.js",
|
|
51
51
|
"scripts": {
|