import * as React from 'react'; import SelectorList from '..'; import { selectorListTestkitFactory } from '../../../testkit'; function SelectorListWithMandatoryProps() { return ( Promise.resolve({ items: [], totalCount: 0 }) } /> ); } function SelectorListWithAllProps() { return ( Promise.resolve({ items: [ { id: 1, title:
, subtitle: 'test', subtitleNode:
, extraText: 'test', extraNode:
, disabled: true, selected: true, image:
, belowNode:
, showBelowNodeOnSelect: true, }, ], totalCount: 0, }) } emptyState={
} dataHook="hook" height="10px" imageShape="circle" imageSize="cinema" itemsPerPage={10} maxHeight="15px" multiple renderNoResults={_searchValue =>
} searchDebounceMs={1000} searchPlaceholder="placeholder" withSearch onSelect={_item => {}} /> ); } function ShouldSupportMultipleItemsSelection() { return ( Promise.resolve({ items: [], totalCount: 0 }) } emptyState={
} multiple /> ); } function ShouldSupportSingleSelection() { return ( Promise.resolve({ items: [], totalCount: 0 }) } emptyState={
} multiple={false} /> ); } async function testkits() { const testkit = selectorListTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); }