@patternfly/react-core 4.225.0 → 4.225.3

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 (168) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/esm/components/Alert/Alert.js +2 -2
  4. package/dist/esm/components/Alert/Alert.js.map +1 -1
  5. package/dist/esm/components/DualListSelector/DualListSelector.d.ts +3 -0
  6. package/dist/esm/components/DualListSelector/DualListSelector.d.ts.map +1 -1
  7. package/dist/esm/components/DualListSelector/DualListSelector.js.map +1 -1
  8. package/dist/esm/components/DualListSelector/DualListSelectorControl.d.ts +3 -0
  9. package/dist/esm/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
  10. package/dist/esm/components/DualListSelector/DualListSelectorControl.js.map +1 -1
  11. package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.d.ts +1 -0
  12. package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.d.ts.map +1 -1
  13. package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js.map +1 -1
  14. package/dist/esm/components/DualListSelector/DualListSelectorList.d.ts +1 -0
  15. package/dist/esm/components/DualListSelector/DualListSelectorList.d.ts.map +1 -1
  16. package/dist/esm/components/DualListSelector/DualListSelectorList.js.map +1 -1
  17. package/dist/esm/components/DualListSelector/DualListSelectorListItem.d.ts +3 -0
  18. package/dist/esm/components/DualListSelector/DualListSelectorListItem.d.ts.map +1 -1
  19. package/dist/esm/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
  20. package/dist/esm/components/DualListSelector/DualListSelectorPane.d.ts +4 -0
  21. package/dist/esm/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
  22. package/dist/esm/components/DualListSelector/DualListSelectorPane.js.map +1 -1
  23. package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts +3 -0
  24. package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
  25. package/dist/esm/components/DualListSelector/DualListSelectorTree.js.map +1 -1
  26. package/dist/esm/components/Menu/MenuGroup.d.ts +3 -1
  27. package/dist/esm/components/Menu/MenuGroup.d.ts.map +1 -1
  28. package/dist/esm/components/Menu/MenuGroup.js +2 -2
  29. package/dist/esm/components/Menu/MenuGroup.js.map +1 -1
  30. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.d.ts +4 -0
  31. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.d.ts.map +1 -1
  32. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.js.map +1 -1
  33. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadMain.d.ts +3 -0
  34. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadMain.d.ts.map +1 -1
  35. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadMain.js.map +1 -1
  36. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.d.ts +5 -0
  37. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.d.ts.map +1 -1
  38. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  39. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts +4 -0
  40. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  41. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  42. package/dist/esm/components/Nav/Nav.d.ts +1 -1
  43. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  44. package/dist/esm/components/OptionsMenu/OptionsMenuItemGroup.js +2 -2
  45. package/dist/esm/components/OptionsMenu/OptionsMenuItemGroup.js.map +1 -1
  46. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
  47. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js +4 -3
  48. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  49. package/dist/esm/components/Page/PageHeader.d.ts +2 -0
  50. package/dist/esm/components/Page/PageHeader.d.ts.map +1 -1
  51. package/dist/esm/components/Page/PageHeader.js +2 -2
  52. package/dist/esm/components/Page/PageHeader.js.map +1 -1
  53. package/dist/esm/components/Page/PageSidebar.d.ts +2 -0
  54. package/dist/esm/components/Page/PageSidebar.d.ts.map +1 -1
  55. package/dist/esm/components/Page/PageSidebar.js +3 -3
  56. package/dist/esm/components/Page/PageSidebar.js.map +1 -1
  57. package/dist/esm/components/Page/PageToggleButton.d.ts +2 -0
  58. package/dist/esm/components/Page/PageToggleButton.d.ts.map +1 -1
  59. package/dist/esm/components/Page/PageToggleButton.js +2 -2
  60. package/dist/esm/components/Page/PageToggleButton.js.map +1 -1
  61. package/dist/esm/components/Tabs/TabContent.d.ts.map +1 -1
  62. package/dist/esm/components/Tabs/TabContent.js +4 -2
  63. package/dist/esm/components/Tabs/TabContent.js.map +1 -1
  64. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  65. package/dist/js/components/Alert/Alert.js +2 -2
  66. package/dist/js/components/Alert/Alert.js.map +1 -1
  67. package/dist/js/components/DualListSelector/DualListSelector.d.ts +3 -0
  68. package/dist/js/components/DualListSelector/DualListSelector.d.ts.map +1 -1
  69. package/dist/js/components/DualListSelector/DualListSelector.js.map +1 -1
  70. package/dist/js/components/DualListSelector/DualListSelectorControl.d.ts +3 -0
  71. package/dist/js/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
  72. package/dist/js/components/DualListSelector/DualListSelectorControl.js.map +1 -1
  73. package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.d.ts +1 -0
  74. package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.d.ts.map +1 -1
  75. package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.js.map +1 -1
  76. package/dist/js/components/DualListSelector/DualListSelectorList.d.ts +1 -0
  77. package/dist/js/components/DualListSelector/DualListSelectorList.d.ts.map +1 -1
  78. package/dist/js/components/DualListSelector/DualListSelectorList.js.map +1 -1
  79. package/dist/js/components/DualListSelector/DualListSelectorListItem.d.ts +3 -0
  80. package/dist/js/components/DualListSelector/DualListSelectorListItem.d.ts.map +1 -1
  81. package/dist/js/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
  82. package/dist/js/components/DualListSelector/DualListSelectorPane.d.ts +4 -0
  83. package/dist/js/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
  84. package/dist/js/components/DualListSelector/DualListSelectorPane.js.map +1 -1
  85. package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts +3 -0
  86. package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
  87. package/dist/js/components/DualListSelector/DualListSelectorTree.js.map +1 -1
  88. package/dist/js/components/Menu/MenuGroup.d.ts +3 -1
  89. package/dist/js/components/Menu/MenuGroup.d.ts.map +1 -1
  90. package/dist/js/components/Menu/MenuGroup.js +2 -2
  91. package/dist/js/components/Menu/MenuGroup.js.map +1 -1
  92. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.d.ts +4 -0
  93. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.d.ts.map +1 -1
  94. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.js.map +1 -1
  95. package/dist/js/components/MultipleFileUpload/MultipleFileUploadMain.d.ts +3 -0
  96. package/dist/js/components/MultipleFileUpload/MultipleFileUploadMain.d.ts.map +1 -1
  97. package/dist/js/components/MultipleFileUpload/MultipleFileUploadMain.js.map +1 -1
  98. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.d.ts +5 -0
  99. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.d.ts.map +1 -1
  100. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  101. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts +4 -0
  102. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  103. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  104. package/dist/js/components/Nav/Nav.d.ts +1 -1
  105. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  106. package/dist/js/components/OptionsMenu/OptionsMenuItemGroup.js +2 -2
  107. package/dist/js/components/OptionsMenu/OptionsMenuItemGroup.js.map +1 -1
  108. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
  109. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js +4 -3
  110. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  111. package/dist/js/components/Page/PageHeader.d.ts +2 -0
  112. package/dist/js/components/Page/PageHeader.d.ts.map +1 -1
  113. package/dist/js/components/Page/PageHeader.js +2 -2
  114. package/dist/js/components/Page/PageHeader.js.map +1 -1
  115. package/dist/js/components/Page/PageSidebar.d.ts +2 -0
  116. package/dist/js/components/Page/PageSidebar.d.ts.map +1 -1
  117. package/dist/js/components/Page/PageSidebar.js +3 -3
  118. package/dist/js/components/Page/PageSidebar.js.map +1 -1
  119. package/dist/js/components/Page/PageToggleButton.d.ts +2 -0
  120. package/dist/js/components/Page/PageToggleButton.d.ts.map +1 -1
  121. package/dist/js/components/Page/PageToggleButton.js +2 -2
  122. package/dist/js/components/Page/PageToggleButton.js.map +1 -1
  123. package/dist/js/components/Tabs/TabContent.d.ts.map +1 -1
  124. package/dist/js/components/Tabs/TabContent.js +4 -2
  125. package/dist/js/components/Tabs/TabContent.js.map +1 -1
  126. package/dist/umd/react-core.js +20 -18
  127. package/dist/umd/react-core.min.js +2 -2
  128. package/package.json +5 -5
  129. package/src/components/Alert/Alert.tsx +0 -2
  130. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +0 -35
  131. package/src/components/DualListSelector/DualListSelector.tsx +4 -0
  132. package/src/components/DualListSelector/DualListSelectorControl.tsx +4 -0
  133. package/src/components/DualListSelector/DualListSelectorControlsWrapper.tsx +2 -0
  134. package/src/components/DualListSelector/DualListSelectorList.tsx +2 -0
  135. package/src/components/DualListSelector/DualListSelectorListItem.tsx +4 -0
  136. package/src/components/DualListSelector/DualListSelectorPane.tsx +5 -0
  137. package/src/components/DualListSelector/DualListSelectorTree.tsx +4 -0
  138. package/src/components/DualListSelector/examples/DualListSelector.md +9 -7
  139. package/src/components/Masthead/examples/Masthead.md +3 -3
  140. package/src/components/Menu/MenuGroup.tsx +5 -2
  141. package/src/components/Menu/examples/Menu.md +25 -25
  142. package/src/components/Menu/examples/MenuDrilldown.tsx +9 -9
  143. package/src/components/Menu/examples/MenuDrilldownInitialState.tsx +15 -12
  144. package/src/components/Menu/examples/MenuDrilldownSubmenuFunctions.tsx +9 -9
  145. package/src/components/MultipleFileUpload/MultipleFileUpload.tsx +5 -0
  146. package/src/components/MultipleFileUpload/MultipleFileUploadMain.tsx +3 -0
  147. package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +6 -0
  148. package/src/components/MultipleFileUpload/MultipleFileUploadStatusItem.tsx +5 -0
  149. package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +14 -6
  150. package/src/components/Nav/Nav.tsx +1 -1
  151. package/src/components/Nav/examples/Nav.md +57 -57
  152. package/src/components/Nav/examples/NavDrilldown.tsx +1 -1
  153. package/src/components/OptionsMenu/OptionsMenuItemGroup.tsx +2 -2
  154. package/src/components/OptionsMenu/OptionsMenuToggleWithText.tsx +29 -24
  155. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +2 -0
  156. package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +5 -1
  157. package/src/components/OptionsMenu/examples/OptionsMenu.md +11 -11
  158. package/src/components/Page/PageHeader.tsx +4 -1
  159. package/src/components/Page/PageSidebar.tsx +5 -2
  160. package/src/components/Page/PageToggleButton.tsx +4 -1
  161. package/src/components/Page/examples/Page.md +23 -17
  162. package/src/components/Page/examples/page.css +3 -0
  163. package/src/components/Select/examples/Select.md +10 -10
  164. package/src/components/Tabs/TabContent.tsx +2 -1
  165. package/src/components/Tabs/examples/Tabs.md +139 -143
  166. package/src/components/Tabs/examples/TabsDynamic.tsx +1 -0
  167. package/src/components/ToggleGroup/examples/ToggleGroup.md +16 -16
  168. package/src/components/TreeView/examples/TreeView.md +165 -165
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  id: Tree view
3
3
  section: components
