@patternfly/quickstarts 6.0.0-alpha.3 → 6.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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(...args) {
|
|
43
|
+
function css$1(...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(...args) {
|
|
|
50
50
|
classes.push(arg);
|
|
51
51
|
}
|
|
52
52
|
else if (Array.isArray(arg) && arg.length) {
|
|
53
|
-
const inner = css(...arg);
|
|
53
|
+
const inner = css$1(...arg);
|
|
54
54
|
if (inner) {
|
|
55
55
|
classes.push(inner);
|
|
56
56
|
}
|
|
@@ -88,6 +88,7 @@ var styles$v = {
|
|
|
88
88
|
"contentTable": "pf-v6-c-content--table",
|
|
89
89
|
"contentUl": "pf-v6-c-content--ul",
|
|
90
90
|
"modifiers": {
|
|
91
|
+
"editorial": "pf-m-editorial",
|
|
91
92
|
"visited": "pf-m-visited",
|
|
92
93
|
"plain": "pf-m-plain"
|
|
93
94
|
}
|
|
@@ -122,405 +123,54 @@ const global_breakpoint_md = {
|
|
|
122
123
|
"value": "48rem",
|
|
123
124
|
"var": "var(--pf-t--global--breakpoint--md)"
|
|
124
125
|
};
|
|
125
|
-
|
|
126
|
-
const global_breakpoint_lg = {
|
|
127
|
-
"name": "--pf-t--global--breakpoint--lg",
|
|
128
|
-
"value": "62rem",
|
|
129
|
-
"var": "var(--pf-t--global--breakpoint--lg)"
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
const global_breakpoint_xl = {
|
|
133
|
-
"name": "--pf-t--global--breakpoint--xl",
|
|
134
|
-
"value": "75rem",
|
|
135
|
-
"var": "var(--pf-t--global--breakpoint--xl)"
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const global_breakpoint_2xl = {
|
|
139
|
-
"name": "--pf-t--global--breakpoint--2xl",
|
|
140
|
-
"value": "90.625rem",
|
|
141
|
-
"var": "var(--pf-t--global--breakpoint--2xl)"
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
const global_breakpoint_height_sm = {
|
|
145
|
-
"name": "--pf-t--global--breakpoint--height--sm",
|
|
146
|
-
"value": "0rem",
|
|
147
|
-
"var": "var(--pf-t--global--breakpoint--height--sm)"
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const global_breakpoint_height_md = {
|
|
151
|
-
"name": "--pf-t--global--breakpoint--height--md",
|
|
152
|
-
"value": "40rem",
|
|
153
|
-
"var": "var(--pf-t--global--breakpoint--height--md)"
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const global_breakpoint_height_lg = {
|
|
157
|
-
"name": "--pf-t--global--breakpoint--height--lg",
|
|
158
|
-
"value": "48rem",
|
|
159
|
-
"var": "var(--pf-t--global--breakpoint--height--lg)"
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
const global_breakpoint_height_xl = {
|
|
163
|
-
"name": "--pf-t--global--breakpoint--height--xl",
|
|
164
|
-
"value": "60rem",
|
|
165
|
-
"var": "var(--pf-t--global--breakpoint--height--xl)"
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const global_breakpoint_height_2xl = {
|
|
169
|
-
"name": "--pf-t--global--breakpoint--height--2xl",
|
|
170
|
-
"value": "80rem",
|
|
171
|
-
"var": "var(--pf-t--global--breakpoint--height--2xl)"
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
/******************************************************************************
|
|
175
|
-
Copyright (c) Microsoft Corporation.
|
|
176
|
-
|
|
177
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
178
|
-
purpose with or without fee is hereby granted.
|
|
179
|
-
|
|
180
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
181
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
182
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
183
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
184
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
185
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
186
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
187
|
-
***************************************************************************** */
|
|
188
|
-
/* global Reflect, Promise */
|
|
189
|
-
|
|
190
|
-
var extendStatics = function(d, b) {
|
|
191
|
-
extendStatics = Object.setPrototypeOf ||
|
|
192
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
193
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
194
|
-
return extendStatics(d, b);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
function __extends(d, b) {
|
|
198
|
-
if (typeof b !== "function" && b !== null)
|
|
199
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
200
|
-
extendStatics(d, b);
|
|
201
|
-
function __() { this.constructor = d; }
|
|
202
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var __assign = function() {
|
|
206
|
-
__assign = Object.assign || function __assign(t) {
|
|
207
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
208
|
-
s = arguments[i];
|
|
209
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
210
|
-
}
|
|
211
|
-
return t;
|
|
212
|
-
};
|
|
213
|
-
return __assign.apply(this, arguments);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
function __rest(s, e) {
|
|
217
|
-
var t = {};
|
|
218
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
219
|
-
t[p] = s[p];
|
|
220
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
221
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
222
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
223
|
-
t[p[i]] = s[p[i]];
|
|
224
|
-
}
|
|
225
|
-
return t;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function __decorate(decorators, target, key, desc) {
|
|
229
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
230
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
231
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
232
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
function __param(paramIndex, decorator) {
|
|
236
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
240
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
241
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
242
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
243
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
244
|
-
var _, done = false;
|
|
245
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
246
|
-
var context = {};
|
|
247
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
248
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
249
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
250
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
251
|
-
if (kind === "accessor") {
|
|
252
|
-
if (result === void 0) continue;
|
|
253
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
254
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
255
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
256
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
257
|
-
}
|
|
258
|
-
else if (_ = accept(result)) {
|
|
259
|
-
if (kind === "field") initializers.unshift(_);
|
|
260
|
-
else descriptor[key] = _;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
264
|
-
done = true;
|
|
265
|
-
}
|
|
266
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
267
|
-
var useValue = arguments.length > 2;
|
|
268
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
269
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
270
|
-
}
|
|
271
|
-
return useValue ? value : void 0;
|
|
272
|
-
}
|
|
273
|
-
function __propKey(x) {
|
|
274
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
275
|
-
}
|
|
276
|
-
function __setFunctionName(f, name, prefix) {
|
|
277
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
278
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
279
|
-
}
|
|
280
|
-
function __metadata(metadataKey, metadataValue) {
|
|
281
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
285
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
286
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
287
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
288
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
289
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
290
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
function __generator(thisArg, body) {
|
|
295
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
296
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
297
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
298
|
-
function step(op) {
|
|
299
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
300
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
301
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
302
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
303
|
-
switch (op[0]) {
|
|
304
|
-
case 0: case 1: t = op; break;
|
|
305
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
306
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
307
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
308
|
-
default:
|
|
309
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
310
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
311
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
312
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
313
|
-
if (t[2]) _.ops.pop();
|
|
314
|
-
_.trys.pop(); continue;
|
|
315
|
-
}
|
|
316
|
-
op = body.call(thisArg, _);
|
|
317
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
318
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
323
|
-
if (k2 === undefined) k2 = k;
|
|
324
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
325
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
326
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
327
|
-
}
|
|
328
|
-
Object.defineProperty(o, k2, desc);
|
|
329
|
-
}) : (function(o, m, k, k2) {
|
|
330
|
-
if (k2 === undefined) k2 = k;
|
|
331
|
-
o[k2] = m[k];
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
function __exportStar(m, o) {
|
|
335
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
function __values(o) {
|
|
339
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
340
|
-
if (m) return m.call(o);
|
|
341
|
-
if (o && typeof o.length === "number") return {
|
|
342
|
-
next: function () {
|
|
343
|
-
if (o && i >= o.length) o = void 0;
|
|
344
|
-
return { value: o && o[i++], done: !o };
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
function __read(o, n) {
|
|
351
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
352
|
-
if (!m) return o;
|
|
353
|
-
var i = m.call(o), r, ar = [], e;
|
|
354
|
-
try {
|
|
355
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
356
|
-
}
|
|
357
|
-
catch (error) { e = { error: error }; }
|
|
358
|
-
finally {
|
|
359
|
-
try {
|
|
360
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
361
|
-
}
|
|
362
|
-
finally { if (e) throw e.error; }
|
|
363
|
-
}
|
|
364
|
-
return ar;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/** @deprecated */
|
|
368
|
-
function __spread() {
|
|
369
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
370
|
-
ar = ar.concat(__read(arguments[i]));
|
|
371
|
-
return ar;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/** @deprecated */
|
|
375
|
-
function __spreadArrays() {
|
|
376
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
377
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
378
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
379
|
-
r[k] = a[j];
|
|
380
|
-
return r;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function __spreadArray(to, from, pack) {
|
|
384
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
385
|
-
if (ar || !(i in from)) {
|
|
386
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
387
|
-
ar[i] = from[i];
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
function __await(v) {
|
|
394
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
398
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
399
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
400
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
401
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
402
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
403
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
404
|
-
function fulfill(value) { resume("next", value); }
|
|
405
|
-
function reject(value) { resume("throw", value); }
|
|
406
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
function __asyncDelegator(o) {
|
|
410
|
-
var i, p;
|
|
411
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
412
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
function __asyncValues(o) {
|
|
416
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
417
|
-
var m = o[Symbol.asyncIterator], i;
|
|
418
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
419
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
420
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function __makeTemplateObject(cooked, raw) {
|
|
424
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
425
|
-
return cooked;
|
|
426
|
-
}
|
|
427
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
428
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
429
|
-
}) : function(o, v) {
|
|
430
|
-
o["default"] = v;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
function __importStar(mod) {
|
|
434
|
-
if (mod && mod.__esModule) return mod;
|
|
435
|
-
var result = {};
|
|
436
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
437
|
-
__setModuleDefault(result, mod);
|
|
438
|
-
return result;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
function __importDefault(mod) {
|
|
442
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
446
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
447
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
448
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
452
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
453
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
454
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
455
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
459
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
460
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
var tslib_es6 = {
|
|
464
|
-
__extends,
|
|
465
|
-
__assign,
|
|
466
|
-
__rest,
|
|
467
|
-
__decorate,
|
|
468
|
-
__param,
|
|
469
|
-
__metadata,
|
|
470
|
-
__awaiter,
|
|
471
|
-
__generator,
|
|
472
|
-
__createBinding,
|
|
473
|
-
__exportStar,
|
|
474
|
-
__values,
|
|
475
|
-
__read,
|
|
476
|
-
__spread,
|
|
477
|
-
__spreadArrays,
|
|
478
|
-
__spreadArray,
|
|
479
|
-
__await,
|
|
480
|
-
__asyncGenerator,
|
|
481
|
-
__asyncDelegator,
|
|
482
|
-
__asyncValues,
|
|
483
|
-
__makeTemplateObject,
|
|
484
|
-
__importStar,
|
|
485
|
-
__importDefault,
|
|
486
|
-
__classPrivateFieldGet,
|
|
487
|
-
__classPrivateFieldSet,
|
|
488
|
-
__classPrivateFieldIn,
|
|
126
|
+
|
|
127
|
+
const global_breakpoint_lg = {
|
|
128
|
+
"name": "--pf-t--global--breakpoint--lg",
|
|
129
|
+
"value": "62rem",
|
|
130
|
+
"var": "var(--pf-t--global--breakpoint--lg)"
|
|
489
131
|
};
|
|
490
132
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
133
|
+
const global_breakpoint_xl = {
|
|
134
|
+
"name": "--pf-t--global--breakpoint--xl",
|
|
135
|
+
"value": "75rem",
|
|
136
|
+
"var": "var(--pf-t--global--breakpoint--xl)"
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const global_breakpoint_2xl = {
|
|
140
|
+
"name": "--pf-t--global--breakpoint--2xl",
|
|
141
|
+
"value": "90.625rem",
|
|
142
|
+
"var": "var(--pf-t--global--breakpoint--2xl)"
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const global_breakpoint_height_sm = {
|
|
146
|
+
"name": "--pf-t--global--breakpoint--height--sm",
|
|
147
|
+
"value": "0rem",
|
|
148
|
+
"var": "var(--pf-t--global--breakpoint--height--sm)"
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
const global_breakpoint_height_md = {
|
|
152
|
+
"name": "--pf-t--global--breakpoint--height--md",
|
|
153
|
+
"value": "40rem",
|
|
154
|
+
"var": "var(--pf-t--global--breakpoint--height--md)"
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const global_breakpoint_height_lg = {
|
|
158
|
+
"name": "--pf-t--global--breakpoint--height--lg",
|
|
159
|
+
"value": "48rem",
|
|
160
|
+
"var": "var(--pf-t--global--breakpoint--height--lg)"
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const global_breakpoint_height_xl = {
|
|
164
|
+
"name": "--pf-t--global--breakpoint--height--xl",
|
|
165
|
+
"value": "60rem",
|
|
166
|
+
"var": "var(--pf-t--global--breakpoint--height--xl)"
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
const global_breakpoint_height_2xl = {
|
|
170
|
+
"name": "--pf-t--global--breakpoint--height--2xl",
|
|
171
|
+
"value": "80rem",
|
|
172
|
+
"var": "var(--pf-t--global--breakpoint--height--2xl)"
|
|
173
|
+
};
|
|
524
174
|
|
|
525
175
|
let currentId$1 = 0;
|
|
526
176
|
/**
|
|
@@ -534,7 +184,7 @@ function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath })
|
|
|
534
184
|
this.id = `icon-title-${currentId$1++}`;
|
|
535
185
|
}
|
|
536
186
|
render() {
|
|
537
|
-
const _b = this.props, { title, className } = _b, props = __rest(_b, ["title", "className"]);
|
|
187
|
+
const _b = this.props, { title, className } = _b, props = __rest$1(_b, ["title", "className"]);
|
|
538
188
|
const classes = className ? `pf-v6-svg ${className}` : 'pf-v6-svg';
|
|
539
189
|
const hasTitle = Boolean(title);
|
|
540
190
|
const viewBox = [xOffset, yOffset, width, height].join(' ');
|
|
@@ -4486,7 +4136,7 @@ const Popper = ({ trigger, popper, direction = 'down', position = 'start', place
|
|
|
4486
4136
|
}
|
|
4487
4137
|
return positionModifiers.top;
|
|
4488
4138
|
};
|
|
4489
|
-
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,
|
|
4139
|
+
const options = Object.assign({ className: css$1(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex,
|
|
4490
4140
|
opacity, transition: getOpacityTransition(animationDuration) }) }, attributes.popper);
|
|
4491
4141
|
const getMenuWithPopper = () => {
|
|
4492
4142
|
const localPopper = React.cloneElement(popper, options);
|
|
@@ -4804,7 +4454,7 @@ var TitleSizes;
|
|
|
4804
4454
|
const Title = (_a) => {
|
|
4805
4455
|
var { className = '', children = '', headingLevel: HeadingLevel, size, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4806
4456
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4807
|
-
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$u.title, size ? styles$u.modifiers[size] : styles$u.modifiers[HeadingLevel], className) }), children));
|
|
4457
|
+
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$1(styles$u.title, size ? styles$u.modifiers[size] : styles$u.modifiers[HeadingLevel], className) }), children));
|
|
4808
4458
|
};
|
|
4809
4459
|
Title.displayName = 'Title';
|
|
4810
4460
|
|
|
@@ -4872,7 +4522,7 @@ const Spinner = (_a) => {
|
|
|
4872
4522
|
var {
|
|
4873
4523
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4874
4524
|
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']);
|
|
4875
|
-
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),
|
|
4525
|
+
return (React.createElement("svg", Object.assign({ className: css$1(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),
|
|
4876
4526
|
React.createElement("circle", { className: styles$t.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })));
|
|
4877
4527
|
};
|
|
4878
4528
|
Spinner.displayName = 'Spinner';
|
|
@@ -4889,7 +4539,7 @@ var styles$s = {
|
|
|
4889
4539
|
|
|
4890
4540
|
const Badge = (_a) => {
|
|
4891
4541
|
var { isRead = false, isDisabled = false, className = '', children = '', screenReaderText } = _a, props = __rest$1(_a, ["isRead", "isDisabled", "className", "children", "screenReaderText"]);
|
|
4892
|
-
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) }),
|
|
4542
|
+
return (React.createElement("span", Object.assign({}, props, { className: css$1(styles$s.badge, (isRead ? styles$s.modifiers.read : styles$s.modifiers.unread), isDisabled && styles$s.modifiers.disabled, className) }),
|
|
4893
4543
|
children,
|
|
4894
4544
|
screenReaderText && React.createElement("span", { className: "pf-v6-screen-reader" }, screenReaderText)));
|
|
4895
4545
|
};
|
|
@@ -4945,13 +4595,13 @@ const ButtonBase = (_a) => {
|
|
|
4945
4595
|
return 0;
|
|
4946
4596
|
}
|
|
4947
4597
|
};
|
|
4948
|
-
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isAriaDisabled || (!isButtonElement && isDisabled), "aria-label": ariaLabel, className: css(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && !isButtonElement && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isClicked && buttonStyles.modifiers.clicked, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && buttonStyles.modifiers.noPadding, variant === ButtonVariant.stateful && buttonStyles.modifiers[state], size === ButtonSize.sm && buttonStyles.modifiers.small, size === ButtonSize.lg && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps),
|
|
4949
|
-
isLoading && (React.createElement("span", { className: css(buttonStyles.buttonProgress) },
|
|
4598
|
+
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isAriaDisabled || (!isButtonElement && isDisabled), "aria-label": ariaLabel, className: css$1(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && !isButtonElement && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isClicked && buttonStyles.modifiers.clicked, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && buttonStyles.modifiers.noPadding, variant === ButtonVariant.stateful && buttonStyles.modifiers[state], size === ButtonSize.sm && buttonStyles.modifiers.small, size === ButtonSize.lg && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps),
|
|
4599
|
+
isLoading && (React.createElement("span", { className: css$1(buttonStyles.buttonProgress) },
|
|
4950
4600
|
React.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4951
|
-
icon && (iconPosition === 'start' || iconPosition === 'left') && (React.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4952
|
-
children && React.createElement("span", { className: css('pf-v6-c-button__text') }, children),
|
|
4953
|
-
icon && (iconPosition === 'end' || iconPosition === 'right') && (React.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4954
|
-
countOptions && (React.createElement("span", { className: css(buttonStyles.buttonCount, countOptions.className) },
|
|
4601
|
+
icon && (iconPosition === 'start' || iconPosition === 'left') && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4602
|
+
children && React.createElement("span", { className: css$1('pf-v6-c-button__text') }, children),
|
|
4603
|
+
icon && (iconPosition === 'end' || iconPosition === 'right') && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4604
|
+
countOptions && (React.createElement("span", { className: css$1(buttonStyles.buttonCount, countOptions.className) },
|
|
4955
4605
|
React.createElement(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled }, countOptions.count)))));
|
|
4956
4606
|
};
|
|
4957
4607
|
const Button = React.forwardRef((props, ref) => (React.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -5006,19 +4656,19 @@ var styles$p = {
|
|
|
5006
4656
|
|
|
5007
4657
|
const Backdrop = (_a) => {
|
|
5008
4658
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5009
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles$r.backdrop, className) }), children));
|
|
4659
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$r.backdrop, className) }), children));
|
|
5010
4660
|
};
|
|
5011
4661
|
Backdrop.displayName = 'Backdrop';
|
|
5012
4662
|
|
|
5013
4663
|
const ModalBoxBody = (_a) => {
|
|
5014
4664
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5015
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles$q.modalBoxBody, className) }), children));
|
|
4665
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$q.modalBoxBody, className) }), children));
|
|
5016
4666
|
};
|
|
5017
4667
|
ModalBoxBody.displayName = 'ModalBoxBody';
|
|
5018
4668
|
|
|
5019
4669
|
const ModalBoxCloseButton = (_a) => {
|
|
5020
4670
|
var { className, onClose = () => undefined, 'aria-label': ariaLabel = 'Close', ouiaId } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label', "ouiaId"]);
|
|
5021
|
-
return (React.createElement("div", { className: css(styles$q.modalBoxClose, className) },
|
|
4671
|
+
return (React.createElement("div", { className: css$1(styles$q.modalBoxClose, className) },
|
|
5022
4672
|
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) }))));
|
|
5023
4673
|
};
|
|
5024
4674
|
ModalBoxCloseButton.displayName = 'ModalBoxCloseButton';
|
|
@@ -5035,27 +4685,27 @@ const ModalBox = (_a) => {
|
|
|
5035
4685
|
style = style || {};
|
|
5036
4686
|
style[c_modal_box_m_align_top_spacer.name] = positionOffset;
|
|
5037
4687
|
}
|
|
5038
|
-
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));
|
|
4688
|
+
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$1(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));
|
|
5039
4689
|
};
|
|
5040
4690
|
ModalBox.displayName = 'ModalBox';
|
|
5041
4691
|
|
|
5042
4692
|
const ModalBoxFooter = (_a) => {
|
|
5043
4693
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5044
|
-
return (React.createElement("footer", Object.assign({}, props, { className: css(styles$q.modalBoxFooter, className) }), children));
|
|
4694
|
+
return (React.createElement("footer", Object.assign({}, props, { className: css$1(styles$q.modalBoxFooter, className) }), children));
|
|
5045
4695
|
};
|
|
5046
4696
|
ModalBoxFooter.displayName = 'ModalBoxFooter';
|
|
5047
4697
|
|
|
5048
4698
|
const ModalBoxDescription = (_a) => {
|
|
5049
4699
|
var { children = null, className = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "id"]);
|
|
5050
|
-
return (React.createElement("div", Object.assign({}, props, { id: id, className: css(styles$q.modalBoxDescription, className) }), children));
|
|
4700
|
+
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$1(styles$q.modalBoxDescription, className) }), children));
|
|
5051
4701
|
};
|
|
5052
4702
|
ModalBoxDescription.displayName = 'ModalBoxDescription';
|
|
5053
4703
|
|
|
5054
4704
|
const ModalBoxHeader = (_a) => {
|
|
5055
4705
|
var { children = null, className = '', help = null } = _a, props = __rest$1(_a, ["children", "className", "help"]);
|
|
5056
|
-
return (React.createElement("header", Object.assign({ className: css(styles$q.modalBoxHeader, help && styles$q.modifiers.help, className) }, props),
|
|
4706
|
+
return (React.createElement("header", Object.assign({ className: css$1(styles$q.modalBoxHeader, help && styles$q.modifiers.help, className) }, props),
|
|
5057
4707
|
help && (React.createElement(React.Fragment, null,
|
|
5058
|
-
React.createElement("div", { className: css(styles$q.modalBoxHeaderMain) }, children),
|
|
4708
|
+
React.createElement("div", { className: css$1(styles$q.modalBoxHeaderMain) }, children),
|
|
5059
4709
|
React.createElement("div", { className: `${styles$q.modalBoxHeader}-help` }, help))),
|
|
5060
4710
|
!help && children));
|
|
5061
4711
|
};
|
|
@@ -5084,13 +4734,13 @@ var styles$o = {
|
|
|
5084
4734
|
|
|
5085
4735
|
const TooltipContent = (_a) => {
|
|
5086
4736
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
5087
|
-
return (React.createElement("div", Object.assign({ className: css(styles$o.tooltipContent, isLeftAligned && styles$o.modifiers.textAlignLeft, className) }, props), children));
|
|
4737
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipContent, isLeftAligned && styles$o.modifiers.textAlignLeft, className) }, props), children));
|
|
5088
4738
|
};
|
|
5089
4739
|
TooltipContent.displayName = 'TooltipContent';
|
|
5090
4740
|
|
|
5091
4741
|
const TooltipArrow = (_a) => {
|
|
5092
4742
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
5093
|
-
return React.createElement("div", Object.assign({ className: css(styles$o.tooltipArrow, className) }, props));
|
|
4743
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipArrow, className) }, props));
|
|
5094
4744
|
};
|
|
5095
4745
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
5096
4746
|
|
|
@@ -5174,7 +4824,7 @@ const Tooltip = (_a) => {
|
|
|
5174
4824
|
'right-end': styles$o.modifiers.rightBottom
|
|
5175
4825
|
};
|
|
5176
4826
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
5177
|
-
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$o.tooltip, className), role: "tooltip", id: id, style: {
|
|
4827
|
+
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$1(styles$o.tooltip, className), role: "tooltip", id: id, style: {
|
|
5178
4828
|
maxWidth: hasCustomMaxWidth ? maxWidth : null
|
|
5179
4829
|
}, ref: popperRef }, rest),
|
|
5180
4830
|
React.createElement(TooltipArrow, null),
|
|
@@ -5222,10 +4872,10 @@ const ModalBoxTitle = (_a) => {
|
|
|
5222
4872
|
useIsomorphicLayoutEffect(() => {
|
|
5223
4873
|
setHasTooltip(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
|
|
5224
4874
|
}, []);
|
|
5225
|
-
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css(styles$q.modalBoxTitle, titleIconVariant && styles$q.modifiers.icon, className) }, props),
|
|
5226
|
-
titleIconVariant && (React.createElement("span", { className: css(styles$q.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
4875
|
+
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$1(styles$q.modalBoxTitle, titleIconVariant && styles$q.modifiers.icon, className) }, props),
|
|
4876
|
+
titleIconVariant && (React.createElement("span", { className: css$1(styles$q.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
5227
4877
|
label && React.createElement("span", { className: "pf-v6-screen-reader" }, label),
|
|
5228
|
-
React.createElement("span", { className: css(styles$q.modalBoxTitleText) }, title)));
|
|
4878
|
+
React.createElement("span", { className: css$1(styles$q.modalBoxTitleText) }, title)));
|
|
5229
4879
|
return hasTooltip ? React.createElement(Tooltip, { content: title }, content) : content;
|
|
5230
4880
|
};
|
|
5231
4881
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
@@ -5259,7 +4909,7 @@ const ModalContent = (_a) => {
|
|
|
5259
4909
|
}
|
|
5260
4910
|
return idRefList.join(' ');
|
|
5261
4911
|
};
|
|
5262
|
-
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 && {
|
|
4912
|
+
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, className: css$1(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 && {
|
|
5263
4913
|
'--pf-v6-c-modal-box--MaxWidth': typeof maxWidth !== 'number' ? maxWidth : `${maxWidth}px`
|
|
5264
4914
|
})) }),
|
|
5265
4915
|
showClose && React.createElement(ModalBoxCloseButton, { onClose: (event) => onClose(event), ouiaId: ouiaId }),
|
|
@@ -5273,7 +4923,7 @@ const ModalContent = (_a) => {
|
|
|
5273
4923
|
// FocusTrap's initialFocus can accept false as a value to prevent initial focus.
|
|
5274
4924
|
// We want to prevent this in case false is ever passed in.
|
|
5275
4925
|
initialFocus: elementToFocus || undefined
|
|
5276
|
-
}, className: css(styles$p.bullseye) }, modalBox)));
|
|
4926
|
+
}, className: css$1(styles$p.bullseye) }, modalBox)));
|
|
5277
4927
|
};
|
|
5278
4928
|
ModalContent.displayName = 'ModalContent';
|
|
5279
4929
|
|
|
@@ -5333,10 +4983,10 @@ class Modal$1 extends React.Component {
|
|
|
5333
4983
|
target.appendChild(container);
|
|
5334
4984
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
5335
4985
|
if (this.props.isOpen) {
|
|
5336
|
-
target.classList.add(css(styles$r.backdropOpen));
|
|
4986
|
+
target.classList.add(css$1(styles$r.backdropOpen));
|
|
5337
4987
|
}
|
|
5338
4988
|
else {
|
|
5339
|
-
target.classList.remove(css(styles$r.backdropOpen));
|
|
4989
|
+
target.classList.remove(css$1(styles$r.backdropOpen));
|
|
5340
4990
|
}
|
|
5341
4991
|
if (!title && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
5342
4992
|
// eslint-disable-next-line no-console
|
|
@@ -5351,11 +5001,11 @@ class Modal$1 extends React.Component {
|
|
|
5351
5001
|
const { appendTo } = this.props;
|
|
5352
5002
|
const target = this.getElement(appendTo);
|
|
5353
5003
|
if (this.props.isOpen) {
|
|
5354
|
-
target.classList.add(css(styles$r.backdropOpen));
|
|
5004
|
+
target.classList.add(css$1(styles$r.backdropOpen));
|
|
5355
5005
|
this.toggleSiblingsFromScreenReaders(true);
|
|
5356
5006
|
}
|
|
5357
5007
|
else {
|
|
5358
|
-
target.classList.remove(css(styles$r.backdropOpen));
|
|
5008
|
+
target.classList.remove(css$1(styles$r.backdropOpen));
|
|
5359
5009
|
this.toggleSiblingsFromScreenReaders(false);
|
|
5360
5010
|
}
|
|
5361
5011
|
}
|
|
@@ -5366,7 +5016,7 @@ class Modal$1 extends React.Component {
|
|
|
5366
5016
|
target.removeChild(this.state.container);
|
|
5367
5017
|
}
|
|
5368
5018
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
5369
|
-
target.classList.remove(css(styles$r.backdropOpen));
|
|
5019
|
+
target.classList.remove(css$1(styles$r.backdropOpen));
|
|
5370
5020
|
this.toggleSiblingsFromScreenReaders(false);
|
|
5371
5021
|
}
|
|
5372
5022
|
render() {
|
|
@@ -5428,7 +5078,7 @@ const AccordionItemContext = React.createContext({});
|
|
|
5428
5078
|
const Accordion = (_a) => {
|
|
5429
5079
|
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"]);
|
|
5430
5080
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
5431
|
-
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),
|
|
5081
|
+
return (React.createElement(AccordionList, Object.assign({ className: css$1(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),
|
|
5432
5082
|
React.createElement(AccordionContext.Provider, { value: {
|
|
5433
5083
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
5434
5084
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel,
|
|
@@ -5439,7 +5089,7 @@ Accordion.displayName = 'Accordion';
|
|
|
5439
5089
|
|
|
5440
5090
|
const AccordionExpandableContentBody = (_a) => {
|
|
5441
5091
|
var { children = null } = _a, props = __rest$1(_a, ["children"]);
|
|
5442
|
-
return (React.createElement("div", Object.assign({ className: css(styles$n.accordionExpandableContentBody) }, props), children));
|
|
5092
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$n.accordionExpandableContentBody) }, props), children));
|
|
5443
5093
|
};
|
|
5444
5094
|
AccordionExpandableContentBody.displayName = 'AccordionExpandableContentBody';
|
|
5445
5095
|
|
|
@@ -5459,7 +5109,7 @@ const AccordionContent = (_a) => {
|
|
|
5459
5109
|
}, [containerRef, isFixed, isExpanded]);
|
|
5460
5110
|
return (React.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
5461
5111
|
const Container = component || ContentContainer;
|
|
5462
|
-
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))));
|
|
5112
|
+
return (React.createElement(Container, Object.assign({ ref: containerRef, id: id, className: css$1(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))));
|
|
5463
5113
|
}));
|
|
5464
5114
|
};
|
|
5465
5115
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -5469,7 +5119,7 @@ const AccordionItem = (_a) => {
|
|
|
5469
5119
|
return (React.createElement(AccordionItemContext.Provider, { value: {
|
|
5470
5120
|
isExpanded: isExpandedProp
|
|
5471
5121
|
} },
|
|
5472
|
-
React.createElement("div", Object.assign({ className: css(styles$n.accordionItem, isExpandedProp && styles$n.modifiers.expanded, className) }, props), children)));
|
|
5122
|
+
React.createElement("div", Object.assign({ className: css$1(styles$n.accordionItem, isExpandedProp && styles$n.modifiers.expanded, className) }, props), children)));
|
|
5473
5123
|
};
|
|
5474
5124
|
AccordionItem.displayName = 'AccordionItem';
|
|
5475
5125
|
|
|
@@ -5486,16 +5136,16 @@ const AngleRightIcon = createIcon(AngleRightIconConfig);
|
|
|
5486
5136
|
|
|
5487
5137
|
const AccordionToggle = (_a) => {
|
|
5488
5138
|
var { className = '', id, children = null, component } = _a, props = __rest$1(_a, ["className", "id", "children", "component"]);
|
|
5489
|
-
const renderToggleIcon = () => (React.createElement("span", { className: css(styles$n.accordionToggleIcon) },
|
|
5139
|
+
const renderToggleIcon = () => (React.createElement("span", { className: css$1(styles$n.accordionToggleIcon) },
|
|
5490
5140
|
React.createElement(AngleRightIcon, null)));
|
|
5491
5141
|
const { isExpanded } = React.useContext(AccordionItemContext);
|
|
5492
5142
|
return (React.createElement(AccordionContext.Consumer, null, ({ ToggleContainer, togglePosition }) => {
|
|
5493
5143
|
const Container = component || ToggleContainer;
|
|
5494
5144
|
const isToggleStartPositioned = togglePosition === 'start';
|
|
5495
5145
|
return (React.createElement(Container, null,
|
|
5496
|
-
React.createElement("button", Object.assign({ id: id, className: css(styles$n.accordionToggle, isExpanded && styles$n.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
5146
|
+
React.createElement("button", Object.assign({ id: id, className: css$1(styles$n.accordionToggle, isExpanded && styles$n.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
5497
5147
|
isToggleStartPositioned && renderToggleIcon(),
|
|
5498
|
-
React.createElement("span", { className: css(styles$n.accordionToggleText) }, children),
|
|
5148
|
+
React.createElement("span", { className: css$1(styles$n.accordionToggleText) }, children),
|
|
5499
5149
|
!isToggleStartPositioned && renderToggleIcon())));
|
|
5500
5150
|
}));
|
|
5501
5151
|
};
|
|
@@ -5511,19 +5161,19 @@ var styles$m = {
|
|
|
5511
5161
|
|
|
5512
5162
|
const ActionList = (_a) => {
|
|
5513
5163
|
var { children, isIconList, className } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
5514
|
-
return (React.createElement("div", Object.assign({ className: css(styles$m.actionList, isIconList && styles$m.modifiers.icons, className) }, props), children));
|
|
5164
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$m.actionList, isIconList && styles$m.modifiers.icons, className) }, props), children));
|
|
5515
5165
|
};
|
|
5516
5166
|
ActionList.displayName = 'ActionList';
|
|
5517
5167
|
|
|
5518
5168
|
const ActionListGroup = (_a) => {
|
|
5519
5169
|
var { children, className, isIconGroup } = _a, props = __rest$1(_a, ["children", "className", "isIconGroup"]);
|
|
5520
|
-
return (React.createElement("div", Object.assign({ className: css(styles$m.actionListGroup, isIconGroup && styles$m.modifiers.icons, className) }, props), children));
|
|
5170
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$m.actionListGroup, isIconGroup && styles$m.modifiers.icons, className) }, props), children));
|
|
5521
5171
|
};
|
|
5522
5172
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
5523
5173
|
|
|
5524
5174
|
const ActionListItem = (_a) => {
|
|
5525
5175
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
5526
|
-
return (React.createElement("div", Object.assign({ className: css(`${styles$m.actionList}__item`, className) }, props), children));
|
|
5176
|
+
return (React.createElement("div", Object.assign({ className: css$1(`${styles$m.actionList}__item`, className) }, props), children));
|
|
5527
5177
|
};
|
|
5528
5178
|
ActionListItem.displayName = 'ActionListItem';
|
|
5529
5179
|
|
|
@@ -5562,7 +5212,7 @@ const variantIcons = {
|
|
|
5562
5212
|
const AlertIcon = (_a) => {
|
|
5563
5213
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
5564
5214
|
const Icon = variantIcons[variant];
|
|
5565
|
-
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css(styles$l.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
5215
|
+
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$1(styles$l.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
5566
5216
|
};
|
|
5567
5217
|
|
|
5568
5218
|
const AlertContext = React.createContext(null);
|
|
@@ -5576,7 +5226,7 @@ const c_alert__title_max_lines = {
|
|
|
5576
5226
|
const AlertToggleExpandButton = (_a) => {
|
|
5577
5227
|
var { 'aria-label': ariaLabel = '', variantLabel, onToggleExpand, isExpanded = false } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
5578
5228
|
const { title, variantLabel: alertVariantLabel } = React.useContext(AlertContext);
|
|
5579
|
-
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) },
|
|
5229
|
+
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$1(styles$l.alertToggleIcon) },
|
|
5580
5230
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })) })));
|
|
5581
5231
|
};
|
|
5582
5232
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5661,20 +5311,20 @@ const Alert = (_a) => {
|
|
|
5661
5311
|
if (dismissed) {
|
|
5662
5312
|
return null;
|
|
5663
5313
|
}
|
|
5664
|
-
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$l.alertTitle, truncateTitle && styles$l.modifiers.truncate) }), getHeadingContent));
|
|
5665
|
-
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 && {
|
|
5314
|
+
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$1(styles$l.alertTitle, truncateTitle && styles$l.modifiers.truncate) }), getHeadingContent));
|
|
5315
|
+
return (React.createElement("div", Object.assign({ ref: divRef, className: css$1(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 && {
|
|
5666
5316
|
'aria-live': 'polite',
|
|
5667
5317
|
'aria-atomic': 'false'
|
|
5668
5318
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave, id: id }, props),
|
|
5669
5319
|
isExpandable && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5670
|
-
React.createElement("div", { className: css(styles$l.alertToggle) },
|
|
5320
|
+
React.createElement("div", { className: css$1(styles$l.alertToggle) },
|
|
5671
5321
|
React.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5672
5322
|
React.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5673
5323
|
isTooltipVisible ? (React.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5674
5324
|
actionClose && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5675
|
-
React.createElement("div", { className: css(styles$l.alertAction) }, actionClose))),
|
|
5676
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css(styles$l.alertDescription) }, children)),
|
|
5677
|
-
actionLinks && React.createElement("div", { className: css(styles$l.alertActionGroup) }, actionLinks)));
|
|
5325
|
+
React.createElement("div", { className: css$1(styles$l.alertAction) }, actionClose))),
|
|
5326
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$1(styles$l.alertDescription) }, children)),
|
|
5327
|
+
actionLinks && React.createElement("div", { className: css$1(styles$l.alertActionGroup) }, actionLinks)));
|
|
5678
5328
|
};
|
|
5679
5329
|
Alert.displayName = 'Alert';
|
|
5680
5330
|
|
|
@@ -5733,7 +5383,7 @@ const statusIcons$1 = {
|
|
|
5733
5383
|
const FormControlIcon = (_a) => {
|
|
5734
5384
|
var { status, customIcon, className } = _a, props = __rest$1(_a, ["status", "customIcon", "className"]);
|
|
5735
5385
|
const StatusIcon = status && statusIcons$1[status];
|
|
5736
|
-
return (React.createElement("span", Object.assign({ className: css(formStyles.formControlIcon, status && formStyles.modifiers.status, className) }, props), customIcon || React.createElement(StatusIcon, null)));
|
|
5386
|
+
return (React.createElement("span", Object.assign({ className: css$1(formStyles.formControlIcon, status && formStyles.modifiers.status, className) }, props), customIcon || React.createElement(StatusIcon, null)));
|
|
5737
5387
|
};
|
|
5738
5388
|
|
|
5739
5389
|
var TextInputTypes;
|
|
@@ -5822,9 +5472,9 @@ class TextInputBase extends React.Component {
|
|
|
5822
5472
|
const ariaExpandedProps = expandedProps
|
|
5823
5473
|
? { 'aria-expanded': expandedProps === null || expandedProps === void 0 ? void 0 : expandedProps.isExpanded, 'aria-controls': expandedProps === null || expandedProps === void 0 ? void 0 : expandedProps.ariaControls, role: 'combobox' }
|
|
5824
5474
|
: {};
|
|
5825
|
-
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) },
|
|
5475
|
+
return (React.createElement("span", { className: css$1(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) },
|
|
5826
5476
|
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))),
|
|
5827
|
-
(customIcon || hasStatusIcon) && (React.createElement("span", { className: css(formStyles.formControlUtilities) },
|
|
5477
|
+
(customIcon || hasStatusIcon) && (React.createElement("span", { className: css$1(formStyles.formControlUtilities) },
|
|
5828
5478
|
customIcon && React.createElement(FormControlIcon, { customIcon: customIcon }),
|
|
5829
5479
|
hasStatusIcon && React.createElement(FormControlIcon, { status: validated })))));
|
|
5830
5480
|
}
|
|
@@ -6087,7 +5737,7 @@ class MenuBase extends React.Component {
|
|
|
6087
5737
|
}, noHorizontalArrowHandling: document.activeElement &&
|
|
6088
5738
|
(document.activeElement.classList.contains(breadcrumbStyles.breadcrumbLink) ||
|
|
6089
5739
|
document.activeElement.tagName === 'INPUT'), noEnterHandling: true, noSpaceHandling: true })),
|
|
6090
|
-
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)));
|
|
5740
|
+
React.createElement("div", Object.assign({ id: id, className: css$1(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)));
|
|
6091
5741
|
}
|
|
6092
5742
|
}
|
|
6093
5743
|
MenuBase.displayName = 'Menu';
|
|
@@ -6141,7 +5791,7 @@ const MenuContent = React.forwardRef((props, ref) => {
|
|
|
6141
5791
|
}
|
|
6142
5792
|
return ref || menuContentRef;
|
|
6143
5793
|
};
|
|
6144
|
-
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))));
|
|
5794
|
+
return (React.createElement(MenuContext.Consumer, null, ({ menuId, onGetMenuHeight }) => (React.createElement("div", Object.assign({}, rest, { className: css$1(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))));
|
|
6145
5795
|
});
|
|
6146
5796
|
MenuContent.displayName = 'MenuContent';
|
|
6147
5797
|
|
|
@@ -6237,22 +5887,22 @@ class Checkbox extends React.Component {
|
|
|
6237
5887
|
if ([false, true].includes(defaultChecked)) {
|
|
6238
5888
|
checkedProps.defaultChecked = defaultChecked;
|
|
6239
5889
|
}
|
|
6240
|
-
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))));
|
|
5890
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$1(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))));
|
|
6241
5891
|
const wrapWithLabel = (isLabelWrapped && !component) || component === 'label';
|
|
6242
5892
|
const Label = wrapWithLabel ? 'span' : 'label';
|
|
6243
|
-
const labelRendered = label ? (React.createElement(Label, { className: css(styles$k.checkLabel, isDisabled && styles$k.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined },
|
|
5893
|
+
const labelRendered = label ? (React.createElement(Label, { className: css$1(styles$k.checkLabel, isDisabled && styles$k.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined },
|
|
6244
5894
|
label,
|
|
6245
|
-
isRequired && (React.createElement("span", { className: css(styles$k.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))) : null;
|
|
5895
|
+
isRequired && (React.createElement("span", { className: css$1(styles$k.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))) : null;
|
|
6246
5896
|
const Component = component !== null && component !== void 0 ? component : (wrapWithLabel ? 'label' : 'div');
|
|
6247
5897
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
6248
|
-
return (React.createElement(Component, { className: css(styles$k.check, !label && styles$k.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
5898
|
+
return (React.createElement(Component, { className: css$1(styles$k.check, !label && styles$k.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
6249
5899
|
labelPosition === 'start' ? (React.createElement(React.Fragment, null,
|
|
6250
5900
|
labelRendered,
|
|
6251
5901
|
inputRendered)) : (React.createElement(React.Fragment, null,
|
|
6252
5902
|
inputRendered,
|
|
6253
5903
|
labelRendered)),
|
|
6254
|
-
description && React.createElement("span", { className: css(styles$k.checkDescription) }, description),
|
|
6255
|
-
body && React.createElement("span", { className: css(styles$k.checkBody) }, body)));
|
|
5904
|
+
description && React.createElement("span", { className: css$1(styles$k.checkDescription) }, description),
|
|
5905
|
+
body && React.createElement("span", { className: css$1(styles$k.checkBody) }, body)));
|
|
6256
5906
|
}
|
|
6257
5907
|
}
|
|
6258
5908
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -6287,7 +5937,7 @@ const MenuItemActionBase = (_a) => {
|
|
|
6287
5937
|
// event specified on the Menu
|
|
6288
5938
|
onActionClick && onActionClick(event, itemId, actionId);
|
|
6289
5939
|
};
|
|
6290
|
-
return (React.createElement("div", Object.assign({ className: css(menuStyles.menuItemAction, isFavorited !== null && 'pf-m-favorite', isFavorited && menuStyles.modifiers.favorited, className) }, props),
|
|
5940
|
+
return (React.createElement("div", Object.assign({ className: css$1(menuStyles.menuItemAction, isFavorited !== null && 'pf-m-favorite', isFavorited && menuStyles.modifiers.favorited, className) }, props),
|
|
6291
5941
|
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 })));
|
|
6292
5942
|
}))));
|
|
6293
5943
|
};
|
|
@@ -6487,7 +6137,7 @@ const MenuItemBase = (_a) => {
|
|
|
6487
6137
|
}, [isFocused]);
|
|
6488
6138
|
const isSelectMenu = menuRole === 'listbox';
|
|
6489
6139
|
const renderItem = (React.createElement(React.Fragment, null,
|
|
6490
|
-
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 && {
|
|
6140
|
+
React.createElement(GenerateId, null, (randomId) => (React.createElement(Component, Object.assign({ id: id, tabIndex: -1, className: css$1(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 && {
|
|
6491
6141
|
onClick: (event) => {
|
|
6492
6142
|
if (!isAriaDisabled) {
|
|
6493
6143
|
onItemSelect(event, onSelect);
|
|
@@ -6499,20 +6149,20 @@ const MenuItemBase = (_a) => {
|
|
|
6499
6149
|
}
|
|
6500
6150
|
}
|
|
6501
6151
|
}), (hasCheckbox && { htmlFor: randomId }), additionalProps),
|
|
6502
|
-
React.createElement("span", { className: css(menuStyles.menuItemMain) },
|
|
6503
|
-
direction === 'up' && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6152
|
+
React.createElement("span", { className: css$1(menuStyles.menuItemMain) },
|
|
6153
|
+
direction === 'up' && (React.createElement("span", { className: css$1(menuStyles.menuItemToggleIcon) },
|
|
6504
6154
|
React.createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
6505
|
-
icon && React.createElement("span", { className: css(menuStyles.menuItemIcon) }, icon),
|
|
6506
|
-
hasCheckbox && (React.createElement("span", { className: css(menuStyles.menuItemCheck) },
|
|
6155
|
+
icon && React.createElement("span", { className: css$1(menuStyles.menuItemIcon) }, icon),
|
|
6156
|
+
hasCheckbox && (React.createElement("span", { className: css$1(menuStyles.menuItemCheck) },
|
|
6507
6157
|
React.createElement(Checkbox, { id: randomId, component: "span", isChecked: isSelected || false, onChange: (event) => onItemSelect(event, onSelect), isDisabled: isDisabled, "aria-disabled": isAriaDisabled }))),
|
|
6508
|
-
React.createElement("span", { className: css(menuStyles.menuItemText) }, children),
|
|
6509
|
-
isExternalLink && (React.createElement("span", { className: css(menuStyles.menuItemExternalIcon) },
|
|
6158
|
+
React.createElement("span", { className: css$1(menuStyles.menuItemText) }, children),
|
|
6159
|
+
isExternalLink && (React.createElement("span", { className: css$1(menuStyles.menuItemExternalIcon) },
|
|
6510
6160
|
React.createElement(ExternalLinkAltIcon$1, { "aria-hidden": true }))),
|
|
6511
|
-
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6161
|
+
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css$1(menuStyles.menuItemToggleIcon) },
|
|
6512
6162
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
6513
|
-
getIsSelected() && (React.createElement("span", { className: css(menuStyles.menuItemSelectIcon) },
|
|
6163
|
+
getIsSelected() && (React.createElement("span", { className: css$1(menuStyles.menuItemSelectIcon) },
|
|
6514
6164
|
React.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6515
|
-
description && direction !== 'up' && (React.createElement("span", { className: css(menuStyles.menuItemDescription) },
|
|
6165
|
+
description && direction !== 'up' && (React.createElement("span", { className: css$1(menuStyles.menuItemDescription) },
|
|
6516
6166
|
React.createElement("span", null, description)))))),
|
|
6517
6167
|
flyoutVisible && (React.createElement(MenuContext.Provider, { value: { disableHover } },
|
|
6518
6168
|
React.createElement(FlyoutContext.Provider, { value: { direction: flyoutXDirection } }, flyoutMenu))),
|
|
@@ -6520,7 +6170,7 @@ const MenuItemBase = (_a) => {
|
|
|
6520
6170
|
React.createElement(MenuItemContext.Provider, { value: { itemId, isDisabled } },
|
|
6521
6171
|
actions,
|
|
6522
6172
|
isFavorited !== null && (React.createElement(MenuItemAction, { icon: "favorites", isFavorited: isFavorited, "aria-label": isFavorited ? 'starred' : 'not starred', onClick: (event) => onActionClick(event, itemId), tabIndex: -1, actionId: "fav" })))));
|
|
6523
|
-
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: () => {
|
|
6173
|
+
return (React.createElement("li", Object.assign({ className: css$1(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: () => {
|
|
6524
6174
|
if (!isAriaDisabled) {
|
|
6525
6175
|
onMouseOver();
|
|
6526
6176
|
}
|
|
@@ -6532,7 +6182,7 @@ MenuItem.displayName = 'MenuItem';
|
|
|
6532
6182
|
const MenuList = (_a) => {
|
|
6533
6183
|
var { children = null, className, isAriaMultiselectable = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable", 'aria-label']);
|
|
6534
6184
|
const { role } = React.useContext(MenuContext);
|
|
6535
|
-
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css(menuStyles.menuList, className), "aria-label": ariaLabel }, props), children));
|
|
6185
|
+
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css$1(menuStyles.menuList, className), "aria-label": ariaLabel }, props), children));
|
|
6536
6186
|
};
|
|
6537
6187
|
MenuList.displayName = 'MenuList';
|
|
6538
6188
|
|
|
@@ -6582,7 +6232,7 @@ const SelectBase = (_a) => {
|
|
|
6582
6232
|
window.removeEventListener('click', handleClick);
|
|
6583
6233
|
};
|
|
6584
6234
|
}, [isOpen, menuRef, toggleRef, onOpenChange, onOpenChangeKeys]);
|
|
6585
|
-
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css(className), ref: menuRef, onSelect: (event, value) => {
|
|
6235
|
+
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css$1(className), ref: menuRef, onSelect: (event, value) => {
|
|
6586
6236
|
onSelect && onSelect(event, value);
|
|
6587
6237
|
shouldFocusToggleOnSelect && toggleRef.current.focus();
|
|
6588
6238
|
}, 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),
|
|
@@ -6594,13 +6244,13 @@ Select.displayName = 'Select';
|
|
|
6594
6244
|
|
|
6595
6245
|
const SelectList = (_a) => {
|
|
6596
6246
|
var { children, className, isAriaMultiselectable = false } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable"]);
|
|
6597
|
-
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css(className) }, props), children));
|
|
6247
|
+
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css$1(className) }, props), children));
|
|
6598
6248
|
};
|
|
6599
6249
|
SelectList.displayName = 'SelectList';
|
|
6600
6250
|
|
|
6601
6251
|
const SelectOptionBase = (_a) => {
|
|
6602
6252
|
var { children, className, innerRef, value } = _a, props = __rest$1(_a, ["children", "className", "innerRef", "value"]);
|
|
6603
|
-
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css(className) }, props), children));
|
|
6253
|
+
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css$1(className) }, props), children));
|
|
6604
6254
|
};
|
|
6605
6255
|
const SelectOption = React__default.forwardRef((props, ref) => (React__default.createElement(SelectOptionBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6606
6256
|
SelectOption.displayName = 'SelectOption';
|
|
@@ -6682,28 +6332,28 @@ class MenuToggleBase extends React.Component {
|
|
|
6682
6332
|
break;
|
|
6683
6333
|
}
|
|
6684
6334
|
}
|
|
6685
|
-
const toggleControls = (React.createElement("span", { className: css(styles$j.menuToggleControls) },
|
|
6686
|
-
status !== undefined && React.createElement("span", { className: css(styles$j.menuToggleStatusIcon) }, _statusIcon),
|
|
6687
|
-
React.createElement("span", { className: css(styles$j.menuToggleToggleIcon) },
|
|
6335
|
+
const toggleControls = (React.createElement("span", { className: css$1(styles$j.menuToggleControls) },
|
|
6336
|
+
status !== undefined && React.createElement("span", { className: css$1(styles$j.menuToggleStatusIcon) }, _statusIcon),
|
|
6337
|
+
React.createElement("span", { className: css$1(styles$j.menuToggleToggleIcon) },
|
|
6688
6338
|
React.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
6689
6339
|
const content = (React.createElement(React.Fragment, null,
|
|
6690
|
-
icon && React.createElement("span", { className: css(styles$j.menuToggleIcon) }, icon),
|
|
6691
|
-
isTypeahead ? children : children && React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
|
|
6692
|
-
React.isValidElement(badge) && React.createElement("span", { className: css(styles$j.menuToggleCount) }, badge),
|
|
6693
|
-
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)));
|
|
6694
|
-
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, className);
|
|
6340
|
+
icon && React.createElement("span", { className: css$1(styles$j.menuToggleIcon) }, icon),
|
|
6341
|
+
isTypeahead ? children : children && React.createElement("span", { className: css$1(styles$j.menuToggleText) }, children),
|
|
6342
|
+
React.isValidElement(badge) && React.createElement("span", { className: css$1(styles$j.menuToggleCount) }, badge),
|
|
6343
|
+
isTypeahead ? (React.createElement("button", Object.assign({ type: "button", className: css$1(styles$j.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": ariaLabel || 'Menu toggle', tabIndex: -1 }, ouiaProps), toggleControls)) : (!isPlain && toggleControls)));
|
|
6344
|
+
const commonStyles = css$1(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, className);
|
|
6695
6345
|
const componentProps = Object.assign(Object.assign({ children: content }, (isDisabled && { disabled: true })), otherProps);
|
|
6696
6346
|
if (isTypeahead) {
|
|
6697
|
-
return (React.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
|
|
6347
|
+
return (React.createElement("div", Object.assign({ ref: innerRef, className: css$1(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
|
|
6698
6348
|
}
|
|
6699
6349
|
if (splitButtonOptions) {
|
|
6700
|
-
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 :
|
|
6350
|
+
return (React.createElement("div", { ref: innerRef, className: css$1(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 :
|
|
6701
6351
|
splitButtonOptions.items,
|
|
6702
|
-
React.createElement("button", Object.assign({ className: css(styles$j.menuToggleButton
|
|
6703
|
-
children && React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
|
|
6352
|
+
React.createElement("button", Object.assign({ className: css$1(styles$j.menuToggleButton), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick }, (children && { style: { display: 'flex', paddingLeft: 'var(--pf-v5-global--spacer--sm)' } }), otherProps, ouiaProps),
|
|
6353
|
+
children && React.createElement("span", { className: css$1(styles$j.menuToggleText) }, children),
|
|
6704
6354
|
toggleControls)));
|
|
6705
6355
|
}
|
|
6706
|
-
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)));
|
|
6356
|
+
return (React.createElement("button", Object.assign({ className: css$1(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps, ouiaProps)));
|
|
6707
6357
|
}
|
|
6708
6358
|
}
|
|
6709
6359
|
MenuToggleBase.defaultProps = {
|
|
@@ -6733,7 +6383,7 @@ const InputGroupBase = (_a) => {
|
|
|
6733
6383
|
var { className, children, innerRef } = _a, props = __rest$1(_a, ["className", "children", "innerRef"]);
|
|
6734
6384
|
const ref = React.useRef(null);
|
|
6735
6385
|
const inputGroupRef = innerRef || ref;
|
|
6736
|
-
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$i.inputGroup, className) }, props), children));
|
|
6386
|
+
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$1(styles$i.inputGroup, className) }, props), children));
|
|
6737
6387
|
};
|
|
6738
6388
|
InputGroupBase.displayName = 'InputGroupBase';
|
|
6739
6389
|
const InputGroup = React.forwardRef((props, ref) => (React.createElement(InputGroupBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -6741,7 +6391,7 @@ InputGroup.displayName = 'InputGroup';
|
|
|
6741
6391
|
|
|
6742
6392
|
const InputGroupItem = (_a) => {
|
|
6743
6393
|
var { className, children, isFill = false, isBox = false, isPlain, isDisabled } = _a, props = __rest$1(_a, ["className", "children", "isFill", "isBox", "isPlain", "isDisabled"]);
|
|
6744
|
-
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));
|
|
6394
|
+
return (React.createElement("div", Object.assign({ className: css$1(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));
|
|
6745
6395
|
};
|
|
6746
6396
|
InputGroupItem.displayName = 'InputGroupItem';
|
|
6747
6397
|
|
|
@@ -6750,6 +6400,7 @@ var styles$h = {
|
|
|
6750
6400
|
"card": "pf-v6-c-card",
|
|
6751
6401
|
"cardActions": "pf-v6-c-card__actions",
|
|
6752
6402
|
"cardBody": "pf-v6-c-card__body",
|
|
6403
|
+
"cardClickableAction": "pf-v6-c-card__clickable-action",
|
|
6753
6404
|
"cardExpandableContent": "pf-v6-c-card__expandable-content",
|
|
6754
6405
|
"cardFooter": "pf-v6-c-card__footer",
|
|
6755
6406
|
"cardHeader": "pf-v6-c-card__header",
|
|
@@ -6767,8 +6418,8 @@ var styles$h = {
|
|
|
6767
6418
|
"modifiers": {
|
|
6768
6419
|
"selectable": "pf-m-selectable",
|
|
6769
6420
|
"clickable": "pf-m-clickable",
|
|
6770
|
-
"selected": "pf-m-selected",
|
|
6771
6421
|
"current": "pf-m-current",
|
|
6422
|
+
"selected": "pf-m-selected",
|
|
6772
6423
|
"disabled": "pf-m-disabled",
|
|
6773
6424
|
"compact": "pf-m-compact",
|
|
6774
6425
|
"displayLg": "pf-m-display-lg",
|
|
@@ -6806,13 +6457,13 @@ const Card = (_a) => {
|
|
|
6806
6457
|
}
|
|
6807
6458
|
const getSelectableModifiers = () => {
|
|
6808
6459
|
if (isSelectable && isClickable) {
|
|
6809
|
-
return css(styles$h.modifiers.selectable, styles$h.modifiers.clickable, (isSelected || isClicked) && styles$h.modifiers.current);
|
|
6460
|
+
return css$1(styles$h.modifiers.selectable, styles$h.modifiers.clickable, (isSelected || isClicked) && styles$h.modifiers.current);
|
|
6810
6461
|
}
|
|
6811
6462
|
if (isSelectable) {
|
|
6812
|
-
return css(styles$h.modifiers.selectable, isSelected && styles$h.modifiers.selected);
|
|
6463
|
+
return css$1(styles$h.modifiers.selectable, isSelected && styles$h.modifiers.selected);
|
|
6813
6464
|
}
|
|
6814
6465
|
if (isClickable) {
|
|
6815
|
-
return css(styles$h.modifiers.clickable, isClicked && styles$h.modifiers.current);
|
|
6466
|
+
return css$1(styles$h.modifiers.clickable, isClicked && styles$h.modifiers.current);
|
|
6816
6467
|
}
|
|
6817
6468
|
return '';
|
|
6818
6469
|
};
|
|
@@ -6825,21 +6476,21 @@ const Card = (_a) => {
|
|
|
6825
6476
|
isClicked,
|
|
6826
6477
|
isDisabled
|
|
6827
6478
|
} },
|
|
6828
|
-
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)));
|
|
6479
|
+
React.createElement(Component, Object.assign({ id: id, className: css$1(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)));
|
|
6829
6480
|
};
|
|
6830
6481
|
Card.displayName = 'Card';
|
|
6831
6482
|
|
|
6832
6483
|
const CardBody = (_a) => {
|
|
6833
6484
|
var { children, className, component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
6834
6485
|
const Component = component;
|
|
6835
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardBody, !isFilled && styles$h.modifiers.noFill, className) }, props), children));
|
|
6486
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$h.cardBody, !isFilled && styles$h.modifiers.noFill, className) }, props), children));
|
|
6836
6487
|
};
|
|
6837
6488
|
CardBody.displayName = 'CardBody';
|
|
6838
6489
|
|
|
6839
6490
|
const CardFooter = (_a) => {
|
|
6840
6491
|
var { children, className, component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6841
6492
|
const Component = component;
|
|
6842
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardFooter, className) }, props), children));
|
|
6493
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$h.cardFooter, className) }, props), children));
|
|
6843
6494
|
};
|
|
6844
6495
|
CardFooter.displayName = 'CardFooter';
|
|
6845
6496
|
|
|
@@ -6848,26 +6499,26 @@ const CardTitle = (_a) => {
|
|
|
6848
6499
|
const { cardId } = React.useContext(CardContext);
|
|
6849
6500
|
const Component = component;
|
|
6850
6501
|
const titleId = cardId ? `${cardId}-title` : '';
|
|
6851
|
-
return (React.createElement("div", { className: css(styles$h.cardTitle) },
|
|
6852
|
-
React.createElement(Component, Object.assign({ className: css(styles$h.cardTitleText, className), id: titleId || undefined }, props), children)));
|
|
6502
|
+
return (React.createElement("div", { className: css$1(styles$h.cardTitle) },
|
|
6503
|
+
React.createElement(Component, Object.assign({ className: css$1(styles$h.cardTitleText, className), id: titleId || undefined }, props), children)));
|
|
6853
6504
|
};
|
|
6854
6505
|
CardTitle.displayName = 'CardTitle';
|
|
6855
6506
|
|
|
6856
6507
|
const CardHeaderMain = (_a) => {
|
|
6857
6508
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6858
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeaderMain, className) }, props), children));
|
|
6509
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardHeaderMain, className) }, props), children));
|
|
6859
6510
|
};
|
|
6860
6511
|
CardHeaderMain.displayName = 'CardHeaderMain';
|
|
6861
6512
|
|
|
6862
6513
|
const CardActions = (_a) => {
|
|
6863
6514
|
var { children, className, hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
6864
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardActions, hasNoOffset && styles$h.modifiers.noOffset, className) }, props), children));
|
|
6515
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardActions, hasNoOffset && styles$h.modifiers.noOffset, className) }, props), children));
|
|
6865
6516
|
};
|
|
6866
6517
|
CardActions.displayName = 'CardActions';
|
|
6867
6518
|
|
|
6868
6519
|
const CardSelectableActions = (_a) => {
|
|
6869
6520
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6870
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardSelectableActions, className) }, props), children));
|
|
6521
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardSelectableActions, className) }, props), children));
|
|
6871
6522
|
};
|
|
6872
6523
|
CardSelectableActions.displayName = 'CardSelectableActions';
|
|
6873
6524
|
|
|
@@ -6905,19 +6556,19 @@ class Radio extends React.Component {
|
|
|
6905
6556
|
// eslint-disable-next-line no-console
|
|
6906
6557
|
console.error('Radio:', 'id is required to make input accessible');
|
|
6907
6558
|
}
|
|
6908
|
-
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))));
|
|
6559
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$1(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))));
|
|
6909
6560
|
const wrapWithLabel = (isLabelWrapped && !component) || component === 'label';
|
|
6910
6561
|
const Label = wrapWithLabel ? 'span' : 'label';
|
|
6911
|
-
const labelRendered = label ? (React.createElement(Label, { className: css(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined }, label)) : null;
|
|
6562
|
+
const labelRendered = label ? (React.createElement(Label, { className: css$1(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled), htmlFor: !wrapWithLabel ? props.id : undefined }, label)) : null;
|
|
6912
6563
|
const Component = component !== null && component !== void 0 ? component : (wrapWithLabel ? 'label' : 'div');
|
|
6913
|
-
return (React.createElement(Component, { className: css(styles$g.radio, !label && styles$g.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
6564
|
+
return (React.createElement(Component, { className: css$1(styles$g.radio, !label && styles$g.modifiers.standalone, className), htmlFor: wrapWithLabel ? props.id : undefined },
|
|
6914
6565
|
labelPosition === 'start' ? (React.createElement(React.Fragment, null,
|
|
6915
6566
|
labelRendered,
|
|
6916
6567
|
inputRendered)) : (React.createElement(React.Fragment, null,
|
|
6917
6568
|
inputRendered,
|
|
6918
6569
|
labelRendered)),
|
|
6919
|
-
description && React.createElement("span", { className: css(styles$g.radioDescription) }, description),
|
|
6920
|
-
body && React.createElement("span", { className: css(styles$g.radioBody) }, body)));
|
|
6570
|
+
description && React.createElement("span", { className: css$1(styles$g.radioDescription) }, description),
|
|
6571
|
+
body && React.createElement("span", { className: css$1(styles$g.radioBody) }, body)));
|
|
6921
6572
|
}
|
|
6922
6573
|
}
|
|
6923
6574
|
Radio.displayName = 'Radio';
|
|
@@ -6931,10 +6582,10 @@ Radio.defaultProps = {
|
|
|
6931
6582
|
const CardHeader = (_a) => {
|
|
6932
6583
|
var { children, className, actions, selectableActions, id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "actions", "selectableActions", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
6933
6584
|
return (React.createElement(CardContext.Consumer, null, ({ cardId, isClickable, isSelectable, isSelected, isClicked, isDisabled: isCardDisabled }) => {
|
|
6934
|
-
const cardHeaderToggle = (React.createElement("div", { className: css(styles$h.cardHeaderToggle) },
|
|
6585
|
+
const cardHeaderToggle = (React.createElement("div", { className: css$1(styles$h.cardHeaderToggle) },
|
|
6935
6586
|
React.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: (evt) => {
|
|
6936
6587
|
onExpand(evt, cardId);
|
|
6937
|
-
} }, toggleButtonProps, { icon: React.createElement("span", { className: css(styles$h.cardHeaderToggleIcon) },
|
|
6588
|
+
} }, toggleButtonProps, { icon: React.createElement("span", { className: css$1(styles$h.cardHeaderToggleIcon) },
|
|
6938
6589
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })) }))));
|
|
6939
6590
|
const isClickableOrSelectableOnly = (isClickable && !isSelectable) || (isSelectable && !isClickable);
|
|
6940
6591
|
if ((actions === null || actions === void 0 ? void 0 : actions.actions) && isClickableOrSelectableOnly) {
|
|
@@ -6970,7 +6621,7 @@ const CardHeader = (_a) => {
|
|
|
6970
6621
|
}
|
|
6971
6622
|
return baseProps;
|
|
6972
6623
|
};
|
|
6973
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeader, isToggleRightAligned && styles$h.modifiers.toggleRight, className), id: id }, props),
|
|
6624
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardHeader, isToggleRightAligned && styles$h.modifiers.toggleRight, className), id: id }, props),
|
|
6974
6625
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
6975
6626
|
(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 :
|
|
6976
6627
|
actions.actions,
|
|
@@ -6992,10 +6643,10 @@ var styles$f = {
|
|
|
6992
6643
|
|
|
6993
6644
|
const CodeBlock = (_a) => {
|
|
6994
6645
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
6995
|
-
return (React.createElement("div", Object.assign({ className: css(styles$f.codeBlock, className) }, props),
|
|
6996
|
-
actions && (React.createElement("div", { className: css(styles$f.codeBlockHeader) },
|
|
6997
|
-
React.createElement("div", { className: css(styles$f.codeBlockActions) }, actions))),
|
|
6998
|
-
React.createElement("div", { className: css(styles$f.codeBlockContent) }, children)));
|
|
6646
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.codeBlock, className) }, props),
|
|
6647
|
+
actions && (React.createElement("div", { className: css$1(styles$f.codeBlockHeader) },
|
|
6648
|
+
React.createElement("div", { className: css$1(styles$f.codeBlockActions) }, actions))),
|
|
6649
|
+
React.createElement("div", { className: css$1(styles$f.codeBlockContent) }, children)));
|
|
6999
6650
|
};
|
|
7000
6651
|
CodeBlock.displayName = 'CodeBlock';
|
|
7001
6652
|
|
|
@@ -7047,7 +6698,7 @@ const Content = (_a) => {
|
|
|
7047
6698
|
const Component = wrappingComponent;
|
|
7048
6699
|
const ouiaProps = useOUIAProps(Content.displayName, ouiaId, ouiaSafe);
|
|
7049
6700
|
const isList = ['ul', 'ol', 'dl'].includes(wrappingComponent);
|
|
7050
|
-
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(componentStyles[wrappingComponent], isList && isPlainList && styles$v.modifiers.plain, isVisitedLink && styles$v.modifiers.visited, className) }), children));
|
|
6701
|
+
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css$1(componentStyles[wrappingComponent], isList && isPlainList && styles$v.modifiers.plain, isVisitedLink && styles$v.modifiers.visited, className) }), children));
|
|
7051
6702
|
};
|
|
7052
6703
|
Content.displayName = 'Content';
|
|
7053
6704
|
|
|
@@ -7089,33 +6740,33 @@ const PopoverContext = React.createContext({});
|
|
|
7089
6740
|
|
|
7090
6741
|
const PopoverContent = (_a) => {
|
|
7091
6742
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7092
|
-
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverContent, className) }, props), children));
|
|
6743
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.popoverContent, className) }, props), children));
|
|
7093
6744
|
};
|
|
7094
6745
|
PopoverContent.displayName = 'PopoverContent';
|
|
7095
6746
|
|
|
7096
6747
|
const PopoverBody = (_a) => {
|
|
7097
6748
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
7098
|
-
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverBody, className), id: id }, props), children));
|
|
6749
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.popoverBody, className), id: id }, props), children));
|
|
7099
6750
|
};
|
|
7100
6751
|
PopoverBody.displayName = 'PopoverBody';
|
|
7101
6752
|
|
|
7102
6753
|
const PopoverHeaderIcon = (_a) => {
|
|
7103
6754
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7104
|
-
return (React.createElement("span", Object.assign({ className: css(styles$e.popoverTitleIcon, className) }, props), children));
|
|
6755
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$e.popoverTitleIcon, className) }, props), children));
|
|
7105
6756
|
};
|
|
7106
6757
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
7107
6758
|
|
|
7108
6759
|
const PopoverHeaderText = (_a) => {
|
|
7109
6760
|
var { children, className, headingLevel } = _a, props = __rest$1(_a, ["children", "className", "headingLevel"]);
|
|
7110
6761
|
const HeadingLevel = headingLevel;
|
|
7111
|
-
return (React.createElement(HeadingLevel, Object.assign({ className: css(styles$e.popoverTitleText, className) }, props), children));
|
|
6762
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: css$1(styles$e.popoverTitleText, className) }, props), children));
|
|
7112
6763
|
};
|
|
7113
6764
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
7114
6765
|
|
|
7115
6766
|
const PopoverHeader = (_a) => {
|
|
7116
6767
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
7117
|
-
return (React.createElement("header", Object.assign({ className: css(styles$e.popoverHeader, className) }, props),
|
|
7118
|
-
React.createElement("div", { className: css(styles$e.popoverTitle), id: id },
|
|
6768
|
+
return (React.createElement("header", Object.assign({ className: css$1(styles$e.popoverHeader, className) }, props),
|
|
6769
|
+
React.createElement("div", { className: css$1(styles$e.popoverTitle), id: id },
|
|
7119
6770
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
7120
6771
|
React.createElement(PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
7121
6772
|
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-v6-screen-reader" }, alertSeverityScreenReaderText)),
|
|
@@ -7125,20 +6776,20 @@ PopoverHeader.displayName = 'PopoverHeader';
|
|
|
7125
6776
|
|
|
7126
6777
|
const PopoverFooter = (_a) => {
|
|
7127
6778
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7128
|
-
return (React.createElement("footer", Object.assign({ className: css(styles$e.popoverFooter, className) }, props), children));
|
|
6779
|
+
return (React.createElement("footer", Object.assign({ className: css$1(styles$e.popoverFooter, className) }, props), children));
|
|
7129
6780
|
};
|
|
7130
6781
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
7131
6782
|
|
|
7132
6783
|
const PopoverCloseButton = (_a) => {
|
|
7133
6784
|
var { onClose = () => undefined } = _a, props = __rest$1(_a, ["onClose"]);
|
|
7134
|
-
return (React.createElement("div", { className: css(styles$e.popoverClose) },
|
|
6785
|
+
return (React.createElement("div", { className: css$1(styles$e.popoverClose) },
|
|
7135
6786
|
React.createElement(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' }, icon: React.createElement(TimesIcon, null) }))));
|
|
7136
6787
|
};
|
|
7137
6788
|
PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
7138
6789
|
|
|
7139
6790
|
const PopoverArrow = (_a) => {
|
|
7140
6791
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
7141
|
-
return React.createElement("div", Object.assign({ className: css(styles$e.popoverArrow, className) }, props));
|
|
6792
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$e.popoverArrow, className) }, props));
|
|
7142
6793
|
};
|
|
7143
6794
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
7144
6795
|
|
|
@@ -7353,7 +7004,7 @@ const Popover = (_a) => {
|
|
|
7353
7004
|
}
|
|
7354
7005
|
return node;
|
|
7355
7006
|
}
|
|
7356
|
-
}, 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: {
|
|
7007
|
+
}, preventScrollOnDeactivate: true, className: css$1(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: {
|
|
7357
7008
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
7358
7009
|
maxWidth: hasCustomMaxWidth ? maxWidth : null
|
|
7359
7010
|
} }, rest),
|
|
@@ -7454,7 +7105,7 @@ var DividerVariant;
|
|
|
7454
7105
|
const Divider = (_a) => {
|
|
7455
7106
|
var { className, component = DividerVariant.hr, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "inset", "orientation"]);
|
|
7456
7107
|
const Component = component;
|
|
7457
|
-
return (React.createElement(Component, Object.assign({ className: css(dividerStyles.divider, formatBreakpointMods(inset, dividerStyles), formatBreakpointMods(orientation, dividerStyles), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
7108
|
+
return (React.createElement(Component, Object.assign({ className: css$1(dividerStyles.divider, formatBreakpointMods(inset, dividerStyles), formatBreakpointMods(orientation, dividerStyles), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
7458
7109
|
};
|
|
7459
7110
|
Divider.displayName = 'Divider';
|
|
7460
7111
|
|
|
@@ -7542,7 +7193,7 @@ const Drawer = (_a) => {
|
|
|
7542
7193
|
const drawerRef = React.useRef();
|
|
7543
7194
|
const drawerContentRef = React.useRef();
|
|
7544
7195
|
return (React.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
7545
|
-
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)));
|
|
7196
|
+
React.createElement("div", Object.assign({ className: css$1(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)));
|
|
7546
7197
|
};
|
|
7547
7198
|
Drawer.displayName = 'Drawer';
|
|
7548
7199
|
|
|
@@ -7550,7 +7201,7 @@ const DrawerActions = (_a) => {
|
|
|
7550
7201
|
var {
|
|
7551
7202
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7552
7203
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7553
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerActions, className) }, props), children));
|
|
7204
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerActions, className) }, props), children));
|
|
7554
7205
|
};
|
|
7555
7206
|
DrawerActions.displayName = 'DrawerActions';
|
|
7556
7207
|
|
|
@@ -7558,7 +7209,7 @@ const DrawerCloseButton = (_a) => {
|
|
|
7558
7209
|
var {
|
|
7559
7210
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7560
7211
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
7561
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerClose, className) }, props),
|
|
7212
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerClose, className) }, props),
|
|
7562
7213
|
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
7563
7214
|
React.createElement(TimesIcon, null))));
|
|
7564
7215
|
};
|
|
@@ -7568,7 +7219,7 @@ const DrawerMain = (_a) => {
|
|
|
7568
7219
|
var {
|
|
7569
7220
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7570
7221
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7571
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerMain, className) }, props), children));
|
|
7222
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerMain, className) }, props), children));
|
|
7572
7223
|
};
|
|
7573
7224
|
DrawerMain.displayName = 'DrawerMain';
|
|
7574
7225
|
|
|
@@ -7582,7 +7233,7 @@ const DrawerContent = (_a) => {
|
|
|
7582
7233
|
var { className, children, panelContent, colorVariant = DrawerContentColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
7583
7234
|
const { drawerContentRef } = React.useContext(DrawerContext);
|
|
7584
7235
|
return (React.createElement(DrawerMain, null,
|
|
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),
|
|
7236
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawerContent, colorVariant === DrawerContentColorVariant.primary && styles$d.modifiers.primary, colorVariant === DrawerContentColorVariant.secondary && styles$d.modifiers.secondary, className), ref: drawerContentRef }, props), children),
|
|
7586
7237
|
panelContent));
|
|
7587
7238
|
};
|
|
7588
7239
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -7591,7 +7242,7 @@ const DrawerContentBody = (_a) => {
|
|
|
7591
7242
|
var {
|
|
7592
7243
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7593
7244
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
7594
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerBody, hasPadding && styles$d.modifiers.padding, className) }, props), children));
|
|
7245
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasPadding && styles$d.modifiers.padding, className) }, props), children));
|
|
7595
7246
|
};
|
|
7596
7247
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
7597
7248
|
|
|
@@ -7599,7 +7250,7 @@ const DrawerHead = (_a) => {
|
|
|
7599
7250
|
var {
|
|
7600
7251
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7601
7252
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7602
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerHead, className) }, props), children));
|
|
7253
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerHead, className) }, props), children));
|
|
7603
7254
|
};
|
|
7604
7255
|
DrawerHead.displayName = 'DrawerHead';
|
|
7605
7256
|
|
|
@@ -7607,7 +7258,7 @@ const DrawerPanelBody = (_a) => {
|
|
|
7607
7258
|
var {
|
|
7608
7259
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7609
7260
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
7610
|
-
return (React.createElement("div", Object.assign({ className: css(styles$d.drawerBody, hasNoPadding && styles$d.modifiers.noPadding, className) }, props), children));
|
|
7261
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasNoPadding && styles$d.modifiers.noPadding, className) }, props), children));
|
|
7611
7262
|
};
|
|
7612
7263
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
7613
7264
|
|
|
@@ -7732,7 +7383,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7732
7383
|
e.preventDefault();
|
|
7733
7384
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
7734
7385
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
7735
|
-
drawerRef.current.classList.add(css(styles$d.modifiers.resizing));
|
|
7386
|
+
drawerRef.current.classList.add(css$1(styles$d.modifiers.resizing));
|
|
7736
7387
|
isResizing = true;
|
|
7737
7388
|
setInitialVals = true;
|
|
7738
7389
|
};
|
|
@@ -7787,7 +7438,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7787
7438
|
if (!isResizing) {
|
|
7788
7439
|
return;
|
|
7789
7440
|
}
|
|
7790
|
-
drawerRef.current.classList.remove(css(styles$d.modifiers.resizing));
|
|
7441
|
+
drawerRef.current.classList.remove(css$1(styles$d.modifiers.resizing));
|
|
7791
7442
|
isResizing = false;
|
|
7792
7443
|
onResize && onResize(e, currWidth, id);
|
|
7793
7444
|
setInitialVals = true;
|
|
@@ -7898,7 +7549,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7898
7549
|
escapeDeactivates: false
|
|
7899
7550
|
}
|
|
7900
7551
|
};
|
|
7901
|
-
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) => {
|
|
7552
|
+
return (React.createElement(Component, Object.assign({}, (isValidFocusTrap && focusTrapProps), { id: id || panelId, className: css$1(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) => {
|
|
7902
7553
|
if (ev.target === panel.current) {
|
|
7903
7554
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
7904
7555
|
onExpand(ev);
|
|
@@ -7912,9 +7563,9 @@ const DrawerPanelContent = (_a) => {
|
|
|
7912
7563
|
style: boundaryCssVars
|
|
7913
7564
|
}), props, { ref: panel }), isExpandedInternal && (React.createElement(React.Fragment, null,
|
|
7914
7565
|
isResizable && (React.createElement(React.Fragment, null,
|
|
7915
|
-
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 },
|
|
7916
|
-
React.createElement("div", { className: css(styles$d.drawerSplitterHandle), "aria-hidden": true })),
|
|
7917
|
-
React.createElement("div", { className: css(styles$d.drawerPanelMain) }, children))),
|
|
7566
|
+
React.createElement("div", { className: css$1(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 },
|
|
7567
|
+
React.createElement("div", { className: css$1(styles$d.drawerSplitterHandle), "aria-hidden": true })),
|
|
7568
|
+
React.createElement("div", { className: css$1(styles$d.drawerPanelMain) }, children))),
|
|
7918
7569
|
!isResizable && children))));
|
|
7919
7570
|
}));
|
|
7920
7571
|
};
|
|
@@ -7954,9 +7605,9 @@ var styles$c = {
|
|
|
7954
7605
|
const Icon = (_a) => {
|
|
7955
7606
|
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"]);
|
|
7956
7607
|
const _progressIcon = progressIcon !== null && progressIcon !== void 0 ? progressIcon : React.createElement(Spinner, { diameter: "1em", "aria-label": defaultProgressArialabel });
|
|
7957
|
-
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),
|
|
7958
|
-
React.createElement("span", { className: css(styles$c.iconContent, styles$c.modifiers[iconSize], styles$c.modifiers[status], shouldMirrorRTL && 'pf-v6-m-mirror-inline-rtl') }, children),
|
|
7959
|
-
isInProgress && (React.createElement("span", { className: css(styles$c.iconProgress, styles$c.modifiers[progressIconSize], className) }, _progressIcon))));
|
|
7608
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$c.icon, isInline && styles$c.modifiers.inline, isInProgress && styles$c.modifiers.inProgress, styles$c.modifiers[size], className) }, props),
|
|
7609
|
+
React.createElement("span", { className: css$1(styles$c.iconContent, styles$c.modifiers[iconSize], styles$c.modifiers[status], shouldMirrorRTL && 'pf-v6-m-mirror-inline-rtl') }, children),
|
|
7610
|
+
isInProgress && (React.createElement("span", { className: css$1(styles$c.iconProgress, styles$c.modifiers[progressIconSize], className) }, _progressIcon))));
|
|
7960
7611
|
};
|
|
7961
7612
|
Icon.displayName = 'Icon';
|
|
7962
7613
|
|
|
@@ -8046,10 +7697,10 @@ var styles$b = {
|
|
|
8046
7697
|
|
|
8047
7698
|
const ActionGroup = (_a) => {
|
|
8048
7699
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8049
|
-
const customClassName = css(styles$b.formGroup, styles$b.modifiers.action, className);
|
|
8050
|
-
const formActionsComponent = React.createElement("div", { className: css(styles$b.formActions) }, children);
|
|
7700
|
+
const customClassName = css$1(styles$b.formGroup, styles$b.modifiers.action, className);
|
|
7701
|
+
const formActionsComponent = React.createElement("div", { className: css$1(styles$b.formActions) }, children);
|
|
8051
7702
|
return (React.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
8052
|
-
React.createElement("div", { className: css(styles$b.formGroupControl) }, formActionsComponent)));
|
|
7703
|
+
React.createElement("div", { className: css$1(styles$b.formGroupControl) }, formActionsComponent)));
|
|
8053
7704
|
};
|
|
8054
7705
|
ActionGroup.displayName = 'ActionGroup';
|
|
8055
7706
|
|
|
@@ -8063,7 +7714,7 @@ const FormBase = (_a) => {
|
|
|
8063
7714
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
8064
7715
|
return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
8065
7716
|
style: Object.assign({ [c_form_m_limit_width_MaxWidth.name]: maxWidth }, props.style)
|
|
8066
|
-
}), props, { className: css(styles$b.form, isHorizontal && styles$b.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$b.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
7717
|
+
}), props, { className: css$1(styles$b.form, isHorizontal && styles$b.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$b.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
8067
7718
|
};
|
|
8068
7719
|
const Form = React.forwardRef((props, ref) => React.createElement(FormBase, Object.assign({ innerRef: ref }, props)));
|
|
8069
7720
|
Form.displayName = 'Form';
|
|
@@ -8073,20 +7724,20 @@ const FormGroup = (_a) => {
|
|
|
8073
7724
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
8074
7725
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
8075
7726
|
const labelContent = (React.createElement(React.Fragment, null,
|
|
8076
|
-
React.createElement(LabelComponent, Object.assign({ className: css(styles$b.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
8077
|
-
React.createElement("span", { className: css(styles$b.formLabelText) }, label),
|
|
8078
|
-
isRequired && (React.createElement("span", { className: css(styles$b.formLabelRequired), "aria-hidden": "true" },
|
|
7727
|
+
React.createElement(LabelComponent, Object.assign({ className: css$1(styles$b.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
7728
|
+
React.createElement("span", { className: css$1(styles$b.formLabelText) }, label),
|
|
7729
|
+
isRequired && (React.createElement("span", { className: css$1(styles$b.formLabelRequired), "aria-hidden": "true" },
|
|
8079
7730
|
' ',
|
|
8080
7731
|
ASTERISK))),
|
|
8081
7732
|
React.createElement(React.Fragment, null, "\u00A0\u00A0"),
|
|
8082
7733
|
React.isValidElement(labelHelp) && React.createElement("span", { className: styles$b.formGroupLabelHelp }, labelHelp)));
|
|
8083
|
-
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),
|
|
8084
|
-
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` })),
|
|
7734
|
+
return (React.createElement(GenerateId, null, (randomId) => (React.createElement("div", Object.assign({ className: css$1(styles$b.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
7735
|
+
label && (React.createElement("div", Object.assign({ className: css$1(styles$b.formGroupLabel, labelInfo && styles$b.modifiers.info, hasNoPaddingTop && styles$b.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
8085
7736
|
labelInfo && (React.createElement(React.Fragment, null,
|
|
8086
|
-
React.createElement("div", { className: css(styles$b.formGroupLabelMain) }, labelContent),
|
|
8087
|
-
React.createElement("div", { className: css(styles$b.formGroupLabelInfo) }, labelInfo))),
|
|
7737
|
+
React.createElement("div", { className: css$1(styles$b.formGroupLabelMain) }, labelContent),
|
|
7738
|
+
React.createElement("div", { className: css$1(styles$b.formGroupLabelInfo) }, labelInfo))),
|
|
8088
7739
|
!labelInfo && labelContent)),
|
|
8089
|
-
React.createElement("div", { className: css(styles$b.formGroupControl, isInline && styles$b.modifiers.inline, isStack && styles$b.modifiers.stack) }, children)))));
|
|
7740
|
+
React.createElement("div", { className: css$1(styles$b.formGroupControl, isInline && styles$b.modifiers.inline, isStack && styles$b.modifiers.stack) }, children)))));
|
|
8090
7741
|
};
|
|
8091
7742
|
FormGroup.displayName = 'FormGroup';
|
|
8092
7743
|
|
|
@@ -8106,7 +7757,7 @@ var styles$a = {
|
|
|
8106
7757
|
|
|
8107
7758
|
const PanelBase = (_a) => {
|
|
8108
7759
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
8109
|
-
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));
|
|
7760
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.panel, variant && styles$a.modifiers[variant], isScrollable && styles$a.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
8110
7761
|
};
|
|
8111
7762
|
const Panel = React.forwardRef((props, ref) => (React.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
8112
7763
|
Panel.displayName = 'Panel';
|
|
@@ -8119,13 +7770,13 @@ const c_panel__main_MaxHeight = {
|
|
|
8119
7770
|
|
|
8120
7771
|
const PanelMain = (_a) => {
|
|
8121
7772
|
var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
|
|
8122
|
-
return (React.createElement("div", Object.assign({ className: css(styles$a.panelMain, className), style: { [c_panel__main_MaxHeight.name]: maxHeight } }, props), children));
|
|
7773
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.panelMain, className), style: { [c_panel__main_MaxHeight.name]: maxHeight } }, props), children));
|
|
8123
7774
|
};
|
|
8124
7775
|
PanelMain.displayName = 'PanelMain';
|
|
8125
7776
|
|
|
8126
7777
|
const PanelMainBody = (_a) => {
|
|
8127
7778
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
8128
|
-
return (React.createElement("div", Object.assign({ className: css(styles$a.panelMainBody, className) }, props), children));
|
|
7779
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.panelMainBody, className) }, props), children));
|
|
8129
7780
|
};
|
|
8130
7781
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
8131
7782
|
|
|
@@ -8225,7 +7876,7 @@ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '',
|
|
|
8225
7876
|
React.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (evt, value) => handleValueChange('haswords', value, evt) })))));
|
|
8226
7877
|
return formGroups;
|
|
8227
7878
|
};
|
|
8228
|
-
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css(className) },
|
|
7879
|
+
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$1(className) },
|
|
8229
7880
|
React.createElement(PanelMain, null,
|
|
8230
7881
|
React.createElement(PanelMainBody, null,
|
|
8231
7882
|
React.createElement(Form, null,
|
|
@@ -8266,7 +7917,7 @@ const TextInputGroup = (_a) => {
|
|
|
8266
7917
|
const ref = React.useRef(null);
|
|
8267
7918
|
const textInputGroupRef = innerRef || ref;
|
|
8268
7919
|
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
8269
|
-
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(textInputGroupStyles.textInputGroup, isDisabled && textInputGroupStyles.modifiers.disabled, isPlain && textInputGroupStyles.modifiers.plain, className) }, props), children)));
|
|
7920
|
+
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$1(textInputGroupStyles.textInputGroup, isDisabled && textInputGroupStyles.modifiers.disabled, isPlain && textInputGroupStyles.modifiers.plain, className) }, props), children)));
|
|
8270
7921
|
};
|
|
8271
7922
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
8272
7923
|
|
|
@@ -8278,19 +7929,19 @@ const TextInputGroupMainBase = (_a) => {
|
|
|
8278
7929
|
const handleChange = (event) => {
|
|
8279
7930
|
onChange(event, event.currentTarget.value);
|
|
8280
7931
|
};
|
|
8281
|
-
return (React.createElement("div", Object.assign({ className: css(textInputGroupStyles.textInputGroupMain, icon && textInputGroupStyles.modifiers.icon, className) }, props),
|
|
7932
|
+
return (React.createElement("div", Object.assign({ className: css$1(textInputGroupStyles.textInputGroupMain, icon && textInputGroupStyles.modifiers.icon, className) }, props),
|
|
8282
7933
|
children,
|
|
8283
|
-
React.createElement("span", { className: css(textInputGroupStyles.textInputGroupText) },
|
|
8284
|
-
hint && (React.createElement("input", { className: css(textInputGroupStyles.textInputGroupTextInput, textInputGroupStyles.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint, id: inputId })),
|
|
8285
|
-
icon && React.createElement("span", { className: css(textInputGroupStyles.textInputGroupIcon) }, icon),
|
|
8286
|
-
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 }))))));
|
|
7934
|
+
React.createElement("span", { className: css$1(textInputGroupStyles.textInputGroupText) },
|
|
7935
|
+
hint && (React.createElement("input", { className: css$1(textInputGroupStyles.textInputGroupTextInput, textInputGroupStyles.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint, id: inputId })),
|
|
7936
|
+
icon && React.createElement("span", { className: css$1(textInputGroupStyles.textInputGroupIcon) }, icon),
|
|
7937
|
+
React.createElement("input", Object.assign({ ref: textInputGroupInputInputRef, type: type, className: css$1(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 }))))));
|
|
8287
7938
|
};
|
|
8288
7939
|
const TextInputGroupMain = React.forwardRef((props, ref) => (React.createElement(TextInputGroupMainBase, Object.assign({ innerRef: ref }, props))));
|
|
8289
7940
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
8290
7941
|
|
|
8291
7942
|
const TextInputGroupUtilities = (_a) => {
|
|
8292
7943
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8293
|
-
return (React.createElement("div", Object.assign({ className: css(textInputGroupStyles.textInputGroupUtilities, className) }, props), children));
|
|
7944
|
+
return (React.createElement("div", Object.assign({ className: css$1(textInputGroupStyles.textInputGroupUtilities, className) }, props), children));
|
|
8294
7945
|
};
|
|
8295
7946
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
8296
7947
|
|
|
@@ -8446,7 +8097,7 @@ const SearchInputBase = (_a) => {
|
|
|
8446
8097
|
React.createElement(ArrowRightIcon$1, null)) }))),
|
|
8447
8098
|
expandableInput && React.createElement(InputGroupItem, null, expandableToggle)));
|
|
8448
8099
|
};
|
|
8449
|
-
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
8100
|
+
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$1(className), innerRef: searchInputRef });
|
|
8450
8101
|
if (!!expandableInput && !isExpanded) {
|
|
8451
8102
|
return (React.createElement(InputGroup, Object.assign({}, searchInputProps),
|
|
8452
8103
|
React.createElement(InputGroupItem, null, expandableToggle)));
|
|
@@ -8455,9 +8106,9 @@ const SearchInputBase = (_a) => {
|
|
|
8455
8106
|
if (attributes.length > 0) {
|
|
8456
8107
|
const AdvancedSearch = (React.createElement("div", { ref: popperRef },
|
|
8457
8108
|
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 })));
|
|
8458
|
-
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
8109
|
+
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8459
8110
|
React.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), triggerRef: triggerRef, popper: AdvancedSearch, popperRef: popperRef, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current, zIndex: zIndex })));
|
|
8460
|
-
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
8111
|
+
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8461
8112
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
8462
8113
|
AdvancedSearch));
|
|
8463
8114
|
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
@@ -8496,7 +8147,7 @@ const isSpinner = (icon) => icon.type === Spinner;
|
|
|
8496
8147
|
const EmptyStateIcon = (_a) => {
|
|
8497
8148
|
var { className, icon: IconComponent } = _a, props = __rest$1(_a, ["className", "icon"]);
|
|
8498
8149
|
const iconIsSpinner = isSpinner(React.createElement(IconComponent, null));
|
|
8499
|
-
return (React.createElement("div", { className: css(styles$9.emptyStateIcon) },
|
|
8150
|
+
return (React.createElement("div", { className: css$1(styles$9.emptyStateIcon) },
|
|
8500
8151
|
React.createElement(IconComponent, Object.assign({ className: className, "aria-hidden": !iconIsSpinner }, props))));
|
|
8501
8152
|
};
|
|
8502
8153
|
EmptyStateIcon.displayName = 'EmptyStateIcon';
|
|
@@ -8512,10 +8163,10 @@ var EmptyStateHeadingLevel;
|
|
|
8512
8163
|
})(EmptyStateHeadingLevel || (EmptyStateHeadingLevel = {}));
|
|
8513
8164
|
const EmptyStateHeader = (_a) => {
|
|
8514
8165
|
var { className, titleClassName, titleText, headingLevel: HeadingLevel = EmptyStateHeadingLevel.h1, icon: Icon } = _a, props = __rest$1(_a, ["className", "titleClassName", "titleText", "headingLevel", "icon"]);
|
|
8515
|
-
return (React.createElement("div", Object.assign({ className: css(`${styles$9.emptyState}__header`, className) }, props),
|
|
8166
|
+
return (React.createElement("div", Object.assign({ className: css$1(`${styles$9.emptyState}__header`, className) }, props),
|
|
8516
8167
|
Icon && React.createElement(EmptyStateIcon, { icon: Icon }),
|
|
8517
|
-
React.createElement("div", { className: css(`${styles$9.emptyState}__title`) },
|
|
8518
|
-
React.createElement(HeadingLevel, { className: css(styles$9.emptyStateTitleText, titleClassName) }, titleText))));
|
|
8168
|
+
React.createElement("div", { className: css$1(`${styles$9.emptyState}__title`) },
|
|
8169
|
+
React.createElement(HeadingLevel, { className: css$1(styles$9.emptyStateTitleText, titleClassName) }, titleText))));
|
|
8519
8170
|
};
|
|
8520
8171
|
EmptyStateHeader.displayName = 'EmptyStateHeader';
|
|
8521
8172
|
|
|
@@ -8539,8 +8190,8 @@ const EmptyState = (_a) => {
|
|
|
8539
8190
|
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"]);
|
|
8540
8191
|
const statusIcon = status && statusIcons$2[status];
|
|
8541
8192
|
const icon = customIcon || statusIcon;
|
|
8542
|
-
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),
|
|
8543
|
-
React.createElement("div", { className: css(styles$9.emptyStateContent) },
|
|
8193
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyState, variant !== 'full' && styles$9.modifiers[variant], isFullHeight && styles$9.modifiers.fullHeight, status && styles$9.modifiers[status], className) }, props),
|
|
8194
|
+
React.createElement("div", { className: css$1(styles$9.emptyStateContent) },
|
|
8544
8195
|
React.createElement(EmptyStateHeader, { icon: icon, titleText: titleText, titleClassName: titleClassName, className: headerClassName, headingLevel: headingLevel }),
|
|
8545
8196
|
children)));
|
|
8546
8197
|
};
|
|
@@ -8548,19 +8199,19 @@ EmptyState.displayName = 'EmptyState';
|
|
|
8548
8199
|
|
|
8549
8200
|
const EmptyStateBody = (_a) => {
|
|
8550
8201
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8551
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateBody, className) }, props), children));
|
|
8202
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateBody, className) }, props), children));
|
|
8552
8203
|
};
|
|
8553
8204
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
8554
8205
|
|
|
8555
8206
|
const EmptyStateFooter = (_a) => {
|
|
8556
8207
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8557
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateFooter, className) }, props), children));
|
|
8208
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateFooter, className) }, props), children));
|
|
8558
8209
|
};
|
|
8559
8210
|
EmptyStateFooter.displayName = 'EmptyStateFooter';
|
|
8560
8211
|
|
|
8561
8212
|
const EmptyStateActions = (_a) => {
|
|
8562
8213
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8563
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateActions, className) }, props), children));
|
|
8214
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateActions, className) }, props), children));
|
|
8564
8215
|
};
|
|
8565
8216
|
EmptyStateActions.displayName = 'EmptyStateActions';
|
|
8566
8217
|
|
|
@@ -8683,13 +8334,13 @@ class ExpandableSection extends React.Component {
|
|
|
8683
8334
|
};
|
|
8684
8335
|
}
|
|
8685
8336
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
8686
|
-
const expandableToggle = !isDetached && (React.createElement("button", { className: css(styles$8.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, "aria-controls": uniqueContentId, id: uniqueToggleId, onClick: (event) => onToggle(event, !propOrStateIsExpanded) },
|
|
8687
|
-
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css(styles$8.expandableSectionToggleIcon) },
|
|
8337
|
+
const expandableToggle = !isDetached && (React.createElement("button", { className: css$1(styles$8.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, "aria-controls": uniqueContentId, id: uniqueToggleId, onClick: (event) => onToggle(event, !propOrStateIsExpanded) },
|
|
8338
|
+
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$1(styles$8.expandableSectionToggleIcon) },
|
|
8688
8339
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
8689
|
-
React.createElement("span", { className: css(styles$8.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
8690
|
-
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),
|
|
8340
|
+
React.createElement("span", { className: css$1(styles$8.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
8341
|
+
return (React.createElement("div", Object.assign({ className: css$1(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),
|
|
8691
8342
|
variant === ExpandableSectionVariant.default && expandableToggle,
|
|
8692
|
-
React.createElement("div", { ref: this.expandableContentRef, className: css(styles$8.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: uniqueContentId, "aria-labelledby": uniqueToggleId, role: "region" }, children),
|
|
8343
|
+
React.createElement("div", { ref: this.expandableContentRef, className: css$1(styles$8.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: uniqueContentId, "aria-labelledby": uniqueToggleId, role: "region" }, children),
|
|
8693
8344
|
variant === ExpandableSectionVariant.truncate && this.state.hasToggle && expandableToggle));
|
|
8694
8345
|
}
|
|
8695
8346
|
}
|
|
@@ -8708,31 +8359,382 @@ ExpandableSection.defaultProps = {
|
|
|
8708
8359
|
variant: 'default'
|
|
8709
8360
|
};
|
|
8710
8361
|
|
|
8711
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8712
|
-
|
|
8713
|
-
function getDefaultExportFromCjs (x) {
|
|
8714
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8715
|
-
}
|
|
8716
|
-
|
|
8717
|
-
function getAugmentedNamespace(n) {
|
|
8718
|
-
if (n.__esModule) return n;
|
|
8719
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
8720
|
-
Object.keys(n).forEach(function (k) {
|
|
8721
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
8722
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
8723
|
-
enumerable: true,
|
|
8724
|
-
get: function () {
|
|
8725
|
-
return n[k];
|
|
8726
|
-
}
|
|
8727
|
-
});
|
|
8728
|
-
});
|
|
8729
|
-
return a;
|
|
8730
|
-
}
|
|
8731
|
-
|
|
8732
|
-
function createCommonjsModule(fn) {
|
|
8733
|
-
var module = { exports: {} };
|
|
8734
|
-
return fn(module, module.exports), module.exports;
|
|
8735
|
-
}
|
|
8362
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8363
|
+
|
|
8364
|
+
function getDefaultExportFromCjs (x) {
|
|
8365
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8366
|
+
}
|
|
8367
|
+
|
|
8368
|
+
function getAugmentedNamespace(n) {
|
|
8369
|
+
if (n.__esModule) return n;
|
|
8370
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
8371
|
+
Object.keys(n).forEach(function (k) {
|
|
8372
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
8373
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
8374
|
+
enumerable: true,
|
|
8375
|
+
get: function () {
|
|
8376
|
+
return n[k];
|
|
8377
|
+
}
|
|
8378
|
+
});
|
|
8379
|
+
});
|
|
8380
|
+
return a;
|
|
8381
|
+
}
|
|
8382
|
+
|
|
8383
|
+
function createCommonjsModule(fn) {
|
|
8384
|
+
var module = { exports: {} };
|
|
8385
|
+
return fn(module, module.exports), module.exports;
|
|
8386
|
+
}
|
|
8387
|
+
|
|
8388
|
+
/******************************************************************************
|
|
8389
|
+
Copyright (c) Microsoft Corporation.
|
|
8390
|
+
|
|
8391
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8392
|
+
purpose with or without fee is hereby granted.
|
|
8393
|
+
|
|
8394
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8395
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8396
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
8397
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
8398
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
8399
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
8400
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
8401
|
+
***************************************************************************** */
|
|
8402
|
+
/* global Reflect, Promise */
|
|
8403
|
+
|
|
8404
|
+
var extendStatics = function(d, b) {
|
|
8405
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8406
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8407
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8408
|
+
return extendStatics(d, b);
|
|
8409
|
+
};
|
|
8410
|
+
|
|
8411
|
+
function __extends(d, b) {
|
|
8412
|
+
if (typeof b !== "function" && b !== null)
|
|
8413
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
8414
|
+
extendStatics(d, b);
|
|
8415
|
+
function __() { this.constructor = d; }
|
|
8416
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
var __assign = function() {
|
|
8420
|
+
__assign = Object.assign || function __assign(t) {
|
|
8421
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8422
|
+
s = arguments[i];
|
|
8423
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8424
|
+
}
|
|
8425
|
+
return t;
|
|
8426
|
+
};
|
|
8427
|
+
return __assign.apply(this, arguments);
|
|
8428
|
+
};
|
|
8429
|
+
|
|
8430
|
+
function __rest(s, e) {
|
|
8431
|
+
var t = {};
|
|
8432
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8433
|
+
t[p] = s[p];
|
|
8434
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8435
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8436
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8437
|
+
t[p[i]] = s[p[i]];
|
|
8438
|
+
}
|
|
8439
|
+
return t;
|
|
8440
|
+
}
|
|
8441
|
+
|
|
8442
|
+
function __decorate(decorators, target, key, desc) {
|
|
8443
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8444
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8445
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8446
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8447
|
+
}
|
|
8448
|
+
|
|
8449
|
+
function __param(paramIndex, decorator) {
|
|
8450
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
8451
|
+
}
|
|
8452
|
+
|
|
8453
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8454
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
8455
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
8456
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
8457
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
8458
|
+
var _, done = false;
|
|
8459
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8460
|
+
var context = {};
|
|
8461
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
8462
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
8463
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
8464
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
8465
|
+
if (kind === "accessor") {
|
|
8466
|
+
if (result === void 0) continue;
|
|
8467
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
8468
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
8469
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
8470
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
8471
|
+
}
|
|
8472
|
+
else if (_ = accept(result)) {
|
|
8473
|
+
if (kind === "field") initializers.unshift(_);
|
|
8474
|
+
else descriptor[key] = _;
|
|
8475
|
+
}
|
|
8476
|
+
}
|
|
8477
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8478
|
+
done = true;
|
|
8479
|
+
}
|
|
8480
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
8481
|
+
var useValue = arguments.length > 2;
|
|
8482
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
8483
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8484
|
+
}
|
|
8485
|
+
return useValue ? value : void 0;
|
|
8486
|
+
}
|
|
8487
|
+
function __propKey(x) {
|
|
8488
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
8489
|
+
}
|
|
8490
|
+
function __setFunctionName(f, name, prefix) {
|
|
8491
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
8492
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
8493
|
+
}
|
|
8494
|
+
function __metadata(metadataKey, metadataValue) {
|
|
8495
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
8496
|
+
}
|
|
8497
|
+
|
|
8498
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
8499
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8500
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8501
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8502
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8503
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8504
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8505
|
+
});
|
|
8506
|
+
}
|
|
8507
|
+
|
|
8508
|
+
function __generator(thisArg, body) {
|
|
8509
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
8510
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
8511
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
8512
|
+
function step(op) {
|
|
8513
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
8514
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
8515
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
8516
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
8517
|
+
switch (op[0]) {
|
|
8518
|
+
case 0: case 1: t = op; break;
|
|
8519
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
8520
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
8521
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
8522
|
+
default:
|
|
8523
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
8524
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
8525
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
8526
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
8527
|
+
if (t[2]) _.ops.pop();
|
|
8528
|
+
_.trys.pop(); continue;
|
|
8529
|
+
}
|
|
8530
|
+
op = body.call(thisArg, _);
|
|
8531
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
8532
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8533
|
+
}
|
|
8534
|
+
}
|
|
8535
|
+
|
|
8536
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
8537
|
+
if (k2 === undefined) k2 = k;
|
|
8538
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8539
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8540
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8541
|
+
}
|
|
8542
|
+
Object.defineProperty(o, k2, desc);
|
|
8543
|
+
}) : (function(o, m, k, k2) {
|
|
8544
|
+
if (k2 === undefined) k2 = k;
|
|
8545
|
+
o[k2] = m[k];
|
|
8546
|
+
});
|
|
8547
|
+
|
|
8548
|
+
function __exportStar(m, o) {
|
|
8549
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
8550
|
+
}
|
|
8551
|
+
|
|
8552
|
+
function __values(o) {
|
|
8553
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
8554
|
+
if (m) return m.call(o);
|
|
8555
|
+
if (o && typeof o.length === "number") return {
|
|
8556
|
+
next: function () {
|
|
8557
|
+
if (o && i >= o.length) o = void 0;
|
|
8558
|
+
return { value: o && o[i++], done: !o };
|
|
8559
|
+
}
|
|
8560
|
+
};
|
|
8561
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8562
|
+
}
|
|
8563
|
+
|
|
8564
|
+
function __read(o, n) {
|
|
8565
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
8566
|
+
if (!m) return o;
|
|
8567
|
+
var i = m.call(o), r, ar = [], e;
|
|
8568
|
+
try {
|
|
8569
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8570
|
+
}
|
|
8571
|
+
catch (error) { e = { error: error }; }
|
|
8572
|
+
finally {
|
|
8573
|
+
try {
|
|
8574
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
8575
|
+
}
|
|
8576
|
+
finally { if (e) throw e.error; }
|
|
8577
|
+
}
|
|
8578
|
+
return ar;
|
|
8579
|
+
}
|
|
8580
|
+
|
|
8581
|
+
/** @deprecated */
|
|
8582
|
+
function __spread() {
|
|
8583
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
8584
|
+
ar = ar.concat(__read(arguments[i]));
|
|
8585
|
+
return ar;
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8588
|
+
/** @deprecated */
|
|
8589
|
+
function __spreadArrays() {
|
|
8590
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
8591
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
8592
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
8593
|
+
r[k] = a[j];
|
|
8594
|
+
return r;
|
|
8595
|
+
}
|
|
8596
|
+
|
|
8597
|
+
function __spreadArray(to, from, pack) {
|
|
8598
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
8599
|
+
if (ar || !(i in from)) {
|
|
8600
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
8601
|
+
ar[i] = from[i];
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8604
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8605
|
+
}
|
|
8606
|
+
|
|
8607
|
+
function __await(v) {
|
|
8608
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
8609
|
+
}
|
|
8610
|
+
|
|
8611
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
8612
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8613
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
8614
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
8615
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
8616
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
8617
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
8618
|
+
function fulfill(value) { resume("next", value); }
|
|
8619
|
+
function reject(value) { resume("throw", value); }
|
|
8620
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
function __asyncDelegator(o) {
|
|
8624
|
+
var i, p;
|
|
8625
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
8626
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
8627
|
+
}
|
|
8628
|
+
|
|
8629
|
+
function __asyncValues(o) {
|
|
8630
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8631
|
+
var m = o[Symbol.asyncIterator], i;
|
|
8632
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
8633
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
8634
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
8635
|
+
}
|
|
8636
|
+
|
|
8637
|
+
function __makeTemplateObject(cooked, raw) {
|
|
8638
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
8639
|
+
return cooked;
|
|
8640
|
+
}
|
|
8641
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
8642
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8643
|
+
}) : function(o, v) {
|
|
8644
|
+
o["default"] = v;
|
|
8645
|
+
};
|
|
8646
|
+
|
|
8647
|
+
function __importStar(mod) {
|
|
8648
|
+
if (mod && mod.__esModule) return mod;
|
|
8649
|
+
var result = {};
|
|
8650
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
8651
|
+
__setModuleDefault(result, mod);
|
|
8652
|
+
return result;
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8655
|
+
function __importDefault(mod) {
|
|
8656
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
8657
|
+
}
|
|
8658
|
+
|
|
8659
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
8660
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
8661
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
8662
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
8666
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8667
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8668
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8669
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
8670
|
+
}
|
|
8671
|
+
|
|
8672
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
8673
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
8674
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
8675
|
+
}
|
|
8676
|
+
|
|
8677
|
+
var tslib_es6 = {
|
|
8678
|
+
__extends,
|
|
8679
|
+
__assign,
|
|
8680
|
+
__rest,
|
|
8681
|
+
__decorate,
|
|
8682
|
+
__param,
|
|
8683
|
+
__metadata,
|
|
8684
|
+
__awaiter,
|
|
8685
|
+
__generator,
|
|
8686
|
+
__createBinding,
|
|
8687
|
+
__exportStar,
|
|
8688
|
+
__values,
|
|
8689
|
+
__read,
|
|
8690
|
+
__spread,
|
|
8691
|
+
__spreadArrays,
|
|
8692
|
+
__spreadArray,
|
|
8693
|
+
__await,
|
|
8694
|
+
__asyncGenerator,
|
|
8695
|
+
__asyncDelegator,
|
|
8696
|
+
__asyncValues,
|
|
8697
|
+
__makeTemplateObject,
|
|
8698
|
+
__importStar,
|
|
8699
|
+
__importDefault,
|
|
8700
|
+
__classPrivateFieldGet,
|
|
8701
|
+
__classPrivateFieldSet,
|
|
8702
|
+
__classPrivateFieldIn,
|
|
8703
|
+
};
|
|
8704
|
+
|
|
8705
|
+
var tslib_es6$1 = /*#__PURE__*/Object.freeze({
|
|
8706
|
+
__proto__: null,
|
|
8707
|
+
__extends: __extends,
|
|
8708
|
+
get __assign () { return __assign; },
|
|
8709
|
+
__rest: __rest,
|
|
8710
|
+
__decorate: __decorate,
|
|
8711
|
+
__param: __param,
|
|
8712
|
+
__esDecorate: __esDecorate,
|
|
8713
|
+
__runInitializers: __runInitializers,
|
|
8714
|
+
__propKey: __propKey,
|
|
8715
|
+
__setFunctionName: __setFunctionName,
|
|
8716
|
+
__metadata: __metadata,
|
|
8717
|
+
__awaiter: __awaiter,
|
|
8718
|
+
__generator: __generator,
|
|
8719
|
+
__createBinding: __createBinding,
|
|
8720
|
+
__exportStar: __exportStar,
|
|
8721
|
+
__values: __values,
|
|
8722
|
+
__read: __read,
|
|
8723
|
+
__spread: __spread,
|
|
8724
|
+
__spreadArrays: __spreadArrays,
|
|
8725
|
+
__spreadArray: __spreadArray,
|
|
8726
|
+
__await: __await,
|
|
8727
|
+
__asyncGenerator: __asyncGenerator,
|
|
8728
|
+
__asyncDelegator: __asyncDelegator,
|
|
8729
|
+
__asyncValues: __asyncValues,
|
|
8730
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
8731
|
+
__importStar: __importStar,
|
|
8732
|
+
__importDefault: __importDefault,
|
|
8733
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
8734
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
8735
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
8736
|
+
'default': tslib_es6
|
|
8737
|
+
});
|
|
8736
8738
|
|
|
8737
8739
|
var labelStyles = {
|
|
8738
8740
|
"button": "pf-v6-c-button",
|
|
@@ -8900,7 +8902,7 @@ const Label = (_a) => {
|
|
|
8900
8902
|
};
|
|
8901
8903
|
const isClickableDisabled = (href || onLabelClick) && isDisabled;
|
|
8902
8904
|
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) })));
|
|
8903
|
-
const closeButton = React.createElement("span", { className: css(labelStyles.labelActions) }, closeBtn || defaultCloseButton);
|
|
8905
|
+
const closeButton = React.createElement("span", { className: css$1(labelStyles.labelActions) }, closeBtn || defaultCloseButton);
|
|
8904
8906
|
const textRef = React.createRef();
|
|
8905
8907
|
// ref to apply tooltip when rendered is used
|
|
8906
8908
|
const componentRef = React.useRef();
|
|
@@ -8912,8 +8914,8 @@ const Label = (_a) => {
|
|
|
8912
8914
|
}
|
|
8913
8915
|
}, [isEditableActive]);
|
|
8914
8916
|
const content = (React.createElement(React.Fragment, null,
|
|
8915
|
-
_icon && React.createElement("span", { className: css(labelStyles.labelIcon) }, _icon),
|
|
8916
|
-
React.createElement("span", Object.assign({ ref: textRef, className: css(labelStyles.labelText) }, (textMaxWidth && {
|
|
8917
|
+
_icon && React.createElement("span", { className: css$1(labelStyles.labelIcon) }, _icon),
|
|
8918
|
+
React.createElement("span", Object.assign({ ref: textRef, className: css$1(labelStyles.labelText) }, (textMaxWidth && {
|
|
8917
8919
|
style: {
|
|
8918
8920
|
[c_label__text_MaxWidth.name]: textMaxWidth
|
|
8919
8921
|
}
|
|
@@ -8938,7 +8940,7 @@ const Label = (_a) => {
|
|
|
8938
8940
|
onClick: onLabelClick
|
|
8939
8941
|
};
|
|
8940
8942
|
const isButton = LabelComponentChildElement === 'button';
|
|
8941
|
-
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) => {
|
|
8943
|
+
const labelComponentChildProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ className: css$1(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) => {
|
|
8942
8944
|
setIsEditableActive(true);
|
|
8943
8945
|
e.stopPropagation();
|
|
8944
8946
|
} }, editableProps))), (isClickableDisabled && isButton && { disabled: true })), (isClickableDisabled && href && { tabIndex: -1, 'aria-disabled': true }));
|
|
@@ -8956,10 +8958,10 @@ const Label = (_a) => {
|
|
|
8956
8958
|
labelComponentChild = (React.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
8957
8959
|
}
|
|
8958
8960
|
const LabelComponent = (isOverflowLabel ? 'button' : 'span');
|
|
8959
|
-
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 }
|
|
8961
|
+
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css$1(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 }),
|
|
8960
8962
|
!isEditableActive && labelComponentChild,
|
|
8961
8963
|
!isEditableActive && onClose && closeButton,
|
|
8962
|
-
isEditableActive && (React.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
8964
|
+
isEditableActive && (React.createElement("input", Object.assign({ className: css$1(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
8963
8965
|
};
|
|
8964
8966
|
Label.displayName = 'Label';
|
|
8965
8967
|
|
|
@@ -8994,15 +8996,15 @@ var ListComponent;
|
|
|
8994
8996
|
})(ListComponent || (ListComponent = {}));
|
|
8995
8997
|
const List = (_a) => {
|
|
8996
8998
|
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"]);
|
|
8997
|
-
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));
|
|
8999
|
+
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, (isPlain && { role: 'list' }), props, { className: css$1(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$1(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));
|
|
8998
9000
|
};
|
|
8999
9001
|
List.displayName = 'List';
|
|
9000
9002
|
|
|
9001
9003
|
const ListItem = (_a) => {
|
|
9002
9004
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
9003
|
-
return (React.createElement("li", Object.assign({ className: css(icon && styles$6.listItem) }, props),
|
|
9004
|
-
icon && React.createElement("span", { className: css(styles$6.listItemIcon) }, icon),
|
|
9005
|
-
React.createElement("span", { className: icon && css(`${styles$6.list}__item-text`) }, children)));
|
|
9005
|
+
return (React.createElement("li", Object.assign({ className: css$1(icon && styles$6.listItem) }, props),
|
|
9006
|
+
icon && React.createElement("span", { className: css$1(styles$6.listItemIcon) }, icon),
|
|
9007
|
+
React.createElement("span", { className: icon && css$1(`${styles$6.list}__item-text`) }, children)));
|
|
9006
9008
|
};
|
|
9007
9009
|
ListItem.displayName = 'ListItem';
|
|
9008
9010
|
|
|
@@ -9082,7 +9084,7 @@ var styles$5 = {
|
|
|
9082
9084
|
|
|
9083
9085
|
const PageBody = (_a) => {
|
|
9084
9086
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
9085
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles$5.pageMainBody, className) }), children));
|
|
9087
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$5.pageMainBody, className) }), children));
|
|
9086
9088
|
};
|
|
9087
9089
|
PageBody.displayName = 'PageBody';
|
|
9088
9090
|
|
|
@@ -9120,7 +9122,7 @@ const PageSection = (_a) => {
|
|
|
9120
9122
|
}
|
|
9121
9123
|
}, [hasOverflowScroll, ariaLabel]);
|
|
9122
9124
|
const Component = component;
|
|
9123
|
-
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));
|
|
9125
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(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));
|
|
9124
9126
|
};
|
|
9125
9127
|
PageSection.displayName = 'PageSection';
|
|
9126
9128
|
|
|
@@ -9523,9 +9525,9 @@ var ToolbarItemVariant;
|
|
|
9523
9525
|
const ToolbarItem = (_a) => {
|
|
9524
9526
|
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"]);
|
|
9525
9527
|
if (variant === ToolbarItemVariant.separator) {
|
|
9526
|
-
return React.createElement(Divider, Object.assign({ className: css(className), orientation: { default: 'vertical' } }, props));
|
|
9528
|
+
return React.createElement(Divider, Object.assign({ className: css$1(className), orientation: { default: 'vertical' } }, props));
|
|
9527
9529
|
}
|
|
9528
|
-
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))));
|
|
9530
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(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))));
|
|
9529
9531
|
};
|
|
9530
9532
|
ToolbarItem.displayName = 'ToolbarItem';
|
|
9531
9533
|
|
|
@@ -9540,7 +9542,7 @@ var ToolbarGroupVariant;
|
|
|
9540
9542
|
class ToolbarGroupWithRef extends React.Component {
|
|
9541
9543
|
render() {
|
|
9542
9544
|
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"]);
|
|
9543
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarGroup, variant &&
|
|
9545
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarGroup, variant &&
|
|
9544
9546
|
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))));
|
|
9545
9547
|
}
|
|
9546
9548
|
}
|
|
@@ -9563,8 +9565,8 @@ class ToolbarLabelGroupContent extends React.Component {
|
|
|
9563
9565
|
const isHidden = numberOfFilters === 0 || isExpanded;
|
|
9564
9566
|
const showNumberOfFilters = collapseListedFilters && numberOfFilters > 0 && !isExpanded;
|
|
9565
9567
|
const showDefaultClearFilter = showClearFiltersButton && !isExpanded && !customLabelGroupContent;
|
|
9566
|
-
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),
|
|
9567
|
-
React.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
9568
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, isHidden && styles$4.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: labelGroupContentRef }, props),
|
|
9569
|
+
React.createElement(ToolbarGroup, Object.assign({ className: css$1(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
9568
9570
|
(showNumberOfFilters || showDefaultClearFilter || customLabelGroupContent) && (React.createElement(ToolbarGroup, { variant: "action-group-inline" },
|
|
9569
9571
|
showNumberOfFilters && React.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)),
|
|
9570
9572
|
showDefaultClearFilter && (React.createElement(ToolbarItem, null,
|
|
@@ -9627,7 +9629,7 @@ class Toolbar extends React.Component {
|
|
|
9627
9629
|
const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
|
|
9628
9630
|
const numberOfFilters = this.getNumberOfFilters();
|
|
9629
9631
|
const showClearFiltersButton = numberOfFilters > 0;
|
|
9630
|
-
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),
|
|
9632
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(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),
|
|
9631
9633
|
React.createElement(ToolbarContext.Provider, { value: {
|
|
9632
9634
|
isExpanded,
|
|
9633
9635
|
toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
|
|
@@ -9668,7 +9670,7 @@ class ToolbarContent extends React.Component {
|
|
|
9668
9670
|
}
|
|
9669
9671
|
render() {
|
|
9670
9672
|
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"]);
|
|
9671
|
-
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),
|
|
9673
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), className), ref: this.expandableContentRef }, props),
|
|
9672
9674
|
React.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, isExpanded: isExpandedContext, toolbarId: toolbarIdContext }) => {
|
|
9673
9675
|
const expandableContentId = `${toolbarId || toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
|
|
9674
9676
|
return (React.createElement(ToolbarContentContext.Provider, { value: {
|
|
@@ -9680,7 +9682,7 @@ class ToolbarContent extends React.Component {
|
|
|
9680
9682
|
clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext,
|
|
9681
9683
|
showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext
|
|
9682
9684
|
} },
|
|
9683
|
-
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)));
|
|
9685
|
+
React.createElement("div", { className: css$1(styles$4.toolbarContentSection, alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'start' && styles$4.modifiers.alignItemsStart, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline) }, children)));
|
|
9684
9686
|
})))));
|
|
9685
9687
|
}
|
|
9686
9688
|
}
|
|
@@ -9760,24 +9762,24 @@ const WizardNavItem = (_a) => {
|
|
|
9760
9762
|
// eslint-disable-next-line no-console
|
|
9761
9763
|
console.error('WizardNavItem: When using an anchor, please provide an href');
|
|
9762
9764
|
}
|
|
9763
|
-
return (React.createElement("li", Object.assign({ className: css(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded, className) }, props),
|
|
9765
|
+
return (React.createElement("li", Object.assign({ className: css$1(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded, className) }, props),
|
|
9764
9766
|
React.createElement(NavItemComponent, Object.assign({}, (NavItemComponent === 'a'
|
|
9765
9767
|
? { tabIndex: isDisabled ? -1 : undefined, href, target }
|
|
9766
9768
|
: { disabled: isDisabled }), (id && { id: id.toString() }), { onClick: (e) => {
|
|
9767
9769
|
e.stopPropagation();
|
|
9768
9770
|
isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onClick === null || onClick === void 0 ? void 0 : onClick(e, stepIndex);
|
|
9769
|
-
}, 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),
|
|
9771
|
+
}, className: css$1(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),
|
|
9770
9772
|
status !== WizardNavItemStatus.Default && (React.createElement(React.Fragment, null,
|
|
9771
9773
|
React.createElement("span", { className: "pf-v6-screen-reader" },
|
|
9772
9774
|
", ",
|
|
9773
9775
|
status),
|
|
9774
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkStatusIcon) },
|
|
9776
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkStatusIcon) },
|
|
9775
9777
|
status === WizardNavItemStatus.Error && React.createElement(ExclamationCircleIcon, null),
|
|
9776
9778
|
status === WizardNavItemStatus.Success && React.createElement(CheckCircleIcon$1, null)))),
|
|
9777
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkMain) }, isExpandable ? (React.createElement(React.Fragment, null,
|
|
9778
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkText) }, content),
|
|
9779
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkToggle) },
|
|
9780
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkToggleIcon) },
|
|
9779
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkMain) }, isExpandable ? (React.createElement(React.Fragment, null,
|
|
9780
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkText) }, content),
|
|
9781
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggle) },
|
|
9782
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggleIcon) },
|
|
9781
9783
|
React.createElement(AngleRightIcon, { "aria-label": `${isCurrent ? 'Collapse' : 'Expand'} step icon` }))))) : (React.createElement(React.Fragment, null, content)))),
|
|
9782
9784
|
children));
|
|
9783
9785
|
};
|
|
@@ -10338,14 +10340,14 @@ const l_flex_item_Order = {
|
|
|
10338
10340
|
const Flex = (_a) => {
|
|
10339
10341
|
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"]);
|
|
10340
10342
|
const Component = component;
|
|
10341
|
-
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));
|
|
10343
|
+
return (React.createElement(Component, Object.assign({ className: css$1(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));
|
|
10342
10344
|
};
|
|
10343
10345
|
Flex.displayName = 'Flex';
|
|
10344
10346
|
|
|
10345
10347
|
const FlexItem = (_a) => {
|
|
10346
10348
|
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"]);
|
|
10347
10349
|
const Component = component;
|
|
10348
|
-
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));
|
|
10350
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(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));
|
|
10349
10351
|
};
|
|
10350
10352
|
FlexItem.displayName = 'FlexItem';
|
|
10351
10353
|
|
|
@@ -10382,7 +10384,7 @@ const Gallery = (_a) => {
|
|
|
10382
10384
|
value));
|
|
10383
10385
|
}
|
|
10384
10386
|
const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
|
|
10385
|
-
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));
|
|
10387
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$1.gallery, hasGutter && styles$1.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));
|
|
10386
10388
|
};
|
|
10387
10389
|
Gallery.displayName = 'Gallery';
|
|
10388
10390
|
|
|
@@ -10398,13 +10400,13 @@ var styles = {
|
|
|
10398
10400
|
const Stack = (_a) => {
|
|
10399
10401
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest$1(_a, ["hasGutter", "className", "children", "component"]);
|
|
10400
10402
|
const Component = component;
|
|
10401
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
10403
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
10402
10404
|
};
|
|
10403
10405
|
Stack.displayName = 'Stack';
|
|
10404
10406
|
|
|
10405
10407
|
const StackItem = (_a) => {
|
|
10406
10408
|
var { isFilled = false, className = '', children = null } = _a, props = __rest$1(_a, ["isFilled", "className", "children"]);
|
|
10407
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
10409
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
10408
10410
|
};
|
|
10409
10411
|
StackItem.displayName = 'StackItem';
|
|
10410
10412
|
|
|
@@ -10459,6 +10461,36 @@ exports["default"] = exports.SearchIcon;
|
|
|
10459
10461
|
|
|
10460
10462
|
var SearchIcon = /*@__PURE__*/getDefaultExportFromCjs(searchIcon);
|
|
10461
10463
|
|
|
10464
|
+
/** Joins args into a className string
|
|
10465
|
+
*
|
|
10466
|
+
* @param {any} args list of objects, string, or arrays to reduce
|
|
10467
|
+
*/
|
|
10468
|
+
function css(...args) {
|
|
10469
|
+
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
10470
|
+
const classes = [];
|
|
10471
|
+
const hasOwn = {}.hasOwnProperty;
|
|
10472
|
+
args.filter(Boolean).forEach((arg) => {
|
|
10473
|
+
const argType = typeof arg;
|
|
10474
|
+
if (argType === 'string' || argType === 'number') {
|
|
10475
|
+
classes.push(arg);
|
|
10476
|
+
}
|
|
10477
|
+
else if (Array.isArray(arg) && arg.length) {
|
|
10478
|
+
const inner = css(...arg);
|
|
10479
|
+
if (inner) {
|
|
10480
|
+
classes.push(inner);
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10483
|
+
else if (argType === 'object') {
|
|
10484
|
+
for (const key in arg) {
|
|
10485
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
10486
|
+
classes.push(key);
|
|
10487
|
+
}
|
|
10488
|
+
}
|
|
10489
|
+
}
|
|
10490
|
+
});
|
|
10491
|
+
return classes.join(' ');
|
|
10492
|
+
}
|
|
10493
|
+
|
|
10462
10494
|
function _extends() {
|
|
10463
10495
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10464
10496
|
for (var i = 1; i < arguments.length; i++) {
|