@patternfly/react-core 4.221.0 → 4.221.3

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 (42) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/esm/components/DataList/DataList.d.ts +9 -0
  3. package/dist/esm/components/DataList/DataList.d.ts.map +1 -1
  4. package/dist/esm/components/DataList/DataList.js +3 -2
  5. package/dist/esm/components/DataList/DataList.js.map +1 -1
  6. package/dist/esm/components/DataList/DataListItem.d.ts +2 -0
  7. package/dist/esm/components/DataList/DataListItem.d.ts.map +1 -1
  8. package/dist/esm/components/DataList/DataListItem.js +13 -6
  9. package/dist/esm/components/DataList/DataListItem.js.map +1 -1
  10. package/dist/esm/components/Select/Select.d.ts +2 -0
  11. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  12. package/dist/esm/components/Select/Select.js +8 -7
  13. package/dist/esm/components/Select/Select.js.map +1 -1
  14. package/dist/js/components/DataList/DataList.d.ts +9 -0
  15. package/dist/js/components/DataList/DataList.d.ts.map +1 -1
  16. package/dist/js/components/DataList/DataList.js +3 -2
  17. package/dist/js/components/DataList/DataList.js.map +1 -1
  18. package/dist/js/components/DataList/DataListItem.d.ts +2 -0
  19. package/dist/js/components/DataList/DataListItem.d.ts.map +1 -1
  20. package/dist/js/components/DataList/DataListItem.js +13 -6
  21. package/dist/js/components/DataList/DataListItem.js.map +1 -1
  22. package/dist/js/components/Select/Select.d.ts +2 -0
  23. package/dist/js/components/Select/Select.d.ts.map +1 -1
  24. package/dist/js/components/Select/Select.js +8 -7
  25. package/dist/js/components/Select/Select.js.map +1 -1
  26. package/dist/styles/assets/images/icon-github.hbs +4 -0
  27. package/dist/styles/assets/images/icon-google.hbs +4 -0
  28. package/dist/styles/assets/images/icon-red-hat.hbs +1 -0
  29. package/dist/styles/base-no-reset.css +93 -4
  30. package/dist/styles/base.css +93 -4
  31. package/dist/umd/react-core.css +790 -8
  32. package/dist/umd/react-core.js +110 -53
  33. package/dist/umd/react-core.min.css +790 -8
  34. package/dist/umd/react-core.min.js +4 -4
  35. package/package.json +6 -6
  36. package/src/components/DataList/DataList.tsx +12 -0
  37. package/src/components/DataList/DataListItem.tsx +32 -3
  38. package/src/components/DataList/__tests__/DataList.test.tsx +130 -0
  39. package/src/components/DataList/examples/DataList.md +1 -0
  40. package/src/components/DataList/examples/DataListSelectableRows.tsx +5 -0
  41. package/src/components/Select/Select.tsx +8 -2
  42. package/src/demos/PrimaryDetail.md +1 -1
@@ -4110,7 +4110,8 @@
4110
4110
  "card": "pf-c-card",
4111
4111
  "modifiers": {
4112
4112
  "plain": "pf-m-plain"
4113
- }
4113
+ },
4114
+ "themeDark": "pf-theme-dark"
4114
4115
  };
4115
4116
 
4116
4117
  Promise.resolve().then(function () { return content; });
@@ -4228,7 +4229,8 @@
4228
4229
  "end": "pf-m-end",
4229
4230
  "overpassFont": "pf-m-overpass-font"
4230
4231
  },
4231
- "spinner": "pf-c-spinner"
4232
+ "spinner": "pf-c-spinner",
4233
+ "themeDark": "pf-theme-dark"
4232
4234
  };
4233
4235
 
4234
4236
  Promise.resolve().then(function () { return spinner; });
@@ -4545,7 +4547,8 @@
4545
4547
  "bordered": "pf-m-bordered",
4546
4548
  "expanded": "pf-m-expanded",
4547
4549
  "fixed": "pf-m-fixed"
4548
- }
4550
+ },
4551
+ "themeDark": "pf-theme-dark"
4549
4552
  };
4550
4553
 
4551
4554
  const AccordionContext = React__namespace.createContext({});
@@ -4651,7 +4654,8 @@
4651
4654
  "expanded": "pf-m-expanded",
