@patternfly/react-core 4.200.0 → 4.201.0
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.
- package/CHANGELOG.md +30 -0
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js +13 -8
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js +13 -8
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/umd/react-core.css +804 -804
- package/dist/umd/react-core.js +13 -8
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/CalendarMonth/CalendarMonth.tsx +15 -9
- package/src/components/ChipGroup/__tests__/ChipGroup.test.tsx +14 -9
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +28 -19
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +1 -1
- package/src/components/ContextSelector/__tests__/ContextSelector.test.tsx +21 -14
- package/src/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +49 -34
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +2 -169
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +5 -247
- package/src/components/DataList/__tests__/DataList.test.tsx +49 -40
- package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +1 -9
- package/src/components/Dropdown/__tests__/Dropdown.test.tsx +54 -42
- package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +179 -177
- package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +51 -55
- package/src/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +28 -26
- package/src/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +14 -15
- package/src/components/Dropdown/__tests__/Generated/InternalDropdownItem.test.tsx +39 -36
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +6 -4
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +11 -4
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/InternalDropdownItem.test.tsx.snap +7 -4
- package/src/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +66 -69
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +15 -816
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +9 -454
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +7 -141
- package/src/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +10 -163
- package/src/components/Nav/__tests__/Generated/NavList.test.tsx +28 -18
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavList.test.tsx.snap +8 -4
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +21 -19
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +20 -11
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuDropdownItem.test.tsx +14 -10
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuDropdownItem.test.tsx.snap +18 -4
- package/src/components/Select/__tests__/Generated/SelectGroup.test.tsx +22 -10
- package/src/components/Select/__tests__/Generated/SelectMenu.test.tsx +22 -26
- package/src/components/Select/__tests__/Generated/__snapshots__/SelectGroup.test.tsx.snap +15 -4
- package/src/components/Select/__tests__/Generated/__snapshots__/SelectMenu.test.tsx.snap +7 -19
- package/src/components/Select/__tests__/SelectGroup.test.tsx +14 -7
- package/src/components/Select/__tests__/SelectOption.test.tsx +51 -30
- package/src/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +1 -5
- package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +10 -272
- package/src/components/Toolbar/__tests__/Generated/ToolbarToggleGroup.test.tsx +25 -11
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarToggleGroup.test.tsx.snap +26 -4
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +129 -0
- package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +19 -0
- package/src/components/Toolbar/__tests__/ToolbarToggleGroup.test.tsx +12 -135
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +7 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.test.tsx.snap +3 -0
- package/src/components/Tooltip/examples/Tooltip.md +9 -1
- package/src/components/Tooltip/examples/TooltipExamples.css +4 -4
- package/src/components/Select/__tests__/Generated/SelectOption.test.tsx +0 -29
- package/src/components/Select/__tests__/Generated/__snapshots__/SelectOption.test.tsx.snap +0 -7
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarToggleGroup.test.tsx.snap +0 -516
- package/src/components/Wizard/__tests__/Generated/Wizard.test.tsx +0 -43
- package/src/components/Wizard/__tests__/Generated/__snapshots__/Wizard.test.tsx.snap +0 -69
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Toolbar should render inset 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="pf-c-toolbar pf-m-inset-none pf-m-inset-sm-on-md pf-m-inset-2xl-on-xl pf-m-inset-lg-on-2xl"
|
|
7
|
-
data-ouia-component-id="OUIA-Generated-Toolbar-1"
|
|
8
|
-
data-ouia-component-type="PF4/Toolbar"
|
|
9
|
-
data-ouia-safe="true"
|
|
10
|
-
id="toolbar"
|
|
11
|
-
>
|
|
12
|
-
<div
|
|
13
|
-
class="pf-c-toolbar__content"
|
|
14
|
-
>
|
|
15
|
-
<div
|
|
16
|
-
class="pf-c-toolbar__content-section"
|
|
17
|
-
>
|
|
18
|
-
<div
|
|
19
|
-
class="pf-c-toolbar__item"
|
|
20
|
-
>
|
|
21
|
-
Test
|
|
22
|
-
</div>
|
|
23
|
-
<div
|
|
24
|
-
class="pf-c-toolbar__item"
|
|
25
|
-
>
|
|
26
|
-
Test 2
|
|
27
|
-
</div>
|
|
28
|
-
<hr
|
|
29
|
-
class="pf-c-divider pf-m-vertical"
|
|
30
|
-
/>
|
|
31
|
-
<div
|
|
32
|
-
class="pf-c-toolbar__item"
|
|
33
|
-
>
|
|
34
|
-
Test 3
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div
|
|
38
|
-
class="pf-c-toolbar__expandable-content"
|
|
39
|
-
id="toolbar-expandable-content-0"
|
|
40
|
-
>
|
|
41
|
-
<div
|
|
42
|
-
class="pf-c-toolbar__group"
|
|
43
|
-
/>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div
|
|
47
|
-
class="pf-c-toolbar__content pf-m-hidden"
|
|
48
|
-
hidden=""
|
|
49
|
-
>
|
|
50
|
-
<div
|
|
51
|
-
class="pf-c-toolbar__group"
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
`;
|
|
57
|
-
|
|
58
|
-
exports[`Toolbar should render with custom chip content 1`] = `
|
|
59
|
-
<div>
|
|
60
|
-
<div
|
|
61
|
-
class="pf-c-toolbar pf-m-toggle-group-container"
|
|
62
|
-
data-ouia-component-id="OUIA-Generated-Toolbar-3"
|
|
63
|
-
data-ouia-component-type="PF4/Toolbar"
|
|
64
|
-
data-ouia-safe="true"
|
|
65
|
-
id="toolbar-with-filter"
|
|
66
|
-
>
|
|
67
|
-
<div
|
|
68
|
-
class="pf-c-toolbar__content"
|
|
69
|
-
>
|
|
70
|
-
<div
|
|
71
|
-
class="pf-c-toolbar__content-section"
|
|
72
|
-
>
|
|
73
|
-
<div
|
|
74
|
-
class="pf-c-toolbar__group pf-m-toggle-group pf-m-show-on-xl"
|
|
75
|
-
>
|
|
76
|
-
<div
|
|
77
|
-
class="pf-c-toolbar__toggle"
|
|
78
|
-
>
|
|
79
|
-
<button
|
|
80
|
-
aria-controls="toolbar-with-filter-expandable-content-3"
|
|
81
|
-
aria-disabled="false"
|
|
82
|
-
aria-haspopup="false"
|
|
83
|
-
aria-label="Show Filters"
|
|
84
|
-
class="pf-c-button pf-m-plain"
|
|
85
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
86
|
-
data-ouia-component-type="PF4/Button"
|
|
87
|
-
data-ouia-safe="true"
|
|
88
|
-
type="button"
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
<div
|
|
92
|
-
class="pf-c-toolbar__group pf-m-filter-group"
|
|
93
|
-
>
|
|
94
|
-
<div
|
|
95
|
-
class="pf-c-toolbar__item"
|
|
96
|
-
>
|
|
97
|
-
<div
|
|
98
|
-
class="pf-c-select pf-m-expanded"
|
|
99
|
-
data-ouia-component-id="OUIA-Generated-Select-checkbox-2"
|
|
100
|
-
data-ouia-component-type="PF4/Select"
|
|
101
|
-
data-ouia-safe="true"
|
|
102
|
-
>
|
|
103
|
-
<button
|
|
104
|
-
aria-expanded="true"
|
|
105
|
-
aria-label="Options menu"
|
|
106
|
-
aria-labelledby=" pf-select-toggle-id-1"
|
|
107
|
-
class="pf-c-select__toggle"
|
|
108
|
-
id="pf-select-toggle-id-1"
|
|
109
|
-
type="button"
|
|
110
|
-
>
|
|
111
|
-
<div
|
|
112
|
-
class="pf-c-select__toggle-wrapper"
|
|
113
|
-
>
|
|
114
|
-
<span
|
|
115
|
-
class="pf-c-select__toggle-text"
|
|
116
|
-
>
|
|
117
|
-
Status
|
|
118
|
-
</span>
|
|
119
|
-
<div
|
|
120
|
-
class="pf-c-select__toggle-badge"
|
|
121
|
-
>
|
|
122
|
-
<span
|
|
123
|
-
class="pf-c-badge pf-m-read"
|
|
124
|
-
>
|
|
125
|
-
2
|
|
126
|
-
</span>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<span
|
|
130
|
-
class="pf-c-select__toggle-arrow"
|
|
131
|
-
>
|
|
132
|
-
<svg
|
|
133
|
-
aria-hidden="true"
|
|
134
|
-
fill="currentColor"
|
|
135
|
-
height="1em"
|
|
136
|
-
role="img"
|
|
137
|
-
style="vertical-align: -0.125em;"
|
|
138
|
-
viewBox="0 0 320 512"
|
|
139
|
-
width="1em"
|
|
140
|
-
>
|
|
141
|
-
<path
|
|
142
|
-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
|
|
143
|
-
/>
|
|
144
|
-
</svg>
|
|
145
|
-
</span>
|
|
146
|
-
</button>
|
|
147
|
-
<ul
|
|
148
|
-
aria-label="Status"
|
|
149
|
-
class="pf-c-select__menu"
|
|
150
|
-
role="listbox"
|
|
151
|
-
>
|
|
152
|
-
<label
|
|
153
|
-
class="pf-c-check pf-c-select__menu-item"
|
|
154
|
-
>
|
|
155
|
-
<input
|
|
156
|
-
checked=""
|
|
157
|
-
class="pf-c-check__input"
|
|
158
|
-
id="pf-random-id-1-New"
|
|
159
|
-
type="checkbox"
|
|
160
|
-
/>
|
|
161
|
-
<span
|
|
162
|
-
class="pf-c-check__label"
|
|
163
|
-
>
|
|
164
|
-
New
|
|
165
|
-
</span>
|
|
166
|
-
</label>
|
|
167
|
-
<label
|
|
168
|
-
class="pf-c-check pf-c-select__menu-item"
|
|
169
|
-
>
|
|
170
|
-
<input
|
|
171
|
-
checked=""
|
|
172
|
-
class="pf-c-check__input"
|
|
173
|
-
id="pf-random-id-1-Pending"
|
|
174
|
-
type="checkbox"
|
|
175
|
-
/>
|
|
176
|
-
<span
|
|
177
|
-
class="pf-c-check__label"
|
|
178
|
-
>
|
|
179
|
-
Pending
|
|
180
|
-
</span>
|
|
181
|
-
</label>
|
|
182
|
-
<label
|
|
183
|
-
class="pf-c-check pf-c-select__menu-item"
|
|
184
|
-
>
|
|
185
|
-
<input
|
|
186
|
-
class="pf-c-check__input"
|
|
187
|
-
id="pf-random-id-1-Running"
|
|
188
|
-
type="checkbox"
|
|
189
|
-
/>
|
|
190
|
-
<span
|
|
191
|
-
class="pf-c-check__label"
|
|
192
|
-
>
|
|
193
|
-
Running
|
|
194
|
-
</span>
|
|
195
|
-
</label>
|
|
196
|
-
<label
|
|
197
|
-
class="pf-c-check pf-c-select__menu-item"
|
|
198
|
-
>
|
|
199
|
-
<input
|
|
200
|
-
class="pf-c-check__input"
|
|
201
|
-
id="pf-random-id-1-Cancelled"
|
|
202
|
-
type="checkbox"
|
|
203
|
-
/>
|
|
204
|
-
<span
|
|
205
|
-
class="pf-c-check__label"
|
|
206
|
-
>
|
|
207
|
-
Cancelled
|
|
208
|
-
</span>
|
|
209
|
-
</label>
|
|
210
|
-
</ul>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
<div
|
|
217
|
-
class="pf-c-toolbar__expandable-content"
|
|
218
|
-
id="toolbar-with-filter-expandable-content-3"
|
|
219
|
-
>
|
|
220
|
-
<div
|
|
221
|
-
class="pf-c-toolbar__group"
|
|
222
|
-
/>
|
|
223
|
-
<div
|
|
224
|
-
class="pf-c-toolbar__group pf-m-chip-container"
|
|
225
|
-
>
|
|
226
|
-
<div
|
|
227
|
-
class="pf-c-toolbar__group"
|
|
228
|
-
/>
|
|
229
|
-
<div
|
|
230
|
-
class="pf-c-toolbar__item"
|
|
231
|
-
>
|
|
232
|
-
<button
|
|
233
|
-
aria-disabled="false"
|
|
234
|
-
class="pf-c-button pf-m-link pf-m-inline"
|
|
235
|
-
data-ouia-component-id="OUIA-Generated-Button-link-3"
|
|
236
|
-
data-ouia-component-type="PF4/Button"
|
|
237
|
-
data-ouia-safe="true"
|
|
238
|
-
type="button"
|
|
239
|
-
>
|
|
240
|
-
Save filters
|
|
241
|
-
</button>
|
|
242
|
-
</div>
|
|
243
|
-
<div
|
|
244
|
-
class="pf-c-toolbar__item"
|
|
245
|
-
>
|
|
246
|
-
<button
|
|
247
|
-
aria-disabled="false"
|
|
248
|
-
class="pf-c-button pf-m-link pf-m-inline"
|
|
249
|
-
data-ouia-component-id="OUIA-Generated-Button-link-4"
|
|
250
|
-
data-ouia-component-type="PF4/Button"
|
|
251
|
-
data-ouia-safe="true"
|
|
252
|
-
type="button"
|
|
253
|
-
>
|
|
254
|
-
Clear all filters
|
|
255
|
-
</button>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
<div
|
|
261
|
-
class="pf-c-toolbar__content"
|
|
262
|
-
>
|
|
263
|
-
<div
|
|
264
|
-
aria-hidden="true"
|
|
265
|
-
class="pf-c-toolbar__group pf-m-hidden"
|
|
266
|
-
hidden=""
|
|
267
|
-
>
|
|
268
|
-
<div
|
|
269
|
-
class="pf-c-toolbar__item pf-m-chip-group"
|
|
270
|
-
>
|
|
271
|
-
<div
|
|
272
|
-
aria-labelledby="pf-random-id-2"
|
|
273
|
-
class="pf-c-chip-group pf-m-category"
|
|
274
|
-
data-ouia-component-type="PF4/ChipGroup"
|
|
275
|
-
data-ouia-safe="true"
|
|
276
|
-
role="group"
|
|
277
|
-
>
|
|
278
|
-
<div
|
|
279
|
-
class="pf-c-chip-group__main"
|
|
280
|
-
>
|
|
281
|
-
<span
|
|
282
|
-
class="pf-c-chip-group__label"
|
|
283
|
-
id="pf-random-id-2"
|
|
284
|
-
>
|
|
285
|
-
Status
|
|
286
|
-
</span>
|
|
287
|
-
<ul
|
|
288
|
-
aria-labelledby="pf-random-id-2"
|
|
289
|
-
class="pf-c-chip-group__list"
|
|
290
|
-
role="list"
|
|
291
|
-
>
|
|
292
|
-
<li
|
|
293
|
-
class="pf-c-chip-group__list-item"
|
|
294
|
-
>
|
|
295
|
-
<div
|
|
296
|
-
class="pf-c-chip"
|
|
297
|
-
data-ouia-component-id="OUIA-Generated-Chip-1"
|
|
298
|
-
data-ouia-component-type="PF4/Chip"
|
|
299
|
-
data-ouia-safe="true"
|
|
300
|
-
>
|
|
301
|
-
<span
|
|
302
|
-
class="pf-c-chip__text"
|
|
303
|
-
id="pf-random-id-3"
|
|
304
|
-
>
|
|
305
|
-
New
|
|
306
|
-
</span>
|
|
307
|
-
<button
|
|
308
|
-
aria-disabled="false"
|
|
309
|
-
aria-label="close"
|
|
310
|
-
aria-labelledby="remove_pf-random-id-3 pf-random-id-3"
|
|
311
|
-
class="pf-c-button pf-m-plain"
|
|
312
|
-
data-ouia-component-id="close"
|
|
313
|
-
data-ouia-component-type="PF4/Button"
|
|
314
|
-
data-ouia-safe="true"
|
|
315
|
-
id="remove_pf-random-id-3"
|
|
316
|
-
type="button"
|
|
317
|
-
>
|
|
318
|
-
<svg
|
|
319
|
-
aria-hidden="true"
|
|
320
|
-
fill="currentColor"
|
|
321
|
-
height="1em"
|
|
322
|
-
role="img"
|
|
323
|
-
style="vertical-align: -0.125em;"
|
|
324
|
-
viewBox="0 0 352 512"
|
|
325
|
-
width="1em"
|
|
326
|
-
>
|
|
327
|
-
<path
|
|
328
|
-
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
329
|
-
/>
|
|
330
|
-
</svg>
|
|
331
|
-
</button>
|
|
332
|
-
</div>
|
|
333
|
-
</li>
|
|
334
|
-
<li
|
|
335
|
-
class="pf-c-chip-group__list-item"
|
|
336
|
-
>
|
|
337
|
-
<div
|
|
338
|
-
class="pf-c-chip"
|
|
339
|
-
data-ouia-component-id="OUIA-Generated-Chip-2"
|
|
340
|
-
data-ouia-component-type="PF4/Chip"
|
|
341
|
-
data-ouia-safe="true"
|
|
342
|
-
>
|
|
343
|
-
<span
|
|
344
|
-
class="pf-c-chip__text"
|
|
345
|
-
id="pf-random-id-4"
|
|
346
|
-
>
|
|
347
|
-
Pending
|
|
348
|
-
</span>
|
|
349
|
-
<button
|
|
350
|
-
aria-disabled="false"
|
|
351
|
-
aria-label="close"
|
|
352
|
-
aria-labelledby="remove_pf-random-id-4 pf-random-id-4"
|
|
353
|
-
class="pf-c-button pf-m-plain"
|
|
354
|
-
data-ouia-component-id="close"
|
|
355
|
-
data-ouia-component-type="PF4/Button"
|
|
356
|
-
data-ouia-safe="true"
|
|
357
|
-
id="remove_pf-random-id-4"
|
|
358
|
-
type="button"
|
|
359
|
-
>
|
|
360
|
-
<svg
|
|
361
|
-
aria-hidden="true"
|
|
362
|
-
fill="currentColor"
|
|
363
|
-
height="1em"
|
|
364
|
-
role="img"
|
|
365
|
-
style="vertical-align: -0.125em;"
|
|
366
|
-
viewBox="0 0 352 512"
|
|
367
|
-
width="1em"
|
|
368
|
-
>
|
|
369
|
-
<path
|
|
370
|
-
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
371
|
-
/>
|
|
372
|
-
</svg>
|
|
373
|
-
</button>
|
|
374
|
-
</div>
|
|
375
|
-
</li>
|
|
376
|
-
</ul>
|
|
377
|
-
</div>
|
|
378
|
-
<div
|
|
379
|
-
class="pf-c-chip-group__close"
|
|
380
|
-
>
|
|
381
|
-
<button
|
|
382
|
-
aria-disabled="false"
|
|
383
|
-
aria-label="Close chip group"
|
|
384
|
-
aria-labelledby="remove_group_pf-random-id-2 pf-random-id-2"
|
|
385
|
-
class="pf-c-button pf-m-plain"
|
|
386
|
-
data-ouia-component-id="Close chip group"
|
|
387
|
-
data-ouia-component-type="PF4/Button"
|
|
388
|
-
data-ouia-safe="true"
|
|
389
|
-
id="remove_group_pf-random-id-2"
|
|
390
|
-
type="button"
|
|
391
|
-
>
|
|
392
|
-
<svg
|
|
393
|
-
aria-hidden="true"
|
|
394
|
-
fill="currentColor"
|
|
395
|
-
height="1em"
|
|
396
|
-
role="img"
|
|
397
|
-
style="vertical-align: -0.125em;"
|
|
398
|
-
viewBox="0 0 512 512"
|
|
399
|
-
width="1em"
|
|
400
|
-
>
|
|
401
|
-
<path
|
|
402
|
-
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
403
|
-
/>
|
|
404
|
-
</svg>
|
|
405
|
-
</button>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
<div
|
|
411
|
-
class="pf-c-toolbar__group"
|
|
412
|
-
>
|
|
413
|
-
<div
|
|
414
|
-
class="pf-c-toolbar__item"
|
|
415
|
-
>
|
|
416
|
-
2 filters applied
|
|
417
|
-
</div>
|
|
418
|
-
</div>
|
|
419
|
-
<div
|
|
420
|
-
class="pf-c-toolbar__item"
|
|
421
|
-
>
|
|
422
|
-
<button
|
|
423
|
-
aria-disabled="false"
|
|
424
|
-
class="pf-c-button pf-m-link pf-m-inline"
|
|
425
|
-
data-ouia-component-id="OUIA-Generated-Button-link-1"
|
|
426
|
-
data-ouia-component-type="PF4/Button"
|
|
427
|
-
data-ouia-safe="true"
|
|
428
|
-
type="button"
|
|
429
|
-
>
|
|
430
|
-
Save filters
|
|
431
|
-
</button>
|
|
432
|
-
</div>
|
|
433
|
-
<div
|
|
434
|
-
class="pf-c-toolbar__item"
|
|
435
|
-
>
|
|
436
|
-
<button
|
|
437
|
-
aria-disabled="false"
|
|
438
|
-
class="pf-c-button pf-m-link pf-m-inline"
|
|
439
|
-
data-ouia-component-id="OUIA-Generated-Button-link-2"
|
|
440
|
-
data-ouia-component-type="PF4/Button"
|
|
441
|
-
data-ouia-safe="true"
|
|
442
|
-
type="button"
|
|
443
|
-
>
|
|
444
|
-
Clear all filters
|
|
445
|
-
</button>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
`;
|
|
451
|
-
|
|
452
|
-
exports[`Toolbar should render with page inset flag 1`] = `
|
|
453
|
-
<div>
|
|
454
|
-
<div
|
|
455
|
-
class="pf-c-toolbar pf-m-page-insets"
|
|
456
|
-
data-ouia-component-id="OUIA-Generated-Toolbar-2"
|
|
457
|
-
data-ouia-component-type="PF4/Toolbar"
|
|
458
|
-
data-ouia-safe="true"
|
|
459
|
-
id="toolbar"
|
|
460
|
-
>
|
|
461
|
-
<div
|
|
462
|
-
class="pf-c-toolbar__content"
|
|
463
|
-
>
|
|
464
|
-
<div
|
|
465
|
-
class="pf-c-toolbar__content-section"
|
|
466
|
-
>
|
|
467
|
-
<div
|
|
468
|
-
class="pf-c-toolbar__item"
|
|
469
|
-
>
|
|
470
|
-
Test
|
|
471
|
-
</div>
|
|
472
|
-
<div
|
|
473
|
-
class="pf-c-toolbar__item"
|
|
474
|
-
>
|
|
475
|
-
Test 2
|
|
476
|
-
</div>
|
|
477
|
-
<hr
|
|
478
|
-
class="pf-c-divider pf-m-vertical"
|
|
479
|
-
/>
|
|
480
|
-
<div
|
|
481
|
-
class="pf-c-toolbar__item"
|
|
482
|
-
>
|
|
483
|
-
Test 3
|
|
484
|
-
</div>
|
|
485
|
-
</div>
|
|
486
|
-
<div
|
|
487
|
-
class="pf-c-toolbar__expandable-content"
|
|
488
|
-
id="toolbar-expandable-content-1"
|
|
489
|
-
>
|
|
490
|
-
<div
|
|
491
|
-
class="pf-c-toolbar__group"
|
|
492
|
-
/>
|
|
493
|
-
</div>
|
|
494
|
-
</div>
|
|
495
|
-
<div
|
|
496
|
-
class="pf-c-toolbar__content pf-m-hidden"
|
|
497
|
-
hidden=""
|
|
498
|
-
>
|
|
499
|
-
<div
|
|
500
|
-
class="pf-c-toolbar__group"
|
|
501
|
-
/>
|
|
502
|
-
</div>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
`;
|
|
506
|
-
|
|
507
|
-
exports[`ToolbarItem should map width breakpoints 1`] = `
|
|
508
|
-
<div>
|
|
509
|
-
<div
|
|
510
|
-
class="pf-c-toolbar__item"
|
|
511
|
-
style="--pf-c-toolbar__item--Width: 100px; --pf-c-toolbar__item--Width-on-sm: 80px; --pf-c-toolbar__item--Width-on-md: 150px; --pf-c-toolbar__item--Width-on-lg: 200px; --pf-c-toolbar__item--Width-on-xl: 250px; --pf-c-toolbar__item--Width-on-2xl: 300px;"
|
|
512
|
-
>
|
|
513
|
-
Test
|
|
514
|
-
</div>
|
|
515
|
-
</div>
|
|
516
|
-
`;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { shallow } from 'enzyme';
|
|
6
|
-
import { Wizard } from '../../Wizard';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('Wizard should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = shallow(
|
|
12
|
-
<Wizard
|
|
13
|
-
width={null}
|
|
14
|
-
height={null}
|
|
15
|
-
title={'null'}
|
|
16
|
-
titleId={'string'}
|
|
17
|
-
descriptionId={'string'}
|
|
18
|
-
description={''}
|
|
19
|
-
hideClose={false}
|
|
20
|
-
onClose={() => undefined as any}
|
|
21
|
-
onGoToStep={null}
|
|
22
|
-
className={"''"}
|
|
23
|
-
steps={[]}
|
|
24
|
-
startAtStep={1}
|
|
25
|
-
navAriaLabel={'null'}
|
|
26
|
-
navAriaLabelledBy={'null'}
|
|
27
|
-
mainAriaLabel={'null'}
|
|
28
|
-
mainAriaLabelledBy={'null'}
|
|
29
|
-
hasNoBodyPadding={false}
|
|
30
|
-
footer={null}
|
|
31
|
-
onSave={() => undefined as void}
|
|
32
|
-
onNext={null}
|
|
33
|
-
onBack={null}
|
|
34
|
-
nextButtonText={'Next'}
|
|
35
|
-
backButtonText={'Back'}
|
|
36
|
-
cancelButtonText={'Cancel'}
|
|
37
|
-
closeButtonAriaLabel={"'Close'"}
|
|
38
|
-
appendTo={null}
|
|
39
|
-
isOpen={true}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
expect(view).toMatchSnapshot();
|
|
43
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Wizard should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<Modal
|
|
5
|
-
actions={Array []}
|
|
6
|
-
appendTo={[Function]}
|
|
7
|
-
aria-describedby="string"
|
|
8
|
-
aria-label=""
|
|
9
|
-
aria-labelledby="string"
|
|
10
|
-
className=""
|
|
11
|
-
hasNoBodyWrapper={true}
|
|
12
|
-
isOpen={true}
|
|
13
|
-
onClose={[Function]}
|
|
14
|
-
ouiaSafe={true}
|
|
15
|
-
showClose={false}
|
|
16
|
-
title=""
|
|
17
|
-
titleIconVariant={null}
|
|
18
|
-
titleLabel=""
|
|
19
|
-
variant="large"
|
|
20
|
-
>
|
|
21
|
-
<ContextProvider
|
|
22
|
-
value={
|
|
23
|
-
Object {
|
|
24
|
-
"activeStep": undefined,
|
|
25
|
-
"goToStepById": [Function],
|
|
26
|
-
"goToStepByName": [Function],
|
|
27
|
-
"onBack": [Function],
|
|
28
|
-
"onClose": [Function],
|
|
29
|
-
"onNext": [Function],
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
>
|
|
33
|
-
<div
|
|
34
|
-
className="pf-c-wizard ''"
|
|
35
|
-
>
|
|
36
|
-
<WizardHeader
|
|
37
|
-
closeButtonAriaLabel="'Close'"
|
|
38
|
-
description=""
|
|
39
|
-
descriptionId="string"
|
|
40
|
-
hideClose={false}
|
|
41
|
-
onClose={[Function]}
|
|
42
|
-
title="null"
|
|
43
|
-
titleId="string"
|
|
44
|
-
/>
|
|
45
|
-
<WizardToggle
|
|
46
|
-
hasNoBodyPadding={false}
|
|
47
|
-
isInPage={false}
|
|
48
|
-
isNavOpen={false}
|
|
49
|
-
mainAriaLabel="null"
|
|
50
|
-
mainAriaLabelledBy="null"
|
|
51
|
-
nav={[Function]}
|
|
52
|
-
onNavToggle={[Function]}
|
|
53
|
-
steps={Array []}
|
|
54
|
-
>
|
|
55
|
-
<WizardFooterInternal
|
|
56
|
-
backButtonText="Back"
|
|
57
|
-
cancelButtonText="Cancel"
|
|
58
|
-
firstStep={true}
|
|
59
|
-
isValid={true}
|
|
60
|
-
nextButtonText="Next"
|
|
61
|
-
onBack={[Function]}
|
|
62
|
-
onClose={[Function]}
|
|
63
|
-
onNext={[Function]}
|
|
64
|
-
/>
|
|
65
|
-
</WizardToggle>
|
|
66
|
-
</div>
|
|
67
|
-
</ContextProvider>
|
|
68
|
-
</Modal>
|
|
69
|
-
`;
|