@patternfly/react-core 4.258.0 → 4.258.2
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/dist/esm/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelector.js +3 -2
- package/dist/esm/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/Dropdown/DropdownWithContext.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownWithContext.js +3 -5
- package/dist/esm/components/Dropdown/DropdownWithContext.js.map +1 -1
- package/dist/esm/components/Pagination/OptionsToggle.d.ts.map +1 -1
- package/dist/esm/components/Pagination/OptionsToggle.js +1 -2
- package/dist/esm/components/Pagination/OptionsToggle.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +3 -4
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Pagination/PaginationOptionsMenu.js +1 -14
- package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +3 -5
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelector.js +3 -2
- package/dist/js/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.js +1 -1
- package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/Dropdown/DropdownWithContext.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownWithContext.js +3 -5
- package/dist/js/components/Dropdown/DropdownWithContext.js.map +1 -1
- package/dist/js/components/Pagination/OptionsToggle.d.ts.map +1 -1
- package/dist/js/components/Pagination/OptionsToggle.js +1 -2
- package/dist/js/components/Pagination/OptionsToggle.js.map +1 -1
- package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/js/components/Pagination/Pagination.js +3 -4
- package/dist/js/components/Pagination/Pagination.js.map +1 -1
- package/dist/js/components/Pagination/PaginationOptionsMenu.js +1 -14
- package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js +3 -5
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/umd/react-core.min.css +412 -368
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/ContextSelector/ContextSelector.tsx +3 -8
- package/src/components/Dropdown/Dropdown.tsx +1 -1
- package/src/components/Dropdown/DropdownWithContext.tsx +3 -4
- package/src/components/Pagination/OptionsToggle.tsx +1 -2
- package/src/components/Pagination/Pagination.tsx +3 -4
- package/src/components/Pagination/PaginationOptionsMenu.tsx +1 -1
- package/src/components/Pagination/__tests__/Generated/__snapshots__/OptionsToggle.test.tsx.snap +1 -1
- package/src/components/Pagination/__tests__/Pagination.test.tsx +7 -0
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +31 -31
- package/src/components/Pagination/examples/PaginationBottom.tsx +1 -1
- package/src/components/Pagination/examples/PaginationCompact.tsx +1 -1
- package/src/components/Pagination/examples/PaginationDisabled.tsx +1 -1
- package/src/components/Pagination/examples/PaginationIndeterminate.tsx +1 -1
- package/src/components/Pagination/examples/PaginationNoItems.tsx +1 -1
- package/src/components/Pagination/examples/PaginationOnePage.tsx +1 -1
- package/src/components/Pagination/examples/PaginationSticky.tsx +1 -1
- package/src/components/Pagination/examples/PaginationTop.tsx +1 -1
- package/src/components/Select/Select.tsx +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.258.
|
|
3
|
+
"version": "4.258.2",
|
|
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",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"generate": "node scripts/copyStyles.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@patternfly/react-icons": "^4.92.
|
|
48
|
-
"@patternfly/react-styles": "^4.91.
|
|
49
|
-
"@patternfly/react-tokens": "^4.93.
|
|
47
|
+
"@patternfly/react-icons": "^4.92.9",
|
|
48
|
+
"@patternfly/react-styles": "^4.91.9",
|
|
49
|
+
"@patternfly/react-tokens": "^4.93.9",
|
|
50
50
|
"focus-trap": "6.9.2",
|
|
51
51
|
"react-dropzone": "9.0.0",
|
|
52
52
|
"tippy.js": "5.1.2",
|
|
53
53
|
"tslib": "^2.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@patternfly/patternfly": "4.219.
|
|
56
|
+
"@patternfly/patternfly": "4.219.1",
|
|
57
57
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
59
59
|
"@rollup/plugin-replace": "^3.0.0",
|
|
@@ -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": "5d975fb9b5ae712c8de40a931b913ee1f9ecfeb7"
|
|
74
74
|
}
|
|
@@ -95,7 +95,7 @@ export class ContextSelector extends React.Component<ContextSelectorProps, { oui
|
|
|
95
95
|
footer: null as React.ReactNode,
|
|
96
96
|
isPlain: false,
|
|
97
97
|
isText: false,
|
|
98
|
-
isFlipEnabled:
|
|
98
|
+
isFlipEnabled: true,
|
|
99
99
|
removeFindDomNode: false
|
|
100
100
|
};
|
|
101
101
|
constructor(props: ContextSelectorProps) {
|
|
@@ -145,15 +145,10 @@ export class ContextSelector extends React.Component<ContextSelectorProps, { oui
|
|
|
145
145
|
const uniqueId = id || getUniqueId();
|
|
146
146
|
const toggleId = `pf-context-selector-toggle-id-${uniqueId}`;
|
|
147
147
|
const screenReaderLabelId = `pf-context-selector-label-id-${uniqueId}`;
|
|
148
|
+
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
148
149
|
|
|
149
150
|
const menuContainer = (
|
|
150
|
-
<div
|
|
151
|
-
className={css(styles.contextSelectorMenu)}
|
|
152
|
-
// This removes the `position: absolute`styling from the `.pf-c-context-selector__menu`
|
|
153
|
-
// allowing the menu to flip correctly
|
|
154
|
-
{...(isFlipEnabled && { style: { position: 'revert' } })}
|
|
155
|
-
id={uniqueId}
|
|
156
|
-
>
|
|
151
|
+
<div className={css(styles.contextSelectorMenu, isStatic && styles.modifiers.static)} id={uniqueId}>
|
|
157
152
|
{isOpen && (
|
|
158
153
|
<FocusTrap
|
|
159
154
|
active={!disableFocusTrap}
|
|
@@ -30,7 +30,7 @@ export class DropdownWithContext extends React.Component<DropdownProps & OUIAPro
|
|
|
30
30
|
onSelect: (): void => undefined,
|
|
31
31
|
autoFocus: true,
|
|
32
32
|
menuAppendTo: 'inline',
|
|
33
|
-
isFlipEnabled:
|
|
33
|
+
isFlipEnabled: true
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
constructor(props: DropdownProps & OUIAProps) {
|
|
@@ -93,15 +93,14 @@ export class DropdownWithContext extends React.Component<DropdownProps & OUIAPro
|
|
|
93
93
|
renderedContent = React.Children.toArray(children);
|
|
94
94
|
}
|
|
95
95
|
const openedOnEnter = this.openedOnEnter;
|
|
96
|
+
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
96
97
|
return (
|
|
97
98
|
<DropdownContext.Consumer>
|
|
98
99
|
{({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
99
100
|
const BaseComponent = baseComponent as any;
|
|
100
101
|
const menuContainer = (
|
|
101
102
|
<DropdownMenu
|
|
102
|
-
|
|
103
|
-
// allowing the menu to flip correctly
|
|
104
|
-
{...(isFlipEnabled && { style: { position: 'revert', minWidth: 'min-content' } })}
|
|
103
|
+
className={css(isStatic && styles.modifiers.static)}
|
|
105
104
|
setMenuComponentRef={this.setMenuComponentRef}
|
|
106
105
|
component={component}
|
|
107
106
|
isOpen={isOpen}
|
|
@@ -44,7 +44,6 @@ export interface OptionsToggleProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
44
44
|
widgetId?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
let toggleId = 0;
|
|
48
47
|
export const OptionsToggle: React.FunctionComponent<OptionsToggleProps> = ({
|
|
49
48
|
itemsTitle = 'items',
|
|
50
49
|
optionsToggle,
|
|
@@ -95,7 +94,7 @@ export const OptionsToggle: React.FunctionComponent<OptionsToggleProps> = ({
|
|
|
95
94
|
onToggle={onToggle}
|
|
96
95
|
isDisabled={isDisabled || (itemCount && itemCount <= 0)}
|
|
97
96
|
isOpen={isOpen}
|
|
98
|
-
id
|
|
97
|
+
{...(widgetId && { id: `${widgetId}-toggle` })}
|
|
99
98
|
className={isDiv ? styles.optionsMenuToggleButton : toggleClasses}
|
|
100
99
|
parentRef={parentRef}
|
|
101
100
|
aria-haspopup="listbox"
|
|
@@ -177,7 +177,6 @@ const handleInputWidth = (lastPage: number, node: HTMLDivElement) => {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
let paginationId = 0;
|
|
181
180
|
export class Pagination extends React.Component<PaginationProps, { ouiaStateId: string }> {
|
|
182
181
|
static displayName = 'Pagination';
|
|
183
182
|
paginationRef = React.createRef<HTMLDivElement>();
|
|
@@ -211,7 +210,7 @@ export class Pagination extends React.Component<PaginationProps, { ouiaStateId:
|
|
|
211
210
|
itemsStart: null,
|
|
212
211
|
itemsEnd: null,
|
|
213
212
|
perPageOptions: defaultPerPageOptions,
|
|
214
|
-
widgetId: '
|
|
213
|
+
widgetId: 'options-menu',
|
|
215
214
|
onSetPage: () => undefined,
|
|
216
215
|
onPerPageSelect: () => undefined,
|
|
217
216
|
onFirstClick: () => undefined,
|
|
@@ -319,7 +318,7 @@ export class Pagination extends React.Component<PaginationProps, { ouiaStateId:
|
|
|
319
318
|
isSticky && styles.modifiers.sticky,
|
|
320
319
|
className
|
|
321
320
|
)}
|
|
322
|
-
id
|
|
321
|
+
{...(widgetId && { id: `${widgetId}-${variant}-pagination` })}
|
|
323
322
|
{...getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)}
|
|
324
323
|
{...props}
|
|
325
324
|
>
|
|
@@ -356,7 +355,7 @@ export class Pagination extends React.Component<PaginationProps, { ouiaStateId:
|
|
|
356
355
|
lastPage={lastPage}
|
|
357
356
|
onPerPageSelect={onPerPageSelect}
|
|
358
357
|
dropDirection={dropDirection}
|
|
359
|
-
widgetId={widgetId}
|
|
358
|
+
widgetId={`${widgetId}-${variant}`}
|
|
360
359
|
toggleTemplate={toggleTemplate}
|
|
361
360
|
isDisabled={isDisabled}
|
|
362
361
|
perPageComponent={perPageComponent}
|
|
@@ -161,7 +161,7 @@ export class PaginationOptionsMenu extends React.Component<PaginationOptionsMenu
|
|
|
161
161
|
return (
|
|
162
162
|
<DropdownContext.Provider
|
|
163
163
|
value={{
|
|
164
|
-
id: widgetId,
|
|
164
|
+
...(widgetId && { id: widgetId }),
|
|
165
165
|
onSelect: this.onSelect,
|
|
166
166
|
toggleIndicatorClass:
|
|
167
167
|
perPageComponent === 'div' ? styles.optionsMenuToggleButtonIcon : styles.optionsMenuToggleIcon,
|
package/src/components/Pagination/__tests__/Generated/__snapshots__/OptionsToggle.test.tsx.snap
CHANGED
|
@@ -16,7 +16,7 @@ exports[`OptionsToggle should match snapshot (auto-generated) 1`] = `
|
|
|
16
16
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
|
|
17
17
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
18
18
|
data-ouia-safe="true"
|
|
19
|
-
id="''-toggle
|
|
19
|
+
id="''-toggle"
|
|
20
20
|
type="button"
|
|
21
21
|
>
|
|
22
22
|
<span
|
|
@@ -112,6 +112,13 @@ describe('Pagination', () => {
|
|
|
112
112
|
const { asFragment } = render(<Pagination perPageComponent="button" itemCount={20} />);
|
|
113
113
|
expect(asFragment()).toMatchSnapshot();
|
|
114
114
|
});
|
|
115
|
+
|
|
116
|
+
test('should not update generated options menu id on rerenders', () => {
|
|
117
|
+
const { rerender } = render(<Pagination titles={{optionsToggle: "test label"}} perPageComponent="button" itemCount={20}/>);
|
|
118
|
+
const id = screen.getByLabelText("test label").getAttribute("id");
|
|
119
|
+
rerender(<Pagination titles={{optionsToggle: "test label"}} perPageComponent="button" itemCount={20} />);
|
|
120
|
+
expect(screen.getByLabelText("test label")).toHaveAttribute("id", id);
|
|
121
|
+
});
|
|
115
122
|
});
|
|
116
123
|
|
|
117
124
|
describe('API', () => {
|
|
@@ -7,7 +7,7 @@ exports[`Pagination component render custom pagination toggle 1`] = `
|
|
|
7
7
|
data-ouia-component-id="OUIA-Generated-Pagination-top-12"
|
|
8
8
|
data-ouia-component-type="PF4/Pagination"
|
|
9
9
|
data-ouia-safe="true"
|
|
10
|
-
id="
|
|
10
|
+
id="options-menu-top-pagination"
|
|
11
11
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
@@ -36,7 +36,7 @@ exports[`Pagination component render custom pagination toggle 1`] = `
|
|
|
36
36
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-13"
|
|
37
37
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
38
38
|
data-ouia-safe="true"
|
|
39
|
-
id="
|
|
39
|
+
id="options-menu-top-toggle"
|
|
40
40
|
type="button"
|
|
41
41
|
>
|
|
42
42
|
<span
|
|
@@ -206,7 +206,7 @@ exports[`Pagination component render custom perPageOptions 1`] = `
|
|
|
206
206
|
data-ouia-component-id="OUIA-Generated-Pagination-top-8"
|
|
207
207
|
data-ouia-component-type="PF4/Pagination"
|
|
208
208
|
data-ouia-safe="true"
|
|
209
|
-
id="
|
|
209
|
+
id="options-menu-top-pagination"
|
|
210
210
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
211
211
|
>
|
|
212
212
|
<div
|
|
@@ -249,7 +249,7 @@ exports[`Pagination component render custom perPageOptions 1`] = `
|
|
|
249
249
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-10"
|
|
250
250
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
251
251
|
data-ouia-safe="true"
|
|
252
|
-
id="
|
|
252
|
+
id="options-menu-top-toggle"
|
|
253
253
|
type="button"
|
|
254
254
|
>
|
|
255
255
|
<span
|
|
@@ -419,7 +419,7 @@ exports[`Pagination component render custom start end 1`] = `
|
|
|
419
419
|
data-ouia-component-id="OUIA-Generated-Pagination-top-10"
|
|
420
420
|
data-ouia-component-type="PF4/Pagination"
|
|
421
421
|
data-ouia-safe="true"
|
|
422
|
-
id="
|
|
422
|
+
id="options-menu-top-pagination"
|
|
423
423
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
424
424
|
>
|
|
425
425
|
<div
|
|
@@ -462,7 +462,7 @@ exports[`Pagination component render custom start end 1`] = `
|
|
|
462
462
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-11"
|
|
463
463
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
464
464
|
data-ouia-safe="true"
|
|
465
|
-
id="
|
|
465
|
+
id="options-menu-top-toggle"
|
|
466
466
|
type="button"
|
|
467
467
|
>
|
|
468
468
|
<span
|
|
@@ -630,7 +630,7 @@ exports[`Pagination component render empty per page options 1`] = `
|
|
|
630
630
|
data-ouia-component-id="OUIA-Generated-Pagination-top-9"
|
|
631
631
|
data-ouia-component-type="PF4/Pagination"
|
|
632
632
|
data-ouia-safe="true"
|
|
633
|
-
id="
|
|
633
|
+
id="options-menu-top-pagination"
|
|
634
634
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
635
635
|
>
|
|
636
636
|
<div
|
|
@@ -801,7 +801,7 @@ exports[`Pagination component render last page 1`] = `
|
|
|
801
801
|
data-ouia-component-id="OUIA-Generated-Pagination-top-7"
|
|
802
802
|
data-ouia-component-type="PF4/Pagination"
|
|
803
803
|
data-ouia-safe="true"
|
|
804
|
-
id="
|
|
804
|
+
id="options-menu-top-pagination"
|
|
805
805
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
806
806
|
>
|
|
807
807
|
<div
|
|
@@ -844,7 +844,7 @@ exports[`Pagination component render last page 1`] = `
|
|
|
844
844
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-9"
|
|
845
845
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
846
846
|
data-ouia-safe="true"
|
|
847
|
-
id="
|
|
847
|
+
id="options-menu-top-toggle"
|
|
848
848
|
type="button"
|
|
849
849
|
>
|
|
850
850
|
<span
|
|
@@ -1014,7 +1014,7 @@ exports[`Pagination component render limited number of pages 1`] = `
|
|
|
1014
1014
|
data-ouia-component-id="OUIA-Generated-Pagination-top-5"
|
|
1015
1015
|
data-ouia-component-type="PF4/Pagination"
|
|
1016
1016
|
data-ouia-safe="true"
|
|
1017
|
-
id="
|
|
1017
|
+
id="options-menu-top-pagination"
|
|
1018
1018
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1019
1019
|
>
|
|
1020
1020
|
<div
|
|
@@ -1057,7 +1057,7 @@ exports[`Pagination component render limited number of pages 1`] = `
|
|
|
1057
1057
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-7"
|
|
1058
1058
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
1059
1059
|
data-ouia-safe="true"
|
|
1060
|
-
id="
|
|
1060
|
+
id="options-menu-top-toggle"
|
|
1061
1061
|
type="button"
|
|
1062
1062
|
>
|
|
1063
1063
|
<span
|
|
@@ -1230,7 +1230,7 @@ exports[`Pagination component render should render correctly bottom 1`] = `
|
|
|
1230
1230
|
data-ouia-component-id="OUIA-Generated-Pagination-bottom-1"
|
|
1231
1231
|
data-ouia-component-type="PF4/Pagination"
|
|
1232
1232
|
data-ouia-safe="true"
|
|
1233
|
-
id="
|
|
1233
|
+
id="options-menu-bottom-pagination"
|
|
1234
1234
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1235
1235
|
>
|
|
1236
1236
|
<div
|
|
@@ -1261,7 +1261,7 @@ exports[`Pagination component render should render correctly bottom 1`] = `
|
|
|
1261
1261
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-2"
|
|
1262
1262
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
1263
1263
|
data-ouia-safe="true"
|
|
1264
|
-
id="
|
|
1264
|
+
id="options-menu-bottom-toggle"
|
|
1265
1265
|
type="button"
|
|
1266
1266
|
>
|
|
1267
1267
|
<span
|
|
@@ -1431,7 +1431,7 @@ exports[`Pagination component render should render correctly bottom sticky 1`] =
|
|
|
1431
1431
|
data-ouia-component-id="OUIA-Generated-Pagination-bottom-2"
|
|
1432
1432
|
data-ouia-component-type="PF4/Pagination"
|
|
1433
1433
|
data-ouia-safe="true"
|
|
1434
|
-
id="
|
|
1434
|
+
id="options-menu-bottom-pagination"
|
|
1435
1435
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1436
1436
|
>
|
|
1437
1437
|
<div
|
|
@@ -1462,7 +1462,7 @@ exports[`Pagination component render should render correctly bottom sticky 1`] =
|
|
|
1462
1462
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-5"
|
|
1463
1463
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
1464
1464
|
data-ouia-safe="true"
|
|
1465
|
-
id="
|
|
1465
|
+
id="options-menu-bottom-toggle"
|
|
1466
1466
|
type="button"
|
|
1467
1467
|
>
|
|
1468
1468
|
<span
|
|
@@ -1632,7 +1632,7 @@ exports[`Pagination component render should render correctly button variant 1`]
|
|
|
1632
1632
|
data-ouia-component-id="OUIA-Generated-Pagination-top-17"
|
|
1633
1633
|
data-ouia-component-type="PF4/Pagination"
|
|
1634
1634
|
data-ouia-safe="true"
|
|
1635
|
-
id="
|
|
1635
|
+
id="options-menu-top-pagination"
|
|
1636
1636
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1637
1637
|
>
|
|
1638
1638
|
<div
|
|
@@ -1660,7 +1660,7 @@ exports[`Pagination component render should render correctly button variant 1`]
|
|
|
1660
1660
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-18"
|
|
1661
1661
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
1662
1662
|
data-ouia-safe="true"
|
|
1663
|
-
id="
|
|
1663
|
+
id="options-menu-top-toggle"
|
|
1664
1664
|
type="button"
|
|
1665
1665
|
>
|
|
1666
1666
|
<span
|
|
@@ -1841,7 +1841,7 @@ exports[`Pagination component render should render correctly compact 1`] = `
|
|
|
1841
1841
|
data-ouia-component-id="OUIA-Generated-Pagination-top-2"
|
|
1842
1842
|
data-ouia-component-type="PF4/Pagination"
|
|
1843
1843
|
data-ouia-safe="true"
|
|
1844
|
-
id="
|
|
1844
|
+
id="options-menu-top-pagination"
|
|
1845
1845
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1846
1846
|
>
|
|
1847
1847
|
<div
|
|
@@ -1884,7 +1884,7 @@ exports[`Pagination component render should render correctly compact 1`] = `
|
|
|
1884
1884
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-3"
|
|
1885
1885
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
1886
1886
|
data-ouia-safe="true"
|
|
1887
|
-
id="
|
|
1887
|
+
id="options-menu-top-toggle"
|
|
1888
1888
|
type="button"
|
|
1889
1889
|
>
|
|
1890
1890
|
<span
|
|
@@ -1980,7 +1980,7 @@ exports[`Pagination component render should render correctly disabled 1`] = `
|
|
|
1980
1980
|
data-ouia-component-id="OUIA-Generated-Pagination-top-4"
|
|
1981
1981
|
data-ouia-component-type="PF4/Pagination"
|
|
1982
1982
|
data-ouia-safe="true"
|
|
1983
|
-
id="
|
|
1983
|
+
id="options-menu-top-pagination"
|
|
1984
1984
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
1985
1985
|
>
|
|
1986
1986
|
<div
|
|
@@ -2024,7 +2024,7 @@ exports[`Pagination component render should render correctly disabled 1`] = `
|
|
|
2024
2024
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
2025
2025
|
data-ouia-safe="true"
|
|
2026
2026
|
disabled=""
|
|
2027
|
-
id="
|
|
2027
|
+
id="options-menu-top-toggle"
|
|
2028
2028
|
type="button"
|
|
2029
2029
|
>
|
|
2030
2030
|
<span
|
|
@@ -2197,7 +2197,7 @@ exports[`Pagination component render should render correctly sticky 1`] = `
|
|
|
2197
2197
|
data-ouia-component-id="OUIA-Generated-Pagination-top-3"
|
|
2198
2198
|
data-ouia-component-type="PF4/Pagination"
|
|
2199
2199
|
data-ouia-safe="true"
|
|
2200
|
-
id="
|
|
2200
|
+
id="options-menu-top-pagination"
|
|
2201
2201
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
2202
2202
|
>
|
|
2203
2203
|
<div
|
|
@@ -2240,7 +2240,7 @@ exports[`Pagination component render should render correctly sticky 1`] = `
|
|
|
2240
2240
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-4"
|
|
2241
2241
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
2242
2242
|
data-ouia-safe="true"
|
|
2243
|
-
id="
|
|
2243
|
+
id="options-menu-top-toggle"
|
|
2244
2244
|
type="button"
|
|
2245
2245
|
>
|
|
2246
2246
|
<span
|
|
@@ -2410,7 +2410,7 @@ exports[`Pagination component render should render correctly top 1`] = `
|
|
|
2410
2410
|
data-ouia-component-id="OUIA-Generated-Pagination-top-1"
|
|
2411
2411
|
data-ouia-component-type="PF4/Pagination"
|
|
2412
2412
|
data-ouia-safe="true"
|
|
2413
|
-
id="
|
|
2413
|
+
id="options-menu-top-pagination"
|
|
2414
2414
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
2415
2415
|
>
|
|
2416
2416
|
<div
|
|
@@ -2453,7 +2453,7 @@ exports[`Pagination component render should render correctly top 1`] = `
|
|
|
2453
2453
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
|
|
2454
2454
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
2455
2455
|
data-ouia-safe="true"
|
|
2456
|
-
id="
|
|
2456
|
+
id="options-menu-top-toggle"
|
|
2457
2457
|
type="button"
|
|
2458
2458
|
>
|
|
2459
2459
|
<span
|
|
@@ -2623,7 +2623,7 @@ exports[`Pagination component render titles 1`] = `
|
|
|
2623
2623
|
data-ouia-component-id="OUIA-Generated-Pagination-top-11"
|
|
2624
2624
|
data-ouia-component-type="PF4/Pagination"
|
|
2625
2625
|
data-ouia-safe="true"
|
|
2626
|
-
id="
|
|
2626
|
+
id="options-menu-top-pagination"
|
|
2627
2627
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
2628
2628
|
>
|
|
2629
2629
|
<div
|
|
@@ -2666,7 +2666,7 @@ exports[`Pagination component render titles 1`] = `
|
|
|
2666
2666
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-12"
|
|
2667
2667
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
2668
2668
|
data-ouia-safe="true"
|
|
2669
|
-
id="
|
|
2669
|
+
id="options-menu-top-toggle"
|
|
2670
2670
|
type="button"
|
|
2671
2671
|
>
|
|
2672
2672
|
<span
|
|
@@ -2836,7 +2836,7 @@ exports[`Pagination component render up drop direction 1`] = `
|
|
|
2836
2836
|
data-ouia-component-id="OUIA-Generated-Pagination-top-13"
|
|
2837
2837
|
data-ouia-component-type="PF4/Pagination"
|
|
2838
2838
|
data-ouia-safe="true"
|
|
2839
|
-
id="
|
|
2839
|
+
id="options-menu-top-pagination"
|
|
2840
2840
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
2841
2841
|
>
|
|
2842
2842
|
<div
|
|
@@ -2879,7 +2879,7 @@ exports[`Pagination component render up drop direction 1`] = `
|
|
|
2879
2879
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-14"
|
|
2880
2880
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
2881
2881
|
data-ouia-safe="true"
|
|
2882
|
-
id="
|
|
2882
|
+
id="options-menu-top-toggle"
|
|
2883
2883
|
type="button"
|
|
2884
2884
|
>
|
|
2885
2885
|
<span
|
|
@@ -3049,7 +3049,7 @@ exports[`Pagination component render zero results 1`] = `
|
|
|
3049
3049
|
data-ouia-component-id="OUIA-Generated-Pagination-top-6"
|
|
3050
3050
|
data-ouia-component-type="PF4/Pagination"
|
|
3051
3051
|
data-ouia-safe="true"
|
|
3052
|
-
id="
|
|
3052
|
+
id="options-menu-top-pagination"
|
|
3053
3053
|
style="--pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;"
|
|
3054
3054
|
>
|
|
3055
3055
|
<div
|
|
@@ -3092,7 +3092,7 @@ exports[`Pagination component render zero results 1`] = `
|
|
|
3092
3092
|
data-ouia-component-id="OUIA-Generated-DropdownToggle-8"
|
|
3093
3093
|
data-ouia-component-type="PF4/DropdownToggle"
|
|
3094
3094
|
data-ouia-safe="true"
|
|
3095
|
-
id="
|
|
3095
|
+
id="options-menu-top-toggle"
|
|
3096
3096
|
type="button"
|
|
3097
3097
|
>
|
|
3098
3098
|
<span
|
|
@@ -22,7 +22,7 @@ export const PaginationBottom: React.FunctionComponent = () => {
|
|
|
22
22
|
<Pagination
|
|
23
23
|
perPageComponent="button"
|
|
24
24
|
itemCount={333}
|
|
25
|
-
widgetId="
|
|
25
|
+
widgetId="bottom-example"
|
|
26
26
|
perPage={perPage}
|
|
27
27
|
page={page}
|
|
28
28
|
variant={PaginationVariant.bottom}
|
|
@@ -266,7 +266,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
266
266
|
isInputFilterPersisted: false,
|
|
267
267
|
isCreateSelectOptionObject: false,
|
|
268
268
|
shouldResetOnSelect: true,
|
|
269
|
-
isFlipEnabled:
|
|
269
|
+
isFlipEnabled: true,
|
|
270
270
|
removeFindDomNode: false
|
|
271
271
|
};
|
|
272
272
|
|
|
@@ -1258,11 +1258,10 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
+
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
1261
1262
|
const innerMenu = (
|
|
1262
1263
|
<SelectMenu
|
|
1263
|
-
|
|
1264
|
-
// allowing the menu to flip correctly
|
|
1265
|
-
{...(isFlipEnabled && { style: { position: 'revert' } })}
|
|
1264
|
+
className={css(isStatic && styles.modifiers.static)}
|
|
1266
1265
|
{...props}
|
|
1267
1266
|
isGrouped={isGrouped}
|
|
1268
1267
|
selected={selections}
|