4652
4655
  "truncate": "pf-m-truncate",
4653
4656
  "overpassFont": "pf-m-overpass-font"
4654
- }
4657
+ },
4658
+ "themeDark": "pf-theme-dark"
4655
4659
  };
4656
4660
 
4657
4661
  Promise.resolve().then(function () { return accessibility; });
@@ -4780,6 +4784,7 @@
4780
4784
  "rightBottom": "pf-m-right-bottom",
4781
4785
  "textAlignLeft": "pf-m-text-align-left"
4782
4786
  },
4787
+ "themeDark": "pf-theme-dark",
4783
4788
  "tooltip": "pf-c-tooltip",
4784
4789
  "tooltipArrow": "pf-c-tooltip__arrow",
4785
4790
  "tooltipContent": "pf-c-tooltip__content"
@@ -5143,7 +5148,8 @@
5143
5148
  "external": "pf-m-external",
5144
5149
  "link": "pf-m-link",
5145
5150
  "action": "pf-m-action"
5146
- }
5151
+ },
5152
+ "themeDark": "pf-theme-dark"
5147
5153
  };
5148
5154
 
5149
5155
  Promise.resolve().then(function () { return formControl; });
@@ -5161,7 +5167,8 @@
5161
5167
  "placeholder": "pf-m-placeholder",
5162
5168
  "resizeVertical": "pf-m-resize-vertical",
5163
5169
  "resizeHorizontal": "pf-m-resize-horizontal"
5164
- }
5170
+ },
5171
+ "themeDark": "pf-theme-dark"
5165
5172
  };
5166
5173
 
5167
5174
  const ThIconConfig = {
@@ -5224,7 +5231,8 @@
5224
5231
  "ariaDisabled": "pf-m-aria-disabled",
5225
5232
  "icon": "pf-m-icon",
5226
5233
  "description": "pf-m-description"
5227
- }
5234
+ },
5235
+ "themeDark": "pf-theme-dark"
5228
5236
  };
5229
5237
 
5230
5238
  exports.DropdownPosition = void 0;
@@ -5852,7 +5860,8 @@
5852
5860
  "modifiers": {
5853
5861
  "read": "pf-m-read",
5854
5862
  "unread": "pf-m-unread"
5855
- }
5863
+ },
5864
+ "themeDark": "pf-theme-dark"
5856
5865
  };
5857
5866
 
5858
5867
  const Badge = (_a) => {
@@ -6390,7 +6399,8 @@
6390
6399
  "sticky": "pf-m-sticky",
6391
6400
  "disabled": "pf-m-disabled",
6392
6401
  "inline": "pf-m-inline"
6393
- }
6402
+ },
6403
+ "themeDark": "pf-theme-dark"
6394
6404
  };
6395
6405
 
6396
6406
  const Banner = (_a) => {
@@ -6438,7 +6448,8 @@
6438
6448
  "modifiers": {
6439
6449
  "current": "pf-m-current",
6440
6450
  "overpassFont": "pf-m-overpass-font"
6441
- }
6451
+ },
6452
+ "themeDark": "pf-theme-dark"
6442
6453
  };
6443
6454
 
6444
6455
  const Breadcrumb = (_a) => {
@@ -6645,7 +6656,8 @@
6645
6656
  "selectToggleStatusIcon": "pf-c-select__toggle-status-icon",
6646
6657
  "selectToggleText": "pf-c-select__toggle-text",
6647
6658
  "selectToggleTypeahead": "pf-c-select__toggle-typeahead",
6648
- "selectToggleWrapper": "pf-c-select__toggle-wrapper"
6659
+ "selectToggleWrapper": "pf-c-select__toggle-wrapper",
6660
+ "themeDark": "pf-theme-dark"
6649
6661
  };
6650
6662
 
6651
6663
  const TimesCircleIconConfig = {
@@ -6712,7 +6724,8 @@
6712
6724
  "inactive": "pf-m-inactive",
6713
6725
  "hidden": "pf-m-hidden",
6714
6726
  "expanded": "pf-m-expanded"
6715
- }
6727
+ },
6728
+ "themeDark": "pf-theme-dark"
6716
6729
  };
6717
6730
 
