@digitransit-component/digitransit-component-autosuggest 11.1.0 → 11.2.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/README.md +4 -0
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.development.cjs +53 -31
- package/lib/index.js +52 -30
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -47,6 +47,8 @@ An autosuggest search input for finding locations, stops, stations, routes and v
|
|
|
47
47
|
* `props.translatedPlaceholder`
|
|
48
48
|
* `props.required` (optional, default `false`)
|
|
49
49
|
* `props.externalLabelId`
|
|
50
|
+
* `props.extraDescription` (optional, default `''`)
|
|
51
|
+
* `props.movesFocusOnSelect` (optional, default `id==='origin'`)
|
|
50
52
|
* `props.ariaLabel`
|
|
51
53
|
* `props.colors` (optional, default `defaultColors`)
|
|
52
54
|
* `props.modeSet`
|
|
@@ -78,6 +80,8 @@ An autosuggest search input for finding locations, stops, stations, routes and v
|
|
|
78
80
|
* `translatedPlaceholder` **[string][3]?**
|
|
79
81
|
* `required` **[boolean][4]?**
|
|
80
82
|
* `externalLabelId` **[string][3]?** id of a visible <label for={id}> that names the input
|
|
83
|
+
* `extraDescription` **[string][3]?** text appended to the accessible description of the input
|
|
84
|
+
* `movesFocusOnSelect` **[boolean][4]?** whether the description says that focus moves to the destination field after selecting; defaults to true for the origin field
|
|
81
85
|
* `colors` **[Object][1]?**
|
|
82
86
|
* `modeSet` **[string][3]?**
|
|
83
87
|
* `showScroll` **[boolean][4]?**
|