@patternfly/quickstarts 6.0.0-alpha.5 → 6.0.0-prerelease.1
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/dist/index.es.js +7 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +123 -50
- package/dist/patternfly-global.css +1474 -1
- package/dist/patternfly-nested.css +257 -2339
- package/dist/quickstarts-full.es.js +360 -388
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +5 -5
- package/dist/quickstarts-standalone.min.css +2 -6
- package/dist/quickstarts-vendor.css +44 -0
- package/dist/quickstarts.css +45 -1
- package/dist/quickstarts.min.css +1 -1
- package/package.json +10 -10
- package/src/catalog/QuickStartCatalog.tsx +1 -1
- package/src/catalog/QuickStartTile.tsx +3 -8
- package/src/catalog/QuickStartTileHeader.tsx +9 -12
- package/src/catalog/__tests__/QuickStartTile.spec.tsx +0 -1
- package/src/controller/QuickStartFooter.tsx +1 -0
- package/src/controller/QuickStartTaskHeaderList.tsx +2 -2
|
@@ -40,7 +40,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
40
40
|
*
|
|
41
41
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
42
42
|
*/
|
|
43
|
-
function css
|
|
43
|
+
function css(...args) {
|
|
44
44
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
45
45
|
const classes = [];
|
|
46
46
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -50,7 +50,7 @@ function css$1(...args) {
|
|
|
50
50
|
classes.push(arg);
|
|
51
51
|
}
|
|
52
52
|
else if (Array.isArray(arg) && arg.length) {
|
|
53
|
-
const inner = css
|
|
53
|
+
const inner = css(...arg);
|
|
54
54
|
if (inner) {
|
|
55
55
|
classes.push(inner);
|
|
56
56
|
}
|
|
@@ -66,7 +66,7 @@ function css$1(...args) {
|
|
|
66
66
|
return classes.join(' ');
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
var styles$
|
|
69
|
+
var styles$w = {
|
|
70
70
|
"content": "pf-v6-c-content",
|
|
71
71
|
"contentA": "pf-v6-c-content--a",
|
|
72
72
|
"contentBlockquote": "pf-v6-c-content--blockquote",
|
|
@@ -94,7 +94,7 @@ var styles$v = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
var styles$
|
|
97
|
+
var styles$v = {
|
|
98
98
|
"modifiers": {
|
|
99
99
|
"4xl": "pf-m-4xl",
|
|
100
100
|
"3xl": "pf-m-3xl",
|
|
@@ -112,61 +112,61 @@ var styles$u = {
|
|
|
112
112
|
"title": "pf-v6-c-title"
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
const
|
|
115
|
+
const t_global_breakpoint_sm = {
|
|
116
116
|
"name": "--pf-t--global--breakpoint--sm",
|
|
117
117
|
"value": "36rem",
|
|
118
118
|
"var": "var(--pf-t--global--breakpoint--sm)"
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
const
|
|
121
|
+
const t_global_breakpoint_md = {
|
|
122
122
|
"name": "--pf-t--global--breakpoint--md",
|
|
123
123
|
"value": "48rem",
|
|
124
124
|
"var": "var(--pf-t--global--breakpoint--md)"
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
const
|
|
127
|
+
const t_global_breakpoint_lg = {
|
|
128
128
|
"name": "--pf-t--global--breakpoint--lg",
|
|
129
129
|
"value": "62rem",
|
|
130
130
|
"var": "var(--pf-t--global--breakpoint--lg)"
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
const
|
|
133
|
+
const t_global_breakpoint_xl = {
|
|
134
134
|
"name": "--pf-t--global--breakpoint--xl",
|
|
135
135
|
"value": "75rem",
|
|
136
136
|
"var": "var(--pf-t--global--breakpoint--xl)"
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
const
|
|
139
|
+
const t_global_breakpoint_2xl = {
|
|
140
140
|
"name": "--pf-t--global--breakpoint--2xl",
|
|
141
141
|
"value": "90.625rem",
|
|
142
142
|
"var": "var(--pf-t--global--breakpoint--2xl)"
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
const
|
|
145
|
+
const t_global_breakpoint_height_sm = {
|
|
146
146
|
"name": "--pf-t--global--breakpoint--height--sm",
|
|
147
147
|
"value": "0rem",
|
|
148
148
|
"var": "var(--pf-t--global--breakpoint--height--sm)"
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
const
|
|
151
|
+
const t_global_breakpoint_height_md = {
|
|
152
152
|
"name": "--pf-t--global--breakpoint--height--md",
|
|
153
153
|
"value": "40rem",
|
|
154
154
|
"var": "var(--pf-t--global--breakpoint--height--md)"
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
const
|
|
157
|
+
const t_global_breakpoint_height_lg = {
|
|
158
158
|
"name": "--pf-t--global--breakpoint--height--lg",
|
|
159
159
|
"value": "48rem",
|
|
160
160
|
"var": "var(--pf-t--global--breakpoint--height--lg)"
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
const
|
|
163
|
+
const t_global_breakpoint_height_xl = {
|
|
164
164
|
"name": "--pf-t--global--breakpoint--height--xl",
|
|
165
165
|
"value": "60rem",
|
|
166
166
|
"var": "var(--pf-t--global--breakpoint--height--xl)"
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
const
|
|
169
|
+
const t_global_breakpoint_height_2xl = {
|
|
170
170
|
"name": "--pf-t--global--breakpoint--height--2xl",
|
|
171
171
|
"value": "80rem",
|
|
172
172
|
"var": "var(--pf-t--global--breakpoint--height--2xl)"
|
|
@@ -621,18 +621,18 @@ const KeyTypes = {
|
|
|
621
621
|
ArrowRight: 'ArrowRight'
|
|
622
622
|
};
|
|
623
623
|
const globalWidthBreakpoints = {
|
|
624
|
-
sm: parseInt(
|
|
625
|
-
md: parseInt(
|
|
626
|
-
lg: parseInt(
|
|
627
|
-
xl: parseInt(
|
|
628
|
-
'2xl': parseInt(
|
|
624
|
+
sm: parseInt(t_global_breakpoint_sm.value) * 16,
|
|
625
|
+
md: parseInt(t_global_breakpoint_md.value) * 16,
|
|
626
|
+
lg: parseInt(t_global_breakpoint_lg.value) * 16,
|
|
627
|
+
xl: parseInt(t_global_breakpoint_xl.value) * 16,
|
|
628
|
+
'2xl': parseInt(t_global_breakpoint_2xl.value) * 16
|
|
629
629
|
};
|
|
630
630
|
const globalHeightBreakpoints = {
|
|
631
|
-
sm: parseInt(
|
|
632
|
-
md: parseInt(
|
|
633
|
-
lg: parseInt(
|
|
634
|
-
xl: parseInt(
|
|
635
|
-
'2xl': parseInt(
|
|
631
|
+
sm: parseInt(t_global_breakpoint_height_sm.value) * 16,
|
|
632
|
+
md: parseInt(t_global_breakpoint_height_md.value) * 16,
|
|
633
|
+
lg: parseInt(t_global_breakpoint_height_lg.value) * 16,
|
|
634
|
+
xl: parseInt(t_global_breakpoint_height_xl.value) * 16,
|
|
635
|
+
'2xl': parseInt(t_global_breakpoint_height_2xl.value) * 16
|
|
636
636
|
};
|
|
637
637
|
const statusIcons$2 = {
|
|
638
638
|
success: CheckCircleIcon$1,
|
|
@@ -1212,10 +1212,18 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
1212
1212
|
};
|
|
1213
1213
|
|
|
1214
1214
|
/*!
|
|
1215
|
-
* focus-trap 7.
|
|
1215
|
+
* focus-trap 7.6.0
|
|
1216
1216
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
1217
1217
|
*/
|
|
1218
1218
|
|
|
1219
|
+
function _defineProperty(e, r, t) {
|
|
1220
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1221
|
+
value: t,
|
|
1222
|
+
enumerable: !0,
|
|
1223
|
+
configurable: !0,
|
|
1224
|
+
writable: !0
|
|
1225
|
+
}) : e[r] = t, e;
|
|
1226
|
+
}
|
|
1219
1227
|
function ownKeys(e, r) {
|
|
1220
1228
|
var t = Object.keys(e);
|
|
1221
1229
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1237,33 +1245,19 @@ function _objectSpread2(e) {
|
|
|
1237
1245
|
}
|
|
1238
1246
|
return e;
|
|
1239
1247
|
}
|
|
1240
|
-
function
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
configurable: true,
|
|
1247
|
-
writable: true
|
|
1248
|
-
});
|
|
1249
|
-
} else {
|
|
1250
|
-
obj[key] = value;
|
|
1251
|
-
}
|
|
1252
|
-
return obj;
|
|
1253
|
-
}
|
|
1254
|
-
function _toPrimitive(input, hint) {
|
|
1255
|
-
if (typeof input !== "object" || input === null) return input;
|
|
1256
|
-
var prim = input[Symbol.toPrimitive];
|
|
1257
|
-
if (prim !== undefined) {
|
|
1258
|
-
var res = prim.call(input, hint || "default");
|
|
1259
|
-
if (typeof res !== "object") return res;
|
|
1248
|
+
function _toPrimitive(t, r) {
|
|
1249
|
+
if ("object" != typeof t || !t) return t;
|
|
1250
|
+
var e = t[Symbol.toPrimitive];
|
|
1251
|
+
if (void 0 !== e) {
|
|
1252
|
+
var i = e.call(t, r || "default");
|
|
1253
|
+
if ("object" != typeof i) return i;
|
|
1260
1254
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1261
1255
|
}
|
|
1262
|
-
return (
|
|
1256
|
+
return ("string" === r ? String : Number)(t);
|
|
1263
1257
|
}
|
|
1264
|
-
function _toPropertyKey(
|
|
1265
|
-
var
|
|
1266
|
-
return
|
|
1258
|
+
function _toPropertyKey(t) {
|
|
1259
|
+
var i = _toPrimitive(t, "string");
|
|
1260
|
+
return "symbol" == typeof i ? i : i + "";
|
|
1267
1261
|
}
|
|
1268
1262
|
|
|
1269
1263
|
var activeFocusTraps = {
|
|
@@ -1325,10 +1319,8 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
1325
1319
|
idx = i;
|
|
1326
1320
|
return false; // break
|
|
1327
1321
|
}
|
|
1328
|
-
|
|
1329
1322
|
return true; // next
|
|
1330
1323
|
});
|
|
1331
|
-
|
|
1332
1324
|
return idx;
|
|
1333
1325
|
};
|
|
1334
1326
|
|
|
@@ -1475,7 +1467,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1475
1467
|
if (optionValue === true) {
|
|
1476
1468
|
optionValue = undefined; // use default value
|
|
1477
1469
|
}
|
|
1478
|
-
|
|
1479
1470
|
if (!optionValue) {
|
|
1480
1471
|
if (optionValue === undefined || optionValue === false) {
|
|
1481
1472
|
return optionValue;
|
|
@@ -1621,25 +1612,25 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1621
1612
|
*
|
|
1622
1613
|
* @returns {HTMLElement} The element that currently has the focus
|
|
1623
1614
|
**/
|
|
1624
|
-
var
|
|
1615
|
+
var _getActiveElement = function getActiveElement(el) {
|
|
1625
1616
|
var activeElement = el.activeElement;
|
|
1626
1617
|
if (!activeElement) {
|
|
1627
1618
|
return;
|
|
1628
1619
|
}
|
|
1629
1620
|
if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
|
|
1630
|
-
return
|
|
1621
|
+
return _getActiveElement(activeElement.shadowRoot);
|
|
1631
1622
|
}
|
|
1632
1623
|
return activeElement;
|
|
1633
1624
|
};
|
|
1634
|
-
var
|
|
1625
|
+
var _tryFocus = function tryFocus(node) {
|
|
1635
1626
|
if (node === false) {
|
|
1636
1627
|
return;
|
|
1637
1628
|
}
|
|
1638
|
-
if (node ===
|
|
1629
|
+
if (node === _getActiveElement(document)) {
|
|
1639
1630
|
return;
|
|
1640
1631
|
}
|
|
1641
1632
|
if (!node || !node.focus) {
|
|
1642
|
-
|
|
1633
|
+
_tryFocus(getInitialFocusNode());
|
|
1643
1634
|
return;
|
|
1644
1635
|
}
|
|
1645
1636
|
node.focus({
|
|
@@ -1883,9 +1874,9 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1883
1874
|
});
|
|
1884
1875
|
}
|
|
1885
1876
|
if (nextNode) {
|
|
1886
|
-
|
|
1877
|
+
_tryFocus(nextNode);
|
|
1887
1878
|
} else {
|
|
1888
|
-
|
|
1879
|
+
_tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
1889
1880
|
}
|
|
1890
1881
|
}
|
|
1891
1882
|
state.recentNavEvent = undefined; // clear
|
|
@@ -1910,19 +1901,21 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1910
1901
|
// to where it normally would
|
|
1911
1902
|
event.preventDefault();
|
|
1912
1903
|
}
|
|
1913
|
-
|
|
1904
|
+
_tryFocus(destinationNode);
|
|
1914
1905
|
}
|
|
1915
1906
|
// else, let the browser take care of [shift+]tab and move the focus
|
|
1916
1907
|
};
|
|
1908
|
+
var checkTabKey = function checkTabKey(event) {
|
|
1909
|
+
if (config.isKeyForward(event) || config.isKeyBackward(event)) {
|
|
1910
|
+
checkKeyNav(event, config.isKeyBackward(event));
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1917
1913
|
|
|
1918
|
-
|
|
1914
|
+
// we use a different event phase for the Escape key to allow canceling the event and checking for this in escapeDeactivates
|
|
1915
|
+
var checkEscapeKey = function checkEscapeKey(event) {
|
|
1919
1916
|
if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
|
|
1920
1917
|
event.preventDefault();
|
|
1921
1918
|
trap.deactivate();
|
|
1922
|
-
return;
|
|
1923
|
-
}
|
|
1924
|
-
if (config.isKeyForward(event) || config.isKeyBackward(event)) {
|
|
1925
|
-
checkKeyNav(event, config.isKeyBackward(event));
|
|
1926
1919
|
}
|
|
1927
1920
|
};
|
|
1928
1921
|
var checkClick = function checkClick(e) {
|
|
@@ -1955,8 +1948,8 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1955
1948
|
// Delay ensures that the focused element doesn't capture the event
|
|
1956
1949
|
// that caused the focus trap activation.
|
|
1957
1950
|
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
|
|
1958
|
-
|
|
1959
|
-
}) :
|
|
1951
|
+
_tryFocus(getInitialFocusNode());
|
|
1952
|
+
}) : _tryFocus(getInitialFocusNode());
|
|
1960
1953
|
doc.addEventListener('focusin', checkFocusIn, true);
|
|
1961
1954
|
doc.addEventListener('mousedown', checkPointerDown, {
|
|
1962
1955
|
capture: true,
|
|
@@ -1970,10 +1963,11 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1970
1963
|
capture: true,
|
|
1971
1964
|
passive: false
|
|
1972
1965
|
});
|
|
1973
|
-
doc.addEventListener('keydown',
|
|
1966
|
+
doc.addEventListener('keydown', checkTabKey, {
|
|
1974
1967
|
capture: true,
|
|
1975
1968
|
passive: false
|
|
1976
1969
|
});
|
|
1970
|
+
doc.addEventListener('keydown', checkEscapeKey);
|
|
1977
1971
|
return trap;
|
|
1978
1972
|
};
|
|
1979
1973
|
var removeListeners = function removeListeners() {
|
|
@@ -1984,7 +1978,8 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
1984
1978
|
doc.removeEventListener('mousedown', checkPointerDown, true);
|
|
1985
1979
|
doc.removeEventListener('touchstart', checkPointerDown, true);
|
|
1986
1980
|
doc.removeEventListener('click', checkClick, true);
|
|
1987
|
-
doc.removeEventListener('keydown',
|
|
1981
|
+
doc.removeEventListener('keydown', checkTabKey, true);
|
|
1982
|
+
doc.removeEventListener('keydown', checkEscapeKey);
|
|
1988
1983
|
return trap;
|
|
1989
1984
|
};
|
|
1990
1985
|
|
|
@@ -2003,7 +1998,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2003
1998
|
// If the currently focused is removed then browsers will move focus to the
|
|
2004
1999
|
// <body> element. If this happens, try to move focus back into the trap.
|
|
2005
2000
|
if (isFocusedNodeRemoved) {
|
|
2006
|
-
|
|
2001
|
+
_tryFocus(getInitialFocusNode());
|
|
2007
2002
|
}
|
|
2008
2003
|
};
|
|
2009
2004
|
|
|
@@ -2089,7 +2084,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2089
2084
|
var finishDeactivation = function finishDeactivation() {
|
|
2090
2085
|
delay(function () {
|
|
2091
2086
|
if (returnFocus) {
|
|
2092
|
-
|
|
2087
|
+
_tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
2093
2088
|
}
|
|
2094
2089
|
onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate();
|
|
2095
2090
|
});
|
|
@@ -4487,7 +4482,7 @@ const Popper = ({ trigger, popper, direction = 'down', position = 'start', place
|
|
|
4487
4482
|
}
|
|
4488
4483
|
return positionModifiers.top;
|
|
4489
4484
|
};
|
|
4490
|
-
const options = Object.assign({ className: css
|
|
4485
|
+
const options = Object.assign({ className: css(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex,
|
|
4491
4486
|
opacity, transition: getOpacityTransition(animationDuration) }) }, attributes.popper);
|
|
4492
4487
|
const getMenuWithPopper = () => {
|
|
4493
4488
|
const localPopper = React.cloneElement(popper, options);
|
|
@@ -4803,11 +4798,11 @@ var TitleSizes;
|
|
|
4803
4798
|
const Title = (_a) => {
|
|
4804
4799
|
var { className = '', children = '', headingLevel: HeadingLevel, size, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4805
4800
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4806
|
-
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css
|
|
4801
|
+
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$v.title, size ? styles$v.modifiers[size] : styles$v.modifiers[HeadingLevel], className) }), children));
|
|
4807
4802
|
};
|
|
4808
4803
|
Title.displayName = 'Title';
|
|
4809
4804
|
|
|
4810
|
-
var
|
|
4805
|
+
var styles$u = {
|
|
4811
4806
|
"badge": "pf-v6-c-badge",
|
|
4812
4807
|
"button": "pf-v6-c-button",
|
|
4813
4808
|
"buttonCount": "pf-v6-c-button__count",
|
|
@@ -4869,7 +4864,7 @@ var spinnerSize;
|
|
|
4869
4864
|
})(spinnerSize || (spinnerSize = {}));
|
|
4870
4865
|
const Spinner = (_a) => {
|
|
4871
4866
|
var { className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
4872
|
-
return (React.createElement("svg", Object.assign({ className: css
|
|
4867
|
+
return (React.createElement("svg", Object.assign({ className: css(styles$t.spinner, isInline ? styles$t.modifiers.inline : styles$t.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props),
|
|
4873
4868
|
React.createElement("circle", { className: styles$t.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })));
|
|
4874
4869
|
};
|
|
4875
4870
|
Spinner.displayName = 'Spinner';
|
|
@@ -4886,7 +4881,7 @@ var styles$s = {
|
|
|
4886
4881
|
|
|
4887
4882
|
const Badge = (_a) => {
|
|
4888
4883
|
var { isRead = false, isDisabled = false, className = '', children = '', screenReaderText } = _a, props = __rest$1(_a, ["isRead", "isDisabled", "className", "children", "screenReaderText"]);
|
|
4889
|
-
return (React.createElement("span", Object.assign({}, props, { className: css
|
|
4884
|
+
return (React.createElement("span", Object.assign({}, props, { className: css(styles$s.badge, (isRead ? styles$s.modifiers.read : styles$s.modifiers.unread), isDisabled && styles$s.modifiers.disabled, className) }),
|
|
4890
4885
|
children,
|
|
4891
4886
|
screenReaderText && React.createElement("span", { className: "pf-v6-screen-reader" }, screenReaderText)));
|
|
4892
4887
|
};
|
|
@@ -4928,6 +4923,7 @@ const ButtonBase = (_a) => {
|
|
|
4928
4923
|
const Component = component;
|
|
4929
4924
|
const isButtonElement = Component === 'button';
|
|
4930
4925
|
const isInlineSpan = isInline && Component === 'span';
|
|
4926
|
+
const isIconAlignedAtEnd = iconPosition === 'end' || iconPosition === 'right';
|
|
4931
4927
|
const preventedEvents = inoperableEvents.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {
|
|
4932
4928
|
event.preventDefault();
|
|
4933
4929
|
} })), {});
|
|
@@ -4942,13 +4938,17 @@ const ButtonBase = (_a) => {
|
|
|
4942
4938
|
return 0;
|
|
4943
4939
|
}
|
|
4944
4940
|
};
|
|
4945
|
-
|
|
4946
|
-
|
|
4941
|
+
const _icon = icon && (React.createElement("span", { className: css(styles$u.buttonIcon, children && styles$u.modifiers[isIconAlignedAtEnd ? 'end' : 'start']) }, icon));
|
|
4942
|
+
const _children = children && React.createElement("span", { className: css('pf-v6-c-button__text') }, children);
|
|
4943
|
+
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isAriaDisabled || (!isButtonElement && isDisabled), "aria-label": ariaLabel, className: css(styles$u.button, styles$u.modifiers[variant], isBlock && styles$u.modifiers.block, isDisabled && !isButtonElement && styles$u.modifiers.disabled, isAriaDisabled && styles$u.modifiers.ariaDisabled, isClicked && styles$u.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$u.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$u.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$u.modifiers.progress, isLoading && styles$u.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$u.modifiers.noPadding, variant === ButtonVariant.stateful && styles$u.modifiers[state], size === ButtonSize.sm && styles$u.modifiers.small, size === ButtonSize.lg && styles$u.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps),
|
|
4944
|
+
isLoading && (React.createElement("span", { className: css(styles$u.buttonProgress) },
|
|
4947
4945
|
React.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4946
|
+
isIconAlignedAtEnd ? (React.createElement(React.Fragment, null,
|
|
4947
|
+
_children,
|
|
4948
|
+
_icon)) : (React.createElement(React.Fragment, null,
|
|
4949
|
+
_icon,
|
|
4950
|
+
_children)),
|
|
4951
|
+
countOptions && (React.createElement("span", { className: css(styles$u.buttonCount, countOptions.className) },
|
|
4952
4952
|
React.createElement(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled }, countOptions.count)))));
|
|
4953
4953
|
};
|
|
4954
4954
|
const Button = React.forwardRef((props, ref) => (React.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -5003,19 +5003,19 @@ var styles$p = {
|
|
|
5003
5003
|
|
|
5004
5004
|
const Backdrop = (_a) => {
|
|
5005
5005
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5006
|
-
return (React.createElement("div", Object.assign({}, props, { className: css
|
|
5006
|
+
return (React.createElement("div", Object.assign({}, props, { className: css(styles$r.backdrop, className) }), children));
|
|
5007
5007
|
};
|
|
5008
5008
|
Backdrop.displayName = 'Backdrop';
|
|
5009
5009
|
|
|
5010
5010
|
const ModalBoxBody = (_a) => {
|
|
5011
5011
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5012
|
-
return (React.createElement("div", Object.assign({}, props, { className: css
|
|
5012
|
+
return (React.createElement("div", Object.assign({}, props, { className: css(styles$q.modalBoxBody, className) }), children));
|
|
5013
5013
|
};
|
|
5014
5014
|
ModalBoxBody.displayName = 'ModalBoxBody';
|
|
5015
5015
|
|
|
5016
5016
|
const ModalBoxCloseButton = (_a) => {
|
|
5017
5017
|
var { className, onClose = () => undefined, 'aria-label': ariaLabel = 'Close', ouiaId } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label', "ouiaId"]);
|
|
5018
|
-
return (React.createElement("div", { className: css
|
|
5018
|
+
return (React.createElement("div", { className: css(styles$q.modalBoxClose, className) },
|
|
5019
5019
|
React.createElement(Button, Object.assign({ variant: "plain", onClick: (event) => onClose(event), "aria-label": ariaLabel }, (ouiaId && { ouiaId: `${ouiaId}-${ModalBoxCloseButton.displayName}` }), props, { icon: React.createElement(TimesIcon, null) }))));
|
|
5020
5020
|
};
|
|
5021
5021
|
ModalBoxCloseButton.displayName = 'ModalBoxCloseButton';
|
|
@@ -5032,27 +5032,27 @@ const ModalBox = (_a) => {
|
|
|
5032
5032
|
style = style || {};
|
|
5033
5033
|
style[c_modal_box_m_align_top_spacer.name] = positionOffset;
|
|
5034
5034
|
}
|
|
5035
|
-
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css
|
|
5035
|
+
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css(styles$q.modalBox, className, position === 'top' && styles$q.modifiers.alignTop, variant === 'large' && styles$q.modifiers.lg, variant === 'small' && styles$q.modifiers.sm, variant === 'medium' && styles$q.modifiers.md), style: style }), children));
|
|
5036
5036
|
};
|
|
5037
5037
|
ModalBox.displayName = 'ModalBox';
|
|
5038
5038
|
|
|
5039
5039
|
const ModalBoxFooter = (_a) => {
|
|
5040
5040
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5041
|
-
return (React.createElement("footer", Object.assign({}, props, { className: css
|
|
5041
|
+
return (React.createElement("footer", Object.assign({}, props, { className: css(styles$q.modalBoxFooter, className) }), children));
|
|
5042
5042
|
};
|
|
5043
5043
|
ModalBoxFooter.displayName = 'ModalBoxFooter';
|
|
5044
5044
|
|
|
5045
5045
|
const ModalBoxDescription = (_a) => {
|
|
5046
5046
|
var { children = null, className = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "id"]);
|
|
5047
|
-
return (React.createElement("div", Object.assign({}, props, { id: id, className: css
|
|
5047
|
+
return (React.createElement("div", Object.assign({}, props, { id: id, className: css(styles$q.modalBoxDescription, className) }), children));
|
|
5048
5048
|
};
|
|
5049
5049
|
ModalBoxDescription.displayName = 'ModalBoxDescription';
|
|
5050
5050
|
|
|
5051
5051
|
const ModalBoxHeader = (_a) => {
|
|
5052
5052
|
var { children = null, className = '', help = null } = _a, props = __rest$1(_a, ["children", "className", "help"]);
|
|
5053
|
-
return (React.createElement("header", Object.assign({ className: css
|
|
5053
|
+
return (React.createElement("header", Object.assign({ className: css(styles$q.modalBoxHeader, help && styles$q.modifiers.help, className) }, props),
|
|
5054
5054
|
help && (React.createElement(React.Fragment, null,
|
|
5055
|
-
React.createElement("div", { className: css
|
|
5055
|
+
React.createElement("div", { className: css(styles$q.modalBoxHeaderMain) }, children),
|
|
5056
5056
|
React.createElement("div", { className: `${styles$q.modalBoxHeader}-help` }, help))),
|
|
5057
5057
|
!help && children));
|
|
5058
5058
|
};
|
|
@@ -5081,13 +5081,13 @@ var styles$o = {
|
|
|
5081
5081
|
|
|
5082
5082
|
const TooltipContent = (_a) => {
|
|
5083
5083
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
5084
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
5084
|
+
return (React.createElement("div", Object.assign({ className: css(styles$o.tooltipContent, isLeftAligned && styles$o.modifiers.textAlignLeft, className) }, props), children));
|
|
5085
5085
|
};
|
|
5086
5086
|
TooltipContent.displayName = 'TooltipContent';
|
|
5087
5087
|
|
|
5088
5088
|
const TooltipArrow = (_a) => {
|
|
5089
5089
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
5090
|
-
return React.createElement("div", Object.assign({ className: css
|
|
5090
|
+
return React.createElement("div", Object.assign({ className: css(styles$o.tooltipArrow, className) }, props));
|
|
5091
5091
|
};
|
|
5092
5092
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
5093
5093
|
|
|
@@ -5171,7 +5171,7 @@ const Tooltip = (_a) => {
|
|
|
5171
5171
|
'right-end': styles$o.modifiers.rightBottom
|
|
5172
5172
|
};
|
|
5173
5173
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
5174
|
-
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css
|
|
5174
|
+
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$o.tooltip, className), role: "tooltip", id: id, style: {
|
|
5175
5175
|
maxWidth: hasCustomMaxWidth ? maxWidth : null
|
|
5176
5176
|
}, ref: popperRef }, rest),
|
|
5177
5177
|
React.createElement(TooltipArrow, null),
|
|
@@ -5219,10 +5219,10 @@ const ModalBoxTitle = (_a) => {
|
|
|
5219
5219
|
useIsomorphicLayoutEffect(() => {
|
|
5220
5220
|
setHasTooltip(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
|
|
5221
5221
|
}, []);
|
|
5222
|
-
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css
|
|
5223
|
-
titleIconVariant && (React.createElement("span", { className: css
|
|
5222
|
+
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css(styles$q.modalBoxTitle, titleIconVariant && styles$q.modifiers.icon, className) }, props),
|
|
5223
|
+
titleIconVariant && (React.createElement("span", { className: css(styles$q.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
5224
5224
|
label && React.createElement("span", { className: "pf-v6-screen-reader" }, label),
|
|
5225
|
-
React.createElement("span", { className: css
|
|
5225
|
+
React.createElement("span", { className: css(styles$q.modalBoxTitleText) }, title)));
|
|
5226
5226
|
return hasTooltip ? React.createElement(Tooltip, { content: title }, content) : content;
|
|
5227
5227
|
};
|
|
5228
5228
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
@@ -5256,7 +5256,7 @@ const ModalContent = (_a) => {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
return idRefList.join(' ');
|
|
5258
5258
|
};
|
|
5259
|
-
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, className: css
|
|
5259
|
+
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, className: css(className, isVariantIcon(titleIconVariant) && styles$q.modifiers[titleIconVariant]), variant: variant, position: position, positionOffset: positionOffset, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledbyFormatted(), "aria-describedby": ariaDescribedby || (hasNoBodyWrapper ? null : descriptorId) }, getOUIAProps(ModalContent.displayName, ouiaId, ouiaSafe), { style: Object.assign(Object.assign({}, (width && { '--pf-v6-c-modal-box--Width': typeof width !== 'number' ? width : `${width}px` })), (maxWidth && {
|
|
5260
5260
|
'--pf-v6-c-modal-box--MaxWidth': typeof maxWidth !== 'number' ? maxWidth : `${maxWidth}px`
|
|
5261
5261
|
})) }),
|
|
5262
5262
|
showClose && React.createElement(ModalBoxCloseButton, { onClose: (event) => onClose(event), ouiaId: ouiaId }),
|
|
@@ -5270,7 +5270,7 @@ const ModalContent = (_a) => {
|
|
|
5270
5270
|
// FocusTrap's initialFocus can accept false as a value to prevent initial focus.
|
|
5271
5271
|
// We want to prevent this in case false is ever passed in.
|
|
5272
5272
|
initialFocus: elementToFocus || undefined
|
|
5273
|
-
}, className: css
|
|
5273
|
+
}, className: css(styles$p.bullseye) }, modalBox)));
|
|
5274
5274
|
};
|
|
5275
5275
|
ModalContent.displayName = 'ModalContent';
|
|
5276
5276
|
|
|
@@ -5330,10 +5330,10 @@ class Modal$1 extends React.Component {
|
|
|
5330
5330
|
target.appendChild(container);
|
|
5331
5331
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
5332
5332
|
if (this.props.isOpen) {
|
|
5333
|
-
target.classList.add(css
|
|
5333
|
+
target.classList.add(css(styles$r.backdropOpen));
|
|
5334
5334
|
}
|
|
5335
5335
|
else {
|
|
5336
|
-
target.classList.remove(css
|
|
5336
|
+
target.classList.remove(css(styles$r.backdropOpen));
|
|
5337
5337
|
}
|
|
5338
5338
|
if (!title && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
5339
5339
|
// eslint-disable-next-line no-console
|
|
@@ -5348,11 +5348,11 @@ class Modal$1 extends React.Component {
|
|
|
5348
5348
|
const { appendTo } = this.props;
|
|
5349
5349
|
const target = this.getElement(appendTo);
|
|
5350
5350
|
if (this.props.isOpen) {
|
|
5351
|
-
target.classList.add(css
|
|
5351
|
+
target.classList.add(css(styles$r.backdropOpen));
|
|
5352
5352
|
this.toggleSiblingsFromScreenReaders(true);
|
|
5353
5353
|
}
|
|
5354
5354
|
else {
|
|
5355
|
-
target.classList.remove(css
|
|
5355
|
+
target.classList.remove(css(styles$r.backdropOpen));
|
|
5356
5356
|
this.toggleSiblingsFromScreenReaders(false);
|
|
5357
5357
|
}
|
|
5358
5358
|
}
|
|
@@ -5363,7 +5363,7 @@ class Modal$1 extends React.Component {
|
|
|
5363
5363
|
target.removeChild(this.state.container);
|
|
5364
5364
|
}
|
|
5365
5365
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
5366
|
-
target.classList.remove(css
|
|
5366
|
+
target.classList.remove(css(styles$r.backdropOpen));
|
|
5367
5367
|
this.toggleSiblingsFromScreenReaders(false);
|
|
5368
5368
|
}
|
|
5369
5369
|
render() {
|
|
@@ -5425,7 +5425,7 @@ const AccordionItemContext = React.createContext({});
|
|
|
5425
5425
|
const Accordion = (_a) => {
|
|
5426
5426
|
var { children = null, className = '', 'aria-label': ariaLabel, headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default', togglePosition = 'end' } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize", "togglePosition"]);
|
|
5427
5427
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
5428
|
-
return (React.createElement(AccordionList, Object.assign({ className: css
|
|
5428
|
+
return (React.createElement(AccordionList, Object.assign({ className: css(styles$n.accordion, isBordered && styles$n.modifiers.bordered, togglePosition === 'start' && styles$n.modifiers.toggleStart, displaySize === 'lg' && styles$n.modifiers.displayLg, className), "aria-label": ariaLabel }, (!asDefinitionList && ariaLabel && { role: 'region' }), props),
|
|
5429
5429
|
React.createElement(AccordionContext.Provider, { value: {
|
|
5430
5430
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
5431
5431
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel,
|
|
@@ -5436,7 +5436,7 @@ Accordion.displayName = 'Accordion';
|
|
|
5436
5436
|
|
|
5437
5437
|
const AccordionExpandableContentBody = (_a) => {
|
|
5438
5438
|
var { children = null } = _a, props = __rest$1(_a, ["children"]);
|
|
5439
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
5439
|
+
return (React.createElement("div", Object.assign({ className: css(styles$n.accordionExpandableContentBody) }, props), children));
|
|
5440
5440
|
};
|
|
5441
5441
|
AccordionExpandableContentBody.displayName = 'AccordionExpandableContentBody';
|
|
5442
5442
|
|
|
@@ -5456,7 +5456,7 @@ const AccordionContent = (_a) => {
|
|
|
5456
5456
|
}, [containerRef, isFixed, isExpanded]);
|
|
5457
5457
|
return (React.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
5458
5458
|
const Container = component || ContentContainer;
|
|
5459
|
-
return (React.createElement(Container, Object.assign({ ref: containerRef, id: id, className: css
|
|
5459
|
+
return (React.createElement(Container, Object.assign({ ref: containerRef, id: id, className: css(styles$n.accordionExpandableContent, isFixed && styles$n.modifiers.fixed, className), hidden: !isExpanded }, (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledby && { 'aria-labelledby': ariaLabelledby }), (hasScrollbar && { tabIndex: 0 }), (hasScrollbar && Container === 'div' && { role: 'region' }), props), isCustomContent ? (children) : (React.createElement(AccordionExpandableContentBody, Object.assign({}, contentBodyProps), children))));
|
|
5460
5460
|
}));
|
|
5461
5461
|
};
|
|
5462
5462
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -5466,7 +5466,7 @@ const AccordionItem = (_a) => {
|
|
|
5466
5466
|
return (React.createElement(AccordionItemContext.Provider, { value: {
|
|
5467
5467
|
isExpanded: isExpandedProp
|
|
5468
5468
|
} },
|
|
5469
|
-
React.createElement("div", Object.assign({ className: css
|
|
5469
|
+
React.createElement("div", Object.assign({ className: css(styles$n.accordionItem, isExpandedProp && styles$n.modifiers.expanded, className) }, props), children)));
|
|
5470
5470
|
};
|
|
5471
5471
|
AccordionItem.displayName = 'AccordionItem';
|
|
5472
5472
|
|
|
@@ -5483,16 +5483,16 @@ const AngleRightIcon = createIcon(AngleRightIconConfig);
|
|
|
5483
5483
|
|
|
5484
5484
|
const AccordionToggle = (_a) => {
|
|
5485
5485
|
var { className = '', id, children = null, component } = _a, props = __rest$1(_a, ["className", "id", "children", "component"]);
|
|
5486
|
-
const renderToggleIcon = () => (React.createElement("span", { className: css
|
|
5486
|
+
const renderToggleIcon = () => (React.createElement("span", { className: css(styles$n.accordionToggleIcon) },
|
|
5487
5487
|
React.createElement(AngleRightIcon, null)));
|
|
5488
5488
|
const { isExpanded } = React.useContext(AccordionItemContext);
|
|
5489
5489
|
return (React.createElement(AccordionContext.Consumer, null, ({ ToggleContainer, togglePosition }) => {
|
|
5490
5490
|
const Container = component || ToggleContainer;
|
|
5491
5491
|
const isToggleStartPositioned = togglePosition === 'start';
|
|
5492
5492
|
return (React.createElement(Container, null,
|
|
5493
|
-
React.createElement("button", Object.assign({ id: id, className: css
|
|
5493
|
+
React.createElement("button", Object.assign({ id: id, className: css(styles$n.accordionToggle, isExpanded && styles$n.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
5494
5494
|
isToggleStartPositioned && renderToggleIcon(),
|
|
5495
|
-
React.createElement("span", { className: css
|
|
5495
|
+
React.createElement("span", { className: css(styles$n.accordionToggleText) }, children),
|
|
5496
5496
|
!isToggleStartPositioned && renderToggleIcon())));
|
|
5497
5497
|
}));
|
|
5498
5498
|
};
|
|
@@ -5508,19 +5508,19 @@ var styles$m = {
|
|
|
5508
5508
|
|
|
5509
5509
|
const ActionList = (_a) => {
|
|
5510
5510
|
var { children, isIconList, className } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
5511
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
5511
|
+
return (React.createElement("div", Object.assign({ className: css(styles$m.actionList, isIconList && styles$m.modifiers.icons, className) }, props), children));
|
|
5512
5512
|
};
|
|
5513
5513
|
ActionList.displayName = 'ActionList';
|
|
5514
5514
|
|
|
5515
5515
|
const ActionListGroup = (_a) => {
|
|
5516
5516
|
var { children, className, isIconGroup } = _a, props = __rest$1(_a, ["children", "className", "isIconGroup"]);
|
|
5517
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
5517
|
+
return (React.createElement("div", Object.assign({ className: css(styles$m.actionListGroup, isIconGroup && styles$m.modifiers.icons, className) }, props), children));
|
|
5518
5518
|
};
|
|
5519
5519
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
5520
5520
|
|
|
5521
5521
|
const ActionListItem = (_a) => {
|
|
5522
5522
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5523
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
5523
|
+
return (React.createElement("div", Object.assign({ className: css(`${styles$m.actionList}__item`, className) }, props), children));
|
|
5524
5524
|
};
|
|
5525
5525
|
ActionListItem.displayName = 'ActionListItem';
|
|
5526
5526
|
|
|
@@ -5559,7 +5559,7 @@ const variantIcons = {
|
|
|
5559
5559
|
const AlertIcon = (_a) => {
|
|
5560
5560
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
5561
5561
|
const Icon = variantIcons[variant];
|
|
5562
|
-
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css
|
|
5562
|
+
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css(styles$l.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
5563
5563
|
};
|
|
5564
5564
|
|
|
5565
5565
|
const AlertContext = React.createContext(null);
|
|
@@ -5573,7 +5573,7 @@ const c_alert__title_max_lines = {
|
|
|
5573
5573
|
const AlertToggleExpandButton = (_a) => {
|
|
5574
5574
|
var { 'aria-label': ariaLabel = '', variantLabel, onToggleExpand, isExpanded = false } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
5575
5575
|
const { title, variantLabel: alertVariantLabel } = React.useContext(AlertContext);
|
|
5576
|
-
return (React.createElement(Button, Object.assign({ variant: ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props, { icon: React.createElement("span", { className: css
|
|
5576
|
+
return (React.createElement(Button, Object.assign({ variant: ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props, { icon: React.createElement("span", { className: css(styles$l.alertToggleIcon) },
|
|
5577
5577
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })) })));
|
|
5578
5578
|
};
|
|
5579
5579
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5658,20 +5658,20 @@ const Alert = (_a) => {
|
|
|
5658
5658
|
if (dismissed) {
|
|
5659
5659
|
return null;
|
|
5660
5660
|
}
|
|
5661
|
-
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css
|
|
5662
|
-
return (React.createElement("div", Object.assign({ ref: divRef, className: css
|
|
5661
|
+
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$l.alertTitle, truncateTitle && styles$l.modifiers.truncate) }), getHeadingContent));
|
|
5662
|
+
return (React.createElement("div", Object.assign({ ref: divRef, className: css(styles$l.alert, isInline && styles$l.modifiers.inline, isPlain && styles$l.modifiers.plain, isExpandable && styles$l.modifiers.expandable, isExpanded && styles$l.modifiers.expanded, styles$l.modifiers[variant], className) }, ouiaProps, (isLiveRegion && {
|
|
5663
5663
|
'aria-live': 'polite',
|
|
5664
5664
|
'aria-atomic': 'false'
|
|
5665
5665
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave, id: id }, props),
|
|
5666
5666
|
isExpandable && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5667
|
-
React.createElement("div", { className: css
|
|
5667
|
+
React.createElement("div", { className: css(styles$l.alertToggle) },
|
|
5668
5668
|
React.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5669
5669
|
React.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5670
5670
|
isTooltipVisible ? (React.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5671
5671
|
actionClose && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5672
|
-
React.createElement("div", { className: css
|
|
5673
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css
|
|
5674
|
-
actionLinks && React.createElement("div", { className: css
|
|
5672
|
+
React.createElement("div", { className: css(styles$l.alertAction) }, actionClose))),
|
|
5673
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css(styles$l.alertDescription) }, children)),
|
|
5674
|
+
actionLinks && React.createElement("div", { className: css(styles$l.alertActionGroup) }, actionLinks)));
|
|
5675
5675
|
};
|
|
5676
5676
|
Alert.displayName = 'Alert';
|
|
5677
5677
|
|
|
@@ -5730,7 +5730,7 @@ const statusIcons$1 = {
|
|
|
5730
5730
|
const FormControlIcon = (_a) => {
|
|
5731
5731
|
var { status, customIcon, className } = _a, props = __rest$1(_a, ["status", "customIcon", "className"]);
|
|
5732
5732
|
const StatusIcon = status && statusIcons$1[status];
|
|
5733
|
-
return (React.createElement("span", Object.assign({ className: css
|
|
5733
|
+
return (React.createElement("span", Object.assign({ className: css(formStyles.formControlIcon, status && formStyles.modifiers.status, className) }, props), customIcon || React.createElement(StatusIcon, null)));
|
|
5734
5734
|
};
|
|
5735
5735
|
|
|
5736
5736
|
var TextInputTypes;
|
|
@@ -5819,9 +5819,9 @@ class TextInputBase extends React.Component {
|
|
|
5819
5819
|
const ariaExpandedProps = expandedProps
|
|
5820
5820
|
? { 'aria-expanded': expandedProps === null || expandedProps === void 0 ? void 0 : expandedProps.isExpanded, 'aria-controls': expandedProps === null || expandedProps === void 0 ? void 0 : expandedProps.ariaControls, role: 'combobox' }
|
|
5821
5821
|
: {};
|
|
5822
|
-
return (React.createElement("span", { className: css
|
|
5822
|
+
return (React.createElement("span", { className: css(formStyles.formControl, readOnlyVariant && formStyles.modifiers.readonly, readOnlyVariant === 'plain' && formStyles.modifiers.plain, isDisabled && formStyles.modifiers.disabled, (isExpanded || (expandedProps === null || expandedProps === void 0 ? void 0 : expandedProps.isExpanded)) && formStyles.modifiers.expanded, customIcon && formStyles.modifiers.icon, hasStatusIcon && formStyles.modifiers[validated], className) },
|
|
5823
5823
|
React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange, type: type, value: this.sanitizeInputValue(value), "aria-invalid": props['aria-invalid'] ? props['aria-invalid'] : validated === ValidatedOptions.error }, ariaExpandedProps, { required: isRequired, disabled: isDisabled, readOnly: !!readOnlyVariant || readOnly, ref: innerRef || this.inputRef, placeholder: placeholder }, getOUIAProps(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
5824
|
-
(customIcon || hasStatusIcon) && (React.createElement("span", { className: css
|
|
5824
|
+
(customIcon || hasStatusIcon) && (React.createElement("span", { className: css(formStyles.formControlUtilities) },
|
|
5825
5825
|
customIcon && React.createElement(FormControlIcon, { customIcon: customIcon }),
|
|
5826
5826
|
hasStatusIcon && React.createElement(FormControlIcon, { status: validated })))));
|
|
5827
5827
|
}
|
|
@@ -6084,7 +6084,7 @@ class MenuBase extends React.Component {
|
|
|
6084
6084
|
}, noHorizontalArrowHandling: document.activeElement &&
|
|
6085
6085
|
(document.activeElement.classList.contains(breadcrumbStyles.breadcrumbLink) ||
|
|
6086
6086
|
document.activeElement.tagName === 'INPUT'), noEnterHandling: true, noSpaceHandling: true })),
|
|
6087
|
-
React.createElement("div", Object.assign({ id: id, className: css
|
|
6087
|
+
React.createElement("div", Object.assign({ id: id, className: css(menuStyles.menu, isPlain && menuStyles.modifiers.plain, isScrollable && menuStyles.modifiers.scrollable, containsFlyout && menuStyles.modifiers.flyout, isNavFlyout && 'pf-m-nav', containsDrilldown && menuStyles.modifiers.drilldown, _isMenuDrilledIn && menuStyles.modifiers.drilledIn, className), ref: this.menuRef }, getOUIAProps(Menu.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
6088
6088
|
}
|
|
6089
6089
|
}
|
|
6090
6090
|
MenuBase.displayName = 'Menu';
|
|
@@ -6138,7 +6138,7 @@ const MenuContent = React.forwardRef((props, ref) => {
|
|
|
6138
6138
|
}
|
|
6139
6139
|
return ref || menuContentRef;
|
|
6140
6140
|
};
|
|
6141
|
-
return (React.createElement(MenuContext.Consumer, null, ({ menuId, onGetMenuHeight }) => (React.createElement("div", Object.assign({}, rest, { className: css
|
|
6141
|
+
return (React.createElement(MenuContext.Consumer, null, ({ menuId, onGetMenuHeight }) => (React.createElement("div", Object.assign({}, rest, { className: css(menuStyles.menuContent, props.className), ref: (el) => refCallback(el, menuId, onGetMenuHeight), style: Object.assign(Object.assign({}, (menuHeight && { [c_menu__content_Height.name]: menuHeight })), (maxMenuHeight && { [c_menu__content_MaxHeight.name]: maxMenuHeight })) }), children))));
|
|
6142
6142
|
});
|
|
6143
6143
|
MenuContent.displayName = 'MenuContent';
|
|
6144
6144
|
|
|
@@ -6234,22 +6234,22 @@ class Checkbox extends React.Component {
|
|
|
6234
6234
|
if ([false, true].includes(defaultChecked)) {
|
|
6235
6235
|
checkedProps.defaultChecked = defaultChecked;
|
|
6236
6236
|
}
|
|
6237
|
-
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css
|
|
6237
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css(styles$k.checkInput, inputClassName), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, required: isRequired, ref: (elem) => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
6238
6238
|
const wrapWithLabel = (isLabelWrapped && !component) || component === 'label';
|
|
6239
6239
|
const Label = wrapWithLabel ? 'span' : 'label';
|
|
6240
|
-
const labelRendered = label ? (React.createElement(Label, { className: css
|
|
6240
|
+
const labelRendered = label ? (React.createElement(Label, { className: css(styles$k.checkLabel, isDisabled && styles$k.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined },
|
|
6241
6241
|
label,
|
|
6242
|
-
isRequired && (React.createElement("span", { className: css
|
|
6242
|
+
isRequired && (React.createElement("span", { className: css(styles$k.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))) : null;
|
|
6243
6243
|
const Component = component !== null && component !== void 0 ? component : (wrapWithLabel ? 'label' : 'div');
|
|
6244
6244
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
6245
|
-
return (React.createElement(Component, { className: css
|
|
6245
|
+
return (React.createElement(Component, { className: css(styles$k.check, !label && styles$k.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
6246
6246
|
labelPosition === 'start' ? (React.createElement(React.Fragment, null,
|
|
6247
6247
|
labelRendered,
|
|
6248
6248
|
inputRendered)) : (React.createElement(React.Fragment, null,
|
|
6249
6249
|
inputRendered,
|
|
6250
6250
|
labelRendered)),
|
|
6251
|
-
description && React.createElement("span", { className: css
|
|
6252
|
-
body && React.createElement("span", { className: css
|
|
6251
|
+
description && React.createElement("span", { className: css(styles$k.checkDescription) }, description),
|
|
6252
|
+
body && React.createElement("span", { className: css(styles$k.checkBody) }, body)));
|
|
6253
6253
|
}
|
|
6254
6254
|
}
|
|
6255
6255
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -6284,7 +6284,7 @@ const MenuItemActionBase = (_a) => {
|
|
|
6284
6284
|
// event specified on the Menu
|
|
6285
6285
|
onActionClick && onActionClick(event, itemId, actionId);
|
|
6286
6286
|
};
|
|
6287
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6287
|
+
return (React.createElement("div", Object.assign({ className: css(menuStyles.menuItemAction, isFavorited !== null && 'pf-m-favorite', isFavorited && menuStyles.modifiers.favorited, className) }, props),
|
|
6288
6288
|
React.createElement(Button, { "aria-label": ariaLabel, onClick: onClickButton, ref: innerRef, role: "menuitem", variant: "plain", tabIndex: -1, isDisabled: isDisabled || isDisabledContext, icon: icon === 'favorites' || isFavorited !== null ? React.createElement(StarIcon, { "aria-hidden": true }) : icon })));
|
|
6289
6289
|
}))));
|
|
6290
6290
|
};
|
|
@@ -6484,7 +6484,7 @@ const MenuItemBase = (_a) => {
|
|
|
6484
6484
|
}, [isFocused]);
|
|
6485
6485
|
const isSelectMenu = menuRole === 'listbox';
|
|
6486
6486
|
const renderItem = (React.createElement(React.Fragment, null,
|
|
6487
|
-
React.createElement(GenerateId, null, (randomId) => (React.createElement(Component, Object.assign({ id: id, tabIndex: -1, className: css
|
|
6487
|
+
React.createElement(GenerateId, null, (randomId) => (React.createElement(Component, Object.assign({ id: id, tabIndex: -1, className: css(menuStyles.menuItem, getIsSelected() && !hasCheckbox && menuStyles.modifiers.selected, className), "aria-current": getAriaCurrent() }, (!hasCheckbox && { disabled: isDisabled, 'aria-label': ariaLabel }), (!hasCheckbox && !flyoutMenu && { role: isSelectMenu ? 'option' : 'menuitem' }), (!hasCheckbox && !flyoutMenu && isSelectMenu && { 'aria-selected': getIsSelected() }), { ref: innerRef }, (!hasCheckbox && {
|
|
6488
6488
|
onClick: (event) => {
|
|
6489
6489
|
if (!isAriaDisabled) {
|
|
6490
6490
|
onItemSelect(event, onSelect);
|
|
@@ -6496,20 +6496,20 @@ const MenuItemBase = (_a) => {
|
|
|
6496
6496
|
}
|
|
6497
6497
|
}
|
|
6498
6498
|
}), (hasCheckbox && { htmlFor: randomId }), additionalProps),
|
|
6499
|
-
React.createElement("span", { className: css
|
|
6500
|
-
direction === 'up' && (React.createElement("span", { className: css
|
|
6499
|
+
React.createElement("span", { className: css(menuStyles.menuItemMain) },
|
|
6500
|
+
direction === 'up' && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6501
6501
|
React.createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
6502
|
-
icon && React.createElement("span", { className: css
|
|
6503
|
-
hasCheckbox && (React.createElement("span", { className: css
|
|
6502
|
+
icon && React.createElement("span", { className: css(menuStyles.menuItemIcon) }, icon),
|
|
6503
|
+
hasCheckbox && (React.createElement("span", { className: css(menuStyles.menuItemCheck) },
|
|
6504
6504
|
React.createElement(Checkbox, { id: randomId, component: "span", isChecked: isSelected || false, onChange: (event) => onItemSelect(event, onSelect), isDisabled: isDisabled, "aria-disabled": isAriaDisabled }))),
|
|
6505
|
-
React.createElement("span", { className: css
|
|
6506
|
-
isExternalLink && (React.createElement("span", { className: css
|
|
6505
|
+
React.createElement("span", { className: css(menuStyles.menuItemText) }, children),
|
|
6506
|
+
isExternalLink && (React.createElement("span", { className: css(menuStyles.menuItemExternalIcon) },
|
|
6507
6507
|
React.createElement(ExternalLinkAltIcon$1, { "aria-hidden": true }))),
|
|
6508
|
-
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css
|
|
6508
|
+
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6509
6509
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
6510
|
-
getIsSelected() && (React.createElement("span", { className: css
|
|
6510
|
+
getIsSelected() && (React.createElement("span", { className: css(menuStyles.menuItemSelectIcon) },
|
|
6511
6511
|
React.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6512
|
-
description && direction !== 'up' && (React.createElement("span", { className: css
|
|
6512
|
+
description && direction !== 'up' && (React.createElement("span", { className: css(menuStyles.menuItemDescription) },
|
|
6513
6513
|
React.createElement("span", null, description)))))),
|
|
6514
6514
|
flyoutVisible && (React.createElement(MenuContext.Provider, { value: { disableHover } },
|
|
6515
6515
|
React.createElement(FlyoutContext.Provider, { value: { direction: flyoutXDirection } }, flyoutMenu))),
|
|
@@ -6517,7 +6517,7 @@ const MenuItemBase = (_a) => {
|
|
|
6517
6517
|
React.createElement(MenuItemContext.Provider, { value: { itemId, isDisabled } },
|
|
6518
6518
|
actions,
|
|
6519
6519
|
isFavorited !== null && (React.createElement(MenuItemAction, { icon: "favorites", isFavorited: isFavorited, "aria-label": isFavorited ? 'starred' : 'not starred', onClick: (event) => onActionClick(event, itemId), tabIndex: -1, actionId: "fav" })))));
|
|
6520
|
-
return (React.createElement("li", Object.assign({ className: css
|
|
6520
|
+
return (React.createElement("li", Object.assign({ className: css(menuStyles.menuListItem, isDisabled && menuStyles.modifiers.disabled, isAriaDisabled && menuStyles.modifiers.ariaDisabled, _isOnPath && menuStyles.modifiers.currentPath, isLoadButton && menuStyles.modifiers.load, isLoading && menuStyles.modifiers.loading, isFocused && 'pf-m-focus', isDanger && menuStyles.modifiers.danger, className), onMouseOver: () => {
|
|
6521
6521
|
if (!isAriaDisabled) {
|
|
6522
6522
|
onMouseOver();
|
|
6523
6523
|
}
|
|
@@ -6529,7 +6529,7 @@ MenuItem.displayName = 'MenuItem';
|
|
|
6529
6529
|
const MenuList = (_a) => {
|
|
6530
6530
|
var { children = null, className, isAriaMultiselectable = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable", 'aria-label']);
|
|
6531
6531
|
const { role } = React.useContext(MenuContext);
|
|
6532
|
-
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css
|
|
6532
|
+
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css(menuStyles.menuList, className), "aria-label": ariaLabel }, props), children));
|
|
6533
6533
|
};
|
|
6534
6534
|
MenuList.displayName = 'MenuList';
|
|
6535
6535
|
|
|
@@ -6584,7 +6584,7 @@ const SelectBase = (_a) => {
|
|
|
6584
6584
|
window.removeEventListener('click', handleClick);
|
|
6585
6585
|
};
|
|
6586
6586
|
}, [isOpen, menuRef, toggleRef, onOpenChange, onOpenChangeKeys]);
|
|
6587
|
-
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css
|
|
6587
|
+
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css(className), ref: menuRef, onSelect: (event, value) => {
|
|
6588
6588
|
onSelect && onSelect(event, value);
|
|
6589
6589
|
shouldFocusToggleOnSelect && toggleRef.current.focus();
|
|
6590
6590
|
}, isPlain: isPlain, selected: selected, isScrollable: isScrollable !== null && isScrollable !== void 0 ? isScrollable : (menuHeight !== undefined || maxMenuHeight !== undefined) }, getOUIAProps(Select.displayName, props.ouiaId !== undefined ? props.ouiaId : getDefaultOUIAId(Select.displayName), props.ouiaSafe !== undefined ? props.ouiaSafe : true), props),
|
|
@@ -6596,13 +6596,13 @@ Select.displayName = 'Select';
|
|
|
6596
6596
|
|
|
6597
6597
|
const SelectList = (_a) => {
|
|
6598
6598
|
var { children, className, isAriaMultiselectable = false } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable"]);
|
|
6599
|
-
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css
|
|
6599
|
+
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css(className) }, props), children));
|
|
6600
6600
|
};
|
|
6601
6601
|
SelectList.displayName = 'SelectList';
|
|
6602
6602
|
|
|
6603
6603
|
const SelectOptionBase = (_a) => {
|
|
6604
6604
|
var { children, className, innerRef, value } = _a, props = __rest$1(_a, ["children", "className", "innerRef", "value"]);
|
|
6605
|
-
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css
|
|
6605
|
+
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css(className) }, props), children));
|
|
6606
6606
|
};
|
|
6607
6607
|
const SelectOption = React__default.forwardRef((props, ref) => (React__default.createElement(SelectOptionBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6608
6608
|
SelectOption.displayName = 'SelectOption';
|
|
@@ -6631,6 +6631,7 @@ var styles$j = {
|
|
|
6631
6631
|
"success": "pf-m-success",
|
|
6632
6632
|
"warning": "pf-m-warning",
|
|
6633
6633
|
"danger": "pf-m-danger",
|
|
6634
|
+
"placeholder": "pf-m-placeholder",
|
|
6634
6635
|
"splitButton": "pf-m-split-button",
|
|
6635
6636
|
"action": "pf-m-action",
|
|
6636
6637
|
"typeahead": "pf-m-typeahead",
|
|
@@ -6670,7 +6671,7 @@ class MenuToggleBase extends React.Component {
|
|
|
6670
6671
|
};
|
|
6671
6672
|
}
|
|
6672
6673
|
render() {
|
|
6673
|
-
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, isFullWidth, splitButtonOptions, variant, status, statusIcon, innerRef, onClick, 'aria-label': ariaLabel, ouiaId, ouiaSafe, size } = _a, otherProps = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "isFullWidth", "splitButtonOptions", "variant", "status", "statusIcon", "innerRef", "onClick", 'aria-label', "ouiaId", "ouiaSafe", "size"]);
|
|
6674
|
+
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, isFullWidth, isPlaceholder, splitButtonOptions, variant, status, statusIcon, innerRef, onClick, 'aria-label': ariaLabel, ouiaId, ouiaSafe, size } = _a, otherProps = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "isFullWidth", "isPlaceholder", "splitButtonOptions", "variant", "status", "statusIcon", "innerRef", "onClick", 'aria-label', "ouiaId", "ouiaSafe", "size"]);
|
|
6674
6675
|
const isPlain = variant === 'plain';
|
|
6675
6676
|
const isPlainText = variant === 'plainText';
|
|
6676
6677
|
const isTypeahead = variant === 'typeahead';
|
|
@@ -6689,28 +6690,28 @@ class MenuToggleBase extends React.Component {
|
|
|
6689
6690
|
break;
|
|
6690
6691
|
}
|
|
6691
6692
|
}
|
|
6692
|
-
const toggleControls = (React.createElement("span", { className: css
|
|
6693
|
-
status !== undefined && React.createElement("span", { className: css
|
|
6694
|
-
React.createElement("span", { className: css
|
|
6693
|
+
const toggleControls = (React.createElement("span", { className: css(styles$j.menuToggleControls) },
|
|
6694
|
+
status !== undefined && React.createElement("span", { className: css(styles$j.menuToggleStatusIcon) }, _statusIcon),
|
|
6695
|
+
React.createElement("span", { className: css(styles$j.menuToggleToggleIcon) },
|
|
6695
6696
|
React.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
6696
6697
|
const content = (React.createElement(React.Fragment, null,
|
|
6697
|
-
icon && React.createElement("span", { className: css
|
|
6698
|
-
isTypeahead ? children : children && React.createElement("span", { className: css
|
|
6699
|
-
React.isValidElement(badge) && React.createElement("span", { className: css
|
|
6700
|
-
isTypeahead ? (React.createElement("button", Object.assign({ type: "button", className: css
|
|
6701
|
-
const commonStyles = css
|
|
6698
|
+
icon && React.createElement("span", { className: css(styles$j.menuToggleIcon) }, icon),
|
|
6699
|
+
isTypeahead ? children : children && React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
|
|
6700
|
+
React.isValidElement(badge) && React.createElement("span", { className: css(styles$j.menuToggleCount) }, badge),
|
|
6701
|
+
isTypeahead ? (React.createElement("button", Object.assign({ type: "button", className: css(styles$j.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": ariaLabel || 'Menu toggle', tabIndex: -1 }, ouiaProps), toggleControls)) : (!isPlain && toggleControls)));
|
|
6702
|
+
const commonStyles = css(styles$j.menuToggle, isExpanded && styles$j.modifiers.expanded, variant === 'primary' && styles$j.modifiers.primary, variant === 'secondary' && styles$j.modifiers.secondary, status && styles$j.modifiers[status], (isPlain || isPlainText) && styles$j.modifiers.plain, isPlainText && 'pf-m-text', isFullHeight && styles$j.modifiers.fullHeight, isFullWidth && styles$j.modifiers.fullWidth, isDisabled && styles$j.modifiers.disabled, isPlaceholder && styles$j.modifiers.placeholder, size === MenuToggleSize.sm && styles$j.modifiers.small, className);
|
|
6702
6703
|
const componentProps = Object.assign(Object.assign({ children: content }, (isDisabled && { disabled: true })), otherProps);
|
|
6703
6704
|
if (isTypeahead) {
|
|
6704
|
-
return (React.createElement("div", Object.assign({ ref: innerRef, className: css
|
|
6705
|
+
return (React.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
|
|
6705
6706
|
}
|
|
6706
6707
|
if (splitButtonOptions) {
|
|
6707
|
-
return (React.createElement("div", { ref: innerRef, className: css
|
|
6708
|
+
return (React.createElement("div", { ref: innerRef, className: css(commonStyles, styles$j.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$j.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
|
|
6708
6709
|
splitButtonOptions.items,
|
|
6709
|
-
React.createElement("button", Object.assign({ className: css
|
|
6710
|
-
children && React.createElement("span", { className: css
|
|
6710
|
+
React.createElement("button", Object.assign({ className: css(styles$j.menuToggleButton, children && styles$j.modifiers.text), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick }, otherProps, ouiaProps),
|
|
6711
|
+
children && React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
|
|
6711
6712
|
toggleControls)));
|
|
6712
6713
|
}
|
|
6713
|
-
return (React.createElement("button", Object.assign({ className: css
|
|
6714
|
+
return (React.createElement("button", Object.assign({ className: css(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps, ouiaProps)));
|
|
6714
6715
|
}
|
|
6715
6716
|
}
|
|
6716
6717
|
MenuToggleBase.defaultProps = {
|
|
@@ -6719,6 +6720,7 @@ MenuToggleBase.defaultProps = {
|
|
|
6719
6720
|
isDisabled: false,
|
|
6720
6721
|
isFullWidth: false,
|
|
6721
6722
|
isFullHeight: false,
|
|
6723
|
+
isPlaceholder: false,
|
|
6722
6724
|
size: 'default',
|
|
6723
6725
|
ouiaSafe: true
|
|
6724
6726
|
};
|
|
@@ -6741,7 +6743,7 @@ const InputGroupBase = (_a) => {
|
|
|
6741
6743
|
var { className, children, innerRef } = _a, props = __rest$1(_a, ["className", "children", "innerRef"]);
|
|
6742
6744
|
const ref = React.useRef(null);
|
|
6743
6745
|
const inputGroupRef = innerRef || ref;
|
|
6744
|
-
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css
|
|
6746
|
+
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$i.inputGroup, className) }, props), children));
|
|
6745
6747
|
};
|
|
6746
6748
|
InputGroupBase.displayName = 'InputGroupBase';
|
|
6747
6749
|
const InputGroup = React.forwardRef((props, ref) => (React.createElement(InputGroupBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -6749,7 +6751,7 @@ InputGroup.displayName = 'InputGroup';
|
|
|
6749
6751
|
|
|
6750
6752
|
const InputGroupItem = (_a) => {
|
|
6751
6753
|
var { className, children, isFill = false, isBox = false, isPlain, isDisabled } = _a, props = __rest$1(_a, ["className", "children", "isFill", "isBox", "isPlain", "isDisabled"]);
|
|
6752
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6754
|
+
return (React.createElement("div", Object.assign({ className: css(styles$i.inputGroupItem, isFill && styles$i.modifiers.fill, isBox && styles$i.modifiers.box, isPlain && styles$i.modifiers.plain, isDisabled && styles$i.modifiers.disabled, className) }, props), children));
|
|
6753
6755
|
};
|
|
6754
6756
|
InputGroupItem.displayName = 'InputGroupItem';
|
|
6755
6757
|
|
|
@@ -6815,13 +6817,13 @@ const Card = (_a) => {
|
|
|
6815
6817
|
}
|
|
6816
6818
|
const getSelectableModifiers = () => {
|
|
6817
6819
|
if (isSelectable && isClickable) {
|
|
6818
|
-
return css
|
|
6820
|
+
return css(styles$h.modifiers.selectable, styles$h.modifiers.clickable, (isSelected || isClicked) && styles$h.modifiers.current);
|
|
6819
6821
|
}
|
|
6820
6822
|
if (isSelectable) {
|
|
6821
|
-
return css
|
|
6823
|
+
return css(styles$h.modifiers.selectable, isSelected && styles$h.modifiers.selected);
|
|
6822
6824
|
}
|
|
6823
6825
|
if (isClickable) {
|
|
6824
|
-
return css
|
|
6826
|
+
return css(styles$h.modifiers.clickable, isClicked && styles$h.modifiers.current);
|
|
6825
6827
|
}
|
|
6826
6828
|
return '';
|
|
6827
6829
|
};
|
|
@@ -6834,21 +6836,21 @@ const Card = (_a) => {
|
|
|
6834
6836
|
isClicked,
|
|
6835
6837
|
isDisabled
|
|
6836
6838
|
} },
|
|
6837
|
-
React.createElement(Component, Object.assign({ id: id, className: css
|
|
6839
|
+
React.createElement(Component, Object.assign({ id: id, className: css(styles$h.card, isCompact && styles$h.modifiers.compact, isExpanded && styles$h.modifiers.expanded, isLarge && styles$h.modifiers.displayLg, isFullHeight && styles$h.modifiers.fullHeight, isPlain && styles$h.modifiers.plain, variant === 'secondary' && styles$h.modifiers.secondary, getSelectableModifiers(), isDisabled && styles$h.modifiers.disabled, className) }, props, ouiaProps), children)));
|
|
6838
6840
|
};
|
|
6839
6841
|
Card.displayName = 'Card';
|
|
6840
6842
|
|
|
6841
6843
|
const CardBody = (_a) => {
|
|
6842
6844
|
var { children, className, component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
6843
6845
|
const Component = component;
|
|
6844
|
-
return (React.createElement(Component, Object.assign({ className: css
|
|
6846
|
+
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardBody, !isFilled && styles$h.modifiers.noFill, className) }, props), children));
|
|
6845
6847
|
};
|
|
6846
6848
|
CardBody.displayName = 'CardBody';
|
|
6847
6849
|
|
|
6848
6850
|
const CardFooter = (_a) => {
|
|
6849
6851
|
var { children, className, component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6850
6852
|
const Component = component;
|
|
6851
|
-
return (React.createElement(Component, Object.assign({ className: css
|
|
6853
|
+
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardFooter, className) }, props), children));
|
|
6852
6854
|
};
|
|
6853
6855
|
CardFooter.displayName = 'CardFooter';
|
|
6854
6856
|
|
|
@@ -6857,26 +6859,26 @@ const CardTitle = (_a) => {
|
|
|
6857
6859
|
const { cardId } = React.useContext(CardContext);
|
|
6858
6860
|
const Component = component;
|
|
6859
6861
|
const titleId = cardId ? `${cardId}-title` : '';
|
|
6860
|
-
return (React.createElement("div", { className: css
|
|
6861
|
-
React.createElement(Component, Object.assign({ className: css
|
|
6862
|
+
return (React.createElement("div", { className: css(styles$h.cardTitle) },
|
|
6863
|
+
React.createElement(Component, Object.assign({ className: css(styles$h.cardTitleText, className), id: titleId || undefined }, props), children)));
|
|
6862
6864
|
};
|
|
6863
6865
|
CardTitle.displayName = 'CardTitle';
|
|
6864
6866
|
|
|
6865
6867
|
const CardHeaderMain = (_a) => {
|
|
6866
6868
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6867
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6869
|
+
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeaderMain, className) }, props), children));
|
|
6868
6870
|
};
|
|
6869
6871
|
CardHeaderMain.displayName = 'CardHeaderMain';
|
|
6870
6872
|
|
|
6871
6873
|
const CardActions = (_a) => {
|
|
6872
6874
|
var { children, className, hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
6873
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6875
|
+
return (React.createElement("div", Object.assign({ className: css(styles$h.cardActions, hasNoOffset && styles$h.modifiers.noOffset, className) }, props), children));
|
|
6874
6876
|
};
|
|
6875
6877
|
CardActions.displayName = 'CardActions';
|
|
6876
6878
|
|
|
6877
6879
|
const CardSelectableActions = (_a) => {
|
|
6878
6880
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6879
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6881
|
+
return (React.createElement("div", Object.assign({ className: css(styles$h.cardSelectableActions, className) }, props), children));
|
|
6880
6882
|
};
|
|
6881
6883
|
CardSelectableActions.displayName = 'CardSelectableActions';
|
|
6882
6884
|
|
|
@@ -6914,19 +6916,19 @@ class Radio extends React.Component {
|
|
|
6914
6916
|
// eslint-disable-next-line no-console
|
|
6915
6917
|
console.error('Radio:', 'id is required to make input accessible');
|
|
6916
6918
|
}
|
|
6917
|
-
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css
|
|
6919
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css(styles$g.radioInput, inputClassName), type: "radio", onChange: this.handleChange, "aria-invalid": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), getOUIAProps(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
6918
6920
|
const wrapWithLabel = (isLabelWrapped && !component) || component === 'label';
|
|
6919
6921
|
const Label = wrapWithLabel ? 'span' : 'label';
|
|
6920
|
-
const labelRendered = label ? (React.createElement(Label, { className: css
|
|
6922
|
+
const labelRendered = label ? (React.createElement(Label, { className: css(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined }, label)) : null;
|
|
6921
6923
|
const Component = component !== null && component !== void 0 ? component : (wrapWithLabel ? 'label' : 'div');
|
|
6922
|
-
return (React.createElement(Component, { className: css
|
|
6924
|
+
return (React.createElement(Component, { className: css(styles$g.radio, !label && styles$g.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
6923
6925
|
labelPosition === 'start' ? (React.createElement(React.Fragment, null,
|
|
6924
6926
|
labelRendered,
|
|
6925
6927
|
inputRendered)) : (React.createElement(React.Fragment, null,
|
|
6926
6928
|
inputRendered,
|
|
6927
6929
|
labelRendered)),
|
|
6928
|
-
description && React.createElement("span", { className: css
|
|
6929
|
-
body && React.createElement("span", { className: css
|
|
6930
|
+
description && React.createElement("span", { className: css(styles$g.radioDescription) }, description),
|
|
6931
|
+
body && React.createElement("span", { className: css(styles$g.radioBody) }, body)));
|
|
6930
6932
|
}
|
|
6931
6933
|
}
|
|
6932
6934
|
Radio.displayName = 'Radio';
|
|
@@ -6939,51 +6941,47 @@ Radio.defaultProps = {
|
|
|
6939
6941
|
|
|
6940
6942
|
const CardHeader = (_a) => {
|
|
6941
6943
|
var { children, className, actions, selectableActions, id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "actions", "selectableActions", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
+
const uniqueId = React.useId();
|
|
6945
|
+
return (React.createElement(CardContext.Consumer, null, ({ cardId, isClickable, isSelectable, isSelected, isDisabled: isCardDisabled }) => {
|
|
6946
|
+
const cardHeaderToggle = (React.createElement("div", { className: css(styles$h.cardHeaderToggle) },
|
|
6944
6947
|
React.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: (evt) => {
|
|
6945
6948
|
onExpand(evt, cardId);
|
|
6946
|
-
} }, toggleButtonProps, { icon: React.createElement("span", { className: css
|
|
6949
|
+
} }, toggleButtonProps, { icon: React.createElement("span", { className: css(styles$h.cardHeaderToggleIcon) },
|
|
6947
6950
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })) }))));
|
|
6948
6951
|
const isClickableOrSelectableOnly = (isClickable && !isSelectable) || (isSelectable && !isClickable);
|
|
6949
6952
|
if ((actions === null || actions === void 0 ? void 0 : actions.actions) && isClickableOrSelectableOnly) {
|
|
6950
6953
|
// eslint-disable-next-line no-console
|
|
6951
|
-
console.
|
|
6954
|
+
console.error(`Card: ${isClickable ? 'Clickable' : 'Selectable'} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);
|
|
6952
6955
|
}
|
|
6953
|
-
const
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6956
|
+
const isClickableOnlyCard = isClickable && !isSelectable;
|
|
6957
|
+
if ((isClickableOnlyCard || isSelectable) &&
|
|
6958
|
+
!(selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.selectableActionAriaLabel) &&
|
|
6959
|
+
!(selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.selectableActionAriaLabelledby)) {
|
|
6960
|
+
// eslint-disable-next-line no-console
|
|
6961
|
+
console.error(`Card: ${isClickableOnlyCard ? 'Clickable-only cards' : 'Cards with a selectable input'} must have either the selectableActions.selectableActionAriaLabel or selectableActions.selectableActionAriaLabelledby prop passed in order to provide an accessible name to the clickable element.`);
|
|
6962
|
+
}
|
|
6963
|
+
const SelectableCardInput = (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.variant) === 'single' ? Radio : Checkbox;
|
|
6964
|
+
const getSelectableProps = () => {
|
|
6965
|
+
var _a, _b;
|
|
6966
|
+
return (Object.assign({ className: 'pf-m-standalone', label: React.createElement(React.Fragment, null), 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby, id: (_a = selectableActions.selectableActionId) !== null && _a !== void 0 ? _a : `card-selectable-${uniqueId}`, name: selectableActions.name, isDisabled: isCardDisabled, onChange: selectableActions.onChange, isChecked: (_b = selectableActions.isChecked) !== null && _b !== void 0 ? _b : isSelected }, selectableActions.selectableActionProps));
|
|
6960
6967
|
};
|
|
6961
|
-
const
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
'aria-
|
|
6968
|
-
'aria-labelledby': selectableActions.selectableActionAriaLabelledby,
|
|
6969
|
-
id: selectableActions.selectableActionId,
|
|
6970
|
-
name: selectableActions.name,
|
|
6971
|
-
isDisabled: isCardDisabled
|
|
6972
|
-
};
|
|
6973
|
-
const isSelectableInputChecked = (_a = selectableActions.isChecked) !== null && _a !== void 0 ? _a : isSelected;
|
|
6974
|
-
if (isClickable && !isSelectable) {
|
|
6975
|
-
return Object.assign(Object.assign({}, baseProps), { onClick: handleActionClick, isChecked: isClicked });
|
|
6968
|
+
const isClickableLinkCard = (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.to) !== undefined;
|
|
6969
|
+
const ClickableCardComponent = isClickableLinkCard ? 'a' : 'button';
|
|
6970
|
+
const getClickableProps = () => {
|
|
6971
|
+
const isDisabledLinkCard = isCardDisabled && isClickableLinkCard;
|
|
6972
|
+
const baseProps = Object.assign({ className: css('pf-v6-c-card__clickable-action', isDisabledLinkCard && styles$h.modifiers.disabled), id: selectableActions.selectableActionId, 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby }, selectableActions.selectableActionProps);
|
|
6973
|
+
if (isClickableLinkCard) {
|
|
6974
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseProps), { href: selectableActions.to }), (isCardDisabled && { tabIndex: -1, 'aria-disabled': true })), (selectableActions.isExternalLink && { target: '_blank' }));
|
|
6976
6975
|
}
|
|
6977
|
-
|
|
6978
|
-
return Object.assign(Object.assign({}, baseProps), { onChange: selectableActions.onChange, isChecked: isSelectableInputChecked });
|
|
6979
|
-
}
|
|
6980
|
-
return baseProps;
|
|
6976
|
+
return Object.assign(Object.assign({}, baseProps), { type: 'button', disabled: isCardDisabled, onClick: selectableActions.onClickAction });
|
|
6981
6977
|
};
|
|
6982
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
6978
|
+
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeader, isToggleRightAligned && styles$h.modifiers.toggleRight, className), id: id }, props),
|
|
6983
6979
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
6984
6980
|
(actions || (selectableActions && (isClickable || isSelectable))) && (React.createElement(CardActions, { className: actions === null || actions === void 0 ? void 0 : actions.className, hasNoOffset: (actions === null || actions === void 0 ? void 0 : actions.hasNoOffset) || (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.hasNoOffset) }, actions === null || actions === void 0 ? void 0 :
|
|
6985
6981
|
actions.actions,
|
|
6986
|
-
selectableActions && (isClickable || isSelectable) && (React.createElement(CardSelectableActions, { className: selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.className },
|
|
6982
|
+
selectableActions && (isClickable || isSelectable) && (React.createElement(CardSelectableActions, { className: selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.className },
|
|
6983
|
+
isSelectable && React.createElement(SelectableCardInput, Object.assign({}, getSelectableProps())),
|
|
6984
|
+
isClickableOnlyCard && React.createElement(ClickableCardComponent, Object.assign({}, getClickableProps())))))),
|
|
6987
6985
|
children && React.createElement(CardHeaderMain, null, children),
|
|
6988
6986
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
6989
6987
|
}));
|
|
@@ -7001,10 +6999,10 @@ var styles$f = {
|
|
|
7001
6999
|
|
|
7002
7000
|
const CodeBlock = (_a) => {
|
|
7003
7001
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
7004
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7005
|
-
actions && (React.createElement("div", { className: css
|
|
7006
|
-
React.createElement("div", { className: css
|
|
7007
|
-
React.createElement("div", { className: css
|
|
7002
|
+
return (React.createElement("div", Object.assign({ className: css(styles$f.codeBlock, className) }, props),
|
|
7003
|
+
actions && (React.createElement("div", { className: css(styles$f.codeBlockHeader) },
|
|
7004
|
+
React.createElement("div", { className: css(styles$f.codeBlockActions) }, actions))),
|
|
7005
|
+
React.createElement("div", { className: css(styles$f.codeBlockContent) }, children)));
|
|
7008
7006
|
};
|
|
7009
7007
|
CodeBlock.displayName = 'CodeBlock';
|
|
7010
7008
|
|
|
@@ -7030,33 +7028,33 @@ var ContentVariants;
|
|
|
7030
7028
|
ContentVariants["dd"] = "dd";
|
|
7031
7029
|
})(ContentVariants || (ContentVariants = {}));
|
|
7032
7030
|
const componentStyles = {
|
|
7033
|
-
div: styles$
|
|
7034
|
-
h1: styles$
|
|
7035
|
-
h2: styles$
|
|
7036
|
-
h3: styles$
|
|
7037
|
-
h4: styles$
|
|
7038
|
-
h5: styles$
|
|
7039
|
-
h6: styles$
|
|
7040
|
-
p: styles$
|
|
7041
|
-
a: styles$
|
|
7042
|
-
small: styles$
|
|
7043
|
-
blockquote: styles$
|
|
7044
|
-
pre: styles$
|
|
7045
|
-
hr: styles$
|
|
7046
|
-
ul: styles$
|
|
7047
|
-
ol: styles$
|
|
7048
|
-
dl: styles$
|
|
7049
|
-
li: styles$
|
|
7050
|
-
dt: styles$
|
|
7051
|
-
dd: styles$
|
|
7031
|
+
div: styles$w.content,
|
|
7032
|
+
h1: styles$w.contentH1,
|
|
7033
|
+
h2: styles$w.contentH2,
|
|
7034
|
+
h3: styles$w.contentH3,
|
|
7035
|
+
h4: styles$w.contentH4,
|
|
7036
|
+
h5: styles$w.contentH5,
|
|
7037
|
+
h6: styles$w.contentH6,
|
|
7038
|
+
p: styles$w.contentP,
|
|
7039
|
+
a: styles$w.contentA,
|
|
7040
|
+
small: styles$w.contentSmall,
|
|
7041
|
+
blockquote: styles$w.contentBlockquote,
|
|
7042
|
+
pre: styles$w.contentPre,
|
|
7043
|
+
hr: styles$w.contentHr,
|
|
7044
|
+
ul: styles$w.contentUl,
|
|
7045
|
+
ol: styles$w.contentOl,
|
|
7046
|
+
dl: styles$w.contentDl,
|
|
7047
|
+
li: styles$w.contentLi,
|
|
7048
|
+
dt: styles$w.contentDt,
|
|
7049
|
+
dd: styles$w.contentDd
|
|
7052
7050
|
};
|
|
7053
7051
|
const Content = (_a) => {
|
|
7054
|
-
var { children, className = '', component, isPlainList = false, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isPlainList", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
7052
|
+
var { children, className = '', component, isPlainList = false, isVisitedLink = false, ouiaId, ouiaSafe = true, isEditorial = false } = _a, props = __rest$1(_a, ["children", "className", "component", "isPlainList", "isVisitedLink", "ouiaId", "ouiaSafe", "isEditorial"]);
|
|
7055
7053
|
const wrappingComponent = component !== null && component !== void 0 ? component : 'div';
|
|
7056
7054
|
const Component = wrappingComponent;
|
|
7057
7055
|
const ouiaProps = useOUIAProps(Content.displayName, ouiaId, ouiaSafe);
|
|
7058
7056
|
const isList = ['ul', 'ol', 'dl'].includes(wrappingComponent);
|
|
7059
|
-
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css
|
|
7057
|
+
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(componentStyles[wrappingComponent], isList && isPlainList && styles$w.modifiers.plain, isVisitedLink && styles$w.modifiers.visited, isEditorial && styles$w.modifiers.editorial, className) }), children));
|
|
7060
7058
|
};
|
|
7061
7059
|
Content.displayName = 'Content';
|
|
7062
7060
|
|
|
@@ -7098,33 +7096,33 @@ const PopoverContext = React.createContext({});
|
|
|
7098
7096
|
|
|
7099
7097
|
const PopoverContent = (_a) => {
|
|
7100
7098
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7101
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7099
|
+
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverContent, className) }, props), children));
|
|
7102
7100
|
};
|
|
7103
7101
|
PopoverContent.displayName = 'PopoverContent';
|
|
7104
7102
|
|
|
7105
7103
|
const PopoverBody = (_a) => {
|
|
7106
7104
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
7107
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7105
|
+
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverBody, className), id: id }, props), children));
|
|
7108
7106
|
};
|
|
7109
7107
|
PopoverBody.displayName = 'PopoverBody';
|
|
7110
7108
|
|
|
7111
7109
|
const PopoverHeaderIcon = (_a) => {
|
|
7112
7110
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7113
|
-
return (React.createElement("span", Object.assign({ className: css
|
|
7111
|
+
return (React.createElement("span", Object.assign({ className: css(styles$e.popoverTitleIcon, className) }, props), children));
|
|
7114
7112
|
};
|
|
7115
7113
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
7116
7114
|
|
|
7117
7115
|
const PopoverHeaderText = (_a) => {
|
|
7118
7116
|
var { children, className, headingLevel } = _a, props = __rest$1(_a, ["children", "className", "headingLevel"]);
|
|
7119
7117
|
const HeadingLevel = headingLevel;
|
|
7120
|
-
return (React.createElement(HeadingLevel, Object.assign({ className: css
|
|
7118
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: css(styles$e.popoverTitleText, className) }, props), children));
|
|
7121
7119
|
};
|
|
7122
7120
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
7123
7121
|
|
|
7124
7122
|
const PopoverHeader = (_a) => {
|
|
7125
7123
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
7126
|
-
return (React.createElement("header", Object.assign({ className: css
|
|
7127
|
-
React.createElement("div", { className: css
|
|
7124
|
+
return (React.createElement("header", Object.assign({ className: css(styles$e.popoverHeader, className) }, props),
|
|
7125
|
+
React.createElement("div", { className: css(styles$e.popoverTitle), id: id },
|
|
7128
7126
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
7129
7127
|
React.createElement(PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
7130
7128
|
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-v6-screen-reader" }, alertSeverityScreenReaderText)),
|
|
@@ -7134,20 +7132,20 @@ PopoverHeader.displayName = 'PopoverHeader';
|
|
|
7134
7132
|
|
|
7135
7133
|
const PopoverFooter = (_a) => {
|
|
7136
7134
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7137
|
-
return (React.createElement("footer", Object.assign({ className: css
|
|
7135
|
+
return (React.createElement("footer", Object.assign({ className: css(styles$e.popoverFooter, className) }, props), children));
|
|
7138
7136
|
};
|
|
7139
7137
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
7140
7138
|
|
|
7141
7139
|
const PopoverCloseButton = (_a) => {
|
|
7142
7140
|
var { onClose = () => undefined } = _a, props = __rest$1(_a, ["onClose"]);
|
|
7143
|
-
return (React.createElement("div", { className: css
|
|
7141
|
+
return (React.createElement("div", { className: css(styles$e.popoverClose) },
|
|
7144
7142
|
React.createElement(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' }, icon: React.createElement(TimesIcon, null) }))));
|
|
7145
7143
|
};
|
|
7146
7144
|
PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
7147
7145
|
|
|
7148
7146
|
const PopoverArrow = (_a) => {
|
|
7149
7147
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
7150
|
-
return React.createElement("div", Object.assign({ className: css
|
|
7148
|
+
return React.createElement("div", Object.assign({ className: css(styles$e.popoverArrow, className) }, props));
|
|
7151
7149
|
};
|
|
7152
7150
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
7153
7151
|
|
|
@@ -7362,7 +7360,7 @@ const Popover = (_a) => {
|
|
|
7362
7360
|
}
|
|
7363
7361
|
return node;
|
|
7364
7362
|
}
|
|
7365
|
-
}, preventScrollOnDeactivate: true, className: css
|
|
7363
|
+
}, preventScrollOnDeactivate: true, className: css(styles$e.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$e.modifiers.noPadding, hasAutoWidth && styles$e.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
|
|
7366
7364
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
7367
7365
|
maxWidth: hasCustomMaxWidth ? maxWidth : null
|
|
7368
7366
|
} }, rest),
|
|
@@ -7463,7 +7461,7 @@ var DividerVariant;
|
|
|
7463
7461
|
const Divider = (_a) => {
|
|
7464
7462
|
var { className, component = DividerVariant.hr, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "inset", "orientation"]);
|
|
7465
7463
|
const Component = component;
|
|
7466
|
-
return (React.createElement(Component, Object.assign({ className: css
|
|
7464
|
+
return (React.createElement(Component, Object.assign({ className: css(dividerStyles.divider, formatBreakpointMods(inset, dividerStyles), formatBreakpointMods(orientation, dividerStyles), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
7467
7465
|
};
|
|
7468
7466
|
Divider.displayName = 'Divider';
|
|
7469
7467
|
|
|
@@ -7551,27 +7549,26 @@ const Drawer = (_a) => {
|
|
|
7551
7549
|
const drawerRef = React.useRef();
|
|
7552
7550
|
const drawerContentRef = React.useRef();
|
|
7553
7551
|
return (React.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
7554
|
-
React.createElement("div", Object.assign({ className: css
|
|
7552
|
+
React.createElement("div", Object.assign({ className: css(styles$d.drawer, isExpanded && styles$d.modifiers.expanded, isInline && styles$d.modifiers.inline, isStatic && styles$d.modifiers.static, (position === 'left' || position === 'start') && styles$d.modifiers.panelLeft, position === 'bottom' && styles$d.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
7555
7553
|
};
|
|
7556
7554
|
Drawer.displayName = 'Drawer';
|
|
7557
7555
|
|
|
7558
7556
|
const DrawerActions = (_a) => {
|
|
7559
7557
|
var { className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7560
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7558
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerActions, className) }, props), children));
|
|
7561
7559
|
};
|
|
7562
7560
|
DrawerActions.displayName = 'DrawerActions';
|
|
7563
7561
|
|
|
7564
7562
|
const DrawerCloseButton = (_a) => {
|
|
7565
7563
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
7566
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7567
|
-
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel }
|
|
7568
|
-
React.createElement(TimesIcon, null))));
|
|
7564
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerClose, className) }, props),
|
|
7565
|
+
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel, icon: React.createElement(TimesIcon, null) })));
|
|
7569
7566
|
};
|
|
7570
7567
|
DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
7571
7568
|
|
|
7572
7569
|
const DrawerMain = (_a) => {
|
|
7573
7570
|
var { className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7574
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7571
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerMain, className) }, props), children));
|
|
7575
7572
|
};
|
|
7576
7573
|
DrawerMain.displayName = 'DrawerMain';
|
|
7577
7574
|
|
|
@@ -7585,26 +7582,26 @@ const DrawerContent = (_a) => {
|
|
|
7585
7582
|
var { className, children, panelContent, colorVariant = DrawerContentColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
7586
7583
|
const { drawerContentRef } = React.useContext(DrawerContext);
|
|
7587
7584
|
return (React.createElement(DrawerMain, null,
|
|
7588
|
-
React.createElement("div", Object.assign({ className: css
|
|
7585
|
+
React.createElement("div", Object.assign({ className: css(styles$d.drawerContent, colorVariant === DrawerContentColorVariant.primary && styles$d.modifiers.primary, colorVariant === DrawerContentColorVariant.secondary && styles$d.modifiers.secondary, className), ref: drawerContentRef }, props), children),
|
|
7589
7586
|
panelContent));
|
|
7590
7587
|
};
|
|
7591
7588
|
DrawerContent.displayName = 'DrawerContent';
|
|
7592
7589
|
|
|
7593
7590
|
const DrawerContentBody = (_a) => {
|
|
7594
7591
|
var { className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
7595
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7592
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerBody, hasPadding && styles$d.modifiers.padding, className) }, props), children));
|
|
7596
7593
|
};
|
|
7597
7594
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
7598
7595
|
|
|
7599
7596
|
const DrawerHead = (_a) => {
|
|
7600
7597
|
var { className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7601
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7598
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerHead, className) }, props), children));
|
|
7602
7599
|
};
|
|
7603
7600
|
DrawerHead.displayName = 'DrawerHead';
|
|
7604
7601
|
|
|
7605
7602
|
const DrawerPanelBody = (_a) => {
|
|
7606
7603
|
var { className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
7607
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
7604
|
+
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerBody, hasNoPadding && styles$d.modifiers.noPadding, className) }, props), children));
|
|
7608
7605
|
};
|
|
7609
7606
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
7610
7607
|
|
|
@@ -7729,7 +7726,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7729
7726
|
e.preventDefault();
|
|
7730
7727
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
7731
7728
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
7732
|
-
drawerRef.current.classList.add(css
|
|
7729
|
+
drawerRef.current.classList.add(css(styles$d.modifiers.resizing));
|
|
7733
7730
|
isResizing = true;
|
|
7734
7731
|
setInitialVals = true;
|
|
7735
7732
|
};
|
|
@@ -7784,7 +7781,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7784
7781
|
if (!isResizing) {
|
|
7785
7782
|
return;
|
|
7786
7783
|
}
|
|
7787
|
-
drawerRef.current.classList.remove(css
|
|
7784
|
+
drawerRef.current.classList.remove(css(styles$d.modifiers.resizing));
|
|
7788
7785
|
isResizing = false;
|
|
7789
7786
|
onResize && onResize(e, currWidth, id);
|
|
7790
7787
|
setInitialVals = true;
|
|
@@ -7895,7 +7892,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7895
7892
|
escapeDeactivates: false
|
|
7896
7893
|
}
|
|
7897
7894
|
};
|
|
7898
|
-
return (React.createElement(Component, Object.assign({}, (isValidFocusTrap && focusTrapProps), { id: id || panelId, className: css
|
|
7895
|
+
return (React.createElement(Component, Object.assign({}, (isValidFocusTrap && focusTrapProps), { id: id || panelId, className: css(styles$d.drawerPanel, isResizable && styles$d.modifiers.resizable, hasNoBorder && styles$d.modifiers.noBorder, formatBreakpointMods(widths, styles$d), colorVariant === DrawerColorVariant.noBackground && styles$d.modifiers.noBackground, colorVariant === DrawerColorVariant.secondary && styles$d.modifiers.secondary, className), onTransitionEnd: (ev) => {
|
|
7899
7896
|
if (ev.target === panel.current) {
|
|
7900
7897
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
7901
7898
|
onExpand(ev);
|
|
@@ -7909,9 +7906,9 @@ const DrawerPanelContent = (_a) => {
|
|
|
7909
7906
|
style: boundaryCssVars
|
|
7910
7907
|
}), props, { ref: panel }), isExpandedInternal && (React.createElement(React.Fragment, null,
|
|
7911
7908
|
isResizable && (React.createElement(React.Fragment, null,
|
|
7912
|
-
React.createElement("div", { className: css
|
|
7913
|
-
React.createElement("div", { className: css
|
|
7914
|
-
React.createElement("div", { className: css
|
|
7909
|
+
React.createElement("div", { className: css(styles$d.drawerSplitter, position !== 'bottom' && styles$d.modifiers.vertical), role: "separator", tabIndex: 0, "aria-orientation": position === 'bottom' ? 'horizontal' : 'vertical', "aria-label": resizeAriaLabel, "aria-valuenow": separatorValue, "aria-valuemin": 0, "aria-valuemax": 100, "aria-controls": id || panelId, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart, ref: splitterRef },
|
|
7910
|
+
React.createElement("div", { className: css(styles$d.drawerSplitterHandle), "aria-hidden": true })),
|
|
7911
|
+
React.createElement("div", { className: css(styles$d.drawerPanelMain) }, children))),
|
|
7915
7912
|
!isResizable && children))));
|
|
7916
7913
|
}));
|
|
7917
7914
|
};
|
|
@@ -7951,9 +7948,9 @@ var styles$c = {
|
|
|
7951
7948
|
const Icon = (_a) => {
|
|
7952
7949
|
var { children, className, progressIcon, size, iconSize, progressIconSize, status, isInline = false, isInProgress = false, defaultProgressArialabel = 'Loading...', shouldMirrorRTL = false } = _a, props = __rest$1(_a, ["children", "className", "progressIcon", "size", "iconSize", "progressIconSize", "status", "isInline", "isInProgress", "defaultProgressArialabel", "shouldMirrorRTL"]);
|
|
7953
7950
|
const _progressIcon = progressIcon !== null && progressIcon !== void 0 ? progressIcon : React.createElement(Spinner, { diameter: "1em", "aria-label": defaultProgressArialabel });
|
|
7954
|
-
return (React.createElement("span", Object.assign({ className: css
|
|
7955
|
-
React.createElement("span", { className: css
|
|
7956
|
-
isInProgress && (React.createElement("span", { className: css
|
|
7951
|
+
return (React.createElement("span", Object.assign({ className: css(styles$c.icon, isInline && styles$c.modifiers.inline, isInProgress && styles$c.modifiers.inProgress, styles$c.modifiers[size], className) }, props),
|
|
7952
|
+
React.createElement("span", { className: css(styles$c.iconContent, styles$c.modifiers[iconSize], styles$c.modifiers[status], shouldMirrorRTL && 'pf-v6-m-mirror-inline-rtl') }, children),
|
|
7953
|
+
isInProgress && (React.createElement("span", { className: css(styles$c.iconProgress, styles$c.modifiers[progressIconSize], className) }, _progressIcon))));
|
|
7957
7954
|
};
|
|
7958
7955
|
Icon.displayName = 'Icon';
|
|
7959
7956
|
|
|
@@ -8043,10 +8040,10 @@ var styles$b = {
|
|
|
8043
8040
|
|
|
8044
8041
|
const ActionGroup = (_a) => {
|
|
8045
8042
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8046
|
-
const customClassName = css
|
|
8047
|
-
const formActionsComponent = React.createElement("div", { className: css
|
|
8043
|
+
const customClassName = css(styles$b.formGroup, styles$b.modifiers.action, className);
|
|
8044
|
+
const formActionsComponent = React.createElement("div", { className: css(styles$b.formActions) }, children);
|
|
8048
8045
|
return (React.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
8049
|
-
React.createElement("div", { className: css
|
|
8046
|
+
React.createElement("div", { className: css(styles$b.formGroupControl) }, formActionsComponent)));
|
|
8050
8047
|
};
|
|
8051
8048
|
ActionGroup.displayName = 'ActionGroup';
|
|
8052
8049
|
|
|
@@ -8060,7 +8057,7 @@ const FormBase = (_a) => {
|
|
|
8060
8057
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
8061
8058
|
return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
8062
8059
|
style: Object.assign({ [c_form_m_limit_width_MaxWidth.name]: maxWidth }, props.style)
|
|
8063
|
-
}), props, { className: css
|
|
8060
|
+
}), props, { className: css(styles$b.form, isHorizontal && styles$b.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$b.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
8064
8061
|
};
|
|
8065
8062
|
const Form = React.forwardRef((props, ref) => React.createElement(FormBase, Object.assign({ innerRef: ref }, props)));
|
|
8066
8063
|
Form.displayName = 'Form';
|
|
@@ -8070,20 +8067,20 @@ const FormGroup = (_a) => {
|
|
|
8070
8067
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
8071
8068
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
8072
8069
|
const labelContent = (React.createElement(React.Fragment, null,
|
|
8073
|
-
React.createElement(LabelComponent, Object.assign({ className: css
|
|
8074
|
-
React.createElement("span", { className: css
|
|
8075
|
-
isRequired && (React.createElement("span", { className: css
|
|
8070
|
+
React.createElement(LabelComponent, Object.assign({ className: css(styles$b.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
8071
|
+
React.createElement("span", { className: css(styles$b.formLabelText) }, label),
|
|
8072
|
+
isRequired && (React.createElement("span", { className: css(styles$b.formLabelRequired), "aria-hidden": "true" },
|
|
8076
8073
|
' ',
|
|
8077
8074
|
ASTERISK))),
|
|
8078
8075
|
React.createElement(React.Fragment, null, "\u00A0\u00A0"),
|
|
8079
8076
|
React.isValidElement(labelHelp) && React.createElement("span", { className: styles$b.formGroupLabelHelp }, labelHelp)));
|
|
8080
|
-
return (React.createElement(GenerateId, null, (randomId) => (React.createElement("div", Object.assign({ className: css
|
|
8081
|
-
label && (React.createElement("div", Object.assign({ className: css
|
|
8077
|
+
return (React.createElement(GenerateId, null, (randomId) => (React.createElement("div", Object.assign({ className: css(styles$b.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
8078
|
+
label && (React.createElement("div", Object.assign({ className: css(styles$b.formGroupLabel, labelInfo && styles$b.modifiers.info, hasNoPaddingTop && styles$b.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
8082
8079
|
labelInfo && (React.createElement(React.Fragment, null,
|
|
8083
|
-
React.createElement("div", { className: css
|
|
8084
|
-
React.createElement("div", { className: css
|
|
8080
|
+
React.createElement("div", { className: css(styles$b.formGroupLabelMain) }, labelContent),
|
|
8081
|
+
React.createElement("div", { className: css(styles$b.formGroupLabelInfo) }, labelInfo))),
|
|
8085
8082
|
!labelInfo && labelContent)),
|
|
8086
|
-
React.createElement("div", { className: css
|
|
8083
|
+
React.createElement("div", { className: css(styles$b.formGroupControl, isInline && styles$b.modifiers.inline, isStack && styles$b.modifiers.stack) }, children)))));
|
|
8087
8084
|
};
|
|
8088
8085
|
FormGroup.displayName = 'FormGroup';
|
|
8089
8086
|
|
|
@@ -8103,7 +8100,7 @@ var styles$a = {
|
|
|
8103
8100
|
|
|
8104
8101
|
const PanelBase = (_a) => {
|
|
8105
8102
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
8106
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8103
|
+
return (React.createElement("div", Object.assign({ className: css(styles$a.panel, variant && styles$a.modifiers[variant], isScrollable && styles$a.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
8107
8104
|
};
|
|
8108
8105
|
const Panel = React.forwardRef((props, ref) => (React.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
8109
8106
|
Panel.displayName = 'Panel';
|
|
@@ -8116,13 +8113,13 @@ const c_panel__main_MaxHeight = {
|
|
|
8116
8113
|
|
|
8117
8114
|
const PanelMain = (_a) => {
|
|
8118
8115
|
var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
|
|
8119
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8116
|
+
return (React.createElement("div", Object.assign({ className: css(styles$a.panelMain, className), style: { [c_panel__main_MaxHeight.name]: maxHeight } }, props), children));
|
|
8120
8117
|
};
|
|
8121
8118
|
PanelMain.displayName = 'PanelMain';
|
|
8122
8119
|
|
|
8123
8120
|
const PanelMainBody = (_a) => {
|
|
8124
8121
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
8125
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8122
|
+
return (React.createElement("div", Object.assign({ className: css(styles$a.panelMainBody, className) }, props), children));
|
|
8126
8123
|
};
|
|
8127
8124
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
8128
8125
|
|
|
@@ -8222,7 +8219,7 @@ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '',
|
|
|
8222
8219
|
React.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (evt, value) => handleValueChange('haswords', value, evt) })))));
|
|
8223
8220
|
return formGroups;
|
|
8224
8221
|
};
|
|
8225
|
-
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css
|
|
8222
|
+
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css(className) },
|
|
8226
8223
|
React.createElement(PanelMain, null,
|
|
8227
8224
|
React.createElement(PanelMainBody, null,
|
|
8228
8225
|
React.createElement(Form, null,
|
|
@@ -8259,35 +8256,43 @@ const TextInputGroupContext = React.createContext({
|
|
|
8259
8256
|
isDisabled: false
|
|
8260
8257
|
});
|
|
8261
8258
|
const TextInputGroup = (_a) => {
|
|
8262
|
-
var { children, className, isDisabled, isPlain, innerRef } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "isPlain", "innerRef"]);
|
|
8259
|
+
var { children, className, isDisabled, isPlain, validated, innerRef } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "isPlain", "validated", "innerRef"]);
|
|
8263
8260
|
const ref = React.useRef(null);
|
|
8264
8261
|
const textInputGroupRef = innerRef || ref;
|
|
8265
|
-
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
8266
|
-
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css
|
|
8262
|
+
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled, validated } },
|
|
8263
|
+
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(textInputGroupStyles.textInputGroup, isDisabled && textInputGroupStyles.modifiers.disabled, isPlain && textInputGroupStyles.modifiers.plain, validated && textInputGroupStyles.modifiers[validated], className) }, props), children)));
|
|
8267
8264
|
};
|
|
8268
8265
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
8269
8266
|
|
|
8267
|
+
const TextInputGroupIcon = (_a) => {
|
|
8268
|
+
var { children, className, isStatus } = _a, props = __rest$1(_a, ["children", "className", "isStatus"]);
|
|
8269
|
+
return (React.createElement("span", Object.assign({ className: css(textInputGroupStyles.textInputGroupIcon, isStatus && textInputGroupStyles.modifiers.status, className) }, props), children));
|
|
8270
|
+
};
|
|
8271
|
+
TextInputGroupIcon.displayName = 'TextInputGroupIcon';
|
|
8272
|
+
|
|
8270
8273
|
const TextInputGroupMainBase = (_a) => {
|
|
8271
8274
|
var { children, className, icon, type = 'text', hint, onChange = () => undefined, onFocus, onBlur, 'aria-label': ariaLabel = 'Type to filter', value: inputValue, placeholder: inputPlaceHolder, innerRef, name, 'aria-activedescendant': ariaActivedescendant, role, isExpanded, 'aria-controls': ariaControls, inputId } = _a, props = __rest$1(_a, ["children", "className", "icon", "type", "hint", "onChange", "onFocus", "onBlur", 'aria-label', "value", "placeholder", "innerRef", "name", 'aria-activedescendant', "role", "isExpanded", 'aria-controls', "inputId"]);
|
|
8272
|
-
const { isDisabled } = React.useContext(TextInputGroupContext);
|
|
8275
|
+
const { isDisabled, validated } = React.useContext(TextInputGroupContext);
|
|
8273
8276
|
const ref = React.useRef(null);
|
|
8274
8277
|
const textInputGroupInputInputRef = innerRef || ref;
|
|
8278
|
+
const StatusIcon = statusIcons$2[validated === ValidatedOptions.error ? 'danger' : validated];
|
|
8275
8279
|
const handleChange = (event) => {
|
|
8276
8280
|
onChange(event, event.currentTarget.value);
|
|
8277
8281
|
};
|
|
8278
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8282
|
+
return (React.createElement("div", Object.assign({ className: css(textInputGroupStyles.textInputGroupMain, icon && textInputGroupStyles.modifiers.icon, className) }, props),
|
|
8279
8283
|
children,
|
|
8280
|
-
React.createElement("span", { className: css
|
|
8281
|
-
hint && (React.createElement("input", { className: css
|
|
8282
|
-
icon && React.createElement(
|
|
8283
|
-
React.createElement("input", Object.assign({ ref: textInputGroupInputInputRef, type: type, className: css
|
|
8284
|
+
React.createElement("span", { className: css(textInputGroupStyles.textInputGroupText) },
|
|
8285
|
+
hint && (React.createElement("input", { className: css(textInputGroupStyles.textInputGroupTextInput, textInputGroupStyles.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint, id: inputId })),
|
|
8286
|
+
icon && React.createElement(TextInputGroupIcon, null, icon),
|
|
8287
|
+
React.createElement("input", Object.assign({ ref: textInputGroupInputInputRef, type: type, className: css(textInputGroupStyles.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder, name: name, "aria-activedescendant": ariaActivedescendant, id: inputId }, (role && { role }), (isExpanded !== undefined && { 'aria-expanded': isExpanded }), (ariaControls && { 'aria-controls': ariaControls }))),
|
|
8288
|
+
validated && React.createElement(TextInputGroupIcon, { isStatus: true }, React.createElement(StatusIcon, { "aria-hidden": "true" })))));
|
|
8284
8289
|
};
|
|
8285
8290
|
const TextInputGroupMain = React.forwardRef((props, ref) => (React.createElement(TextInputGroupMainBase, Object.assign({ innerRef: ref }, props))));
|
|
8286
8291
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
8287
8292
|
|
|
8288
8293
|
const TextInputGroupUtilities = (_a) => {
|
|
8289
8294
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8290
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8295
|
+
return (React.createElement("div", Object.assign({ className: css(textInputGroupStyles.textInputGroupUtilities, className) }, props), children));
|
|
8291
8296
|
};
|
|
8292
8297
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
8293
8298
|
|
|
@@ -8443,7 +8448,7 @@ const SearchInputBase = (_a) => {
|
|
|
8443
8448
|
React.createElement(ArrowRightIcon$1, null)) }))),
|
|
8444
8449
|
expandableInput && React.createElement(InputGroupItem, null, expandableToggle)));
|
|
8445
8450
|
};
|
|
8446
|
-
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css
|
|
8451
|
+
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
8447
8452
|
if (!!expandableInput && !isExpanded) {
|
|
8448
8453
|
return (React.createElement(InputGroup, Object.assign({}, searchInputProps),
|
|
8449
8454
|
React.createElement(InputGroupItem, null, expandableToggle)));
|
|
@@ -8452,9 +8457,9 @@ const SearchInputBase = (_a) => {
|
|
|
8452
8457
|
if (attributes.length > 0) {
|
|
8453
8458
|
const AdvancedSearch = (React.createElement("div", { ref: popperRef },
|
|
8454
8459
|
React.createElement(AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen })));
|
|
8455
|
-
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css
|
|
8460
|
+
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
8456
8461
|
React.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), triggerRef: triggerRef, popper: AdvancedSearch, popperRef: popperRef, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current, zIndex: zIndex })));
|
|
8457
|
-
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css
|
|
8462
|
+
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
8458
8463
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
8459
8464
|
AdvancedSearch));
|
|
8460
8465
|
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
@@ -8493,7 +8498,7 @@ const isSpinner = (icon) => icon.type === Spinner;
|
|
|
8493
8498
|
const EmptyStateIcon = (_a) => {
|
|
8494
8499
|
var { className, icon: IconComponent } = _a, props = __rest$1(_a, ["className", "icon"]);
|
|
8495
8500
|
const iconIsSpinner = isSpinner(React.createElement(IconComponent, null));
|
|
8496
|
-
return (React.createElement("div", { className: css
|
|
8501
|
+
return (React.createElement("div", { className: css(styles$9.emptyStateIcon) },
|
|
8497
8502
|
React.createElement(IconComponent, Object.assign({ className: className, "aria-hidden": !iconIsSpinner }, props))));
|
|
8498
8503
|
};
|
|
8499
8504
|
EmptyStateIcon.displayName = 'EmptyStateIcon';
|
|
@@ -8509,10 +8514,10 @@ var EmptyStateHeadingLevel;
|
|
|
8509
8514
|
})(EmptyStateHeadingLevel || (EmptyStateHeadingLevel = {}));
|
|
8510
8515
|
const EmptyStateHeader = (_a) => {
|
|
8511
8516
|
var { className, titleClassName, titleText, headingLevel: HeadingLevel = EmptyStateHeadingLevel.h1, icon: Icon } = _a, props = __rest$1(_a, ["className", "titleClassName", "titleText", "headingLevel", "icon"]);
|
|
8512
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8517
|
+
return (React.createElement("div", Object.assign({ className: css(`${styles$9.emptyState}__header`, className) }, props),
|
|
8513
8518
|
Icon && React.createElement(EmptyStateIcon, { icon: Icon }),
|
|
8514
|
-
React.createElement("div", { className: css
|
|
8515
|
-
React.createElement(HeadingLevel, { className: css
|
|
8519
|
+
titleText && (React.createElement("div", { className: css(`${styles$9.emptyState}__title`) },
|
|
8520
|
+
React.createElement(HeadingLevel, { className: css(styles$9.emptyStateTitleText, titleClassName) }, titleText)))));
|
|
8516
8521
|
};
|
|
8517
8522
|
EmptyStateHeader.displayName = 'EmptyStateHeader';
|
|
8518
8523
|
|
|
@@ -8536,8 +8541,8 @@ const EmptyState = (_a) => {
|
|
|
8536
8541
|
var { children, className, variant = EmptyStateVariant.full, isFullHeight, status, icon: customIcon, titleText, titleClassName, headerClassName, headingLevel } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight", "status", "icon", "titleText", "titleClassName", "headerClassName", "headingLevel"]);
|
|
8537
8542
|
const statusIcon = status && statusIcons$2[status];
|
|
8538
8543
|
const icon = customIcon || statusIcon;
|
|
8539
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8540
|
-
React.createElement("div", { className: css
|
|
8544
|
+
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyState, variant !== 'full' && styles$9.modifiers[variant], isFullHeight && styles$9.modifiers.fullHeight, status && styles$9.modifiers[status], className) }, props),
|
|
8545
|
+
React.createElement("div", { className: css(styles$9.emptyStateContent) },
|
|
8541
8546
|
React.createElement(EmptyStateHeader, { icon: icon, titleText: titleText, titleClassName: titleClassName, className: headerClassName, headingLevel: headingLevel }),
|
|
8542
8547
|
children)));
|
|
8543
8548
|
};
|
|
@@ -8545,19 +8550,19 @@ EmptyState.displayName = 'EmptyState';
|
|
|
8545
8550
|
|
|
8546
8551
|
const EmptyStateBody = (_a) => {
|
|
8547
8552
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8548
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8553
|
+
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateBody, className) }, props), children));
|
|
8549
8554
|
};
|
|
8550
8555
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
8551
8556
|
|
|
8552
8557
|
const EmptyStateFooter = (_a) => {
|
|
8553
8558
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8554
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8559
|
+
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateFooter, className) }, props), children));
|
|
8555
8560
|
};
|
|
8556
8561
|
EmptyStateFooter.displayName = 'EmptyStateFooter';
|
|
8557
8562
|
|
|
8558
8563
|
const EmptyStateActions = (_a) => {
|
|
8559
8564
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8560
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
8565
|
+
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateActions, className) }, props), children));
|
|
8561
8566
|
};
|
|
8562
8567
|
EmptyStateActions.displayName = 'EmptyStateActions';
|
|
8563
8568
|
|
|
@@ -8565,9 +8570,7 @@ var styles$8 = {
|
|
|
8565
8570
|
"dirRtl": "pf-v6-m-dir-rtl",
|
|
8566
8571
|
"expandableSection": "pf-v6-c-expandable-section",
|
|
8567
8572
|
"expandableSectionContent": "pf-v6-c-expandable-section__content",
|
|
8568
|
-
"expandableSectionToggle": "pf-v6-c-expandable-section__toggle",
|
|
8569
8573
|
"expandableSectionToggleIcon": "pf-v6-c-expandable-section__toggle-icon",
|
|
8570
|
-
"expandableSectionToggleText": "pf-v6-c-expandable-section__toggle-text",
|
|
8571
8574
|
"modifiers": {
|
|
8572
8575
|
"expanded": "pf-m-expanded",
|
|
8573
8576
|
"limitWidth": "pf-m-limit-width",
|
|
@@ -8680,13 +8683,14 @@ class ExpandableSection extends React.Component {
|
|
|
8680
8683
|
};
|
|
8681
8684
|
}
|
|
8682
8685
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
8683
|
-
const expandableToggle = !isDetached && (React.createElement("
|
|
8684
|
-
variant
|
|
8685
|
-
React.createElement(
|
|
8686
|
-
|
|
8687
|
-
|
|
8686
|
+
const expandableToggle = !isDetached && (React.createElement("div", { className: `${styles$8.expandableSection}__toggle` },
|
|
8687
|
+
React.createElement(Button, Object.assign({ variant: "link" }, (variant === ExpandableSectionVariant.truncate && { isInline: true }), { "aria-expanded": propOrStateIsExpanded, "aria-controls": uniqueContentId, id: uniqueToggleId, onClick: (event) => onToggle(event, !propOrStateIsExpanded) }, (variant !== ExpandableSectionVariant.truncate && {
|
|
8688
|
+
icon: (React.createElement("span", { className: css(styles$8.expandableSectionToggleIcon) },
|
|
8689
|
+
React.createElement(AngleRightIcon, { "aria-hidden": true })))
|
|
8690
|
+
})), toggleContent || computedToggleText)));
|
|
8691
|
+
return (React.createElement("div", Object.assign({ className: css(styles$8.expandableSection, propOrStateIsExpanded && styles$8.modifiers.expanded, displaySize === 'lg' && styles$8.modifiers.displayLg, isWidthLimited && styles$8.modifiers.limitWidth, isIndented && styles$8.modifiers.indented, variant === ExpandableSectionVariant.truncate && styles$8.modifiers.truncate, className) }, props),
|
|
8688
8692
|
variant === ExpandableSectionVariant.default && expandableToggle,
|
|
8689
|
-
React.createElement("div", { ref: this.expandableContentRef, className: css
|
|
8693
|
+
React.createElement("div", { ref: this.expandableContentRef, className: css(styles$8.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: uniqueContentId, "aria-labelledby": uniqueToggleId, role: "region" }, children),
|
|
8690
8694
|
variant === ExpandableSectionVariant.truncate && this.state.hasToggle && expandableToggle));
|
|
8691
8695
|
}
|
|
8692
8696
|
}
|
|
@@ -8897,7 +8901,7 @@ const Label = (_a) => {
|
|
|
8897
8901
|
};
|
|
8898
8902
|
const isClickableDisabled = (href || onLabelClick) && isDisabled;
|
|
8899
8903
|
const defaultCloseButton = (React.createElement(Button, Object.assign({ type: "button", variant: "plain", hasNoPadding: true, onClick: onClose, "aria-label": closeBtnAriaLabel || `Close ${children}` }, (isClickableDisabled && { isDisabled: true }), closeBtnProps, { icon: React.createElement(TimesIcon, null) })));
|
|
8900
|
-
const closeButton = React.createElement("span", { className: css
|
|
8904
|
+
const closeButton = React.createElement("span", { className: css(labelStyles.labelActions) }, closeBtn || defaultCloseButton);
|
|
8901
8905
|
const textRef = React.createRef();
|
|
8902
8906
|
// ref to apply tooltip when rendered is used
|
|
8903
8907
|
const componentRef = React.useRef();
|
|
@@ -8909,8 +8913,8 @@ const Label = (_a) => {
|
|
|
8909
8913
|
}
|
|
8910
8914
|
}, [isEditableActive]);
|
|
8911
8915
|
const content = (React.createElement(React.Fragment, null,
|
|
8912
|
-
_icon && React.createElement("span", { className: css
|
|
8913
|
-
React.createElement("span", Object.assign({ ref: textRef, className: css
|
|
8916
|
+
_icon && React.createElement("span", { className: css(labelStyles.labelIcon) }, _icon),
|
|
8917
|
+
React.createElement("span", Object.assign({ ref: textRef, className: css(labelStyles.labelText) }, (textMaxWidth && {
|
|
8914
8918
|
style: {
|
|
8915
8919
|
[c_label__text_MaxWidth.name]: textMaxWidth
|
|
8916
8920
|
}
|
|
@@ -8935,7 +8939,7 @@ const Label = (_a) => {
|
|
|
8935
8939
|
onClick: onLabelClick
|
|
8936
8940
|
};
|
|
8937
8941
|
const isButton = LabelComponentChildElement === 'button';
|
|
8938
|
-
const labelComponentChildProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ className: css
|
|
8942
|
+
const labelComponentChildProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ className: css(labelStyles.labelContent, isClickable && labelStyles.modifiers.clickable) }, (isTooltipVisible && { tabIndex: 0 })), (href && { href })), (href && isDisabled && { onClick: (event) => event.preventDefault() })), (isButton && clickableLabelProps)), (isEditable && Object.assign({ ref: editableButtonRef, onClick: (e) => {
|
|
8939
8943
|
setIsEditableActive(true);
|
|
8940
8944
|
e.stopPropagation();
|
|
8941
8945
|
} }, editableProps))), (isClickableDisabled && isButton && { disabled: true })), (isClickableDisabled && href && { tabIndex: -1, 'aria-disabled': true }));
|
|
@@ -8953,10 +8957,10 @@ const Label = (_a) => {
|
|
|
8953
8957
|
labelComponentChild = (React.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
8954
8958
|
}
|
|
8955
8959
|
const LabelComponent = (isOverflowLabel ? 'button' : 'span');
|
|
8956
|
-
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css
|
|
8960
|
+
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, isClickableDisabled && labelStyles.modifiers.disabled, colorStyles[color], variant === 'filled' && labelStyles.modifiers.filled, variant === 'outline' && labelStyles.modifiers.outline, status && labelStyles.modifiers[status], isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$7.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, isClickable && labelStyles.modifiers.clickable, isAddLabel && labelStyles.modifiers.add, className), onClick: isOverflowLabel || isAddLabel ? onLabelClick : undefined }, (LabelComponent === 'button' && { type: 'button' })),
|
|
8957
8961
|
!isEditableActive && labelComponentChild,
|
|
8958
8962
|
!isEditableActive && onClose && closeButton,
|
|
8959
|
-
isEditableActive && (React.createElement("input", Object.assign({ className: css
|
|
8963
|
+
isEditableActive && (React.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
8960
8964
|
};
|
|
8961
8965
|
Label.displayName = 'Label';
|
|
8962
8966
|
|
|
@@ -8991,15 +8995,15 @@ var ListComponent;
|
|
|
8991
8995
|
})(ListComponent || (ListComponent = {}));
|
|
8992
8996
|
const List = (_a) => {
|
|
8993
8997
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = OrderType.number, ref = null, component = ListComponent.ul } = _a, props = __rest$1(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
8994
|
-
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, (isPlain && { role: 'list' }), props, { className: css
|
|
8998
|
+
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, (isPlain && { role: 'list' }), props, { className: css(styles$6.list, variant && styles$6.modifiers[variant], isBordered && styles$6.modifiers.bordered, isPlain && styles$6.modifiers.plain, iconSize && iconSize === 'large' && styles$6.modifiers.iconLg, className) }), children)) : (React.createElement("ul", Object.assign({ ref: ref }, (isPlain && { role: 'list' }), props, { className: css(styles$6.list, variant && styles$6.modifiers[variant], isBordered && styles$6.modifiers.bordered, isPlain && styles$6.modifiers.plain, iconSize && iconSize === 'large' && styles$6.modifiers.iconLg, className) }), children));
|
|
8995
8999
|
};
|
|
8996
9000
|
List.displayName = 'List';
|
|
8997
9001
|
|
|
8998
9002
|
const ListItem = (_a) => {
|
|
8999
9003
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
9000
|
-
return (React.createElement("li", Object.assign({ className: css
|
|
9001
|
-
icon && React.createElement("span", { className: css
|
|
9002
|
-
React.createElement("span", { className: icon && css
|
|
9004
|
+
return (React.createElement("li", Object.assign({ className: css(icon && styles$6.listItem) }, props),
|
|
9005
|
+
icon && React.createElement("span", { className: css(styles$6.listItemIcon) }, icon),
|
|
9006
|
+
React.createElement("span", { className: icon && css(`${styles$6.list}__item-text`) }, children)));
|
|
9003
9007
|
};
|
|
9004
9008
|
ListItem.displayName = 'ListItem';
|
|
9005
9009
|
|
|
@@ -9079,7 +9083,7 @@ var styles$5 = {
|
|
|
9079
9083
|
|
|
9080
9084
|
const PageBody = (_a) => {
|
|
9081
9085
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
9082
|
-
return (React.createElement("div", Object.assign({}, props, { className: css
|
|
9086
|
+
return (React.createElement("div", Object.assign({}, props, { className: css(styles$5.pageMainBody, className) }), children));
|
|
9083
9087
|
};
|
|
9084
9088
|
PageBody.displayName = 'PageBody';
|
|
9085
9089
|
|
|
@@ -9117,7 +9121,7 @@ const PageSection = (_a) => {
|
|
|
9117
9121
|
}
|
|
9118
9122
|
}, [hasOverflowScroll, ariaLabel]);
|
|
9119
9123
|
const Component = component;
|
|
9120
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css
|
|
9124
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$5), formatBreakpointMods(stickyOnBreakpoint, styles$5, 'sticky-', getVerticalBreakpoint(height), true), type === PageSectionTypes.default && variantStyle[variant], isFilled === false && styles$5.modifiers.noFill, isFilled === true && styles$5.modifiers.fill, isWidthLimited && styles$5.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== PageSectionTypes.subNav && styles$5.modifiers.alignCenter, hasShadowTop && styles$5.modifiers.shadowTop, hasShadowBottom && styles$5.modifiers.shadowBottom, hasOverflowScroll && styles$5.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }), hasBodyWrapper ? React.createElement(PageBody, null, children) : children));
|
|
9121
9125
|
};
|
|
9122
9126
|
PageSection.displayName = 'PageSection';
|
|
9123
9127
|
|
|
@@ -9503,10 +9507,10 @@ const ToolbarContentContext = React.createContext({
|
|
|
9503
9507
|
clearAllFilters: () => { }
|
|
9504
9508
|
});
|
|
9505
9509
|
const globalBreakpoints = {
|
|
9506
|
-
md: parseInt(
|
|
9507
|
-
lg: parseInt(
|
|
9508
|
-
xl: parseInt(
|
|
9509
|
-
'2xl': parseInt(
|
|
9510
|
+
md: parseInt(t_global_breakpoint_md.value) * 16,
|
|
9511
|
+
lg: parseInt(t_global_breakpoint_lg.value) * 16,
|
|
9512
|
+
xl: parseInt(t_global_breakpoint_xl.value) * 16,
|
|
9513
|
+
'2xl': parseInt(t_global_breakpoint_2xl.value) * 16
|
|
9510
9514
|
};
|
|
9511
9515
|
|
|
9512
9516
|
var ToolbarItemVariant;
|
|
@@ -9520,9 +9524,9 @@ var ToolbarItemVariant;
|
|
|
9520
9524
|
const ToolbarItem = (_a) => {
|
|
9521
9525
|
var { className, variant, visibility, gap, columnGap, rowGap, align, alignSelf, alignItems, id, children, isAllExpanded, isOverflowContainer } = _a, props = __rest$1(_a, ["className", "variant", "visibility", "gap", "columnGap", "rowGap", "align", "alignSelf", "alignItems", "id", "children", "isAllExpanded", "isOverflowContainer"]);
|
|
9522
9526
|
if (variant === ToolbarItemVariant.separator) {
|
|
9523
|
-
return React.createElement(Divider, Object.assign({ className: css
|
|
9527
|
+
return React.createElement(Divider, Object.assign({ className: css(className), orientation: { default: 'vertical' } }, props));
|
|
9524
9528
|
}
|
|
9525
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css
|
|
9529
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarItem, variant && styles$4.modifiers[toCamel(variant)], variant === ToolbarItemVariant['label-group'] && styles$4.modifiers.labelGroup, isAllExpanded && styles$4.modifiers.expanded, isOverflowContainer && styles$4.modifiers.overflowContainer, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), formatBreakpointMods(align, styles$4, '', getBreakpoint(width)), formatBreakpointMods(gap, styles$4, '', getBreakpoint(width)), formatBreakpointMods(columnGap, styles$4, '', getBreakpoint(width)), formatBreakpointMods(rowGap, styles$4, '', getBreakpoint(width)), alignItems === 'start' && styles$4.modifiers.alignItemsStart, alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline, alignSelf === 'start' && styles$4.modifiers.alignSelfStart, alignSelf === 'center' && styles$4.modifiers.alignSelfCenter, alignSelf === 'baseline' && styles$4.modifiers.alignSelfBaseline, className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props), children))));
|
|
9526
9530
|
};
|
|
9527
9531
|
ToolbarItem.displayName = 'ToolbarItem';
|
|
9528
9532
|
|
|
@@ -9537,7 +9541,7 @@ var ToolbarGroupVariant;
|
|
|
9537
9541
|
class ToolbarGroupWithRef extends React.Component {
|
|
9538
9542
|
render() {
|
|
9539
9543
|
const _a = this.props, { visibility, align, alignItems, alignSelf, gap, columnGap, rowGap, className, variant, children, isOverflowContainer, innerRef } = _a, props = __rest$1(_a, ["visibility", "align", "alignItems", "alignSelf", "gap", "columnGap", "rowGap", "className", "variant", "children", "isOverflowContainer", "innerRef"]);
|
|
9540
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css
|
|
9544
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarGroup, variant &&
|
|
9541
9545
|
styles$4.modifiers[toCamel(variant)], formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), formatBreakpointMods(align, styles$4, '', getBreakpoint(width)), formatBreakpointMods(gap, styles$4, '', getBreakpoint(width)), formatBreakpointMods(columnGap, styles$4, '', getBreakpoint(width)), formatBreakpointMods(rowGap, styles$4, '', getBreakpoint(width)), alignItems === 'start' && styles$4.modifiers.alignItemsStart, alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline, alignSelf === 'start' && styles$4.modifiers.alignSelfStart, alignSelf === 'center' && styles$4.modifiers.alignSelfCenter, alignSelf === 'baseline' && styles$4.modifiers.alignSelfBaseline, isOverflowContainer && styles$4.modifiers.overflowContainer, className) }, props, { ref: innerRef }), children))));
|
|
9542
9546
|
}
|
|
9543
9547
|
}
|
|
@@ -9560,8 +9564,8 @@ class ToolbarLabelGroupContent extends React.Component {
|
|
|
9560
9564
|
const isHidden = numberOfFilters === 0 || isExpanded;
|
|
9561
9565
|
const showNumberOfFilters = collapseListedFilters && numberOfFilters > 0 && !isExpanded;
|
|
9562
9566
|
const showDefaultClearFilter = showClearFiltersButton && !isExpanded && !customLabelGroupContent;
|
|
9563
|
-
return (React.createElement("div", Object.assign({ className: css
|
|
9564
|
-
React.createElement(ToolbarGroup, Object.assign({ className: css
|
|
9567
|
+
return (React.createElement("div", Object.assign({ className: css(styles$4.toolbarContent, isHidden && styles$4.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: labelGroupContentRef }, props),
|
|
9568
|
+
React.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
9565
9569
|
(showNumberOfFilters || showDefaultClearFilter || customLabelGroupContent) && (React.createElement(ToolbarGroup, { variant: "action-group-inline" },
|
|
9566
9570
|
showNumberOfFilters && React.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)),
|
|
9567
9571
|
showDefaultClearFilter && (React.createElement(ToolbarItem, null,
|
|
@@ -9624,7 +9628,7 @@ class Toolbar extends React.Component {
|
|
|
9624
9628
|
const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
|
|
9625
9629
|
const numberOfFilters = this.getNumberOfFilters();
|
|
9626
9630
|
const showClearFiltersButton = numberOfFilters > 0;
|
|
9627
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css
|
|
9631
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbar, isFullHeight && styles$4.modifiers.fullHeight, isStatic && styles$4.modifiers.static, isSticky && styles$4.modifiers.sticky, formatBreakpointMods(inset, styles$4, '', getBreakpoint(width)), colorVariant === 'primary' && styles$4.modifiers.primary, colorVariant === 'secondary' && styles$4.modifiers.secondary, colorVariant === 'no-background' && styles$4.modifiers.noBackground, className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),
|
|
9628
9632
|
React.createElement(ToolbarContext.Provider, { value: {
|
|
9629
9633
|
isExpanded,
|
|
9630
9634
|
toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
|
|
@@ -9665,7 +9669,7 @@ class ToolbarContent extends React.Component {
|
|
|
9665
9669
|
}
|
|
9666
9670
|
render() {
|
|
9667
9671
|
const _a = this.props, { className, children, isExpanded, toolbarId, visibility, alignItems, clearAllFilters, showClearFiltersButton, clearFiltersButtonText } = _a, props = __rest$1(_a, ["className", "children", "isExpanded", "toolbarId", "visibility", "alignItems", "clearAllFilters", "showClearFiltersButton", "clearFiltersButtonText"]);
|
|
9668
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css
|
|
9672
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarContent, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), className), ref: this.expandableContentRef }, props),
|
|
9669
9673
|
React.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, isExpanded: isExpandedContext, toolbarId: toolbarIdContext }) => {
|
|
9670
9674
|
const expandableContentId = `${toolbarId || toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
|
|
9671
9675
|
return (React.createElement(ToolbarContentContext.Provider, { value: {
|
|
@@ -9677,7 +9681,7 @@ class ToolbarContent extends React.Component {
|
|
|
9677
9681
|
clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext,
|
|
9678
9682
|
showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext
|
|
9679
9683
|
} },
|
|
9680
|
-
React.createElement("div", { className: css
|
|
9684
|
+
React.createElement("div", { className: css(styles$4.toolbarContentSection, alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'start' && styles$4.modifiers.alignItemsStart, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline) }, children)));
|
|
9681
9685
|
})))));
|
|
9682
9686
|
}
|
|
9683
9687
|
}
|
|
@@ -9757,24 +9761,24 @@ const WizardNavItem = (_a) => {
|
|
|
9757
9761
|
// eslint-disable-next-line no-console
|
|
9758
9762
|
console.error('WizardNavItem: When using an anchor, please provide an href');
|
|
9759
9763
|
}
|
|
9760
|
-
return (React.createElement("li", Object.assign({ className: css
|
|
9764
|
+
return (React.createElement("li", Object.assign({ className: css(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded, className) }, props),
|
|
9761
9765
|
React.createElement(NavItemComponent, Object.assign({}, (NavItemComponent === 'a'
|
|
9762
9766
|
? { tabIndex: isDisabled ? -1 : undefined, href, target }
|
|
9763
9767
|
: { disabled: isDisabled }), (id && { id: id.toString() }), { onClick: (e) => {
|
|
9764
9768
|
e.stopPropagation();
|
|
9765
9769
|
isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onClick === null || onClick === void 0 ? void 0 : onClick(e, stepIndex);
|
|
9766
|
-
}, className: css
|
|
9770
|
+
}, className: css(styles$3.wizardNavLink, isCurrent && styles$3.modifiers.current, isDisabled && styles$3.modifiers.disabled, status === WizardNavItemStatus.Error && styles$3.modifiers.danger, status === WizardNavItemStatus.Success && styles$3.modifiers.success), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded }), ouiaProps),
|
|
9767
9771
|
status !== WizardNavItemStatus.Default && (React.createElement(React.Fragment, null,
|
|
9768
9772
|
React.createElement("span", { className: "pf-v6-screen-reader" },
|
|
9769
9773
|
", ",
|
|
9770
9774
|
status),
|
|
9771
|
-
React.createElement("span", { className: css
|
|
9775
|
+
React.createElement("span", { className: css(styles$3.wizardNavLinkStatusIcon) },
|
|
9772
9776
|
status === WizardNavItemStatus.Error && React.createElement(ExclamationCircleIcon, null),
|
|
9773
9777
|
status === WizardNavItemStatus.Success && React.createElement(CheckCircleIcon$1, null)))),
|
|
9774
|
-
React.createElement("span", { className: css
|
|
9775
|
-
React.createElement("span", { className: css
|
|
9776
|
-
React.createElement("span", { className: css
|
|
9777
|
-
React.createElement("span", { className: css
|
|
9778
|
+
React.createElement("span", { className: css(styles$3.wizardNavLinkMain) }, isExpandable ? (React.createElement(React.Fragment, null,
|
|
9779
|
+
React.createElement("span", { className: css(styles$3.wizardNavLinkText) }, content),
|
|
9780
|
+
React.createElement("span", { className: css(styles$3.wizardNavLinkToggle) },
|
|
9781
|
+
React.createElement("span", { className: css(styles$3.wizardNavLinkToggleIcon) },
|
|
9778
9782
|
React.createElement(AngleRightIcon, { "aria-label": `${isCurrent ? 'Collapse' : 'Expand'} step icon` }))))) : (React.createElement(React.Fragment, null, content)))),
|
|
9779
9783
|
children));
|
|
9780
9784
|
};
|
|
@@ -10335,14 +10339,14 @@ const l_flex_item_Order = {
|
|
|
10335
10339
|
const Flex = (_a) => {
|
|
10336
10340
|
var { children = null, className = '', component = 'div', spacer, spaceItems, gap, rowGap, columnGap, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest$1(_a, ["children", "className", "component", "spacer", "spaceItems", "gap", "rowGap", "columnGap", "grow", "shrink", "flex", "direction", "alignItems", "alignContent", "alignSelf", "align", "justifyContent", "display", "fullWidth", "flexWrap", "order", "style"]);
|
|
10337
10341
|
const Component = component;
|
|
10338
|
-
return (React.createElement(Component, Object.assign({ className: css
|
|
10342
|
+
return (React.createElement(Component, Object.assign({ className: css(styles$2.flex, formatBreakpointMods(spacer, styles$2), formatBreakpointMods(spaceItems, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(direction, styles$2), formatBreakpointMods(alignItems, styles$2), formatBreakpointMods(alignContent, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(justifyContent, styles$2), formatBreakpointMods(display, styles$2), formatBreakpointMods(fullWidth, styles$2), formatBreakpointMods(flexWrap, styles$2), formatBreakpointMods(gap, styles$2), formatBreakpointMods(rowGap, styles$2), formatBreakpointMods(columnGap, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));
|
|
10339
10343
|
};
|
|
10340
10344
|
Flex.displayName = 'Flex';
|
|
10341
10345
|
|
|
10342
10346
|
const FlexItem = (_a) => {
|
|
10343
10347
|
var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest$1(_a, ["children", "className", "component", "spacer", "grow", "shrink", "flex", "alignSelf", "align", "fullWidth", "order", "style"]);
|
|
10344
10348
|
const Component = component;
|
|
10345
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css
|
|
10349
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css(formatBreakpointMods(spacer, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(fullWidth, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }), children));
|
|
10346
10350
|
};
|
|
10347
10351
|
FlexItem.displayName = 'FlexItem';
|
|
10348
10352
|
|
|
@@ -10379,7 +10383,7 @@ const Gallery = (_a) => {
|
|
|
10379
10383
|
value));
|
|
10380
10384
|
}
|
|
10381
10385
|
const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
|
|
10382
|
-
return (React.createElement(Component, Object.assign({ className: css
|
|
10386
|
+
return (React.createElement(Component, Object.assign({ className: css(styles$1.gallery, hasGutter && styles$1.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));
|
|
10383
10387
|
};
|
|
10384
10388
|
Gallery.displayName = 'Gallery';
|
|
10385
10389
|
|
|
@@ -10395,13 +10399,13 @@ var styles = {
|
|
|
10395
10399
|
const Stack = (_a) => {
|
|
10396
10400
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest$1(_a, ["hasGutter", "className", "children", "component"]);
|
|
10397
10401
|
const Component = component;
|
|
10398
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css
|
|
10402
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
10399
10403
|
};
|
|
10400
10404
|
Stack.displayName = 'Stack';
|
|
10401
10405
|
|
|
10402
10406
|
const StackItem = (_a) => {
|
|
10403
10407
|
var { isFilled = false, className = '', children = null } = _a, props = __rest$1(_a, ["isFilled", "className", "children"]);
|
|
10404
|
-
return (React.createElement("div", Object.assign({}, props, { className: css
|
|
10408
|
+
return (React.createElement("div", Object.assign({}, props, { className: css(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
10405
10409
|
};
|
|
10406
10410
|
StackItem.displayName = 'StackItem';
|
|
10407
10411
|
|
|
@@ -10456,36 +10460,6 @@ exports["default"] = exports.SearchIcon;
|
|
|
10456
10460
|
|
|
10457
10461
|
var SearchIcon = /*@__PURE__*/getDefaultExportFromCjs(searchIcon);
|
|
10458
10462
|
|
|
10459
|
-
/** Joins args into a className string
|
|
10460
|
-
*
|
|
10461
|
-
* @param {any} args list of objects, string, or arrays to reduce
|
|
10462
|
-
*/
|
|
10463
|
-
function css(...args) {
|
|
10464
|
-
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
10465
|
-
const classes = [];
|
|
10466
|
-
const hasOwn = {}.hasOwnProperty;
|
|
10467
|
-
args.filter(Boolean).forEach((arg) => {
|
|
10468
|
-
const argType = typeof arg;
|
|
10469
|
-
if (argType === 'string' || argType === 'number') {
|
|
10470
|
-
classes.push(arg);
|
|
10471
|
-
}
|
|
10472
|
-
else if (Array.isArray(arg) && arg.length) {
|
|
10473
|
-
const inner = css(...arg);
|
|
10474
|
-
if (inner) {
|
|
10475
|
-
classes.push(inner);
|
|
10476
|
-
}
|
|
10477
|
-
}
|
|
10478
|
-
else if (argType === 'object') {
|
|
10479
|
-
for (const key in arg) {
|
|
10480
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
10481
|
-
classes.push(key);
|
|
10482
|
-
}
|
|
10483
|
-
}
|
|
10484
|
-
}
|
|
10485
|
-
});
|
|
10486
|
-
return classes.join(' ');
|
|
10487
|
-
}
|
|
10488
|
-
|
|
10489
10463
|
function _extends() {
|
|
10490
10464
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10491
10465
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -31596,12 +31570,10 @@ const QuickStartTileFooterExternal = ({ link, quickStartId, }) => {
|
|
|
31596
31570
|
React.createElement(Button, { component: "a", href: href, target: "_blank", rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: React.createElement(ExternalLinkAltIcon, null), iconPosition: "right", id: quickStartId, "aria-labelledby": `${quickStartId}-external ${quickStartId}` }, text || href))));
|
|
31597
31571
|
};
|
|
31598
31572
|
|
|
31599
|
-
const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => {
|
|
31600
|
-
|
|
31601
|
-
React.createElement(
|
|
31602
|
-
React.createElement(
|
|
31603
|
-
React.createElement(QuickStartMarkdownView, { content: name })))));
|
|
31604
|
-
};
|
|
31573
|
+
const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => (React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
|
|
31574
|
+
React.createElement(Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
|
|
31575
|
+
React.createElement(Button, { variant: "link", isInline: true, onClick: onSelect },
|
|
31576
|
+
React.createElement(QuickStartMarkdownView, { content: name })))));
|
|
31605
31577
|
|
|
31606
31578
|
var outlinedBookmarkIcon = createCommonjsModule(function (module, exports) {
|
|
31607
31579
|
exports.__esModule = true;
|
|
@@ -31700,7 +31672,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
31700
31672
|
const QuickStartCatalog = ({ quickStarts }) => {
|
|
31701
31673
|
const { activeQuickStartID, allQuickStartStates } = React.useContext(QuickStartContext);
|
|
31702
31674
|
return (React.createElement("div", null,
|
|
31703
|
-
React.createElement(Gallery, { hasGutter: true }, quickStarts.map((quickStart, index) => {
|
|
31675
|
+
React.createElement(Gallery, { hasGutter: true, className: "pfext-quick-start-catalog__gallery" }, quickStarts.map((quickStart, index) => {
|
|
31704
31676
|
const { metadata: { name: id }, } = quickStart;
|
|
31705
31677
|
return (React.createElement(QuickStartTile, { key: index, quickStart: quickStart, isActive: id === activeQuickStartID, status: getQuickStartStatus(allQuickStartStates, id) }));
|
|
31706
31678
|
}))));
|
|
@@ -31965,7 +31937,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
31965
31937
|
return (React.createElement(WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status }, children));
|
|
31966
31938
|
};
|
|
31967
31939
|
|
|
31968
|
-
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React.createElement("
|
|
31940
|
+
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React.createElement("ul", { className: "pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
|
|
31969
31941
|
|
|
31970
31942
|
const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
|
|
31971
31943
|
const hasFailedTask = allTaskStatuses.includes(QuickStartTaskStatus.FAILED);
|
|
@@ -32081,7 +32053,7 @@ const QuickStartFooter = ({ status, taskNumber, totalTasks, onNext, onBack, quic
|
|
|
32081
32053
|
}
|
|
32082
32054
|
return PrimaryButtonText.CONTINUE;
|
|
32083
32055
|
}, [taskNumber, totalTasks, PrimaryButtonText, status]);
|
|
32084
|
-
const getPrimaryButton = React.useMemo(() => (React.createElement(Button, { variant: "primary", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, getPrimaryButtonText)), [getPrimaryButtonText, onNext]);
|
|
32056
|
+
const getPrimaryButton = React.useMemo(() => (React.createElement(Button, { variant: "primary", className: "pfext-quick-start-footer__actionbtn", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, getPrimaryButtonText)), [getPrimaryButtonText, onNext]);
|
|
32085
32057
|
const getSecondaryButton = React.useMemo(() => taskNumber === -1 && status !== QuickStartStatus.NOT_STARTED ? (React.createElement(Button, { variant: "secondary", onClick: onRestart, "data-testid": "qs-drawer-restart" }, SecondaryButtonText.RESTART)) : (taskNumber > -1 && (React.createElement(Button, { variant: "secondary", onClick: onBack, "data-testid": "qs-drawer-back" }, SecondaryButtonText.BACK))), [onRestart, onBack, SecondaryButtonText, status, taskNumber]);
|
|
32086
32058
|
const getSideNoteAction = React.useMemo(() => taskNumber !== -1 && (React.createElement(Button, { variant: "link", onClick: onRestart, "data-testid": "qs-drawer-side-note-action" }, SecondaryButtonText.RESTART)), [taskNumber, onRestart, SecondaryButtonText.RESTART]);
|
|
32087
32059
|
return (React.createElement("div", { className: css('pfext-quick-start-footer', className) },
|