@patternfly/react-core 4.202.28 → 4.202.31

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 (105) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/esm/components/JumpLinks/JumpLinksItem.d.ts.map +1 -1
  3. package/dist/esm/components/JumpLinks/JumpLinksItem.js +1 -1
  4. package/dist/esm/components/JumpLinks/JumpLinksItem.js.map +1 -1
  5. package/dist/esm/components/ProgressStepper/ProgressStep.d.ts +3 -0
  6. package/dist/esm/components/ProgressStepper/ProgressStep.d.ts.map +1 -1
  7. package/dist/esm/components/ProgressStepper/ProgressStep.js +2 -2
  8. package/dist/esm/components/ProgressStepper/ProgressStep.js.map +1 -1
  9. package/dist/esm/components/Tabs/Tab.d.ts.map +1 -1
  10. package/dist/esm/components/Tabs/Tab.js +2 -2
  11. package/dist/esm/components/Tabs/Tab.js.map +1 -1
  12. package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
  13. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  14. package/dist/esm/components/Tabs/Tabs.js +1 -1
  15. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  16. package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
  17. package/dist/esm/helpers/Popper/Popper.js +1 -7
  18. package/dist/esm/helpers/Popper/Popper.js.map +1 -1
  19. package/dist/js/components/JumpLinks/JumpLinksItem.d.ts.map +1 -1
  20. package/dist/js/components/JumpLinks/JumpLinksItem.js +1 -1
  21. package/dist/js/components/JumpLinks/JumpLinksItem.js.map +1 -1
  22. package/dist/js/components/ProgressStepper/ProgressStep.d.ts +3 -0
  23. package/dist/js/components/ProgressStepper/ProgressStep.d.ts.map +1 -1
  24. package/dist/js/components/ProgressStepper/ProgressStep.js +2 -2
  25. package/dist/js/components/ProgressStepper/ProgressStep.js.map +1 -1
  26. package/dist/js/components/Tabs/Tab.d.ts.map +1 -1
  27. package/dist/js/components/Tabs/Tab.js +2 -2
  28. package/dist/js/components/Tabs/Tab.js.map +1 -1
  29. package/dist/js/components/Tabs/Tabs.d.ts +1 -1
  30. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  31. package/dist/js/components/Tabs/Tabs.js +1 -1
  32. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  33. package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
  34. package/dist/js/helpers/Popper/Popper.js +1 -7
  35. package/dist/js/helpers/Popper/Popper.js.map +1 -1
  36. package/dist/umd/react-core.js +7 -13
  37. package/dist/umd/react-core.min.js +1 -1
  38. package/package.json +5 -5
  39. package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +1 -1
  40. package/src/components/ExpandableSection/examples/ExpandableSection.md +1 -1
  41. package/src/components/JumpLinks/JumpLinksItem.tsx +5 -1
  42. package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +5 -0
  43. package/src/components/Page/__tests__/Page.test.tsx +225 -205
  44. package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +1088 -2059
  45. package/src/components/Pagination/__tests__/Pagination.test.tsx +235 -283
  46. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +143 -577
  47. package/src/components/ProgressStepper/ProgressStep.tsx +6 -0
  48. package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap +1 -0
  49. package/src/components/ProgressStepper/examples/ProgressStepper.md +9 -9
  50. package/src/components/Radio/__tests__/Radio.test.tsx +38 -44
  51. package/src/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +30 -30
  52. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +87 -68
  53. package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +230 -137
  54. package/src/components/Select/__tests__/Select.test.tsx +238 -195
  55. package/src/components/Select/__tests__/SelectToggle.test.tsx +68 -130
  56. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +978 -2149
  57. package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +3 -3
  58. package/src/components/SimpleList/__tests__/SimpleList.test.tsx +29 -32
  59. package/src/components/SimpleList/__tests__/__snapshots__/SimpleList.test.tsx.snap +4 -366
  60. package/src/components/Switch/__tests__/Switch.test.tsx +85 -75
  61. package/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.snap +30 -40
  62. package/src/components/Tabs/Tab.tsx +6 -1
  63. package/src/components/Tabs/Tabs.tsx +2 -2
  64. package/src/components/Tabs/__tests__/Generated/__snapshots__/Tabs.test.tsx.snap +1 -0
  65. package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +3 -0
  66. package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +135 -0
  67. package/src/components/Tabs/examples/Tabs.md +32 -26
  68. package/src/components/TextArea/__tests__/TextArea.test.tsx +98 -103
  69. package/src/components/TextArea/__tests__/__snapshots__/TextArea.test.tsx.snap +24 -103
  70. package/src/components/TextInput/__tests__/TextInput.test.tsx +71 -70
  71. package/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap +15 -103
  72. package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +65 -39
  73. package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroup.test.tsx.snap +53 -14
  74. package/src/components/TimePicker/__tests__/TimePicker.test.tsx +113 -110
  75. package/src/components/Title/__tests__/Title.test.tsx +21 -20
  76. package/src/components/Title/__tests__/__snapshots__/Title.test.tsx.snap +24 -30
  77. package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +43 -39
  78. package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroup.test.tsx.snap +20 -19
  79. package/src/components/Wizard/__tests__/Wizard.test.tsx +195 -189
  80. package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +131 -10
  81. package/src/helpers/Popper/Popper.tsx +5 -7
  82. package/src/helpers/__tests__/util.test.ts +113 -0
  83. package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +25 -25
  84. package/src/layouts/Bullseye/__tests__/__snapshots__/Bullseye.test.tsx.snap +3 -5
  85. package/src/layouts/Flex/__tests__/Flex.test.tsx +159 -96
  86. package/src/layouts/Flex/__tests__/__snapshots__/Flex.test.tsx.snap +9 -17
  87. package/src/components/Page/__tests__/Generated/Page.test.tsx +0 -28
  88. package/src/components/Page/__tests__/Generated/__snapshots__/Page.test.tsx.snap +0 -19
  89. package/src/components/Pagination/__tests__/Generated/Pagination.test.tsx +0 -58
  90. package/src/components/Pagination/__tests__/Generated/__snapshots__/Pagination.test.tsx.snap +0 -205
  91. package/src/components/Radio/__tests__/Generated/Radio.test.tsx +0 -29
  92. package/src/components/Radio/__tests__/Generated/__snapshots__/Radio.test.tsx.snap +0 -36
  93. package/src/components/Select/__tests__/Generated/Select.test.tsx +0 -49
  94. package/src/components/Select/__tests__/Generated/SelectToggle.test.tsx +0 -34
  95. package/src/components/Select/__tests__/Generated/__snapshots__/Select.test.tsx.snap +0 -48
  96. package/src/components/Select/__tests__/Generated/__snapshots__/SelectToggle.test.tsx.snap +0 -36
  97. package/src/components/SimpleList/__tests__/Generated/SimpleList.test.tsx +0 -22
  98. package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleList.test.tsx.snap +0 -13
  99. package/src/components/Switch/__tests__/Generated/Switch.test.tsx +0 -24
  100. package/src/components/Switch/__tests__/Generated/__snapshots__/Switch.test.tsx.snap +0 -36
  101. package/src/components/TextArea/__tests__/Generated/TextArea.test.tsx +0 -23
  102. package/src/components/TextArea/__tests__/Generated/__snapshots__/TextArea.test.tsx.snap +0 -13
  103. package/src/components/Title/__tests__/Generated/Title.test.tsx +0 -13
  104. package/src/components/Title/__tests__/Generated/__snapshots__/Title.test.tsx.snap +0 -12
  105. package/src/helpers/__tests__/util.test.js +0 -235
@@ -1,19 +1,20 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`checkbox select renders checkbox select groups successfully 1`] = `
4
- <div>
3
+ exports[`Select renders select groups successfully 1`] = `
4
+ <DocumentFragment>
5
5
  <div
6
6
  class="pf-c-select pf-m-expanded"
7
- data-ouia-component-id="OUIA-Generated-Select-checkbox-8"
7
+ data-ouia-component-id="test-id"
8
8
  data-ouia-component-type="PF4/Select"
9
9
  data-ouia-safe="true"
10
10
  >
11
11
  <button
12
12
  aria-expanded="true"
13
+ aria-haspopup="listbox"
13
14
  aria-label="Options menu"
14
- aria-labelledby=" pf-select-toggle-id-7"
15
+ aria-labelledby=" pf-select-toggle-id-2"
15
16
  class="pf-c-select__toggle"
16
- id="pf-select-toggle-id-7"
17
+ id="pf-select-toggle-id-2"
17
18
  type="button"
18
19
  >
19
20
  <div
@@ -54,67 +55,62 @@ exports[`checkbox select renders checkbox select groups successfully 1`] = `
54
55
  >
55
56
  group 1
56
57
  </div>
57
- <fieldset
58
- aria-labelledby="group-1"
59
- class="pf-c-select__menu-fieldset"
58
+ <ul
59
+ role="listbox"
60
60
  >
61
- <label
62
- class="pf-c-check pf-c-select__menu-item"
61
+ <li
62
+ class="pf-c-select__menu-wrapper"
63
+ id="option-1"
64
+ role="presentation"
63
65
  >
64
- <input
65
- class="pf-c-check__input"
66
- id="pf-random-id-15-Mr"
67
- type="checkbox"
68
- />
69
- <span
70
- class="pf-c-check__label"
66
+ <button
67
+ class="pf-c-select__menu-item"
68
+ role="option"
69
+ type="button"
71
70
  >
72
71
  Mr
73
- </span>
74
- </label>
75
- <label
76
- class="pf-c-check pf-c-select__menu-item"
72
+ </button>
73
+ </li>
74
+ <li
75
+ class="pf-c-select__menu-wrapper"
76
+ id="option-2"
77
+ role="presentation"
77
78
  >
78
- <input
79
- class="pf-c-check__input"
80
- id="pf-random-id-15-Mrs"
81
- type="checkbox"
82
- />
83
- <span
84
- class="pf-c-check__label"
79
+ <button
80
+ class="pf-c-select__menu-item"
81
+ role="option"
82
+ type="button"
85
83
  >
86
84
  Mrs
87
- </span>
88
- </label>
89
- <label
90
- class="pf-c-check pf-c-select__menu-item"
85
+ </button>
86
+ </li>
87
+ <li
88
+ class="pf-c-select__menu-wrapper"
89
+ id="option-3"
90
+ role="presentation"
91
91
  >
92
- <input
93
- class="pf-c-check__input"
94
- id="pf-random-id-15-Ms"
95
- type="checkbox"
96
- />
97
- <span
98
- class="pf-c-check__label"
92
+ <button
93
+ class="pf-c-select__menu-item"
94
+ role="option"
95
+ type="button"
99
96
  >
100
97
  Ms
101
- </span>
102
- </label>
103
- <label
104
- class="pf-c-check pf-c-select__menu-item"
98
+ </button>
99
+ </li>
100
+ <li
101
+ class="pf-c-select__menu-wrapper"
102
+ id="option-4"
103
+ role="presentation"
105
104
  >
106
- <input
107
- class="pf-c-check__input"
108
- id="pf-random-id-15-Other"
109
- type="checkbox"
110
- />
111
- <span
112
- class="pf-c-check__label"
105
+ <button
106
+ class="pf-c-select__menu-item"
107
+ role="option"
108
+ type="button"
113
109
  >
114
110
  Other
115
- </span>
116
- </label>
117
- </fieldset>
111
+ </button>
112
+ </li>
113
+ </ul>
118
114
  </div>
119
115
  <div
120
116
  class="pf-c-select__menu-group"
@@ -126,87 +122,83 @@ exports[`checkbox select renders checkbox select groups successfully 1`] = `
126
122
  >
127
123
  group 2
128
124
  </div>
129
- <fieldset
130
- aria-labelledby="group-2"
131
- class="pf-c-select__menu-fieldset"
125
+ <ul
126
+ role="listbox"
132
127
  >
133
- <label
134
- class="pf-c-check pf-c-select__menu-item"
128
+ <li
129
+ class="pf-c-select__menu-wrapper"
130
+ id="option-1"
131
+ role="presentation"
135
132
  >
136
- <input
137
- class="pf-c-check__input"
138
- id="pf-random-id-15-Mr"
139
- type="checkbox"
140
- />
141
- <span
142
- class="pf-c-check__label"
133
+ <button
134
+ class="pf-c-select__menu-item"
135
+ role="option"
136
+ type="button"
143
137
  >
144
138
  Mr
145
- </span>
146
- </label>
147
- <label
148
- class="pf-c-check pf-c-select__menu-item"
139
+ </button>
140
+ </li>
141
+ <li
142
+ class="pf-c-select__menu-wrapper"
143
+ id="option-2"
144
+ role="presentation"
149
145
  >
150
- <input
151
- class="pf-c-check__input"
152
- id="pf-random-id-15-Mrs"
153
- type="checkbox"
154
- />
155
- <span
156
- class="pf-c-check__label"
146
+ <button
147
+ class="pf-c-select__menu-item"
148
+ role="option"
149
+ type="button"
157
150
  >
158
151
  Mrs
159
- </span>
160
- </label>
161
- <label
162
- class="pf-c-check pf-c-select__menu-item"
152
+ </button>
153
+ </li>
154
+ <li
155
+ class="pf-c-select__menu-wrapper"
156
+ id="option-3"
157
+ role="presentation"
163
158
  >
164
- <input
165
- class="pf-c-check__input"
166
- id="pf-random-id-15-Ms"
167
- type="checkbox"
168
- />
169
- <span
170
- class="pf-c-check__label"
159
+ <button
160
+ class="pf-c-select__menu-item"
161
+ role="option"
162
+ type="button"
171
163
  >
172
164
  Ms
173
- </span>
174
- </label>
175
- <label
176
- class="pf-c-check pf-c-select__menu-item"
165
+ </button>
166
+ </li>
167
+ <li
168
+ class="pf-c-select__menu-wrapper"
169
+ id="option-4"
170
+ role="presentation"
177
171
  >
178
- <input
179
- class="pf-c-check__input"
180
- id="pf-random-id-15-Other"
181
- type="checkbox"
182
- />
183
- <span
184
- class="pf-c-check__label"
172
+ <button
173
+ class="pf-c-select__menu-item"
174
+ role="option"
175
+ type="button"
185
176
  >
186
177
  Other
187
- </span>
188
- </label>
189
- </fieldset>
178
+ </button>
179
+ </li>
180
+ </ul>
190
181
  </div>
191
182
  </div>
192
183
  </div>
