@primer/components 30.3.0-rc.2010c7d4 → 31.0.0-rc.15aa0a10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/.eslintrc.json +2 -1
  2. package/.storybook/preview.js +4 -4
  3. package/CHANGELOG.md +12 -2
  4. package/codemods/deprecateUtilityComponents.js +1 -1
  5. package/contributor-docs/adrs/adr-003-prop-norms.md +72 -0
  6. package/dist/browser.esm.js +798 -794
  7. package/dist/browser.esm.js.map +1 -1
  8. package/dist/browser.umd.js +801 -797
  9. package/dist/browser.umd.js.map +1 -1
  10. package/docs/content/Autocomplete.mdx +627 -0
  11. package/docs/content/TextInputTokens.mdx +89 -0
  12. package/docs/content/getting-started.md +1 -1
  13. package/docs/content/overriding-styles.mdx +7 -6
  14. package/docs/content/theming.md +5 -5
  15. package/docs/package-lock.json +288 -511
  16. package/docs/package.json +1 -1
  17. package/docs/src/@primer/gatsby-theme-doctocat/components/hero.js +14 -12
  18. package/docs/src/@primer/gatsby-theme-doctocat/nav.yml +2 -0
  19. package/docs/src/@primer/gatsby-theme-doctocat/primer-components-hero.svg +7 -7
  20. package/lib/ActionList/Item.js +1 -1
  21. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +2 -1
  22. package/lib/AnchoredOverlay/AnchoredOverlay.js +11 -3
  23. package/lib/Autocomplete/Autocomplete.d.ts +304 -0
  24. package/lib/Autocomplete/Autocomplete.js +145 -0
  25. package/lib/Autocomplete/AutocompleteContext.d.ts +17 -0
  26. package/lib/Autocomplete/AutocompleteContext.js +11 -0
  27. package/lib/Autocomplete/AutocompleteInput.d.ts +292 -0
  28. package/lib/Autocomplete/AutocompleteInput.js +157 -0
  29. package/lib/Autocomplete/AutocompleteMenu.d.ts +72 -0
  30. package/lib/Autocomplete/AutocompleteMenu.js +224 -0
  31. package/lib/Autocomplete/AutocompleteOverlay.d.ts +20 -0
  32. package/lib/Autocomplete/AutocompleteOverlay.js +80 -0
  33. package/lib/Autocomplete/index.d.ts +2 -0
  34. package/lib/Autocomplete/index.js +15 -0
  35. package/lib/BaseStyles.js +1 -1
  36. package/lib/BorderBox.js +1 -1
  37. package/lib/Button/ButtonInvisible.js +1 -1
  38. package/lib/Caret.js +2 -2
  39. package/lib/Dialog.js +1 -1
  40. package/lib/FilteredActionList/FilteredActionList.js +5 -31
  41. package/lib/Flash.js +16 -16
  42. package/lib/Label.js +1 -1
  43. package/lib/Overlay.d.ts +1 -0
  44. package/lib/Overlay.js +3 -1
  45. package/lib/ProgressBar.js +1 -1
  46. package/lib/StateLabel.js +13 -19
  47. package/lib/Token/_RemoveTokenButton.js +1 -1
  48. package/lib/__tests__/Autocomplete.test.d.ts +1 -0
  49. package/lib/__tests__/Autocomplete.test.js +528 -0
  50. package/lib/__tests__/BorderBox.test.js +1 -1
  51. package/lib/__tests__/CircleOcticon.test.js +1 -1
  52. package/lib/__tests__/CounterLabel.test.js +4 -4
  53. package/lib/__tests__/Flash.test.js +4 -4
  54. package/lib/__tests__/Link.test.js +1 -1
  55. package/lib/__tests__/behaviors/scrollIntoViewingArea.test.d.ts +1 -0
  56. package/lib/__tests__/behaviors/scrollIntoViewingArea.test.js +226 -0
  57. package/lib/behaviors/scrollIntoViewingArea.d.ts +1 -0
  58. package/lib/behaviors/scrollIntoViewingArea.js +39 -0
  59. package/lib/hooks/useOpenAndCloseFocus.d.ts +2 -1
  60. package/lib/hooks/useOpenAndCloseFocus.js +7 -2
  61. package/lib/hooks/useOverlay.d.ts +2 -1
  62. package/lib/hooks/useOverlay.js +4 -2
  63. package/lib/index.d.ts +2 -0
  64. package/lib/index.js +8 -0
  65. package/lib/stories/Autocomplete.stories.js +608 -0
  66. package/lib/stories/Dialog.stories.js +3 -3
  67. package/lib/stories/IssueLabelToken.stories.js +1 -1
  68. package/lib/stories/ProfileToken.stories.js +1 -1
  69. package/lib/theme-preval.js +370 -3100
  70. package/lib/utils/testing.d.ts +50 -493
  71. package/lib/utils/types/MandateProps.d.ts +3 -0
  72. package/lib/utils/types/MandateProps.js +1 -0
  73. package/lib/utils/types/index.d.ts +1 -0
  74. package/lib/utils/types/index.js +13 -0
  75. package/lib-esm/ActionList/Item.js +1 -1
  76. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +2 -1
  77. package/lib-esm/AnchoredOverlay/AnchoredOverlay.js +11 -3
  78. package/lib-esm/Autocomplete/Autocomplete.d.ts +304 -0
  79. package/lib-esm/Autocomplete/Autocomplete.js +123 -0
  80. package/lib-esm/Autocomplete/AutocompleteContext.d.ts +17 -0
  81. package/lib-esm/Autocomplete/AutocompleteContext.js +2 -0
  82. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +292 -0
  83. package/lib-esm/Autocomplete/AutocompleteInput.js +138 -0
  84. package/lib-esm/Autocomplete/AutocompleteMenu.d.ts +72 -0
  85. package/lib-esm/Autocomplete/AutocompleteMenu.js +205 -0
  86. package/lib-esm/Autocomplete/AutocompleteOverlay.d.ts +20 -0
  87. package/lib-esm/Autocomplete/AutocompleteOverlay.js +62 -0
  88. package/lib-esm/Autocomplete/index.d.ts +2 -0
  89. package/lib-esm/Autocomplete/index.js +1 -0
  90. package/lib-esm/BaseStyles.js +1 -1
  91. package/lib-esm/BorderBox.js +1 -1
  92. package/lib-esm/Button/ButtonInvisible.js +1 -1
  93. package/lib-esm/Caret.js +2 -2
  94. package/lib-esm/Dialog.js +1 -1
  95. package/lib-esm/FilteredActionList/FilteredActionList.js +3 -31
  96. package/lib-esm/Flash.js +16 -16
  97. package/lib-esm/Label.js +1 -1
  98. package/lib-esm/Overlay.d.ts +1 -0
  99. package/lib-esm/Overlay.js +3 -1
  100. package/lib-esm/ProgressBar.js +1 -1
  101. package/lib-esm/StateLabel.js +13 -19
  102. package/lib-esm/Token/_RemoveTokenButton.js +1 -1
  103. package/lib-esm/__tests__/Autocomplete.test.d.ts +1 -0
  104. package/lib-esm/__tests__/Autocomplete.test.js +494 -0
  105. package/lib-esm/__tests__/BorderBox.test.js +1 -1
  106. package/lib-esm/__tests__/CircleOcticon.test.js +1 -1
  107. package/lib-esm/__tests__/CounterLabel.test.js +4 -4
  108. package/lib-esm/__tests__/Flash.test.js +4 -4
  109. package/lib-esm/__tests__/Link.test.js +1 -1
  110. package/lib-esm/__tests__/behaviors/scrollIntoViewingArea.test.d.ts +1 -0
  111. package/lib-esm/__tests__/behaviors/scrollIntoViewingArea.test.js +224 -0
  112. package/lib-esm/behaviors/scrollIntoViewingArea.d.ts +1 -0
  113. package/lib-esm/behaviors/scrollIntoViewingArea.js +30 -0
  114. package/lib-esm/hooks/useOpenAndCloseFocus.d.ts +2 -1
  115. package/lib-esm/hooks/useOpenAndCloseFocus.js +7 -2
  116. package/lib-esm/hooks/useOverlay.d.ts +2 -1
  117. package/lib-esm/hooks/useOverlay.js +4 -2
  118. package/lib-esm/index.d.ts +2 -0
  119. package/lib-esm/index.js +1 -0
  120. package/lib-esm/stories/Autocomplete.stories.js +549 -0
  121. package/lib-esm/stories/Dialog.stories.js +3 -3
  122. package/lib-esm/stories/IssueLabelToken.stories.js +1 -1
  123. package/lib-esm/stories/ProfileToken.stories.js +1 -1
  124. package/lib-esm/theme-preval.js +370 -3100
  125. package/lib-esm/utils/testing.d.ts +50 -493
  126. package/lib-esm/utils/types/MandateProps.d.ts +3 -0
  127. package/lib-esm/utils/types/MandateProps.js +1 -0
  128. package/lib-esm/utils/types/index.d.ts +1 -0
  129. package/lib-esm/utils/types/index.js +2 -1
  130. package/package-lock.json +11 -8
  131. package/package.json +3 -3
  132. package/src/ActionList/Item.tsx +1 -1
  133. package/src/AnchoredOverlay/AnchoredOverlay.tsx +14 -3
  134. package/src/Autocomplete/Autocomplete.tsx +103 -0
  135. package/src/Autocomplete/AutocompleteContext.tsx +19 -0
  136. package/src/Autocomplete/AutocompleteInput.tsx +179 -0
  137. package/src/Autocomplete/AutocompleteMenu.tsx +341 -0
  138. package/src/Autocomplete/AutocompleteOverlay.tsx +68 -0
  139. package/src/Autocomplete/index.ts +2 -0
  140. package/src/BaseStyles.tsx +1 -1
  141. package/src/BorderBox.tsx +1 -1
  142. package/src/Button/ButtonInvisible.tsx +7 -2
  143. package/src/Caret.tsx +2 -2
  144. package/src/Dialog.tsx +1 -1
  145. package/src/FilteredActionList/FilteredActionList.tsx +10 -25
  146. package/src/Flash.tsx +16 -16
  147. package/src/Label.tsx +1 -1
  148. package/src/Overlay.tsx +4 -1
  149. package/src/ProgressBar.tsx +1 -1
  150. package/src/StateLabel.tsx +12 -20
  151. package/src/Token/_RemoveTokenButton.tsx +4 -2
  152. package/src/__tests__/Autocomplete.test.tsx +444 -0
  153. package/src/__tests__/BorderBox.test.tsx +1 -1
  154. package/src/__tests__/CircleOcticon.test.tsx +1 -1
  155. package/src/__tests__/CounterLabel.test.tsx +4 -4
  156. package/src/__tests__/Flash.test.tsx +4 -4
  157. package/src/__tests__/Link.test.tsx +1 -1
  158. package/src/__tests__/__snapshots__/AnchoredOverlay.test.tsx.snap +3 -3
  159. package/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap +3414 -0
  160. package/src/__tests__/__snapshots__/Button.test.tsx.snap +9 -1
  161. package/src/__tests__/__snapshots__/ConfirmationDialog.test.tsx.snap +1 -1
  162. package/src/__tests__/__snapshots__/SelectPanel.test.tsx.snap +1 -1
  163. package/src/__tests__/__snapshots__/StateLabel.test.tsx.snap +0 -21
  164. package/src/__tests__/__snapshots__/TextInputWithTokens.test.tsx.snap +16 -16
  165. package/src/__tests__/__snapshots__/Token.test.tsx.snap +34 -34
  166. package/src/__tests__/behaviors/scrollIntoViewingArea.test.ts +195 -0
  167. package/src/behaviors/scrollIntoViewingArea.ts +27 -0
  168. package/src/hooks/useOpenAndCloseFocus.ts +7 -2
  169. package/src/hooks/useOverlay.tsx +4 -2
  170. package/src/index.ts +2 -0
  171. package/src/stories/Autocomplete.stories.tsx +572 -0
  172. package/src/stories/Dialog.stories.tsx +3 -3
  173. package/src/stories/IssueLabelToken.stories.tsx +1 -1
  174. package/src/stories/ProfileToken.stories.tsx +1 -1
  175. package/src/utils/types/MandateProps.ts +19 -0
  176. package/src/utils/types/index.ts +1 -0
  177. package/stats.html +1 -1
  178. package/docs/src/@primer/gatsby-theme-doctocat/components/live-code.js +0 -84
  179. package/docs/src/@primer/gatsby-theme-doctocat/components/nav-dropdown.js +0 -48
  180. package/docs/src/@primer/gatsby-theme-doctocat/components/wrap-page-element.js +0 -25
