File tree Expand file tree Collapse file tree 3 files changed +89
-83
lines changed
packages/kit-headless/src/components/autocomplete Expand file tree Collapse file tree 3 files changed +89
-83
lines changed Original file line number Diff line number Diff line change @@ -9,88 +9,10 @@ import {
99 AutocompleteOption ,
1010} from './index' ;
1111
12+ import TestData from './test-data' ;
13+
1214const RegularAutocomplete = component$ ( ( ) => {
13- const fruits = [
14- 'Apple' ,
15- 'Apricot' ,
16- 'Avocado 🥑' ,
17- 'Banana' ,
18- 'Bilberry' ,
19- 'Blackberry' ,
20- 'Blackcurrant' ,
21- 'Blueberry' ,
22- 'Boysenberry' ,
23- 'Currant' ,
24- 'Cherry' ,
25- 'Coconut' ,
26- 'Cranberry' ,
27- 'Cucumber' ,
28- 'Custard apple' ,
29- 'Damson' ,
30- 'Date' ,
31- 'Dragonfruit' ,
32- 'Durian' ,
33- 'Elderberry' ,
34- 'Feijoa' ,
35- 'Fig' ,
36- 'Gooseberry' ,
37- 'Grape' ,
38- 'Raisin' ,
39- 'Grapefruit' ,
40- 'Guava' ,
41- 'Honeyberry' ,
42- 'Huckleberry' ,
43- 'Jabuticaba' ,
44- 'Jackfruit' ,
45- 'Jambul' ,
46- 'Juniper berry' ,
47- 'Kiwifruit' ,
48- 'Kumquat' ,
49- 'Lemon' ,
50- 'Lime' ,
51- 'Loquat' ,
52- 'Longan' ,
53- 'Lychee' ,
54- 'Mango' ,
55- 'Mangosteen' ,
56- 'Marionberry' ,
57- 'Melon' ,
58- 'Cantaloupe' ,
59- 'Honeydew' ,
60- 'Watermelon' ,
61- 'Miracle fruit' ,
62- 'Mulberry' ,
63- 'Nectarine' ,
64- 'Nance' ,
65- 'Olive' ,
66- 'Orange' ,
67- 'Clementine' ,
68- 'Mandarine' ,
69- 'Tangerine' ,
70- 'Papaya' ,
71- 'Passionfruit' ,
72- 'Peach' ,
73- 'Pear' ,
74- 'Persimmon' ,
75- 'Plantain' ,
76- 'Plum' ,
77- 'Pineapple' ,
78- 'Pomegranate' ,
79- 'Pomelo' ,
80- 'Quince' ,
81- 'Raspberry' ,
82- 'Salmonberry' ,
83- 'Rambutan' ,
84- 'Redcurrant' ,
85- 'Salak' ,
86- 'Satsuma' ,
87- 'Soursop' ,
88- 'Star fruit' ,
89- 'Strawberry' ,
90- 'Tamarillo' ,
91- 'Tamarind' ,
92- 'Yuzu' ,
93- ] ;
15+ const fruits = TestData ( ) ;
9416
9517 return (
9618 < >
Original file line number Diff line number Diff line change 11import { Meta , StoryObj } from 'storybook-framework-qwik' ;
2- import { userEvent , within } from '@storybook/testing-library' ;
3- import { expect } from '@storybook/jest' ;
2+ import { within } from '@storybook/testing-library' ;
43import './autocompleteTest.css' ;
54
65/*
Original file line number Diff line number Diff line change 1+ export default function TestData ( ) {
2+ const fruits = [
3+ 'Apple' ,
4+ 'Apricot' ,
5+ 'Avocado 🥑' ,
6+ 'Banana' ,
7+ 'Bilberry' ,
8+ 'Blackberry' ,
9+ 'Blackcurrant' ,
10+ 'Blueberry' ,
11+ 'Boysenberry' ,
12+ 'Currant' ,
13+ 'Cherry' ,
14+ 'Coconut' ,
15+ 'Cranberry' ,
16+ 'Cucumber' ,
17+ 'Custard apple' ,
18+ 'Damson' ,
19+ 'Date' ,
20+ 'Dragonfruit' ,
21+ 'Durian' ,
22+ 'Elderberry' ,
23+ 'Feijoa' ,
24+ 'Fig' ,
25+ 'Gooseberry' ,
26+ 'Grape' ,
27+ 'Raisin' ,
28+ 'Grapefruit' ,
29+ 'Guava' ,
30+ 'Honeyberry' ,
31+ 'Huckleberry' ,
32+ 'Jabuticaba' ,
33+ 'Jackfruit' ,
34+ 'Jambul' ,
35+ 'Juniper berry' ,
36+ 'Kiwifruit' ,
37+ 'Kumquat' ,
38+ 'Lemon' ,
39+ 'Lime' ,
40+ 'Loquat' ,
41+ 'Longan' ,
42+ 'Lychee' ,
43+ 'Mango' ,
44+ 'Mangosteen' ,
45+ 'Marionberry' ,
46+ 'Melon' ,
47+ 'Cantaloupe' ,
48+ 'Honeydew' ,
49+ 'Watermelon' ,
50+ 'Miracle fruit' ,
51+ 'Mulberry' ,
52+ 'Nectarine' ,
53+ 'Nance' ,
54+ 'Olive' ,
55+ 'Orange' ,
56+ 'Clementine' ,
57+ 'Mandarine' ,
58+ 'Tangerine' ,
59+ 'Papaya' ,
60+ 'Passionfruit' ,
61+ 'Peach' ,
62+ 'Pear' ,
63+ 'Persimmon' ,
64+ 'Plantain' ,
65+ 'Plum' ,
66+ 'Pineapple' ,
67+ 'Pomegranate' ,
68+ 'Pomelo' ,
69+ 'Quince' ,
70+ 'Raspberry' ,
71+ 'Salmonberry' ,
72+ 'Rambutan' ,
73+ 'Redcurrant' ,
74+ 'Salak' ,
75+ 'Satsuma' ,
76+ 'Soursop' ,
77+ 'Star fruit' ,
78+ 'Strawberry' ,
79+ 'Tamarillo' ,
80+ 'Tamarind' ,
81+ 'Yuzu' ,
82+ ] ;
83+
84+ return fruits ;
85+ }
You can’t perform that action at this time.
0 commit comments