6718
6731
  Promise.resolve().then(function () { return check; });
@@ -7330,7 +7343,8 @@
7330
7343
  "modifiers": {
7331
7344
  "overflow": "pf-m-overflow",
7332
7345
  "draggable": "pf-m-draggable"
7333
- }
7346
+ },
7347
+ "themeDark": "pf-theme-dark"
7334
7348
  };
7335
7349
 
7336
7350
  class Chip extends React__namespace.Component {
@@ -8069,7 +8083,7 @@
8069
8083
  });
8070
8084
  }
8071
8085
  render() {
8072
- const _a = this.props, { children, chipGroupProps, chipGroupComponent, className, customContent, variant, direction, onSelect, onClear, onBlur, toggleId, isOpen, isGrouped, isPlain, isDisabled, hasPlaceholderStyle, validated, selections: selectionsProp, typeAheadAriaLabel, clearSelectionsAriaLabel, toggleAriaLabel, removeSelectionAriaLabel, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, placeholderText, width, maxHeight, toggleIcon, ouiaId, ouiaSafe, hasInlineFilter, isCheckboxSelectionBadgeHidden, inlineFilterPlaceholderText,
8086
+ const _a = this.props, { children, chipGroupProps, chipGroupComponent, className, customContent, variant, direction, onSelect, onClear, onBlur, toggleId, isOpen, isGrouped, isPlain, isDisabled, hasPlaceholderStyle, validated, selections: selectionsProp, typeAheadAriaLabel, typeAheadAriaDescribedby, clearSelectionsAriaLabel, toggleAriaLabel, removeSelectionAriaLabel, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, placeholderText, width, maxHeight, toggleIcon, ouiaId, ouiaSafe, hasInlineFilter, isCheckboxSelectionBadgeHidden, inlineFilterPlaceholderText,
8073
8087
  /* eslint-disable @typescript-eslint/no-unused-vars */
8074
8088
  onFilter,
8075
8089
  /* eslint-disable @typescript-eslint/no-unused-vars */
@@ -8079,7 +8093,7 @@
8079
8093
  /* eslint-enable @typescript-eslint/no-unused-vars */
8080
8094
  menuAppendTo, favorites, onFavorite,
8081
8095
  /* eslint-disable @typescript-eslint/no-unused-vars */
8082
- favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, shouldResetOnSelect, isFlipEnabled } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "shouldResetOnSelect", "isFlipEnabled"]);
8096
+ favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, shouldResetOnSelect, isFlipEnabled } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "typeAheadAriaDescribedby", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "shouldResetOnSelect", "isFlipEnabled"]);
8083
8097
  const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
8084
8098
  const selectToggleId = toggleId || `pf-select-toggle-id-${currentId$1++}`;
8085
8099
  const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
@@ -8253,8 +8267,8 @@
8253
8267
  " ",
8254
8268
  innerMenu,
8255
8269
  " ") : innerMenu;
8256
- const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className) }, (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
8257
- const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
8270
+ const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className) }, (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
8271
+ const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
8258
8272
  React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel, handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
8259
8273
  customContent && (React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
8260
8274
  toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
@@ -8274,15 +8288,15 @@
8274
8288
  variant === exports.SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
8275
8289
  React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
8276
8290
  toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
8277
- React__namespace.createElement("input", { className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel, placeholder: placeholderText, value: typeaheadInputValue !== null
8291
+ React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
8278
8292
  ? typeaheadInputValue
8279
- : this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
8293
+ : this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
8280
8294
  hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
8281
8295
  variant === exports.SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
8282
8296
  React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
8283
8297
  toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
8284
8298
  selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
8285
- React__namespace.createElement("input", { className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === exports.ValidatedOptions.error, placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
8299
+ React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === exports.ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
8286
8300
  hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
8287
8301
  validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
8288
8302
  React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
@@ -8326,6 +8340,7 @@
8326
8340
  'aria-describedby': '',
8327
8341
  'aria-invalid': false,
8328
8342
  typeAheadAriaLabel: '',
8343
+ typeAheadAriaDescribedby: '',
8329
8344
  clearSelectionsAriaLabel: 'Clear all',
8330
8345
  toggleAriaLabel: 'Options menu',
8331
8346
  removeSelectionAriaLabel: 'Remove',
@@ -8409,7 +8424,8 @@
8409
8424
  "disabled": "pf-m-disabled",
8410
8425
  "hover": "pf-m-hover",
8411
8426
  "focus": "pf-m-focus"
8412
- }
8427
+ },
8428
+ "themeDark": "pf-theme-dark"
8413
8429
  };
8414
8430
 
8415
8431
  exports.Weekday = void 0;
@@ -8824,7 +8840,8 @@
8824
8840
  "inline": "pf-m-inline",
8825
8841
  "block": "pf-m-block",
8826
8842
  "code": "pf-m-code"
8827
- }
8843
+ },
8844
+ "themeDark": "pf-theme-dark"
8828
8845
  };