@@ -0,0 +1,3414 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Autocomplete snapshots renders a custom empty state message 1`] = `
4
+ Array [
5
+ .c1 {
6
+ border: 0;
7
+ font-size: inherit;
8
+ font-family: inherit;
9
+ background-color: transparent;
10
+ -webkit-appearance: none;
11
+ color: inherit;
12
+ width: 100%;
13
+ }
14
+
15
+ .c1:focus {
16
+ outline: 0;
17
+ }
18
+
19
+ .c0 {
20
+ display: -webkit-inline-box;
21
+ display: -webkit-inline-flex;
22
+ display: -ms-inline-flexbox;
23
+ display: inline-flex;
24
+ -webkit-align-items: stretch;
25
+ -webkit-box-align: stretch;
26
+ -ms-flex-align: stretch;
27
+ align-items: stretch;
28
+ min-height: 34px;
29
+ font-size: 14px;
30
+ line-height: 20px;
31
+ color: #24292f;
32
+ vertical-align: middle;
33
+ background-repeat: no-repeat;
34
+ background-position: right 8px center;
35
+ border: 1px solid #d0d7de;
36
+ border-radius: 6px;
37
+ outline: none;
38
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
39
+ padding: 6px 12px;
40
+ }
41
+
42
+ .c0 .TextInput-icon {
43
+ -webkit-align-self: center;
44
+ -ms-flex-item-align: center;
45
+ align-self: center;
46
+ color: #57606a;
47
+ margin: 0 8px;
48
+ -webkit-flex-shrink: 0;
49
+ -ms-flex-negative: 0;
50
+ flex-shrink: 0;
51
+ }
52
+
53
+ .c0:focus-within {
54
+ border-color: #0969da;
55
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
56
+ }
57
+
58
+ @media (min-width:768px) {
59
+ .c0 {
60
+ font-size: 14px;
61
+ }
62
+ }
63
+
64
+ <span
65
+ className="c0 TextInput-wrapper"
66
+ >
67
+ <input
68
+ aria-autocomplete="both"
69
+ aria-controls="autocompleteId-listbox"
70
+ aria-expanded={false}
71
+ aria-haspopup="listbox"
72
+ aria-owns="autocompleteId-listbox"
73
+ className="c1"
74
+ onBlur={[Function]}
75
+ onChange={[Function]}
76
+ onFocus={[Function]}
77
+ onKeyDown={[Function]}
78
+ onKeyPress={[Function]}
79
+ onKeyUp={[Function]}
80
+ role="combobox"
81
+ type="text"
82
+ />
83
+ </span>,
84
+ .c0 {
85
+ position: absolute;
86
+ width: 1px;
87
+ height: 1px;
88
+ padding: 0;
89
+ margin: -1px;
90
+ overflow: hidden;
91
+ -webkit-clip: rect(0,0,0,0);
92
+ clip: rect(0,0,0,0);
93
+ white-space: nowrap;
94
+ border-width: 0;
95
+ }
96
+
97
+ .c1 {
98
+ padding: 16px;
99
+ }
100
+
101
+ <div
102
+ className="c0"
103
+ >
104
+ <div>
105
+ <div
106
+ className="c1"
107
+ >
108
+ No results
109
+ </div>
110
+ </div>
111
+ </div>,
112
+ ]
113
+ `;
114
+
115
+ exports[`Autocomplete snapshots renders a loading state 1`] = `
116
+ Array [
117
+ .c1 {
118
+ border: 0;
119
+ font-size: inherit;
120
+ font-family: inherit;
121
+ background-color: transparent;
122
+ -webkit-appearance: none;
123
+ color: inherit;
124
+ width: 100%;
125
+ }
126
+
127
+ .c1:focus {
128
+ outline: 0;
129
+ }
130
+
131
+ .c0 {
132
+ display: -webkit-inline-box;
133
+ display: -webkit-inline-flex;
134
+ display: -ms-inline-flexbox;
135
+ display: inline-flex;
136
+ -webkit-align-items: stretch;
137
+ -webkit-box-align: stretch;
138
+ -ms-flex-align: stretch;
139
+ align-items: stretch;
140
+ min-height: 34px;
141
+ font-size: 14px;
142
+ line-height: 20px;
143
+ color: #24292f;
144
+ vertical-align: middle;
145
+ background-repeat: no-repeat;
146
+ background-position: right 8px center;
147
+ border: 1px solid #d0d7de;
148
+ border-radius: 6px;
149
+ outline: none;
150
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
151
+ padding: 6px 12px;
152
+ }
153
+
154
+ .c0 .TextInput-icon {
155
+ -webkit-align-self: center;
156
+ -ms-flex-item-align: center;
157
+ align-self: center;
158
+ color: #57606a;
159
+ margin: 0 8px;
160
+ -webkit-flex-shrink: 0;
161
+ -ms-flex-negative: 0;
162
+ flex-shrink: 0;
163
+ }
164
+
165
+ .c0:focus-within {
166
+ border-color: #0969da;
167
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
168
+ }
169
+
170
+ @media (min-width:768px) {
171
+ .c0 {
172
+ font-size: 14px;
173
+ }
174
+ }
175
+
176
+ <span
177
+ className="c0 TextInput-wrapper"
178
+ >
179
+ <input
180
+ aria-autocomplete="both"
181
+ aria-controls="autocompleteId-listbox"
182
+ aria-expanded={false}
183
+ aria-haspopup="listbox"
184
+ aria-owns="autocompleteId-listbox"
185
+ className="c1"
186
+ onBlur={[Function]}
187
+ onChange={[Function]}
188
+ onFocus={[Function]}
189
+ onKeyDown={[Function]}
190
+ onKeyPress={[Function]}
191
+ onKeyUp={[Function]}
192
+ role="combobox"
193
+ type="text"
194
+ />
195
+ </span>,
196
+ .c0 {
197
+ position: absolute;
198
+ width: 1px;
199
+ height: 1px;
200
+ padding: 0;
201
+ margin: -1px;
202
+ overflow: hidden;
203
+ -webkit-clip: rect(0,0,0,0);
204
+ clip: rect(0,0,0,0);
205
+ white-space: nowrap;
206
+ border-width: 0;
207
+ }
208
+
209
+ .c1 {
210
+ padding: 16px;
211
+ display: -webkit-box;
212
+ display: -webkit-flex;
213
+ display: -ms-flexbox;
214
+ display: flex;
215
+ -webkit-box-pack: center;
216
+ -webkit-justify-content: center;
217
+ -ms-flex-pack: center;
218
+ justify-content: center;
219
+ }
220
+
221
+ .c2 {
222
+ -webkit-animation: rotate-keyframes 1s linear infinite;
223
+ animation: rotate-keyframes 1s linear infinite;
224
+ }
225
+
226
+ <div
227
+ className="c0"
228
+ >
229
+ <div
230
+ className="c1"
231
+ display="flex"
232
+ >
233
+ <svg
234
+ className="c2"
235
+ fill="none"
236
+ height="32px"
237
+ viewBox="0 0 16 16"
238
+ width="32px"
239
+ >
240
+ <circle
241
+ cx="8"
242
+ cy="8"
243
+ r="7"
244
+ stroke="currentColor"
245
+ strokeOpacity="0.25"
246
+ strokeWidth="2"
247
+ vectorEffect="non-scaling-stroke"
248
+ />
249
+ <path
250
+ d="M15 8a7.002 7.002 0 00-7-7"
251
+ stroke="currentColor"
252
+ strokeLinecap="round"
253
+ strokeWidth="2"
254
+ vectorEffect="non-scaling-stroke"
255
+ />
256
+ </svg>
257
+ </div>
258
+ </div>,
259
+ ]
260
+ `;
261
+
262
+ exports[`Autocomplete snapshots renders a menu that contains an item to add to the menu 1`] = `
263
+ Array [
264
+ .c1 {
265
+ border: 0;
266
+ font-size: inherit;
267
+ font-family: inherit;
268
+ background-color: transparent;
269
+ -webkit-appearance: none;
270
+ color: inherit;
271
+ width: 100%;
272
+ }
273
+
274
+ .c1:focus {
275
+ outline: 0;
276
+ }
277
+
278
+ .c0 {
279
+ display: -webkit-inline-box;
280
+ display: -webkit-inline-flex;
281
+ display: -ms-inline-flexbox;
282
+ display: inline-flex;
283
+ -webkit-align-items: stretch;
284
+ -webkit-box-align: stretch;
285
+ -ms-flex-align: stretch;
286
+ align-items: stretch;
287
+ min-height: 34px;
288
+ font-size: 14px;
289
+ line-height: 20px;
290
+ color: #24292f;
291
+ vertical-align: middle;
292
+ background-repeat: no-repeat;
293
+ background-position: right 8px center;
294
+ border: 1px solid #d0d7de;
295
+ border-radius: 6px;
296
+ outline: none;
297
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
298
+ padding: 6px 12px;
299
+ }
300
+
301
+ .c0 .TextInput-icon {
302
+ -webkit-align-self: center;
303
+ -ms-flex-item-align: center;
304
+ align-self: center;
305
+ color: #57606a;
306
+ margin: 0 8px;
307
+ -webkit-flex-shrink: 0;
308
+ -ms-flex-negative: 0;
309
+ flex-shrink: 0;
310
+ }
311
+
312
+ .c0:focus-within {
313
+ border-color: #0969da;
314
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
315
+ }
316
+
317
+ @media (min-width:768px) {
318
+ .c0 {
319
+ font-size: 14px;
320
+ }
321
+ }
322
+
323
+ <span
324
+ className="c0 TextInput-wrapper"
325
+ >
326
+ <input
327
+ aria-autocomplete="both"
328
+ aria-controls="autocompleteId-listbox"
329
+ aria-expanded={false}
330
+ aria-haspopup="listbox"
331
+ aria-owns="autocompleteId-listbox"
332
+ className="c1"
333
+ onBlur={[Function]}
334
+ onChange={[Function]}
335
+ onFocus={[Function]}
336
+ onKeyDown={[Function]}
337
+ onKeyPress={[Function]}
338
+ onKeyUp={[Function]}
339
+ role="combobox"
340
+ type="text"
341
+ />
342
+ </span>,
343
+ .c0 {
344
+ position: absolute;
345
+ width: 1px;
346
+ height: 1px;
347
+ padding: 0;
348
+ margin: -1px;
349
+ overflow: hidden;
350
+ -webkit-clip: rect(0,0,0,0);
351
+ clip: rect(0,0,0,0);
352
+ white-space: nowrap;
353
+ border-width: 0;
354
+ }
355
+
356
+ .c2 {
357
+ margin-top: 8px;
358
+ margin-bottom: 8px;
359
+ }
360
+
361
+ .c8 {
362
+ display: -webkit-box;
363
+ display: -webkit-flex;
364
+ display: -ms-flexbox;
365
+ display: flex;
366
+ min-width: 0;
367
+ position: relative;
368
+ -webkit-box-flex: 1;
369
+ -webkit-flex-grow: 1;
370
+ -ms-flex-positive: 1;
371
+ flex-grow: 1;
372
+ }
373
+
374
+ .c9 {
375
+ -webkit-align-items: baseline;
376
+ -webkit-box-align: baseline;
377
+ -ms-flex-align: baseline;
378
+ align-items: baseline;
379
+ display: -webkit-box;
380
+ display: -webkit-flex;
381
+ display: -ms-flexbox;
382
+ display: flex;
383
+ min-width: 0;
384
+ -webkit-flex-direction: var(--main-content-flex-direction);
385
+ -ms-flex-direction: var(--main-content-flex-direction);
386
+ flex-direction: var(--main-content-flex-direction);
387
+ -webkit-box-flex: 1;
388
+ -webkit-flex-grow: 1;
389
+ -ms-flex-positive: 1;
390
+ flex-grow: 1;
391
+ }
392
+
393
+ .c4 {
394
+ padding: 6px 8px;
395
+ display: -webkit-box;
396
+ display: -webkit-flex;
397
+ display: -ms-flexbox;
398
+ display: flex;
399
+ border-radius: 6px;
400
+ color: #24292f;
401
+ -webkit-transition: background 33.333ms linear;
402
+ transition: background 33.333ms linear;
403
+ -webkit-text-decoration: none;
404
+ text-decoration: none;
405
+ margin-left: 8px;
406
+ margin-right: 8px;
407
+ }
408
+
409
+ .c4:not(:first-of-type):not(.c12 + .c3):not(.c11 + .c3) {
410
+ margin-top: 0;
411
+ }
412
+
413
+ .c4:not(:first-of-type):not(.c12 + .c3):not(.c11 + .c3) .c7::before {
414
+ content: ' ';
415
+ display: block;
416
+ position: absolute;
417
+ width: 100%;
418
+ top: -7px;
419
+ border: 0 solid hsla(210,18%,87%,1);
420
+ border-top-width: 0;
421
+ }
422
+
423
+ .c4:hover .c7::before,
424
+ .c4:hover + * .c7::before {
425
+ border-color: var(--item-hover-divider-border-color-override,transparent) !important;
426
+ }
427
+
428
+ .c4:focus .c7::before,
429
+ .c4:focus + * .c7::before,
430
+ .c4[data-is-active-descendant] .c7::before,
431
+ [data-is-active-descendant] + .c4 .c7::before {
432
+ border-color: transparent !important;
433
+ }
434
+
435
+ .c4[data-is-active-descendant='activated-directly'] {
436
+ background: rgba(54,77,100,0.16);
437
+ }
438
+
439
+ .c4[data-is-active-descendant='activated-indirectly'] {
440
+ background: rgba(46,77,108,0.06);
441
+ }
442
+
443
+ .c4:focus {
444
+ background: rgba(54,77,100,0.16);
445
+ outline: none;
446
+ }
447
+
448
+ .c4:active {
449
+ background: rgba(54,77,100,0.16);
450
+ }
451
+
452
+ .c5 {
453
+ height: 20px;
454
+ width: 16px;
455
+ margin-right: 8px;
456
+ }
457
+
458
+ .c10 {
459
+ height: 20px;
460
+ width: 16px;
461
+ margin-right: 8px;
462
+ -webkit-flex-shrink: 0;
463
+ -ms-flex-negative: 0;
464
+ flex-shrink: 0;
465
+ display: -webkit-box;
466
+ display: -webkit-flex;
467
+ display: -ms-flexbox;
468
+ display: flex;
469
+ -webkit-flex-direction: column;
470
+ -ms-flex-direction: column;
471
+ flex-direction: column;
472
+ -webkit-box-pack: center;
473
+ -webkit-justify-content: center;
474
+ -ms-flex-pack: center;
475
+ justify-content: center;
476
+ }
477
+
478
+ .c10 svg {
479
+ fill: #57606a;
480
+ font-size: 12px;
481
+ }
482
+
483
+ .c6 {
484
+ pointer-events: none;
485
+ }
486
+
487
+ .c1 {
488
+ font-size: 14px;
489
+ line-height: 20px;
490
+ }
491
+
492
+ .c1[data-has-active-descendant],
493
+ .c1:focus-within {
494
+ --item-hover-bg-override: none;
495
+ --item-hover-divider-border-color-override: hsla(210,18%,87%,1);
496
+ }
497
+
498
+ @media (hover:hover) and (pointer:fine) {
499
+ .c4:hover {
500
+ background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
501
+ cursor: pointer;
502
+ }
503
+ }
504
+
505
+ <div
506
+ className="c0"
507
+ >
508
+ <div>
509
+ <div
510
+ aria-labelledby="labelId"
511
+ className="c1"
512
+ id="autocompleteId-listbox"
513
+ role="listbox"
514
+ >
515
+ <div
516
+ className="c2"
517
+ >
518
+ <div
519
+ aria-labelledby="react-aria-1"
520
+ aria-selected={false}
521
+ className="c3 c4"
522
+ data-id={0}
523
+ onClick={[Function]}
524
+ onKeyPress={[Function]}
525
+ role="option"
526
+ tabIndex={-1}
527
+ >
528
+ <div
529
+ className="c5"
530
+ >
531
+ <input
532
+ aria-label="zero"
533
+ aria-readonly="false"
534
+ checked={false}
535
+ className="c6"
536
+ readOnly={true}
537
+ tabIndex={-1}
538
+ type="checkbox"
539
+ />
540
+ </div>
541
+ <div
542
+ className="c7 c8"
543
+ >
544
+ <div
545
+ className="c9"
546
+ style={
547
+ Object {
548
+ "--main-content-flex-direction": "row",
549
+ }
550
+ }
551
+ >
552
+ <span
553
+ className=""
554
+ id="react-aria-1"
555
+ >
556
+ zero
557
+ </span>
558
+ </div>
559
+ </div>
560
+ </div>
561
+ <div
562
+ aria-labelledby="react-aria-3"
563
+ aria-selected={false}
564
+ className="c3 c4"
565
+ data-id={1}
566
+ onClick={[Function]}
567
+ onKeyPress={[Function]}
568
+ role="option"
569
+ tabIndex={-1}
570
+ >
571
+ <div
572
+ className="c5"
573
+ >
574
+ <input
575
+ aria-label="one"
576
+ aria-readonly="false"
577
+ checked={false}
578
+ className="c6"
579
+ readOnly={true}
580
+ tabIndex={-1}
581
+ type="checkbox"
582
+ />
583
+ </div>
584
+ <div
585
+ className="c7 c8"
586
+ >
587
+ <div
588
+ className="c9"
589
+ style={
590
+ Object {
591
+ "--main-content-flex-direction": "row",
592
+ }
593
+ }
594
+ >
595
+ <span
596
+ className=""
597
+ id="react-aria-3"
598
+ >
599
+ one
600
+ </span>
601
+ </div>
602
+ </div>
603
+ </div>
604
+ <div
605
+ aria-labelledby="react-aria-5"
606
+ aria-selected={false}
607
+ className="c3 c4"
608
+ data-id={2}
609
+ onClick={[Function]}
610
+ onKeyPress={[Function]}
611
+ role="option"
612
+ tabIndex={-1}
613
+ >
614
+ <div
615
+ className="c5"
616
+ >
617
+ <input
618
+ aria-label="two"
619
+ aria-readonly="false"
620
+ checked={false}
621
+ className="c6"
622
+ readOnly={true}
623
+ tabIndex={-1}
624
+ type="checkbox"
625
+ />
626
+ </div>
627
+ <div
628
+ className="c7 c8"
629
+ >
630
+ <div
631
+ className="c9"
632
+ style={
633
+ Object {
634
+ "--main-content-flex-direction": "row",
635
+ }
636
+ }
637
+ >
638
+ <span
639
+ className=""
640
+ id="react-aria-5"
641
+ >
642
+ two
643
+ </span>
644
+ </div>
645
+ </div>
646
+ </div>
647
+ <div
648
+ aria-labelledby="react-aria-7"
649
+ aria-selected={false}
650
+ className="c3 c4"
651
+ data-id={3}
652
+ onClick={[Function]}
653
+ onKeyPress={[Function]}
654
+ role="option"
655
+ tabIndex={-1}
656
+ >
657
+ <div
658
+ className="c5"
659
+ >
660
+ <input
661
+ aria-label="three"
662
+ aria-readonly="false"
663
+ checked={false}
664
+ className="c6"
665
+ readOnly={true}
666
+ tabIndex={-1}
667
+ type="checkbox"
668
+ />
669
+ </div>
670
+ <div
671
+ className="c7 c8"
672
+ >
673
+ <div
674
+ className="c9"
675
+ style={
676
+ Object {
677
+ "--main-content-flex-direction": "row",
678
+ }
679
+ }
680
+ >
681
+ <span
682
+ className=""
683
+ id="react-aria-7"
684
+ >
685
+ three
686
+ </span>
687
+ </div>
688
+ </div>
689
+ </div>
690
+ <div
691
+ aria-labelledby="react-aria-9"
692
+ aria-selected={false}
693
+ className="c3 c4"
694
+ data-id={4}
695
+ onClick={[Function]}
696
+ onKeyPress={[Function]}
697
+ role="option"
698
+ tabIndex={-1}
699
+ >
700
+ <div
701
+ className="c5"
702
+ >
703
+ <input
704
+ aria-label="four"
705
+ aria-readonly="false"
706
+ checked={false}
707
+ className="c6"
708
+ readOnly={true}
709
+ tabIndex={-1}
710
+ type="checkbox"
711
+ />
712
+ </div>
713
+ <div
714
+ className="c7 c8"
715
+ >
716
+ <div
717
+ className="c9"
718
+ style={
719
+ Object {
720
+ "--main-content-flex-direction": "row",
721
+ }
722
+ }
723
+ >
724
+ <span
725
+ className=""
726
+ id="react-aria-9"
727
+ >
728
+ four
729
+ </span>
730
+ </div>
731
+ </div>
732
+ </div>
733
+ <div
734
+ aria-labelledby="react-aria-11"
735
+ aria-selected={false}
736
+ className="c3 c4"
737
+ data-id={5}
738
+ onClick={[Function]}
739
+ onKeyPress={[Function]}
740
+ role="option"
741
+ tabIndex={-1}
742
+ >
743
+ <div
744
+ className="c5"
745
+ >
746
+ <input
747
+ aria-label="five"
748
+ aria-readonly="false"
749
+ checked={false}
750
+ className="c6"
751
+ readOnly={true}
752
+ tabIndex={-1}
753
+ type="checkbox"
754
+ />
755
+ </div>
756
+ <div
757
+ className="c7 c8"
758
+ >
759
+ <div
760
+ className="c9"
761
+ style={
762
+ Object {
763
+ "--main-content-flex-direction": "row",
764
+ }
765
+ }
766
+ >
767
+ <span
768
+ className=""
769
+ id="react-aria-11"
770
+ >
771
+ five
772
+ </span>
773
+ </div>
774
+ </div>
775
+ </div>
776
+ <div
777
+ aria-labelledby="react-aria-13"
778
+ aria-selected={false}
779
+ className="c3 c4"
780
+ data-id={6}
781
+ onClick={[Function]}
782
+ onKeyPress={[Function]}
783
+ role="option"
784
+ tabIndex={-1}
785
+ >
786
+ <div
787
+ className="c5"
788
+ >
789
+ <input
790
+ aria-label="six"
791
+ aria-readonly="false"
792
+ checked={false}
793
+ className="c6"
794
+ readOnly={true}
795
+ tabIndex={-1}
796
+ type="checkbox"
797
+ />
798
+ </div>
799
+ <div
800
+ className="c7 c8"
801
+ >
802
+ <div
803
+ className="c9"
804
+ style={
805
+ Object {
806
+ "--main-content-flex-direction": "row",
807
+ }
808
+ }
809
+ >
810
+ <span
811
+ className=""
812
+ id="react-aria-13"
813
+ >
814
+ six
815
+ </span>
816
+ </div>
817
+ </div>
818
+ </div>
819
+ <div
820
+ aria-labelledby="react-aria-15"
821
+ aria-selected={false}
822
+ className="c3 c4"
823
+ data-id={7}
824
+ onClick={[Function]}
825
+ onKeyPress={[Function]}
826
+ role="option"
827
+ tabIndex={-1}
828
+ >
829
+ <div
830
+ className="c5"
831
+ >
832
+ <input
833
+ aria-label="seven"
834
+ aria-readonly="false"
835
+ checked={false}
836
+ className="c6"
837
+ readOnly={true}
838
+ tabIndex={-1}
839
+ type="checkbox"
840
+ />
841
+ </div>
842
+ <div
843
+ className="c7 c8"
844
+ >
845
+ <div
846
+ className="c9"
847
+ style={
848
+ Object {
849
+ "--main-content-flex-direction": "row",
850
+ }
851
+ }
852
+ >
853
+ <span
854
+ className=""
855
+ id="react-aria-15"
856
+ >
857
+ seven
858
+ </span>
859
+ </div>
860
+ </div>
861
+ </div>
862
+ <div
863
+ aria-labelledby="react-aria-17"
864
+ aria-selected={false}
865
+ className="c3 c4"
866
+ data-id={20}
867
+ onClick={[Function]}
868
+ onKeyPress={[Function]}
869
+ role="option"
870
+ tabIndex={-1}
871
+ >
872
+ <div
873
+ className="c5"
874
+ >
875
+ <input
876
+ aria-label="twenty"
877
+ aria-readonly="false"
878
+ checked={false}
879
+ className="c6"
880
+ readOnly={true}
881
+ tabIndex={-1}
882
+ type="checkbox"
883
+ />
884
+ </div>
885
+ <div
886
+ className="c7 c8"
887
+ >
888
+ <div
889
+ className="c9"
890
+ style={
891
+ Object {
892
+ "--main-content-flex-direction": "row",
893
+ }
894
+ }
895
+ >
896
+ <span
897
+ className=""
898
+ id="react-aria-17"
899
+ >
900
+ twenty
901
+ </span>
902
+ </div>
903
+ </div>
904
+ </div>
905
+ <div
906
+ aria-labelledby="react-aria-19"
907
+ aria-selected={false}
908
+ className="c3 c4"
909
+ data-id={21}
910
+ onClick={[Function]}
911
+ onKeyPress={[Function]}
912
+ role="option"
913
+ tabIndex={-1}
914
+ >
915
+ <div
916
+ className="c5"
917
+ >
918
+ <input
919
+ aria-label="twentyone"
920
+ aria-readonly="false"
921
+ checked={false}
922
+ className="c6"
923
+ readOnly={true}
924
+ tabIndex={-1}
925
+ type="checkbox"
926
+ />
927
+ </div>
928
+ <div
929
+ className="c7 c8"
930
+ >
931
+ <div
932
+ className="c9"
933
+ style={
934
+ Object {
935
+ "--main-content-flex-direction": "row",
936
+ }
937
+ }
938
+ >
939
+ <span
940
+ className=""
941
+ id="react-aria-19"
942
+ >
943
+ twentyone
944
+ </span>
945
+ </div>
946
+ </div>
947
+ </div>
948
+ <div
949
+ aria-labelledby="react-aria-21"
950
+ className="c3 c4"
951
+ onClick={[Function]}
952
+ onKeyPress={[Function]}
953
+ tabIndex={-1}
954
+ >
955
+ <div
956
+ className="c10"
957
+ >
958
+ <svg
959
+ aria-hidden="true"
960
+ className="octicon octicon-plus"
961
+ dangerouslySetInnerHTML={
962
+ Object {
963
+ "__html": "<path fill-rule=\\"evenodd\\" d=\\"M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z\\"></path>",
964
+ }
965
+ }
966
+ fill="currentColor"
967
+ height={16}
968
+ role="img"
969
+ style={
970
+ Object {
971
+ "display": "inline-block",
972
+ "userSelect": "none",
973
+ "verticalAlign": "text-bottom",
974
+ }
975
+ }
976
+ viewBox="0 0 16 16"
977
+ width={16}
978
+ />
979
+ </div>
980
+ <div
981
+ className="c7 c8"
982
+ >
983
+ <div
984
+ className="c9"
985
+ style={
986
+ Object {
987
+ "--main-content-flex-direction": "row",
988
+ }
989
+ }
990
+ >
991
+ <span
992
+ className=""
993
+ id="react-aria-21"
994
+ >
995
+ Add new item
996
+ </span>
997
+ </div>
998
+ </div>
999
+ </div>
1000
+ </div>
1001
+ </div>
1002
+ </div>
1003
+ </div>,
1004
+ ]
1005
+ `;
1006
+
1007
+ exports[`Autocomplete snapshots renders a multiselect input 1`] = `
1008
+ Array [
1009
+ .c1 {
1010
+ border: 0;
1011
+ font-size: inherit;
1012
+ font-family: inherit;
1013
+ background-color: transparent;
1014
+ -webkit-appearance: none;
1015
+ color: inherit;
1016
+ width: 100%;
1017
+ }
1018
+
1019
+ .c1:focus {
1020
+ outline: 0;
1021
+ }
1022
+
1023
+ .c0 {
1024
+ display: -webkit-inline-box;
1025
+ display: -webkit-inline-flex;
1026
+ display: -ms-inline-flexbox;
1027
+ display: inline-flex;
1028
+ -webkit-align-items: stretch;
1029
+ -webkit-box-align: stretch;
1030
+ -ms-flex-align: stretch;
1031
+ align-items: stretch;
1032
+ min-height: 34px;
1033
+ font-size: 14px;
1034
+ line-height: 20px;
1035
+ color: #24292f;
1036
+ vertical-align: middle;
1037
+ background-repeat: no-repeat;
1038
+ background-position: right 8px center;
1039
+ border: 1px solid #d0d7de;
1040
+ border-radius: 6px;
1041
+ outline: none;
1042
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
1043
+ padding: 6px 12px;
1044
+ }
1045
+
1046
+ .c0 .TextInput-icon {
1047
+ -webkit-align-self: center;
1048
+ -ms-flex-item-align: center;
1049
+ align-self: center;
1050
+ color: #57606a;
1051
+ margin: 0 8px;
1052
+ -webkit-flex-shrink: 0;
1053
+ -ms-flex-negative: 0;
1054
+ flex-shrink: 0;
1055
+ }
1056
+
1057
+ .c0:focus-within {
1058
+ border-color: #0969da;
1059
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
1060
+ }
1061
+
1062
+ @media (min-width:768px) {
1063
+ .c0 {
1064
+ font-size: 14px;
1065
+ }
1066
+ }
1067
+
1068
+ <span
1069
+ className="c0 TextInput-wrapper"
1070
+ >
1071
+ <input
1072
+ aria-autocomplete="both"
1073
+ aria-controls="autocompleteId-listbox"
1074
+ aria-expanded={false}
1075
+ aria-haspopup="listbox"
1076
+ aria-owns="autocompleteId-listbox"
1077
+ className="c1"
1078
+ onBlur={[Function]}
1079
+ onChange={[Function]}
1080
+ onFocus={[Function]}
1081
+ onKeyDown={[Function]}
1082
+ onKeyPress={[Function]}
1083
+ onKeyUp={[Function]}
1084
+ role="combobox"
1085
+ type="text"
1086
+ />
1087
+ </span>,
1088
+ .c0 {
1089
+ position: absolute;
1090
+ width: 1px;
1091
+ height: 1px;
1092
+ padding: 0;
1093
+ margin: -1px;
1094
+ overflow: hidden;
1095
+ -webkit-clip: rect(0,0,0,0);
1096
+ clip: rect(0,0,0,0);
1097
+ white-space: nowrap;
1098
+ border-width: 0;
1099
+ }
1100
+
1101
+ .c2 {
1102
+ margin-top: 8px;
1103
+ margin-bottom: 8px;
1104
+ }
1105
+
1106
+ .c8 {
1107
+ display: -webkit-box;
1108
+ display: -webkit-flex;
1109
+ display: -ms-flexbox;
1110
+ display: flex;
1111
+ min-width: 0;
1112
+ position: relative;
1113
+ -webkit-box-flex: 1;
1114
+ -webkit-flex-grow: 1;
1115
+ -ms-flex-positive: 1;
1116
+ flex-grow: 1;
1117
+ }
1118
+
1119
+ .c9 {
1120
+ -webkit-align-items: baseline;
1121
+ -webkit-box-align: baseline;
1122
+ -ms-flex-align: baseline;
1123
+ align-items: baseline;
1124
+ display: -webkit-box;
1125
+ display: -webkit-flex;
1126
+ display: -ms-flexbox;
1127
+ display: flex;
1128
+ min-width: 0;
1129
+ -webkit-flex-direction: var(--main-content-flex-direction);
1130
+ -ms-flex-direction: var(--main-content-flex-direction);
1131
+ flex-direction: var(--main-content-flex-direction);
1132
+ -webkit-box-flex: 1;
1133
+ -webkit-flex-grow: 1;
1134
+ -ms-flex-positive: 1;
1135
+ flex-grow: 1;
1136
+ }
1137
+
1138
+ .c4 {
1139
+ padding: 6px 8px;
1140
+ display: -webkit-box;
1141
+ display: -webkit-flex;
1142
+ display: -ms-flexbox;
1143
+ display: flex;
1144
+ border-radius: 6px;
1145
+ color: #24292f;
1146
+ -webkit-transition: background 33.333ms linear;
1147
+ transition: background 33.333ms linear;
1148
+ -webkit-text-decoration: none;
1149
+ text-decoration: none;
1150
+ margin-left: 8px;
1151
+ margin-right: 8px;
1152
+ }
1153
+
1154
+ .c4:not(:first-of-type):not(.c11 + .c3):not(.c10 + .c3) {
1155
+ margin-top: 0;
1156
+ }
1157
+
1158
+ .c4:not(:first-of-type):not(.c11 + .c3):not(.c10 + .c3) .c7::before {
1159
+ content: ' ';
1160
+ display: block;
1161
+ position: absolute;
1162
+ width: 100%;
1163
+ top: -7px;
1164
+ border: 0 solid hsla(210,18%,87%,1);
1165
+ border-top-width: 0;
1166
+ }
1167
+
1168
+ .c4:hover .c7::before,
1169
+ .c4:hover + * .c7::before {
1170
+ border-color: var(--item-hover-divider-border-color-override,transparent) !important;
1171
+ }
1172
+
1173
+ .c4:focus .c7::before,
1174
+ .c4:focus + * .c7::before,
1175
+ .c4[data-is-active-descendant] .c7::before,
1176
+ [data-is-active-descendant] + .c4 .c7::before {
1177
+ border-color: transparent !important;
1178
+ }
1179
+
1180
+ .c4[data-is-active-descendant='activated-directly'] {
1181
+ background: rgba(54,77,100,0.16);
1182
+ }
1183
+
1184
+ .c4[data-is-active-descendant='activated-indirectly'] {
1185
+ background: rgba(46,77,108,0.06);
1186
+ }
1187
+
1188
+ .c4:focus {
1189
+ background: rgba(54,77,100,0.16);
1190
+ outline: none;
1191
+ }
1192
+
1193
+ .c4:active {
1194
+ background: rgba(54,77,100,0.16);
1195
+ }
1196
+
1197
+ .c5 {
1198
+ height: 20px;
1199
+ width: 16px;
1200
+ margin-right: 8px;
1201
+ }
1202
+
1203
+ .c6 {
1204
+ pointer-events: none;
1205
+ }
1206
+
1207
+ .c1 {
1208
+ font-size: 14px;
1209
+ line-height: 20px;
1210
+ }
1211
+
1212
+ .c1[data-has-active-descendant],
1213
+ .c1:focus-within {
1214
+ --item-hover-bg-override: none;
1215
+ --item-hover-divider-border-color-override: hsla(210,18%,87%,1);
1216
+ }
1217
+
1218
+ @media (hover:hover) and (pointer:fine) {
1219
+ .c4:hover {
1220
+ background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
1221
+ cursor: pointer;
1222
+ }
1223
+ }
1224
+
1225
+ <div
1226
+ className="c0"
1227
+ >
1228
+ <div>
1229
+ <div
1230
+ aria-labelledby="labelId"
1231
+ className="c1"
1232
+ id="autocompleteId-listbox"
1233
+ role="listbox"
1234
+ >
1235
+ <div
1236
+ className="c2"
1237
+ >
1238
+ <div
1239
+ aria-labelledby="react-aria-1"
1240
+ aria-selected={false}
1241
+ className="c3 c4"
1242
+ data-id={0}
1243
+ onClick={[Function]}
1244
+ onKeyPress={[Function]}
1245
+ role="option"
1246
+ tabIndex={-1}
1247
+ >
1248
+ <div
1249
+ className="c5"
1250
+ >
1251
+ <input
1252
+ aria-label="zero"
1253
+ aria-readonly="false"
1254
+ checked={false}
1255
+ className="c6"
1256
+ readOnly={true}
1257
+ tabIndex={-1}
1258
+ type="checkbox"
1259
+ />
1260
+ </div>
1261
+ <div
1262
+ className="c7 c8"
1263
+ >
1264
+ <div
1265
+ className="c9"
1266
+ style={
1267
+ Object {
1268
+ "--main-content-flex-direction": "row",
1269
+ }
1270
+ }
1271
+ >
1272
+ <span
1273
+ className=""
1274
+ id="react-aria-1"
1275
+ >
1276
+ zero
1277
+ </span>
1278
+ </div>
1279
+ </div>
1280
+ </div>
1281
+ <div
1282
+ aria-labelledby="react-aria-3"
1283
+ aria-selected={false}
1284
+ className="c3 c4"
1285
+ data-id={1}
1286
+ onClick={[Function]}
1287
+ onKeyPress={[Function]}
1288
+ role="option"
1289
+ tabIndex={-1}
1290
+ >
1291
+ <div
1292
+ className="c5"
1293
+ >
1294
+ <input
1295
+ aria-label="one"
1296
+ aria-readonly="false"
1297
+ checked={false}
1298
+ className="c6"
1299
+ readOnly={true}
1300
+ tabIndex={-1}
1301
+ type="checkbox"
1302
+ />
1303
+ </div>
1304
+ <div
1305
+ className="c7 c8"
1306
+ >
1307
+ <div
1308
+ className="c9"
1309
+ style={
1310
+ Object {
1311
+ "--main-content-flex-direction": "row",
1312
+ }
1313
+ }
1314
+ >
1315
+ <span
1316
+ className=""
1317
+ id="react-aria-3"
1318
+ >
1319
+ one
1320
+ </span>
1321
+ </div>
1322
+ </div>
1323
+ </div>
1324
+ <div
1325
+ aria-labelledby="react-aria-5"
1326
+ aria-selected={false}
1327
+ className="c3 c4"
1328
+ data-id={2}
1329
+ onClick={[Function]}
1330
+ onKeyPress={[Function]}
1331
+ role="option"
1332
+ tabIndex={-1}
1333
+ >
1334
+ <div
1335
+ className="c5"
1336
+ >
1337
+ <input
1338
+ aria-label="two"
1339
+ aria-readonly="false"
1340
+ checked={false}
1341
+ className="c6"
1342
+ readOnly={true}
1343
+ tabIndex={-1}
1344
+ type="checkbox"
1345
+ />
1346
+ </div>
1347
+ <div
1348
+ className="c7 c8"
1349
+ >
1350
+ <div
1351
+ className="c9"
1352
+ style={
1353
+ Object {
1354
+ "--main-content-flex-direction": "row",
1355
+ }
1356
+ }
1357
+ >
1358
+ <span
1359
+ className=""
1360
+ id="react-aria-5"
1361
+ >
1362
+ two
1363
+ </span>
1364
+ </div>
1365
+ </div>
1366
+ </div>
1367
+ <div
1368
+ aria-labelledby="react-aria-7"
1369
+ aria-selected={false}
1370
+ className="c3 c4"
1371
+ data-id={3}
1372
+ onClick={[Function]}
1373
+ onKeyPress={[Function]}
1374
+ role="option"
1375
+ tabIndex={-1}
1376
+ >
1377
+ <div
1378
+ className="c5"
1379
+ >
1380
+ <input
1381
+ aria-label="three"
1382
+ aria-readonly="false"
1383
+ checked={false}
1384
+ className="c6"
1385
+ readOnly={true}
1386
+ tabIndex={-1}
1387
+ type="checkbox"
1388
+ />
1389
+ </div>
1390
+ <div
1391
+ className="c7 c8"
1392
+ >
1393
+ <div
1394
+ className="c9"
1395
+ style={
1396
+ Object {
1397
+ "--main-content-flex-direction": "row",
1398
+ }
1399
+ }
1400
+ >
1401
+ <span
1402
+ className=""
1403
+ id="react-aria-7"
1404
+ >
1405
+ three
1406
+ </span>
1407
+ </div>
1408
+ </div>
1409
+ </div>
1410
+ <div
1411
+ aria-labelledby="react-aria-9"
1412
+ aria-selected={false}
1413
+ className="c3 c4"
1414
+ data-id={4}
1415
+ onClick={[Function]}
1416
+ onKeyPress={[Function]}
1417
+ role="option"
1418
+ tabIndex={-1}
1419
+ >
1420
+ <div
1421
+ className="c5"
1422
+ >
1423
+ <input
1424
+ aria-label="four"
1425
+ aria-readonly="false"
1426
+ checked={false}
1427
+ className="c6"
1428
+ readOnly={true}
1429
+ tabIndex={-1}
1430
+ type="checkbox"
1431
+ />
1432
+ </div>
1433
+ <div
1434
+ className="c7 c8"
1435
+ >
1436
+ <div
1437
+ className="c9"
1438
+ style={
1439
+ Object {
1440
+ "--main-content-flex-direction": "row",
1441
+ }
1442
+ }
1443
+ >
1444
+ <span
1445
+ className=""
1446
+ id="react-aria-9"
1447
+ >
1448
+ four
1449
+ </span>
1450
+ </div>
1451
+ </div>
1452
+ </div>
1453
+ <div
1454
+ aria-labelledby="react-aria-11"
1455
+ aria-selected={false}
1456
+ className="c3 c4"
1457
+ data-id={5}
1458
+ onClick={[Function]}
1459
+ onKeyPress={[Function]}
1460
+ role="option"
1461
+ tabIndex={-1}
1462
+ >
1463
+ <div
1464
+ className="c5"
1465
+ >
1466
+ <input
1467
+ aria-label="five"
1468
+ aria-readonly="false"
1469
+ checked={false}
1470
+ className="c6"
1471
+ readOnly={true}
1472
+ tabIndex={-1}
1473
+ type="checkbox"
1474
+ />
1475
+ </div>
1476
+ <div
1477
+ className="c7 c8"
1478
+ >
1479
+ <div
1480
+ className="c9"
1481
+ style={
1482
+ Object {
1483
+ "--main-content-flex-direction": "row",
1484
+ }
1485
+ }
1486
+ >
1487
+ <span
1488
+ className=""
1489
+ id="react-aria-11"
1490
+ >
1491
+ five
1492
+ </span>
1493
+ </div>
1494
+ </div>
1495
+ </div>
1496
+ <div
1497
+ aria-labelledby="react-aria-13"
1498
+ aria-selected={false}
1499
+ className="c3 c4"
1500
+ data-id={6}
1501
+ onClick={[Function]}
1502
+ onKeyPress={[Function]}
1503
+ role="option"
1504
+ tabIndex={-1}
1505
+ >
1506
+ <div
1507
+ className="c5"
1508
+ >
1509
+ <input
1510
+ aria-label="six"
1511
+ aria-readonly="false"
1512
+ checked={false}
1513
+ className="c6"
1514
+ readOnly={true}
1515
+ tabIndex={-1}
1516
+ type="checkbox"
1517
+ />
1518
+ </div>
1519
+ <div
1520
+ className="c7 c8"
1521
+ >
1522
+ <div
1523
+ className="c9"
1524
+ style={
1525
+ Object {
1526
+ "--main-content-flex-direction": "row",
1527
+ }
1528
+ }
1529
+ >
1530
+ <span
1531
+ className=""
1532
+ id="react-aria-13"
1533
+ >
1534
+ six
1535
+ </span>
1536
+ </div>
1537
+ </div>
1538
+ </div>
1539
+ <div
1540
+ aria-labelledby="react-aria-15"
1541
+ aria-selected={false}
1542
+ className="c3 c4"
1543
+ data-id={7}
1544
+ onClick={[Function]}
1545
+ onKeyPress={[Function]}
1546
+ role="option"
1547
+ tabIndex={-1}
1548
+ >
1549
+ <div
1550
+ className="c5"
1551
+ >
1552
+ <input
1553
+ aria-label="seven"
1554
+ aria-readonly="false"
1555
+ checked={false}
1556
+ className="c6"
1557
+ readOnly={true}
1558
+ tabIndex={-1}
1559
+ type="checkbox"
1560
+ />
1561
+ </div>
1562
+ <div
1563
+ className="c7 c8"
1564
+ >
1565
+ <div
1566
+ className="c9"
1567
+ style={
1568
+ Object {
1569
+ "--main-content-flex-direction": "row",
1570
+ }
1571
+ }
1572
+ >
1573
+ <span
1574
+ className=""
1575
+ id="react-aria-15"
1576
+ >
1577
+ seven
1578
+ </span>
1579
+ </div>
1580
+ </div>
1581
+ </div>
1582
+ <div
1583
+ aria-labelledby="react-aria-17"
1584
+ aria-selected={false}
1585
+ className="c3 c4"
1586
+ data-id={20}
1587
+ onClick={[Function]}
1588
+ onKeyPress={[Function]}
1589
+ role="option"
1590
+ tabIndex={-1}
1591
+ >
1592
+ <div
1593
+ className="c5"
1594
+ >
1595
+ <input
1596
+ aria-label="twenty"
1597
+ aria-readonly="false"
1598
+ checked={false}
1599
+ className="c6"
1600
+ readOnly={true}
1601
+ tabIndex={-1}
1602
+ type="checkbox"
1603
+ />
1604
+ </div>
1605
+ <div
1606
+ className="c7 c8"
1607
+ >
1608
+ <div
1609
+ className="c9"
1610
+ style={
1611
+ Object {
1612
+ "--main-content-flex-direction": "row",
1613
+ }
1614
+ }
1615
+ >
1616
+ <span
1617
+ className=""
1618
+ id="react-aria-17"
1619
+ >
1620
+ twenty
1621
+ </span>
1622
+ </div>
1623
+ </div>
1624
+ </div>
1625
+ <div
1626
+ aria-labelledby="react-aria-19"
1627
+ aria-selected={false}
1628
+ className="c3 c4"
1629
+ data-id={21}
1630
+ onClick={[Function]}
1631
+ onKeyPress={[Function]}
1632
+ role="option"
1633
+ tabIndex={-1}
1634
+ >
1635
+ <div
1636
+ className="c5"
1637
+ >
1638
+ <input
1639
+ aria-label="twentyone"
1640
+ aria-readonly="false"
1641
+ checked={false}
1642
+ className="c6"
1643
+ readOnly={true}
1644
+ tabIndex={-1}
1645
+ type="checkbox"
1646
+ />
1647
+ </div>
1648
+ <div
1649
+ className="c7 c8"
1650
+ >
1651
+ <div
1652
+ className="c9"
1653
+ style={
1654
+ Object {
1655
+ "--main-content-flex-direction": "row",
1656
+ }
1657
+ }
1658
+ >
1659
+ <span
1660
+ className=""
1661
+ id="react-aria-19"
1662
+ >
1663
+ twentyone
1664
+ </span>
1665
+ </div>
1666
+ </div>
1667
+ </div>
1668
+ </div>
1669
+ </div>
1670
+ </div>
1671
+ </div>,
1672
+ ]
1673
+ `;
1674
+
1675
+ exports[`Autocomplete snapshots renders a multiselect input with selected menu items 1`] = `
1676
+ Array [
1677
+ .c1 {
1678
+ border: 0;
1679
+ font-size: inherit;
1680
+ font-family: inherit;
1681
+ background-color: transparent;
1682
+ -webkit-appearance: none;
1683
+ color: inherit;
1684
+ width: 100%;
1685
+ }
1686
+
1687
+ .c1:focus {
1688
+ outline: 0;
1689
+ }
1690
+
1691
+ .c0 {
1692
+ display: -webkit-inline-box;
1693
+ display: -webkit-inline-flex;
1694
+ display: -ms-inline-flexbox;
1695
+ display: inline-flex;
1696
+ -webkit-align-items: stretch;
1697
+ -webkit-box-align: stretch;
1698
+ -ms-flex-align: stretch;
1699
+ align-items: stretch;
1700
+ min-height: 34px;
1701
+ font-size: 14px;
1702
+ line-height: 20px;
1703
+ color: #24292f;
1704
+ vertical-align: middle;
1705
+ background-repeat: no-repeat;
1706
+ background-position: right 8px center;
1707
+ border: 1px solid #d0d7de;
1708
+ border-radius: 6px;
1709
+ outline: none;
1710
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
1711
+ padding: 6px 12px;
1712
+ }
1713
+
1714
+ .c0 .TextInput-icon {
1715
+ -webkit-align-self: center;
1716
+ -ms-flex-item-align: center;
1717
+ align-self: center;
1718
+ color: #57606a;
1719
+ margin: 0 8px;
1720
+ -webkit-flex-shrink: 0;
1721
+ -ms-flex-negative: 0;
1722
+ flex-shrink: 0;
1723
+ }
1724
+
1725
+ .c0:focus-within {
1726
+ border-color: #0969da;
1727
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
1728
+ }
1729
+
1730
+ @media (min-width:768px) {
1731
+ .c0 {
1732
+ font-size: 14px;
1733
+ }
1734
+ }
1735
+
1736
+ <span
1737
+ className="c0 TextInput-wrapper"
1738
+ >
1739
+ <input
1740
+ aria-autocomplete="both"
1741
+ aria-controls="autocompleteId-listbox"
1742
+ aria-expanded={false}
1743
+ aria-haspopup="listbox"
1744
+ aria-owns="autocompleteId-listbox"
1745
+ className="c1"
1746
+ onBlur={[Function]}
1747
+ onChange={[Function]}
1748
+ onFocus={[Function]}
1749
+ onKeyDown={[Function]}
1750
+ onKeyPress={[Function]}
1751
+ onKeyUp={[Function]}
1752
+ role="combobox"
1753
+ type="text"
1754
+ />
1755
+ </span>,
1756
+ .c0 {
1757
+ position: absolute;
1758
+ width: 1px;
1759
+ height: 1px;
1760
+ padding: 0;
1761
+ margin: -1px;
1762
+ overflow: hidden;
1763
+ -webkit-clip: rect(0,0,0,0);
1764
+ clip: rect(0,0,0,0);
1765
+ white-space: nowrap;
1766
+ border-width: 0;
1767
+ }
1768
+
1769
+ .c2 {
1770
+ margin-top: 8px;
1771
+ margin-bottom: 8px;
1772
+ }
1773
+
1774
+ .c8 {
1775
+ display: -webkit-box;
1776
+ display: -webkit-flex;
1777
+ display: -ms-flexbox;
1778
+ display: flex;
1779
+ min-width: 0;
1780
+ position: relative;
1781
+ -webkit-box-flex: 1;
1782
+ -webkit-flex-grow: 1;
1783
+ -ms-flex-positive: 1;
1784
+ flex-grow: 1;
1785
+ }
1786
+
1787
+ .c9 {
1788
+ -webkit-align-items: baseline;
1789
+ -webkit-box-align: baseline;
1790
+ -ms-flex-align: baseline;
1791
+ align-items: baseline;
1792
+ display: -webkit-box;
1793
+ display: -webkit-flex;
1794
+ display: -ms-flexbox;
1795
+ display: flex;
1796
+ min-width: 0;
1797
+ -webkit-flex-direction: var(--main-content-flex-direction);
1798
+ -ms-flex-direction: var(--main-content-flex-direction);
1799
+ flex-direction: var(--main-content-flex-direction);
1800
+ -webkit-box-flex: 1;
1801
+ -webkit-flex-grow: 1;
1802
+ -ms-flex-positive: 1;
1803
+ flex-grow: 1;
1804
+ }
1805
+
1806
+ .c4 {
1807
+ padding: 6px 8px;
1808
+ display: -webkit-box;
1809
+ display: -webkit-flex;
1810
+ display: -ms-flexbox;
1811
+ display: flex;
1812
+ border-radius: 6px;
1813
+ color: #24292f;
1814
+ -webkit-transition: background 33.333ms linear;
1815
+ transition: background 33.333ms linear;
1816
+ -webkit-text-decoration: none;
1817
+ text-decoration: none;
1818
+ margin-left: 8px;
1819
+ margin-right: 8px;
1820
+ }
1821
+
1822
+ .c4:not(:first-of-type):not(.c11 + .c3):not(.c10 + .c3) {
1823
+ margin-top: 0;
1824
+ }
1825
+
1826
+ .c4:not(:first-of-type):not(.c11 + .c3):not(.c10 + .c3) .c7::before {
1827
+ content: ' ';
1828
+ display: block;
1829
+ position: absolute;
1830
+ width: 100%;
1831
+ top: -7px;
1832
+ border: 0 solid hsla(210,18%,87%,1);
1833
+ border-top-width: 0;
1834
+ }
1835
+
1836
+ .c4:hover .c7::before,
1837
+ .c4:hover + * .c7::before {
1838
+ border-color: var(--item-hover-divider-border-color-override,transparent) !important;
1839
+ }
1840
+
1841
+ .c4:focus .c7::before,
1842
+ .c4:focus + * .c7::before,
1843
+ .c4[data-is-active-descendant] .c7::before,
1844
+ [data-is-active-descendant] + .c4 .c7::before {
1845
+ border-color: transparent !important;
1846
+ }
1847
+
1848
+ .c4[data-is-active-descendant='activated-directly'] {
1849
+ background: rgba(54,77,100,0.16);
1850
+ }
1851
+
1852
+ .c4[data-is-active-descendant='activated-indirectly'] {
1853
+ background: rgba(46,77,108,0.06);
1854
+ }
1855
+
1856
+ .c4:focus {
1857
+ background: rgba(54,77,100,0.16);
1858
+ outline: none;
1859
+ }
1860
+
1861
+ .c4:active {
1862
+ background: rgba(54,77,100,0.16);
1863
+ }
1864
+
1865
+ .c5 {
1866
+ height: 20px;
1867
+ width: 16px;
1868
+ margin-right: 8px;
1869
+ }
1870
+
1871
+ .c6 {
1872
+ pointer-events: none;
1873
+ }
1874
+
1875
+ .c1 {
1876
+ font-size: 14px;
1877
+ line-height: 20px;
1878
+ }
1879
+
1880
+ .c1[data-has-active-descendant],
1881
+ .c1:focus-within {
1882
+ --item-hover-bg-override: none;
1883
+ --item-hover-divider-border-color-override: hsla(210,18%,87%,1);
1884
+ }
1885
+
1886
+ @media (hover:hover) and (pointer:fine) {
1887
+ .c4:hover {
1888
+ background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
1889
+ cursor: pointer;
1890
+ }
1891
+ }
1892
+
1893
+ <div
1894
+ className="c0"
1895
+ >
1896
+ <div>
1897
+ <div
1898
+ aria-labelledby="labelId"
1899
+ className="c1"
1900
+ id="autocompleteId-listbox"
1901
+ role="listbox"
1902
+ >
1903
+ <div
1904
+ className="c2"
1905
+ >
1906
+ <div
1907
+ aria-labelledby="react-aria-1"
1908
+ aria-selected={true}
1909
+ className="c3 c4"
1910
+ data-id={0}
1911
+ onClick={[Function]}
1912
+ onKeyPress={[Function]}
1913
+ role="option"
1914
+ tabIndex={-1}
1915
+ >
1916
+ <div
1917
+ className="c5"
1918
+ >
1919
+ <input
1920
+ aria-label="zero"
1921
+ aria-readonly="false"
1922
+ checked={true}
1923
+ className="c6"
1924
+ readOnly={true}
1925
+ tabIndex={-1}
1926
+ type="checkbox"
1927
+ />
1928
+ </div>
1929
+ <div
1930
+ className="c7 c8"
1931
+ >
1932
+ <div
1933
+ className="c9"
1934
+ style={
1935
+ Object {
1936
+ "--main-content-flex-direction": "row",
1937
+ }
1938
+ }
1939
+ >
1940
+ <span
1941
+ className=""
1942
+ id="react-aria-1"
1943
+ >
1944
+ zero
1945
+ </span>
1946
+ </div>
1947
+ </div>
1948
+ </div>
1949
+ <div
1950
+ aria-labelledby="react-aria-3"
1951
+ aria-selected={true}
1952
+ className="c3 c4"
1953
+ data-id={1}
1954
+ onClick={[Function]}
1955
+ onKeyPress={[Function]}
1956
+ role="option"
1957
+ tabIndex={-1}
1958
+ >
1959
+ <div
1960
+ className="c5"
1961
+ >
1962
+ <input
1963
+ aria-label="one"
1964
+ aria-readonly="false"
1965
+ checked={true}
1966
+ className="c6"
1967
+ readOnly={true}
1968
+ tabIndex={-1}
1969
+ type="checkbox"
1970
+ />
1971
+ </div>
1972
+ <div
1973
+ className="c7 c8"
1974
+ >
1975
+ <div
1976
+ className="c9"
1977
+ style={
1978
+ Object {
1979
+ "--main-content-flex-direction": "row",
1980
+ }
1981
+ }
1982
+ >
1983
+ <span
1984
+ className=""
1985
+ id="react-aria-3"
1986
+ >
1987
+ one
1988
+ </span>
1989
+ </div>
1990
+ </div>
1991
+ </div>
1992
+ <div
1993
+ aria-labelledby="react-aria-5"
1994
+ aria-selected={true}
1995
+ className="c3 c4"
1996
+ data-id={2}
1997
+ onClick={[Function]}
1998
+ onKeyPress={[Function]}
1999
+ role="option"
2000
+ tabIndex={-1}
2001
+ >
2002
+ <div
2003
+ className="c5"
2004
+ >
2005
+ <input
2006
+ aria-label="two"
2007
+ aria-readonly="false"
2008
+ checked={true}
2009
+ className="c6"
2010
+ readOnly={true}
2011
+ tabIndex={-1}
2012
+ type="checkbox"
2013
+ />
2014
+ </div>
2015
+ <div
2016
+ className="c7 c8"
2017
+ >
2018
+ <div
2019
+ className="c9"
2020
+ style={
2021
+ Object {
2022
+ "--main-content-flex-direction": "row",
2023
+ }
2024
+ }
2025
+ >
2026
+ <span
2027
+ className=""
2028
+ id="react-aria-5"
2029
+ >
2030
+ two
2031
+ </span>
2032
+ </div>
2033
+ </div>
2034
+ </div>
2035
+ <div
2036
+ aria-labelledby="react-aria-7"
2037
+ aria-selected={false}
2038
+ className="c3 c4"
2039
+ data-id={3}
2040
+ onClick={[Function]}
2041
+ onKeyPress={[Function]}
2042
+ role="option"
2043
+ tabIndex={-1}
2044
+ >
2045
+ <div
2046
+ className="c5"
2047
+ >
2048
+ <input
2049
+ aria-label="three"
2050
+ aria-readonly="false"
2051
+ checked={false}
2052
+ className="c6"
2053
+ readOnly={true}
2054
+ tabIndex={-1}
2055
+ type="checkbox"
2056
+ />
2057
+ </div>
2058
+ <div
2059
+ className="c7 c8"
2060
+ >
2061
+ <div
2062
+ className="c9"
2063
+ style={
2064
+ Object {
2065
+ "--main-content-flex-direction": "row",
2066
+ }
2067
+ }
2068
+ >
2069
+ <span
2070
+ className=""
2071
+ id="react-aria-7"
2072
+ >
2073
+ three
2074
+ </span>
2075
+ </div>
2076
+ </div>
2077
+ </div>
2078
+ <div
2079
+ aria-labelledby="react-aria-9"
2080
+ aria-selected={false}
2081
+ className="c3 c4"
2082
+ data-id={4}
2083
+ onClick={[Function]}
2084
+ onKeyPress={[Function]}
2085
+ role="option"
2086
+ tabIndex={-1}
2087
+ >
2088
+ <div
2089
+ className="c5"
2090
+ >
2091
+ <input
2092
+ aria-label="four"
2093
+ aria-readonly="false"
2094
+ checked={false}
2095
+ className="c6"
2096
+ readOnly={true}
2097
+ tabIndex={-1}
2098
+ type="checkbox"
2099
+ />
2100
+ </div>
2101
+ <div
2102
+ className="c7 c8"
2103
+ >
2104
+ <div
2105
+ className="c9"
2106
+ style={
2107
+ Object {
2108
+ "--main-content-flex-direction": "row",
2109
+ }
2110
+ }
2111
+ >
2112
+ <span
2113
+ className=""
2114
+ id="react-aria-9"
2115
+ >
2116
+ four
2117
+ </span>
2118
+ </div>
2119
+ </div>
2120
+ </div>
2121
+ <div
2122
+ aria-labelledby="react-aria-11"
2123
+ aria-selected={false}
2124
+ className="c3 c4"
2125
+ data-id={5}
2126
+ onClick={[Function]}
2127
+ onKeyPress={[Function]}
2128
+ role="option"
2129
+ tabIndex={-1}
2130
+ >
2131
+ <div
2132
+ className="c5"
2133
+ >
2134
+ <input
2135
+ aria-label="five"
2136
+ aria-readonly="false"
2137
+ checked={false}
2138
+ className="c6"
2139
+ readOnly={true}
2140
+ tabIndex={-1}
2141
+ type="checkbox"
2142
+ />
2143
+ </div>
2144
+ <div
2145
+ className="c7 c8"
2146
+ >
2147
+ <div
2148
+ className="c9"
2149
+ style={
2150
+ Object {
2151
+ "--main-content-flex-direction": "row",
2152
+ }
2153
+ }
2154
+ >
2155
+ <span
2156
+ className=""
2157
+ id="react-aria-11"
2158
+ >
2159
+ five
2160
+ </span>
2161
+ </div>
2162
+ </div>
2163
+ </div>
2164
+ <div
2165
+ aria-labelledby="react-aria-13"
2166
+ aria-selected={false}
2167
+ className="c3 c4"
2168
+ data-id={6}
2169
+ onClick={[Function]}
2170
+ onKeyPress={[Function]}
2171
+ role="option"
2172
+ tabIndex={-1}
2173
+ >
2174
+ <div
2175
+ className="c5"
2176
+ >
2177
+ <input
2178
+ aria-label="six"
2179
+ aria-readonly="false"
2180
+ checked={false}
2181
+ className="c6"
2182
+ readOnly={true}
2183
+ tabIndex={-1}
2184
+ type="checkbox"
2185
+ />
2186
+ </div>
2187
+ <div
2188
+ className="c7 c8"
2189
+ >
2190
+ <div
2191
+ className="c9"
2192
+ style={
2193
+ Object {
2194
+ "--main-content-flex-direction": "row",
2195
+ }
2196
+ }
2197
+ >
2198
+ <span
2199
+ className=""
2200
+ id="react-aria-13"
2201
+ >
2202
+ six
2203
+ </span>
2204
+ </div>
2205
+ </div>
2206
+ </div>
2207
+ <div
2208
+ aria-labelledby="react-aria-15"
2209
+ aria-selected={false}
2210
+ className="c3 c4"
2211
+ data-id={7}
2212
+ onClick={[Function]}
2213
+ onKeyPress={[Function]}
2214
+ role="option"
2215
+ tabIndex={-1}
2216
+ >
2217
+ <div
2218
+ className="c5"
2219
+ >
2220
+ <input
2221
+ aria-label="seven"
2222
+ aria-readonly="false"
2223
+ checked={false}
2224
+ className="c6"
2225
+ readOnly={true}
2226
+ tabIndex={-1}
2227
+ type="checkbox"
2228
+ />
2229
+ </div>
2230
+ <div
2231
+ className="c7 c8"
2232
+ >
2233
+ <div
2234
+ className="c9"
2235
+ style={
2236
+ Object {
2237
+ "--main-content-flex-direction": "row",
2238
+ }
2239
+ }
2240
+ >
2241
+ <span
2242
+ className=""
2243
+ id="react-aria-15"
2244
+ >
2245
+ seven
2246
+ </span>
2247
+ </div>
2248
+ </div>
2249
+ </div>
2250
+ <div
2251
+ aria-labelledby="react-aria-17"
2252
+ aria-selected={false}
2253
+ className="c3 c4"
2254
+ data-id={20}
2255
+ onClick={[Function]}
2256
+ onKeyPress={[Function]}
2257
+ role="option"
2258
+ tabIndex={-1}
2259
+ >
2260
+ <div
2261
+ className="c5"
2262
+ >
2263
+ <input
2264
+ aria-label="twenty"
2265
+ aria-readonly="false"
2266
+ checked={false}
2267
+ className="c6"
2268
+ readOnly={true}
2269
+ tabIndex={-1}
2270
+ type="checkbox"
2271
+ />
2272
+ </div>
2273
+ <div
2274
+ className="c7 c8"
2275
+ >
2276
+ <div
2277
+ className="c9"
2278
+ style={
2279
+ Object {
2280
+ "--main-content-flex-direction": "row",
2281
+ }
2282
+ }
2283
+ >
2284
+ <span
2285
+ className=""
2286
+ id="react-aria-17"
2287
+ >
2288
+ twenty
2289
+ </span>
2290
+ </div>
2291
+ </div>
2292
+ </div>
2293
+ <div
2294
+ aria-labelledby="react-aria-19"
2295
+ aria-selected={false}
2296
+ className="c3 c4"
2297
+ data-id={21}
2298
+ onClick={[Function]}
2299
+ onKeyPress={[Function]}
2300
+ role="option"
2301
+ tabIndex={-1}
2302
+ >
2303
+ <div
2304
+ className="c5"
2305
+ >
2306
+ <input
2307
+ aria-label="twentyone"
2308
+ aria-readonly="false"
2309
+ checked={false}
2310
+ className="c6"
2311
+ readOnly={true}
2312
+ tabIndex={-1}
2313
+ type="checkbox"
2314
+ />
2315
+ </div>
2316
+ <div
2317
+ className="c7 c8"
2318
+ >
2319
+ <div
2320
+ className="c9"
2321
+ style={
2322
+ Object {
2323
+ "--main-content-flex-direction": "row",
2324
+ }
2325
+ }
2326
+ >
2327
+ <span
2328
+ className=""
2329
+ id="react-aria-19"
2330
+ >
2331
+ twentyone
2332
+ </span>
2333
+ </div>
2334
+ </div>
2335
+ </div>
2336
+ </div>
2337
+ </div>
2338
+ </div>
2339
+ </div>,
2340
+ ]
2341
+ `;
2342
+
2343
+ exports[`Autocomplete snapshots renders a single select input 1`] = `
2344
+ Array [
2345
+ .c1 {
2346
+ border: 0;
2347
+ font-size: inherit;
2348
+ font-family: inherit;
2349
+ background-color: transparent;
2350
+ -webkit-appearance: none;
2351
+ color: inherit;
2352
+ width: 100%;
2353
+ }
2354
+
2355
+ .c1:focus {
2356
+ outline: 0;
2357
+ }
2358
+
2359
+ .c0 {
2360
+ display: -webkit-inline-box;
2361
+ display: -webkit-inline-flex;
2362
+ display: -ms-inline-flexbox;
2363
+ display: inline-flex;
2364
+ -webkit-align-items: stretch;
2365
+ -webkit-box-align: stretch;
2366
+ -ms-flex-align: stretch;
2367
+ align-items: stretch;
2368
+ min-height: 34px;
2369
+ font-size: 14px;
2370
+ line-height: 20px;
2371
+ color: #24292f;
2372
+ vertical-align: middle;
2373
+ background-repeat: no-repeat;
2374
+ background-position: right 8px center;
2375
+ border: 1px solid #d0d7de;
2376
+ border-radius: 6px;
2377
+ outline: none;
2378
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
2379
+ padding: 6px 12px;
2380
+ }
2381
+
2382
+ .c0 .TextInput-icon {
2383
+ -webkit-align-self: center;
2384
+ -ms-flex-item-align: center;
2385
+ align-self: center;
2386
+ color: #57606a;
2387
+ margin: 0 8px;
2388
+ -webkit-flex-shrink: 0;
2389
+ -ms-flex-negative: 0;
2390
+ flex-shrink: 0;
2391
+ }
2392
+
2393
+ .c0:focus-within {
2394
+ border-color: #0969da;
2395
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
2396
+ }
2397
+
2398
+ @media (min-width:768px) {
2399
+ .c0 {
2400
+ font-size: 14px;
2401
+ }
2402
+ }
2403
+
2404
+ <span
2405
+ className="c0 TextInput-wrapper"
2406
+ >
2407
+ <input
2408
+ aria-autocomplete="both"
2409
+ aria-controls="autocompleteId-listbox"
2410
+ aria-expanded={false}
2411
+ aria-haspopup="listbox"
2412
+ aria-owns="autocompleteId-listbox"
2413
+ className="c1"
2414
+ onBlur={[Function]}
2415
+ onChange={[Function]}
2416
+ onFocus={[Function]}
2417
+ onKeyDown={[Function]}
2418
+ onKeyPress={[Function]}
2419
+ onKeyUp={[Function]}
2420
+ role="combobox"
2421
+ type="text"
2422
+ />
2423
+ </span>,
2424
+ .c0 {
2425
+ position: absolute;
2426
+ width: 1px;
2427
+ height: 1px;
2428
+ padding: 0;
2429
+ margin: -1px;
2430
+ overflow: hidden;
2431
+ -webkit-clip: rect(0,0,0,0);
2432
+ clip: rect(0,0,0,0);
2433
+ white-space: nowrap;
2434
+ border-width: 0;
2435
+ }
2436
+
2437
+ .c2 {
2438
+ margin-top: 8px;
2439
+ margin-bottom: 8px;
2440
+ }
2441
+
2442
+ .c6 {
2443
+ display: -webkit-box;
2444
+ display: -webkit-flex;
2445
+ display: -ms-flexbox;
2446
+ display: flex;
2447
+ min-width: 0;
2448
+ position: relative;
2449
+ -webkit-box-flex: 1;
2450
+ -webkit-flex-grow: 1;
2451
+ -ms-flex-positive: 1;
2452
+ flex-grow: 1;
2453
+ }
2454
+
2455
+ .c7 {
2456
+ -webkit-align-items: baseline;
2457
+ -webkit-box-align: baseline;
2458
+ -ms-flex-align: baseline;
2459
+ align-items: baseline;
2460
+ display: -webkit-box;
2461
+ display: -webkit-flex;
2462
+ display: -ms-flexbox;
2463
+ display: flex;
2464
+ min-width: 0;
2465
+ -webkit-flex-direction: var(--main-content-flex-direction);
2466
+ -ms-flex-direction: var(--main-content-flex-direction);
2467
+ flex-direction: var(--main-content-flex-direction);
2468
+ -webkit-box-flex: 1;
2469
+ -webkit-flex-grow: 1;
2470
+ -ms-flex-positive: 1;
2471
+ flex-grow: 1;
2472
+ }
2473
+
2474
+ .c4 {
2475
+ padding: 6px 8px;
2476
+ display: -webkit-box;
2477
+ display: -webkit-flex;
2478
+ display: -ms-flexbox;
2479
+ display: flex;
2480
+ border-radius: 6px;
2481
+ color: #24292f;
2482
+ -webkit-transition: background 33.333ms linear;
2483
+ transition: background 33.333ms linear;
2484
+ -webkit-text-decoration: none;
2485
+ text-decoration: none;
2486
+ margin-left: 8px;
2487
+ margin-right: 8px;
2488
+ }
2489
+
2490
+ .c4:not(:first-of-type):not(.c9 + .c3):not(.c8 + .c3) {
2491
+ margin-top: 0;
2492
+ }
2493
+
2494
+ .c4:not(:first-of-type):not(.c9 + .c3):not(.c8 + .c3) .c5::before {
2495
+ content: ' ';
2496
+ display: block;
2497
+ position: absolute;
2498
+ width: 100%;
2499
+ top: -7px;
2500
+ border: 0 solid hsla(210,18%,87%,1);
2501
+ border-top-width: 0;
2502
+ }
2503
+
2504
+ .c4:hover .c5::before,
2505
+ .c4:hover + * .c5::before {
2506
+ border-color: var(--item-hover-divider-border-color-override,transparent) !important;
2507
+ }
2508
+
2509
+ .c4:focus .c5::before,
2510
+ .c4:focus + * .c5::before,
2511
+ .c4[data-is-active-descendant] .c5::before,
2512
+ [data-is-active-descendant] + .c4 .c5::before {
2513
+ border-color: transparent !important;
2514
+ }
2515
+
2516
+ .c4[data-is-active-descendant='activated-directly'] {
2517
+ background: rgba(54,77,100,0.16);
2518
+ }
2519
+
2520
+ .c4[data-is-active-descendant='activated-indirectly'] {
2521
+ background: rgba(46,77,108,0.06);
2522
+ }
2523
+
2524
+ .c4:focus {
2525
+ background: rgba(54,77,100,0.16);
2526
+ outline: none;
2527
+ }
2528
+
2529
+ .c4:active {
2530
+ background: rgba(54,77,100,0.16);
2531
+ }
2532
+
2533
+ .c1 {
2534
+ font-size: 14px;
2535
+ line-height: 20px;
2536
+ }
2537
+
2538
+ .c1[data-has-active-descendant],
2539
+ .c1:focus-within {
2540
+ --item-hover-bg-override: none;
2541
+ --item-hover-divider-border-color-override: hsla(210,18%,87%,1);
2542
+ }
2543
+
2544
+ @media (hover:hover) and (pointer:fine) {
2545
+ .c4:hover {
2546
+ background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
2547
+ cursor: pointer;
2548
+ }
2549
+ }
2550
+
2551
+ <div
2552
+ className="c0"
2553
+ >
2554
+ <div>
2555
+ <div
2556
+ aria-labelledby="labelId"
2557
+ className="c1"
2558
+ id="autocompleteId-listbox"
2559
+ role="listbox"
2560
+ >
2561
+ <div
2562
+ className="c2"
2563
+ >
2564
+ <div
2565
+ aria-labelledby="react-aria-1"
2566
+ className="c3 c4"
2567
+ data-id={0}
2568
+ onClick={[Function]}
2569
+ onKeyPress={[Function]}
2570
+ role="option"
2571
+ tabIndex={-1}
2572
+ >
2573
+ <div
2574
+ className="c5 c6"
2575
+ >
2576
+ <div
2577
+ className="c7"
2578
+ style={
2579
+ Object {
2580
+ "--main-content-flex-direction": "row",
2581
+ }
2582
+ }
2583
+ >
2584
+ <span
2585
+ className=""
2586
+ id="react-aria-1"
2587
+ >
2588
+ zero
2589
+ </span>
2590
+ </div>
2591
+ </div>
2592
+ </div>
2593
+ <div
2594
+ aria-labelledby="react-aria-3"
2595
+ className="c3 c4"
2596
+ data-id={1}
2597
+ onClick={[Function]}
2598
+ onKeyPress={[Function]}
2599
+ role="option"
2600
+ tabIndex={-1}
2601
+ >
2602
+ <div
2603
+ className="c5 c6"
2604
+ >
2605
+ <div
2606
+ className="c7"
2607
+ style={
2608
+ Object {
2609
+ "--main-content-flex-direction": "row",
2610
+ }
2611
+ }
2612
+ >
2613
+ <span
2614
+ className=""
2615
+ id="react-aria-3"
2616
+ >
2617
+ one
2618
+ </span>
2619
+ </div>
2620
+ </div>
2621
+ </div>
2622
+ <div
2623
+ aria-labelledby="react-aria-5"
2624
+ className="c3 c4"
2625
+ data-id={2}
2626
+ onClick={[Function]}
2627
+ onKeyPress={[Function]}
2628
+ role="option"
2629
+ tabIndex={-1}
2630
+ >
2631
+ <div
2632
+ className="c5 c6"
2633
+ >
2634
+ <div
2635
+ className="c7"
2636
+ style={
2637
+ Object {
2638
+ "--main-content-flex-direction": "row",
2639
+ }
2640
+ }
2641
+ >
2642
+ <span
2643
+ className=""
2644
+ id="react-aria-5"
2645
+ >
2646
+ two
2647
+ </span>
2648
+ </div>
2649
+ </div>
2650
+ </div>
2651
+ <div
2652
+ aria-labelledby="react-aria-7"
2653
+ className="c3 c4"
2654
+ data-id={3}
2655
+ onClick={[Function]}
2656
+ onKeyPress={[Function]}
2657
+ role="option"
2658
+ tabIndex={-1}
2659
+ >
2660
+ <div
2661
+ className="c5 c6"
2662
+ >
2663
+ <div
2664
+ className="c7"
2665
+ style={
2666
+ Object {
2667
+ "--main-content-flex-direction": "row",
2668
+ }
2669
+ }
2670
+ >
2671
+ <span
2672
+ className=""
2673
+ id="react-aria-7"
2674
+ >
2675
+ three
2676
+ </span>
2677
+ </div>
2678
+ </div>
2679
+ </div>
2680
+ <div
2681
+ aria-labelledby="react-aria-9"
2682
+ className="c3 c4"
2683
+ data-id={4}
2684
+ onClick={[Function]}
2685
+ onKeyPress={[Function]}
2686
+ role="option"
2687
+ tabIndex={-1}
2688
+ >
2689
+ <div
2690
+ className="c5 c6"
2691
+ >
2692
+ <div
2693
+ className="c7"
2694
+ style={
2695
+ Object {
2696
+ "--main-content-flex-direction": "row",
2697
+ }
2698
+ }
2699
+ >
2700
+ <span
2701
+ className=""
2702
+ id="react-aria-9"
2703
+ >
2704
+ four
2705
+ </span>
2706
+ </div>
2707
+ </div>
2708
+ </div>
2709
+ <div
2710
+ aria-labelledby="react-aria-11"
2711
+ className="c3 c4"
2712
+ data-id={5}
2713
+ onClick={[Function]}
2714
+ onKeyPress={[Function]}
2715
+ role="option"
2716
+ tabIndex={-1}
2717
+ >
2718
+ <div
2719
+ className="c5 c6"
2720
+ >
2721
+ <div
2722
+ className="c7"
2723
+ style={
2724
+ Object {
2725
+ "--main-content-flex-direction": "row",
2726
+ }
2727
+ }
2728
+ >
2729
+ <span
2730
+ className=""
2731
+ id="react-aria-11"
2732
+ >
2733
+ five
2734
+ </span>
2735
+ </div>
2736
+ </div>
2737
+ </div>
2738
+ <div
2739
+ aria-labelledby="react-aria-13"
2740
+ className="c3 c4"
2741
+ data-id={6}
2742
+ onClick={[Function]}
2743
+ onKeyPress={[Function]}
2744
+ role="option"
2745
+ tabIndex={-1}
2746
+ >
2747
+ <div
2748
+ className="c5 c6"
2749
+ >
2750
+ <div
2751
+ className="c7"
2752
+ style={
2753
+ Object {
2754
+ "--main-content-flex-direction": "row",
2755
+ }
2756
+ }
2757
+ >
2758
+ <span
2759
+ className=""
2760
+ id="react-aria-13"
2761
+ >
2762
+ six
2763
+ </span>
2764
+ </div>
2765
+ </div>
2766
+ </div>
2767
+ <div
2768
+ aria-labelledby="react-aria-15"
2769
+ className="c3 c4"
2770
+ data-id={7}
2771
+ onClick={[Function]}
2772
+ onKeyPress={[Function]}
2773
+ role="option"
2774
+ tabIndex={-1}
2775
+ >
2776
+ <div
2777
+ className="c5 c6"
2778
+ >
2779
+ <div
2780
+ className="c7"
2781
+ style={
2782
+ Object {
2783
+ "--main-content-flex-direction": "row",
2784
+ }
2785
+ }
2786
+ >
2787
+ <span
2788
+ className=""
2789
+ id="react-aria-15"
2790
+ >
2791
+ seven
2792
+ </span>
2793
+ </div>
2794
+ </div>
2795
+ </div>
2796
+ <div
2797
+ aria-labelledby="react-aria-17"
2798
+ className="c3 c4"
2799
+ data-id={20}
2800
+ onClick={[Function]}
2801
+ onKeyPress={[Function]}
2802
+ role="option"
2803
+ tabIndex={-1}
2804
+ >
2805
+ <div
2806
+ className="c5 c6"
2807
+ >
2808
+ <div
2809
+ className="c7"
2810
+ style={
2811
+ Object {
2812
+ "--main-content-flex-direction": "row",
2813
+ }
2814
+ }
2815
+ >
2816
+ <span
2817
+ className=""
2818
+ id="react-aria-17"
2819
+ >
2820
+ twenty
2821
+ </span>
2822
+ </div>
2823
+ </div>
2824
+ </div>
2825
+ <div
2826
+ aria-labelledby="react-aria-19"
2827
+ className="c3 c4"
2828
+ data-id={21}
2829
+ onClick={[Function]}
2830
+ onKeyPress={[Function]}
2831
+ role="option"
2832
+ tabIndex={-1}
2833
+ >
2834
+ <div
2835
+ className="c5 c6"
2836
+ >
2837
+ <div
2838
+ className="c7"
2839
+ style={
2840
+ Object {
2841
+ "--main-content-flex-direction": "row",
2842
+ }
2843
+ }
2844
+ >
2845
+ <span
2846
+ className=""
2847
+ id="react-aria-19"
2848
+ >
2849
+ twentyone
2850
+ </span>
2851
+ </div>
2852
+ </div>
2853
+ </div>
2854
+ </div>
2855
+ </div>
2856
+ </div>
2857
+ </div>,
2858
+ ]
2859
+ `;
2860
+
2861
+ exports[`Autocomplete snapshots renders with a custom text input component 1`] = `
2862
+ Array [
2863
+ <input
2864
+ id="customInput"
2865
+ type="text"
2866
+ />,
2867
+ .c0 {
2868
+ position: absolute;
2869
+ width: 1px;
2870
+ height: 1px;
2871
+ padding: 0;
2872
+ margin: -1px;
2873
+ overflow: hidden;
2874
+ -webkit-clip: rect(0,0,0,0);
2875
+ clip: rect(0,0,0,0);
2876
+ white-space: nowrap;
2877
+ border-width: 0;
2878
+ }
2879
+
2880
+ .c2 {
2881
+ margin-top: 8px;
2882
+ margin-bottom: 8px;
2883
+ }
2884
+
2885
+ .c6 {
2886
+ display: -webkit-box;
2887
+ display: -webkit-flex;
2888
+ display: -ms-flexbox;
2889
+ display: flex;
2890
+ min-width: 0;
2891
+ position: relative;
2892
+ -webkit-box-flex: 1;
2893
+ -webkit-flex-grow: 1;
2894
+ -ms-flex-positive: 1;
2895
+ flex-grow: 1;
2896
+ }
2897
+
2898
+ .c7 {
2899
+ -webkit-align-items: baseline;
2900
+ -webkit-box-align: baseline;
2901
+ -ms-flex-align: baseline;
2902
+ align-items: baseline;
2903
+ display: -webkit-box;
2904
+ display: -webkit-flex;
2905
+ display: -ms-flexbox;
2906
+ display: flex;
2907
+ min-width: 0;
2908
+ -webkit-flex-direction: var(--main-content-flex-direction);
2909
+ -ms-flex-direction: var(--main-content-flex-direction);
2910
+ flex-direction: var(--main-content-flex-direction);
2911
+ -webkit-box-flex: 1;
2912
+ -webkit-flex-grow: 1;
2913
+ -ms-flex-positive: 1;
2914
+ flex-grow: 1;
2915
+ }
2916
+
2917
+ .c4 {
2918
+ padding: 6px 8px;
2919
+ display: -webkit-box;
2920
+ display: -webkit-flex;
2921
+ display: -ms-flexbox;
2922
+ display: flex;
2923
+ border-radius: 6px;
2924
+ color: #24292f;
2925
+ -webkit-transition: background 33.333ms linear;
2926
+ transition: background 33.333ms linear;
2927
+ -webkit-text-decoration: none;
2928
+ text-decoration: none;
2929
+ margin-left: 8px;
2930
+ margin-right: 8px;
2931
+ }
2932
+
2933
+ .c4:not(:first-of-type):not(.c9 + .c3):not(.c8 + .c3) {
2934
+ margin-top: 0;
2935
+ }
2936
+
2937
+ .c4:not(:first-of-type):not(.c9 + .c3):not(.c8 + .c3) .c5::before {
2938
+ content: ' ';
2939
+ display: block;
2940
+ position: absolute;
2941
+ width: 100%;
2942
+ top: -7px;
2943
+ border: 0 solid hsla(210,18%,87%,1);
2944
+ border-top-width: 0;
2945
+ }
2946
+
2947
+ .c4:hover .c5::before,
2948
+ .c4:hover + * .c5::before {
2949
+ border-color: var(--item-hover-divider-border-color-override,transparent) !important;
2950
+ }
2951
+
2952
+ .c4:focus .c5::before,
2953
+ .c4:focus + * .c5::before,
2954
+ .c4[data-is-active-descendant] .c5::before,
2955
+ [data-is-active-descendant] + .c4 .c5::before {
2956
+ border-color: transparent !important;
2957
+ }
2958
+
2959
+ .c4[data-is-active-descendant='activated-directly'] {
2960
+ background: rgba(54,77,100,0.16);
2961
+ }
2962
+
2963
+ .c4[data-is-active-descendant='activated-indirectly'] {
2964
+ background: rgba(46,77,108,0.06);
2965
+ }
2966
+
2967
+ .c4:focus {
2968
+ background: rgba(54,77,100,0.16);
2969
+ outline: none;
2970
+ }
2971
+
2972
+ .c4:active {
2973
+ background: rgba(54,77,100,0.16);
2974
+ }
2975
+
2976
+ .c1 {
2977
+ font-size: 14px;
2978
+ line-height: 20px;
2979
+ }
2980
+
2981
+ .c1[data-has-active-descendant],
2982
+ .c1:focus-within {
2983
+ --item-hover-bg-override: none;
2984
+ --item-hover-divider-border-color-override: hsla(210,18%,87%,1);
2985
+ }
2986
+
2987
+ @media (hover:hover) and (pointer:fine) {
2988
+ .c4:hover {
2989
+ background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
2990
+ cursor: pointer;
2991
+ }
2992
+ }
2993
+
2994
+ <div
2995
+ className="c0"
2996
+ >
2997
+ <div>
2998
+ <div
2999
+ aria-labelledby="labelId"
3000
+ className="c1"
3001
+ id="autocompleteId-listbox"
3002
+ role="listbox"
3003
+ >
3004
+ <div
3005
+ className="c2"
3006
+ >
3007
+ <div
3008
+ aria-labelledby="react-aria-1"
3009
+ className="c3 c4"
3010
+ data-id={0}
3011
+ onClick={[Function]}
3012
+ onKeyPress={[Function]}
3013
+ role="option"
3014
+ tabIndex={-1}
3015
+ >
3016
+ <div
3017
+ className="c5 c6"
3018
+ >
3019
+ <div
3020
+ className="c7"
3021
+ style={
3022
+ Object {
3023
+ "--main-content-flex-direction": "row",
3024
+ }
3025
+ }
3026
+ >
3027
+ <span
3028
+ className=""
3029
+ id="react-aria-1"
3030
+ >
3031
+ zero
3032
+ </span>
3033
+ </div>
3034
+ </div>
3035
+ </div>
3036
+ <div
3037
+ aria-labelledby="react-aria-3"
3038
+ className="c3 c4"
3039
+ data-id={1}
3040
+ onClick={[Function]}
3041
+ onKeyPress={[Function]}
3042
+ role="option"
3043
+ tabIndex={-1}
3044
+ >
3045
+ <div
3046
+ className="c5 c6"
3047
+ >
3048
+ <div
3049
+ className="c7"
3050
+ style={
3051
+ Object {
3052
+ "--main-content-flex-direction": "row",
3053
+ }
3054
+ }
3055
+ >
3056
+ <span
3057
+ className=""
3058
+ id="react-aria-3"
3059
+ >
3060
+ one
3061
+ </span>
3062
+ </div>
3063
+ </div>
3064
+ </div>
3065
+ <div
3066
+ aria-labelledby="react-aria-5"
3067
+ className="c3 c4"
3068
+ data-id={2}
3069
+ onClick={[Function]}
3070
+ onKeyPress={[Function]}
3071
+ role="option"
3072
+ tabIndex={-1}
3073
+ >
3074
+ <div
3075
+ className="c5 c6"
3076
+ >
3077
+ <div
3078
+ className="c7"
3079
+ style={
3080
+ Object {
3081
+ "--main-content-flex-direction": "row",
3082
+ }
3083
+ }
3084
+ >
3085
+ <span
3086
+ className=""
3087
+ id="react-aria-5"
3088
+ >
3089
+ two
3090
+ </span>
3091
+ </div>
3092
+ </div>
3093
+ </div>
3094
+ <div
3095
+ aria-labelledby="react-aria-7"
3096
+ className="c3 c4"
3097
+ data-id={3}
3098
+ onClick={[Function]}
3099
+ onKeyPress={[Function]}
3100
+ role="option"
3101
+ tabIndex={-1}
3102
+ >
3103
+ <div
3104
+ className="c5 c6"
3105
+ >
3106
+ <div
3107
+ className="c7"
3108
+ style={
3109
+ Object {
3110
+ "--main-content-flex-direction": "row",
3111
+ }
3112
+ }
3113
+ >
3114
+ <span
3115
+ className=""
3116
+ id="react-aria-7"
3117
+ >
3118
+ three
3119
+ </span>
3120
+ </div>
3121
+ </div>
3122
+ </div>
3123
+ <div
3124
+ aria-labelledby="react-aria-9"
3125
+ className="c3 c4"
3126
+ data-id={4}
3127
+ onClick={[Function]}
3128
+ onKeyPress={[Function]}
3129
+ role="option"
3130
+ tabIndex={-1}
3131
+ >
3132
+ <div
3133
+ className="c5 c6"
3134
+ >
3135
+ <div
3136
+ className="c7"
3137
+ style={
3138
+ Object {
3139
+ "--main-content-flex-direction": "row",
3140
+ }
3141
+ }
3142
+ >
3143
+ <span
3144
+ className=""
3145
+ id="react-aria-9"
3146
+ >
3147
+ four
3148
+ </span>
3149
+ </div>
3150
+ </div>
3151
+ </div>
3152
+ <div
3153
+ aria-labelledby="react-aria-11"
3154
+ className="c3 c4"
3155
+ data-id={5}
3156
+ onClick={[Function]}
3157
+ onKeyPress={[Function]}
3158
+ role="option"
3159
+ tabIndex={-1}
3160
+ >
3161
+ <div
3162
+ className="c5 c6"
3163
+ >
3164
+ <div
3165
+ className="c7"
3166
+ style={
3167
+ Object {
3168
+ "--main-content-flex-direction": "row",
3169
+ }
3170
+ }
3171
+ >
3172
+ <span
3173
+ className=""
3174
+ id="react-aria-11"
3175
+ >
3176
+ five
3177
+ </span>
3178
+ </div>
3179
+ </div>
3180
+ </div>
3181
+ <div
3182
+ aria-labelledby="react-aria-13"
3183
+ className="c3 c4"
3184
+ data-id={6}
3185
+ onClick={[Function]}
3186
+ onKeyPress={[Function]}
3187
+ role="option"
3188
+ tabIndex={-1}
3189
+ >
3190
+ <div
3191
+ className="c5 c6"
3192
+ >
3193
+ <div
3194
+ className="c7"
3195
+ style={
3196
+ Object {
3197
+ "--main-content-flex-direction": "row",
3198
+ }
3199
+ }
3200
+ >
3201
+ <span
3202
+ className=""
3203
+ id="react-aria-13"
3204
+ >
3205
+ six
3206
+ </span>
3207
+ </div>
3208
+ </div>
3209
+ </div>
3210
+ <div
3211
+ aria-labelledby="react-aria-15"
3212
+ className="c3 c4"
3213
+ data-id={7}
3214
+ onClick={[Function]}
3215
+ onKeyPress={[Function]}
3216
+ role="option"
3217
+ tabIndex={-1}
3218
+ >
3219
+ <div
3220
+ className="c5 c6"
3221
+ >
3222
+ <div
3223
+ className="c7"
3224
+ style={
3225
+ Object {
3226
+ "--main-content-flex-direction": "row",
3227
+ }
3228
+ }
3229
+ >
3230
+ <span
3231
+ className=""
3232
+ id="react-aria-15"
3233
+ >
3234
+ seven
3235
+ </span>
3236
+ </div>
3237
+ </div>
3238
+ </div>
3239
+ <div
3240
+ aria-labelledby="react-aria-17"
3241
+ className="c3 c4"
3242
+ data-id={20}
3243
+ onClick={[Function]}
3244
+ onKeyPress={[Function]}
3245
+ role="option"
3246
+ tabIndex={-1}
3247
+ >
3248
+ <div
3249
+ className="c5 c6"
3250
+ >
3251
+ <div
3252
+ className="c7"
3253
+ style={
3254
+ Object {
3255
+ "--main-content-flex-direction": "row",
3256
+ }
3257
+ }
3258
+ >
3259
+ <span
3260
+ className=""
3261
+ id="react-aria-17"
3262
+ >
3263
+ twenty
3264
+ </span>
3265
+ </div>
3266
+ </div>
3267
+ </div>
3268
+ <div
3269
+ aria-labelledby="react-aria-19"
3270
+ className="c3 c4"
3271
+ data-id={21}
3272
+ onClick={[Function]}
3273
+ onKeyPress={[Function]}
3274
+ role="option"
3275
+ tabIndex={-1}
3276
+ >
3277
+ <div
3278
+ className="c5 c6"
3279
+ >
3280
+ <div
3281
+ className="c7"
3282
+ style={
3283
+ Object {
3284
+ "--main-content-flex-direction": "row",
3285
+ }
3286
+ }
3287
+ >
3288
+ <span
3289
+ className=""
3290
+ id="react-aria-19"
3291
+ >
3292
+ twentyone
3293
+ </span>
3294
+ </div>
3295
+ </div>
3296
+ </div>
3297
+ </div>
3298
+ </div>
3299
+ </div>
3300
+ </div>,
3301
+ ]
3302
+ `;
3303
+
3304
+ exports[`Autocomplete snapshots renders with an input value 1`] = `
3305
+ Array [
3306
+ .c1 {
3307
+ border: 0;
3308
+ font-size: inherit;
3309
+ font-family: inherit;
3310
+ background-color: transparent;
3311
+ -webkit-appearance: none;
3312
+ color: inherit;
3313
+ width: 100%;
3314
+ }
3315
+
3316
+ .c1:focus {
3317
+ outline: 0;
3318
+ }
3319
+
3320
+ .c0 {
3321
+ display: -webkit-inline-box;
3322
+ display: -webkit-inline-flex;
3323
+ display: -ms-inline-flexbox;
3324
+ display: inline-flex;
3325
+ -webkit-align-items: stretch;
3326
+ -webkit-box-align: stretch;
3327
+ -ms-flex-align: stretch;
3328
+ align-items: stretch;
3329
+ min-height: 34px;
3330
+ font-size: 14px;
3331
+ line-height: 20px;
3332
+ color: #24292f;
3333
+ vertical-align: middle;
3334
+ background-repeat: no-repeat;
3335
+ background-position: right 8px center;
3336
+ border: 1px solid #d0d7de;
3337
+ border-radius: 6px;
3338
+ outline: none;
3339
+ box-shadow: inset 0 1px 0 rgba(208,215,222,0.2);
3340
+ padding: 6px 12px;
3341
+ }
3342
+
3343
+ .c0 .TextInput-icon {
3344
+ -webkit-align-self: center;
3345
+ -ms-flex-item-align: center;
3346
+ align-self: center;
3347
+ color: #57606a;
3348
+ margin: 0 8px;
3349
+ -webkit-flex-shrink: 0;
3350
+ -ms-flex-negative: 0;
3351
+ flex-shrink: 0;
3352
+ }
3353
+
3354
+ .c0:focus-within {
3355
+ border-color: #0969da;
3356
+ box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
3357
+ }
3358
+
3359
+ @media (min-width:768px) {
3360
+ .c0 {
3361
+ font-size: 14px;
3362
+ }
3363
+ }
3364
+
3365
+ <span
3366
+ className="c0 TextInput-wrapper"
3367
+ >
3368
+ <input
3369
+ aria-autocomplete="both"
3370
+ aria-controls="autocompleteId-listbox"
3371
+ aria-expanded={false}
3372
+ aria-haspopup="listbox"
3373
+ aria-owns="autocompleteId-listbox"
3374
+ className="c1"
3375
+ onBlur={[Function]}
3376
+ onChange={[Function]}
3377
+ onFocus={[Function]}
3378
+ onKeyDown={[Function]}
3379
+ onKeyPress={[Function]}
3380
+ onKeyUp={[Function]}
3381
+ role="combobox"
3382
+ type="text"
3383
+ />
3384
+ </span>,
3385
+ .c0 {
3386
+ position: absolute;
3387
+ width: 1px;
3388
+ height: 1px;
3389
+ padding: 0;
3390
+ margin: -1px;
3391
+ overflow: hidden;
3392
+ -webkit-clip: rect(0,0,0,0);
3393
+ clip: rect(0,0,0,0);
3394
+ white-space: nowrap;
3395
+ border-width: 0;
3396
+ }
3397
+
3398
+ .c1 {
3399
+ padding: 16px;
3400
+ }
3401
+
3402
+ <div
3403
+ className="c0"
3404
+ >
3405
+ <div>
3406
+ <div
3407
+ className="c1"
3408
+ >
3409
+ No selectable options
3410
+ </div>
3411
+ </div>
3412
+ </div>,
3413
+ ]
3414
+ `;