193
- </div>
184
+ </DocumentFragment>
194
185
  `;
195
186
 
196
- exports[`checkbox select renders checkbox select selections properly 1`] = `
197
- <div>
187
+ exports[`Select renders up direction successfully 1`] = `
188
+ <DocumentFragment>
198
189
  <div
199
- class="pf-c-select"
200
- data-ouia-component-id="OUIA-Generated-Select-checkbox-2"
190
+ class="pf-c-select pf-m-top"
191
+ data-ouia-component-id="test-id"
201
192
  data-ouia-component-type="PF4/Select"
202
193
  data-ouia-safe="true"
203
194
  >
204
195
  <button
205
196
  aria-expanded="false"
197
+ aria-haspopup="listbox"
206
198
  aria-label="Options menu"
207
- aria-labelledby=" checkbox-select-selections"
199
+ aria-labelledby=" select-up"
208
200
  class="pf-c-select__toggle"
209
- id="checkbox-select-selections"
201
+ id="select-up"
210
202
  type="button"
211
203
  >
212
204
  <div
@@ -214,16 +206,9 @@ exports[`checkbox select renders checkbox select selections properly 1`] = `
214
206
  >
215
207
  <span
216
208
  class="pf-c-select__toggle-text"
217
- />
218
- <div
219
- class="pf-c-select__toggle-badge"
220
209
  >
221
- <span
222
- class="pf-c-badge pf-m-read"
223
- >
224
- 1
225
- </span>
226
- </div>
210
+ Mr
211
+ </span>
227
212
  </div>
228
213
  <span
229
214
  class="pf-c-select__toggle-arrow"
@@ -244,23 +229,24 @@ exports[`checkbox select renders checkbox select selections properly 1`] = `
244
229
  </span>
245
230
  </button>
246
231
  </div>
247
- </div>
232
+ </DocumentFragment>
248
233
  `;
249
234
 
250
- exports[`checkbox select renders checkbox select selections properly when isCheckboxSelectionBadgeHidden is true 1`] = `
251
- <div>
235
+ exports[`Select single select renders closed successfully 1`] = `
236
+ <DocumentFragment>
252
237
  <div
253
238
  class="pf-c-select"
254
- data-ouia-component-id="OUIA-Generated-Select-checkbox-3"
239
+ data-ouia-component-id="test-id"
255
240
  data-ouia-component-type="PF4/Select"
256
241
  data-ouia-safe="true"
257
242
  >
258
243
  <button
259
244
  aria-expanded="false"
245
+ aria-haspopup="listbox"
260
246
  aria-label="Options menu"
261
- aria-labelledby=" checkbox-select-hidden-badge"
247
+ aria-labelledby=" single-select-closed"
262
248
  class="pf-c-select__toggle"
263
- id="checkbox-select-hidden-badge"
249
+ id="single-select-closed"
264
250
  type="button"
265
251
  >
266
252
  <div