8829
8846
 
8830
8847
  Promise.resolve().then(function () { return popover; });
@@ -8860,6 +8877,7 @@
8860
8877
  "popoverTitle": "pf-c-popover__title",
8861
8878
  "popoverTitleIcon": "pf-c-popover__title-icon",
8862
8879
  "popoverTitleText": "pf-c-popover__title-text",
8880
+ "themeDark": "pf-theme-dark",
8863
8881
  "title": "pf-c-title"
8864
8882
  };
8865
8883
 
@@ -9363,7 +9381,8 @@
9363
9381
  "plain": "pf-m-plain",
9364
9382
  "text": "pf-m-text",
9365
9383
  "disabled": "pf-m-disabled"
9366
- }
9384
+ },
9385
+ "themeDark": "pf-theme-dark"
9367
9386
  };
9368
9387
 
9369
9388
  const SearchIconConfig = {
@@ -9487,7 +9506,8 @@
9487
9506
  "inputGroupText": "pf-c-input-group__text",
9488
9507
  "modifiers": {
9489
9508
  "plain": "pf-m-plain"
9490
- }
9509
+ },
9510
+ "themeDark": "pf-theme-dark"
9491
9511
  };
9492
9512
 
9493
9513
  class FormSelect extends React__namespace.Component {
@@ -9790,7 +9810,8 @@
9790
9810
  "expanded": "pf-m-expanded",
9791
9811
  "disabled": "pf-m-disabled",
9792
9812
  "noPadding": "pf-m-no-padding"
9793
- }
9813
+ },
9814
+ "themeDark": "pf-theme-dark"
9794
9815
  };
9795
9816
 
9796
9817
  Promise.resolve().then(function () { return dataListGrid; });
@@ -10026,9 +10047,9 @@
10026
10047
  render() {
10027
10048
  const _a = this.props, { className, children, onSelectDataListItem, selectedDataListItemId, isCompact, wrapModifier,
10028
10049
  /* eslint-disable @typescript-eslint/no-unused-vars */
10029
- onDragStart, onDragMove, onDragCancel, onDragFinish, gridBreakpoint, itemOrder } = _a,
10050
+ onDragStart, onDragMove, onDragCancel, onDragFinish, gridBreakpoint, itemOrder, selectableRow } = _a,
10030
10051
  /* eslint-enable @typescript-eslint/no-unused-vars */
10031
- props = __rest$1(_a, ["className", "children", "onSelectDataListItem", "selectedDataListItemId", "isCompact", "wrapModifier", "onDragStart", "onDragMove", "onDragCancel", "onDragFinish", "gridBreakpoint", "itemOrder"]);
10052
+ props = __rest$1(_a, ["className", "children", "onSelectDataListItem", "selectedDataListItemId", "isCompact", "wrapModifier", "onDragStart", "onDragMove", "onDragCancel", "onDragFinish", "gridBreakpoint", "itemOrder", "selectableRow"]);
10032
10053
  const { dragging } = this.state;
10033
10054
  const isSelectable = onSelectDataListItem !== undefined;
10034
10055
  const updateSelectedDataListItem = (id) => {
@@ -10043,6 +10064,7 @@
10043
10064
  isSelectable,
10044
10065
  selectedDataListItemId,
10045
10066
  updateSelectedDataListItem,
10067
+ selectableRow,
10046
10068
  isDraggable: this.html5DragDrop,
10047
10069
  dragStart: this.dragStart,
10048
10070
  dragEnd: this.dragEnd,
@@ -10136,8 +10158,8 @@
10136
10158
  }
