@react-aria/autocomplete 3.0.0-alpha.2 → 3.0.0-alpha.5
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/main.js +10 -10
- package/dist/module.js +10 -10
- package/package.json +19 -19
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
1
|
+
var $kDrMH$reactariautils = require("@react-aria/utils");
|
|
2
|
+
var $kDrMH$reactariacombobox = require("@react-aria/combobox");
|
|
3
|
+
var $kDrMH$reactariasearchfield = require("@react-aria/searchfield");
|
|
4
4
|
|
|
5
5
|
function $parcel$exportWildcard(dest, source) {
|
|
6
6
|
Object.keys(source).forEach(function(key) {
|
|
@@ -21,16 +21,16 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
21
21
|
function $parcel$export(e, n, v, s) {
|
|
22
22
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
23
23
|
}
|
|
24
|
-
var $
|
|
24
|
+
var $3c40871f8cc2eb01$exports = {};
|
|
25
25
|
|
|
26
|
-
$parcel$export($
|
|
26
|
+
$parcel$export($3c40871f8cc2eb01$exports, "useSearchAutocomplete", () => $3c40871f8cc2eb01$export$da7ade746446be1f);
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
function $
|
|
30
|
+
function $3c40871f8cc2eb01$export$da7ade746446be1f(props, state) {
|
|
31
31
|
let { popoverRef: popoverRef , inputRef: inputRef , listBoxRef: listBoxRef , keyboardDelegate: keyboardDelegate , onSubmit: onSubmit = ()=>{
|
|
32
32
|
} } = props;
|
|
33
|
-
let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $
|
|
33
|
+
let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $kDrMH$reactariasearchfield.useSearchField({
|
|
34
34
|
...props,
|
|
35
35
|
value: state.inputValue,
|
|
36
36
|
onChange: state.setInputValue,
|
|
@@ -45,7 +45,7 @@ function $c9cabc3db9f996d9$export$da7ade746446be1f(props, state) {
|
|
|
45
45
|
value: state.inputValue,
|
|
46
46
|
setValue: state.setInputValue
|
|
47
47
|
}, inputRef);
|
|
48
|
-
let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $
|
|
48
|
+
let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $kDrMH$reactariacombobox.useComboBox({
|
|
49
49
|
...props,
|
|
50
50
|
keyboardDelegate: keyboardDelegate,
|
|
51
51
|
popoverRef: popoverRef,
|
|
@@ -56,14 +56,14 @@ function $c9cabc3db9f996d9$export$da7ade746446be1f(props, state) {
|
|
|
56
56
|
}, state);
|
|
57
57
|
return {
|
|
58
58
|
labelProps: labelProps,
|
|
59
|
-
inputProps: $
|
|
59
|
+
inputProps: $kDrMH$reactariautils.mergeProps(inputProps, comboBoxInputProps),
|
|
60
60
|
listBoxProps: listBoxProps,
|
|
61
61
|
clearButtonProps: clearButtonProps
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
$parcel$exportWildcard(module.exports, $
|
|
66
|
+
$parcel$exportWildcard(module.exports, $3c40871f8cc2eb01$exports);
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {mergeProps as $
|
|
2
|
-
import {useComboBox as $
|
|
3
|
-
import {useSearchField as $
|
|
1
|
+
import {mergeProps as $fgZRc$mergeProps} from "@react-aria/utils";
|
|
2
|
+
import {useComboBox as $fgZRc$useComboBox} from "@react-aria/combobox";
|
|
3
|
+
import {useSearchField as $fgZRc$useSearchField} from "@react-aria/searchfield";
|
|
4
4
|
|
|
5
5
|
function $parcel$export(e, n, v, s) {
|
|
6
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
7
|
}
|
|
8
|
-
var $
|
|
8
|
+
var $c04f11f368135585$exports = {};
|
|
9
9
|
|
|
10
|
-
$parcel$export($
|
|
10
|
+
$parcel$export($c04f11f368135585$exports, "useSearchAutocomplete", () => $c04f11f368135585$export$da7ade746446be1f);
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
function $
|
|
14
|
+
function $c04f11f368135585$export$da7ade746446be1f(props, state) {
|
|
15
15
|
let { popoverRef: popoverRef , inputRef: inputRef , listBoxRef: listBoxRef , keyboardDelegate: keyboardDelegate , onSubmit: onSubmit = ()=>{
|
|
16
16
|
} } = props;
|
|
17
|
-
let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $
|
|
17
|
+
let { inputProps: inputProps , clearButtonProps: clearButtonProps } = $fgZRc$useSearchField({
|
|
18
18
|
...props,
|
|
19
19
|
value: state.inputValue,
|
|
20
20
|
onChange: state.setInputValue,
|
|
@@ -29,7 +29,7 @@ function $5a38129ece344ad1$export$da7ade746446be1f(props, state) {
|
|
|
29
29
|
value: state.inputValue,
|
|
30
30
|
setValue: state.setInputValue
|
|
31
31
|
}, inputRef);
|
|
32
|
-
let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $
|
|
32
|
+
let { listBoxProps: listBoxProps , labelProps: labelProps , inputProps: comboBoxInputProps } = $fgZRc$useComboBox({
|
|
33
33
|
...props,
|
|
34
34
|
keyboardDelegate: keyboardDelegate,
|
|
35
35
|
popoverRef: popoverRef,
|
|
@@ -40,7 +40,7 @@ function $5a38129ece344ad1$export$da7ade746446be1f(props, state) {
|
|
|
40
40
|
}, state);
|
|
41
41
|
return {
|
|
42
42
|
labelProps: labelProps,
|
|
43
|
-
inputProps: $
|
|
43
|
+
inputProps: $fgZRc$mergeProps(inputProps, comboBoxInputProps),
|
|
44
44
|
listBoxProps: listBoxProps,
|
|
45
45
|
clearButtonProps: clearButtonProps
|
|
46
46
|
};
|
|
@@ -49,5 +49,5 @@ function $5a38129ece344ad1$export$da7ade746446be1f(props, state) {
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
export {$
|
|
52
|
+
export {$c04f11f368135585$export$da7ade746446be1f as useSearchAutocomplete};
|
|
53
53
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/autocomplete",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.5",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,23 +18,23 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@react-aria/combobox": "^3.2.
|
|
22
|
-
"@react-aria/i18n": "^3.3.
|
|
23
|
-
"@react-aria/listbox": "^3.4.
|
|
24
|
-
"@react-aria/live-announcer": "^3.0.
|
|
25
|
-
"@react-aria/menu": "^3.4.
|
|
26
|
-
"@react-aria/overlays": "^3.
|
|
27
|
-
"@react-aria/searchfield": "^3.2.
|
|
28
|
-
"@react-aria/selection": "^3.
|
|
29
|
-
"@react-aria/textfield": "^3.5.
|
|
30
|
-
"@react-aria/utils": "^3.11.
|
|
31
|
-
"@react-stately/collections": "^3.3.
|
|
32
|
-
"@react-stately/combobox": "^3.0.
|
|
33
|
-
"@react-types/autocomplete": "3.0.0-alpha.
|
|
34
|
-
"@react-types/button": "^3.4.
|
|
35
|
-
"@react-types/combobox": "^3.
|
|
36
|
-
"@react-types/searchfield": "^3.1.
|
|
37
|
-
"@react-types/shared": "^3.11.
|
|
21
|
+
"@react-aria/combobox": "^3.2.5",
|
|
22
|
+
"@react-aria/i18n": "^3.3.8",
|
|
23
|
+
"@react-aria/listbox": "^3.4.4",
|
|
24
|
+
"@react-aria/live-announcer": "^3.0.5",
|
|
25
|
+
"@react-aria/menu": "^3.4.3",
|
|
26
|
+
"@react-aria/overlays": "^3.8.1",
|
|
27
|
+
"@react-aria/searchfield": "^3.2.6",
|
|
28
|
+
"@react-aria/selection": "^3.8.1",
|
|
29
|
+
"@react-aria/textfield": "^3.5.4",
|
|
30
|
+
"@react-aria/utils": "^3.11.3",
|
|
31
|
+
"@react-stately/collections": "^3.3.7",
|
|
32
|
+
"@react-stately/combobox": "^3.0.4",
|
|
33
|
+
"@react-types/autocomplete": "3.0.0-alpha.3",
|
|
34
|
+
"@react-types/button": "^3.4.4",
|
|
35
|
+
"@react-types/combobox": "^3.3.0",
|
|
36
|
+
"@react-types/searchfield": "^3.1.5",
|
|
37
|
+
"@react-types/shared": "^3.11.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e7708349a637642a30d33a11ca4a75ad5829eaa3"
|
|
46
46
|
}
|