@gympass/yoga 7.131.12 → 7.132.0
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.
|
@@ -210,6 +210,7 @@ const AutoComplete = import_react.default.forwardRef(
|
|
|
210
210
|
error,
|
|
211
211
|
openSuggestionsAriaLabel = "Open suggestions",
|
|
212
212
|
closeSuggestionsAriaLabel = "Close suggestions",
|
|
213
|
+
highlightFirst = false,
|
|
213
214
|
shouldFilterOptions = true
|
|
214
215
|
} = _b, props = __objRest(_b, [
|
|
215
216
|
"className",
|
|
@@ -223,6 +224,7 @@ const AutoComplete = import_react.default.forwardRef(
|
|
|
223
224
|
"error",
|
|
224
225
|
"openSuggestionsAriaLabel",
|
|
225
226
|
"closeSuggestionsAriaLabel",
|
|
227
|
+
"highlightFirst",
|
|
226
228
|
"shouldFilterOptions"
|
|
227
229
|
]);
|
|
228
230
|
const [userValue, setUserValue] = (0, import_react.useState)(value);
|
|
@@ -247,6 +249,7 @@ const AutoComplete = import_react.default.forwardRef(
|
|
|
247
249
|
import_downshift.default,
|
|
248
250
|
{
|
|
249
251
|
selectedItem: userValue,
|
|
252
|
+
defaultHighlightedIndex: highlightFirst ? 0 : null,
|
|
250
253
|
onStateChange: (changes) => {
|
|
251
254
|
const { selectedItem, inputValue } = changes;
|
|
252
255
|
if (selectedItem) {
|
|
@@ -360,6 +363,8 @@ AutoComplete.propTypes = {
|
|
|
360
363
|
/** an aria label for the close suggestions icon */
|
|
361
364
|
closeSuggestionsAriaLabel: import_prop_types.string,
|
|
362
365
|
/** flag to enable options filtering */
|
|
363
|
-
shouldFilterOptions: import_prop_types.bool
|
|
366
|
+
shouldFilterOptions: import_prop_types.bool,
|
|
367
|
+
/** first highlighted option for whenever Autocomplete is restarted */
|
|
368
|
+
highlightFirst: import_prop_types.bool
|
|
364
369
|
};
|
|
365
370
|
var AutoComplete_default = AutoComplete;
|
|
@@ -179,6 +179,7 @@ const AutoComplete = React.forwardRef(
|
|
|
179
179
|
error,
|
|
180
180
|
openSuggestionsAriaLabel = "Open suggestions",
|
|
181
181
|
closeSuggestionsAriaLabel = "Close suggestions",
|
|
182
|
+
highlightFirst = false,
|
|
182
183
|
shouldFilterOptions = true
|
|
183
184
|
} = _b, props = __objRest(_b, [
|
|
184
185
|
"className",
|
|
@@ -192,6 +193,7 @@ const AutoComplete = React.forwardRef(
|
|
|
192
193
|
"error",
|
|
193
194
|
"openSuggestionsAriaLabel",
|
|
194
195
|
"closeSuggestionsAriaLabel",
|
|
196
|
+
"highlightFirst",
|
|
195
197
|
"shouldFilterOptions"
|
|
196
198
|
]);
|
|
197
199
|
const [userValue, setUserValue] = useState(value);
|
|
@@ -216,6 +218,7 @@ const AutoComplete = React.forwardRef(
|
|
|
216
218
|
Downshift,
|
|
217
219
|
{
|
|
218
220
|
selectedItem: userValue,
|
|
221
|
+
defaultHighlightedIndex: highlightFirst ? 0 : null,
|
|
219
222
|
onStateChange: (changes) => {
|
|
220
223
|
const { selectedItem, inputValue } = changes;
|
|
221
224
|
if (selectedItem) {
|
|
@@ -329,7 +332,9 @@ AutoComplete.propTypes = {
|
|
|
329
332
|
/** an aria label for the close suggestions icon */
|
|
330
333
|
closeSuggestionsAriaLabel: string,
|
|
331
334
|
/** flag to enable options filtering */
|
|
332
|
-
shouldFilterOptions: bool
|
|
335
|
+
shouldFilterOptions: bool,
|
|
336
|
+
/** first highlighted option for whenever Autocomplete is restarted */
|
|
337
|
+
highlightFirst: bool
|
|
333
338
|
};
|
|
334
339
|
var AutoComplete_default = AutoComplete;
|
|
335
340
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.132.0",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-phone-input-2": "^2.15.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gympass/yoga-icons": "^1.
|
|
48
|
+
"@gympass/yoga-icons": "^1.37.0",
|
|
49
49
|
"@react-native-community/eslint-config": "^3.0.1",
|
|
50
50
|
"@types/styled-components": "^5.1.34",
|
|
51
51
|
"babel-plugin-inline-react-svg": "^1.1.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-native": "0.72.3",
|
|
60
60
|
"styled-components": "^4.4.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1b2aa7f35af5ceecf657e4a6947afc0e30538a3b",
|
|
63
63
|
"module": "./esm",
|
|
64
64
|
"private": false,
|
|
65
65
|
"react-native": "./cjs/index.native.js"
|