@colisweb/rescript-toolkit 3.1.0 → 3.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.
- package/.yarn/install-state.gz +0 -0
- package/package.json +1 -1
- package/src/vendors/ReactSelect.res +13 -10
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@ module ReactSelectMultiple = {
|
|
|
46
46
|
~className: string=?,
|
|
47
47
|
~classNamePrefix: string=?,
|
|
48
48
|
~defaultValue: array<labelOption<'value>>=?,
|
|
49
|
+
~value: array<labelOption<'value>>=?,
|
|
49
50
|
~onChange: array<labelOption<'value>> => unit,
|
|
50
51
|
~options: array<labelOption<'value>>,
|
|
51
52
|
~noOptionsMessage: optionMessage => Js.Nullable.t<string>=?,
|
|
@@ -55,15 +56,16 @@ module ReactSelectMultiple = {
|
|
|
55
56
|
@react.component
|
|
56
57
|
let make = (
|
|
57
58
|
~name: string,
|
|
58
|
-
~autoFocus: bool
|
|
59
|
-
~isSearchable: bool
|
|
60
|
-
~defaultMenuIsOpen: bool
|
|
61
|
-
~isDisabled: bool
|
|
62
|
-
~isLoading: bool
|
|
63
|
-
~placeholder: string
|
|
64
|
-
~className: string
|
|
65
|
-
~classNamePrefix: string
|
|
59
|
+
~autoFocus: option<bool>=?,
|
|
60
|
+
~isSearchable: option<bool>=?,
|
|
61
|
+
~defaultMenuIsOpen: option<bool>=?,
|
|
62
|
+
~isDisabled: option<bool>=?,
|
|
63
|
+
~isLoading: option<bool>=?,
|
|
64
|
+
~placeholder: option<string>=?,
|
|
65
|
+
~className: option<string>=?,
|
|
66
|
+
~classNamePrefix: option<string>=?,
|
|
66
67
|
~defaultValue: array<labelOption<'value>>,
|
|
68
|
+
~value: option<array<labelOption<'value>>>=?,
|
|
67
69
|
~onChange: array<labelOption<'value>> => unit,
|
|
68
70
|
~options: array<labelOption<'value>>,
|
|
69
71
|
~noOptionsMessage: option<optionMessage => Js.Nullable.t<string>>=?,
|
|
@@ -79,6 +81,7 @@ module ReactSelectMultiple = {
|
|
|
79
81
|
?defaultMenuIsOpen
|
|
80
82
|
?className
|
|
81
83
|
?classNamePrefix
|
|
84
|
+
?value
|
|
82
85
|
defaultValue
|
|
83
86
|
onChange
|
|
84
87
|
options
|
|
@@ -167,8 +170,8 @@ module ReactSelectMultipleCreateInput = {
|
|
|
167
170
|
~placeholder="",
|
|
168
171
|
~isDisabled=false,
|
|
169
172
|
~isLoading=false,
|
|
170
|
-
~className: string
|
|
171
|
-
~id: string
|
|
173
|
+
~className: option<string>=?,
|
|
174
|
+
~id: option<string>=?,
|
|
172
175
|
) => {
|
|
173
176
|
let (inputValue, onInputChange) = React.useState(() => "")
|
|
174
177
|
let onInputChange = v => onInputChange(_ => v)
|