4
- cssPrefix: pf-c-treeview
4
+ cssPrefix: pf-c-tree-view
5
5
  propComponents: ['TreeView', 'TreeViewDataItem', 'TreeViewSearch']
6
6
  beta: true
7
7
  ---
@@ -42,28 +42,28 @@ class DefaultTreeView extends React.Component {
42
42
  const options = [
43
43
  {
44
44
  name: 'Application launcher',
45
- id: 'AppLaunch',
45
+ id: 'example1-AppLaunch',
46
46
  children: [
47
47
  {
48
48
  name: 'Application 1',
49
- id: 'App1',
49
+ id: 'example1-App1',
50
50
  children: [
51
- { name: 'Settings', id: 'App1Settings' },
52
- { name: 'Current', id: 'App1Current' }
51
+ { name: 'Settings', id: 'example1-App1Settings' },
52
+ { name: 'Current', id: 'example1-App1Current' }
53
53
  ]
54
54
  },
55
55
  {
56
56
  name: 'Application 2',
57
- id: 'App2',
57
+ id: 'example1-App2',
58
58
  children: [
59
- { name: 'Settings', id: 'App2Settings' },
59
+ { name: 'Settings', id: 'example1-App2Settings' },
60
60
  {
61
61
  name: 'Loader',
62
- id: 'App2Loader',
62
+ id: 'example1-App2Loader',
63
63
  children: [
64
- { name: 'Loading App 1', id: 'LoadApp1' },
65
- { name: 'Loading App 2', id: 'LoadApp2' },
66
- { name: 'Loading App 3', id: 'LoadApp3' }
64
+ { name: 'Loading App 1', id: 'example1-LoadApp1' },
65
+ { name: 'Loading App 2', id: 'example1-LoadApp2' },
66
+ { name: 'Loading App 3', id: 'example1-LoadApp3' }
67
67
  ]
68
68
  }
69
69
  ]
@@ -73,27 +73,27 @@ class DefaultTreeView extends React.Component {
73
73
  },
74
74
  {
75
75
  name: 'Cost management',
76
- id: 'Cost',
76
+ id: 'example1-Cost',
77
77
  children: [
78
78
  {
79
79
  name: 'Application 3',
80
- id: 'App3',
80
+ id: 'example1-App3',
81
81
  children: [
82
- { name: 'Settings', id: 'App3Settings' },
83
- { name: 'Current', id: 'App3Current' }
82
+ { name: 'Settings', id: 'example1-App3Settings' },
83
+ { name: 'Current', id: 'example1-App3Current' }
84
84
  ]
85
85
  }
86
86
  ]
87
87
  },
88
88
  {
89
89
  name: 'Sources',
90
- id: 'Sources',
91
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
90
+ id: 'example1-Sources',
91
+ children: [{ name: 'Application 4', id: 'example1-App4', children: [{ name: 'Settings', id: 'example1-App4Settings' }] }]
92
92
  },
93
93
  {
94
94
  name: 'Really really really long folder name that overflows the container it is in',
95
- id: 'Long',
96
- children: [{ name: 'Application 5', id: 'App5' }]
95
+ id: 'example1-Long',
96
+ children: [{ name: 'Application 5', id: 'example1-App5' }]
97
97
  }
98
98
  ];
99
99
  return (
@@ -122,28 +122,28 @@ class SearchTreeView extends React.Component {
122
122
  this.options = [
123
123
  {
124
124
  name: 'Application launcher',
125
- id: 'AppLaunch',
125
+ id: 'example2-AppLaunch',
126
126
  children: [
127
127
  {
128
128
  name: 'Application 1',
129
- id: 'App1',
129
+ id: 'example2-App1',
130
130
  children: [
131
- { name: 'Settings', id: 'App1Settings' },
132
- { name: 'Current', id: 'App1Current' }
131
+ { name: 'Settings', id: 'example2-App1Settings' },
132
+ { name: 'Current', id: 'example2-App1Current' }
133
133
  ]
134
134
  },
135
135
  {
136
136
  name: 'Application 2',
137
- id: 'App2',
137
+ id: 'example2-App2',
138
138
  children: [
139
- { name: 'Settings', id: 'App2Settings' },
139
+ { name: 'Settings', id: 'example2-App2Settings' },
140
140
  {
141
141
  name: 'Loader',
142
- id: 'App2Loader',
142
+ id: 'example2-App2Loader',
143
143
  children: [
144
- { name: 'Loading App 1', id: 'LoadApp1' },
145
- { name: 'Loading App 2', id: 'LoadApp2' },
146
- { name: 'Loading App 3', id: 'LoadApp3' }
144
+ { name: 'Loading App 1', id: 'example2-LoadApp1' },
145
+ { name: 'Loading App 2', id: 'example2-LoadApp2' },
146
+ { name: 'Loading App 3', id: 'example2-LoadApp3' }
147
147
  ]
148
148
  }
149
149
  ]
@@ -153,27 +153,27 @@ class SearchTreeView extends React.Component {
153
153
  },
154
154
  {
155
155
  name: 'Cost management',
156
- id: 'Cost',
156
+ id: 'example2-Cost',
157
157
  children: [
158
158
  {
159
159
  name: 'Application 3',
160
- id: 'App3',
160
+ id: 'example2-App3',
161
161
  children: [
162
- { name: 'Settings', id: 'App3Settings' },
163
- { name: 'Current', id: 'App3Current' }
162
+ { name: 'Settings', id: 'example2-App3Settings' },
163
+ { name: 'Current', id: 'example2-App3Current' }
164
164
  ]
165
165
  }
166
166
  ]
167
167
  },
168
168
  {
169
169
  name: 'Sources',
170
- id: 'Sources',
171
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
170
+ id: 'example2-Sources',
171
+ children: [{ name: 'Application 4', id: 'example2-App4', children: [{ name: 'Settingexample2-s', id: 'example2-App4Settings' }] }]
172
172
  },
173
173
  {
174
174
  name: 'Really really really long folder name that overflows the container it is in',
175
- id: 'Long',
176
- children: [{ name: 'Application 5', id: 'App5' }]
175
+ id: 'example2-Long',
176
+ children: [{ name: 'Application 5', id: 'example2-App5' }]
177
177
  }
178
178
  ];
179
179
 
@@ -253,54 +253,54 @@ class CheckboxTreeView extends React.Component {
253
253
  this.options = [
254
254
  {
255
255
  name: 'Application launcher',
256
- id: 'AppLaunch',
256
+ id: 'example3-AppLaunch',
257
257
  checkProps: { 'aria-label': 'app-launcher-check', checked: false },
258
258
  children: [
259
259
  {
260
260
  name: 'Application 1',
261
- id: 'App1',
261
+ id: 'example3-App1',
262
262
  checkProps: { checked: false },
263
263
  children: [
264
264
  {
265
265
  name: 'Settings',
266
- id: 'App1Settings',
266
+ id: 'example3-App1Settings',
267
267
  checkProps: { checked: false }
268
268
  },
269
269
  {
270
270
  name: 'Current',
271
- id: 'App1Current',
271
+ id: 'example3-App1Current',
272
272
  checkProps: { checked: false }
273
273
  }
274
274
  ]
275
275
  },
276
276
  {
277
277
  name: 'Application 2',
278
- id: 'App2',
278
+ id: 'example3-App2',
279
279
  checkProps: { checked: false },
280
280
  children: [
281
281
  {
282
282
  name: 'Settings',
283
- id: 'App2Settings',
283
+ id: 'example3-App2Settings',
284
284
  checkProps: { checked: false }
285
285
  },
286
286
  {
287
287
  name: 'Loader',
288
- id: 'App2Loader',
288
+ id: 'example3-App2Loader',
289
289
  checkProps: { checked: false },
290
290
  children: [
291
291
  {
292
292
  name: 'Loading App 1',
293
- id: 'LoadApp1',
293
+ id: 'example3-LoadApp1',
294
294
  checkProps: { checked: false }
295
295
  },
296
296
  {
297
297
  name: 'Loading App 2',
298
- id: 'LoadApp2',
298
+ id: 'example3-LoadApp2',
299
299
  checkProps: { checked: false }
300
300
  },
301
301
  {
302
302
  name: 'Loading App 3',
303
- id: 'LoadApp3',
303
+ id: 'example3-LoadApp3',
304
304
  checkProps: { checked: false }
305
305
  }
306
306
  ]
@@ -312,22 +312,22 @@ class CheckboxTreeView extends React.Component {
312
312
  },
313
313
  {
314
314
  name: 'Cost management',
315
- id: 'Cost',
315
+ id: 'example3-Cost',
316
316
  checkProps: { 'aria-label': 'cost-check', checked: false },
317
317
  children: [
318
318
  {
319
319
  name: 'Application 3',
320
- id: 'App3',
320
+ id: 'example3-App3',
321
321
  checkProps: { 'aria-label': 'app-3-check', checked: false },
322
322
  children: [
323
323
  {
324
324
  name: 'Settings',
325
- id: 'App3Settings',
325
+ id: 'example3-App3Settings',
326
326
  checkProps: { 'aria-label': 'app-3-settings-check', checked: false }
327
327
  },
328
328
  {
329
329
  name: 'Current',
330
- id: 'App3Current',
330
+ id: 'example3-App3Current',
331
331
  checkProps: { 'aria-label': 'app-3-current-check', checked: false }
332
332
  }
333
333
  ]
@@ -336,17 +336,17 @@ class CheckboxTreeView extends React.Component {
336
336
  },
337
337
  {
338
338
  name: 'Sources',
339
- id: 'Sources',
339
+ id: 'example3-Sources',
340
340
  checkProps: { 'aria-label': 'sources-check', checked: false },
341
341
  children: [
342
342
  {
343
343
  name: 'Application 4',
344
- id: 'App4',
344
+ id: 'example3-App4',
345
345
  checkProps: { 'aria-label': 'app-4-check', checked: false },
346
346
  children: [
347
347
  {
348
348
  name: 'Settings',
349
- id: 'App4Settings',
349
+ id: 'example3-App4Settings',
350
350
  checkProps: { 'aria-label': 'app-4-settings-check', checked: false }
351
351
  }
352
352
  ]
@@ -355,9 +355,9 @@ class CheckboxTreeView extends React.Component {
355
355
  },
356
356
  {
357
357
  name: 'Really really really long folder name that overflows the container it is in',
358
- id: 'Long',
358
+ id: 'example3-Long',
359
359
  checkProps: { 'aria-label': 'long-check', checked: false },
360
- children: [{ name: 'Application 5', id: 'App5', checkProps: { 'aria-label': 'app-5-check', checked: false } }]
360
+ children: [{ name: 'Application 5', id: 'example3-App5', checkProps: { 'aria-label': 'app-5-check', checked: false } }]
361
361
  }
362
362
  ];
363
363
 
@@ -476,28 +476,28 @@ class IconTreeView extends React.Component {
476
476
  const options = [
477
477
  {
478
478
  name: 'Application launcher',
479
- id: 'AppLaunch',
479
+ id: 'example4-AppLaunch',
480
480
  children: [
481
481
  {
482
482
  name: 'Application 1',
483
- id: 'App1',
483
+ id: 'example4-App1',
484
484
  children: [
485
- { name: 'Settings', id: 'App1Settings' },
486
- { name: 'Current', id: 'App1Current' }
485
+ { name: 'Settings', id: 'example4-App1Settings' },
486
+ { name: 'Current', id: 'example4-App1Current' }
487
487
  ]
488
488
  },
489
489
  {
490
490
  name: 'Application 2',
491
- id: 'App2',
491
+ id: 'example4-App2',
492
492
  children: [
493
- { name: 'Settings', id: 'App2Settings' },
493
+ { name: 'Settings', id: 'example4-App2Settings' },
494
494
  {
495
495
  name: 'Loader',
496
- id: 'App2Loader',
496
+ id: 'example4-App2Loader',
497
497
  children: [
498
- { name: 'Loading App 1', id: 'LoadApp1' },
499
- { name: 'Loading App 2', id: 'LoadApp2' },
500
- { name: 'Loading App 3', id: 'LoadApp3' }
498
+ { name: 'Loading App 1', id: 'example4-LoadApp1' },
499
+ { name: 'Loading App 2', id: 'example4-LoadApp2' },
500
+ { name: 'Loading App 3', id: 'example4-LoadApp3' }
501
501
  ]
502
502
  }
503
503
  ]
@@ -507,27 +507,27 @@ class IconTreeView extends React.Component {
507
507
  },
508
508
  {
509
509
  name: 'Cost management',
510
- id: 'Cost',
510
+ id: 'example4-Cost',
511
511
  children: [
512
512
  {
513
513
  name: 'Application 3',
514
- id: 'App3',
514
+ id: 'example4-App3',
515
515
  children: [
516
- { name: 'Settings', id: 'App3Settings' },
517
- { name: 'Current', id: 'App3Current' }
516
+ { name: 'Settings', id: 'example4-App3Settings' },
517
+ { name: 'Current', id: 'example4-App3Current' }
518
518
  ]
519
519
  }
520
520
  ]
521
521
  },
522
522
  {
523
523
  name: 'Sources',
524
- id: 'Sources',
525
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
524
+ id: 'example4-Sources',
525
+ children: [{ name: 'Application 4', id: 'example4-App4', children: [{ name: 'Settings', id: 'example4-App4Settings' }] }]
526
526
  },
527
527
  {
528
528
  name: 'Really really really long folder name that overflows the container it is in',
529
- id: 'Long',
530
- children: [{ name: 'Application 5', id: 'App5' }]
529
+ id: 'example4-Long',
530
+ children: [{ name: 'Application 5', id: 'example4-App5' }]
531
531
  }
532
532
  ];
533
533
  return (
@@ -567,28 +567,28 @@ class BadgesTreeView extends React.Component {
567
567
  const options = [
568
568
  {
569
569
  name: 'Application launcher',
570
- id: 'AppLaunch',
570
+ id: 'example5-AppLaunch',
571
571
  children: [
572
572
  {
573
573
  name: 'Application 1',
574
- id: 'App1',
574
+ id: 'example5-App1',
575
575
  children: [
576
- { name: 'Settings', id: 'App1Settings' },
577
- { name: 'Current', id: 'App1Current' }
576
+ { name: 'Settings', id: 'example5-App1Settings' },
577
+ { name: 'Current', id: 'example5-App1Current' }
578
578
  ]
579
579
  },
580
580
  {
581
581
  name: 'Application 2',
582
- id: 'App2',
582
+ id: 'example5-App2',
583
583
  children: [
584
- { name: 'Settings', id: 'App2Settings' },
584
+ { name: 'Settings', id: 'example5-App2Settings' },
585
585
  {
586
586
  name: 'Loader',
587
- id: 'App2Loader',
587
+ id: 'example5-App2Loader',
588
588
  children: [
589
- { name: 'Loading App 1', id: 'LoadApp1' },
590
- { name: 'Loading App 2', id: 'LoadApp2' },
591
- { name: 'Loading App 3', id: 'LoadApp3' }
589
+ { name: 'Loading App 1', id: 'example5-LoadApp1' },
590
+ { name: 'Loading App 2', id: 'example5-LoadApp2' },
591
+ { name: 'Loading App 3', id: 'example5-LoadApp3' }
592
592
  ]
593
593
  }
594
594
  ]
@@ -598,27 +598,27 @@ class BadgesTreeView extends React.Component {
598
598
  },
599
599
  {
600
600
  name: 'Cost management',
601
- id: 'Cost',
601
+ id: 'example5-Cost',
602
602
  children: [
603
603
  {
604
604
  name: 'Application 3',
605
- id: 'App3',
605
+ id: 'example5-App3',
606
606
  children: [
607
- { name: 'Settings', id: 'App3Settings' },
608
- { name: 'Current', id: 'App3Current' }
607
+ { name: 'Settings', id: 'example5-App3Settings' },
608
+ { name: 'Current', id: 'example5-App3Current' }
609
609
  ]
610
610
  }
611
611
  ]
612
612
  },
613
613
  {
614
614
  name: 'Sources',
615
- id: 'Sources',
616
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
615
+ id: 'example5-Sources',
616
+ children: [{ name: 'Application 4', id: 'example5-App4', children: [{ name: 'Settings', id: 'example5-App4Settings' }] }]
617
617
  },
618
618
  {
619
619
  name: 'Really really really long folder name that overflows the container it is in',
620
- id: 'Long',
621
- children: [{ name: 'Application 5', id: 'App5' }]
620
+ id: 'example5-Long',
621
+ children: [{ name: 'Application 5', id: 'example5-App5' }]
622
622
  }
623
623
  ];
624
624
  return <TreeView data={options} activeItems={activeItems} onSelect={this.onSelect} hasBadges />;
@@ -650,32 +650,32 @@ class CustomBadgesTreeView extends React.Component {
650
650
  const options = [
651
651
  {
652
652
  name: 'Application launcher',
653
- id: 'AppLaunch',
653
+ id: 'example6-AppLaunch',
654
654
  customBadgeContent: '2 applications',
655
655
  children: [
656
656
  {
657
657
  name: 'Application 1',
658
- id: 'App1',
658
+ id: 'example6-App1',
659
659
  customBadgeContent: '2 children',
660
660
  children: [
661
- { name: 'Settings', id: 'App1Settings' },
662
- { name: 'Current', id: 'App1Current' }
661
+ { name: 'Settings', id: 'example6-App1Settings' },
662
+ { name: 'Current', id: 'example6-App1Current' }
663
663
  ]
664
664
  },
665
665
  {
666
666
  name: 'Application 2',
667
- id: 'App2',
667
+ id: 'example6-App2',
668
668
  customBadgeContent: '2 children',
669
669
  children: [
670
- { name: 'Settings', id: 'App2Settings' },
670
+ { name: 'Settings', id: 'example6-App2Settings' },
671
671
  {
672
672
  name: 'Loader',
673
- id: 'App2Loader',
673
+ id: 'example6-App2Loader',
674
674
  customBadgeContent: '3 loading apps',
675
675
  children: [
676
- { name: 'Loading app 1', id: 'LoadApp1' },
677
- { name: 'Loading app 2', id: 'LoadApp2' },
678
- { name: 'Loading app 3', id: 'LoadApp3' }
676
+ { name: 'Loading app 1', id: 'example6-LoadApp1' },
677
+ { name: 'Loading app 2', id: 'example6-LoadApp2' },
678
+ { name: 'Loading app 3', id: 'example6-LoadApp3' }
679
679
  ]
680
680
  }
681
681
  ]
@@ -685,38 +685,38 @@ class CustomBadgesTreeView extends React.Component {
685
685
  },
686
686
  {
687
687
  name: 'Cost management',
688
- id: 'Cost',
688
+ id: 'example6-Cost',
689
689
  customBadgeContent: '1 applications',
690
690
  children: [
691
691
  {
692
692
  name: 'Application 3',
693
- id: 'App3',
693
+ id: 'example6-App3',
694
694
  customBadgeContent: '2 children',
695
695
  children: [
696
- { name: 'Settings', id: 'App3Settings' },
697
- { name: 'Current', id: 'App3Current' }
696
+ { name: 'Settings', id: 'example6-App3Settings' },
697
+ { name: 'Current', id: 'example6-App3Current' }
698
698
  ]
699
699
  }
700
700
  ]
701
701
  },
702
702
  {
703
703
  name: 'Sources',
704
- id: 'Sources',
704
+ id: 'example6-Sources',
705
705
  customBadgeContent: '1 source',
706
706
  children: [
707
707
  {
708
708
  name: 'Application 4',
709
- id: 'App4',
709
+ id: 'example6-App4',
710
710
  customBadgeContent: '1 child',
711
- children: [{ name: 'Settings', id: 'App4Settings' }]
711
+ children: [{ name: 'Settings', id: 'example6-App4Settings' }]
712
712
  }
713
713
  ]
714
714
  },
715
715
  {
716
716
  name: 'Really really really long folder name that overflows the container it is in',
717
- id: 'Long',
717
+ id: 'example6-Long',
718
718
  customBadgeContent: '1 application',
719
- children: [{ name: 'Application 5', id: 'App5' }]
719
+ children: [{ name: 'Application 5', id: 'example6-App5' }]
720
720
  }
721
721
  ];
722
722
  return <TreeView data={options} activeItems={activeItems} onSelect={this.onSelect} hasBadges />;
@@ -774,7 +774,7 @@ class IconTreeView extends React.Component {
774
774
  const options = [
775
775
  {
776
776
  name: 'Application launcher',
777
- id: 'AppLaunch',
777
+ id: 'example7-AppLaunch',
778
778
  action: (
779
779
  <Dropdown
780
780
  onSelect={this.onAppLaunchSelect}
@@ -787,7 +787,7 @@ class IconTreeView extends React.Component {
787
787
  children: [
788
788
  {
789
789
  name: 'Application 1',
790
- id: 'App1',
790
+ id: 'example7-App1',
791
791
  action: (
792
792
  <Button variant="plain" aria-label="Launch app 1">
793
793
  <ClipboardIcon />
@@ -797,27 +797,27 @@ class IconTreeView extends React.Component {
797
797
  'aria-label': 'Launch app 1'
798
798
  },
799
799
  children: [
800
- { name: 'Settings', id: 'App1Settings' },
801
- { name: 'Current', id: 'App1Current' }
800
+ { name: 'Settings', id: 'example7-App1Settings' },
801
+ { name: 'Current', id: 'example7-App1Current' }
802
802
  ]
803
803
  },
804
804
  {
805
805
  name: 'Application 2',
806
- id: 'App2',
806
+ id: 'example7-App2',
807
807
  action: (
808
808
  <Button variant="plain" aria-label="Launch app 1">
809
809
  <HamburgerIcon />
810
810
  </Button>
811
811
  ),
812
812
  children: [
813
- { name: 'Settings', id: 'App2Settings' },
813
+ { name: 'Settings', id: 'example7-App2Settings' },
814
814
  {
815
815
  name: 'Loader',
816
- id: 'App2Loader',
816
+ id: 'example7-App2Loader',
817
817
  children: [
818
- { name: 'Loading App 1', id: 'LoadApp1' },
819
- { name: 'Loading App 2', id: 'LoadApp2' },
820
- { name: 'Loading App 3', id: 'LoadApp3' }
818
+ { name: 'Loading App 1', id: 'example7-LoadApp1' },
819
+ { name: 'Loading App 2', id: 'example7-LoadApp2' },
820
+ { name: 'Loading App 3', id: 'example7-LoadApp3' }
821
821
  ]
822
822
  }
823
823
  ]
@@ -827,27 +827,27 @@ class IconTreeView extends React.Component {
827
827
  },
828
828
  {
829
829
  name: 'Cost management',
830
- id: 'Cost',
830
+ id: 'example7-Cost',
831
831
  children: [
832
832
  {
833
833
  name: 'Application 3',
834
- id: 'App3',
834
+ id: 'example7-App3',
835
835
  children: [
836
- { name: 'Settings', id: 'App3Settings' },
837
- { name: 'Current', id: 'App3Current' }
836
+ { name: 'Settings', id: 'example7-App3Settings' },
837
+ { name: 'Current', id: 'example7-App3Current' }
838
838
  ]
839
839
  }
840
840
  ]
841
841
  },
842
842
  {
843
843
  name: 'Sources',
844
- id: 'Sources',
845
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
844
+ id: 'example7-Sources',
845
+ children: [{ name: 'Application 4', id: 'example7-App4', children: [{ name: 'Settings', id: 'example7-App4Settings' }] }]
846
846
  },
847
847
  {
848
848
  name: 'Really really really long folder name that overflows the container it is in',
849
- id: 'Long',
850
- children: [{ name: 'Application 5', id: 'App5' }]
849
+ id: 'example7-Long',
850
+ children: [{ name: 'Application 5', id: 'example7-App5' }]
851
851
  }
852
852
  ];
853
853
  return <TreeView data={options} activeItems={activeItems} onSelect={this.onSelect} />;
@@ -865,28 +865,28 @@ const GuidesTreeView: React.FunctionComponent = () => {
865
865
  const options: TreeViewDataItem[] = [
866
866
  {
867
867
  name: 'Application launcher',
868
- id: 'AppLaunch',
868
+ id: 'example8-AppLaunch',
869
869
  children: [
870
870
  {
871
871
  name: 'Application 1',
872
- id: 'App1',
872
+ id: 'example8-App1',
873
873
  children: [
874
- { name: 'Settings', id: 'App1Settings' },
875
- { name: 'Current', id: 'App1Current' }
874
+ { name: 'Settings', id: 'example8-App1Settings' },
875
+ { name: 'Current', id: 'example8-App1Current' }
876
876
  ]
877
877
  },
878
878
  {
879
879
  name: 'Application 2',
880
- id: 'App2',
880
+ id: 'example8-App2',
881
881
  children: [
882
- { name: 'Settings', id: 'App2Settings' },
882
+ { name: 'Settings', id: 'example8-App2Settings' },
883
883
  {
884
884
  name: 'Loader',
885
- id: 'App2Loader',
885
+ id: 'example8-App2Loader',
886
886
  children: [
887
- { name: 'Loading App 1', id: 'LoadApp1' },
888
- { name: 'Loading App 2', id: 'LoadApp2' },
889
- { name: 'Loading App 3', id: 'LoadApp3' }
887
+ { name: 'Loading App 1', id: 'example8-LoadApp1' },
888
+ { name: 'Loading App 2', id: 'example8-LoadApp2' },
889
+ { name: 'Loading App 3', id: 'example8-LoadApp3' }
890
890
  ]
891
891
  }
892
892
  ]
@@ -896,27 +896,27 @@ const GuidesTreeView: React.FunctionComponent = () => {
896
896
  },
897
897
  {
898
898
  name: 'Cost management',
899
- id: 'Cost',
899
+ id: 'example8-Cost',
900
900
  children: [
901
901
  {
902
902
  name: 'Application 3',
903
- id: 'App3',
903
+ id: 'example8-App3',
904
904
  children: [
905
- { name: 'Settings', id: 'App3Settings' },
906
- { name: 'Current', id: 'App3Current' }
905
+ { name: 'Settings', id: 'example8-App3Settings' },
906
+ { name: 'Current', id: 'example8-App3Current' }
907
907
  ]
908
908
  }
909
909
  ]
910
910
  },
911
911
  {
912
912
  name: 'Sources',
913
- id: 'Sources',
914
- children: [{ name: 'Application 4', id: 'App4', children: [{ name: 'Settings', id: 'App4Settings' }] }]
913
+ id: 'example8-Sources',
914
+ children: [{ name: 'Application 4', id: 'example8-App4', children: [{ name: 'Settings', id: 'example8-App4Settings' }] }]
915
915
  },
916
916
  {
917
917
  name: 'Really really really long folder name that overflows the container it is in',
918
- id: 'Long',
919
- children: [{ name: 'Application 5', id: 'App5' }]
918
+ id: 'example8-Long',
919
+ children: [{ name: 'Application 5', id: 'example8-App5' }]
920
920
  }
921
921
  ];
922
922
  return <TreeView data={options} hasGuides={true} />;
@@ -935,52 +935,52 @@ const CompactTreeView: React.FunctionComponent = () => {
935
935
  name:
936
936
  'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value and may reject unrecognized values.',
937
937
  title: 'apiVersion',
938
- id: 'apiVersion'
938
+ id: 'example9-apiVersion'
939
939
  },
940
940
  {
941
941
  name:
942
942
  'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated is CamelCase. More info:',
943
943
  title: 'kind',
944
- id: 'kind'
944
+ id: 'example9-kind'
945
945
  },
946
946
  {
947
947
  name: 'Standard metadata object',
948
948
  title: 'metadata',
949
- id: 'metadata'
949
+ id: 'example9-metadata'
950
950
  },
951
951
  {
952
952
  name: 'Standard metadata object',
953
953
  title: 'spec',
954
- id: 'spec',
954
+ id: 'example9-spec',
955
955
  children: [
956
956
  {
957
957
  name:
958
958
  'Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Default to 0 (pod will be considered available as soon as it is ready).',
959
959
  title: 'minReadySeconds',
960
- id: 'minReadySeconds'
960
+ id: 'example9-minReadySeconds'
961
961
  },
962
962
  {
963
963
  name: 'Indicates that the deployment is paused',
964
964
  title: 'paused',
965
- id: 'paused'
965
+ id: 'example9-paused'
966
966
  },
967
967
  {
968
968
  name:
969
969
  'The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that the progress will not de estimated during the time a deployment is paused. Defaults to 600s.',
970
970
  title: 'progressDeadlineSeconds',
971
- id: 'progressDeadlineSeconds',
971
+ id: 'example9-progressDeadlineSeconds',
972
972
  children: [
973
973
  {
974
974
  name:
975
975
  'The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.',
976
976
  title: 'revisionHistoryLimit',
977
- id: 'revisionHistoryLimit',
977
+ id: 'example9-revisionHistoryLimit',
978
978
  children: [
979
979
  {
980
980
  name:
981
981
  'Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.',
982
982
  title: 'matchLabels',
983
- id: 'matchLabels'
983
+ id: 'example9-matchLabels'
984
984
  }
985
985
  ]
986
986
  }
@@ -1005,52 +1005,52 @@ const CompactNoBackgroundTreeView: React.FunctionComponent = () => {
1005
1005
  name:
1006
1006
  'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value and may reject unrecognized values.',
1007
1007
  title: 'apiVersion',
1008
- id: 'apiVersion'
1008
+ id: 'example10-apiVersion'
1009
1009
  },
1010
1010
  {
1011
1011
  name:
1012
1012
  'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated is CamelCase. More info:',
1013
1013
  title: 'kind',
1014
- id: 'kind'
1014
+ id: 'example10-kind'
1015
1015
  },
1016
1016
  {
1017
1017
  name: 'Standard metadata object',
1018
1018
  title: 'metadata',
1019
- id: 'metadata'
1019
+ id: 'example10-metadata'
1020
1020
  },
1021
1021
  {
1022
1022
  name: 'Standard metadata object',
1023
1023
  title: 'spec',
1024
- id: 'spec',
1024
+ id: 'example10-spec',
1025
1025
  children: [
1026
1026
  {
1027
1027
  name:
1028
1028
  'Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Default to 0 (pod will be considered available as soon as it is ready).',
1029
1029
  title: 'minReadySeconds',
1030
- id: 'minReadySeconds'
1030
+ id: 'example10-minReadySeconds'
1031
1031
  },
1032
1032
  {
1033
1033
  name: 'Indicates that the deployment is paused',
1034
1034
  title: 'paused',
1035
- id: 'paused'
1035
+ id: 'example10-paused'
1036
1036
  },
1037
1037
  {
1038
1038
  name:
1039
1039
  'The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that the progress will not de estimated during the time a deployment is paused. Defaults to 600s.',
1040
1040
  title: 'progressDeadlineSeconds',
1041
- id: 'progressDeadlineSeconds',
1041
+ id: 'example10-progressDeadlineSeconds',
1042
1042
  children: [
1043
1043
  {
1044
1044
  name:
1045
1045
  'The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.',
1046
1046
  title: 'revisionHistoryLimit',
1047
- id: 'revisionHistoryLimit',
1047
+ id: 'example10-revisionHistoryLimit',
1048
1048
  children: [
1049
1049
  {
1050
1050
  name:
1051
1051
  'Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.',
1052
1052
  title: 'matchLabels',
1053
- id: 'matchLabels'
1053
+ id: 'example10-matchLabels'
1054
1054
  }
1055
1055
  ]
1056
1056
  }