@patternfly/react-core 4.270.0 → 4.271.0
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 +11 -0
- package/components/SearchInput/SearchInput.js +1 -1
- package/components/SearchInput/SearchInput.js.map +1 -1
- package/components/TextInputGroup/TextInputGroupMain.d.ts +1 -1
- package/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
- package/components/TextInputGroup/TextInputGroupMain.js +1 -1
- package/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts +1 -1
- package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
- package/dist/esm/components/TextInputGroup/TextInputGroupMain.js +1 -1
- package/dist/esm/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.js +1 -1
- package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts +1 -1
- package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
- package/dist/js/components/TextInputGroup/TextInputGroupMain.js +1 -1
- package/dist/js/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +2 -2
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/TextInputGroup/TextInputGroupMain.tsx +2 -2
- package/src/components/TextInputGroup/examples/TextInputGroupFilters.tsx +1 -1
- package/src/components/TextInputGroup/examples/TextInputGroupUtilitiesAndIcon.tsx +1 -1
- package/src/demos/ComposableMenu/examples/ComposableMultipleTypeaheadSelect.tsx +1 -1
- package/src/demos/ComposableMenu/examples/ComposableTypeaheadSelect.tsx +1 -1
- package/src/demos/examples/TextInputGroup/AttributeValueFiltering.tsx +1 -1
- package/src/demos/examples/TextInputGroup/AutoCompleteSearch.tsx +1 -1
- package/src/next/components/Select/examples/SelectMultiTypeahead.tsx +1 -1
- package/src/next/components/Select/examples/SelectTypeahead.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.271.0",
|
|
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",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": "^16.8 || ^17 || ^18",
|
|
72
72
|
"react-dom": "^16.8 || ^17 || ^18"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "25c2750b4d7f220fe08d5cfa5ffacd06102d63fe"
|
|
75
75
|
}
|
|
@@ -206,7 +206,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
|
|
|
206
206
|
setIsSearchMenuOpen(isAdvancedSearchOpen);
|
|
207
207
|
}, [isAdvancedSearchOpen]);
|
|
208
208
|
|
|
209
|
-
const onChangeHandler = (
|
|
209
|
+
const onChangeHandler = (event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
210
210
|
if (onChange) {
|
|
211
211
|
onChange(value, event);
|
|
212
212
|
}
|
|
@@ -26,7 +26,7 @@ export interface TextInputGroupMainProps extends Omit<React.HTMLProps<HTMLDivEle
|
|
|
26
26
|
/** Suggestion that will show up like a placeholder even with text in the input */
|
|
27
27
|
hint?: string;
|
|
28
28
|
/** Callback for when there is a change in the input field*/
|
|
29
|
-
onChange?: (
|
|
29
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>, value: string) => void;
|
|
30
30
|
/** Callback for when the input field is focused*/
|
|
31
31
|
onFocus?: (event?: any) => void;
|
|
32
32
|
/** Callback for when focus is lost on the input field*/
|
|
@@ -61,7 +61,7 @@ export const TextInputGroupMain: React.FunctionComponent<TextInputGroupMainProps
|
|
|
61
61
|
const textInputGroupInputInputRef = innerRef || ref;
|
|
62
62
|
|
|
63
63
|
const handleChange = (event: React.FormEvent<HTMLInputElement>) => {
|
|
64
|
-
onChange(event.currentTarget.value
|
|
64
|
+
onChange(event, event.currentTarget.value);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
return (
|
|
@@ -27,7 +27,7 @@ export const TextInputGroupFilters: React.FunctionComponent = () => {
|
|
|
27
27
|
const showSearchIcon = !currentChips.length;
|
|
28
28
|
|
|
29
29
|
/** callback for updating the inputValue state in this component so that the input can be controlled */
|
|
30
|
-
const handleInputChange = (
|
|
30
|
+
const handleInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
31
31
|
setInputValue(value);
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -7,7 +7,7 @@ export const TextInputGroupUtilitiesAndIcon: React.FunctionComponent = () => {
|
|
|
7
7
|
const [inputValue, setInputValue] = React.useState('');
|
|
8
8
|
|
|
9
9
|
/** callback for updating the inputValue state in this component so that the input can be controlled */
|
|
10
|
-
const handleInputChange = (
|
|
10
|
+
const handleInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
11
11
|
setInputValue(value);
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -123,7 +123,7 @@ export const ComposableMultipleTypeaheadSelect: React.FunctionComponent = () =>
|
|
|
123
123
|
textInputRef.current?.focus();
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const onTextInputChange = (value: string) => {
|
|
126
|
+
const onTextInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
127
127
|
setInputValue(value);
|
|
128
128
|
};
|
|
129
129
|
|
|
@@ -135,7 +135,7 @@ export const ComposableTypeaheadSelect: React.FunctionComponent = () => {
|
|
|
135
135
|
textInputRef.current?.focus();
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
const onTextInputChange = (value: string) => {
|
|
138
|
+
const onTextInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
139
139
|
setInputValue(value);
|
|
140
140
|
setIsSelected(false);
|
|
141
141
|
};
|
|
@@ -44,7 +44,7 @@ export const AttributeValueFiltering: React.FunctionComponent = () => {
|
|
|
44
44
|
const textInputGroupRef = React.useRef<HTMLDivElement>();
|
|
45
45
|
|
|
46
46
|
/** callback for updating the inputValue state in this component so that the input can be controlled */
|
|
47
|
-
const handleInputChange = (
|
|
47
|
+
const handleInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
48
48
|
setInputValue(value);
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -31,7 +31,7 @@ export const AutoCompleteSearch: React.FunctionComponent = () => {
|
|
|
31
31
|
const textInputGroupRef = React.useRef<HTMLDivElement>();
|
|
32
32
|
|
|
33
33
|
/** callback for updating the inputValue state in this component so that the input can be controlled */
|
|
34
|
-
const handleInputChange = (
|
|
34
|
+
const handleInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
35
35
|
setInputValue(value);
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -109,7 +109,7 @@ export const SelectMultiTypeahead: React.FunctionComponent = () => {
|
|
|
109
109
|
setIsOpen(!isOpen);
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
const onTextInputChange = (value: string) => {
|
|
112
|
+
const onTextInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
113
113
|
setInputValue(value);
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -67,7 +67,7 @@ export const SelectBasic: React.FunctionComponent = () => {
|
|
|
67
67
|
setFocusedItemIndex(null);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
const onTextInputChange = (value: string) => {
|
|
70
|
+
const onTextInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
71
71
|
setInputValue(value);
|
|
72
72
|
setFilterValue(value);
|
|
73
73
|
};
|