File tree 9 files changed +23
-80
lines changed
Nav/__tests__/__snapshots__
SearchInput/__tests__/__snapshots__
ToggleGroup/__tests__/__snapshots__
layouts/Flex/__tests__/__snapshots__
react-drag-drop/src/components/DragDrop/__tests__/__snapshots__
9 files changed +23
-80
lines changed Original file line number Diff line number Diff line change 2
2
3
3
exports [` ListItem should match snapshot (auto-generated) 1` ] = `
4
4
<DocumentFragment >
5
- <li
6
- class = " "
7
- >
5
+ <li >
8
6
<span >
9
7
ReactNode
10
8
</span >
Original file line number Diff line number Diff line change @@ -183,23 +183,17 @@ exports[`List inline list 1`] = `
183
183
<ul
184
184
class = " pf-v6-c-list"
185
185
>
186
- <li
187
- class = " "
188
- >
186
+ <li >
189
187
<span >
190
188
First
191
189
</span >
192
190
</li >
193
- <li
194
- class = " "
195
- >
191
+ <li >
196
192
<span >
197
193
Second
198
194
</span >
199
195
</li >
200
- <li
201
- class = " "
202
- >
196
+ <li >
203
197
<span >
204
198
Third
205
199
</span >
@@ -215,23 +209,17 @@ exports[`List ordered list 1`] = `
215
209
class = " pf-v6-c-list"
216
210
type = " 1"
217
211
>
218
- <li
219
- class = " "
220
- >
212
+ <li >
221
213
<span >
222
214
Apple
223
215
</span >
224
216
</li >
225
- <li
226
- class = " "
227
- >
217
+ <li >
228
218
<span >
229
219
Banana
230
220
</span >
231
221
</li >
232
- <li
233
- class = " "
234
- >
222
+ <li >
235
223
<span >
236
224
Orange
237
225
</span >
@@ -248,23 +236,17 @@ exports[`List simple list 1`] = `
248
236
<ul
249
237
class = " pf-v6-c-list"
250
238
>
251
- <li
252
- class = " "
253
- >
239
+ <li >
254
240
<span >
255
241
First
256
242
</span >
257
243
</li >
258
- <li
259
- class = " "
260
- >
244
+ <li >
261
245
<span >
262
246
Second
263
247
</span >
264
248
</li >
265
- <li
266
- class = " "
267
- >
249
+ <li >
268
250
<span >
269
251
Third
270
252
</span >
Original file line number Diff line number Diff line change @@ -1014,7 +1014,6 @@ exports[`Nav Nav List with flyout 1`] = `
1014
1014
</li >
1015
1015
</ul >
1016
1016
<div
1017
- class = " "
1018
1017
data-popper-escaped = " true"
1019
1018
data-popper-placement = " right-start"
1020
1019
data-popper-reference-hidden = " true"
Original file line number Diff line number Diff line change 2
2
3
3
exports [` SearchInput advanced search 1` ] = `
4
4
<DocumentFragment >
5
- <div
6
- class = " "
7
- >
5
+ <div >
8
6
<div
9
7
class = " pf-v6-c-input-group"
10
8
>
@@ -145,7 +143,6 @@ exports[`SearchInput advanced search 1`] = `
145
143
exports [` SearchInput advanced search with custom attributes 1` ] = `
146
144
<DocumentFragment >
147
145
<div
148
- class = " "
149
146
data-testid = " test-id"
150
147
>
151
148
<div
@@ -282,7 +279,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
282
279
</div >
283
280
</div >
284
281
<div
285
- class = " "
286
282
data-popper-escaped = " true"
287
283
data-popper-placement = " bottom-start"
288
284
data-popper-reference-hidden = " true"
@@ -478,9 +474,7 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
478
474
479
475
exports [` SearchInput renders search input in strict mode 1` ] = `
480
476
<DocumentFragment >
481
- <div
482
- class = " "
483
- >
477
+ <div >
484
478
<div
485
479
class = " pf-v6-c-input-group"
486
480
>
Original file line number Diff line number Diff line change 2
2
3
3
exports [` empty 1` ] = `
4
4
<DocumentFragment >
5
- <span
6
- class = " "
7
- />
5
+ <span />
8
6
</DocumentFragment >
9
7
` ;
10
8
Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ exports[`Flex Nested flex 1`] = `
8
8
<div
9
9
class = " pf-v6-l-flex"
10
10
>
11
- <div
12
- class = " "
13
- >
11
+ <div >
14
12
Test
15
13
</div >
16
14
</div >
@@ -23,9 +21,7 @@ exports[`Flex Simple flex with single item 1`] = `
23
21
<div
24
22
class = " pf-v6-l-flex"
25
23
>
26
- <div
27
- class = " "
28
- >
24
+ <div >
29
25
Test
30
26
</div >
31
27
</div >
@@ -37,9 +33,7 @@ exports[`Flex alternative component 1`] = `
37
33
<ul
38
34
class = " pf-v6-l-flex"
39
35
>
40
- <li
41
- class = " "
42
- >
36
+ <li >
43
37
Test
44
38
</li >
45
39
</ul >
Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ exports[`renders some divs 1`] = `
6
6
class = " pf-c-droppable pf-m-dragging"
7
7
>
8
8
<div >
9
- <div
10
- class = " "
11
- >
9
+ <div >
12
10
<button
13
11
aria-describedby = " DndDescribedBy-0"
14
12
aria-disabled = " false"
@@ -46,9 +44,7 @@ exports[`renders some divs 1`] = `
46
44
</button >
47
45
one
48
46
</div >
49
- <div
50
- class = " "
51
- >
47
+ <div >
52
48
<button
53
49
aria-describedby = " DndDescribedBy-0"
54
50
aria-disabled = " false"
@@ -86,9 +82,7 @@ exports[`renders some divs 1`] = `
86
82
</button >
87
83
two
88
84
</div >
89
- <div
90
- class = " "
91
- >
85
+ <div >
92
86
<button
93
87
aria-describedby = " DndDescribedBy-0"
94
88
aria-disabled = " false"
Original file line number Diff line number Diff line change 2
2
*
3
3
* @param {any } args list of objects, string, or arrays to reduce
4
4
*/
5
- export function css ( ...args : any ) : string {
6
- // Adapted from https://github.com/JedWatson/classnames/blob/master /index.js
5
+ export function css ( ...args : any ) : string | undefined {
6
+ // Adapted from https://github.com/JedWatson/classnames/blob/main /index.js
7
7
const classes = [ ] as string [ ] ;
8
8
const hasOwn = { } . hasOwnProperty ;
9
9
@@ -26,5 +26,5 @@ export function css(...args: any): string {
26
26
}
27
27
} ) ;
28
28
29
- return classes . join ( ' ' ) ;
29
+ return classes . join ( ' ' ) || undefined ;
30
30
}
Original file line number Diff line number Diff line change @@ -11475,23 +11475,7 @@ __metadata:
11475
11475
languageName: node
11476
11476
linkType: hard
11477
11477
11478
- "glob@npm:^11.0.1":
11479
- version: 11.0.1
11480
- resolution: "glob@npm:11.0.1"
11481
- dependencies:
11482
- foreground-child: "npm:^3.1.0"
11483
- jackspeak: "npm:^4.0.1"
11484
- minimatch: "npm:^10.0.0"
11485
- minipass: "npm:^7.1.2"
11486
- package-json-from-dist: "npm:^1.0.0"
11487
- path-scurry: "npm:^2.0.0"
11488
- bin:
11489
- glob: dist/esm/bin.mjs
11490
- checksum: 10c0/2b32588be52e9e90f914c7d8dec32f3144b81b84054b0f70e9adfebf37cd7014570489f2a79d21f7801b9a4bd4cca94f426966bfd00fb64a5b705cfe10da3a03
11491
- languageName: node
11492
- linkType: hard
11493
-
11494
- "glob@npm:^11.0.0":
11478
+ "glob@npm:^11.0.0, glob@npm:^11.0.1":
11495
11479
version: 11.0.1
11496
11480
resolution: "glob@npm:11.0.1"
11497
11481
dependencies:
You can’t perform that action at this time.
0 commit comments