@react-spectrum/autocomplete 3.0.0-alpha.31 → 3.0.0-alpha.33
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/MobileSearchAutocomplete.main.js +86 -86
- package/dist/MobileSearchAutocomplete.main.js.map +1 -1
- package/dist/MobileSearchAutocomplete.mjs +87 -87
- package/dist/MobileSearchAutocomplete.module.js +86 -86
- package/dist/MobileSearchAutocomplete.module.js.map +1 -1
- package/dist/SearchAutocomplete.main.js +37 -36
- package/dist/SearchAutocomplete.main.js.map +1 -1
- package/dist/SearchAutocomplete.mjs +38 -37
- package/dist/SearchAutocomplete.module.js +37 -36
- package/dist/SearchAutocomplete.module.js.map +1 -1
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/inputgroup_vars_css.mjs +1 -1
- package/dist/intlStrings.mjs +1 -1
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/search_vars_css.mjs +1 -1
- package/dist/searchautocomplete_css.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/textfield_vars_css.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/{vars.5653edea.css → vars.f9e74788.css} +2 -1
- package/dist/vars.f9e74788.css.map +1 -0
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +28 -28
- package/src/MobileSearchAutocomplete.tsx +2 -2
- package/src/SearchAutocomplete.tsx +7 -6
- package/dist/vars.5653edea.css.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/autocomplete",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.33",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,30 +36,30 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/autocomplete": "3.0.0-alpha.
|
|
40
|
-
"@react-aria/button": "^3.9.
|
|
41
|
-
"@react-aria/dialog": "^3.5.
|
|
42
|
-
"@react-aria/focus": "^3.
|
|
43
|
-
"@react-aria/form": "^3.0.
|
|
44
|
-
"@react-aria/i18n": "^3.
|
|
45
|
-
"@react-aria/interactions": "^3.
|
|
46
|
-
"@react-aria/label": "^3.7.
|
|
47
|
-
"@react-aria/overlays": "^3.
|
|
48
|
-
"@react-aria/utils": "^3.
|
|
49
|
-
"@react-spectrum/button": "^3.16.
|
|
50
|
-
"@react-spectrum/form": "^3.7.
|
|
51
|
-
"@react-spectrum/label": "^3.16.
|
|
52
|
-
"@react-spectrum/listbox": "^3.
|
|
53
|
-
"@react-spectrum/overlays": "^5.6.
|
|
54
|
-
"@react-spectrum/progress": "^3.7.
|
|
55
|
-
"@react-spectrum/textfield": "^3.12.
|
|
56
|
-
"@react-spectrum/utils": "^3.11.
|
|
57
|
-
"@react-stately/collections": "^3.10.
|
|
58
|
-
"@react-stately/combobox": "^3.
|
|
59
|
-
"@react-types/autocomplete": "3.0.0-alpha.
|
|
60
|
-
"@react-types/button": "^3.9.
|
|
61
|
-
"@react-types/shared": "^3.
|
|
62
|
-
"@spectrum-icons/ui": "^3.6.
|
|
39
|
+
"@react-aria/autocomplete": "3.0.0-alpha.30",
|
|
40
|
+
"@react-aria/button": "^3.9.6",
|
|
41
|
+
"@react-aria/dialog": "^3.5.15",
|
|
42
|
+
"@react-aria/focus": "^3.18.0",
|
|
43
|
+
"@react-aria/form": "^3.0.6",
|
|
44
|
+
"@react-aria/i18n": "^3.12.0",
|
|
45
|
+
"@react-aria/interactions": "^3.22.0",
|
|
46
|
+
"@react-aria/label": "^3.7.9",
|
|
47
|
+
"@react-aria/overlays": "^3.23.0",
|
|
48
|
+
"@react-aria/utils": "^3.25.0",
|
|
49
|
+
"@react-spectrum/button": "^3.16.5",
|
|
50
|
+
"@react-spectrum/form": "^3.7.7",
|
|
51
|
+
"@react-spectrum/label": "^3.16.7",
|
|
52
|
+
"@react-spectrum/listbox": "^3.13.0",
|
|
53
|
+
"@react-spectrum/overlays": "^5.6.2",
|
|
54
|
+
"@react-spectrum/progress": "^3.7.8",
|
|
55
|
+
"@react-spectrum/textfield": "^3.12.2",
|
|
56
|
+
"@react-spectrum/utils": "^3.11.8",
|
|
57
|
+
"@react-stately/collections": "^3.10.8",
|
|
58
|
+
"@react-stately/combobox": "^3.9.0",
|
|
59
|
+
"@react-types/autocomplete": "3.0.0-alpha.23",
|
|
60
|
+
"@react-types/button": "^3.9.5",
|
|
61
|
+
"@react-types/shared": "^3.24.0",
|
|
62
|
+
"@spectrum-icons/ui": "^3.6.8",
|
|
63
63
|
"@swc/helpers": "^0.5.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@react-spectrum/provider": "^3.0.0",
|
|
70
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
|
|
71
|
-
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
70
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
|
|
71
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
77
77
|
}
|
|
@@ -394,13 +394,13 @@ function SearchAutocompleteTray<T>(props: SearchAutocompleteTrayProps<T>) {
|
|
|
394
394
|
let popoverRef = useRef<HTMLDivElement>(null);
|
|
395
395
|
let listBoxRef = useRef<HTMLDivElement>(null);
|
|
396
396
|
let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
|
|
397
|
-
let layout = useListBoxLayout(
|
|
397
|
+
let layout = useListBoxLayout();
|
|
398
398
|
let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/autocomplete');
|
|
399
399
|
|
|
400
400
|
let {inputProps, listBoxProps, labelProps, clearButtonProps} = useSearchAutocomplete<T>(
|
|
401
401
|
{
|
|
402
402
|
...props,
|
|
403
|
-
|
|
403
|
+
layoutDelegate: layout,
|
|
404
404
|
popoverRef: popoverRef,
|
|
405
405
|
listBoxRef,
|
|
406
406
|
inputRef,
|
|
@@ -100,12 +100,12 @@ function _SearchAutocompleteBase<T extends object>(props: SpectrumSearchAutocomp
|
|
|
100
100
|
validate: useCallback(v => validate?.(v.inputValue), [validate])
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
-
let layout = useListBoxLayout(
|
|
103
|
+
let layout = useListBoxLayout();
|
|
104
104
|
|
|
105
105
|
let {inputProps, listBoxProps, labelProps, clearButtonProps, descriptionProps, errorMessageProps, isInvalid, validationErrors, validationDetails} = useSearchAutocomplete(
|
|
106
106
|
{
|
|
107
107
|
...props,
|
|
108
|
-
|
|
108
|
+
layoutDelegate: layout,
|
|
109
109
|
popoverRef: unwrappedPopoverRef,
|
|
110
110
|
listBoxRef,
|
|
111
111
|
inputRef,
|
|
@@ -179,6 +179,7 @@ function _SearchAutocompleteBase<T extends object>(props: SpectrumSearchAutocomp
|
|
|
179
179
|
state={state}
|
|
180
180
|
shouldUseVirtualFocus
|
|
181
181
|
isLoading={loadingState === 'loading' || loadingState === 'loadingMore'}
|
|
182
|
+
showLoadingSpinner={loadingState === 'loadingMore'}
|
|
182
183
|
onLoadMore={onLoadMore}
|
|
183
184
|
renderEmptyState={() => isAsync && (
|
|
184
185
|
<span className={classNames(searchAutocompleteStyles, 'no-results')}>
|
|
@@ -195,7 +196,7 @@ let SearchAutocompleteBase = React.forwardRef(_SearchAutocompleteBase) as <T>(pr
|
|
|
195
196
|
|
|
196
197
|
interface SearchAutocompleteInputProps<T> extends SpectrumSearchAutocompleteProps<T> {
|
|
197
198
|
inputProps: InputHTMLAttributes<HTMLInputElement>,
|
|
198
|
-
inputRef: RefObject<HTMLInputElement>,
|
|
199
|
+
inputRef: RefObject<HTMLInputElement | null>,
|
|
199
200
|
style?: React.CSSProperties,
|
|
200
201
|
className?: string,
|
|
201
202
|
isOpen?: boolean,
|
|
@@ -294,7 +295,7 @@ function _SearchAutocompleteInput<T>(props: SearchAutocompleteInputProps<T>, ref
|
|
|
294
295
|
}, [isLoading, showLoading, inputValue]);
|
|
295
296
|
|
|
296
297
|
return (
|
|
297
|
-
<FocusRing
|
|
298
|
+
(<FocusRing
|
|
298
299
|
within
|
|
299
300
|
isTextInput
|
|
300
301
|
focusClass={classNames(styles, 'is-focused')}
|
|
@@ -302,7 +303,7 @@ function _SearchAutocompleteInput<T>(props: SearchAutocompleteInputProps<T>, ref
|
|
|
302
303
|
autoFocus={autoFocus}>
|
|
303
304
|
<div
|
|
304
305
|
{...hoverProps}
|
|
305
|
-
ref={ref as RefObject<HTMLDivElement>}
|
|
306
|
+
ref={ref as RefObject<HTMLDivElement | null>}
|
|
306
307
|
style={style}
|
|
307
308
|
className={
|
|
308
309
|
classNames(
|
|
@@ -359,7 +360,7 @@ function _SearchAutocompleteInput<T>(props: SearchAutocompleteInputProps<T>, ref
|
|
|
359
360
|
wrapperChildren={(inputValue !== '' || loadingState === 'filtering' || validationState != null) && !isReadOnly ? clearButton : undefined}
|
|
360
361
|
disableFocusRing />
|
|
361
362
|
</div>
|
|
362
|
-
</FocusRing>
|
|
363
|
+
</FocusRing>)
|
|
363
364
|
);
|
|
364
365
|
}
|
|
365
366
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;AAQE;;;;;;AAWF;;;;;;;;;;;;;;;;;;;;AA4CE;;;;;;;;AAYA;;;;;;;AAWE;;;;AAIA;;;;AAJA;;;;AAIA;;;;AAJA;;;;AAIA;;;;AAJA;;;;AAIA;;;;AAJA;;;;AAIA;;;;AAMA;;;;AAKF;;;;;AAME;;;;AAQF;;;;;AAOA;;;;;AAAA;;;;;AAOA;;;;AAIA;;;;;;;;AAUA;;;;;;;AASA;;;;AAIA;;;;AASF;;;;AAIA;;;;;AAKE;;;;AAIA;;;;;AAME;;;;AAOJ;;;;;;;AASE;;;;AAKF;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAOA;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AASA;;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAaA;;;;AASE;;;;AAIE;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAKF;;;;;AAQF;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAME;;;;AAiBF;;;;;;AAKE;;;;AAKA;;;;;AAIE;;;;AAMF;;;;;;AAKE;;;;AAMF;;;;AAME;;;;;AAMF;;;;;;;AASE;;;;AAKA;;;;AAdF;;;;;;;AASE;;;;AAKA;;;;AAKF;;;;AAGE;;;;AAcE;;;;;AAOJ;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAME;;;;;AAMF;;;;;AAOF;;;;AAGE;;;;AAIA;;;;AAIA;;;;AAME;;;;;AASA;;;;AASJ;;;;AAIA;;;;AAKF;EACE;;;;;;;;;;;;EAUE;;;;;EAKE;;;;;;EAKE","sources":["packages/@adobe/spectrum-css-temp/components/textfield/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.5653edea.css.map"}
|