@patternfly/react-core 4.277.0 → 4.278.1
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 +19 -0
- package/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/components/InputGroup/InputGroup.js +1 -12
- package/components/InputGroup/InputGroup.js.map +1 -1
- package/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/components/TreeView/TreeViewListItem.js +3 -3
- package/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.js +1 -12
- package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.js +3 -3
- package/dist/esm/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/esm/next/components/Dropdown/Dropdown.d.ts +8 -0
- package/dist/esm/next/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/esm/next/components/Dropdown/Dropdown.js +11 -4
- package/dist/esm/next/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.js +1 -12
- package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.js +3 -3
- package/dist/js/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/js/next/components/Dropdown/Dropdown.d.ts +8 -0
- package/dist/js/next/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/js/next/components/Dropdown/Dropdown.js +11 -4
- package/dist/js/next/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/umd/react-core.min.js +2 -2
- package/next/components/Dropdown/Dropdown.d.ts +8 -0
- package/next/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/next/components/Dropdown/Dropdown.js +11 -4
- package/next/components/Dropdown/Dropdown.js.map +1 -1
- package/package.json +2 -2
- package/src/components/InputGroup/InputGroup.tsx +1 -17
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +7 -36
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +0 -1
- package/src/components/TreeView/TreeViewListItem.tsx +3 -1
- package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +60 -0
- package/src/next/components/Dropdown/Dropdown.tsx +22 -10
|
@@ -29,6 +29,14 @@ export interface DropdownProps extends MenuProps, OUIAProps {
|
|
|
29
29
|
ouiaSafe?: boolean;
|
|
30
30
|
/** z-index of the dropdown menu */
|
|
31
31
|
zIndex?: number;
|
|
32
|
+
/** The container to append the dropdown to. Defaults to 'inline'.
|
|
33
|
+
* If your dropdown is being cut off you can append it to an element higher up the DOM tree.
|
|
34
|
+
* Some examples:
|
|
35
|
+
* appendTo="inline"
|
|
36
|
+
* appendTo={() => document.body}
|
|
37
|
+
* appendTo={document.getElementById('target')}
|
|
38
|
+
*/
|
|
39
|
+
appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
|
|
32
40
|
}
|
|
33
41
|
export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<any>>;
|
|
34
42
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAqB,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAAgB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,SAAS;IACzD,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mDAAmD;IAC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ACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,MAAM,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7D,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7F;yFACqF;IACrF,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iLAAiL;IACjL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,QAAQ,CAAC;CACzD;AAmGD,eAAO,MAAM,QAAQ,2EAEnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Menu, MenuContent } from '../../../components/Menu';
|
|
|
5
5
|
import { Popper } from '../../../helpers/Popper/Popper';
|
|
6
6
|
import { useOUIAProps } from '../../../helpers';
|
|
7
7
|
const DropdownBase = (_a) => {
|
|
8
|
-
var { children, className, onSelect, isOpen, toggle, onOpenChange, isPlain, isScrollable, minWidth, innerRef, ouiaId, ouiaSafe = true, zIndex = 9999 } = _a, props = __rest(_a, ["children", "className", "onSelect", "isOpen", "toggle", "onOpenChange", "isPlain", "isScrollable", "minWidth", "innerRef", "ouiaId", "ouiaSafe", "zIndex"]);
|
|
8
|
+
var { children, className, onSelect, isOpen, toggle, onOpenChange, isPlain, isScrollable, minWidth, innerRef, ouiaId, ouiaSafe = true, zIndex = 9999, appendTo = 'inline' } = _a, props = __rest(_a, ["children", "className", "onSelect", "isOpen", "toggle", "onOpenChange", "isPlain", "isScrollable", "minWidth", "innerRef", "ouiaId", "ouiaSafe", "zIndex", "appendTo"]);
|
|
9
9
|
const localMenuRef = React.useRef();
|
|
10
10
|
const toggleRef = React.useRef();
|
|
11
11
|
const containerRef = React.useRef();
|
|
@@ -51,10 +51,17 @@ const DropdownBase = (_a) => {
|
|
|
51
51
|
style: {
|
|
52
52
|
'--pf-c-menu--MinWidth': minWidth
|
|
53
53
|
}
|
|
54
|
-
}), props),
|
|
54
|
+
}), props, ouiaProps),
|
|
55
55
|
React.createElement(MenuContent, null, children)));
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
const popperProps = {
|
|
57
|
+
trigger: toggle(toggleRef),
|
|
58
|
+
removeFindDomNode: true,
|
|
59
|
+
popper: menu,
|
|
60
|
+
isVisible: isOpen,
|
|
61
|
+
zIndex
|
|
62
|
+
};
|
|
63
|
+
return appendTo === 'inline' ? (React.createElement("div", { ref: containerRef },
|
|
64
|
+
React.createElement(Popper, Object.assign({}, popperProps, { appendTo: containerRef.current || undefined })))) : (React.createElement(Popper, Object.assign({}, popperProps, { appendTo: appendTo })));
|
|
58
65
|
};
|
|
59
66
|
export const Dropdown = React.forwardRef((props, ref) => (React.createElement(DropdownBase, Object.assign({ innerRef: ref }, props))));
|
|
60
67
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../../src/next/components/Dropdown/Dropdown.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AC,CAAC,CACF,oBAAC,MAAM,oBAAK,WAAW,IAAE,QAAQ,EAAE,QAAQ,IAAI,CAChD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAoB,EAAE,GAAmB,EAAE,EAAE,CAAC,CACtF,oBAAC,YAAY,kBAAC,QAAQ,EAAE,GAAG,IAAM,KAAK,EAAI,CAC3C,CAAC,CAAC;AACH,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.278.1",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"react": "^16.8 || ^17 || ^18",
|
|
71
71
|
"react-dom": "^16.8 || ^17 || ^18"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "db0cdde6e3e6ae61348129b73bb43c97a98b4617"
|
|
74
74
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/InputGroup/input-group';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import { FormSelect } from '../FormSelect';
|
|
5
|
-
import { TextArea } from '../TextArea';
|
|
6
|
-
import { TextInput } from '../TextInput';
|
|
7
4
|
|
|
8
5
|
export interface InputGroupProps extends React.HTMLProps<HTMLDivElement> {
|
|
9
6
|
/** Additional classes added to the input group. */
|
|
@@ -20,25 +17,12 @@ export const InputGroup: React.FunctionComponent<InputGroupProps> = ({
|
|
|
20
17
|
innerRef,
|
|
21
18
|
...props
|
|
22
19
|
}: InputGroupProps) => {
|
|
23
|
-
const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
|
|
24
|
-
const idItem = React.Children.toArray(children).find(
|
|
25
|
-
(child: any) => !formCtrls.includes(child.type.displayName) && child.props.id
|
|
26
|
-
) as React.ReactElement<{ id: string }>;
|
|
27
|
-
|
|
28
20
|
const ref = React.useRef(null);
|
|
29
21
|
const inputGroupRef = innerRef || ref;
|
|
30
22
|
|
|
31
23
|
return (
|
|
32
24
|
<div ref={inputGroupRef} className={css(styles.inputGroup, className)} {...props}>
|
|
33
|
-
{
|
|
34
|
-
? React.Children.map(children, (child: any) =>
|
|
35
|
-
!formCtrls.includes(child.type.displayName) || child.props['aria-describedby']
|
|
36
|
-
? child
|
|
37
|
-
: React.cloneElement(child, {
|
|
38
|
-
'aria-describedby': child.props['aria-describedby'] === '' ? undefined : idItem.props.id
|
|
39
|
-
})
|
|
40
|
-
)
|
|
41
|
-
: children}
|
|
25
|
+
{children}
|
|
42
26
|
</div>
|
|
43
27
|
);
|
|
44
28
|
};
|
|
@@ -7,47 +7,18 @@ import { Button } from '../../Button';
|
|
|
7
7
|
import { TextInput } from '../../TextInput';
|
|
8
8
|
|
|
9
9
|
describe('InputGroup', () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// If Button has an id props, this should be used in aria-describedby.
|
|
10
|
+
// Regression test for https://github.com/patternfly/patternfly-react/issues/9667
|
|
11
|
+
test('wont add aria-describedby automatically to form-control', () => {
|
|
13
12
|
render(
|
|
14
13
|
<InputGroup>
|
|
15
|
-
<TextInput
|
|
16
|
-
<Button variant="primary" id="
|
|
17
|
-
|
|
14
|
+
<TextInput aria-label="User password" />
|
|
15
|
+
<Button variant="primary" id="show-password-toggler">
|
|
16
|
+
Show
|
|
18
17
|
</Button>
|
|
19
18
|
</InputGroup>
|
|
20
19
|
);
|
|
21
|
-
expect(screen.getByLabelText('some text')).toHaveAttribute('aria-describedby', 'button-id');
|
|
22
|
-
});
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
// If Button has an id props, this should be used in aria-describedby, but this
|
|
27
|
-
// example has an empty aria-describedby to prevent that from happening.
|
|
28
|
-
render(
|
|
29
|
-
<InputGroup>
|
|
30
|
-
<TextInput value="some data" aria-describedby="" aria-label="some text" />
|
|
31
|
-
<Button id="button-id">
|
|
32
|
-
hello
|
|
33
|
-
</Button>
|
|
34
|
-
</InputGroup>
|
|
35
|
-
);
|
|
36
|
-
expect(screen.getByLabelText('some text')).not.toHaveAttribute('aria-describedby');
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
test('wont override aria-describedby in form-control if describedby has value', () => {
|
|
40
|
-
// In this test, TextInput is a form-control component and Button is not.
|
|
41
|
-
// If Button has an id props, this should be used in aria-describedby, but this
|
|
42
|
-
// example has a predefined aria-describedby to prevent that from happening
|
|
43
|
-
render(
|
|
44
|
-
<InputGroup>
|
|
45
|
-
<TextInput value="some data" aria-describedby="myself" aria-label="some text" />
|
|
46
|
-
<Button id="button-id">
|
|
47
|
-
hello
|
|
48
|
-
</Button>
|
|
49
|
-
</InputGroup>
|
|
50
|
-
);
|
|
51
|
-
expect(screen.getByLabelText('some text')).toHaveAttribute('aria-describedby', 'myself');
|
|
21
|
+
const formControl = screen.getByLabelText("User password");
|
|
22
|
+
expect(formControl).not.toHaveAttribute("aria-describedby");
|
|
52
23
|
});
|
|
53
24
|
});
|
|
@@ -124,6 +124,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
|
|
|
124
124
|
}
|
|
125
125
|
}}
|
|
126
126
|
{...((hasCheck || isSelectable) && { 'aria-labelledby': `label-${randomId}` })}
|
|
127
|
+
{...(ToggleComponent === 'button' && { type: 'button' })}
|
|
127
128
|
tabIndex={-1}
|
|
128
129
|
>
|
|
129
130
|
<span className={css(styles.treeViewNodeToggleIcon)}>
|
|
@@ -156,7 +157,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
|
|
|
156
157
|
<>
|
|
157
158
|
{isCompact && title && <span className={css(styles.treeViewNodeTitle)}>{title}</span>}
|
|
158
159
|
{isSelectable ? (
|
|
159
|
-
<button tabIndex={-1} className={css(styles.treeViewNodeText)}>
|
|
160
|
+
<button tabIndex={-1} className={css(styles.treeViewNodeText)} type="button">
|
|
160
161
|
{name}
|
|
161
162
|
</button>
|
|
162
163
|
) : (
|
|
@@ -214,6 +215,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
|
|
|
214
215
|
}}
|
|
215
216
|
{...(hasCheck && { htmlFor: randomId })}
|
|
216
217
|
{...((hasCheck || (isSelectable && children)) && { id: `label-${randomId}` })}
|
|
218
|
+
{...(Component === 'button' && { type: 'button' })}
|
|
217
219
|
>
|
|
218
220
|
<span className={css(styles.treeViewNodeContainer)}>
|
|
219
221
|
{children && renderToggle(randomId)}
|
|
@@ -22,6 +22,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
22
22
|
<button
|
|
23
23
|
class="pf-c-tree-view__node"
|
|
24
24
|
tabindex="0"
|
|
25
|
+
type="button"
|
|
25
26
|
>
|
|
26
27
|
<span
|
|
27
28
|
class="pf-c-tree-view__node-container"
|
|
@@ -75,6 +76,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
75
76
|
>
|
|
76
77
|
<button
|
|
77
78
|
class="pf-c-tree-view__node"
|
|
79
|
+
type="button"
|
|
78
80
|
>
|
|
79
81
|
<span
|
|
80
82
|
class="pf-c-tree-view__node-container"
|
|
@@ -125,6 +127,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
125
127
|
>
|
|
126
128
|
<button
|
|
127
129
|
class="pf-c-tree-view__node"
|
|
130
|
+
type="button"
|
|
128
131
|
>
|
|
129
132
|
<span
|
|
130
133
|
class="pf-c-tree-view__node-container"
|
|
@@ -177,6 +180,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
177
180
|
>
|
|
178
181
|
<button
|
|
179
182
|
class="pf-c-tree-view__node"
|
|
183
|
+
type="button"
|
|
180
184
|
>
|
|
181
185
|
<span
|
|
182
186
|
class="pf-c-tree-view__node-container"
|
|
@@ -227,6 +231,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
227
231
|
>
|
|
228
232
|
<button
|
|
229
233
|
class="pf-c-tree-view__node"
|
|
234
|
+
type="button"
|
|
230
235
|
>
|
|
231
236
|
<span
|
|
232
237
|
class="pf-c-tree-view__node-container"
|
|
@@ -277,6 +282,7 @@ exports[`renders compact no background successfully 1`] = `
|
|
|
277
282
|
>
|
|
278
283
|
<button
|
|
279
284
|
class="pf-c-tree-view__node"
|
|
285
|
+
type="button"
|
|
280
286
|
>
|
|
281
287
|
<span
|
|
282
288
|
class="pf-c-tree-view__node-container"
|
|
@@ -343,6 +349,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
343
349
|
<button
|
|
344
350
|
class="pf-c-tree-view__node"
|
|
345
351
|
tabindex="0"
|
|
352
|
+
type="button"
|
|
346
353
|
>
|
|
347
354
|
<span
|
|
348
355
|
class="pf-c-tree-view__node-container"
|
|
@@ -396,6 +403,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
396
403
|
>
|
|
397
404
|
<button
|
|
398
405
|
class="pf-c-tree-view__node"
|
|
406
|
+
type="button"
|
|
399
407
|
>
|
|
400
408
|
<span
|
|
401
409
|
class="pf-c-tree-view__node-container"
|
|
@@ -446,6 +454,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
446
454
|
>
|
|
447
455
|
<button
|
|
448
456
|
class="pf-c-tree-view__node"
|
|
457
|
+
type="button"
|
|
449
458
|
>
|
|
450
459
|
<span
|
|
451
460
|
class="pf-c-tree-view__node-container"
|
|
@@ -498,6 +507,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
498
507
|
>
|
|
499
508
|
<button
|
|
500
509
|
class="pf-c-tree-view__node"
|
|
510
|
+
type="button"
|
|
501
511
|
>
|
|
502
512
|
<span
|
|
503
513
|
class="pf-c-tree-view__node-container"
|
|
@@ -548,6 +558,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
548
558
|
>
|
|
549
559
|
<button
|
|
550
560
|
class="pf-c-tree-view__node"
|
|
561
|
+
type="button"
|
|
551
562
|
>
|
|
552
563
|
<span
|
|
553
564
|
class="pf-c-tree-view__node-container"
|
|
@@ -598,6 +609,7 @@ exports[`renders compact successfully 1`] = `
|
|
|
598
609
|
>
|
|
599
610
|
<button
|
|
600
611
|
class="pf-c-tree-view__node"
|
|
612
|
+
type="button"
|
|
601
613
|
>
|
|
602
614
|
<span
|
|
603
615
|
class="pf-c-tree-view__node-container"
|
|
@@ -664,6 +676,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
664
676
|
<button
|
|
665
677
|
class="pf-c-tree-view__node"
|
|
666
678
|
tabindex="0"
|
|
679
|
+
type="button"
|
|
667
680
|
>
|
|
668
681
|
<span
|
|
669
682
|
class="pf-c-tree-view__node-container"
|
|
@@ -713,6 +726,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
713
726
|
>
|
|
714
727
|
<button
|
|
715
728
|
class="pf-c-tree-view__node"
|
|
729
|
+
type="button"
|
|
716
730
|
>
|
|
717
731
|
<span
|
|
718
732
|
class="pf-c-tree-view__node-container"
|
|
@@ -759,6 +773,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
759
773
|
>
|
|
760
774
|
<button
|
|
761
775
|
class="pf-c-tree-view__node"
|
|
776
|
+
type="button"
|
|
762
777
|
>
|
|
763
778
|
<span
|
|
764
779
|
class="pf-c-tree-view__node-container"
|
|
@@ -807,6 +822,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
807
822
|
>
|
|
808
823
|
<button
|
|
809
824
|
class="pf-c-tree-view__node"
|
|
825
|
+
type="button"
|
|
810
826
|
>
|
|
811
827
|
<span
|
|
812
828
|
class="pf-c-tree-view__node-container"
|
|
@@ -853,6 +869,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
853
869
|
>
|
|
854
870
|
<button
|
|
855
871
|
class="pf-c-tree-view__node"
|
|
872
|
+
type="button"
|
|
856
873
|
>
|
|
857
874
|
<span
|
|
858
875
|
class="pf-c-tree-view__node-container"
|
|
@@ -899,6 +916,7 @@ exports[`renders guides successfully 1`] = `
|
|
|
899
916
|
>
|
|
900
917
|
<button
|
|
901
918
|
class="pf-c-tree-view__node"
|
|
919
|
+
type="button"
|
|
902
920
|
>
|
|
903
921
|
<span
|
|
904
922
|
class="pf-c-tree-view__node-container"
|
|
@@ -961,6 +979,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
961
979
|
<button
|
|
962
980
|
class="pf-c-tree-view__node"
|
|
963
981
|
tabindex="0"
|
|
982
|
+
type="button"
|
|
964
983
|
>
|
|
965
984
|
<span
|
|
966
985
|
class="pf-c-tree-view__node-container"
|
|
@@ -1010,6 +1029,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
1010
1029
|
>
|
|
1011
1030
|
<button
|
|
1012
1031
|
class="pf-c-tree-view__node"
|
|
1032
|
+
type="button"
|
|
1013
1033
|
>
|
|
1014
1034
|
<span
|
|
1015
1035
|
class="pf-c-tree-view__node-container"
|
|
@@ -1056,6 +1076,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
1056
1076
|
>
|
|
1057
1077
|
<button
|
|
1058
1078
|
class="pf-c-tree-view__node"
|
|
1079
|
+
type="button"
|
|
1059
1080
|
>
|
|
1060
1081
|
<span
|
|
1061
1082
|
class="pf-c-tree-view__node-container"
|
|
@@ -1104,6 +1125,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
1104
1125
|
>
|
|
1105
1126
|
<button
|
|
1106
1127
|
class="pf-c-tree-view__node"
|
|
1128
|
+
type="button"
|
|
1107
1129
|
>
|
|
1108
1130
|
<span
|
|
1109
1131
|
class="pf-c-tree-view__node-container"
|
|
@@ -1150,6 +1172,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
1150
1172
|
>
|
|
1151
1173
|
<button
|
|
1152
1174
|
class="pf-c-tree-view__node"
|
|
1175
|
+
type="button"
|
|
1153
1176
|
>
|
|
1154
1177
|
<span
|
|
1155
1178
|
class="pf-c-tree-view__node-container"
|
|
@@ -1196,6 +1219,7 @@ exports[`tree view renders active successfully 1`] = `
|
|
|
1196
1219
|
>
|
|
1197
1220
|
<button
|
|
1198
1221
|
class="pf-c-tree-view__node"
|
|
1222
|
+
type="button"
|
|
1199
1223
|
>
|
|
1200
1224
|
<span
|
|
1201
1225
|
class="pf-c-tree-view__node-container"
|
|
@@ -1258,6 +1282,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1258
1282
|
<button
|
|
1259
1283
|
class="pf-c-tree-view__node"
|
|
1260
1284
|
tabindex="0"
|
|
1285
|
+
type="button"
|
|
1261
1286
|
>
|
|
1262
1287
|
<span
|
|
1263
1288
|
class="pf-c-tree-view__node-container"
|
|
@@ -1316,6 +1341,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1316
1341
|
>
|
|
1317
1342
|
<button
|
|
1318
1343
|
class="pf-c-tree-view__node"
|
|
1344
|
+
type="button"
|
|
1319
1345
|
>
|
|
1320
1346
|
<span
|
|
1321
1347
|
class="pf-c-tree-view__node-container"
|
|
@@ -1371,6 +1397,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1371
1397
|
>
|
|
1372
1398
|
<button
|
|
1373
1399
|
class="pf-c-tree-view__node"
|
|
1400
|
+
type="button"
|
|
1374
1401
|
>
|
|
1375
1402
|
<span
|
|
1376
1403
|
class="pf-c-tree-view__node-container"
|
|
@@ -1428,6 +1455,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1428
1455
|
>
|
|
1429
1456
|
<button
|
|
1430
1457
|
class="pf-c-tree-view__node"
|
|
1458
|
+
type="button"
|
|
1431
1459
|
>
|
|
1432
1460
|
<span
|
|
1433
1461
|
class="pf-c-tree-view__node-container"
|
|
@@ -1483,6 +1511,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1483
1511
|
>
|
|
1484
1512
|
<button
|
|
1485
1513
|
class="pf-c-tree-view__node"
|
|
1514
|
+
type="button"
|
|
1486
1515
|
>
|
|
1487
1516
|
<span
|
|
1488
1517
|
class="pf-c-tree-view__node-container"
|
|
@@ -1538,6 +1567,7 @@ exports[`tree view renders badges successfully 1`] = `
|
|
|
1538
1567
|
>
|
|
1539
1568
|
<button
|
|
1540
1569
|
class="pf-c-tree-view__node"
|
|
1570
|
+
type="button"
|
|
1541
1571
|
>
|
|
1542
1572
|
<span
|
|
1543
1573
|
class="pf-c-tree-view__node-container"
|
|
@@ -1609,6 +1639,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1609
1639
|
<button
|
|
1610
1640
|
class="pf-c-tree-view__node"
|
|
1611
1641
|
tabindex="0"
|
|
1642
|
+
type="button"
|
|
1612
1643
|
>
|
|
1613
1644
|
<span
|
|
1614
1645
|
class="pf-c-tree-view__node-container"
|
|
@@ -1658,6 +1689,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1658
1689
|
>
|
|
1659
1690
|
<button
|
|
1660
1691
|
class="pf-c-tree-view__node"
|
|
1692
|
+
type="button"
|
|
1661
1693
|
>
|
|
1662
1694
|
<span
|
|
1663
1695
|
class="pf-c-tree-view__node-container"
|
|
@@ -1704,6 +1736,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1704
1736
|
>
|
|
1705
1737
|
<button
|
|
1706
1738
|
class="pf-c-tree-view__node"
|
|
1739
|
+
type="button"
|
|
1707
1740
|
>
|
|
1708
1741
|
<span
|
|
1709
1742
|
class="pf-c-tree-view__node-container"
|
|
@@ -1752,6 +1785,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1752
1785
|
>
|
|
1753
1786
|
<button
|
|
1754
1787
|
class="pf-c-tree-view__node"
|
|
1788
|
+
type="button"
|
|
1755
1789
|
>
|
|
1756
1790
|
<span
|
|
1757
1791
|
class="pf-c-tree-view__node-container"
|
|
@@ -1798,6 +1832,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1798
1832
|
>
|
|
1799
1833
|
<button
|
|
1800
1834
|
class="pf-c-tree-view__node"
|
|
1835
|
+
type="button"
|
|
1801
1836
|
>
|
|
1802
1837
|
<span
|
|
1803
1838
|
class="pf-c-tree-view__node-container"
|
|
@@ -1844,6 +1879,7 @@ exports[`tree view renders basic successfully 1`] = `
|
|
|
1844
1879
|
>
|
|
1845
1880
|
<button
|
|
1846
1881
|
class="pf-c-tree-view__node"
|
|
1882
|
+
type="button"
|
|
1847
1883
|
>
|
|
1848
1884
|
<span
|
|
1849
1885
|
class="pf-c-tree-view__node-container"
|
|
@@ -1915,6 +1951,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
1915
1951
|
aria-labelledby="label-checkbox-id18"
|
|
1916
1952
|
class="pf-c-tree-view__node-toggle"
|
|
1917
1953
|
tabindex="0"
|
|
1954
|
+
type="button"
|
|
1918
1955
|
>
|
|
1919
1956
|
<span
|
|
1920
1957
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -1976,6 +2013,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
1976
2013
|
aria-labelledby="label-checkbox-id19"
|
|
1977
2014
|
class="pf-c-tree-view__node-toggle"
|
|
1978
2015
|
tabindex="-1"
|
|
2016
|
+
type="button"
|
|
1979
2017
|
>
|
|
1980
2018
|
<span
|
|
1981
2019
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2034,6 +2072,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
2034
2072
|
aria-labelledby="label-checkbox-id20"
|
|
2035
2073
|
class="pf-c-tree-view__node-toggle"
|
|
2036
2074
|
tabindex="-1"
|
|
2075
|
+
type="button"
|
|
2037
2076
|
>
|
|
2038
2077
|
<span
|
|
2039
2078
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2094,6 +2133,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
2094
2133
|
aria-labelledby="label-checkbox-id21"
|
|
2095
2134
|
class="pf-c-tree-view__node-toggle"
|
|
2096
2135
|
tabindex="-1"
|
|
2136
|
+
type="button"
|
|
2097
2137
|
>
|
|
2098
2138
|
<span
|
|
2099
2139
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2152,6 +2192,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
2152
2192
|
aria-labelledby="label-checkbox-id22"
|
|
2153
2193
|
class="pf-c-tree-view__node-toggle"
|
|
2154
2194
|
tabindex="-1"
|
|
2195
|
+
type="button"
|
|
2155
2196
|
>
|
|
2156
2197
|
<span
|
|
2157
2198
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2210,6 +2251,7 @@ exports[`tree view renders checkboxes successfully 1`] = `
|
|
|
2210
2251
|
aria-labelledby="label-checkbox-id23"
|
|
2211
2252
|
class="pf-c-tree-view__node-toggle"
|
|
2212
2253
|
tabindex="-1"
|
|
2254
|
+
type="button"
|
|
2213
2255
|
>
|
|
2214
2256
|
<span
|
|
2215
2257
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2274,6 +2316,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2274
2316
|
<button
|
|
2275
2317
|
class="pf-c-tree-view__node"
|
|
2276
2318
|
tabindex="0"
|
|
2319
|
+
type="button"
|
|
2277
2320
|
>
|
|
2278
2321
|
<span
|
|
2279
2322
|
class="pf-c-tree-view__node-container"
|
|
@@ -2340,6 +2383,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2340
2383
|
>
|
|
2341
2384
|
<button
|
|
2342
2385
|
class="pf-c-tree-view__node"
|
|
2386
|
+
type="button"
|
|
2343
2387
|
>
|
|
2344
2388
|
<span
|
|
2345
2389
|
class="pf-c-tree-view__node-container"
|
|
@@ -2403,6 +2447,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2403
2447
|
>
|
|
2404
2448
|
<button
|
|
2405
2449
|
class="pf-c-tree-view__node"
|
|
2450
|
+
type="button"
|
|
2406
2451
|
>
|
|
2407
2452
|
<span
|
|
2408
2453
|
class="pf-c-tree-view__node-container"
|
|
@@ -2468,6 +2513,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2468
2513
|
>
|
|
2469
2514
|
<button
|
|
2470
2515
|
class="pf-c-tree-view__node"
|
|
2516
|
+
type="button"
|
|
2471
2517
|
>
|
|
2472
2518
|
<span
|
|
2473
2519
|
class="pf-c-tree-view__node-container"
|
|
@@ -2531,6 +2577,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2531
2577
|
>
|
|
2532
2578
|
<button
|
|
2533
2579
|
class="pf-c-tree-view__node"
|
|
2580
|
+
type="button"
|
|
2534
2581
|
>
|
|
2535
2582
|
<span
|
|
2536
2583
|
class="pf-c-tree-view__node-container"
|
|
@@ -2594,6 +2641,7 @@ exports[`tree view renders icons successfully 1`] = `
|
|
|
2594
2641
|
>
|
|
2595
2642
|
<button
|
|
2596
2643
|
class="pf-c-tree-view__node"
|
|
2644
|
+
type="button"
|
|
2597
2645
|
>
|
|
2598
2646
|
<span
|
|
2599
2647
|
class="pf-c-tree-view__node-container"
|
|
@@ -2683,6 +2731,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2683
2731
|
aria-labelledby="label-checkbox-id36"
|
|
2684
2732
|
class="pf-c-tree-view__node-toggle"
|
|
2685
2733
|
tabindex="-1"
|
|
2734
|
+
type="button"
|
|
2686
2735
|
>
|
|
2687
2736
|
<span
|
|
2688
2737
|
class="pf-c-tree-view__node-toggle-icon"
|
|
@@ -2751,6 +2800,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2751
2800
|
>
|
|
2752
2801
|
<button
|
|
2753
2802
|
class="pf-c-tree-view__node"
|
|
2803
|
+
type="button"
|
|
2754
2804
|
>
|
|
2755
2805
|
<span
|
|
2756
2806
|
class="pf-c-tree-view__node-container"
|
|
@@ -2797,6 +2847,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2797
2847
|
>
|
|
2798
2848
|
<button
|
|
2799
2849
|
class="pf-c-tree-view__node"
|
|
2850
|
+
type="button"
|
|
2800
2851
|
>
|
|
2801
2852
|
<span
|
|
2802
2853
|
class="pf-c-tree-view__node-container"
|
|
@@ -2854,6 +2905,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2854
2905
|
>
|
|
2855
2906
|
<button
|
|
2856
2907
|
class="pf-c-tree-view__node"
|
|
2908
|
+
type="button"
|
|
2857
2909
|
>
|
|
2858
2910
|
<span
|
|
2859
2911
|
class="pf-c-tree-view__node-container"
|
|
@@ -2936,6 +2988,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2936
2988
|
>
|
|
2937
2989
|
<button
|
|
2938
2990
|
class="pf-c-tree-view__node"
|
|
2991
|
+
type="button"
|
|
2939
2992
|
>
|
|
2940
2993
|
<span
|
|
2941
2994
|
class="pf-c-tree-view__node-container"
|
|
@@ -2982,6 +3035,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
|
|
|
2982
3035
|
>
|
|
2983
3036
|
<button
|
|
2984
3037
|
class="pf-c-tree-view__node"
|
|
3038
|
+
type="button"
|
|
2985
3039
|
>
|
|
2986
3040
|
<span
|
|
2987
3041
|
class="pf-c-tree-view__node-container"
|
|
@@ -3066,6 +3120,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3066
3120
|
<button
|
|
3067
3121
|
class="pf-c-tree-view__node"
|
|
3068
3122
|
tabindex="0"
|
|
3123
|
+
type="button"
|
|
3069
3124
|
>
|
|
3070
3125
|
<span
|
|
3071
3126
|
class="pf-c-tree-view__node-container"
|
|
@@ -3115,6 +3170,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3115
3170
|
>
|
|
3116
3171
|
<button
|
|
3117
3172
|
class="pf-c-tree-view__node"
|
|
3173
|
+
type="button"
|
|
3118
3174
|
>
|
|
3119
3175
|
<span
|
|
3120
3176
|
class="pf-c-tree-view__node-container"
|
|
@@ -3161,6 +3217,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3161
3217
|
>
|
|
3162
3218
|
<button
|
|
3163
3219
|
class="pf-c-tree-view__node"
|
|
3220
|
+
type="button"
|
|
3164
3221
|
>
|
|
3165
3222
|
<span
|
|
3166
3223
|
class="pf-c-tree-view__node-container"
|
|
@@ -3209,6 +3266,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3209
3266
|
>
|
|
3210
3267
|
<button
|
|
3211
3268
|
class="pf-c-tree-view__node"
|
|
3269
|
+
type="button"
|
|
3212
3270
|
>
|
|
3213
3271
|
<span
|
|
3214
3272
|
class="pf-c-tree-view__node-container"
|
|
@@ -3255,6 +3313,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3255
3313
|
>
|
|
3256
3314
|
<button
|
|
3257
3315
|
class="pf-c-tree-view__node"
|
|
3316
|
+
type="button"
|
|
3258
3317
|
>
|
|
3259
3318
|
<span
|
|
3260
3319
|
class="pf-c-tree-view__node-container"
|
|
@@ -3301,6 +3360,7 @@ exports[`tree view renders toolbar successfully 1`] = `
|
|
|
3301
3360
|
>
|
|
3302
3361
|
<button
|
|
3303
3362
|
class="pf-c-tree-view__node"
|
|
3363
|
+
type="button"
|
|
3304
3364
|
>
|
|
3305
3365
|
<span
|
|
3306
3366
|
class="pf-c-tree-view__node-container"
|