@patternfly/react-core 4.202.10 → 4.202.13
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/Drawer/Drawer.d.ts +1 -0
- package/dist/esm/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/esm/components/Drawer/Drawer.js +3 -2
- package/dist/esm/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.js +3 -2
- package/dist/esm/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts +2 -2
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +65 -37
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/LoginPage/LoginFooterItem.d.ts.map +1 -1
- package/dist/esm/components/LoginPage/LoginFooterItem.js +1 -3
- package/dist/esm/components/LoginPage/LoginFooterItem.js.map +1 -1
- package/dist/esm/components/TextInput/TextInput.d.ts +1 -0
- package/dist/esm/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/esm/components/TextInput/TextInput.js +2 -1
- package/dist/esm/components/TextInput/TextInput.js.map +1 -1
- package/dist/js/components/Drawer/Drawer.d.ts +1 -0
- package/dist/js/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/js/components/Drawer/Drawer.js +3 -2
- package/dist/js/components/Drawer/Drawer.js.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.js +3 -2
- package/dist/js/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts +2 -2
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +65 -37
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/LoginPage/LoginFooterItem.d.ts.map +1 -1
- package/dist/js/components/LoginPage/LoginFooterItem.js +1 -3
- package/dist/js/components/LoginPage/LoginFooterItem.js.map +1 -1
- package/dist/js/components/TextInput/TextInput.d.ts +1 -0
- package/dist/js/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/js/components/TextInput/TextInput.js +2 -1
- package/dist/js/components/TextInput/TextInput.js.map +1 -1
- package/dist/styles/assets/pficon/pficon.scss +6 -0
- package/dist/styles/assets/pficon/pficon.woff +0 -0
- package/dist/styles/assets/pficon/pficon.woff2 +0 -0
- package/dist/styles/base-no-reset.css +5 -0
- package/dist/styles/base.css +5 -0
- package/dist/umd/react-core.css +2 -1
- package/dist/umd/react-core.js +73 -45
- package/dist/umd/react-core.min.css +2 -1
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/Drawer/Drawer.tsx +4 -2
- package/src/components/Drawer/DrawerContent.tsx +19 -15
- package/src/components/Drawer/DrawerPanelContent.tsx +110 -75
- package/src/components/Drawer/__tests__/Generated/DrawerContent.test.tsx +2 -2
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerContent.test.tsx.snap +88 -9
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +1 -0
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +15 -2
- package/src/components/EmptyState/__tests__/EmptyState.test.tsx +46 -42
- package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +5 -130
- package/src/components/Form/__tests__/FormGroup.test.tsx +82 -57
- package/src/components/Form/__tests__/FormHelperText.test.tsx +42 -28
- package/src/components/Form/__tests__/__snapshots__/FormGroup.test.tsx.snap +51 -250
- package/src/components/Form/__tests__/__snapshots__/FormHelperText.test.tsx.snap +4 -44
- package/src/components/FormSelect/__tests__/FormSelect.test.tsx +131 -122
- package/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap +9 -301
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +17 -41
- package/src/components/InputGroup/__tests__/InputGroupText.test.tsx +17 -0
- package/src/components/Label/__tests__/Label.test.tsx +127 -68
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +26 -828
- package/src/components/LabelGroup/__tests__/LabelGroup.test.tsx +24 -20
- package/src/components/LabelGroup/__tests__/__snapshots__/LabelGroup.test.tsx.snap +10 -12
- package/src/components/LoginPage/LoginFooterItem.tsx +0 -2
- package/src/components/LoginPage/__tests__/LoginFooterItem.test.tsx +23 -24
- package/src/components/LoginPage/__tests__/LoginForm.test.tsx +40 -33
- package/src/components/LoginPage/__tests__/LoginMainBody.test.tsx +10 -16
- package/src/components/LoginPage/__tests__/LoginMainFooter.test.tsx +11 -17
- package/src/components/LoginPage/__tests__/LoginMainFooterBandItem.test.tsx +23 -24
- package/src/components/LoginPage/__tests__/LoginMainFooterLinksItem.test.tsx +20 -24
- package/src/components/LoginPage/__tests__/LoginMainHeader.test.tsx +14 -20
- package/src/components/LoginPage/__tests__/__snapshots__/LoginFooterItem.test.tsx.snap +3 -13
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +3 -415
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainBody.test.tsx.snap +2 -8
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooter.test.tsx.snap +2 -8
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterBandItem.test.tsx.snap +3 -17
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +3 -31
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainHeader.test.tsx.snap +3 -12
- package/src/components/TextInput/TextInput.tsx +4 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`FormGroup
|
|
4
|
-
<
|
|
3
|
+
exports[`FormGroup should render correctly when label is not a string with Children = Array 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-form__group"
|
|
7
7
|
>
|
|
@@ -32,14 +32,13 @@ exports[`FormGroup component should render correctly when label is not a string
|
|
|
32
32
|
id="id"
|
|
33
33
|
/>
|
|
34
34
|
<input />
|
|
35
|
-
|
|
36
35
|
</div>
|
|
37
36
|
</div>
|
|
38
|
-
</
|
|
37
|
+
</DocumentFragment>
|
|
39
38
|
`;
|
|
40
39
|
|
|
41
|
-
exports[`FormGroup
|
|
42
|
-
<
|
|
40
|
+
exports[`FormGroup should render default form group variant 1`] = `
|
|
41
|
+
<DocumentFragment>
|
|
43
42
|
<div
|
|
44
43
|
class="pf-c-form__group"
|
|
45
44
|
>
|
|
@@ -73,11 +72,11 @@ exports[`FormGroup component should render default form group variant 1`] = `
|
|
|
73
72
|
</div>
|
|
74
73
|
</div>
|
|
75
74
|
</div>
|
|
76
|
-
</
|
|
75
|
+
</DocumentFragment>
|
|
77
76
|
`;
|
|
78
77
|
|
|
79
|
-
exports[`FormGroup
|
|
80
|
-
<
|
|
78
|
+
exports[`FormGroup should render form group invalid variant 1`] = `
|
|
79
|
+
<DocumentFragment>
|
|
81
80
|
<div
|
|
82
81
|
class="pf-c-form__group"
|
|
83
82
|
>
|
|
@@ -111,11 +110,11 @@ exports[`FormGroup component should render form group invalid variant 1`] = `
|
|
|
111
110
|
</div>
|
|
112
111
|
</div>
|
|
113
112
|
</div>
|
|
114
|
-
</
|
|
113
|
+
</DocumentFragment>
|
|
115
114
|
`;
|
|
116
115
|
|
|
117
|
-
exports[`FormGroup
|
|
118
|
-
<
|
|
116
|
+
exports[`FormGroup should render form group validated error variant 1`] = `
|
|
117
|
+
<DocumentFragment>
|
|
119
118
|
<div
|
|
120
119
|
class="pf-c-form__group"
|
|
121
120
|
>
|
|
@@ -124,20 +123,13 @@ exports[`FormGroup component should render form group required variant 1`] = `
|
|
|
124
123
|
>
|
|
125
124
|
<label
|
|
126
125
|
class="pf-c-form__label"
|
|
127
|
-
for="id"
|
|
126
|
+
for="label-id"
|
|
128
127
|
>
|
|
129
128
|
<span
|
|
130
129
|
class="pf-c-form__label-text"
|
|
131
130
|
>
|
|
132
131
|
label
|
|
133
132
|
</span>
|
|
134
|
-
<span
|
|
135
|
-
aria-hidden="true"
|
|
136
|
-
class="pf-c-form__label-required"
|
|
137
|
-
>
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
</span>
|
|
141
133
|
</label>
|
|
142
134
|
|
|
143
135
|
</div>
|
|
@@ -147,16 +139,16 @@ exports[`FormGroup component should render form group required variant 1`] = `
|
|
|
147
139
|
<input
|
|
148
140
|
id="id"
|
|
149
141
|
/>
|
|
150
|
-
|
|
151
142
|
</div>
|
|
152
143
|
</div>
|
|
153
|
-
</
|
|
144
|
+
</DocumentFragment>
|
|
154
145
|
`;
|
|
155
146
|
|
|
156
|
-
exports[`FormGroup
|
|
157
|
-
<
|
|
147
|
+
exports[`FormGroup should render form group validated success variant 1`] = `
|
|
148
|
+
<DocumentFragment>
|
|
158
149
|
<div
|
|
159
150
|
class="pf-c-form__group"
|
|
151
|
+
data-testid="form-group-test-id"
|
|
160
152
|
>
|
|
161
153
|
<div
|
|
162
154
|
class="pf-c-form__group-label"
|
|
@@ -175,78 +167,37 @@ exports[`FormGroup component should render form group validated error variant 1`
|
|
|
175
167
|
</div>
|
|
176
168
|
<div
|
|
177
169
|
class="pf-c-form__group-control"
|
|
178
|
-
>
|
|
179
|
-
<input
|
|
180
|
-
id="id"
|
|
181
|
-
/>
|
|
182
|
-
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
`;
|
|
187
|
-
|
|
188
|
-
exports[`FormGroup component should render form group validated success variant 1`] = `
|
|
189
|
-
<FormGroup
|
|
190
|
-
fieldId="label-id"
|
|
191
|
-
helperText="Validated FormGroup"
|
|
192
|
-
label="label"
|
|
193
|
-
validated="success"
|
|
194
|
-
>
|
|
195
|
-
<div
|
|
196
|
-
className="pf-c-form__group"
|
|
197
|
-
>
|
|
198
|
-
<div
|
|
199
|
-
className="pf-c-form__group-label"
|
|
200
|
-
>
|
|
201
|
-
<label
|
|
202
|
-
className="pf-c-form__label"
|
|
203
|
-
htmlFor="label-id"
|
|
204
|
-
>
|
|
205
|
-
<span
|
|
206
|
-
className="pf-c-form__label-text"
|
|
207
|
-
>
|
|
208
|
-
label
|
|
209
|
-
</span>
|
|
210
|
-
</label>
|
|
211
|
-
|
|
212
|
-
</div>
|
|
213
|
-
<div
|
|
214
|
-
className="pf-c-form__group-control"
|
|
215
170
|
>
|
|
216
171
|
<input
|
|
217
172
|
id="id"
|
|
218
173
|
/>
|
|
219
174
|
<div
|
|
220
175
|
aria-live="polite"
|
|
221
|
-
|
|
176
|
+
class="pf-c-form__helper-text pf-m-success"
|
|
222
177
|
id="label-id-helper"
|
|
223
178
|
>
|
|
224
179
|
Validated FormGroup
|
|
225
180
|
</div>
|
|
226
181
|
</div>
|
|
227
182
|
</div>
|
|
228
|
-
</
|
|
183
|
+
</DocumentFragment>
|
|
229
184
|
`;
|
|
230
185
|
|
|
231
|
-
exports[`FormGroup
|
|
232
|
-
<
|
|
233
|
-
fieldId="label-id"
|
|
234
|
-
helperText="Validated FormGroup"
|
|
235
|
-
label="label"
|
|
236
|
-
validated="warning"
|
|
237
|
-
>
|
|
186
|
+
exports[`FormGroup should render form group validated warning variant 1`] = `
|
|
187
|
+
<DocumentFragment>
|
|
238
188
|
<div
|
|
239
|
-
|
|
189
|
+
class="pf-c-form__group"
|
|
190
|
+
data-testid="form-group-test-id"
|
|
240
191
|
>
|
|
241
192
|
<div
|
|
242
|
-
|
|
193
|
+
class="pf-c-form__group-label"
|
|
243
194
|
>
|
|
244
195
|
<label
|
|
245
|
-
|
|
246
|
-
|
|
196
|
+
class="pf-c-form__label"
|
|
197
|
+
for="label-id"
|
|
247
198
|
>
|
|
248
199
|
<span
|
|
249
|
-
|
|
200
|
+
class="pf-c-form__label-text"
|
|
250
201
|
>
|
|
251
202
|
label
|
|
252
203
|
</span>
|
|
@@ -254,127 +205,25 @@ exports[`FormGroup component should render form group validated warning variant
|
|
|
254
205
|
|
|
255
206
|
</div>
|
|
256
207
|
<div
|
|
257
|
-
|
|
208
|
+
class="pf-c-form__group-control"
|
|
258
209
|
>
|
|
259
210
|
<input
|
|
260
211
|
id="id"
|
|
261
212
|
/>
|
|
262
213
|
<div
|
|
263
214
|
aria-live="polite"
|
|
264
|
-
|
|
215
|
+
class="pf-c-form__helper-text pf-m-warning"
|
|
265
216
|
id="label-id-helper"
|
|
266
217
|
>
|
|
267
218
|
Validated FormGroup
|
|
268
219
|
</div>
|
|
269
220
|
</div>
|
|
270
221
|
</div>
|
|
271
|
-
</
|
|
272
|
-
`;
|
|
273
|
-
|
|
274
|
-
exports[`FormGroup component should render form group variant with function helperText 1`] = `
|
|
275
|
-
<div>
|
|
276
|
-
<div
|
|
277
|
-
class="pf-c-form__group"
|
|
278
|
-
>
|
|
279
|
-
<div
|
|
280
|
-
class="pf-c-form__group-label"
|
|
281
|
-
>
|
|
282
|
-
<label
|
|
283
|
-
class="pf-c-form__label"
|
|
284
|
-
for="label-id"
|
|
285
|
-
>
|
|
286
|
-
<span
|
|
287
|
-
class="pf-c-form__label-text"
|
|
288
|
-
>
|
|
289
|
-
Label
|
|
290
|
-
</span>
|
|
291
|
-
</label>
|
|
292
|
-
|
|
293
|
-
</div>
|
|
294
|
-
<div
|
|
295
|
-
class="pf-c-form__group-control"
|
|
296
|
-
>
|
|
297
|
-
<input
|
|
298
|
-
id="label-id"
|
|
299
|
-
/>
|
|
300
|
-
<div>
|
|
301
|
-
label
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
</div>
|
|
306
|
-
`;
|
|
307
|
-
|
|
308
|
-
exports[`FormGroup component should render form group variant with function label 1`] = `
|
|
309
|
-
<div>
|
|
310
|
-
<div
|
|
311
|
-
class="pf-c-form__group"
|
|
312
|
-
>
|
|
313
|
-
<div
|
|
314
|
-
class="pf-c-form__group-label"
|
|
315
|
-
>
|
|
316
|
-
<label
|
|
317
|
-
class="pf-c-form__label"
|
|
318
|
-
for="id"
|
|
319
|
-
>
|
|
320
|
-
<span
|
|
321
|
-
class="pf-c-form__label-text"
|
|
322
|
-
>
|
|
323
|
-
<div>
|
|
324
|
-
label
|
|
325
|
-
</div>
|
|
326
|
-
</span>
|
|
327
|
-
</label>
|
|
328
|
-
|
|
329
|
-
</div>
|
|
330
|
-
<div
|
|
331
|
-
class="pf-c-form__group-control"
|
|
332
|
-
>
|
|
333
|
-
<input
|
|
334
|
-
aria-label="input"
|
|
335
|
-
/>
|
|
336
|
-
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
</div>
|
|
340
|
-
`;
|
|
341
|
-
|
|
342
|
-
exports[`FormGroup component should render form group variant with node helperText 1`] = `
|
|
343
|
-
<div>
|
|
344
|
-
<div
|
|
345
|
-
class="pf-c-form__group"
|
|
346
|
-
>
|
|
347
|
-
<div
|
|
348
|
-
class="pf-c-form__group-label"
|
|
349
|
-
>
|
|
350
|
-
<label
|
|
351
|
-
class="pf-c-form__label"
|
|
352
|
-
for="label-id"
|
|
353
|
-
>
|
|
354
|
-
<span
|
|
355
|
-
class="pf-c-form__label-text"
|
|
356
|
-
>
|
|
357
|
-
Label
|
|
358
|
-
</span>
|
|
359
|
-
</label>
|
|
360
|
-
|
|
361
|
-
</div>
|
|
362
|
-
<div
|
|
363
|
-
class="pf-c-form__group-control"
|
|
364
|
-
>
|
|
365
|
-
<input
|
|
366
|
-
id="label-id"
|
|
367
|
-
/>
|
|
368
|
-
<h1>
|
|
369
|
-
Header
|
|
370
|
-
</h1>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
222
|
+
</DocumentFragment>
|
|
374
223
|
`;
|
|
375
224
|
|
|
376
|
-
exports[`FormGroup
|
|
377
|
-
<
|
|
225
|
+
exports[`FormGroup should render form group variant with node label 1`] = `
|
|
226
|
+
<DocumentFragment>
|
|
378
227
|
<div
|
|
379
228
|
class="pf-c-form__group"
|
|
380
229
|
>
|
|
@@ -401,14 +250,13 @@ exports[`FormGroup component should render form group variant with node label 1`
|
|
|
401
250
|
<input
|
|
402
251
|
aria-label="input"
|
|
403
252
|
/>
|
|
404
|
-
|
|
405
253
|
</div>
|
|
406
254
|
</div>
|
|
407
|
-
</
|
|
255
|
+
</DocumentFragment>
|
|
408
256
|
`;
|
|
409
257
|
|
|
410
|
-
exports[`FormGroup
|
|
411
|
-
<
|
|
258
|
+
exports[`FormGroup should render form group variant with required label 1`] = `
|
|
259
|
+
<DocumentFragment>
|
|
412
260
|
<div
|
|
413
261
|
class="pf-c-form__group"
|
|
414
262
|
>
|
|
@@ -428,8 +276,7 @@ exports[`FormGroup component should render form group variant with required labe
|
|
|
428
276
|
aria-hidden="true"
|
|
429
277
|
class="pf-c-form__label-required"
|
|
430
278
|
>
|
|
431
|
-
|
|
432
|
-
*
|
|
279
|
+
*
|
|
433
280
|
</span>
|
|
434
281
|
</label>
|
|
435
282
|
|
|
@@ -440,14 +287,13 @@ exports[`FormGroup component should render form group variant with required labe
|
|
|
440
287
|
<input
|
|
441
288
|
id="label-id"
|
|
442
289
|
/>
|
|
443
|
-
|
|
444
290
|
</div>
|
|
445
291
|
</div>
|
|
446
|
-
</
|
|
292
|
+
</DocumentFragment>
|
|
447
293
|
`;
|
|
448
294
|
|
|
449
|
-
exports[`FormGroup
|
|
450
|
-
<
|
|
295
|
+
exports[`FormGroup should render form group variant without label 1`] = `
|
|
296
|
+
<DocumentFragment>
|
|
451
297
|
<div
|
|
452
298
|
class="pf-c-form__group"
|
|
453
299
|
>
|
|
@@ -457,14 +303,13 @@ exports[`FormGroup component should render form group variant without label 1`]
|
|
|
457
303
|
<input
|
|
458
304
|
aria-label="input"
|
|
459
305
|
/>
|
|
460
|
-
|
|
461
306
|
</div>
|
|
462
307
|
</div>
|
|
463
|
-
</
|
|
308
|
+
</DocumentFragment>
|
|
464
309
|
`;
|
|
465
310
|
|
|
466
|
-
exports[`FormGroup
|
|
467
|
-
<
|
|
311
|
+
exports[`FormGroup should render form group with additonal label info 1`] = `
|
|
312
|
+
<DocumentFragment>
|
|
468
313
|
<div
|
|
469
314
|
class="pf-c-form__group"
|
|
470
315
|
>
|
|
@@ -500,14 +345,13 @@ exports[`FormGroup component should render form group with additonal label info
|
|
|
500
345
|
<input
|
|
501
346
|
aria-label="input"
|
|
502
347
|
/>
|
|
503
|
-
|
|
504
348
|
</div>
|
|
505
349
|
</div>
|
|
506
|
-
</
|
|
350
|
+
</DocumentFragment>
|
|
507
351
|
`;
|
|
508
352
|
|
|
509
|
-
exports[`FormGroup
|
|
510
|
-
<
|
|
353
|
+
exports[`FormGroup should render helper text above input 1`] = `
|
|
354
|
+
<DocumentFragment>
|
|
511
355
|
<form
|
|
512
356
|
class="pf-c-form pf-m-horizontal"
|
|
513
357
|
novalidate=""
|
|
@@ -546,11 +390,11 @@ exports[`FormGroup component should render helper text above input 1`] = `
|
|
|
546
390
|
</div>
|
|
547
391
|
</div>
|
|
548
392
|
</form>
|
|
549
|
-
</
|
|
393
|
+
</DocumentFragment>
|
|
550
394
|
`;
|
|
551
395
|
|
|
552
|
-
exports[`FormGroup
|
|
553
|
-
<
|
|
396
|
+
exports[`FormGroup should render horizontal form group variant 1`] = `
|
|
397
|
+
<DocumentFragment>
|
|
554
398
|
<form
|
|
555
399
|
class="pf-c-form pf-m-horizontal"
|
|
556
400
|
novalidate=""
|
|
@@ -589,54 +433,11 @@ exports[`FormGroup component should render horizontal form group variant 1`] = `
|
|
|
589
433
|
</div>
|
|
590
434
|
</div>
|
|
591
435
|
</form>
|
|
592
|
-
</
|
|
593
|
-
`;
|
|
594
|
-
|
|
595
|
-
exports[`FormGroup component should render inline form group variant 1`] = `
|
|
596
|
-
<FormGroup
|
|
597
|
-
fieldId="label-id"
|
|
598
|
-
helperText="this is helper text"
|
|
599
|
-
isInline={true}
|
|
600
|
-
label="label"
|
|
601
|
-
>
|
|
602
|
-
<div
|
|
603
|
-
className="pf-c-form__group"
|
|
604
|
-
>
|
|
605
|
-
<div
|
|
606
|
-
className="pf-c-form__group-label"
|
|
607
|
-
>
|
|
608
|
-
<label
|
|
609
|
-
className="pf-c-form__label"
|
|
610
|
-
htmlFor="label-id"
|
|
611
|
-
>
|
|
612
|
-
<span
|
|
613
|
-
className="pf-c-form__label-text"
|
|
614
|
-
>
|
|
615
|
-
label
|
|
616
|
-
</span>
|
|
617
|
-
</label>
|
|
618
|
-
|
|
619
|
-
</div>
|
|
620
|
-
<div
|
|
621
|
-
className="pf-c-form__group-control pf-m-inline"
|
|
622
|
-
>
|
|
623
|
-
<input
|
|
624
|
-
id="label-id"
|
|
625
|
-
/>
|
|
626
|
-
<div
|
|
627
|
-
aria-live="polite"
|
|
628
|
-
className="pf-c-form__helper-text"
|
|
629
|
-
id="label-id-helper"
|
|
630
|
-
>
|
|
631
|
-
this is helper text
|
|
632
|
-
</div>
|
|
633
|
-
</div>
|
|
634
|
-
</div>
|
|
635
|
-
</FormGroup>
|
|
436
|
+
</DocumentFragment>
|
|
636
437
|
`;
|
|
637
438
|
|
|
638
|
-
exports[`FormGroup
|
|
639
|
-
<
|
|
439
|
+
exports[`FormGroup should render stacked horizontal form group variant 1`] = `
|
|
440
|
+
<DocumentFragment>
|
|
640
441
|
<form
|
|
641
442
|
class="pf-c-form pf-m-horizontal"
|
|
642
443
|
novalidate=""
|
|
@@ -675,5 +476,5 @@ exports[`FormGroup component should render stacked horizontal form group variant
|
|
|
675
476
|
</div>
|
|
676
477
|
</div>
|
|
677
478
|
</form>
|
|
678
|
-
</
|
|
479
|
+
</DocumentFragment>
|
|
679
480
|
`;
|
|
@@ -1,49 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`LoginFooterItem with custom node 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<p
|
|
6
|
-
class="pf-c-form__helper-text pf-m-hidden"
|
|
7
|
-
>
|
|
8
|
-
<div>
|
|
9
|
-
My custom node
|
|
10
|
-
</div>
|
|
11
|
-
</p>
|
|
12
|
-
</div>
|
|
13
|
-
`;
|
|
3
|
+
exports[`FormHelperText LoginFooterItem with custom node 1`] = `"<p class=\\"pf-c-form__helper-text pf-m-hidden\\"><div>My custom node</div></p>"`;
|
|
14
4
|
|
|
15
|
-
exports[`className is added to the root element 1`] = `"pf-c-form__helper-text pf-m-hidden extra-class"`;
|
|
5
|
+
exports[`FormHelperText className is added to the root element 1`] = `"<p class=\\"pf-c-form__helper-text pf-m-hidden extra-class\\">test</p>"`;
|
|
16
6
|
|
|
17
|
-
exports[`renders with PatternFly Core styles 1`] = `
|
|
18
|
-
<div>
|
|
19
|
-
<p
|
|
20
|
-
class="pf-c-form__helper-text pf-m-error"
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
`;
|
|
7
|
+
exports[`FormHelperText renders with PatternFly Core styles 1`] = `"<p class=\\"pf-c-form__helper-text pf-m-error\\">test</p>"`;
|
|
24
8
|
|
|
25
|
-
exports[`renders with icon 1`] = `
|
|
26
|
-
<div>
|
|
27
|
-
<p
|
|
28
|
-
class="pf-c-form__helper-text pf-m-error"
|
|
29
|
-
>
|
|
30
|
-
<span
|
|
31
|
-
class="pf-c-form__helper-text-icon"
|
|
32
|
-
>
|
|
33
|
-
<svg
|
|
34
|
-
aria-hidden="true"
|
|
35
|
-
fill="currentColor"
|
|
36
|
-
height="1em"
|
|
37
|
-
role="img"
|
|
38
|
-
style="vertical-align: -0.125em;"
|
|
39
|
-
viewBox="0 0 512 512"
|
|
40
|
-
width="1em"
|
|
41
|
-
>
|
|
42
|
-
<path
|
|
43
|
-
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
|
|
44
|
-
/>
|
|
45
|
-
</svg>
|
|
46
|
-
</span>
|
|
47
|
-
</p>
|
|
48
|
-
</div>
|
|
49
|
-
`;
|
|
9
|
+
exports[`FormHelperText renders with icon 1`] = `"<p class=\\"pf-c-form__helper-text pf-m-error\\"><span class=\\"pf-c-form__helper-text-icon\\"><svg style=\\"vertical-align: -0.125em;\\" fill=\\"currentColor\\" height=\\"1em\\" width=\\"1em\\" viewBox=\\"0 0 512 512\\" aria-hidden=\\"true\\" role=\\"img\\"><path d=\\"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z\\"></path></svg></span>test</p>"`;
|