10137
10159
  class DataListItem extends React__namespace.Component {
10138
10160
  render() {
10139
- const _a = this.props, { children, isExpanded, className, id, 'aria-labelledby': ariaLabelledBy } = _a, props = __rest$1(_a, ["children", "isExpanded", "className", "id", 'aria-labelledby']);
10140
- return (React__namespace.createElement(DataListContext.Consumer, null, ({ isSelectable, selectedDataListItemId, updateSelectedDataListItem, isDraggable, dragStart, dragEnd, drop }) => {
10161
+ const _a = this.props, { children, isExpanded, className, id, 'aria-labelledby': ariaLabelledBy, selectableInputAriaLabel } = _a, props = __rest$1(_a, ["children", "isExpanded", "className", "id", 'aria-labelledby', "selectableInputAriaLabel"]);
10162
+ return (React__namespace.createElement(DataListContext.Consumer, null, ({ isSelectable, selectedDataListItemId, updateSelectedDataListItem, selectableRow, isDraggable, dragStart, dragEnd, drop }) => {
10141
10163
  const selectDataListItem = (event) => {
10142
10164
  let target = event.target;
10143
10165
  while (event.currentTarget !== target) {
@@ -10168,10 +10190,17 @@
10168
10190
  onDragEnd: dragEnd,
10169
10191
  onDragStart: dragStart
10170
10192
  };
10171
- return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$O.dataListItem, isExpanded && styles$O.modifiers.expanded, isSelectable && styles$O.modifiers.selectable, selectedDataListItemId && selectedDataListItemId === id && styles$O.modifiers.selected, className), "aria-labelledby": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && selectedDataListItemId === id && { 'aria-selected': true }), props, dragProps), React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
10172
- React__namespace.cloneElement(child, {
10173
- rowid: ariaLabelledBy
10174
- }))));
10193
+ const isSelected = selectedDataListItemId === id;
10194
+ const selectableInputAriaProps = selectableInputAriaLabel
10195
+ ? { 'aria-label': selectableInputAriaLabel }
10196
+ : { 'aria-labelledby': ariaLabelledBy };
10197
+ const selectableInputType = (selectableRow === null || selectableRow === void 0 ? void 0 : selectableRow.type) === 'multiple' ? 'checkbox' : 'radio';
10198
+ return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$O.dataListItem, isExpanded && styles$O.modifiers.expanded, isSelectable && styles$O.modifiers.selectable, selectedDataListItemId && isSelected && styles$O.modifiers.selected, className), "aria-labelledby": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && isSelected && { 'aria-selected': true }), props, dragProps),
10199
+ selectableRow && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", type: selectableInputType, checked: isSelected, onChange: event => selectableRow.onChange(id, event), tabIndex: -1 }, selectableInputAriaProps))),
10200
+ React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
10201
+ React__namespace.cloneElement(child, {
10202
+ rowid: ariaLabelledBy
10203
+ }))));
10175
10204
  }));
10176
10205
  }
10177
10206
  }
@@ -10249,7 +10278,8 @@
10249
10278
  "error": "pf-m-error",
10250
10279
  "alignRight": "pf-m-align-right",
10251
10280
  "top": "pf-m-top"
10252
- }
10281
+ },
10282
+ "themeDark": "pf-theme-dark"
10253
10283
  };
10254
10284
 
10255
10285
  const OutlinedCalendarAltIconConfig = {
@@ -10520,7 +10550,8 @@
10520
10550
  "inlineOn_2xl": "pf-m-inline-on-2xl",
10521
10551
  "staticOn_2xl": "pf-m-static-on-2xl"
10522
10552
  },
10523
- "pageMain": "pf-c-page__main"
10553
+ "pageMain": "pf-c-page__main",
10554
+ "themeDark": "pf-theme-dark"
10524
10555
  };
10525
10556
 
10526
10557
  exports.DrawerColorVariant = void 0;
@@ -14096,7 +14127,8 @@
14096
14127
  "success": "pf-m-success",
14097
14128
  "error": "pf-m-error",
14098
14129
  "dynamic": "pf-m-dynamic"
14099
- }
14130
+ },
14131
+ "themeDark": "pf-theme-dark"
14100
14132
  };
