2022-03-25 15:22:56 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import ListItemSearch from '.';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Pages/Swaps/SearchableItemList/ListItemSearch',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-03-25 15:22:56 +01:00
|
|
|
argTypes: {
|
|
|
|
onSearch: {
|
|
|
|
action: 'onSearch',
|
|
|
|
},
|
|
|
|
error: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
listToSearch: {
|
|
|
|
control: 'select',
|
|
|
|
},
|
|
|
|
fuseSearchKeys: {
|
|
|
|
control: 'select',
|
|
|
|
},
|
|
|
|
searchPlaceholderText: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
defaultToAll: {
|
|
|
|
control: 'boolean',
|
|
|
|
},
|
|
|
|
shouldSearchForImports: {
|
|
|
|
control: 'boolean',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <ListItemSearch {...args} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|