Repository URL to install this package:
|
Version:
1.1.16 ▾
|
/**
* @todo ☑️ close dropdown on resize
* @todo ☑️ context integration
*/
const defaultSuggestionList = Object.freeze([
'Jeans|||Men',
'Jeans|||Women',
'Shoes|||Kids',
'Shoes||| ',
// 'Shoes|||Boys',
// 'Shoes|||Girls',
// 'Electronics',
// '️️️☑️ context integration',
// '☑️ validation',
// '☑️ clear item ls & update',
// '☑️ close dropdown on resize',
// '✅ search results page',
// '✅ search results routing',
// '✅ refactor search input',
// '✅ api integration',
// '✅ container & data integration',
// '✅ reusable scoped state search input',
// '✅ search input uncontrolled -> controlled observable',
// '✅ onClick item',
// '✅ onCancel',
// '✅ clear all',
// '✅ click boundary for reusable focus management',
// '✅ refactor out link hardcoded in items',
// '✅ show icon on mobile',
// '✅ label with decorated identifier for icon-as-label',
// '✅ clear item action',
// '✅ mobile',
// '✅ slide down anim 1/2',
// '✅ empty results',
])
const defaultSuggestion = Object.freeze({
'label': 'keywords',
'value': defaultSuggestionList,
})
const fixture = {
'type': 'suggestion',
'properties': {
'suggestion': [defaultSuggestion],
},
}
const wording = {
/**
* @fixme @invalid @todo @split @unstable @throws
*/
// placeholder: __THEME_IMPORT__ === './wr' ? 'Search' : 'Search this site...',
placeholder: "Search"
}
export {
defaultSuggestionList,
defaultSuggestion,
fixture,
wording,
}
export default fixture