14101
14133
 
14102
14134
  const HelperText = (_a) => {
@@ -14159,7 +14191,8 @@
14159
14191
  "link": "pf-m-link",
14160
14192
  "inline": "pf-m-inline",
14161
14193
  "plain": "pf-m-plain"
14162
- }
14194
+ },
14195
+ "themeDark": "pf-theme-dark"
14163
14196
  };
14164
14197
 
14165
14198
  const Hint = (_a) => {
@@ -14481,12 +14514,14 @@
14481
14514
  "red": "pf-m-red",
14482
14515
  "purple": "pf-m-purple",
14483
14516
  "cyan": "pf-m-cyan",
14517
+ "gold": "pf-m-gold",
14484
14518
  "outline": "pf-m-outline",
14485
14519
  "overflow": "pf-m-overflow",
14486
14520
  "add": "pf-m-add",
14487
14521
  "editable": "pf-m-editable",
14488
14522
  "editableActive": "pf-m-editable-active"
14489
- }
14523
+ },
14524
+ "themeDark": "pf-theme-dark"
14490
14525
  };
14491
14526
 
14492
14527
  Promise.resolve().then(function () { return labelGroup; });
@@ -14781,6 +14816,7 @@
14781
14816
  "loginMainHeader": "pf-c-login__main-header",
14782
14817
  "loginMainHeaderDesc": "pf-c-login__main-header-desc",
14783
14818
  "loginMainHeaderUtilities": "pf-c-login__main-header-utilities",
14819
+ "themeDark": "pf-theme-dark",
14784
14820
  "title": "pf-c-title"
14785
14821
  };
14786
14822
 
@@ -14987,6 +15023,7 @@
14987
15023
  },
14988
15024
  "nav": "pf-c-nav",
14989
15025
  "page": "pf-c-page",
15026
+ "themeDark": "pf-theme-dark",
14990
15027
  "toolbar": "pf-c-toolbar",
14991
15028
  "toolbarContentSection": "pf-c-toolbar__content-section",
14992
15029
  "toolbarExpandableContent": "pf-c-toolbar__expandable-content"
@@ -15030,6 +15067,7 @@
15030
15067
  "shadowTop": "pf-m-shadow-top",
15031
15068
  "fill": "pf-m-fill",
15032
15069
  "noFill": "pf-m-no-fill",
15070
+ "light_100": "pf-m-light-100",
15033
15071
  "dark_100": "pf-m-dark-100",
15034
15072
  "dark_200": "pf-m-dark-200",
15035
15073
  "padding": "pf-m-padding",
@@ -15069,7 +15107,8 @@
15069
15107
  "pageMainTabs": "pf-c-page__main-tabs",
15070
15108
  "pageMainWizard": "pf-c-page__main-wizard",
15071
15109
  "pageSidebar": "pf-c-page__sidebar",
15072
- "pageSidebarBody": "pf-c-page__sidebar-body"
15110
+ "pageSidebarBody": "pf-c-page__sidebar-body",
15111
+ "themeDark": "pf-theme-dark"
15073
15112
  };
15074
15113
 
15075
15114
  const global_breakpoint_xl = {
@@ -15330,7 +15369,8 @@
15330
15369
  "selected": "pf-m-selected",
15331
15370
  "favorite": "pf-m-favorite",
15332
15371
  "favorited": "pf-m-favorited"
15333
- }
15372
+ },
15373
+ "themeDark": "pf-theme-dark"
15334
15374
  };
15335
15375
 
15336
15376
  const MenuContext = React__namespace.createContext({
@@ -15841,7 +15881,8 @@
15841
15881
  "active": "pf-m-active",
15842
15882
  "fullWidth": "pf-m-full-width"
15843
15883
  },
15844
- "textInputGroup": "pf-c-text-input-group"
15884
+ "textInputGroup": "pf-c-text-input-group",
15885
+ "themeDark": "pf-theme-dark"
15845
15886
  };
15846
15887
 
15847
15888
  class MenuToggleBase extends React__namespace.Component {
@@ -15900,7 +15941,8 @@
15900
15941
  "info": "pf-m-info",
15901
15942
  "help": "pf-m-help",
15902
15943
  "icon": "pf-m-icon"
15903
- }
15944
+ },
15945
+ "themeDark": "pf-theme-dark"
15904
15946
  };