@@ -268,7 +254,9 @@ exports[`checkbox select renders checkbox select selections properly when isChec
268
254
  >
269
255
  <span
270
256
  class="pf-c-select__toggle-text"
271
- />
257
+ >
258
+ Mr
259
+ </span>
272
260
  </div>
273
261
  <span
274
262
  class="pf-c-select__toggle-arrow"
@@ -289,23 +277,25 @@ exports[`checkbox select renders checkbox select selections properly when isChec
289
277
  </span>
290
278
  </button>
291
279
  </div>
292
- </div>
280
+ </DocumentFragment>
293
281
  `;
294
282
 
295
- exports[`checkbox select renders closed successfully 1`] = `
296
- <div>
283
+ exports[`Select single select renders disabled successfully 1`] = `
284
+ <DocumentFragment>
297
285
  <div
298
286
  class="pf-c-select"
299
- data-ouia-component-id="OUIA-Generated-Select-checkbox-1"
287
+ data-ouia-component-id="test-id"
300
288
  data-ouia-component-type="PF4/Select"
301
289
  data-ouia-safe="true"
302
290
  >
303
291
  <button
304
292
  aria-expanded="false"
293
+ aria-haspopup="listbox"
305
294
  aria-label="Options menu"
306
- aria-labelledby=" checkbox-select-closed"
307
- class="pf-c-select__toggle"
308
- id="checkbox-select-closed"
295
+ aria-labelledby=" single-select-disabled"
296
+ class="pf-c-select__toggle pf-m-disabled"
297
+ disabled=""
298
+ id="single-select-disabled"
309
299
  type="button"
310
300
  >
311
301
  <div
@@ -313,7 +303,9 @@ exports[`checkbox select renders closed successfully 1`] = `
313
303
  >
314
304
  <span
315
305
  class="pf-c-select__toggle-text"
316
- />
306
+ >
307
+ Mr
308
+ </span>
317
309
  </div>
318
310
  <span
319
311
  class="pf-c-select__toggle-arrow"
@@ -334,23 +326,24 @@ exports[`checkbox select renders closed successfully 1`] = `
334
326
  </span>
335
327
  </button>
336
328
  </div>
337
- </div>
329
+ </DocumentFragment>
338
330
  `;
339
331
 
340
- exports[`checkbox select renders expanded successfully 1`] = `
341
- <div>
332
+ exports[`Select single select renders expanded successfully 1`] = `
333
+ <DocumentFragment>
342
334
  <div
343
335
  class="pf-c-select pf-m-expanded"
344
- data-ouia-component-id="OUIA-Generated-Select-checkbox-4"
336
+ data-ouia-component-id="test-id"
345
337
  data-ouia-component-type="PF4/Select"
346
338
  data-ouia-safe="true"
347
339
  >
348
340
  <button
349
341
  aria-expanded="true"
342
+ aria-haspopup="listbox"
350
343
  aria-label="Options menu"
351
- aria-labelledby=" pf-select-toggle-id-4"
344
+ aria-labelledby=" pf-select-toggle-id-0"
352
345
  class="pf-c-select__toggle"
353
- id="pf-select-toggle-id-4"
346
+ id="pf-select-toggle-id-0"
354
347
  type="button"
355
348
  >
356
349
  <div
@@ -358,7 +351,9 @@ exports[`checkbox select renders expanded successfully 1`] = `
358
351
  >
359
352
  <span
360
353
  class="pf-c-select__toggle-text"
361
- />
354
+ >
355
+ Mr
356
+ </span>
362
357
  </div>
363
358
  <span
364
359
  class="pf-c-select__toggle-arrow"
@@ -383,81 +378,78 @@ exports[`checkbox select renders expanded successfully 1`] = `
383
378
  class="pf-c-select__menu"
384
379
  role="listbox"
385
380
  >
386
- <label
387
- class="pf-c-check pf-c-select__menu-item"
381
+ <li
382
+ class="pf-c-select__menu-wrapper"
383
+ id="option-1"
384
+ role="presentation"
388
385
  >
389
- <input
390
- class="pf-c-check__input"
391
- id="pf-random-id-11-Mr"
392
- type="checkbox"
393
- />
394
- <span
395
- class="pf-c-check__label"
386
+ <button
387
+ class="pf-c-select__menu-item"
388
+ role="option"
389
+ type="button"
396
390
  >
397
391
  Mr
398
- </span>
399
- </label>
400
- <label
401
- class="pf-c-check pf-c-select__menu-item"
402
- >
403
- <input
404
- class="pf-c-check__input"
405
- id="pf-random-id-11-Mrs"
406
- type="checkbox"
407
- />
408
- <span
409
- class="pf-c-check__label"
392
+ </button>
393
+ </li>
394
+ <li
395
+ class="pf-c-select__menu-wrapper"
396
+ id="option-2"
397
+ role="presentation"
398
+ >
399
+ <button
400
+ class="pf-c-select__menu-item"
401
+ role="option"
402
+ type="button"
410
403
  >
411
404
  Mrs
412
- </span>
413
- </label>
414
- <label
415
- class="pf-c-check pf-c-select__menu-item"
405
+ </button>
406
+ </li>
407
+ <li
408
+ class="pf-c-select__menu-wrapper"
409
+ id="option-3"
410
+ role="presentation"
416
411
  >
417
- <input
418
- class="pf-c-check__input"
419
- id="pf-random-id-11-Ms"
420
- type="checkbox"
421
- />
422
- <span
423
- class="pf-c-check__label"
412
+ <button
413
+ class="pf-c-select__menu-item"
414
+ role="option"
415
+ type="button"
424
416
  >
425
417
  Ms
426
- </span>
427
- </label>
428
- <label
429
- class="pf-c-check pf-c-select__menu-item"
418
+ </button>
419
+ </li>
420
+ <li
421
+ class="pf-c-select__menu-wrapper"
422
+ id="option-4"
423
+ role="presentation"
430
424
  >
431
- <input
432
- class="pf-c-check__input"
433
- id="pf-random-id-11-Other"
434
- type="checkbox"
435
- />
436
- <span
437
- class="pf-c-check__label"
425
+ <button
426
+ class="pf-c-select__menu-item"
427
+ role="option"
428
+ type="button"
438
429
  >
439
430
  Other
440
- </span>
441
- </label>
431
+ </button>
432
+ </li>
442
433
  </ul>
443
434
  </div>
444
- </div>
435
+ </DocumentFragment>
445
436
  `;
446
437
 
447
- exports[`checkbox select renders expanded successfully with custom objects 1`] = `
448
- <div>
438
+ exports[`Select single select renders expanded successfully with custom objects 1`] = `
439
+ <DocumentFragment>
449
440
  <div
450
441
  class="pf-c-select pf-m-expanded"
451
- data-ouia-component-id="OUIA-Generated-Select-checkbox-7"
442
+ data-ouia-component-id="test-id"
452
443
  data-ouia-component-type="PF4/Select"
453
444
  data-ouia-safe="true"
454
445
  >
455
446
  <button
456
447
  aria-expanded="true"
448
+ aria-haspopup="listbox"
457
449
  aria-label="Options menu"
458
- aria-labelledby=" pf-select-toggle-id-6"
450
+ aria-labelledby=" pf-select-toggle-id-1"
459
451
  class="pf-c-select__toggle"
460
- id="pf-select-toggle-id-6"
452
+ id="pf-select-toggle-id-1"
461
453
  type="button"
462
454
  >
463
455
  <div
@@ -465,7 +457,9 @@ exports[`checkbox select renders expanded successfully with custom objects 1`] =
465
457
  >
466
458
  <span
467
459
  class="pf-c-select__toggle-text"
468
- />
460
+ >
461
+ Mr: User One
462
+ </span>
469
463
  </div>
470
464
  <span
471
465
  class="pf-c-select__toggle-arrow"
@@ -490,63 +484,65 @@ exports[`checkbox select renders expanded successfully with custom objects 1`] =
490
484
  class="pf-c-select__menu"
491
485
  role="listbox"
492
486
  >
493
- <label
494
- class="pf-c-check pf-c-select__menu-item"
487
+ <li
488
+ class="pf-c-select__menu-wrapper"
489
+ id="option-1"
490
+ role="presentation"
495
491
  >
496
- <input
497
- class="pf-c-check__input"
498
- id="pf-random-id-14-Mr: User One"
499
- type="checkbox"
500
- />
501
- <span
502
- class="pf-c-check__label"
492
+ <button
493
+ class="pf-c-select__menu-item"
494
+ role="option"
495
+ type="button"
503
496
  >
504
497
  Mr: User One
505
- </span>
506
- </label>
507
- <label
508
- class="pf-c-check pf-c-select__menu-item"
498
+ </button>
499
+ </li>
500
+ <li
501
+ class="pf-c-select__menu-wrapper"
502
+ id="option-2"
503
+ role="presentation"
509
504
  >
510
- <input
511
- class="pf-c-check__input"
512
- id="pf-random-id-14-Mrs: New User"
513
- type="checkbox"
514
- />
515
- <span
516
- class="pf-c-check__label"
505
+ <button
506
+ class="pf-c-select__menu-item"
507
+ role="option"
508
+ type="button"
517
509
  >
518
510
  Mrs: New User
519
- </span>
520
- </label>
521
- <label
522
- class="pf-c-check pf-c-select__menu-item"
511
+ </button>
512
+ </li>
513
+ <li
514
+ class="pf-c-select__menu-wrapper"
515
+ id="option-3"
516
+ role="presentation"
523
517
  >
524
- <input
525
- class="pf-c-check__input"
526
- id="pf-random-id-14-Ms: Test Three"
527
- type="checkbox"
528
- />
529
- <span
530
- class="pf-c-check__label"
518
+ <button
519
+ class="pf-c-select__menu-item"
520
+ role="option"
521
+ type="button"
531
522
  >
532
523
  Ms: Test Three
533
- </span>
534
- </label>
524
+ </button>
525
+ </li>
535
526
  </ul>
536
527
  </div>
537
- </div>
528
+ </DocumentFragment>
538
529
  `;
539
530
 
540
- exports[`checkbox select renders expanded with filtering successfully 1`] = `
541
- <div>
531
+ exports[`checkbox select renders checkbox select groups successfully 1`] = `
532
+ <DocumentFragment>
542
533
  <div
543
534
  class="pf-c-select pf-m-expanded"
544
- data-ouia-component-id="OUIA-Generated-Select-checkbox-5"
535
+ data-ouia-component-id="test-id"
545
536
  data-ouia-component-type="PF4/Select"
546
537
  data-ouia-safe="true"
547
538
  >
548
- <div
549
- class="pf-c-select__toggle pf-m-typeahead"
539
+ <button
540
+ aria-expanded="true"
541
+ aria-label="Options menu"
542
+ aria-labelledby=" pf-select-toggle-id-6"
543
+ class="pf-c-select__toggle"
544
+ id="pf-select-toggle-id-6"
545
+ type="button"
550
546
  >
551
547
  <div
552
548
  class="pf-c-select__toggle-wrapper"
@@ -555,17 +551,11 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
555
551
  class="pf-c-select__toggle-text"
556
552
  />
557
553
  </div>
558
- <button
559
- aria-expanded="true"
560
- aria-label="Options menu"
561
- aria-labelledby=" pf-select-toggle-id-5"
562
- class="pf-c-button pf-c-select__toggle-button pf-m-plain"
563
- id="pf-select-toggle-id-5"
564
- type="button"
554
+ <span
555
+ class="pf-c-select__toggle-arrow"
565
556
  >
566
557
  <svg
567
558
  aria-hidden="true"
568
- class="pf-c-select__toggle-arrow"
569
559
  fill="currentColor"
570
560
  height="1em"
571
561
  role="img"
@@ -577,99 +567,175 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
577
567
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
578
568
  />
579
569
  </svg>
580
- </button>
581
- </div>
570
+ </span>
571
+ </button>
582
572
  <div
583
573
  class="pf-c-select__menu"
584
574
  >
585
- <fieldset
586
- aria-label=""
587
- class="pf-c-form__fieldset"
575
+ <div
576
+ class="pf-c-select__menu-group"
588
577
  >
589
578
  <div
590
- class="pf-c-select__menu-search"
579
+ aria-hidden="true"
580
+ class="pf-c-select__menu-group-title"
581
+ id="group-1"
591
582
  >
592
- <input
593
- autocomplete="off"
594
- class="pf-c-form-control pf-m-search"
595
- type="search"
596
- />
583
+ group 1
597
584
  </div>
598
- <hr
599
- class="pf-c-divider"
600
- />
601
- <label
602
- class="pf-c-check pf-c-select__menu-item"
603
- >
604
- <input
605
- class="pf-c-check__input"
606
- id="pf-random-id-12-Mr"
607
- type="checkbox"
608
- />
609
- <span
610
- class="pf-c-check__label"
611
- >
612
- Mr
613
- </span>
614
- </label>
615
- <label
616
- class="pf-c-check pf-c-select__menu-item"
585
+ <fieldset
586
+ aria-labelledby="group-1"
587
+ class="pf-c-select__menu-fieldset"
617
588
  >
618
- <input
619
- class="pf-c-check__input"
620
- id="pf-random-id-12-Mrs"
621
- type="checkbox"
622
- />
623
- <span
624
- class="pf-c-check__label"
589
+ <label
590
+ class="pf-c-check pf-c-select__menu-item"
625
591
  >
626
- Mrs
627
- </span>
628
- </label>
629
- <label
630
- class="pf-c-check pf-c-select__menu-item"
631
- >
632
- <input
633
- class="pf-c-check__input"
634
- id="pf-random-id-12-Ms"
635
- type="checkbox"
636
- />
637
- <span
638
- class="pf-c-check__label"
592
+ <input
593
+ class="pf-c-check__input"
594
+ id="pf-random-id-14-Mr"
595
+ type="checkbox"
596
+ />
597
+ <span
598
+ class="pf-c-check__label"
599
+ >
600
+ Mr
601
+ </span>
602
+ </label>
603
+ <label
604
+ class="pf-c-check pf-c-select__menu-item"
639
605
  >
640
- Ms
641
- </span>
642
- </label>
643
- <label
644
- class="pf-c-check pf-c-select__menu-item"
645
- >
646
- <input
647
- class="pf-c-check__input"
648
- id="pf-random-id-12-Other"
649
- type="checkbox"
650
- />
651
- <span
652
- class="pf-c-check__label"
606
+ <input
607
+ class="pf-c-check__input"
608
+ id="pf-random-id-14-Mrs"
609
+ type="checkbox"
610
+ />
611
+ <span
612
+ class="pf-c-check__label"
613
+ >
614
+ Mrs
615
+ </span>
616
+ </label>
617
+ <label
618
+ class="pf-c-check pf-c-select__menu-item"
653
619
  >
654
- Other
655
- </span>
656
- </label>
657
- </fieldset>
658
- </div>
659
- </div>
660
- </div>
661
- `;
620
+ <input
621
+ class="pf-c-check__input"
622
+ id="pf-random-id-14-Ms"
623
+ type="checkbox"
624
+ />
625
+ <span
626
+ class="pf-c-check__label"
627
+ >
628
+ Ms
629
+ </span>
630
+ </label>
631
+ <label
632
+ class="pf-c-check pf-c-select__menu-item"
633
+ >
634
+ <input
635
+ class="pf-c-check__input"
636
+ id="pf-random-id-14-Other"
637
+ type="checkbox"
638
+ />
639
+ <span
640
+ class="pf-c-check__label"
641
+ >
642
+ Other
643
+ </span>
644
+ </label>
645
+ </fieldset>
646
+ </div>
647
+ <div
648
+ class="pf-c-select__menu-group"
649
+ >
650
+ <div
651
+ aria-hidden="true"
652
+ class="pf-c-select__menu-group-title"
653
+ id="group-2"
654
+ >
655
+ group 2
656
+ </div>
657
+ <fieldset
658
+ aria-labelledby="group-2"
659
+ class="pf-c-select__menu-fieldset"
660
+ >
661
+ <label
662
+ class="pf-c-check pf-c-select__menu-item"
663
+ >
664
+ <input
665
+ class="pf-c-check__input"
666
+ id="pf-random-id-14-Mr"
667
+ type="checkbox"
668
+ />
669
+ <span
670
+ class="pf-c-check__label"
671
+ >
672
+ Mr
673
+ </span>
674
+ </label>
675
+ <label
676
+ class="pf-c-check pf-c-select__menu-item"
677
+ >
678
+ <input
679
+ class="pf-c-check__input"
680
+ id="pf-random-id-14-Mrs"
681
+ type="checkbox"
682
+ />
683
+ <span
684
+ class="pf-c-check__label"
685
+ >
686
+ Mrs
687
+ </span>
688
+ </label>
689
+ <label
690
+ class="pf-c-check pf-c-select__menu-item"
691
+ >
692
+ <input
693
+ class="pf-c-check__input"
694
+ id="pf-random-id-14-Ms"
695
+ type="checkbox"
696
+ />
697
+ <span
698
+ class="pf-c-check__label"
699
+ >
700
+ Ms
701
+ </span>
702
+ </label>
703
+ <label
704
+ class="pf-c-check pf-c-select__menu-item"
705
+ >
706
+ <input
707
+ class="pf-c-check__input"
708
+ id="pf-random-id-14-Other"
709
+ type="checkbox"
710
+ />
711
+ <span
712
+ class="pf-c-check__label"
713
+ >
714
+ Other
715
+ </span>
716
+ </label>
717
+ </fieldset>
718
+ </div>
719
+ </div>
720
+ </div>
721
+ </DocumentFragment>
722
+ `;
662
723
 
663
- exports[`checkbox select renders expanded with filtering successfully 2`] = `
664
- <div>
724
+ exports[`checkbox select renders checkbox select selections properly 1`] = `
725
+ <DocumentFragment>
665
726
  <div
666
- class="pf-c-select pf-m-expanded"
667
- data-ouia-component-id="OUIA-Generated-Select-checkbox-6"
727
+ class="pf-c-select"
728
+ data-ouia-component-id="test-id"
668
729
  data-ouia-component-type="PF4/Select"
669
730
  data-ouia-safe="true"
670
731
  >
671
- <div
672
- class="pf-c-select__toggle pf-m-typeahead"
732
+ <button
733
+ aria-expanded="false"
734
+ aria-label="Options menu"
735
+ aria-labelledby=" checkbox-select-selections"
736
+ class="pf-c-select__toggle"
737
+ id="checkbox-select-selections"
738
+ type="button"
673
739
  >
674
740
  <div
675
741
  class="pf-c-select__toggle-wrapper"
@@ -677,18 +743,21 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
677
743
  <span
678
744
  class="pf-c-select__toggle-text"
679
745
  />
746
+ <div
747
+ class="pf-c-select__toggle-badge"
748
+ >
749
+ <span
750
+ class="pf-c-badge pf-m-read"
751
+ >
752
+ 1
753
+ </span>
754
+ </div>
680
755
  </div>
681
- <button
682
- aria-expanded="true"
683
- aria-label="Options menu"
684
- aria-labelledby=" checkbox-select-expanded-filtered"
685
- class="pf-c-button pf-c-select__toggle-button pf-m-plain"
686
- id="checkbox-select-expanded-filtered"
687
- type="button"
756
+ <span
757
+ class="pf-c-select__toggle-arrow"
688
758
  >
689
759
  <svg
690
760
  aria-hidden="true"
691
- class="pf-c-select__toggle-arrow"
692
761
  fill="currentColor"
693
762
  height="1em"
694
763
  role="img"
@@ -700,104 +769,26 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
700
769
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
701
770
  />
702
771
  </svg>
703
- </button>
704
- </div>
705
- <div
706
- class="pf-c-select__menu"
707
- >
708
- <fieldset
709
- aria-label=""
710
- class="pf-c-form__fieldset"
711
- >
712
- <div
713
- class="pf-c-select__menu-search"
714
- >
715
- <input
716
- autocomplete="off"
717
- class="pf-c-form-control pf-m-search"
718
- type="search"
719
- />
720
- </div>
721
- <hr
722
- class="pf-c-divider"
723
- />
724
- <label
725
- class="pf-c-check pf-c-select__menu-item"
726
- >
727
- <input
728
- class="pf-c-check__input"
729
- id="pf-random-id-13-Mr"
730
- type="checkbox"
731
- />
732
- <span
733
- class="pf-c-check__label"
734
- >
735
- Mr
736
- </span>
737
- </label>
738
- <label
739
- class="pf-c-check pf-c-select__menu-item"
740
- >
741
- <input
742
- class="pf-c-check__input"
743
- id="pf-random-id-13-Mrs"
744
- type="checkbox"
745
- />
746
- <span
747
- class="pf-c-check__label"
748
- >
749
- Mrs
750
- </span>
751
- </label>
752
- <label
753
- class="pf-c-check pf-c-select__menu-item"
754
- >
755
- <input
756
- class="pf-c-check__input"
757
- id="pf-random-id-13-Ms"
758
- type="checkbox"
759
- />
760
- <span
761
- class="pf-c-check__label"
762
- >
763
- Ms
764
- </span>
765
- </label>
766
- <label
767
- class="pf-c-check pf-c-select__menu-item"
768
- >
769
- <input
770
- class="pf-c-check__input"
771
- id="pf-random-id-13-Other"
772
- type="checkbox"
773
- />
774
- <span
775
- class="pf-c-check__label"
776
- >
777
- Other
778
- </span>
779
- </label>
780
- </fieldset>
781
- </div>
772
+ </span>
773
+ </button>
782
774
  </div>
783
- </div>
775
+ </DocumentFragment>
784
776
  `;
785
777
 
786
- exports[`renders select with favorites successfully 1`] = `
787
- <div>
778
+ exports[`checkbox select renders checkbox select selections properly when isCheckboxSelectionBadgeHidden is true 1`] = `
779
+ <DocumentFragment>
788
780
  <div
789
- class="pf-c-select pf-m-expanded"
790
- data-ouia-component-id="OUIA-Generated-Select-single-7"
781
+ class="pf-c-select"
782
+ data-ouia-component-id="test-id"
791
783
  data-ouia-component-type="PF4/Select"
792
784
  data-ouia-safe="true"
793
785
  >
794
786
  <button
795
- aria-expanded="true"
796
- aria-haspopup="listbox"
787
+ aria-expanded="false"
797
788
  aria-label="Options menu"
798
- aria-labelledby=" pf-select-toggle-id-3"
789
+ aria-labelledby=" checkbox-select-hidden-badge"
799
790
  class="pf-c-select__toggle"
800
- id="pf-select-toggle-id-3"
791
+ id="checkbox-select-hidden-badge"
801
792
  type="button"
802
793
  >
803
794
  <div
@@ -825,1054 +816,44 @@ exports[`renders select with favorites successfully 1`] = `
825
816
  </svg>
826
817
  </span>
827
818
  </button>
828
- <div
829
- class="pf-c-select__menu"
819
+ </div>
820
+ </DocumentFragment>
821
+ `;
822
+
823
+ exports[`checkbox select renders closed successfully 1`] = `
824
+ <DocumentFragment>
825
+ <div
826
+ class="pf-c-select"
827
+ data-ouia-component-id="test-id"
828
+ data-ouia-component-type="PF4/Select"
829
+ data-ouia-safe="true"
830
+ >
831
+ <button
832
+ aria-expanded="false"
833
+ aria-label="Options menu"
834
+ aria-labelledby=" checkbox-select-closed"
835
+ class="pf-c-select__toggle"
836
+ id="checkbox-select-closed"
837
+ type="button"
830
838
  >
831
839
  <div
832
- class="pf-c-select__menu-group"
840
+ class="pf-c-select__toggle-wrapper"
833
841
  >
834
- <div
842
+ <span
843
+ class="pf-c-select__toggle-text"
844
+ />
845
+ </div>
846
+ <span
847
+ class="pf-c-select__toggle-arrow"
848
+ >
849
+ <svg
835
850
  aria-hidden="true"
836
- class="pf-c-select__menu-group-title"
837
- id="group-1"
838
- >
839
- group 1
840
- </div>
841
- <ul
842
- role="listbox"
843
- >
844
- <li
845
- class="pf-c-select__menu-wrapper pf-m-favorite"
846
- id="option-1"
847
- role="presentation"
848
- >
849
- <button
850
- class="pf-c-select__menu-item pf-m-link"
851
- role="option"
852
- type="button"
853
- >
854
- Mr
855
- </button>
856
- <button
857
- aria-label="starred"
858
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
859
- >
860
- <span
861
- class="pf-c-select__menu-item-action-icon"
862
- >
863
- <svg
864
- aria-hidden="true"
865
- fill="currentColor"
866
- height="1em"
867
- role="img"
868
- style="vertical-align: -0.125em;"
869
- viewBox="0 0 576 512"
870
- width="1em"
871
- >
872
- <path
873
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
874
- />
875
- </svg>
876
- </span>
877
- </button>
878
- </li>
879
- <li
880
- class="pf-c-select__menu-wrapper"
881
- id="option-2"
882
- role="presentation"
883
- >
884
- <button
885
- class="pf-c-select__menu-item pf-m-link"
886
- role="option"
887
- type="button"
888
- >
889
- Mrs
890
- </button>
891
- <button
892
- aria-label="not starred"
893
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
894
- >
895
- <span
896
- class="pf-c-select__menu-item-action-icon"
897
- >
898
- <svg
899
- aria-hidden="true"
900
- fill="currentColor"
901
- height="1em"
902
- role="img"
903
- style="vertical-align: -0.125em;"
904
- viewBox="0 0 576 512"
905
- width="1em"
906
- >
907
- <path
908
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
909
- />
910
- </svg>
911
- </span>
912
- </button>
913
- </li>
914
- <li
915
- class="pf-c-select__menu-wrapper"
916
- id="option-2"
917
- role="presentation"
918
- >
919
- <button
920
- class="pf-c-select__menu-item pf-m-link"
921
- role="option"
922
- type="button"
923
- >
924
- Ms
925
- </button>
926
- <button
927
- aria-label="not starred"
928
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
929
- >
930
- <span
931
- class="pf-c-select__menu-item-action-icon"
932
- >
933
- <svg
934
- aria-hidden="true"
935
- fill="currentColor"
936
- height="1em"
937
- role="img"
938
- style="vertical-align: -0.125em;"
939
- viewBox="0 0 576 512"
940
- width="1em"
941
- >
942
- <path
943
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
944
- />
945
- </svg>
946
- </span>
947
- </button>
948
- </li>
949
- <li
950
- class="pf-c-select__menu-wrapper"
951
- id="option-4"
952
- role="presentation"
953
- >
954
- <button
955
- class="pf-c-select__menu-item pf-m-link"
956
- role="option"
957
- type="button"
958
- >
959
- Other
960
- </button>
961
- <button
962
- aria-label="not starred"
963
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
964
- >
965
- <span
966
- class="pf-c-select__menu-item-action-icon"
967
- >
968
- <svg
969
- aria-hidden="true"
970
- fill="currentColor"
971
- height="1em"
972
- role="img"
973
- style="vertical-align: -0.125em;"
974
- viewBox="0 0 576 512"
975
- width="1em"
976
- >
977
- <path
978
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
979
- />
980
- </svg>
981
- </span>
982
- </button>
983
- </li>
984
- </ul>
985
- </div>
986
- <div
987
- class="pf-c-select__menu-group"
988
- >
989
- <div
990
- aria-hidden="true"
991
- class="pf-c-select__menu-group-title"
992
- id="group-2"
993
- >
994
- group 2
995
- </div>
996
- <ul
997
- role="listbox"
998
- >
999
- <li
1000
- class="pf-c-select__menu-wrapper pf-m-favorite"
1001
- id="option-1"
1002
- role="presentation"
1003
- >
1004
- <button
1005
- class="pf-c-select__menu-item pf-m-link"
1006
- role="option"
1007
- type="button"
1008
- >
1009
- Mr
1010
- </button>
1011
- <button
1012
- aria-label="starred"
1013
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1014
- >
1015
- <span
1016
- class="pf-c-select__menu-item-action-icon"
1017
- >
1018
- <svg
1019
- aria-hidden="true"
1020
- fill="currentColor"
1021
- height="1em"
1022
- role="img"
1023
- style="vertical-align: -0.125em;"
1024
- viewBox="0 0 576 512"
1025
- width="1em"
1026
- >
1027
- <path
1028
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1029
- />
1030
- </svg>
1031
- </span>
1032
- </button>
1033
- </li>
1034
- <li
1035
- class="pf-c-select__menu-wrapper"
1036
- id="option-2"
1037
- role="presentation"
1038
- >
1039
- <button
1040
- class="pf-c-select__menu-item pf-m-link"
1041
- role="option"
1042
- type="button"
1043
- >
1044
- Mrs
1045
- </button>
1046
- <button
1047
- aria-label="not starred"
1048
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1049
- >
1050
- <span
1051
- class="pf-c-select__menu-item-action-icon"
1052
- >
1053
- <svg
1054
- aria-hidden="true"
1055
- fill="currentColor"
1056
- height="1em"
1057
- role="img"
1058
- style="vertical-align: -0.125em;"
1059
- viewBox="0 0 576 512"
1060
- width="1em"
1061
- >
1062
- <path
1063
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1064
- />
1065
- </svg>
1066
- </span>
1067
- </button>
1068
- </li>
1069
- <li
1070
- class="pf-c-select__menu-wrapper"
1071
- id="option-2"
1072
- role="presentation"
1073
- >
1074
- <button
1075
- class="pf-c-select__menu-item pf-m-link"
1076
- role="option"
1077
- type="button"
1078
- >
1079
- Ms
1080
- </button>
1081
- <button
1082
- aria-label="not starred"
1083
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1084
- >
1085
- <span
1086
- class="pf-c-select__menu-item-action-icon"
1087
- >
1088
- <svg
1089
- aria-hidden="true"
1090
- fill="currentColor"
1091
- height="1em"
1092
- role="img"
1093
- style="vertical-align: -0.125em;"
1094
- viewBox="0 0 576 512"
1095
- width="1em"
1096
- >
1097
- <path
1098
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1099
- />
1100
- </svg>
1101
- </span>
1102
- </button>
1103
- </li>
1104
- <li
1105
- class="pf-c-select__menu-wrapper"
1106
- id="option-4"
1107
- role="presentation"
1108
- >
1109
- <button
1110
- class="pf-c-select__menu-item pf-m-link"
1111
- role="option"
1112
- type="button"
1113
- >
1114
- Other
1115
- </button>
1116
- <button
1117
- aria-label="not starred"
1118
- class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1119
- >
1120
- <span
1121
- class="pf-c-select__menu-item-action-icon"
1122
- >
1123
- <svg
1124
- aria-hidden="true"
1125
- fill="currentColor"
1126
- height="1em"
1127
- role="img"
1128
- style="vertical-align: -0.125em;"
1129
- viewBox="0 0 576 512"
1130
- width="1em"
1131
- >
1132
- <path
1133
- d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1134
- />
1135
- </svg>
1136
- </span>
1137
- </button>
1138
- </li>
1139
- </ul>
1140
- </div>
1141
- </div>
1142
- </div>
1143
- </div>
1144
- `;
1145
-
1146
- exports[`select custom select filter filters properly 1`] = `
1147
- <Select
1148
- aria-describedby=""
1149
- aria-invalid={false}
1150
- aria-label=""
1151
- aria-labelledby=""
1152
- chipGroupComponent={null}
1153
- className=""
1154
- clearSelectionsAriaLabel="Clear all"
1155
- createText="Create"
1156
- customBadgeText={null}
1157
- customContent={null}
1158
- direction="down"
1159
- favorites={Array []}
1160
- favoritesLabel="Favorites"
1161
- hasInlineFilter={false}
1162
- hasPlaceholderStyle={false}
1163
- inlineFilterPlaceholderText={null}
1164
- inputAutoComplete="off"
1165
- inputIdPrefix=""
1166
- isCreatable={false}
1167
- isCreateSelectOptionObject={false}
1168
- isDisabled={false}
1169
- isGrouped={false}
1170
- isInputFilterPersisted={false}
1171
- isInputValuePersisted={false}
1172
- isOpen={true}
1173
- isPlain={false}
1174
- menuAppendTo="inline"
1175
- noResultsFoundText="No results found"
1176
- onClear={[Function]}
1177
- onCreateOption={[Function]}
1178
- onFilter={[Function]}
1179
- onSelect={[MockFunction]}
1180
- onToggle={[MockFunction]}
1181
- onTypeaheadInputChanged={null}
1182
- ouiaSafe={true}
1183
- placeholderText=""
1184
- position="left"
1185
- removeSelectionAriaLabel="Remove"
1186
- selections={Array []}
1187
- shouldResetOnSelect={true}
1188
- toggleAriaLabel="Options menu"
1189
- toggleIcon={null}
1190
- toggleId="custom-select-filters"
1191
- typeAheadAriaLabel=""
1192
- validated="default"
1193
- variant="typeahead"
1194
- width=""
1195
- >
1196
- <GenerateId
1197
- prefix="pf-random-id-"
1198
- >
1199
- <div
1200
- className="pf-c-select pf-m-expanded"
1201
- data-ouia-component-id="OUIA-Generated-Select-typeahead-1"
1202
- data-ouia-component-type="PF4/Select"
1203
- data-ouia-safe={true}
1204
- >
1205
- <SelectToggle
1206
- aria-label="Options menu"
1207
- aria-labelledby=" custom-select-filters"
1208
- className=""
1209
- handleTypeaheadKeys={[Function]}
1210
- hasClearButton={false}
1211
- hasFooter={false}
1212
- hasPlaceholderStyle={false}
1213
- id="custom-select-filters"
1214
- isActive={false}
1215
- isDisabled={false}
1216
- isOpen={true}
1217
- isPlain={false}
1218
- menuRef={
1219
- Object {
1220
- "current": <ul
1221
- aria-label=""
1222
- class="pf-c-select__menu"
1223
- role="listbox"
1224
- >
1225
- <li
1226
- class="pf-c-select__menu-wrapper"
1227
- id="option-1"
1228
- role="presentation"
1229
- >
1230
- <button
1231
- class="pf-c-select__menu-item"
1232
- role="option"
1233
- type="button"
1234
- >
1235
- Mr
1236
- </button>
1237
- </li>
1238
- <li
1239
- class="pf-c-select__menu-wrapper"
1240
- id="option-2"
1241
- role="presentation"
1242
- >
1243
- <button
1244
- class="pf-c-select__menu-item"
1245
- role="option"
1246
- type="button"
1247
- >
1248
- Mrs
1249
- </button>
1250
- </li>
1251
- <li
1252
- class="pf-c-select__menu-wrapper"
1253
- id="option-4"
1254
- role="presentation"
1255
- >
1256
- <button
1257
- class="pf-c-select__menu-item"
1258
- role="option"
1259
- type="button"
1260
- >
1261
- Other
1262
- </button>
1263
- </li>
1264
- </ul>,
1265
- }
1266
- }
1267
- moveFocusToLastMenuItem={[Function]}
1268
- onClickTypeaheadToggleButton={[Function]}
1269
- onClose={[Function]}
1270
- onEnter={[Function]}
1271
- onToggle={[Function]}
1272
- parentRef={
1273
- Object {
1274
- "current": <div
1275
- class="pf-c-select pf-m-expanded"
1276
- data-ouia-component-id="OUIA-Generated-Select-typeahead-1"
1277
- data-ouia-component-type="PF4/Select"
1278
- data-ouia-safe="true"
1279
- >
1280
- <div
1281
- class="pf-c-select__toggle pf-m-typeahead"
1282
- >
1283
- <div
1284
- class="pf-c-select__toggle-wrapper"
1285
- >
1286
- <input
1287
- aria-label=""
1288
- autocomplete="off"
1289
- class="pf-c-form-control pf-c-select__toggle-typeahead"
1290
- id="custom-select-filters-select-typeahead"
1291
- placeholder=""
1292
- type="text"
1293
- value="r"
1294
- />
1295
- </div>
1296
- <button
1297
- aria-expanded="true"
1298
- aria-haspopup="listbox"
1299
- aria-label="Options menu"
1300
- aria-labelledby=" custom-select-filters"
1301
- class="pf-c-button pf-c-select__toggle-button pf-m-plain"
1302
- id="custom-select-filters"
1303
- tabindex="-1"
1304
- type="button"
1305
- >
1306
- <svg
1307
- aria-hidden="true"
1308
- class="pf-c-select__toggle-arrow"
1309
- fill="currentColor"
1310
- height="1em"
1311
- role="img"
1312
- style="vertical-align: -0.125em;"
1313
- viewBox="0 0 320 512"
1314
- width="1em"
1315
- >
1316
- <path
1317
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
1318
- />
1319
- </svg>
1320
- </button>
1321
- </div>
1322
- <ul
1323
- aria-label=""
1324
- class="pf-c-select__menu"
1325
- role="listbox"
1326
- >
1327
- <li
1328
- class="pf-c-select__menu-wrapper"
1329
- id="option-1"
1330
- role="presentation"
1331
- >
1332
- <button
1333
- class="pf-c-select__menu-item"
1334
- role="option"
1335
- type="button"
1336
- >
1337
- Mr
1338
- </button>
1339
- </li>
1340
- <li
1341
- class="pf-c-select__menu-wrapper"
1342
- id="option-2"
1343
- role="presentation"
1344
- >
1345
- <button
1346
- class="pf-c-select__menu-item"
1347
- role="option"
1348
- type="button"
1349
- >
1350
- Mrs
1351
- </button>
1352
- </li>
1353
- <li
1354
- class="pf-c-select__menu-wrapper"
1355
- id="option-4"
1356
- role="presentation"
1357
- >
1358
- <button
1359
- class="pf-c-select__menu-item"
1360
- role="option"
1361
- type="button"
1362
- >
1363
- Other
1364
- </button>
1365
- </li>
1366
- </ul>
1367
- </div>,
1368
- }
1369
- }
1370
- type="button"
1371
- variant="typeahead"
1372
- >
1373
- <div
1374
- className="pf-c-select__toggle pf-m-typeahead"
1375
- onClick={[Function]}
1376
- onKeyDown={[Function]}
1377
- >
1378
- <div
1379
- className="pf-c-select__toggle-wrapper"
1380
- >
1381
- <input
1382
- aria-activedescendant={null}
1383
- aria-label=""
1384
- autoComplete="off"
1385
- className="pf-c-form-control pf-c-select__toggle-typeahead"
1386
- disabled={false}
1387
- id="custom-select-filters-select-typeahead"
1388
- onChange={[Function]}
1389
- onClick={[Function]}
1390
- placeholder=""
1391
- type="text"
1392
- value="r"
1393
- />
1394
- </div>
1395
- <button
1396
- aria-expanded={true}
1397
- aria-haspopup="listbox"
1398
- aria-label="Options menu"
1399
- aria-labelledby=" custom-select-filters"
1400
- className="pf-c-button pf-c-select__toggle-button pf-m-plain"
1401
- disabled={false}
1402
- id="custom-select-filters"
1403
- onClick={[Function]}
1404
- tabIndex={-1}
1405
- type="button"
1406
- >
1407
- <CaretDownIcon
1408
- className="pf-c-select__toggle-arrow"
1409
- color="currentColor"
1410
- noVerticalAlign={false}
1411
- size="sm"
1412
- >
1413
- <svg
1414
- aria-hidden={true}
1415
- aria-labelledby={null}
1416
- className="pf-c-select__toggle-arrow"
1417
- fill="currentColor"
1418
- height="1em"
1419
- role="img"
1420
- style={
1421
- Object {
1422
- "verticalAlign": "-0.125em",
1423
- }
1424
- }
1425
- viewBox="0 0 320 512"
1426
- width="1em"
1427
- >
1428
- <path
1429
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
1430
- />
1431
- </svg>
1432
- </CaretDownIcon>
1433
- </button>
1434
- </div>
1435
- </SelectToggle>
1436
- <ForwardRef
1437
- aria-label=""
1438
- aria-labelledby=""
1439
- footerRef={
1440
- Object {
1441
- "current": null,
1442
- }
1443
- }
1444
- isGrouped={false}
1445
- isLastOptionBeforeFooter={[Function]}
1446
- keyHandler={[Function]}
1447
- openedOnEnter={false}
1448
- position="left"
1449
- sendRef={[Function]}
1450
- >
1451
- <SelectMenu
1452
- aria-label=""
1453
- aria-labelledby=""
1454
- className=""
1455
- footerRef={
1456
- Object {
1457
- "current": null,
1458
- }
1459
- }
1460
- hasInlineFilter={false}
1461
- innerRef={
1462
- Object {
1463
- "current": <ul
1464
- aria-label=""
1465
- class="pf-c-select__menu"
1466
- role="listbox"
1467
- >
1468
- <li
1469
- class="pf-c-select__menu-wrapper"
1470
- id="option-1"
1471
- role="presentation"
1472
- >
1473
- <button
1474
- class="pf-c-select__menu-item"
1475
- role="option"
1476
- type="button"
1477
- >
1478
- Mr
1479
- </button>
1480
- </li>
1481
- <li
1482
- class="pf-c-select__menu-wrapper"
1483
- id="option-2"
1484
- role="presentation"
1485
- >
1486
- <button
1487
- class="pf-c-select__menu-item"
1488
- role="option"
1489
- type="button"
1490
- >
1491
- Mrs
1492
- </button>
1493
- </li>
1494
- <li
1495
- class="pf-c-select__menu-wrapper"
1496
- id="option-4"
1497
- role="presentation"
1498
- >
1499
- <button
1500
- class="pf-c-select__menu-item"
1501
- role="option"
1502
- type="button"
1503
- >
1504
- Other
1505
- </button>
1506
- </li>
1507
- </ul>,
1508
- }
1509
- }
1510
- isCustomContent={false}
1511
- isExpanded={false}
1512
- isGrouped={false}
1513
- isLastOptionBeforeFooter={[Function]}
1514
- keyHandler={[Function]}
1515
- maxHeight=""
1516
- openedOnEnter={false}
1517
- position="left"
1518
- selected=""
1519
- sendRef={[Function]}
1520
- >
1521
- <ul
1522
- aria-label=""
1523
- aria-labelledby={null}
1524
- className="pf-c-select__menu"
1525
- role="listbox"
1526
- >
1527
- <SelectOption
1528
- className=""
1529
- component="button"
1530
- id="option-1"
1531
- index={0}
1532
- inputId="pf-random-id-5-0"
1533
- isChecked={false}
1534
- isDisabled={false}
1535
- isFavorite={null}
1536
- isFocused={false}
1537
- isLastOptionBeforeFooter={[Function]}
1538
- isLoad={false}
1539
- isLoading={false}
1540
- isNoResultsOption={false}
1541
- isPlaceholder={false}
1542
- isSelected={false}
1543
- key=".$00"
1544
- keyHandler={[Function]}
1545
- onClick={[Function]}
1546
- sendRef={[Function]}
1547
- setViewMoreNextIndex={[Function]}
1548
- value="Mr"
1549
- >
1550
- <li
1551
- className="pf-c-select__menu-wrapper"
1552
- id="option-1"
1553
- role="presentation"
1554
- >
1555
- <button
1556
- aria-selected={null}
1557
- className="pf-c-select__menu-item"
1558
- onClick={[Function]}
1559
- onKeyDown={[Function]}
1560
- role="option"
1561
- type="button"
1562
- >
1563
- Mr
1564
- </button>
1565
- </li>
1566
- </SelectOption>
1567
- <SelectOption
1568
- className=""
1569
- component="button"
1570
- id="option-2"
1571
- index={1}
1572
- inputId="pf-random-id-5-1"
1573
- isChecked={false}
1574
- isDisabled={false}
1575
- isFavorite={null}
1576
- isFocused={false}
1577
- isLastOptionBeforeFooter={[Function]}
1578
- isLoad={false}
1579
- isLoading={false}
1580
- isNoResultsOption={false}
1581
- isPlaceholder={false}
1582
- isSelected={false}
1583
- key=".$01"
1584
- keyHandler={[Function]}
1585
- onClick={[Function]}
1586
- sendRef={[Function]}
1587
- setViewMoreNextIndex={[Function]}
1588
- value="Mrs"
1589
- >
1590
- <li
1591
- className="pf-c-select__menu-wrapper"
1592
- id="option-2"
1593
- role="presentation"
1594
- >
1595
- <button
1596
- aria-selected={null}
1597
- className="pf-c-select__menu-item"
1598
- onClick={[Function]}
1599
- onKeyDown={[Function]}
1600
- role="option"
1601
- type="button"
1602
- >
1603
- Mrs
1604
- </button>
1605
- </li>
1606
- </SelectOption>
1607
- <SelectOption
1608
- className=""
1609
- component="button"
1610
- id="option-4"
1611
- index={2}
1612
- inputId="pf-random-id-5-2"
1613
- isChecked={false}
1614
- isDisabled={false}
1615
- isFavorite={null}
1616
- isFocused={false}
1617
- isLastOptionBeforeFooter={[Function]}
1618
- isLoad={false}
1619
- isLoading={false}
1620
- isNoResultsOption={false}
1621
- isPlaceholder={false}
1622
- isSelected={false}
1623
- key=".$03"
1624
- keyHandler={[Function]}
1625
- onClick={[Function]}
1626
- sendRef={[Function]}
1627
- setViewMoreNextIndex={[Function]}
1628
- value="Other"
1629
- >
1630
- <li
1631
- className="pf-c-select__menu-wrapper"
1632
- id="option-4"
1633
- role="presentation"
1634
- >
1635
- <button
1636
- aria-selected={null}
1637
- className="pf-c-select__menu-item"
1638
- onClick={[Function]}
1639
- onKeyDown={[Function]}
1640
- role="option"
1641
- type="button"
1642
- >
1643
- Other
1644
- </button>
1645
- </li>
1646
- </SelectOption>
1647
- </ul>
1648
- </SelectMenu>
1649
- </ForwardRef>
1650
- </div>
1651
- </GenerateId>
1652
- </Select>
1653
- `;
1654
-
1655
- exports[`select renders select groups successfully 1`] = `
1656
- <div>
1657
- <div
1658
- class="pf-c-select pf-m-expanded"
1659
- data-ouia-component-id="OUIA-Generated-Select-single-6"
1660
- data-ouia-component-type="PF4/Select"
1661
- data-ouia-safe="true"
1662
- >
1663
- <button
1664
- aria-expanded="true"
1665
- aria-haspopup="listbox"
1666
- aria-label="Options menu"
1667
- aria-labelledby=" pf-select-toggle-id-2"
1668
- class="pf-c-select__toggle"
1669
- id="pf-select-toggle-id-2"
1670
- type="button"
1671
- >
1672
- <div
1673
- class="pf-c-select__toggle-wrapper"
1674
- >
1675
- <span
1676
- class="pf-c-select__toggle-text"
1677
- />
1678
- </div>
1679
- <span
1680
- class="pf-c-select__toggle-arrow"
1681
- >
1682
- <svg
1683
- aria-hidden="true"
1684
- fill="currentColor"
1685
- height="1em"
1686
- role="img"
1687
- style="vertical-align: -0.125em;"
1688
- viewBox="0 0 320 512"
1689
- width="1em"
1690
- >
1691
- <path
1692
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
1693
- />
1694
- </svg>
1695
- </span>
1696
- </button>
1697
- <div
1698
- class="pf-c-select__menu"
1699
- >
1700
- <div
1701
- class="pf-c-select__menu-group"
1702
- >
1703
- <div
1704
- aria-hidden="true"
1705
- class="pf-c-select__menu-group-title"
1706
- id="group-1"
1707
- >
1708
- group 1
1709
- </div>
1710
- <ul
1711
- role="listbox"
1712
- >
1713
- <li
1714
- class="pf-c-select__menu-wrapper"
1715
- id="option-1"
1716
- role="presentation"
1717
- >
1718
- <button
1719
- class="pf-c-select__menu-item"
1720
- role="option"
1721
- type="button"
1722
- >
1723
- Mr
1724
- </button>
1725
- </li>
1726
- <li
1727
- class="pf-c-select__menu-wrapper"
1728
- id="option-2"
1729
- role="presentation"
1730
- >
1731
- <button
1732
- class="pf-c-select__menu-item"
1733
- role="option"
1734
- type="button"
1735
- >
1736
- Mrs
1737
- </button>
1738
- </li>
1739
- <li
1740
- class="pf-c-select__menu-wrapper"
1741
- id="option-3"
1742
- role="presentation"
1743
- >
1744
- <button
1745
- class="pf-c-select__menu-item"
1746
- role="option"
1747
- type="button"
1748
- >
1749
- Ms
1750
- </button>
1751
- </li>
1752
- <li
1753
- class="pf-c-select__menu-wrapper"
1754
- id="option-4"
1755
- role="presentation"
1756
- >
1757
- <button
1758
- class="pf-c-select__menu-item"
1759
- role="option"
1760
- type="button"
1761
- >
1762
- Other
1763
- </button>
1764
- </li>
1765
- </ul>
1766
- </div>
1767
- <div
1768
- class="pf-c-select__menu-group"
1769
- >
1770
- <div
1771
- aria-hidden="true"
1772
- class="pf-c-select__menu-group-title"
1773
- id="group-2"
1774
- >
1775
- group 2
1776
- </div>
1777
- <ul
1778
- role="listbox"
1779
- >
1780
- <li
1781
- class="pf-c-select__menu-wrapper"
1782
- id="option-1"
1783
- role="presentation"
1784
- >
1785
- <button
1786
- class="pf-c-select__menu-item"
1787
- role="option"
1788
- type="button"
1789
- >
1790
- Mr
1791
- </button>
1792
- </li>
1793
- <li
1794
- class="pf-c-select__menu-wrapper"
1795
- id="option-2"
1796
- role="presentation"
1797
- >
1798
- <button
1799
- class="pf-c-select__menu-item"
1800
- role="option"
1801
- type="button"
1802
- >
1803
- Mrs
1804
- </button>
1805
- </li>
1806
- <li
1807
- class="pf-c-select__menu-wrapper"
1808
- id="option-3"
1809
- role="presentation"
1810
- >
1811
- <button
1812
- class="pf-c-select__menu-item"
1813
- role="option"
1814
- type="button"
1815
- >
1816
- Ms
1817
- </button>
1818
- </li>
1819
- <li
1820
- class="pf-c-select__menu-wrapper"
1821
- id="option-4"
1822
- role="presentation"
1823
- >
1824
- <button
1825
- class="pf-c-select__menu-item"
1826
- role="option"
1827
- type="button"
1828
- >
1829
- Other
1830
- </button>
1831
- </li>
1832
- </ul>
1833
- </div>
1834
- </div>
1835
- </div>
1836
- </div>
1837
- `;
1838
-
1839
- exports[`select renders up direction successfully 1`] = `
1840
- <div>
1841
- <div
1842
- class="pf-c-select pf-m-top"
1843
- data-ouia-component-id="OUIA-Generated-Select-single-5"
1844
- data-ouia-component-type="PF4/Select"
1845
- data-ouia-safe="true"
1846
- >
1847
- <button
1848
- aria-expanded="false"
1849
- aria-haspopup="listbox"
1850
- aria-label="Options menu"
1851
- aria-labelledby=" select-up"
1852
- class="pf-c-select__toggle"
1853
- id="select-up"
1854
- type="button"
1855
- >
1856
- <div
1857
- class="pf-c-select__toggle-wrapper"
1858
- >
1859
- <span
1860
- class="pf-c-select__toggle-text"
1861
- >
1862
- Mr
1863
- </span>
1864
- </div>
1865
- <span
1866
- class="pf-c-select__toggle-arrow"
1867
- >
1868
- <svg
1869
- aria-hidden="true"
1870
- fill="currentColor"
1871
- height="1em"
1872
- role="img"
1873
- style="vertical-align: -0.125em;"
1874
- viewBox="0 0 320 512"
1875
- width="1em"
851
+ fill="currentColor"
852
+ height="1em"
853
+ role="img"
854
+ style="vertical-align: -0.125em;"
855
+ viewBox="0 0 320 512"
856
+ width="1em"
1876
857
  >
1877
858
  <path
1878
859
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -1881,24 +862,23 @@ exports[`select renders up direction successfully 1`] = `
1881
862
  </span>
1882
863
  </button>
1883
864
  </div>
1884
- </div>
865
+ </DocumentFragment>
1885
866
  `;
1886
867
 
1887
- exports[`select single select renders closed successfully 1`] = `
1888
- <div>
868
+ exports[`checkbox select renders expanded successfully 1`] = `
869
+ <DocumentFragment>
1889
870
  <div
1890
- class="pf-c-select"
1891
- data-ouia-component-id="OUIA-Generated-Select-single-1"
871
+ class="pf-c-select pf-m-expanded"
872
+ data-ouia-component-id="test-id"
1892
873
  data-ouia-component-type="PF4/Select"
1893
874
  data-ouia-safe="true"
1894
875
  >
1895
876
  <button
1896
- aria-expanded="false"
1897
- aria-haspopup="listbox"
877
+ aria-expanded="true"
1898
878
  aria-label="Options menu"
1899
- aria-labelledby=" single-select-closed"
879
+ aria-labelledby=" pf-select-toggle-id-4"
1900
880
  class="pf-c-select__toggle"
1901
- id="single-select-closed"
881
+ id="pf-select-toggle-id-4"
1902
882
  type="button"
1903
883
  >
1904
884
  <div
@@ -1906,9 +886,7 @@ exports[`select single select renders closed successfully 1`] = `
1906
886
  >
1907
887
  <span
1908
888
  class="pf-c-select__toggle-text"
1909
- >
1910
- Mr
1911
- </span>
889
+ />
1912
890
  </div>
1913
891
  <span
1914
892
  class="pf-c-select__toggle-arrow"
@@ -1928,74 +906,86 @@ exports[`select single select renders closed successfully 1`] = `
1928
906
  </svg>
1929
907
  </span>
1930
908
  </button>
1931
- </div>
1932
- </div>
1933
- `;
1934
-
1935
- exports[`select single select renders disabled successfully 1`] = `
1936
- <div>
1937
- <div
1938
- class="pf-c-select"
1939
- data-ouia-component-id="OUIA-Generated-Select-single-2"
1940
- data-ouia-component-type="PF4/Select"
1941
- data-ouia-safe="true"
1942
- >
1943
- <button
1944
- aria-expanded="false"
1945
- aria-haspopup="listbox"
1946
- aria-label="Options menu"
1947
- aria-labelledby=" single-select-disabled"
1948
- class="pf-c-select__toggle pf-m-disabled"
1949
- disabled=""
1950
- id="single-select-disabled"
1951
- type="button"
909
+ <ul
910
+ aria-label=""
911
+ class="pf-c-select__menu"
912
+ role="listbox"
1952
913
  >
1953
- <div
1954
- class="pf-c-select__toggle-wrapper"
914
+ <label
915
+ class="pf-c-check pf-c-select__menu-item"
1955
916
  >
917
+ <input
918
+ class="pf-c-check__input"
919
+ id="pf-random-id-11-Mr"
920
+ type="checkbox"
921
+ />
1956
922
  <span
1957
- class="pf-c-select__toggle-text"
923
+ class="pf-c-check__label"
1958
924
  >
1959
925
  Mr
1960
926
  </span>
1961
- </div>
1962
- <span
1963
- class="pf-c-select__toggle-arrow"
927
+ </label>
928
+ <label
929
+ class="pf-c-check pf-c-select__menu-item"
1964
930
  >
1965
- <svg
1966
- aria-hidden="true"
1967
- fill="currentColor"
1968
- height="1em"
1969
- role="img"
1970
- style="vertical-align: -0.125em;"
1971
- viewBox="0 0 320 512"
1972
- width="1em"
931
+ <input
932
+ class="pf-c-check__input"
933
+ id="pf-random-id-11-Mrs"
934
+ type="checkbox"
935
+ />
936
+ <span
937
+ class="pf-c-check__label"
1973
938
  >
1974
- <path
1975
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
1976
- />
1977
- </svg>
1978
- </span>
1979
- </button>
939
+ Mrs
940
+ </span>
941
+ </label>
942
+ <label
943
+ class="pf-c-check pf-c-select__menu-item"
944
+ >
945
+ <input
946
+ class="pf-c-check__input"
947
+ id="pf-random-id-11-Ms"
948
+ type="checkbox"
949
+ />
950
+ <span
951
+ class="pf-c-check__label"
952
+ >
953
+ Ms
954
+ </span>
955
+ </label>
956
+ <label
957
+ class="pf-c-check pf-c-select__menu-item"
958
+ >
959
+ <input
960
+ class="pf-c-check__input"
961
+ id="pf-random-id-11-Other"
962
+ type="checkbox"
963
+ />
964
+ <span
965
+ class="pf-c-check__label"
966
+ >
967
+ Other
968
+ </span>
969
+ </label>
970
+ </ul>
1980
971
  </div>
1981
- </div>
972
+ </DocumentFragment>
1982
973
  `;
1983
974
 
1984
- exports[`select single select renders expanded successfully 1`] = `
1985
- <div>
975
+ exports[`checkbox select renders expanded successfully with custom objects 1`] = `
976
+ <DocumentFragment>
1986
977
  <div
1987
978
  class="pf-c-select pf-m-expanded"
1988
- data-ouia-component-id="OUIA-Generated-Select-single-3"
979
+ data-ouia-component-id="test-id"
1989
980
  data-ouia-component-type="PF4/Select"
1990
981
  data-ouia-safe="true"
1991
982
  >
1992
983
  <button
1993
984
  aria-expanded="true"
1994
- aria-haspopup="listbox"
1995
985
  aria-label="Options menu"
1996
- aria-labelledby=" pf-select-toggle-id-0"
986
+ aria-labelledby=" pf-select-toggle-id-5"
1997
987
  class="pf-c-select__toggle"
1998
- id="pf-select-toggle-id-0"
988
+ id="pf-select-toggle-id-5"
1999
989
  type="button"
2000
990
  >
2001
991
  <div
@@ -2003,9 +993,7 @@ exports[`select single select renders expanded successfully 1`] = `
2003
993
  >
2004
994
  <span
2005
995
  class="pf-c-select__toggle-text"
2006
- >
2007
- Mr
2008
- </span>
996
+ />
2009
997
  </div>
2010
998
  <span
2011
999
  class="pf-c-select__toggle-arrow"
@@ -2030,94 +1018,82 @@ exports[`select single select renders expanded successfully 1`] = `
2030
1018
  class="pf-c-select__menu"
2031
1019
  role="listbox"
2032
1020
  >
2033
- <li
2034
- class="pf-c-select__menu-wrapper"
2035
- id="option-1"
2036
- role="presentation"
2037
- >
2038
- <button
2039
- class="pf-c-select__menu-item"
2040
- role="option"
2041
- type="button"
2042
- >
2043
- Mr
2044
- </button>
2045
- </li>
2046
- <li
2047
- class="pf-c-select__menu-wrapper"
2048
- id="option-2"
2049
- role="presentation"
1021
+ <label
1022
+ class="pf-c-check pf-c-select__menu-item"
2050
1023
  >
2051
- <button
2052
- class="pf-c-select__menu-item"
2053
- role="option"
2054
- type="button"
1024
+ <input
1025
+ class="pf-c-check__input"
1026
+ id="pf-random-id-13-Mr: User One"
1027
+ type="checkbox"
1028
+ />
1029
+ <span
1030
+ class="pf-c-check__label"
2055
1031
  >
2056
- Mrs
2057
- </button>
2058
- </li>
2059
- <li
2060
- class="pf-c-select__menu-wrapper"
2061
- id="option-3"
2062
- role="presentation"
1032
+ Mr: User One
1033
+ </span>
1034
+ </label>
1035
+ <label
1036
+ class="pf-c-check pf-c-select__menu-item"
2063
1037
  >
2064
- <button
2065
- class="pf-c-select__menu-item"
2066
- role="option"
2067
- type="button"
1038
+ <input
1039
+ class="pf-c-check__input"
1040
+ id="pf-random-id-13-Mrs: New User"
1041
+ type="checkbox"
1042
+ />
1043
+ <span
1044
+ class="pf-c-check__label"
2068
1045
  >
2069
- Ms
2070
- </button>
2071
- </li>
2072
- <li
2073
- class="pf-c-select__menu-wrapper"
2074
- id="option-4"
2075
- role="presentation"
1046
+ Mrs: New User
1047
+ </span>
1048
+ </label>
1049
+ <label
1050
+ class="pf-c-check pf-c-select__menu-item"
2076
1051
  >
2077
- <button
2078
- class="pf-c-select__menu-item"
2079
- role="option"
2080
- type="button"
1052
+ <input
1053
+ class="pf-c-check__input"
1054
+ id="pf-random-id-13-Ms: Test Three"
1055
+ type="checkbox"
1056
+ />
1057
+ <span
1058
+ class="pf-c-check__label"
2081
1059
  >
2082
- Other
2083
- </button>
2084
- </li>
1060
+ Ms: Test Three
1061
+ </span>
1062
+ </label>
2085
1063
  </ul>
2086
1064
  </div>
2087
- </div>
1065
+ </DocumentFragment>
2088
1066
  `;
2089
1067
 
2090
- exports[`select single select renders expanded successfully with custom objects 1`] = `
2091
- <div>
1068
+ exports[`checkbox select renders expanded with filtering successfully 1`] = `
1069
+ <DocumentFragment>
2092
1070
  <div
2093
1071
  class="pf-c-select pf-m-expanded"
2094
- data-ouia-component-id="OUIA-Generated-Select-single-4"
1072
+ data-ouia-component-id="test-id"
2095
1073
  data-ouia-component-type="PF4/Select"
2096
1074
  data-ouia-safe="true"
2097
1075
  >
2098
- <button
2099
- aria-expanded="true"
2100
- aria-haspopup="listbox"
2101
- aria-label="Options menu"
2102
- aria-labelledby=" pf-select-toggle-id-1"
2103
- class="pf-c-select__toggle"
2104
- id="pf-select-toggle-id-1"
2105
- type="button"
1076
+ <div
1077
+ class="pf-c-select__toggle pf-m-typeahead"
2106
1078
  >
2107
1079
  <div
2108
1080
  class="pf-c-select__toggle-wrapper"
2109
1081
  >
2110
1082
  <span
2111
1083
  class="pf-c-select__toggle-text"
2112
- >
2113
- Mr: User One
2114
- </span>
1084
+ />
2115
1085
  </div>
2116
- <span
2117
- class="pf-c-select__toggle-arrow"
1086
+ <button
1087
+ aria-expanded="true"
1088
+ aria-label="Options menu"
1089
+ aria-labelledby=" checkbox-select-expanded-filtered"
1090
+ class="pf-c-button pf-c-select__toggle-button pf-m-plain"
1091
+ id="checkbox-select-expanded-filtered"
1092
+ type="button"
2118
1093
  >
2119
1094
  <svg
2120
1095
  aria-hidden="true"
1096
+ class="pf-c-select__toggle-arrow"
2121
1097
  fill="currentColor"
2122
1098
  height="1em"
2123
1099
  role="img"
@@ -2129,72 +1105,104 @@ exports[`select single select renders expanded successfully with custom objects
2129
1105
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
2130
1106
  />
2131
1107
  </svg>
2132
- </span>
2133
- </button>
2134
- <ul
2135
- aria-label=""
1108
+ </button>
1109
+ </div>
1110
+ <div
2136
1111
  class="pf-c-select__menu"
2137
- role="listbox"
2138
1112
  >
2139
- <li
2140
- class="pf-c-select__menu-wrapper"
2141
- id="option-1"
2142
- role="presentation"
1113
+ <fieldset
1114
+ aria-label=""
1115
+ class="pf-c-form__fieldset"
2143
1116
  >
2144
- <button
2145
- class="pf-c-select__menu-item"
2146
- role="option"
2147
- type="button"
1117
+ <div
1118
+ class="pf-c-select__menu-search"
1119
+ >
1120
+ <input
1121
+ autocomplete="off"
1122
+ class="pf-c-form-control pf-m-search"
1123
+ type="search"
1124
+ />
1125
+ </div>
1126
+ <hr
1127
+ class="pf-c-divider"
1128
+ />
1129
+ <label
1130
+ class="pf-c-check pf-c-select__menu-item"
1131
+ >
1132
+ <input
1133
+ class="pf-c-check__input"
1134
+ id="pf-random-id-12-Mr"
1135
+ type="checkbox"
1136
+ />
1137
+ <span
1138
+ class="pf-c-check__label"
1139
+ >
1140
+ Mr
1141
+ </span>
1142
+ </label>
1143
+ <label
1144
+ class="pf-c-check pf-c-select__menu-item"
2148
1145
  >
2149
- Mr: User One
2150
- </button>
2151
- </li>
2152
- <li
2153
- class="pf-c-select__menu-wrapper"
2154
- id="option-2"
2155
- role="presentation"
2156
- >
2157
- <button
2158
- class="pf-c-select__menu-item"
2159
- role="option"
2160
- type="button"
1146
+ <input
1147
+ class="pf-c-check__input"
1148
+ id="pf-random-id-12-Mrs"
1149
+ type="checkbox"
1150
+ />
1151
+ <span
1152
+ class="pf-c-check__label"
1153
+ >
1154
+ Mrs
1155
+ </span>
1156
+ </label>
1157
+ <label
1158
+ class="pf-c-check pf-c-select__menu-item"
2161
1159
  >
2162
- Mrs: New User
2163
- </button>
2164
- </li>
2165
- <li
2166
- class="pf-c-select__menu-wrapper"
2167
- id="option-3"
2168
- role="presentation"
2169
- >
2170
- <button
2171
- class="pf-c-select__menu-item"
2172
- role="option"
2173
- type="button"
1160
+ <input
1161
+ class="pf-c-check__input"
1162
+ id="pf-random-id-12-Ms"
1163
+ type="checkbox"
1164
+ />
1165
+ <span
1166
+ class="pf-c-check__label"
1167
+ >
1168
+ Ms
1169
+ </span>
1170
+ </label>
1171
+ <label
1172
+ class="pf-c-check pf-c-select__menu-item"
2174
1173
  >
2175
- Ms: Test Three
2176
- </button>
2177
- </li>
2178
- </ul>
1174
+ <input
1175
+ class="pf-c-check__input"
1176
+ id="pf-random-id-12-Other"
1177
+ type="checkbox"
1178
+ />
1179
+ <span
1180
+ class="pf-c-check__label"
1181
+ >
1182
+ Other
1183
+ </span>
1184
+ </label>
1185
+ </fieldset>
1186
+ </div>
2179
1187
  </div>
2180
- </div>
1188
+ </DocumentFragment>
2181
1189
  `;
2182
1190
 
2183
- exports[`select with custom content renders closed successfully 1`] = `
2184
- <div>
1191
+ exports[`renders select with favorites successfully 1`] = `
1192
+ <DocumentFragment>
2185
1193
  <div
2186
- class="pf-c-select"
2187
- data-ouia-component-id="OUIA-Generated-Select-single-11"
1194
+ class="pf-c-select pf-m-expanded"
1195
+ data-ouia-component-id="test-id"
2188
1196
  data-ouia-component-type="PF4/Select"
2189
1197
  data-ouia-safe="true"
2190
1198
  >
2191
1199
  <button
2192
- aria-expanded="false"
1200
+ aria-expanded="true"
2193
1201
  aria-haspopup="listbox"
2194
1202
  aria-label="Options menu"
2195
- aria-labelledby=" select-custom-content"
1203
+ aria-labelledby=" pf-select-toggle-id-3"
2196
1204
  class="pf-c-select__toggle"
2197
- id="select-custom-content"
1205
+ id="pf-select-toggle-id-3"
2198
1206
  type="button"
2199
1207
  >
2200
1208
  <div
@@ -2222,157 +1230,329 @@ exports[`select with custom content renders closed successfully 1`] = `
2222
1230
  </svg>
2223
1231
  </span>
2224
1232
  </button>
2225
- </div>
2226
- </div>
2227
- `;
2228
-
2229
- exports[`select with custom content renders expanded successfully 1`] = `
2230
- <div>
2231
- <div
2232
- class="pf-c-select pf-m-expanded"
2233
- data-ouia-component-id="OUIA-Generated-Select-single-12"
2234
- data-ouia-component-type="PF4/Select"
2235
- data-ouia-safe="true"
2236
- >
2237
- <button
2238
- aria-expanded="true"
2239
- aria-haspopup="listbox"
2240
- aria-label="Options menu"
2241
- aria-labelledby=" pf-select-toggle-id-17"
2242
- class="pf-c-select__toggle"
2243
- id="pf-select-toggle-id-17"
2244
- type="button"
1233
+ <div
1234
+ class="pf-c-select__menu"
2245
1235
  >
2246
1236
  <div
2247
- class="pf-c-select__toggle-wrapper"
1237
+ class="pf-c-select__menu-group"
2248
1238
  >
2249
- <span
2250
- class="pf-c-select__toggle-text"
2251
- />
1239
+ <div
1240
+ aria-hidden="true"
1241
+ class="pf-c-select__menu-group-title"
1242
+ id="group-1"
1243
+ >
1244
+ group 1
1245
+ </div>
1246
+ <ul
1247
+ role="listbox"
1248
+ >
1249
+ <li
1250
+ class="pf-c-select__menu-wrapper pf-m-favorite"
1251
+ id="option-1"
1252
+ role="presentation"
1253
+ >
1254
+ <button
1255
+ class="pf-c-select__menu-item pf-m-link"
1256
+ role="option"
1257
+ type="button"
1258
+ >
1259
+ Mr
1260
+ </button>
1261
+ <button
1262
+ aria-label="starred"
1263
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1264
+ >
1265
+ <span
1266
+ class="pf-c-select__menu-item-action-icon"
1267
+ >
1268
+ <svg
1269
+ aria-hidden="true"
1270
+ fill="currentColor"
1271
+ height="1em"
1272
+ role="img"
1273
+ style="vertical-align: -0.125em;"
1274
+ viewBox="0 0 576 512"
1275
+ width="1em"
1276
+ >
1277
+ <path
1278
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1279
+ />
1280
+ </svg>
1281
+ </span>
1282
+ </button>
1283
+ </li>
1284
+ <li
1285
+ class="pf-c-select__menu-wrapper"
1286
+ id="option-2"
1287
+ role="presentation"
1288
+ >
1289
+ <button
1290
+ class="pf-c-select__menu-item pf-m-link"
1291
+ role="option"
1292
+ type="button"
1293
+ >
1294
+ Mrs
1295
+ </button>
1296
+ <button
1297
+ aria-label="not starred"
1298
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1299
+ >
1300
+ <span
1301
+ class="pf-c-select__menu-item-action-icon"
1302
+ >
1303
+ <svg
1304
+ aria-hidden="true"
1305
+ fill="currentColor"
1306
+ height="1em"
1307
+ role="img"
1308
+ style="vertical-align: -0.125em;"
1309
+ viewBox="0 0 576 512"
1310
+ width="1em"
1311
+ >
1312
+ <path
1313
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1314
+ />
1315
+ </svg>
1316
+ </span>
1317
+ </button>
1318
+ </li>
1319
+ <li
1320
+ class="pf-c-select__menu-wrapper"
1321
+ id="option-2"
1322
+ role="presentation"
1323
+ >
1324
+ <button
1325
+ class="pf-c-select__menu-item pf-m-link"
1326
+ role="option"
1327
+ type="button"
1328
+ >
1329
+ Ms
1330
+ </button>
1331
+ <button
1332
+ aria-label="not starred"
1333
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1334
+ >
1335
+ <span
1336
+ class="pf-c-select__menu-item-action-icon"
1337
+ >
1338
+ <svg
1339
+ aria-hidden="true"
1340
+ fill="currentColor"
1341
+ height="1em"
1342
+ role="img"
1343
+ style="vertical-align: -0.125em;"
1344
+ viewBox="0 0 576 512"
1345
+ width="1em"
1346
+ >
1347
+ <path
1348
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1349
+ />
1350
+ </svg>
1351
+ </span>
1352
+ </button>
1353
+ </li>
1354
+ <li
1355
+ class="pf-c-select__menu-wrapper"
1356
+ id="option-4"
1357
+ role="presentation"
1358
+ >
1359
+ <button
1360
+ class="pf-c-select__menu-item pf-m-link"
1361
+ role="option"
1362
+ type="button"
1363
+ >
1364
+ Other
1365
+ </button>
1366
+ <button
1367
+ aria-label="not starred"
1368
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1369
+ >
1370
+ <span
1371
+ class="pf-c-select__menu-item-action-icon"
1372
+ >
1373
+ <svg
1374
+ aria-hidden="true"
1375
+ fill="currentColor"
1376
+ height="1em"
1377
+ role="img"
1378
+ style="vertical-align: -0.125em;"
1379
+ viewBox="0 0 576 512"
1380
+ width="1em"
1381
+ >
1382
+ <path
1383
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1384
+ />
1385
+ </svg>
1386
+ </span>
1387
+ </button>
1388
+ </li>
1389
+ </ul>
2252
1390
  </div>
2253
- <span
2254
- class="pf-c-select__toggle-arrow"
1391
+ <div
1392
+ class="pf-c-select__menu-group"
2255
1393
  >
2256
- <svg
1394
+ <div
2257
1395
  aria-hidden="true"
2258
- fill="currentColor"
2259
- height="1em"
2260
- role="img"
2261
- style="vertical-align: -0.125em;"
2262
- viewBox="0 0 320 512"
2263
- width="1em"
1396
+ class="pf-c-select__menu-group-title"
1397
+ id="group-2"
2264
1398
  >
2265
- <path
2266
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
2267
- />
2268
- </svg>
2269
- </span>
2270
- </button>
2271
- <div
2272
- class="pf-c-select__menu"
2273
- >
2274
- testing custom
1399
+ group 2
1400
+ </div>
1401
+ <ul
1402
+ role="listbox"
1403
+ >
1404
+ <li
1405
+ class="pf-c-select__menu-wrapper pf-m-favorite"
1406
+ id="option-1"
1407
+ role="presentation"
1408
+ >
1409
+ <button
1410
+ class="pf-c-select__menu-item pf-m-link"
1411
+ role="option"
1412
+ type="button"
1413
+ >
1414
+ Mr
1415
+ </button>
1416
+ <button
1417
+ aria-label="starred"
1418
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1419
+ >
1420
+ <span
1421
+ class="pf-c-select__menu-item-action-icon"
1422
+ >
1423
+ <svg
1424
+ aria-hidden="true"
1425
+ fill="currentColor"
1426
+ height="1em"
1427
+ role="img"
1428
+ style="vertical-align: -0.125em;"
1429
+ viewBox="0 0 576 512"
1430
+ width="1em"
1431
+ >
1432
+ <path
1433
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1434
+ />
1435
+ </svg>
1436
+ </span>
1437
+ </button>
1438
+ </li>
1439
+ <li
1440
+ class="pf-c-select__menu-wrapper"
1441
+ id="option-2"
1442
+ role="presentation"
1443
+ >
1444
+ <button
1445
+ class="pf-c-select__menu-item pf-m-link"
1446
+ role="option"
1447
+ type="button"
1448
+ >
1449
+ Mrs
1450
+ </button>
1451
+ <button
1452
+ aria-label="not starred"
1453
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1454
+ >
1455
+ <span
1456
+ class="pf-c-select__menu-item-action-icon"
1457
+ >
1458
+ <svg
1459
+ aria-hidden="true"
1460
+ fill="currentColor"
1461
+ height="1em"
1462
+ role="img"
1463
+ style="vertical-align: -0.125em;"
1464
+ viewBox="0 0 576 512"
1465
+ width="1em"
1466
+ >
1467
+ <path
1468
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1469
+ />
1470
+ </svg>
1471
+ </span>
1472
+ </button>
1473
+ </li>
1474
+ <li
1475
+ class="pf-c-select__menu-wrapper"
1476
+ id="option-2"
1477
+ role="presentation"
1478
+ >
1479
+ <button
1480
+ class="pf-c-select__menu-item pf-m-link"
1481
+ role="option"
1482
+ type="button"
1483
+ >
1484
+ Ms
1485
+ </button>
1486
+ <button
1487
+ aria-label="not starred"
1488
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1489
+ >
1490
+ <span
1491
+ class="pf-c-select__menu-item-action-icon"
1492
+ >
1493
+ <svg
1494
+ aria-hidden="true"
1495
+ fill="currentColor"
1496
+ height="1em"
1497
+ role="img"
1498
+ style="vertical-align: -0.125em;"
1499
+ viewBox="0 0 576 512"
1500
+ width="1em"
1501
+ >
1502
+ <path
1503
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1504
+ />
1505
+ </svg>
1506
+ </span>
1507
+ </button>
1508
+ </li>
1509
+ <li
1510
+ class="pf-c-select__menu-wrapper"
1511
+ id="option-4"
1512
+ role="presentation"
1513
+ >
1514
+ <button
1515
+ class="pf-c-select__menu-item pf-m-link"
1516
+ role="option"
1517
+ type="button"
1518
+ >
1519
+ Other
1520
+ </button>
1521
+ <button
1522
+ aria-label="not starred"
1523
+ class="pf-c-select__menu-item pf-m-action pf-m-favorite-action"
1524
+ >
1525
+ <span
1526
+ class="pf-c-select__menu-item-action-icon"
1527
+ >
1528
+ <svg
1529
+ aria-hidden="true"
1530
+ fill="currentColor"
1531
+ height="1em"
1532
+ role="img"
1533
+ style="vertical-align: -0.125em;"
1534
+ viewBox="0 0 576 512"
1535
+ width="1em"
1536
+ >
1537
+ <path
1538
+ d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"
1539
+ />
1540
+ </svg>
1541
+ </span>
1542
+ </button>
1543
+ </li>
1544
+ </ul>
1545
+ </div>
2275
1546
  </div>
2276
1547
  </div>
2277
- </div>
2278
- `;
2279
-
2280
- exports[`select with placeholder applies the placeholder class when not selected 1`] = `
2281
- <button
2282
- aria-expanded={false}
2283
- aria-haspopup="listbox"
2284
- aria-label="Options menu"
2285
- aria-labelledby=" pf-select-toggle-id-18"
2286
- className="pf-c-select__toggle pf-m-placeholder"
2287
- disabled={false}
2288
- id="pf-select-toggle-id-18"
2289
- onClick={[Function]}
2290
- onKeyDown={[Function]}
2291
- type="button"
2292
- >
2293
- <div
2294
- className="pf-c-select__toggle-wrapper"
2295
- >
2296
- <span
2297
- className="pf-c-select__toggle-text"
2298
- />
2299
- </div>
2300
- <span
2301
- className="pf-c-select__toggle-arrow"
2302
- >
2303
- <CaretDownIcon
2304
- color="currentColor"
2305
- noVerticalAlign={false}
2306
- size="sm"
2307
- >
2308
- <svg
2309
- aria-hidden={true}
2310
- aria-labelledby={null}
2311
- fill="currentColor"
2312
- height="1em"
2313
- role="img"
2314
- style={
2315
- Object {
2316
- "verticalAlign": "-0.125em",
2317
- }
2318
- }
2319
- viewBox="0 0 320 512"
2320
- width="1em"
2321
- >
2322
- <path
2323
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
2324
- />
2325
- </svg>
2326
- </CaretDownIcon>
2327
- </span>
2328
- </button>
2329
- `;
2330
-
2331
- exports[`toggle icon select checkbox 1`] = `
2332
- <span
2333
- className="pf-c-select__toggle-icon"
2334
- >
2335
- <div>
2336
- Icon
2337
- </div>
2338
- </span>
2339
- `;
2340
-
2341
- exports[`toggle icon select single 1`] = `
2342
- <span
2343
- className="pf-c-select__toggle-icon"
2344
- >
2345
- <div>
2346
- Icon
2347
- </div>
2348
- </span>
2349
- `;
2350
-
2351
- exports[`toggle icon typeahead multi select 1`] = `
2352
- <span
2353
- className="pf-c-select__toggle-icon"
2354
- >
2355
- <div>
2356
- Icon
2357
- </div>
2358
- </span>
2359
- `;
2360
-
2361
- exports[`toggle icon typeahead select 1`] = `
2362
- <span
2363
- className="pf-c-select__toggle-icon"
2364
- >
2365
- <div>
2366
- Icon
2367
- </div>
2368
- </span>
1548
+ </DocumentFragment>
2369
1549
  `;
2370
1550
 
2371
1551
  exports[`typeahead multi select renders closed successfully 1`] = `
2372
- <div>
1552
+ <DocumentFragment>
2373
1553
  <div
2374
1554
  class="pf-c-select"
2375
- data-ouia-component-id="OUIA-Generated-Select-typeaheadmulti-1"
1555
+ data-ouia-component-id="test-id"
2376
1556
  data-ouia-component-type="PF4/Select"
2377
1557
  data-ouia-safe="true"
2378
1558
  >
@@ -2420,14 +1600,14 @@ exports[`typeahead multi select renders closed successfully 1`] = `
2420
1600
  </button>
2421
1601
  </div>
2422
1602
  </div>
2423
- </div>
1603
+ </DocumentFragment>
2424
1604
  `;
2425
1605
 
2426
1606
  exports[`typeahead multi select renders expanded successfully 1`] = `
2427
- <div>
1607
+ <DocumentFragment>
2428
1608
  <div
2429
1609
  class="pf-c-select pf-m-expanded"
2430
- data-ouia-component-id="OUIA-Generated-Select-typeaheadmulti-2"
1610
+ data-ouia-component-id="test-id"
2431
1611
  data-ouia-component-type="PF4/Select"
2432
1612
  data-ouia-safe="true"
2433
1613
  >
@@ -2442,7 +1622,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
2442
1622
  aria-label=""
2443
1623
  autocomplete="off"
2444
1624
  class="pf-c-form-control pf-c-select__toggle-typeahead"
2445
- id="pf-select-toggle-id-13-select-multi-typeahead-typeahead"
1625
+ id="pf-select-toggle-id-17-select-multi-typeahead-typeahead"
2446
1626
  placeholder=""
2447
1627
  type="text"
2448
1628
  value=""
@@ -2452,9 +1632,9 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
2452
1632
  aria-expanded="true"
2453
1633
  aria-haspopup="listbox"
2454
1634
  aria-label="Options menu"
2455
- aria-labelledby=" pf-select-toggle-id-13"
1635
+ aria-labelledby=" pf-select-toggle-id-17"
2456
1636
  class="pf-c-button pf-c-select__toggle-button pf-m-plain"
2457
- id="pf-select-toggle-id-13"
1637
+ id="pf-select-toggle-id-17"
2458
1638
  tabindex="-1"
2459
1639
  type="button"
2460
1640
  >
@@ -2533,14 +1713,14 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
2533
1713
  </li>
2534
1714
  </ul>
2535
1715
  </div>
2536
- </div>
1716
+ </DocumentFragment>
2537
1717
  `;
2538
1718
 
2539
1719
  exports[`typeahead multi select renders selected successfully 1`] = `
2540
- <div>
1720
+ <DocumentFragment>
2541
1721
  <div
2542
1722
  class="pf-c-select pf-m-expanded"
2543
- data-ouia-component-id="OUIA-Generated-Select-typeaheadmulti-3"
1723
+ data-ouia-component-id="test-id"
2544
1724
  data-ouia-component-type="PF4/Select"
2545
1725
  data-ouia-safe="true"
2546
1726
  >
@@ -2560,7 +1740,6 @@ exports[`typeahead multi select renders selected successfully 1`] = `
2560
1740
  <div
2561
1741
  class="pf-c-chip-group__main"
2562
1742
  >
2563
-
2564
1743
  <ul
2565
1744
  aria-label="Chip group category"
2566
1745
  class="pf-c-chip-group__list"
@@ -2577,19 +1756,19 @@ exports[`typeahead multi select renders selected successfully 1`] = `
2577
1756
  >
2578
1757
  <span
2579
1758
  class="pf-c-chip__text"
2580
- id="pf-random-id-24"
1759
+ id="pf-random-id-23"
2581
1760
  >
2582
1761
  Mr
2583
1762
  </span>
2584
1763
  <button
2585
1764
  aria-disabled="false"
2586
1765
  aria-label="Remove"
2587
- aria-labelledby="remove_pf-random-id-24 pf-random-id-24"
1766
+ aria-labelledby="remove_pf-random-id-23 pf-random-id-23"
2588
1767
  class="pf-c-button pf-m-plain"
2589
1768
  data-ouia-component-id="Remove"
2590
1769
  data-ouia-component-type="PF4/Button"
2591
1770
  data-ouia-safe="true"
2592
- id="remove_pf-random-id-24"
1771
+ id="remove_pf-random-id-23"
2593
1772
  type="button"
2594
1773
  >
2595
1774
  <svg
@@ -2619,19 +1798,19 @@ exports[`typeahead multi select renders selected successfully 1`] = `
2619
1798
  >
2620
1799
  <span
2621
1800
  class="pf-c-chip__text"
2622
- id="pf-random-id-25"
1801
+ id="pf-random-id-24"
2623
1802
  >
2624
1803
  Mrs
2625
1804
  </span>
2626
1805
  <button
2627
1806
  aria-disabled="false"
2628
1807
  aria-label="Remove"
2629
- aria-labelledby="remove_pf-random-id-25 pf-random-id-25"
1808
+ aria-labelledby="remove_pf-random-id-24 pf-random-id-24"
2630
1809
  class="pf-c-button pf-m-plain"
2631
1810
  data-ouia-component-id="Remove"
2632
1811
  data-ouia-component-type="PF4/Button"
2633
1812
  data-ouia-safe="true"
2634
- id="remove_pf-random-id-25"
1813
+ id="remove_pf-random-id-24"
2635
1814
  type="button"
2636
1815
  >
2637
1816
  <svg
@@ -2785,14 +1964,14 @@ exports[`typeahead multi select renders selected successfully 1`] = `
2785
1964
  </li>
2786
1965
  </ul>
2787
1966
  </div>
2788
- </div>
1967
+ </DocumentFragment>
2789
1968
  `;
2790
1969
 
2791
1970
  exports[`typeahead select renders closed successfully 1`] = `
2792
- <div>
1971
+ <DocumentFragment>
2793
1972
  <div
2794
1973
  class="pf-c-select"
2795
- data-ouia-component-id="OUIA-Generated-Select-typeahead-2"
1974
+ data-ouia-component-id="test-id"
2796
1975
  data-ouia-component-type="PF4/Select"
2797
1976
  data-ouia-safe="true"
2798
1977
  >
@@ -2839,14 +2018,14 @@ exports[`typeahead select renders closed successfully 1`] = `
2839
2018
  </button>
2840
2019
  </div>
2841
2020
  </div>
2842
- </div>
2021
+ </DocumentFragment>
2843
2022
  `;
2844
2023
 
2845
2024
  exports[`typeahead select renders expanded successfully 1`] = `
2846
- <div>
2025
+ <DocumentFragment>
2847
2026
  <div
2848
2027
  class="pf-c-select pf-m-expanded"
2849
- data-ouia-component-id="OUIA-Generated-Select-typeahead-3"
2028
+ data-ouia-component-id="test-id"
2850
2029
  data-ouia-component-type="PF4/Select"
2851
2030
  data-ouia-safe="true"
2852
2031
  >
@@ -2860,7 +2039,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
2860
2039
  aria-label=""
2861
2040
  autocomplete="off"
2862
2041
  class="pf-c-form-control pf-c-select__toggle-typeahead"
2863
- id="pf-select-toggle-id-8-select-typeahead"
2042
+ id="pf-select-toggle-id-7-select-typeahead"
2864
2043
  placeholder=""
2865
2044
  type="text"
2866
2045
  value=""
@@ -2870,9 +2049,9 @@ exports[`typeahead select renders expanded successfully 1`] = `
2870
2049
  aria-expanded="true"
2871
2050
  aria-haspopup="listbox"
2872
2051
  aria-label="Options menu"
2873
- aria-labelledby=" pf-select-toggle-id-8"
2052
+ aria-labelledby=" pf-select-toggle-id-7"
2874
2053
  class="pf-c-button pf-c-select__toggle-button pf-m-plain"
2875
- id="pf-select-toggle-id-8"
2054
+ id="pf-select-toggle-id-7"
2876
2055
  tabindex="-1"
2877
2056
  type="button"
2878
2057
  >
@@ -2951,14 +2130,14 @@ exports[`typeahead select renders expanded successfully 1`] = `
2951
2130
  </li>
2952
2131
  </ul>
2953
2132
  </div>
2954
- </div>
2133
+ </DocumentFragment>
2955
2134
  `;
2956
2135
 
2957
2136
  exports[`typeahead select renders selected successfully 1`] = `
2958
- <div>
2137
+ <DocumentFragment>
2959
2138
  <div
2960
2139
  class="pf-c-select pf-m-expanded"
2961
- data-ouia-component-id="OUIA-Generated-Select-typeahead-4"
2140
+ data-ouia-component-id="test-id"
2962
2141
  data-ouia-component-type="PF4/Select"
2963
2142
  data-ouia-safe="true"
2964
2143
  >
@@ -2972,7 +2151,7 @@ exports[`typeahead select renders selected successfully 1`] = `
2972
2151
  aria-label=""
2973
2152
  autocomplete="off"
2974
2153
  class="pf-c-form-control pf-c-select__toggle-typeahead"
2975
- id="pf-select-toggle-id-9-select-typeahead"
2154
+ id="pf-select-toggle-id-8-select-typeahead"
2976
2155
  placeholder=""
2977
2156
  type="text"
2978
2157
  value="Mr"
@@ -2982,9 +2161,9 @@ exports[`typeahead select renders selected successfully 1`] = `
2982
2161
  aria-expanded="true"
2983
2162
  aria-haspopup="listbox"
2984
2163
  aria-label="Options menu"
2985
- aria-labelledby=" pf-select-toggle-id-9"
2164
+ aria-labelledby=" pf-select-toggle-id-8"
2986
2165
  class="pf-c-button pf-c-select__toggle-button pf-m-plain"
2987
- id="pf-select-toggle-id-9"
2166
+ id="pf-select-toggle-id-8"
2988
2167
  tabindex="-1"
2989
2168
  type="button"
2990
2169
  >
@@ -3081,355 +2260,5 @@ exports[`typeahead select renders selected successfully 1`] = `
3081
2260
  </li>
3082
2261
  </ul>
3083
2262
  </div>
3084
- </div>
3085
- `;
3086
-
3087
- exports[`typeahead select test select existing option on a non-creatable select 1`] = `
3088
- <Select
3089
- aria-describedby=""
3090
- aria-invalid={false}
3091
- aria-label=""
3092
- aria-labelledby=""
3093
- chipGroupComponent={null}
3094
- className=""
3095
- clearSelectionsAriaLabel="Clear all"
3096
- createText="Create"
3097
- customBadgeText={null}
3098
- customContent={null}
3099
- direction="down"
3100
- favorites={Array []}
3101
- favoritesLabel="Favorites"
3102
- hasInlineFilter={false}
3103
- hasPlaceholderStyle={false}
3104
- inlineFilterPlaceholderText={null}
3105
- inputAutoComplete="off"
3106
- inputIdPrefix=""
3107
- isCreatable={false}
3108
- isCreateSelectOptionObject={false}
3109
- isDisabled={false}
3110
- isGrouped={false}
3111
- isInputFilterPersisted={false}
3112
- isInputValuePersisted={false}
3113
- isOpen={true}
3114
- isPlain={false}
3115
- menuAppendTo="inline"
3116
- noResultsFoundText="No results found"
3117
- onClear={[Function]}
3118
- onCreateOption={[Function]}
3119
- onFilter={null}
3120
- onToggle={[MockFunction]}
3121
- onTypeaheadInputChanged={null}
3122
- ouiaSafe={true}
3123
- placeholderText=""
3124
- position="left"
3125
- removeSelectionAriaLabel="Remove"
3126
- selections={Array []}
3127
- shouldResetOnSelect={true}
3128
- toggleAriaLabel="Options menu"
3129
- toggleIcon={null}
3130
- toggleId={null}
3131
- typeAheadAriaLabel=""
3132
- validated="default"
3133
- variant="typeahead"
3134
- width=""
3135
- >
3136
- <GenerateId
3137
- prefix="pf-random-id-"
3138
- >
3139
- <div
3140
- className="pf-c-select pf-m-expanded"
3141
- data-ouia-component-id="OUIA-Generated-Select-typeahead-5"
3142
- data-ouia-component-type="PF4/Select"
3143
- data-ouia-safe={true}
3144
- >
3145
- <SelectToggle
3146
- aria-label="Options menu"
3147
- aria-labelledby=" pf-select-toggle-id-12"
3148
- className=""
3149
- handleTypeaheadKeys={[Function]}
3150
- hasClearButton={false}
3151
- hasFooter={false}
3152
- hasPlaceholderStyle={false}
3153
- id="pf-select-toggle-id-12"
3154
- isActive={false}
3155
- isDisabled={false}
3156
- isOpen={true}
3157
- isPlain={false}
3158
- menuRef={
3159
- Object {
3160
- "current": <ul
3161
- aria-label=""
3162
- class="pf-c-select__menu"
3163
- role="listbox"
3164
- >
3165
- <li
3166
- class="pf-c-select__menu-wrapper"
3167
- id="option-4"
3168
- role="presentation"
3169
- >
3170
- <button
3171
- class="pf-c-select__menu-item"
3172
- role="option"
3173
- type="button"
3174
- >
3175
- Other
3176
- </button>
3177
- </li>
3178
- </ul>,
3179
- }
3180
- }
3181
- moveFocusToLastMenuItem={[Function]}
3182
- onClickTypeaheadToggleButton={[Function]}
3183
- onClose={[Function]}
3184
- onEnter={[Function]}
3185
- onToggle={[Function]}
3186
- parentRef={
3187
- Object {
3188
- "current": <div
3189
- class="pf-c-select pf-m-expanded"
3190
- data-ouia-component-id="OUIA-Generated-Select-typeahead-5"
3191
- data-ouia-component-type="PF4/Select"
3192
- data-ouia-safe="true"
3193
- >
3194
- <div
3195
- class="pf-c-select__toggle pf-m-typeahead"
3196
- >
3197
- <div
3198
- class="pf-c-select__toggle-wrapper"
3199
- >
3200
- <input
3201
- aria-label=""
3202
- autocomplete="off"
3203
- class="pf-c-form-control pf-c-select__toggle-typeahead"
3204
- id="pf-select-toggle-id-12-select-typeahead"
3205
- placeholder=""
3206
- type="text"
3207
- value="Oth"
3208
- />
3209
- </div>
3210
- <button
3211
- aria-expanded="true"
3212
- aria-haspopup="listbox"
3213
- aria-label="Options menu"
3214
- aria-labelledby=" pf-select-toggle-id-12"
3215
- class="pf-c-button pf-c-select__toggle-button pf-m-plain"
3216
- id="pf-select-toggle-id-12"
3217
- tabindex="-1"
3218
- type="button"
3219
- >
3220
- <svg
3221
- aria-hidden="true"
3222
- class="pf-c-select__toggle-arrow"
3223
- fill="currentColor"
3224
- height="1em"
3225
- role="img"
3226
- style="vertical-align: -0.125em;"
3227
- viewBox="0 0 320 512"
3228
- width="1em"
3229
- >
3230
- <path
3231
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
3232
- />
3233
- </svg>
3234
- </button>
3235
- </div>
3236
- <ul
3237
- aria-label=""
3238
- class="pf-c-select__menu"
3239
- role="listbox"
3240
- >
3241
- <li
3242
- class="pf-c-select__menu-wrapper"
3243
- id="option-4"
3244
- role="presentation"
3245
- >
3246
- <button
3247
- class="pf-c-select__menu-item"
3248
- role="option"
3249
- type="button"
3250
- >
3251
- Other
3252
- </button>
3253
- </li>
3254
- </ul>
3255
- </div>,
3256
- }
3257
- }
3258
- type="button"
3259
- variant="typeahead"
3260
- >
3261
- <div
3262
- className="pf-c-select__toggle pf-m-typeahead"
3263
- onClick={[Function]}
3264
- onKeyDown={[Function]}
3265
- >
3266
- <div
3267
- className="pf-c-select__toggle-wrapper"
3268
- >
3269
- <input
3270
- aria-activedescendant={null}
3271
- aria-label=""
3272
- autoComplete="off"
3273
- className="pf-c-form-control pf-c-select__toggle-typeahead"
3274
- disabled={false}
3275
- id="pf-select-toggle-id-12-select-typeahead"
3276
- onChange={[Function]}
3277
- onClick={[Function]}
3278
- placeholder=""
3279
- type="text"
3280
- value="Oth"
3281
- />
3282
- </div>
3283
- <button
3284
- aria-expanded={true}
3285
- aria-haspopup="listbox"
3286
- aria-label="Options menu"
3287
- aria-labelledby=" pf-select-toggle-id-12"
3288
- className="pf-c-button pf-c-select__toggle-button pf-m-plain"
3289
- disabled={false}
3290
- id="pf-select-toggle-id-12"
3291
- onClick={[Function]}
3292
- tabIndex={-1}
3293
- type="button"
3294
- >
3295
- <CaretDownIcon
3296
- className="pf-c-select__toggle-arrow"
3297
- color="currentColor"
3298
- noVerticalAlign={false}
3299
- size="sm"
3300
- >
3301
- <svg
3302
- aria-hidden={true}
3303
- aria-labelledby={null}
3304
- className="pf-c-select__toggle-arrow"
3305
- fill="currentColor"
3306
- height="1em"
3307
- role="img"
3308
- style={
3309
- Object {
3310
- "verticalAlign": "-0.125em",
3311
- }
3312
- }
3313
- viewBox="0 0 320 512"
3314
- width="1em"
3315
- >
3316
- <path
3317
- d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
3318
- />
3319
- </svg>
3320
- </CaretDownIcon>
3321
- </button>
3322
- </div>
3323
- </SelectToggle>
3324
- <ForwardRef
3325
- aria-label=""
3326
- aria-labelledby=""
3327
- footerRef={
3328
- Object {
3329
- "current": null,
3330
- }
3331
- }
3332
- isGrouped={false}
3333
- isLastOptionBeforeFooter={[Function]}
3334
- keyHandler={[Function]}
3335
- openedOnEnter={false}
3336
- position="left"
3337
- sendRef={[Function]}
3338
- >
3339
- <SelectMenu
3340
- aria-label=""
3341
- aria-labelledby=""
3342
- className=""
3343
- footerRef={
3344
- Object {
3345
- "current": null,
3346
- }
3347
- }
3348
- hasInlineFilter={false}
3349
- innerRef={
3350
- Object {
3351
- "current": <ul
3352
- aria-label=""
3353
- class="pf-c-select__menu"
3354
- role="listbox"
3355
- >
3356
- <li
3357
- class="pf-c-select__menu-wrapper"
3358
- id="option-4"
3359
- role="presentation"
3360
- >
3361
- <button
3362
- class="pf-c-select__menu-item"
3363
- role="option"
3364
- type="button"
3365
- >
3366
- Other
3367
- </button>
3368
- </li>
3369
- </ul>,
3370
- }
3371
- }
3372
- isCustomContent={false}
3373
- isExpanded={false}
3374
- isGrouped={false}
3375
- isLastOptionBeforeFooter={[Function]}
3376
- keyHandler={[Function]}
3377
- maxHeight=""
3378
- openedOnEnter={false}
3379
- position="left"
3380
- selected=""
3381
- sendRef={[Function]}
3382
- >
3383
- <ul
3384
- aria-label=""
3385
- aria-labelledby={null}
3386
- className="pf-c-select__menu"
3387
- role="listbox"
3388
- >
3389
- <SelectOption
3390
- className=""
3391
- component="button"
3392
- id="option-4"
3393
- index={0}
3394
- inputId="pf-random-id-19-0"
3395
- isChecked={false}
3396
- isDisabled={false}
3397
- isFavorite={null}
3398
- isFocused={false}
3399
- isLastOptionBeforeFooter={[Function]}
3400
- isLoad={false}
3401
- isLoading={false}
3402
- isNoResultsOption={false}
3403
- isPlaceholder={false}
3404
- isSelected={false}
3405
- key=".$.$03"
3406
- keyHandler={[Function]}
3407
- onClick={[Function]}
3408
- sendRef={[Function]}
3409
- setViewMoreNextIndex={[Function]}
3410
- value="Other"
3411
- >
3412
- <li
3413
- className="pf-c-select__menu-wrapper"
3414
- id="option-4"
3415
- role="presentation"
3416
- >
3417
- <button
3418
- aria-selected={null}
3419
- className="pf-c-select__menu-item"
3420
- onClick={[Function]}
3421
- onKeyDown={[Function]}
3422
- role="option"
3423
- type="button"
3424
- >
3425
- Other
3426
- </button>
3427
- </li>
3428
- </SelectOption>
3429
- </ul>
3430
- </SelectMenu>
3431
- </ForwardRef>
3432
- </div>
3433
- </GenerateId>
3434
- </Select>
2263
+ </DocumentFragment>
3435
2264
  `;