@patternfly/react-core 4.271.1 → 4.271.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/components/LoginPage/LoginPage.d.ts +1 -1
  3. package/components/LoginPage/LoginPage.d.ts.map +1 -1
  4. package/components/Menu/MenuItem.d.ts +1 -1
  5. package/components/Menu/MenuItem.d.ts.map +1 -1
  6. package/components/SearchInput/SearchInput.d.ts +2 -0
  7. package/components/SearchInput/SearchInput.d.ts.map +1 -1
  8. package/components/SearchInput/SearchInput.js +2 -2
  9. package/components/SearchInput/SearchInput.js.map +1 -1
  10. package/components/Select/Select.d.ts +3 -3
  11. package/components/Select/Select.d.ts.map +1 -1
  12. package/components/Tabs/Tabs.d.ts +3 -3
  13. package/components/Tabs/Tabs.d.ts.map +1 -1
  14. package/components/TextInputGroup/TextInputGroupMain.d.ts +2 -0
  15. package/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  16. package/components/TextInputGroup/TextInputGroupMain.js +2 -2
  17. package/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  18. package/dist/esm/components/LoginPage/LoginPage.d.ts +1 -1
  19. package/dist/esm/components/LoginPage/LoginPage.d.ts.map +1 -1
  20. package/dist/esm/components/Menu/MenuItem.d.ts +1 -1
  21. package/dist/esm/components/Menu/MenuItem.d.ts.map +1 -1
  22. package/dist/esm/components/SearchInput/SearchInput.d.ts +2 -0
  23. package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
  24. package/dist/esm/components/SearchInput/SearchInput.js +2 -2
  25. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  26. package/dist/esm/components/Select/Select.d.ts +3 -3
  27. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  28. package/dist/esm/components/Tabs/Tabs.d.ts +3 -3
  29. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  30. package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts +2 -0
  31. package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  32. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js +2 -2
  33. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  34. package/dist/js/components/LoginPage/LoginPage.d.ts +1 -1
  35. package/dist/js/components/LoginPage/LoginPage.d.ts.map +1 -1
  36. package/dist/js/components/Menu/MenuItem.d.ts +1 -1
  37. package/dist/js/components/Menu/MenuItem.d.ts.map +1 -1
  38. package/dist/js/components/SearchInput/SearchInput.d.ts +2 -0
  39. package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
  40. package/dist/js/components/SearchInput/SearchInput.js +2 -2
  41. package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
  42. package/dist/js/components/Select/Select.d.ts +3 -3
  43. package/dist/js/components/Select/Select.d.ts.map +1 -1
  44. package/dist/js/components/Tabs/Tabs.d.ts +3 -3
  45. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  46. package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts +2 -0
  47. package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  48. package/dist/js/components/TextInputGroup/TextInputGroupMain.js +2 -2
  49. package/dist/js/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  50. package/dist/umd/react-core.min.js +1 -1
  51. package/package.json +2 -2
  52. package/src/components/Alert/examples/Alert.md +1 -1
  53. package/src/components/LoginPage/LoginPage.tsx +1 -1
  54. package/src/components/Menu/MenuItem.tsx +1 -1
  55. package/src/components/SearchInput/SearchInput.tsx +4 -0
  56. package/src/components/Select/Select.tsx +3 -3
  57. package/src/components/Tabs/Tabs.tsx +3 -3
  58. package/src/components/Tabs/examples/Tabs.md +3 -3
  59. package/src/components/TextArea/examples/TextArea.md +1 -1
  60. package/src/components/TextInputGroup/TextInputGroupMain.tsx +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.271.1",
3
+ "version": "4.271.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",
@@ -71,5 +71,5 @@
71
71
  "react": "^16.8 || ^17 || ^18",
72
72
  "react-dom": "^16.8 || ^17 || ^18"
73
73
  },
74
- "gitHead": "541f76a7ca04fc3206d75f13648dda8cc92c9e15"
74
+ "gitHead": "27ec34e45b7fb806e04e402be185ff819b1bb781"
75
75
  }