15905
15947
 
15906
15948
  const ModalBoxBody = (_a) => {
@@ -16310,7 +16352,8 @@
16310
16352
  "progressIndicator": "pf-c-progress__indicator",
16311
16353
  "progressMeasure": "pf-c-progress__measure",
16312
16354
  "progressStatus": "pf-c-progress__status",
16313
- "progressStatusIcon": "pf-c-progress__status-icon"
16355
+ "progressStatusIcon": "pf-c-progress__status-icon",
16356
+ "themeDark": "pf-theme-dark"
16314
16357
  };
16315
16358
 
16316
16359
  const ProgressBar = (_a) => {
@@ -16531,7 +16574,8 @@
16531
16574
  "navSectionTitle": "pf-c-nav__section-title",
16532
16575
  "navSubnav": "pf-c-nav__subnav",
16533
16576
  "navToggle": "pf-c-nav__toggle",
16534
- "navToggleIcon": "pf-c-nav__toggle-icon"
16577
+ "navToggleIcon": "pf-c-nav__toggle-icon",
16578
+ "themeDark": "pf-theme-dark"
16535
16579
  };
16536
16580
 
16537
16581
  const navContextDefaults = {};
@@ -16897,7 +16941,8 @@
16897
16941
  "attention": "pf-m-attention"
16898
16942
  },
16899
16943
  "notificationBadge": "pf-c-notification-badge",
16900
- "notificationBadgeCount": "pf-c-notification-badge__count"
16944
+ "notificationBadgeCount": "pf-c-notification-badge__count",
16945
+ "themeDark": "pf-theme-dark"
16901
16946
  };
16902
16947
 
16903
16948
  const AttentionBellIconConfig = {
@@ -16966,7 +17011,8 @@
16966
17011
  "notificationDrawerListItemHeader": "pf-c-notification-drawer__list-item-header",
16967
17012
  "notificationDrawerListItemHeaderIcon": "pf-c-notification-drawer__list-item-header-icon",
16968
17013
  "notificationDrawerListItemHeaderTitle": "pf-c-notification-drawer__list-item-header-title",
16969
- "notificationDrawerListItemTimestamp": "pf-c-notification-drawer__list-item-timestamp"
17014
+ "notificationDrawerListItemTimestamp": "pf-c-notification-drawer__list-item-timestamp",
17015
+ "themeDark": "pf-theme-dark"
16970
17016
  };
16971
17017
 
16972
17018
  const NotificationDrawerBase = (_a) => {
@@ -17187,7 +17233,8 @@
17187
17233
  "optionsMenuToggleButton": "pf-c-options-menu__toggle-button",
17188
17234
  "optionsMenuToggleButtonIcon": "pf-c-options-menu__toggle-button-icon",
17189
17235
  "optionsMenuToggleIcon": "pf-c-options-menu__toggle-icon",
17190
- "optionsMenuToggleText": "pf-c-options-menu__toggle-text"
17236
+ "optionsMenuToggleText": "pf-c-options-menu__toggle-text",
17237
+ "themeDark": "pf-theme-dark"
17191
17238
  };
17192
17239
 
17193
17240
  exports.OptionsMenuPosition = void 0;
@@ -17595,7 +17642,8 @@
17595
17642
  "paginationNav": "pf-c-pagination__nav",
17596
17643
  "paginationNavControl": "pf-c-pagination__nav-control",
17597
17644
  "paginationNavPageSelect": "pf-c-pagination__nav-page-select",
17598
- "paginationTotalItems": "pf-c-pagination__total-items"
17645
+ "paginationTotalItems": "pf-c-pagination__total-items",
17646
+ "themeDark": "pf-theme-dark"
17599
17647
  };
17600
17648
 
17601
17649
  class Navigation extends React__namespace.Component {
@@ -18112,7 +18160,8 @@
18112
18160
  "searchInputNav": "pf-c-search-input__nav",
18113
18161
  "searchInputText": "pf-c-search-input__text",
18114
18162
  "searchInputTextInput": "pf-c-search-input__text-input",
18115
- "searchInputUtilities": "pf-c-search-input__utilities"
18163
+ "searchInputUtilities": "pf-c-search-input__utilities",
18164
+ "themeDark": "pf-theme-dark"
18116
18165
  };
