@patternfly/react-core 4.202.29 → 4.202.32
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 +24 -0
- package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/esm/helpers/Popper/Popper.js +1 -7
- package/dist/esm/helpers/Popper/Popper.js.map +1 -1
- package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/js/helpers/Popper/Popper.js +1 -7
- package/dist/js/helpers/Popper/Popper.js.map +1 -1
- package/dist/umd/react-core.js +1 -7
- package/package.json +5 -5
- package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +1 -1
- package/src/components/Page/__tests__/Page.test.tsx +225 -205
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +1088 -2059
- package/src/components/Pagination/__tests__/Pagination.test.tsx +235 -283
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +143 -577
- package/src/components/Radio/__tests__/Radio.test.tsx +38 -44
- package/src/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +30 -30
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +87 -68
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +230 -137
- package/src/components/Select/__tests__/Select.test.tsx +238 -195
- package/src/components/Select/__tests__/SelectToggle.test.tsx +68 -130
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +978 -2149
- package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +3 -3
- package/src/components/SimpleList/__tests__/SimpleList.test.tsx +29 -32
- package/src/components/SimpleList/__tests__/__snapshots__/SimpleList.test.tsx.snap +4 -366
- package/src/components/Switch/__tests__/Switch.test.tsx +85 -75
- package/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.snap +30 -40
- package/src/components/TextArea/__tests__/TextArea.test.tsx +98 -103
- package/src/components/TextArea/__tests__/__snapshots__/TextArea.test.tsx.snap +24 -103
- package/src/components/TextInput/__tests__/TextInput.test.tsx +71 -70
- package/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap +15 -103
- package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +65 -39
- package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroup.test.tsx.snap +53 -14
- package/src/components/TimePicker/__tests__/TimePicker.test.tsx +113 -110
- package/src/components/Title/__tests__/Title.test.tsx +21 -20
- package/src/components/Title/__tests__/__snapshots__/Title.test.tsx.snap +24 -30
- package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +43 -39
- package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroup.test.tsx.snap +20 -19
- package/src/components/Wizard/__tests__/Wizard.test.tsx +195 -189
- package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +131 -10
- package/src/helpers/Popper/Popper.tsx +5 -7
- package/src/helpers/__tests__/util.test.ts +113 -0
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +25 -25
- package/src/layouts/Bullseye/__tests__/__snapshots__/Bullseye.test.tsx.snap +3 -5
- package/src/layouts/Flex/__tests__/Flex.test.tsx +159 -96
- package/src/layouts/Flex/__tests__/__snapshots__/Flex.test.tsx.snap +9 -17
- package/src/components/Page/__tests__/Generated/Page.test.tsx +0 -28
- package/src/components/Page/__tests__/Generated/__snapshots__/Page.test.tsx.snap +0 -19
- package/src/components/Pagination/__tests__/Generated/Pagination.test.tsx +0 -58
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Pagination.test.tsx.snap +0 -205
- package/src/components/Radio/__tests__/Generated/Radio.test.tsx +0 -29
- package/src/components/Radio/__tests__/Generated/__snapshots__/Radio.test.tsx.snap +0 -36
- package/src/components/Select/__tests__/Generated/Select.test.tsx +0 -49
- package/src/components/Select/__tests__/Generated/SelectToggle.test.tsx +0 -34
- package/src/components/Select/__tests__/Generated/__snapshots__/Select.test.tsx.snap +0 -48
- package/src/components/Select/__tests__/Generated/__snapshots__/SelectToggle.test.tsx.snap +0 -36
- package/src/components/SimpleList/__tests__/Generated/SimpleList.test.tsx +0 -22
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleList.test.tsx.snap +0 -13
- package/src/components/Switch/__tests__/Generated/Switch.test.tsx +0 -24
- package/src/components/Switch/__tests__/Generated/__snapshots__/Switch.test.tsx.snap +0 -36
- package/src/components/TextArea/__tests__/Generated/TextArea.test.tsx +0 -23
- package/src/components/TextArea/__tests__/Generated/__snapshots__/TextArea.test.tsx.snap +0 -13
- package/src/components/Title/__tests__/Generated/Title.test.tsx +0 -13
- package/src/components/Title/__tests__/Generated/__snapshots__/Title.test.tsx.snap +0 -12
- package/src/helpers/__tests__/util.test.js +0 -235
package/src/components/Pagination/__tests__/Generated/__snapshots__/Pagination.test.tsx.snap
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Pagination should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="pf-c-pagination ''"
|
|
7
|
-
data-ouia-component-id="OUIA-Generated-Pagination-top-1"
|
|
8
|
-
data-ouia-component-type="PF4/Pagination"
|
|
9
|
-
data-ouia-safe="true"
|
|
10
|
-
id="'pagination-options-menu'-0"
|
|
11
|
-
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
12
|
-
>
|
|
13
|
-
<div
|
|
14
|
-
class="pf-c-pagination__total-items"
|
|
15
|
-
>
|
|
16
|
-
string
|
|
17
|
-
</div>
|
|
18
|
-
<div
|
|
19
|
-
class="pf-c-options-menu pf-m-top"
|
|
20
|
-
data-ouia-component-type="PF4/PaginationOptionsMenu"
|
|
21
|
-
data-ouia-safe="true"
|
|
22
|
-
>
|
|
23
|
-
<div
|
|
24
|
-
class="pf-c-options-menu__toggle pf-m-plain pf-m-text"
|
|
25
|
-
>
|
|
26
|
-
<span
|
|
27
|
-
class="pf-c-options-menu__toggle-text"
|
|
28
|
-
>
|
|
29
|
-
string
|
|
30
|
-
</span>
|
|
31
|
-
<button
|
|
32
|
-
aria-expanded="false"
|
|
33
|
-
aria-label="Items per page"
|
|
34
|
-
class=" pf-c-options-menu__toggle-button"
|
|
35
|
-
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
|
|
36
|
-
data-ouia-component-type="PF4/DropdownToggle"
|
|
37
|
-
data-ouia-safe="true"
|
|
38
|
-
id="'pagination-options-menu'-toggle-0"
|
|
39
|
-
type="button"
|
|
40
|
-
>
|
|
41
|
-
<span
|
|
42
|
-
class="pf-c-options-menu__toggle-button-icon"
|
|
43
|
-
>
|
|
44
|
-
<svg
|
|
45
|
-
aria-hidden="true"
|
|
46
|
-
fill="currentColor"
|
|
47
|
-
height="1em"
|
|
48
|
-
role="img"
|
|
49
|
-
style="vertical-align: -0.125em;"
|
|
50
|
-
viewBox="0 0 320 512"
|
|
51
|
-
width="1em"
|
|
52
|
-
>
|
|
53
|
-
<path
|
|
54
|
-
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"
|
|
55
|
-
/>
|
|
56
|
-
</svg>
|
|
57
|
-
</span>
|
|
58
|
-
</button>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<nav
|
|
62
|
-
aria-label="Pagination"
|
|
63
|
-
class="pf-c-pagination__nav"
|
|
64
|
-
>
|
|
65
|
-
<div
|
|
66
|
-
class="pf-c-pagination__nav-control pf-m-first"
|
|
67
|
-
>
|
|
68
|
-
<button
|
|
69
|
-
aria-disabled="true"
|
|
70
|
-
aria-label="Go to first page"
|
|
71
|
-
class="pf-c-button pf-m-plain pf-m-disabled"
|
|
72
|
-
data-action="first"
|
|
73
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
74
|
-
data-ouia-component-type="PF4/Button"
|
|
75
|
-
data-ouia-safe="true"
|
|
76
|
-
disabled=""
|
|
77
|
-
type="button"
|
|
78
|
-
>
|
|
79
|
-
<svg
|
|
80
|
-
aria-hidden="true"
|
|
81
|
-
fill="currentColor"
|
|
82
|
-
height="1em"
|
|
83
|
-
role="img"
|
|
84
|
-
style="vertical-align: -0.125em;"
|
|
85
|
-
viewBox="0 0 448 512"
|
|
86
|
-
width="1em"
|
|
87
|
-
>
|
|
88
|
-
<path
|
|
89
|
-
d="M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"
|
|
90
|
-
/>
|
|
91
|
-
</svg>
|
|
92
|
-
</button>
|
|
93
|
-
</div>
|
|
94
|
-
<div
|
|
95
|
-
class="pf-c-pagination__nav-control"
|
|
96
|
-
>
|
|
97
|
-
<button
|
|
98
|
-
aria-disabled="true"
|
|
99
|
-
aria-label="Go to previous page"
|
|
100
|
-
class="pf-c-button pf-m-plain pf-m-disabled"
|
|
101
|
-
data-action="previous"
|
|
102
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-2"
|
|
103
|
-
data-ouia-component-type="PF4/Button"
|
|
104
|
-
data-ouia-safe="true"
|
|
105
|
-
disabled=""
|
|
106
|
-
type="button"
|
|
107
|
-
>
|
|
108
|
-
<svg
|
|
109
|
-
aria-hidden="true"
|
|
110
|
-
fill="currentColor"
|
|
111
|
-
height="1em"
|
|
112
|
-
role="img"
|
|
113
|
-
style="vertical-align: -0.125em;"
|
|
114
|
-
viewBox="0 0 256 512"
|
|
115
|
-
width="1em"
|
|
116
|
-
>
|
|
117
|
-
<path
|
|
118
|
-
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
119
|
-
/>
|
|
120
|
-
</svg>
|
|
121
|
-
</button>
|
|
122
|
-
</div>
|
|
123
|
-
<div
|
|
124
|
-
class="pf-c-pagination__nav-page-select"
|
|
125
|
-
>
|
|
126
|
-
<input
|
|
127
|
-
aria-label="Current page"
|
|
128
|
-
class="pf-c-form-control"
|
|
129
|
-
disabled=""
|
|
130
|
-
max="1"
|
|
131
|
-
min="1"
|
|
132
|
-
type="number"
|
|
133
|
-
value="1"
|
|
134
|
-
/>
|
|
135
|
-
<span
|
|
136
|
-
aria-hidden="true"
|
|
137
|
-
>
|
|
138
|
-
of
|
|
139
|
-
|
|
140
|
-
1
|
|
141
|
-
</span>
|
|
142
|
-
</div>
|
|
143
|
-
<div
|
|
144
|
-
class="pf-c-pagination__nav-control"
|
|
145
|
-
>
|
|
146
|
-
<button
|
|
147
|
-
aria-disabled="true"
|
|
148
|
-
aria-label="Go to next page"
|
|
149
|
-
class="pf-c-button pf-m-plain pf-m-disabled"
|
|
150
|
-
data-action="next"
|
|
151
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
152
|
-
data-ouia-component-type="PF4/Button"
|
|
153
|
-
data-ouia-safe="true"
|
|
154
|
-
disabled=""
|
|
155
|
-
type="button"
|
|
156
|
-
>
|
|
157
|
-
<svg
|
|
158
|
-
aria-hidden="true"
|
|
159
|
-
fill="currentColor"
|
|
160
|
-
height="1em"
|
|
161
|
-
role="img"
|
|
162
|
-
style="vertical-align: -0.125em;"
|
|
163
|
-
viewBox="0 0 256 512"
|
|
164
|
-
width="1em"
|
|
165
|
-
>
|
|
166
|
-
<path
|
|
167
|
-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
168
|
-
/>
|
|
169
|
-
</svg>
|
|
170
|
-
</button>
|
|
171
|
-
</div>
|
|
172
|
-
<div
|
|
173
|
-
class="pf-c-pagination__nav-control pf-m-last"
|
|
174
|
-
>
|
|
175
|
-
<button
|
|
176
|
-
aria-disabled="true"
|
|
177
|
-
aria-label="Go to last page"
|
|
178
|
-
class="pf-c-button pf-m-plain pf-m-disabled"
|
|
179
|
-
data-action="last"
|
|
180
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-4"
|
|
181
|
-
data-ouia-component-type="PF4/Button"
|
|
182
|
-
data-ouia-safe="true"
|
|
183
|
-
disabled=""
|
|
184
|
-
type="button"
|
|
185
|
-
>
|
|
186
|
-
<svg
|
|
187
|
-
aria-hidden="true"
|
|
188
|
-
fill="currentColor"
|
|
189
|
-
height="1em"
|
|
190
|
-
role="img"
|
|
191
|
-
style="vertical-align: -0.125em;"
|
|
192
|
-
viewBox="0 0 448 512"
|
|
193
|
-
width="1em"
|
|
194
|
-
>
|
|
195
|
-
<path
|
|
196
|
-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"
|
|
197
|
-
/>
|
|
198
|
-
</svg>
|
|
199
|
-
</button>
|
|
200
|
-
</div>
|
|
201
|
-
</nav>
|
|
202
|
-
ReactNode
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
`;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { Radio } from '../../Radio';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('Radio should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<Radio
|
|
13
|
-
className={"''"}
|
|
14
|
-
id={'string'}
|
|
15
|
-
isLabelWrapped={true}
|
|
16
|
-
isLabelBeforeButton={true}
|
|
17
|
-
checked={true}
|
|
18
|
-
isChecked={true}
|
|
19
|
-
isDisabled={false}
|
|
20
|
-
isValid={true}
|
|
21
|
-
label={<div>ReactNode</div>}
|
|
22
|
-
name={'string'}
|
|
23
|
-
onChange={() => {}}
|
|
24
|
-
aria-label={'string'}
|
|
25
|
-
description={<div>ReactNode</div>}
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
expect(view.container).toMatchSnapshot();
|
|
29
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Radio should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<label
|
|
6
|
-
class="pf-c-radio ''"
|
|
7
|
-
for="string"
|
|
8
|
-
>
|
|
9
|
-
<span
|
|
10
|
-
class="pf-c-radio__label"
|
|
11
|
-
>
|
|
12
|
-
<div>
|
|
13
|
-
ReactNode
|
|
14
|
-
</div>
|
|
15
|
-
</span>
|
|
16
|
-
<input
|
|
17
|
-
aria-invalid="false"
|
|
18
|
-
checked=""
|
|
19
|
-
class="pf-c-radio__input"
|
|
20
|
-
data-ouia-component-id="OUIA-Generated-Radio-1"
|
|
21
|
-
data-ouia-component-type="PF4/Radio"
|
|
22
|
-
data-ouia-safe="true"
|
|
23
|
-
id="string"
|
|
24
|
-
name="string"
|
|
25
|
-
type="radio"
|
|
26
|
-
/>
|
|
27
|
-
<span
|
|
28
|
-
class="pf-c-radio__description"
|
|
29
|
-
>
|
|
30
|
-
<div>
|
|
31
|
-
ReactNode
|
|
32
|
-
</div>
|
|
33
|
-
</span>
|
|
34
|
-
</label>
|
|
35
|
-
</div>
|
|
36
|
-
`;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { Select } from '../../Select';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import { SelectOptionObject } from '../..';
|
|
9
|
-
|
|
10
|
-
it('Select should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<Select
|
|
13
|
-
children={[]}
|
|
14
|
-
className={"''"}
|
|
15
|
-
direction={'up'}
|
|
16
|
-
isExpanded={false}
|
|
17
|
-
isGrouped={false}
|
|
18
|
-
isPlain={false}
|
|
19
|
-
isDisabled={false}
|
|
20
|
-
isCreatable={false}
|
|
21
|
-
createText={"'Create'"}
|
|
22
|
-
placeholderText={''}
|
|
23
|
-
noResultsFoundText={"'No results found'"}
|
|
24
|
-
selections={''}
|
|
25
|
-
toggleId={'null'}
|
|
26
|
-
aria-label={"''"}
|
|
27
|
-
aria-labelledby={"''"}
|
|
28
|
-
typeAheadAriaLabel={"''"}
|
|
29
|
-
clearSelectionsAriaLabel={"'Clear all'"}
|
|
30
|
-
toggleAriaLabel={"'Options menu'"}
|
|
31
|
-
removeSelectionAriaLabel={"'Remove'"}
|
|
32
|
-
onSelect={(
|
|
33
|
-
event: React.MouseEvent | React.ChangeEvent,
|
|
34
|
-
value: string | SelectOptionObject,
|
|
35
|
-
isPlaceholder?: boolean
|
|
36
|
-
) => undefined as void}
|
|
37
|
-
onToggle={(isExpanded: boolean) => undefined as void}
|
|
38
|
-
onClear={(_e: React.MouseEvent) => undefined as void}
|
|
39
|
-
onFilter={null}
|
|
40
|
-
onCreateOption={(_newOptionValue: string) => undefined as void}
|
|
41
|
-
variant={'single'}
|
|
42
|
-
width={''}
|
|
43
|
-
maxHeight={'string'}
|
|
44
|
-
toggleIcon={null}
|
|
45
|
-
customContent={null}
|
|
46
|
-
/>
|
|
47
|
-
);
|
|
48
|
-
expect(view.container).toMatchSnapshot();
|
|
49
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { SelectToggle } from '../../SelectToggle';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('SelectToggle should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<SelectToggle
|
|
13
|
-
id={'string'}
|
|
14
|
-
children={<div>ReactNode</div>}
|
|
15
|
-
className={"''"}
|
|
16
|
-
isExpanded={false}
|
|
17
|
-
onToggle={() => {}}
|
|
18
|
-
onEnter={() => {}}
|
|
19
|
-
onClose={() => {}}
|
|
20
|
-
handleTypeaheadKeys={(position: string) => undefined as void}
|
|
21
|
-
parentRef={{ current: document.createElement('div') }}
|
|
22
|
-
isFocused={false}
|
|
23
|
-
isHovered={false}
|
|
24
|
-
isActive={false}
|
|
25
|
-
isPlain={false}
|
|
26
|
-
isDisabled={false}
|
|
27
|
-
type={'button'}
|
|
28
|
-
aria-labelledby={"''"}
|
|
29
|
-
aria-label={"''"}
|
|
30
|
-
variant={'single'}
|
|
31
|
-
/>
|
|
32
|
-
);
|
|
33
|
-
expect(view.container).toMatchSnapshot();
|
|
34
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Select should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="pf-c-select pf-m-top ''"
|
|
7
|
-
data-ouia-component-id="OUIA-Generated-Select-single-1"
|
|
8
|
-
data-ouia-component-type="PF4/Select"
|
|
9
|
-
data-ouia-safe="true"
|
|
10
|
-
>
|
|
11
|
-
<div
|
|
12
|
-
class="pf-c-select__toggle pf-m-typeahead"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
class="pf-c-select__toggle-wrapper"
|
|
16
|
-
>
|
|
17
|
-
<span
|
|
18
|
-
class="pf-c-select__toggle-text"
|
|
19
|
-
/>
|
|
20
|
-
</div>
|
|
21
|
-
<button
|
|
22
|
-
aria-expanded="false"
|
|
23
|
-
aria-haspopup="listbox"
|
|
24
|
-
aria-label="'Options menu'"
|
|
25
|
-
aria-labelledby="'' null"
|
|
26
|
-
class="pf-c-button pf-c-select__toggle-button pf-m-plain"
|
|
27
|
-
id="null"
|
|
28
|
-
type="button"
|
|
29
|
-
>
|
|
30
|
-
<svg
|
|
31
|
-
aria-hidden="true"
|
|
32
|
-
class="pf-c-select__toggle-arrow"
|
|
33
|
-
fill="currentColor"
|
|
34
|
-
height="1em"
|
|
35
|
-
role="img"
|
|
36
|
-
style="vertical-align: -0.125em;"
|
|
37
|
-
viewBox="0 0 320 512"
|
|
38
|
-
width="1em"
|
|
39
|
-
>
|
|
40
|
-
<path
|
|
41
|
-
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"
|
|
42
|
-
/>
|
|
43
|
-
</svg>
|
|
44
|
-
</button>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`SelectToggle should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<button
|
|
6
|
-
aria-expanded="false"
|
|
7
|
-
aria-haspopup="listbox"
|
|
8
|
-
aria-label="''"
|
|
9
|
-
aria-labelledby="''"
|
|
10
|
-
class="pf-c-select__toggle ''"
|
|
11
|
-
id="string"
|
|
12
|
-
type="button"
|
|
13
|
-
>
|
|
14
|
-
<div>
|
|
15
|
-
ReactNode
|
|
16
|
-
</div>
|
|
17
|
-
<span
|
|
18
|
-
class="pf-c-select__toggle-arrow"
|
|
19
|
-
>
|
|
20
|
-
<svg
|
|
21
|
-
aria-hidden="true"
|
|
22
|
-
fill="currentColor"
|
|
23
|
-
height="1em"
|
|
24
|
-
role="img"
|
|
25
|
-
style="vertical-align: -0.125em;"
|
|
26
|
-
viewBox="0 0 320 512"
|
|
27
|
-
width="1em"
|
|
28
|
-
>
|
|
29
|
-
<path
|
|
30
|
-
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"
|
|
31
|
-
/>
|
|
32
|
-
</svg>
|
|
33
|
-
</span>
|
|
34
|
-
</button>
|
|
35
|
-
</div>
|
|
36
|
-
`;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { SimpleList } from '../../SimpleList';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import { SimpleListItemProps } from '../..';
|
|
9
|
-
|
|
10
|
-
it('SimpleList should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<SimpleList
|
|
13
|
-
children={<>ReactNode</>}
|
|
14
|
-
className={"''"}
|
|
15
|
-
onSelect={(
|
|
16
|
-
ref: React.RefObject<HTMLButtonElement> | React.RefObject<HTMLAnchorElement>,
|
|
17
|
-
props: SimpleListItemProps
|
|
18
|
-
) => undefined as void}
|
|
19
|
-
/>
|
|
20
|
-
);
|
|
21
|
-
expect(view.container).toMatchSnapshot();
|
|
22
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { Switch } from '../../Switch';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('Switch should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<Switch
|
|
13
|
-
id={"''"}
|
|
14
|
-
className={"''"}
|
|
15
|
-
label={"''"}
|
|
16
|
-
labelOff={"''"}
|
|
17
|
-
isChecked={true}
|
|
18
|
-
isDisabled={false}
|
|
19
|
-
onChange={() => undefined as any}
|
|
20
|
-
aria-label={"''"}
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
expect(view.container).toMatchSnapshot();
|
|
24
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Switch should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<label
|
|
6
|
-
class="pf-c-switch ''"
|
|
7
|
-
data-ouia-component-id="OUIA-Generated-Switch-1"
|
|
8
|
-
data-ouia-component-type="PF4/Switch"
|
|
9
|
-
data-ouia-safe="true"
|
|
10
|
-
for="''"
|
|
11
|
-
>
|
|
12
|
-
<input
|
|
13
|
-
aria-label="''"
|
|
14
|
-
checked=""
|
|
15
|
-
class="pf-c-switch__input"
|
|
16
|
-
id="''"
|
|
17
|
-
type="checkbox"
|
|
18
|
-
/>
|
|
19
|
-
<span
|
|
20
|
-
class="pf-c-switch__toggle"
|
|
21
|
-
/>
|
|
22
|
-
<span
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
class="pf-c-switch__label pf-m-on"
|
|
25
|
-
>
|
|
26
|
-
''
|
|
27
|
-
</span>
|
|
28
|
-
<span
|
|
29
|
-
aria-hidden="true"
|
|
30
|
-
class="pf-c-switch__label pf-m-off"
|
|
31
|
-
>
|
|
32
|
-
''
|
|
33
|
-
</span>
|
|
34
|
-
</label>
|
|
35
|
-
</div>
|
|
36
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { TextArea } from '../../TextArea';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('TextArea should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<TextArea
|
|
13
|
-
className={"''"}
|
|
14
|
-
isRequired={false}
|
|
15
|
-
validated={'default'}
|
|
16
|
-
value={'string'}
|
|
17
|
-
onChange={(value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => undefined as void}
|
|
18
|
-
resizeOrientation={'both'}
|
|
19
|
-
aria-label={'null'}
|
|
20
|
-
/>
|
|
21
|
-
);
|
|
22
|
-
expect(view.container).toMatchSnapshot();
|
|
23
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { Title } from '../../Title';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('Title should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(<Title size={'md'} children={''} className={"''"} headingLevel={'h1'} />);
|
|
12
|
-
expect(view.container).toMatchSnapshot();
|
|
13
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Title should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<h1
|
|
6
|
-
class="pf-c-title pf-m-md ''"
|
|
7
|
-
data-ouia-component-id="OUIA-Generated-Title-1"
|
|
8
|
-
data-ouia-component-type="PF4/Title"
|
|
9
|
-
data-ouia-safe="true"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
`;
|