@patternfly/react-core 4.175.6 → 4.175.10

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 (45) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/esm/components/Alert/Alert.d.ts +2 -0
  3. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/esm/components/Alert/Alert.js +2 -2
  5. package/dist/esm/components/Alert/Alert.js.map +1 -1
  6. package/dist/esm/components/FileUpload/FileUpload.d.ts +1 -1
  7. package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
  8. package/dist/esm/components/Pagination/Pagination.d.ts +1 -1
  9. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  10. package/dist/esm/components/Select/Select.js +4 -4
  11. package/dist/esm/components/Select/Select.js.map +1 -1
  12. package/dist/esm/components/Toolbar/ToolbarContent.d.ts +1 -1
  13. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  14. package/dist/esm/components/Toolbar/ToolbarItem.d.ts +1 -1
  15. package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
  16. package/dist/js/components/Alert/Alert.d.ts +2 -0
  17. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  18. package/dist/js/components/Alert/Alert.js +2 -2
  19. package/dist/js/components/Alert/Alert.js.map +1 -1
  20. package/dist/js/components/FileUpload/FileUpload.d.ts +1 -1
  21. package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
  22. package/dist/js/components/Pagination/Pagination.d.ts +1 -1
  23. package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
  24. package/dist/js/components/Select/Select.js +4 -4
  25. package/dist/js/components/Select/Select.js.map +1 -1
  26. package/dist/js/components/Toolbar/ToolbarContent.d.ts +1 -1
  27. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  28. package/dist/js/components/Toolbar/ToolbarItem.d.ts +1 -1
  29. package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
  30. package/dist/umd/react-core.css +830 -830
  31. package/dist/umd/react-core.js +6 -6
  32. package/dist/umd/react-core.min.js +1 -1
  33. package/package.json +6 -6
  34. package/src/components/Alert/Alert.tsx +5 -2
  35. package/src/components/Alert/__tests__/Alert.test.tsx +9 -0
  36. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +370 -40
  37. package/src/components/Alert/examples/Alert.md +2 -1
  38. package/src/components/FileUpload/FileUpload.tsx +1 -1
  39. package/src/components/Pagination/Pagination.tsx +1 -1
  40. package/src/components/Select/Select.tsx +4 -4
  41. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +24 -24
  42. package/src/components/Toolbar/ToolbarContent.tsx +1 -1
  43. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  44. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  45. package/src/components/Toolbar/ToolbarToggleGroup.tsx +1 -1
@@ -75,7 +75,8 @@ class AlertVariations extends React.Component {
75
75
  }
76
76
  />
77
77
  <Alert variant="success" title="Success alert title" actionClose={<AlertActionCloseButton onClose={() => alert('Clicked the close button')} />} />
78
- <Alert variant="success" title="Success alert title" />
78
+ <Alert variant="success" title="h1 Success alert title" titleHeadingLevel="h1" />
79
+ <Alert variant="success" title="h6 Success alert title" titleHeadingLevel="h6" />
79
80
  </React.Fragment>
80
81
  );
81
82
  }
@@ -23,7 +23,7 @@ export interface FileUploadProps
23
23
  value?: string | File;
24
24
  /** Value to be shown in the read-only filename field. */
25
25
  filename?: string;
26
- /** *(deprecated)* A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
26
+ /** @deprecated A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
27
27
  onChange?: (
28
28
  value: string | File,
29
29
  filename: string,
@@ -123,7 +123,7 @@ export interface PaginationProps extends React.HTMLProps<HTMLDivElement>, OUIAPr
123
123
  dropDirection?: 'up' | 'down';
124
124
  /** Object with titles to display in pagination. */
125
125
  titles?: PaginationTitles;
126
- /** This will be shown in pagination toggle span. You can use firstIndex, lastIndex, itemCount, itemsTitle props. */
126
+ /** This will be shown in pagination toggle span. You can use firstIndex, lastIndex, itemCount, itemsTitle, ofWord props. */
127
127
  toggleTemplate?: ((props: ToggleTemplateProps) => React.ReactElement) | string;
128
128
  /** Function called when user sets page. */
129
129
  onSetPage?: OnSetPage;
@@ -381,7 +381,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
381
381
  typeaheadFilteredChildren =
382
382
  typeaheadInputValue.toString() !== ''
