@patternfly/react-table 4.90.1 → 4.90.4
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 +24 -0
- package/dist/esm/components/Table/base/provider.d.ts +3 -3
- package/dist/esm/components/Table/base/types.d.ts +3 -3
- package/dist/esm/components/TableComposable/TableComposable.d.ts +10 -1
- package/dist/esm/components/TableComposable/TableComposable.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/TableComposable.js +23 -2
- package/dist/esm/components/TableComposable/TableComposable.js.map +1 -1
- package/dist/esm/components/TableComposable/Tr.d.ts +3 -1
- package/dist/esm/components/TableComposable/Tr.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/Tr.js +18 -2
- package/dist/esm/components/TableComposable/Tr.js.map +1 -1
- package/dist/js/components/Table/base/provider.d.ts +3 -3
- package/dist/js/components/Table/base/types.d.ts +3 -3
- package/dist/js/components/TableComposable/TableComposable.d.ts +10 -1
- package/dist/js/components/TableComposable/TableComposable.d.ts.map +1 -1
- package/dist/js/components/TableComposable/TableComposable.js +24 -3
- package/dist/js/components/TableComposable/TableComposable.js.map +1 -1
- package/dist/js/components/TableComposable/Tr.d.ts +3 -1
- package/dist/js/components/TableComposable/Tr.d.ts.map +1 -1
- package/dist/js/components/TableComposable/Tr.js +18 -2
- package/dist/js/components/TableComposable/Tr.js.map +1 -1
- package/dist/umd/react-table.js +49 -11
- package/dist/umd/react-table.min.css +88 -88
- package/dist/umd/react-table.min.js +5 -5
- package/package.json +6 -6
- package/src/components/TableComposable/TableComposable.tsx +67 -22
- package/src/components/TableComposable/Tr.tsx +45 -20
- package/src/components/TableComposable/examples/ComposableTableHoverable.tsx +2 -1
package/dist/umd/react-table.js
CHANGED
|
@@ -6814,7 +6814,7 @@
|
|
|
6814
6814
|
});
|
|
6815
6815
|
}
|
|
6816
6816
|
render() {
|
|
6817
|
-
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,
|
|
6817
|
+
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,
|
|
6818
6818
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6819
6819
|
onFilter,
|
|
6820
6820
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -6824,7 +6824,7 @@
|
|
|
6824
6824
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6825
6825
|
menuAppendTo, favorites, onFavorite,
|
|
6826
6826
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6827
|
-
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"]);
|
|
6827
|
+
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"]);
|
|
6828
6828
|
const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
|
|
6829
6829
|
const selectToggleId = toggleId || `pf-select-toggle-id-${currentId++}`;
|
|
6830
6830
|
const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
|
|
@@ -6998,8 +6998,8 @@
|
|
|
6998
6998
|
" ",
|
|
6999
6999
|
innerMenu,
|
|
7000
7000
|
" ") : innerMenu;
|
|
7001
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className) }, (width && { style: { width } }), (
|
|
7002
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (
|
|
7001
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className) }, (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
7002
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
7003
7003
|
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 }),
|
|
7004
7004
|
customContent && (React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
7005
7005
|
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
@@ -7019,15 +7019,15 @@
|
|
|
7019
7019
|
variant === SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7020
7020
|
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
7021
7021
|
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
7022
|
-
React__namespace.createElement("input", { className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel, placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
7022
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
7023
7023
|
? typeaheadInputValue
|
|
7024
|
-
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
|
|
7024
|
+
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
7025
7025
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
7026
7026
|
variant === SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7027
7027
|
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
7028
7028
|
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
7029
7029
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
7030
|
-
React__namespace.createElement("input", { className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === ValidatedOptions.error, placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
|
|
7030
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === 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 }))),
|
|
7031
7031
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
7032
7032
|
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
7033
7033
|
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
@@ -7071,6 +7071,7 @@
|
|
|
7071
7071
|
'aria-describedby': '',
|
|
7072
7072
|
'aria-invalid': false,
|
|
7073
7073
|
typeAheadAriaLabel: '',
|
|
7074
|
+
typeAheadAriaDescribedby: '',
|
|
7074
7075
|
clearSelectionsAriaLabel: 'Clear all',
|
|
7075
7076
|
toggleAriaLabel: 'Options menu',
|
|
7076
7077
|
removeSelectionAriaLabel: 'Remove',
|
|
@@ -7817,12 +7818,17 @@
|
|
|
7817
7818
|
TableVariant["compact"] = "compact";
|
|
7818
7819
|
})(exports.TableVariant || (exports.TableVariant = {}));
|
|
7819
7820
|
|
|
7821
|
+
const TableComposableContext = React__namespace.createContext({
|
|
7822
|
+
registerSelectableRow: () => { }
|
|
7823
|
+
});
|
|
7820
7824
|
const TableComposableBase = (_a) => {
|
|
7821
7825
|
var _b, _c;
|
|
7822
7826
|
var { children, className, variant, borders = true, isStickyHeader = false, gridBreakPoint = exports.TableGridBreakpoint.gridMd, 'aria-label': ariaLabel, role = 'grid', innerRef, ouiaId, ouiaSafe = true, isTreeTable = false, isNested = false, isStriped = false, isExpandable = false,
|
|
7823
7827
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7824
|
-
nestedHeaderColumnSpans } = _a, props = __rest$2(_a, ["children", "className", "variant", "borders", "isStickyHeader", "gridBreakPoint", 'aria-label', "role", "innerRef", "ouiaId", "ouiaSafe", "isTreeTable", "isNested", "isStriped", "isExpandable", "nestedHeaderColumnSpans"]);
|
|
7828
|
+
nestedHeaderColumnSpans, hasSelectableRowCaption, selectableRowCaptionText } = _a, props = __rest$2(_a, ["children", "className", "variant", "borders", "isStickyHeader", "gridBreakPoint", 'aria-label', "role", "innerRef", "ouiaId", "ouiaSafe", "isTreeTable", "isNested", "isStriped", "isExpandable", "nestedHeaderColumnSpans", "hasSelectableRowCaption", "selectableRowCaptionText"]);
|
|
7825
7829
|
const tableRef = innerRef || React__namespace.useRef(null);
|
|
7830
|
+
const [hasSelectableRows, setHasSelectableRows] = React__namespace.useState(false);
|
|
7831
|
+
const [tableCaption, setTableCaption] = React__namespace.useState();
|
|
7826
7832
|
React__namespace.useEffect(() => {
|
|
7827
7833
|
document.addEventListener('keydown', handleKeys);
|
|
7828
7834
|
// sets up roving tab-index to tree tables only
|
|
@@ -7834,6 +7840,16 @@
|
|
|
7834
7840
|
document.removeEventListener('keydown', handleKeys);
|
|
7835
7841
|
};
|
|
7836
7842
|
}, [tableRef, tableRef.current]);
|
|
7843
|
+
React__namespace.useEffect(() => {
|
|
7844
|
+
if (selectableRowCaptionText) {
|
|
7845
|
+
setTableCaption(React__namespace.createElement("caption", null,
|
|
7846
|
+
selectableRowCaptionText,
|
|
7847
|
+
React__namespace.createElement("div", { className: "pf-screen-reader" }, "This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")));
|
|
7848
|
+
}
|
|
7849
|
+
else {
|
|
7850
|
+
setTableCaption(React__namespace.createElement("caption", { className: "pf-screen-reader" }, "This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."));
|
|
7851
|
+
}
|
|
7852
|
+
}, [selectableRowCaptionText]);
|
|
7837
7853
|
const ouiaProps = useOUIAProps('Table', ouiaId, ouiaSafe);
|
|
7838
7854
|
const grid = (_b = stylesGrid.modifiers) === null || _b === void 0 ? void 0 : _b[toCamel(gridBreakPoint || '').replace(/-?2xl/, '_2xl')];
|
|
7839
7855
|
const breakPointPrefix = `treeView${gridBreakPoint.charAt(0).toUpperCase() + gridBreakPoint.slice(1)}`;
|
|
@@ -7854,7 +7870,13 @@
|
|
|
7854
7870
|
const getFocusableElement = (element) => element.querySelectorAll('button:not(:disabled), input:not(:disabled), a:not(:disabled)')[0];
|
|
7855
7871
|
handleArrows(event, rows, (element) => element === activeElement.closest('tr'), getFocusableElement, ['button', 'input', 'a'], undefined, false, true, false);
|
|
7856
7872
|
};
|
|
7857
|
-
|
|
7873
|
+
const registerSelectableRow = () => {
|
|
7874
|
+
!hasSelectableRows && setHasSelectableRows(true);
|
|
7875
|
+
};
|
|
7876
|
+
return (React__namespace.createElement(TableComposableContext.Provider, { value: { registerSelectableRow } },
|
|
7877
|
+
React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className, styles$1.table, isTreeTable ? treeGrid : grid, styles$1.modifiers[variant], !borders && styles$1.modifiers.noBorderRows, isStickyHeader && styles$1.modifiers.stickyHeader, isTreeTable && stylesTreeView.modifiers.treeView, isStriped && styles$1.modifiers.striped, isExpandable && styles$1.modifiers.expandable, isNested && 'pf-m-nested'), ref: tableRef }, (isTreeTable && { role: 'treegrid' }), ouiaProps, props),
|
|
7878
|
+
hasSelectableRowCaption && hasSelectableRows && tableCaption,
|
|
7879
|
+
children)));
|
|
7858
7880
|
};
|
|
7859
7881
|
const TableComposable = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TableComposableBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7860
7882
|
TableComposable.displayName = 'TableComposable';
|
|
@@ -7874,8 +7896,9 @@
|
|
|
7874
7896
|
Tbody.displayName = 'Tbody';
|
|
7875
7897
|
|
|
7876
7898
|
const TrBase = (_a) => {
|
|
7877
|
-
var { children, className, isExpanded, isEditable, isHidden = false, isHoverable = false, isRowSelected = false, isStriped = false, innerRef, ouiaId, ouiaSafe = true, resetOffset = false, onRowClick } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "isEditable", "isHidden", "isHoverable", "isRowSelected", "isStriped", "innerRef", "ouiaId", "ouiaSafe", "resetOffset", "onRowClick"]);
|
|
7899
|
+
var { children, className, isExpanded, isEditable, isHidden = false, isHoverable = false, isRowSelected = false, isStriped = false, innerRef, ouiaId, ouiaSafe = true, resetOffset = false, onRowClick, isSelectable, 'aria-label': passedAriaLabel } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "isEditable", "isHidden", "isHoverable", "isRowSelected", "isStriped", "innerRef", "ouiaId", "ouiaSafe", "resetOffset", "onRowClick", "isSelectable", 'aria-label']);
|
|
7878
7900
|
const ouiaProps = useOUIAProps('TableRow', ouiaId, ouiaSafe);
|
|
7901
|
+
const [computedAriaLabel, setComputedAriaLabel] = React__namespace.useState('');
|
|
7879
7902
|
let onKeyDown = null;
|
|
7880
7903
|
if (onRowClick) {
|
|
7881
7904
|
onKeyDown = (e) => {
|
|
@@ -7885,7 +7908,21 @@
|
|
|
7885
7908
|
}
|
|
7886
7909
|
};
|
|
7887
7910
|
}
|
|
7888
|
-
|
|
7911
|
+
const rowIsHidden = isHidden || (isExpanded !== undefined && !isExpanded);
|
|
7912
|
+
const { registerSelectableRow } = React__namespace.useContext(TableComposableContext);
|
|
7913
|
+
React__namespace.useEffect(() => {
|
|
7914
|
+
if (isSelectable && !rowIsHidden) {
|
|
7915
|
+
setComputedAriaLabel(`${isRowSelected ? 'Selected' : 'Unselected'}, selectable row.`);
|
|
7916
|
+
registerSelectableRow();
|
|
7917
|
+
}
|
|
7918
|
+
else {
|
|
7919
|
+
setComputedAriaLabel(undefined);
|
|
7920
|
+
}
|
|
7921
|
+
}, [isRowSelected, isSelectable, registerSelectableRow, rowIsHidden]);
|
|
7922
|
+
const ariaLabel = passedAriaLabel || computedAriaLabel;
|
|
7923
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7924
|
+
isSelectable && React__namespace.createElement("output", { className: "pf-screen-reader" }, ariaLabel),
|
|
7925
|
+
React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined && styles$1.tableExpandableRow, isExpanded && styles$1.modifiers.expanded, isEditable && inlineStyles.modifiers.inlineEditable, isHoverable && styles$1.modifiers.hoverable, isRowSelected && styles$1.modifiers.selected, isStriped && styles$1.modifiers.striped, resetOffset && styles$1.modifiers.firstCellOffsetReset), hidden: rowIsHidden }, (isHoverable && { tabIndex: 0 }), { "aria-label": ariaLabel, ref: innerRef }, (onRowClick && { onClick: onRowClick, onKeyDown }), ouiaProps, props), children)));
|
|
7889
7926
|
};
|
|
7890
7927
|
const Tr = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TrBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7891
7928
|
Tr.displayName = 'Tr';
|
|
@@ -13328,6 +13365,7 @@
|
|
|
13328
13365
|
exports.Table = Table;
|
|
13329
13366
|
exports.TableBody = TableBody;
|
|
13330
13367
|
exports.TableComposable = TableComposable;
|
|
13368
|
+
exports.TableComposableContext = TableComposableContext;
|
|
13331
13369
|
exports.TableContext = TableContext;
|
|
13332
13370
|
exports.TableHeader = TableHeader;
|
|
13333
13371
|
exports.TableText = TableText;
|
|
@@ -22558,94 +22558,6 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
22558
22558
|
color: var(--pf-global--palette--black-100);
|
|
22559
22559
|
}
|
|
22560
22560
|
|
|
22561
|
-
.pf-c-simple-list {
|
|
22562
|
-
--pf-c-simple-list__item-link--PaddingTop: var(--pf-global--spacer--xs);
|
|
22563
|
-
--pf-c-simple-list__item-link--PaddingRight: var(--pf-global--spacer--md);
|
|
22564
|
-
--pf-c-simple-list__item-link--PaddingBottom: var(--pf-global--spacer--xs);
|
|
22565
|
-
--pf-c-simple-list__item-link--PaddingLeft: var(--pf-global--spacer--md);
|
|
22566
|
-
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
22567
|
-
--pf-c-simple-list__item-link--Color: var(--pf-global--Color--100);
|
|
22568
|
-
--pf-c-simple-list__item-link--FontSize: var(--pf-global--FontSize--sm);
|
|
22569
|
-
--pf-c-simple-list__item-link--FontWeight: var(--pf-global--FontWeight--normal);
|
|
22570
|
-
--pf-c-simple-list__item-link--m-current--Color: var(--pf-global--link--Color);
|
|
22571
|
-
--pf-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
22572
|
-
--pf-c-simple-list__item-link--m-current--FontWeight: var(--pf-global--FontWeight--normal);
|
|
22573
|
-
--pf-c-simple-list__item-link--hover--Color: var(--pf-global--Color--100);
|
|
22574
|
-
--pf-c-simple-list__item-link--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
22575
|
-
--pf-c-simple-list__item-link--focus--Color: var(--pf-global--Color--100);
|
|
22576
|
-
--pf-c-simple-list__item-link--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
22577
|
-
--pf-c-simple-list__item-link--focus--FontWeight: var(--pf-global--FontWeight--normal);
|
|
22578
|
-
--pf-c-simple-list__item-link--active--Color: var(--pf-global--Color--100);
|
|
22579
|
-
--pf-c-simple-list__item-link--active--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
22580
|
-
--pf-c-simple-list__item-link--active--FontWeight: var(--pf-global--FontWeight--normal);
|
|
22581
|
-
--pf-c-simple-list__title--PaddingTop: var(--pf-global--spacer--sm);
|
|
22582
|
-
--pf-c-simple-list__title--PaddingRight: var(--pf-global--spacer--md);
|
|
22583
|
-
--pf-c-simple-list__title--PaddingBottom: var(--pf-global--spacer--sm);
|
|
22584
|
-
--pf-c-simple-list__title--PaddingLeft: var(--pf-global--spacer--md);
|
|
22585
|
-
--pf-c-simple-list__title--FontSize: var(--pf-global--FontSize--sm);
|
|
22586
|
-
--pf-c-simple-list__title--Color: var(--pf-global--Color--dark-200);
|
|
22587
|
-
--pf-c-simple-list__title--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
22588
|
-
--pf-c-simple-list__section--section--MarginTop: var(--pf-global--spacer--sm);
|
|
22589
|
-
}
|
|
22590
|
-
|
|
22591
|
-
.pf-c-simple-list__item-link {
|
|
22592
|
-
display: block;
|
|
22593
|
-
width: 100%;
|
|
22594
|
-
padding: var(--pf-c-simple-list__item-link--PaddingTop) var(--pf-c-simple-list__item-link--PaddingRight) var(--pf-c-simple-list__item-link--PaddingBottom) var(--pf-c-simple-list__item-link--PaddingLeft);
|
|
22595
|
-
font-size: var(--pf-c-simple-list__item-link--FontSize);
|
|
22596
|
-
font-weight: var(--pf-c-simple-list__item-link--FontWeight);
|
|
22597
|
-
color: var(--pf-c-simple-list__item-link--Color);
|
|
22598
|
-
text-align: left;
|
|
22599
|
-
background-color: var(--pf-c-simple-list__item-link--BackgroundColor);
|
|
22600
|
-
border: none;
|
|
22601
|
-
}
|
|
22602
|
-
|
|
22603
|
-
.pf-c-simple-list__item-link:hover {
|
|
22604
|
-
text-decoration: none;
|
|
22605
|
-
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--hover--BackgroundColor);
|
|
22606
|
-
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--hover--Color);
|
|
22607
|
-
}
|
|
22608
|
-
|
|
22609
|
-
.pf-c-simple-list__item-link:focus {
|
|
22610
|
-
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--focus--FontWeight);
|
|
22611
|
-
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--focus--BackgroundColor);
|
|
22612
|
-
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--focus--Color);
|
|
22613
|
-
}
|
|
22614
|
-
|
|
22615
|
-
.pf-c-simple-list__item-link:active {
|
|
22616
|
-
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--active--FontWeight);
|
|
22617
|
-
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--active--BackgroundColor);
|
|
22618
|
-
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--active--Color);
|
|
22619
|
-
}
|
|
22620
|
-
|
|
22621
|
-
.pf-c-simple-list__item-link.pf-m-current {
|
|
22622
|
-
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--m-current--FontWeight);
|
|
22623
|
-
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--m-current--BackgroundColor);
|
|
22624
|
-
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--m-current--Color);
|
|
22625
|
-
}
|
|
22626
|
-
|
|
22627
|
-
.pf-c-simple-list__title {
|
|
22628
|
-
padding: var(--pf-c-simple-list__title--PaddingTop) var(--pf-c-simple-list__title--PaddingRight) var(--pf-c-simple-list__title--PaddingBottom) var(--pf-c-simple-list__title--PaddingLeft);
|
|
22629
|
-
font-size: var(--pf-c-simple-list__title--FontSize);
|
|
22630
|
-
font-weight: var(--pf-c-simple-list__title--FontWeight);
|
|
22631
|
-
color: var(--pf-c-simple-list__title--Color);
|
|
22632
|
-
}
|
|
22633
|
-
|
|
22634
|
-
.pf-c-simple-list__section + .pf-c-simple-list__section {
|
|
22635
|
-
margin-top: var(--pf-c-simple-list__section--section--MarginTop);
|
|
22636
|
-
}
|
|
22637
|
-
|
|
22638
|
-
:where(.pf-theme-dark) .pf-c-simple-list {
|
|
22639
|
-
--pf-c-simple-list__item-link--m-current--Color: var(--pf-global--active-color--100);
|
|
22640
|
-
--pf-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
22641
|
-
--pf-c-simple-list__item-link--hover--Color: var(--pf-global--Color--100);
|
|
22642
|
-
--pf-c-simple-list__item-link--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
22643
|
-
--pf-c-simple-list__item-link--focus--Color: var(--pf-global--Color--100);
|
|
22644
|
-
--pf-c-simple-list__item-link--focus--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
22645
|
-
--pf-c-simple-list__item-link--active--Color: var(--pf-global--Color--100);
|
|
22646
|
-
--pf-c-simple-list__item-link--active--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
22647
|
-
}
|
|
22648
|
-
|
|
22649
22561
|
.pf-c-skeleton {
|
|
22650
22562
|
--pf-c-skeleton--BackgroundColor: var(--pf-global--palette--black-150);
|
|
22651
22563
|
--pf-c-skeleton--Width: auto;
|
|
@@ -24492,6 +24404,94 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
24492
24404
|
font-weight: var(--pf-global--FontWeight--light);
|
|
24493
24405
|
}
|
|
24494
24406
|
|
|
24407
|
+
.pf-c-simple-list {
|
|
24408
|
+
--pf-c-simple-list__item-link--PaddingTop: var(--pf-global--spacer--xs);
|
|
24409
|
+
--pf-c-simple-list__item-link--PaddingRight: var(--pf-global--spacer--md);
|
|
24410
|
+
--pf-c-simple-list__item-link--PaddingBottom: var(--pf-global--spacer--xs);
|
|
24411
|
+
--pf-c-simple-list__item-link--PaddingLeft: var(--pf-global--spacer--md);
|
|
24412
|
+
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
24413
|
+
--pf-c-simple-list__item-link--Color: var(--pf-global--Color--100);
|
|
24414
|
+
--pf-c-simple-list__item-link--FontSize: var(--pf-global--FontSize--sm);
|
|
24415
|
+
--pf-c-simple-list__item-link--FontWeight: var(--pf-global--FontWeight--normal);
|
|
24416
|
+
--pf-c-simple-list__item-link--m-current--Color: var(--pf-global--link--Color);
|
|
24417
|
+
--pf-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
24418
|
+
--pf-c-simple-list__item-link--m-current--FontWeight: var(--pf-global--FontWeight--normal);
|
|
24419
|
+
--pf-c-simple-list__item-link--hover--Color: var(--pf-global--Color--100);
|
|
24420
|
+
--pf-c-simple-list__item-link--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
24421
|
+
--pf-c-simple-list__item-link--focus--Color: var(--pf-global--Color--100);
|
|
24422
|
+
--pf-c-simple-list__item-link--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
24423
|
+
--pf-c-simple-list__item-link--focus--FontWeight: var(--pf-global--FontWeight--normal);
|
|
24424
|
+
--pf-c-simple-list__item-link--active--Color: var(--pf-global--Color--100);
|
|
24425
|
+
--pf-c-simple-list__item-link--active--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
24426
|
+
--pf-c-simple-list__item-link--active--FontWeight: var(--pf-global--FontWeight--normal);
|
|
24427
|
+
--pf-c-simple-list__title--PaddingTop: var(--pf-global--spacer--sm);
|
|
24428
|
+
--pf-c-simple-list__title--PaddingRight: var(--pf-global--spacer--md);
|
|
24429
|
+
--pf-c-simple-list__title--PaddingBottom: var(--pf-global--spacer--sm);
|
|
24430
|
+
--pf-c-simple-list__title--PaddingLeft: var(--pf-global--spacer--md);
|
|
24431
|
+
--pf-c-simple-list__title--FontSize: var(--pf-global--FontSize--sm);
|
|
24432
|
+
--pf-c-simple-list__title--Color: var(--pf-global--Color--dark-200);
|
|
24433
|
+
--pf-c-simple-list__title--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
24434
|
+
--pf-c-simple-list__section--section--MarginTop: var(--pf-global--spacer--sm);
|
|
24435
|
+
}
|
|
24436
|
+
|
|
24437
|
+
.pf-c-simple-list__item-link {
|
|
24438
|
+
display: block;
|
|
24439
|
+
width: 100%;
|
|
24440
|
+
padding: var(--pf-c-simple-list__item-link--PaddingTop) var(--pf-c-simple-list__item-link--PaddingRight) var(--pf-c-simple-list__item-link--PaddingBottom) var(--pf-c-simple-list__item-link--PaddingLeft);
|
|
24441
|
+
font-size: var(--pf-c-simple-list__item-link--FontSize);
|
|
24442
|
+
font-weight: var(--pf-c-simple-list__item-link--FontWeight);
|
|
24443
|
+
color: var(--pf-c-simple-list__item-link--Color);
|
|
24444
|
+
text-align: left;
|
|
24445
|
+
background-color: var(--pf-c-simple-list__item-link--BackgroundColor);
|
|
24446
|
+
border: none;
|
|
24447
|
+
}
|
|
24448
|
+
|
|
24449
|
+
.pf-c-simple-list__item-link:hover {
|
|
24450
|
+
text-decoration: none;
|
|
24451
|
+
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--hover--BackgroundColor);
|
|
24452
|
+
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--hover--Color);
|
|
24453
|
+
}
|
|
24454
|
+
|
|
24455
|
+
.pf-c-simple-list__item-link:focus {
|
|
24456
|
+
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--focus--FontWeight);
|
|
24457
|
+
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--focus--BackgroundColor);
|
|
24458
|
+
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--focus--Color);
|
|
24459
|
+
}
|
|
24460
|
+
|
|
24461
|
+
.pf-c-simple-list__item-link:active {
|
|
24462
|
+
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--active--FontWeight);
|
|
24463
|
+
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--active--BackgroundColor);
|
|
24464
|
+
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--active--Color);
|
|
24465
|
+
}
|
|
24466
|
+
|
|
24467
|
+
.pf-c-simple-list__item-link.pf-m-current {
|
|
24468
|
+
--pf-c-simple-list__item-link--FontWeight: var(--pf-c-simple-list__item-link--m-current--FontWeight);
|
|
24469
|
+
--pf-c-simple-list__item-link--BackgroundColor: var(--pf-c-simple-list__item-link--m-current--BackgroundColor);
|
|
24470
|
+
--pf-c-simple-list__item-link--Color: var(--pf-c-simple-list__item-link--m-current--Color);
|
|
24471
|
+
}
|
|
24472
|
+
|
|
24473
|
+
.pf-c-simple-list__title {
|
|
24474
|
+
padding: var(--pf-c-simple-list__title--PaddingTop) var(--pf-c-simple-list__title--PaddingRight) var(--pf-c-simple-list__title--PaddingBottom) var(--pf-c-simple-list__title--PaddingLeft);
|
|
24475
|
+
font-size: var(--pf-c-simple-list__title--FontSize);
|
|
24476
|
+
font-weight: var(--pf-c-simple-list__title--FontWeight);
|
|
24477
|
+
color: var(--pf-c-simple-list__title--Color);
|
|
24478
|
+
}
|
|
24479
|
+
|
|
24480
|
+
.pf-c-simple-list__section + .pf-c-simple-list__section {
|
|
24481
|
+
margin-top: var(--pf-c-simple-list__section--section--MarginTop);
|
|
24482
|
+
}
|
|
24483
|
+
|
|
24484
|
+
:where(.pf-theme-dark) .pf-c-simple-list {
|
|
24485
|
+
--pf-c-simple-list__item-link--m-current--Color: var(--pf-global--active-color--100);
|
|
24486
|
+
--pf-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
24487
|
+
--pf-c-simple-list__item-link--hover--Color: var(--pf-global--Color--100);
|
|
24488
|
+
--pf-c-simple-list__item-link--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
24489
|
+
--pf-c-simple-list__item-link--focus--Color: var(--pf-global--Color--100);
|
|
24490
|
+
--pf-c-simple-list__item-link--focus--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
24491
|
+
--pf-c-simple-list__item-link--active--Color: var(--pf-global--Color--100);
|
|
24492
|
+
--pf-c-simple-list__item-link--active--BackgroundColor: var(--pf-global--BackgroundColor--400);
|
|
24493
|
+
}
|
|
24494
|
+
|
|
24495
24495
|
.pf-c-tile {
|
|
24496
24496
|
--pf-c-tile--PaddingTop: var(--pf-global--spacer--lg);
|
|
24497
24497
|
--pf-c-tile--PaddingRight: var(--pf-global--spacer--lg);
|