18117
18166
 
18118
18167
  Promise.resolve().then(function () { return panel; });
@@ -18453,7 +18502,8 @@
18453
18502
  "simpleList": "pf-c-simple-list",
18454
18503
  "simpleListItemLink": "pf-c-simple-list__item-link",
18455
18504
  "simpleListSection": "pf-c-simple-list__section",
18456
- "simpleListTitle": "pf-c-simple-list__title"
18505
+ "simpleListTitle": "pf-c-simple-list__title",
18506
+ "themeDark": "pf-theme-dark"
18457
18507
  };
18458
18508
 
18459
18509
  const SimpleListGroup = (_a) => {
@@ -18572,7 +18622,8 @@
18572
18622
  "textMd": "pf-m-text-md",
18573
18623
  "textSm": "pf-m-text-sm"
18574
18624
  },
18575
- "skeleton": "pf-c-skeleton"
18625
+ "skeleton": "pf-c-skeleton",
18626
+ "themeDark": "pf-theme-dark"
18576
18627
  };
18577
18628
 
18578
18629
  const Skeleton = (_a) => {
@@ -18884,7 +18935,8 @@
18884
18935
  "switchInput": "pf-c-switch__input",
18885
18936
  "switchLabel": "pf-c-switch__label",
18886
18937
  "switchToggle": "pf-c-switch__toggle",
18887
- "switchToggleIcon": "pf-c-switch__toggle-icon"
18938
+ "switchToggleIcon": "pf-c-switch__toggle-icon",
18939
+ "themeDark": "pf-theme-dark"
18888
18940
  };
18889
18941
 
18890
18942
  class Switch extends React__namespace.Component {
@@ -19004,7 +19056,8 @@
19004
19056
  "tabsToggle": "pf-c-tabs__toggle",
19005
19057
  "tabsToggleButton": "pf-c-tabs__toggle-button",
19006
19058
  "tabsToggleIcon": "pf-c-tabs__toggle-icon",
19007
- "tabsToggleText": "pf-c-tabs__toggle-text"
19059
+ "tabsToggleText": "pf-c-tabs__toggle-text",
19060
+ "themeDark": "pf-theme-dark"
19008
19061
  };
19009
19062
 
19010
19063
  const TabButton = (_a) => {
@@ -19350,6 +19403,7 @@
19350
19403
  "displayLg": "pf-m-display-lg",
19351
19404
  "stacked": "pf-m-stacked"
19352
19405
  },
19406
+ "themeDark": "pf-theme-dark",
19353
19407
  "tile": "pf-c-tile",
19354
19408
  "tileBody": "pf-c-tile__body",
19355
19409
  "tileHeader": "pf-c-tile__header",
@@ -19845,6 +19899,7 @@
19845
19899
  "selected": "pf-m-selected",
19846
19900
  "disabled": "pf-m-disabled"
19847
19901
  },
19902
+ "themeDark": "pf-theme-dark",
19848
19903
  "toggleGroup": "pf-c-toggle-group",
19849
19904
  "toggleGroupButton": "pf-c-toggle-group__button",
19850
19905
  "toggleGroupIcon": "pf-c-toggle-group__icon",
@@ -20438,6 +20493,7 @@
20438
20493
  "read": "pf-m-read",
20439
20494
  "truncate": "pf-m-truncate"
20440
20495
  },
20496
+ "themeDark": "pf-theme-dark",
20441
20497
  "treeView": "pf-c-tree-view",
20442
20498
  "treeViewAction": "pf-c-tree-view__action",
20443
20499
  "treeViewContent": "pf-c-tree-view__content",
@@ -20717,6 +20773,7 @@
20717
20773
  "noPadding": "pf-m-no-padding"
20718
20774
  },
20719
20775
  "pageMainWizard": "pf-c-page__main-wizard",
20776
+ "themeDark": "pf-theme-dark",
20720
20777
  "wizard": "pf-c-wizard",
20721
20778
  "wizardClose": "pf-c-wizard__close",
20722
20779
  "wizardDescription": "pf-c-wizard__description",