383
383
  ? React.Children.map(children, group => {
384
- if (group.type === SelectGroup) {
384
+ if (React.isValidElement(group) && group.type === SelectGroup) {
385
385
  const filteredGroupChildren = (React.Children.toArray(group.props.children) as React.ReactElement<
386
386
  SelectGroupProps
387
387
  >[]).filter(childFilter);
@@ -934,7 +934,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
934
934
  }
935
935
  }}
936
936
  ref={this.filterRef}
937
- autoComplete="off"
937
+ autoComplete="never"
938
938
  />
939
939
  </div>
940
940
  <Divider key="inline-filter-divider" />
@@ -1128,7 +1128,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
1128
1128
  type="text"
1129
1129
  onClick={this.onClick}
1130
1130
  onChange={this.onChange}
1131
- autoComplete="off"
1131
+ autoComplete="never"
1132
1132
  disabled={isDisabled}
1133
1133
  ref={this.inputRef}
1134
1134
  />
@@ -1152,7 +1152,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
1152
1152
  type="text"
1153
1153
  onChange={this.onChange}
1154
1154
  onClick={this.onClick}
1155
- autoComplete="off"
1155
+ autoComplete="never"
1156
1156
  disabled={isDisabled}
1157
1157
  ref={this.inputRef}
1158
1158
  />
@@ -2831,7 +2831,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
2831
2831
  class="pf-c-select__menu-search"
2832
2832
  >
2833
2833
  <input
2834
- autocomplete="off"
2834
+ autocomplete="never"
2835
2835
  class="pf-c-form-control pf-m-search"
2836
2836
  type="search"
2837
2837
  />
@@ -2956,7 +2956,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
2956
2956
  class="pf-c-select__menu-search"
2957
2957
  >
2958
2958
  <input
2959
- autocomplete="off"
2959
+ autocomplete="never"
2960
2960
  class="pf-c-form-control pf-m-search"
2961
2961
  type="search"
2962
2962
  />
@@ -3122,7 +3122,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
3122
3122
  class="pf-c-select__menu-search"
3123
3123
  >
3124
3124
  <input
3125
- autocomplete="off"
3125
+ autocomplete="never"
3126
3126
  class="pf-c-form-control pf-m-search"
3127
3127
  type="search"
3128
3128
  />
@@ -3214,7 +3214,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
3214
3214
  key="inline-filter"
3215
3215
  >
3216
3216
  <input
3217
- autoComplete="off"
3217
+ autoComplete="never"
3218
3218
  className="pf-c-form-control pf-m-search"
3219
3219
  key="inline-filter-input"
3220
3220
  onChange={[Function]}
@@ -3485,7 +3485,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
3485
3485
  class="pf-c-select__menu-search"
3486
3486
  >
3487
3487
  <input
3488
- autocomplete="off"
3488
+ autocomplete="never"
3489
3489
  class="pf-c-form-control pf-m-search"
3490
3490
  type="search"
3491
3491
  />
@@ -3610,7 +3610,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
3610
3610
  class="pf-c-select__menu-search"
3611
3611
  >
3612
3612
  <input
3613
- autocomplete="off"
3613
+ autocomplete="never"
3614
3614
  class="pf-c-form-control pf-m-search"
3615
3615
  type="search"
3616
3616
  />
@@ -3776,7 +3776,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
3776
3776
  class="pf-c-select__menu-search"
3777
3777
  >
3778
3778
  <input
3779
- autocomplete="off"
3779
+ autocomplete="never"
3780
3780
  class="pf-c-form-control pf-m-search"
3781
3781
  type="search"
3782
3782
  />
@@ -3868,7 +3868,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
3868
3868
  key="inline-filter"
3869
3869
  >
3870
3870
  <input
3871
- autoComplete="off"
3871
+ autoComplete="never"
3872
3872
  className="pf-c-form-control pf-m-search"
3873
3873
  key="inline-filter-input"
3874
3874
  onChange={[Function]}
@@ -6002,7 +6002,7 @@ exports[`select custom select filter filters properly 1`] = `
6002
6002
  >
6003
6003
  <input
6004
6004
  aria-label=""
6005
- autocomplete="off"
6005
+ autocomplete="never"
6006
6006
  class="pf-c-form-control pf-c-select__toggle-typeahead"
6007
6007
  id="custom-select-filters-select-typeahead"
6008
6008
  placeholder=""
@@ -6098,7 +6098,7 @@ exports[`select custom select filter filters properly 1`] = `
6098
6098
  <input
6099
6099
  aria-activedescendant={null}
6100
6100
  aria-label=""
6101
- autoComplete="off"
6101
+ autoComplete="never"
6102
6102
  className="pf-c-form-control pf-c-select__toggle-typeahead"
6103
6103
  disabled={false}
6104
6104
  id="custom-select-filters-select-typeahead"
@@ -9595,7 +9595,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
9595
9595
  <input
9596
9596
  aria-invalid="false"
9597
9597
  aria-label=""
9598
- autocomplete="off"
9598
+ autocomplete="never"
9599
9599
  class="pf-c-form-control pf-c-select__toggle-typeahead"
9600
9600
  id="typeahead-multi-select-closed-select-multi-typeahead-typeahead"
9601
9601
  placeholder=""
@@ -9647,7 +9647,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
9647
9647
  aria-activedescendant={null}
9648
9648
  aria-invalid={false}
9649
9649
  aria-label=""
9650
- autoComplete="off"
9650
+ autoComplete="never"
9651
9651
  className="pf-c-form-control pf-c-select__toggle-typeahead"
9652
9652
  disabled={false}
9653
9653
  id="typeahead-multi-select-closed-select-multi-typeahead-typeahead"
@@ -9856,7 +9856,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
9856
9856
  <input
9857
9857
  aria-invalid="false"
9858
9858
  aria-label=""
9859
- autocomplete="off"
9859
+ autocomplete="never"
9860
9860
  class="pf-c-form-control pf-c-select__toggle-typeahead"
9861
9861
  id="pf-select-toggle-id-13-select-multi-typeahead-typeahead"
9862
9862
  placeholder=""
@@ -9966,7 +9966,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
9966
9966
  aria-activedescendant={null}
9967
9967
  aria-invalid={false}
9968
9968
  aria-label=""
9969
- autoComplete="off"
9969
+ autoComplete="never"
9970
9970
  className="pf-c-form-control pf-c-select__toggle-typeahead"
9971
9971
  disabled={false}
9972
9972
  id="pf-select-toggle-id-13-select-multi-typeahead-typeahead"
@@ -10585,7 +10585,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
10585
10585
  <input
10586
10586
  aria-invalid="false"
10587
10587
  aria-label=""
10588
- autocomplete="off"
10588
+ autocomplete="never"
10589
10589
  class="pf-c-form-control pf-c-select__toggle-typeahead"
10590
10590
  id="typeahead-multi-select-selected-select-multi-typeahead-typeahead"
10591
10591
  placeholder=""
@@ -10949,7 +10949,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
10949
10949
  aria-activedescendant={null}
10950
10950
  aria-invalid={false}
10951
10951
  aria-label=""
10952
- autoComplete="off"
10952
+ autoComplete="never"
10953
10953
  className="pf-c-form-control pf-c-select__toggle-typeahead"
10954
10954
  disabled={false}
10955
10955
  id="typeahead-multi-select-selected-select-multi-typeahead-typeahead"
@@ -11472,7 +11472,7 @@ exports[`typeahead select renders closed successfully 1`] = `
11472
11472
  >
11473
11473
  <input
11474
11474
  aria-label=""
11475
- autocomplete="off"
11475
+ autocomplete="never"
11476
11476
  class="pf-c-form-control pf-c-select__toggle-typeahead"
11477
11477
  id="typeahead-select-closed-select-typeahead"
11478
11478
  placeholder=""
@@ -11523,7 +11523,7 @@ exports[`typeahead select renders closed successfully 1`] = `
11523
11523
  <input
11524
11524
  aria-activedescendant={null}
11525
11525
  aria-label=""
11526
- autoComplete="off"
11526
+ autoComplete="never"
11527
11527
  className="pf-c-form-control pf-c-select__toggle-typeahead"
11528
11528
  disabled={false}
11529
11529
  id="typeahead-select-closed-select-typeahead"
@@ -11731,7 +11731,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
11731
11731
  >
11732
11732
  <input
11733
11733
  aria-label=""
11734
- autocomplete="off"
11734
+ autocomplete="never"
11735
11735
  class="pf-c-form-control pf-c-select__toggle-typeahead"
11736
11736
  id="pf-select-toggle-id-8-select-typeahead"
11737
11737
  placeholder=""
@@ -11840,7 +11840,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
11840
11840
  <input
11841
11841
  aria-activedescendant={null}
11842
11842
  aria-label=""
11843
- autoComplete="off"
11843
+ autoComplete="never"
11844
11844
  className="pf-c-form-control pf-c-select__toggle-typeahead"
11845
11845
  disabled={false}
11846
11846
  id="pf-select-toggle-id-8-select-typeahead"
@@ -12333,7 +12333,7 @@ exports[`typeahead select renders selected successfully 1`] = `
12333
12333
  >
12334
12334
  <input
12335
12335
  aria-label=""
12336
- autocomplete="off"
12336
+ autocomplete="never"
12337
12337
  class="pf-c-form-control pf-c-select__toggle-typeahead"
12338
12338
  id="pf-select-toggle-id-9-select-typeahead"
12339
12339
  placeholder=""
@@ -12460,7 +12460,7 @@ exports[`typeahead select renders selected successfully 1`] = `
12460
12460
  <input
12461
12461
  aria-activedescendant={null}
12462
12462
  aria-label=""
12463
- autoComplete="off"
12463
+ autoComplete="never"
12464
12464
  className="pf-c-form-control pf-c-select__toggle-typeahead"
12465
12465
  disabled={false}
12466
12466
  id="pf-select-toggle-id-9-select-typeahead"
@@ -12943,7 +12943,7 @@ exports[`typeahead select test select existing option on a non-creatable select
12943
12943
  >
12944
12944
  <input
12945
12945
  aria-label=""
12946
- autocomplete="off"
12946
+ autocomplete="never"
12947
12947
  class="pf-c-form-control pf-c-select__toggle-typeahead"
12948
12948
  id="pf-select-toggle-id-12-select-typeahead"
12949
12949
  placeholder=""
@@ -13013,7 +13013,7 @@ exports[`typeahead select test select existing option on a non-creatable select
13013
13013
  <input
13014
13014
  aria-activedescendant={null}
13015
13015
  aria-label=""
13016
- autoComplete="off"
13016
+ autoComplete="never"
13017
13017
  className="pf-c-form-control pf-c-select__toggle-typeahead"
13018
13018
  disabled={false}
13019
13019
  id="pf-select-toggle-id-12-select-typeahead"
@@ -16,7 +16,7 @@ export interface ToolbarContentProps extends React.HTMLProps<HTMLDivElement> {
16
16
  xl?: 'hidden' | 'visible';
17
17
  '2xl'?: 'hidden' | 'visible';
18
18
  };
19
- /** Deprecated: prop misspelled */
19
+ /** @deprecated prop misspelled */
20
20
  visiblity?: {
21
21
  default?: 'hidden' | 'visible';
22
22
  md?: 'hidden' | 'visible';
@@ -22,7 +22,7 @@ export interface ToolbarGroupProps extends Omit<React.HTMLProps<HTMLDivElement>,
22
22
  xl?: 'hidden' | 'visible';
23
23
  '2xl'?: 'hidden' | 'visible';
24
24
  };
25
- /** Deprecated: prop misspelled */
25
+ /** @deprecated prop misspelled */
26
26
  visiblity?: {
27
27
  default?: 'hidden' | 'visible';
28
28
  md?: 'hidden' | 'visible';
@@ -38,7 +38,7 @@ export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
38
38
  xl?: 'hidden' | 'visible';
39
39
  '2xl'?: 'hidden' | 'visible';
40
40
  };
41
- /** Deprecated: prop misspelled */
41
+ /** @deprecated prop misspelled */
42
42
  visiblity?: {
43
43
  default?: 'hidden' | 'visible';
44
44
  md?: 'hidden' | 'visible';
@@ -21,7 +21,7 @@ export interface ToolbarToggleGroupProps extends ToolbarGroupProps {
21
21
  xl?: 'hidden' | 'visible';
22
22
  '2xl'?: 'hidden' | 'visible';
23
23
  };
24
- /** Deprecated: prop misspelled */
24
+ /** @deprecated prop misspelled */
25
25
  visiblity?: {
26
26
  default?: 'hidden' | 'visible';
27
27
  md?: 'hidden' | 'visible';