@patternfly/react-core 5.2.0-prerelease.30 → 5.2.0-prerelease.32

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