@@ -360,4 +360,4 @@ Alerts that are asynchronously appended into dynamic [alert groups](/components/
360
360
 
361
361
  This example shows how an alert could be triggered by an asynchronous event in the application. Note that you can customize how the alert will be announced to assistive technology. See the [https://www.patternfly.org/v4/components/alert/accessibility](alert accessibility) for more information.
362
362
  ```ts file="AlertAsyncLiveRegion.tsx"
363
- ```
363
+ ```
@@ -35,7 +35,7 @@ export interface LoginPageProps extends React.HTMLProps<HTMLDivElement> {
35
35
  loginTitle: string;
36
36
  /** Subtitle for the login main body header of the login page */
37
37
  loginSubtitle?: string;
38
- /** @beta Header utilities for the login main body header of the login page */
38
+ /** Header utilities for the login main body header of the login page */
39
39
  headerUtilities?: React.ReactNode;
40
40
  /** Content rendered inside of login main footer band to display a sign up for account message */
41
41
  signUpForAccountMessage?: React.ReactNode;
@@ -24,7 +24,7 @@ export interface MenuItemProps extends Omit<React.HTMLProps<HTMLLIElement>, 'onC
24
24
  itemId?: any;
25
25
  /** Target navigation link. Should not be used if the flyout prop is defined. */
26
26
  to?: string;
27
- /** @beta Flag indicating the item has a checkbox */
27
+ /** Flag indicating the item has a checkbox */
28
28
  hasCheck?: boolean;
29
29
  /** Flag indicating whether the item is active */
30
30
  isActive?: boolean;
@@ -130,6 +130,8 @@ export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>,
130
130
  submitSearchButtonLabel?: string;
131
131
  /** Value of the search input. */
132
132
  value?: string;
133
+ /** Name attribue for the search input */
134
+ name?: string;
133
135
  }
134
136
 
135
137
  const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
@@ -164,6 +166,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
164
166
  removeFindDomNode = false,
165
167
  zIndex = 9999,
166
168
  type = 'text',
169
+ name,
167
170
  ...props
168
171
  }: SearchInputProps) => {
169
172
  const [isSearchMenuOpen, setIsSearchMenuOpen] = React.useState(false);
@@ -304,6 +307,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
304
307
  onKeyDown={onEnter}
305
308
  onChange={onChangeHandler}
306
309
  type={type}
310
+ name={name}
307
311
  />
308
312
  {renderUtilities && (
309
313
  <TextInputGroupUtilities>
@@ -73,7 +73,7 @@ export interface SelectProps
73
73
  isCreateOptionOnTop?: boolean;
74
74
  /** Flag indicating if placeholder styles should be applied */
75
75
  hasPlaceholderStyle?: boolean;
76
- /** @beta Flag indicating if the creatable option should set its value as a SelectOptionObject */
76
+ /** Flag indicating if the creatable option should set its value as a SelectOptionObject */
77
77
  isCreateSelectOptionObject?: boolean;
78
78
  /** Value to indicate if the select is modified to show that validation state.
79
79
  * If set to success, select will be modified to indicate valid state.
@@ -81,7 +81,7 @@ export interface SelectProps
81
81
  * If set to warning, select will be modified to indicate warning state.
82
82
  */
83
83
  validated?: 'success' | 'warning' | 'error' | 'default';
84
- /** @beta Loading variant to display either the spinner or the view more text button */
84
+ /** Loading variant to display either the spinner or the view more text button */
85
85
  loadingVariant?: 'spinner' | SelectViewMoreObject;
86
86
  /** Text displayed in typeahead select to prompt the user to create an item */
87
87
  createText?: string;
@@ -165,7 +165,7 @@ export interface SelectProps
165
165
  chipGroupComponent?: React.ReactNode;
166
166
  /** Flag for retaining keyboard-entered value in typeahead text field when focus leaves input away */
167
167
  isInputValuePersisted?: boolean;
168
- /** @beta Flag for retaining filter results on blur from keyboard-entered typeahead text */
168
+ /** Flag for retaining filter results on blur from keyboard-entered typeahead text */
169
169
  isInputFilterPersisted?: boolean;
170
170
  /** Flag indicating the typeahead input value should reset upon selection */
171
171
  shouldResetOnSelect?: boolean;
@@ -42,11 +42,11 @@ export interface TabsProps extends Omit<React.HTMLProps<HTMLElement | HTMLDivEle
42
42
  defaultActiveKey?: number | string;
43
43
  /** Callback to handle tab selection */
44
44
  onSelect?: (event: React.MouseEvent<HTMLElement, MouseEvent>, eventKey: number | string) => void;
45
- /** @beta Callback to handle tab closing and adds a basic close button to all tabs. This is overridden by the tab actions property. */
45
+ /** Callback to handle tab closing and adds a basic close button to all tabs. This is overridden by the tab actions property. */
46
46
  onClose?: (event: React.MouseEvent<HTMLElement, MouseEvent>, eventKey: number | string) => void;
47
- /** @beta Callback for the add button. Passing this property inserts the add button */
47
+ /** Callback for the add button. Passing this property inserts the add button */
48
48
  onAdd?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
49
- /** @beta Aria-label for the add button */
49
+ /** Aria-label for the add button */
50
50
  addButtonAriaLabel?: string;
51
51
  /** Uniquely identifies the tabs */
52
52
  id?: string;
@@ -141,15 +141,15 @@ The tooltip should also have the `id` prop passed in. The value given to this pr
141
141
 
142
142
  To enable closeable tabs, pass the `onClose` property to `Tabs`, and to enable the add button, pass the `onAdd` property to `Tabs`. Aria labels may be controlled manually by passing `closeButtonAriaLabel` to `Tab` and `addButtonAriaLabel` to `Tabs`.
143
143
 
144
- ```ts file="./TabsDynamic.tsx" isBeta
144
+ ```ts file="./TabsDynamic.tsx"
145
145
  ```
146
146
 
147
147
  ### Help action
148
148
 
149
- ```ts file="./TabsHelp.tsx" isBeta
149
+ ```ts file="./TabsHelp.tsx"
150
150
  ```
151
151
 
152
152
  ### Help and close actions
153
153
 
154
- ```ts file="./TabsHelpAndClose.tsx" isBeta
154
+ ```ts file="./TabsHelpAndClose.tsx"
155
155
  ```
@@ -56,5 +56,5 @@ propComponents: ['TextArea']
56
56
 
57
57
  **Note:** The icons for the success, invalid, calendar, etc. variations in form control elements are applied as background images to the form element. By default, the image URLs for these icons are data URIs. However, there may be cases where data URIs are not ideal, such as in an application with a content security policy that disallows data URIs for security reasons. The `isIconSprite` variation changes the icon source to an external SVG file that serves as a sprite for all of the supported icons.
58
58
 
59
- ```ts isBeta file="./TextAreaIconSprite.tsx"
59
+ ```ts file="./TextAreaIconSprite.tsx"
60
60
  ```
@@ -39,6 +39,8 @@ export interface TextInputGroupMainProps extends Omit<React.HTMLProps<HTMLDivEle
39
39
  placeholder?: string;
40
40
  /** A reference object to attach to the input box */
41
41
  innerRef?: React.RefObject<any>;
42
+ /** Name for the input */
43
+ name?: string;
42
44
  }
43
45
 
44
46
  export const TextInputGroupMain: React.FunctionComponent<TextInputGroupMainProps> = ({
@@ -54,6 +56,7 @@ export const TextInputGroupMain: React.FunctionComponent<TextInputGroupMainProps
54
56
  value: inputValue,
55
57
  placeholder: inputPlaceHolder,
56
58
  innerRef,
59
+ name,
57
60
  ...props
58
61
  }: TextInputGroupMainProps) => {
59
62
  const { isDisabled } = React.useContext(TextInputGroupContext);
@@ -89,6 +92,7 @@ export const TextInputGroupMain: React.FunctionComponent<TextInputGroupMainProps
89
92
  onBlur={onBlur}
90
93
  value={inputValue || ''}
91
94
  placeholder={inputPlaceHolder}
95
+ name={name}
92
96
  />
93
97
  </span>
94
98
  </div>