-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add autocomplete selected state (#875)
* added selected autocomplete state * add pattern examples & props * rename classes Co-authored-by: Gil <43111519+gldgrnt@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
322 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% raw %} | ||
{% from "wmnds/patterns/autocomplete/_autocomplete.njk" import wmndsAutocomplete %} | ||
{{ | ||
compExample([ | ||
wmndsAutocomplete({ | ||
id: 'selectedState', | ||
selected: false, | ||
selectedItem: '', | ||
}) | ||
]) | ||
}} | ||
{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"wmndsAutocompleteProps": [ | ||
{ | ||
"name": "id", | ||
"type": "string", | ||
"description": "<strong>Required.</strong> String of text used for the search in the autocomplete." | ||
}, | ||
{ | ||
"name": "query", | ||
"type": "string", | ||
"description": "String of text used for the search in the autocomplete." | ||
}, | ||
{ | ||
"name": "placeholder", | ||
"type": "string", | ||
"description": "Text used for the placeholder in the autocomplete input." | ||
}, | ||
{ | ||
"name": "loading", | ||
"type": "boolean", | ||
"description": "If true, loading spinner will be visible in the autocomplete." | ||
}, | ||
{ | ||
"name": "isRequired", | ||
"type": "boolean", | ||
"description": "Indictes whether an autocomplete response is required" | ||
}, | ||
{ | ||
"name": "selected", | ||
"type": "boolean", | ||
"description": "If true, the autocomplete will display in the selected state" | ||
}, | ||
{ | ||
"name": "selectedItem", | ||
"type": "string", | ||
"description": "Text to show in the selected state if <code class='wmnds-website-inline-code'>selected</code> is <code class='wmnds-website-inline-code'>true</code>" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.