@patternfly/react-core 4.183.0 → 4.183.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/esm/components/Slider/Slider.d.ts +1 -0
- package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
- package/dist/esm/components/Slider/Slider.js +9 -5
- package/dist/esm/components/Slider/Slider.js.map +1 -1
- package/dist/js/components/Slider/Slider.d.ts +1 -0
- package/dist/js/components/Slider/Slider.d.ts.map +1 -1
- package/dist/js/components/Slider/Slider.js +9 -5
- package/dist/js/components/Slider/Slider.js.map +1 -1
- package/dist/umd/react-core.css +266 -218
- package/dist/umd/react-core.js +11 -5
- package/dist/umd/react-core.min.css +48 -0
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/Slider/Slider.tsx +35 -19
- package/src/components/Slider/_tests_/Slider.test.tsx +6 -1
- package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +66 -0
- package/src/components/Slider/examples/Slider.md +15 -4
- package/src/components/Tabs/__tests__/Tabs.test.tsx +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +3 -3
- package/src/demos/Tabs.md +10 -1
- package/src/demos/examples/Tabs/TabsAndTable.tsx +432 -0
package/dist/umd/react-core.css
CHANGED
|
@@ -290,6 +290,224 @@
|
|
|
290
290
|
--pf-c-action-list--child--spacer: var(--pf-c-action-list--m-icon--spacer);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
.pf-c-alert {
|
|
294
|
+
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
295
|
+
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
296
|
+
--pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
|
|
297
|
+
--pf-global--primary-color--100: var(--pf-global--primary-color--dark-100);
|
|
298
|
+
--pf-global--link--Color: var(--pf-global--link--Color--dark);
|
|
299
|
+
--pf-global--link--Color--hover: var(--pf-global--link--Color--dark--hover);
|
|
300
|
+
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.pf-c-alert {
|
|
304
|
+
--pf-c-alert--BoxShadow: var(--pf-global--BoxShadow--lg);
|
|
305
|
+
--pf-c-alert--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
306
|
+
--pf-c-alert--GridTemplateColumns: max-content 1fr max-content;
|
|
307
|
+
--pf-c-alert--GridTemplateAreas:
|
|
308
|
+
"icon title action"
|
|
309
|
+
". description description"
|
|
310
|
+
". actiongroup actiongroup";
|
|
311
|
+
--pf-c-alert--BorderTopWidth: var(--pf-global--BorderWidth--md);
|
|
312
|
+
--pf-c-alert--BorderTopColor: var(--pf-global--default-color--200);
|
|
313
|
+
--pf-c-alert--PaddingTop: var(--pf-global--spacer--md);
|
|
314
|
+
--pf-c-alert--PaddingRight: var(--pf-global--spacer--md);
|
|
315
|
+
--pf-c-alert--PaddingBottom: var(--pf-global--spacer--md);
|
|
316
|
+
--pf-c-alert--PaddingLeft: var(--pf-global--spacer--md);
|
|
317
|
+
--pf-c-alert__FontSize: var(--pf-global--FontSize--sm);
|
|
318
|
+
--pf-c-alert__toggle--MarginTop: calc(-1 * var(--pf-global--spacer--form-element) - 0.0625rem);
|
|
319
|
+
--pf-c-alert__toggle--MarginBottom: calc(-1 * var(--pf-global--spacer--form-element));
|
|
320
|
+
--pf-c-alert__toggle--MarginLeft: calc(-1 * var(--pf-global--spacer--md));
|
|
321
|
+
--pf-c-alert__toggle-icon--Rotate: 0;
|
|
322
|
+
--pf-c-alert__toggle-icon--Transition: var(--pf-global--Transition);
|
|
323
|
+
--pf-c-alert__icon--Color: var(--pf-global--default-color--200);
|
|
324
|
+
--pf-c-alert__icon--MarginTop: 0.0625rem;
|
|
325
|
+
--pf-c-alert__icon--MarginRight: var(--pf-global--spacer--sm);
|
|
326
|
+
--pf-c-alert__icon--FontSize: var(--pf-global--icon--FontSize--md);
|
|
327
|
+
--pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--bold);
|
|
328
|
+
--pf-c-alert__title--Color: var(--pf-global--default-color--300);
|
|
329
|
+
--pf-c-alert__title--max-lines: 1;
|
|
330
|
+
--pf-c-alert__action--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
|
|
331
|
+
--pf-c-alert__action--MarginBottom: calc(var(--pf-global--spacer--form-element) * -1);
|
|
332
|
+
--pf-c-alert__action--TranslateY: 0.125rem;
|
|
333
|
+
--pf-c-alert__action--MarginRight: calc(var(--pf-global--spacer--sm) * -1);
|
|
334
|
+
--pf-c-alert__description--PaddingTop: var(--pf-global--spacer--xs);
|
|
335
|
+
--pf-c-alert__action-group--PaddingTop-base: var(--pf-global--spacer--xs);
|
|
336
|
+
--pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
|
|
337
|
+
--pf-c-alert__description--action-group--PaddingTop-base: var(--pf-global--spacer--md);
|
|
338
|
+
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
|
|
339
|
+
--pf-c-alert__action-group__c-button--not-last-child--MarginRight: var(--pf-global--spacer--lg);
|
|
340
|
+
--pf-c-alert--m-success--BorderTopColor: var(--pf-global--success-color--100);
|
|
341
|
+
--pf-c-alert--m-success__icon--Color: var(--pf-global--success-color--100);
|
|
342
|
+
--pf-c-alert--m-success__title--Color: var(--pf-global--success-color--200);
|
|
343
|
+
--pf-c-alert--m-danger--BorderTopColor: var(--pf-global--danger-color--100);
|
|
344
|
+
--pf-c-alert--m-danger__icon--Color: var(--pf-global--danger-color--100);
|
|
345
|
+
--pf-c-alert--m-danger__title--Color: var(--pf-global--danger-color--200);
|
|
346
|
+
--pf-c-alert--m-warning--BorderTopColor: var(--pf-global--warning-color--100);
|
|
347
|
+
--pf-c-alert--m-warning__icon--Color: var(--pf-global--warning-color--100);
|
|
348
|
+
--pf-c-alert--m-warning__title--Color: var(--pf-global--warning-color--200);
|
|
349
|
+
--pf-c-alert--m-info--BorderTopColor: var(--pf-global--info-color--100);
|
|
350
|
+
--pf-c-alert--m-info__icon--Color: var(--pf-global--info-color--100);
|
|
351
|
+
--pf-c-alert--m-info__title--Color: var(--pf-global--info-color--200);
|
|
352
|
+
--pf-c-alert--m-inline--BoxShadow: none;
|
|
353
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--cyan-50);
|
|
354
|
+
--pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--green-50);
|
|
355
|
+
--pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--red-50);
|
|
356
|
+
--pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--gold-50);
|
|
357
|
+
--pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--blue-50);
|
|
358
|
+
--pf-c-alert--m-inline--m-plain--BorderTopWidth: 0;
|
|
359
|
+
--pf-c-alert--m-inline--m-plain--BackgroundColor: transparent;
|
|
360
|
+
--pf-c-alert--m-inline--m-plain--PaddingTop: 0;
|
|
361
|
+
--pf-c-alert--m-inline--m-plain--PaddingRight: 0;
|
|
362
|
+
--pf-c-alert--m-inline--m-plain--PaddingBottom: 0;
|
|
363
|
+
--pf-c-alert--m-inline--m-plain--PaddingLeft: 0;
|
|
364
|
+
--pf-c-alert--m-expandable--GridTemplateColumns: auto max-content 1fr max-content;
|
|
365
|
+
--pf-c-alert--m-expandable--GridTemplateAreas:
|
|
366
|
+
"toggle icon title action"
|
|
367
|
+
". . description description"
|
|
368
|
+
". . actiongroup actiongroup";
|
|
369
|
+
--pf-c-alert--m-expandable__description--action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
|
|
370
|
+
--pf-c-alert--m-expanded__toggle-icon--Rotate: 90deg;
|
|
371
|
+
--pf-c-alert--m-expanded__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
|
|
372
|
+
color: var(--pf-global--Color--100);
|
|
373
|
+
position: relative;
|
|
374
|
+
display: grid;
|
|
375
|
+
padding: var(--pf-c-alert--PaddingTop) var(--pf-c-alert--PaddingRight) var(--pf-c-alert--PaddingBottom) var(--pf-c-alert--PaddingLeft);
|
|
376
|
+
font-size: var(--pf-c-alert__FontSize);
|
|
377
|
+
background-color: var(--pf-c-alert--BackgroundColor);
|
|
378
|
+
border-top: var(--pf-c-alert--BorderTopWidth) solid var(--pf-c-alert--BorderTopColor);
|
|
379
|
+
box-shadow: var(--pf-c-alert--BoxShadow);
|
|
380
|
+
grid-template-columns: var(--pf-c-alert--GridTemplateColumns);
|
|
381
|
+
grid-template-areas: var(--pf-c-alert--GridTemplateAreas);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.pf-c-alert.pf-m-success {
|
|
385
|
+
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-success--BorderTopColor);
|
|
386
|
+
--pf-c-alert__icon--Color: var(--pf-c-alert--m-success__icon--Color);
|
|
387
|
+
--pf-c-alert__title--Color: var(--pf-c-alert--m-success__title--Color);
|
|
388
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-success--BackgroundColor);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.pf-c-alert.pf-m-danger {
|
|
392
|
+
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-danger--BorderTopColor);
|
|
393
|
+
--pf-c-alert__icon--Color: var(--pf-c-alert--m-danger__icon--Color);
|
|
394
|
+
--pf-c-alert__title--Color: var(--pf-c-alert--m-danger__title--Color);
|
|
395
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-danger--BackgroundColor);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.pf-c-alert.pf-m-warning {
|
|
399
|
+
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-warning--BorderTopColor);
|
|
400
|
+
--pf-c-alert__icon--Color: var(--pf-c-alert--m-warning__icon--Color);
|
|
401
|
+
--pf-c-alert__title--Color: var(--pf-c-alert--m-warning__title--Color);
|
|
402
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-warning--BackgroundColor);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.pf-c-alert.pf-m-info {
|
|
406
|
+
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-info--BorderTopColor);
|
|
407
|
+
--pf-c-alert__icon--Color: var(--pf-c-alert--m-info__icon--Color);
|
|
408
|
+
--pf-c-alert__title--Color: var(--pf-c-alert--m-info__title--Color);
|
|
409
|
+
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-info--BackgroundColor);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.pf-c-alert.pf-m-inline {
|
|
413
|
+
--pf-c-alert--BoxShadow: var(--pf-c-alert--m-inline--BoxShadow);
|
|
414
|
+
--pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--BackgroundColor);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.pf-c-alert.pf-m-plain {
|
|
418
|
+
--pf-c-alert--BorderTopWidth: var(--pf-c-alert--m-inline--m-plain--BorderTopWidth);
|
|
419
|
+
--pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--m-plain--BackgroundColor);
|
|
420
|
+
--pf-c-alert--PaddingTop: var(--pf-c-alert--m-inline--m-plain--PaddingTop);
|
|
421
|
+
--pf-c-alert--PaddingRight: var(--pf-c-alert--m-inline--m-plain--PaddingRight);
|
|
422
|
+
--pf-c-alert--PaddingBottom: var(--pf-c-alert--m-inline--m-plain--PaddingBottom);
|
|
423
|
+
--pf-c-alert--PaddingLeft: var(--pf-c-alert--m-inline--m-plain--PaddingLeft);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.pf-c-alert.pf-m-expandable {
|
|
427
|
+
--pf-c-alert--GridTemplateColumns: var(--pf-c-alert--m-expandable--GridTemplateColumns);
|
|
428
|
+
--pf-c-alert--GridTemplateAreas: var(--pf-c-alert--m-expandable--GridTemplateAreas);
|
|
429
|
+
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expandable__description--action-group--PaddingTop);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.pf-c-alert.pf-m-expanded {
|
|
433
|
+
--pf-c-alert__toggle-icon--Rotate: var(--pf-c-alert--m-expanded__toggle-icon--Rotate);
|
|
434
|
+
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expanded__description--action-group--PaddingTop);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.pf-c-alert__toggle {
|
|
438
|
+
margin-top: var(--pf-c-alert__toggle--MarginTop);
|
|
439
|
+
margin-bottom: var(--pf-c-alert__toggle--MarginBottom);
|
|
440
|
+
margin-left: var(--pf-c-alert__toggle--MarginLeft);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.pf-c-alert__toggle-icon {
|
|
444
|
+
display: inline-block;
|
|
445
|
+
transition: var(--pf-c-alert__toggle-icon--Transition);
|
|
446
|
+
transform: rotate(var(--pf-c-alert__toggle-icon--Rotate));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.pf-c-alert__icon {
|
|
450
|
+
grid-area: icon;
|
|
451
|
+
display: flex;
|
|
452
|
+
margin-top: var(--pf-c-alert__icon--MarginTop);
|
|
453
|
+
margin-right: var(--pf-c-alert__icon--MarginRight);
|
|
454
|
+
font-size: var(--pf-c-alert__icon--FontSize);
|
|
455
|
+
color: var(--pf-c-alert__icon--Color);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.pf-c-alert__title {
|
|
459
|
+
grid-area: title;
|
|
460
|
+
font-weight: var(--pf-c-alert__title--FontWeight);
|
|
461
|
+
color: var(--pf-c-alert__title--Color);
|
|
462
|
+
word-break: break-word;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.pf-c-alert__title.pf-m-truncate {
|
|
466
|
+
display: -webkit-box;
|
|
467
|
+
-webkit-box-orient: vertical;
|
|
468
|
+
-webkit-line-clamp: var(--pf-c-alert__title--max-lines);
|
|
469
|
+
overflow: hidden;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.pf-c-alert__description {
|
|
473
|
+
grid-area: description;
|
|
474
|
+
padding-top: var(--pf-c-alert__description--PaddingTop);
|
|
475
|
+
word-break: break-word;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.pf-c-alert__description + .pf-c-alert__action-group {
|
|
479
|
+
--pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.pf-c-alert__action {
|
|
483
|
+
grid-area: action;
|
|
484
|
+
margin-top: var(--pf-c-alert__action--MarginTop);
|
|
485
|
+
margin-right: var(--pf-c-alert__action--MarginRight);
|
|
486
|
+
margin-bottom: var(--pf-c-alert__action--MarginBottom);
|
|
487
|
+
transform: translateY(var(--pf-c-alert__action--TranslateY));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.pf-c-alert__action > .pf-c-button {
|
|
491
|
+
--pf-c-button--LineHeight: 1;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.pf-c-alert__action-group {
|
|
495
|
+
grid-area: actiongroup;
|
|
496
|
+
padding-top: var(--pf-c-alert__action-group--PaddingTop);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.pf-c-alert__action-group > .pf-c-button {
|
|
500
|
+
--pf-c-button--m-link--m-inline--hover--TextDecoration: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.pf-c-alert__action-group > .pf-c-button:not(:last-child) {
|
|
504
|
+
margin-right: var(--pf-c-alert__action-group__c-button--not-last-child--MarginRight);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.pf-m-overpass-font .pf-c-alert__title {
|
|
508
|
+
--pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--normal);
|
|
509
|
+
}
|
|
510
|
+
|
|
293
511
|
.pf-c-app-launcher {
|
|
294
512
|
--pf-c-app-launcher__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
295
513
|
--pf-c-app-launcher__menu--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
@@ -830,224 +1048,6 @@ textarea.pf-c-form-control {
|
|
|
830
1048
|
resize: horizontal;
|
|
831
1049
|
}
|
|
832
1050
|
|
|
833
|
-
.pf-c-alert {
|
|
834
|
-
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
835
|
-
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
836
|
-
--pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
|
|
837
|
-
--pf-global--primary-color--100: var(--pf-global--primary-color--dark-100);
|
|
838
|
-
--pf-global--link--Color: var(--pf-global--link--Color--dark);
|
|
839
|
-
--pf-global--link--Color--hover: var(--pf-global--link--Color--dark--hover);
|
|
840
|
-
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.pf-c-alert {
|
|
844
|
-
--pf-c-alert--BoxShadow: var(--pf-global--BoxShadow--lg);
|
|
845
|
-
--pf-c-alert--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
846
|
-
--pf-c-alert--GridTemplateColumns: max-content 1fr max-content;
|
|
847
|
-
--pf-c-alert--GridTemplateAreas:
|
|
848
|
-
"icon title action"
|
|
849
|
-
". description description"
|
|
850
|
-
". actiongroup actiongroup";
|
|
851
|
-
--pf-c-alert--BorderTopWidth: var(--pf-global--BorderWidth--md);
|
|
852
|
-
--pf-c-alert--BorderTopColor: var(--pf-global--default-color--200);
|
|
853
|
-
--pf-c-alert--PaddingTop: var(--pf-global--spacer--md);
|
|
854
|
-
--pf-c-alert--PaddingRight: var(--pf-global--spacer--md);
|
|
855
|
-
--pf-c-alert--PaddingBottom: var(--pf-global--spacer--md);
|
|
856
|
-
--pf-c-alert--PaddingLeft: var(--pf-global--spacer--md);
|
|
857
|
-
--pf-c-alert__FontSize: var(--pf-global--FontSize--sm);
|
|
858
|
-
--pf-c-alert__toggle--MarginTop: calc(-1 * var(--pf-global--spacer--form-element) - 0.0625rem);
|
|
859
|
-
--pf-c-alert__toggle--MarginBottom: calc(-1 * var(--pf-global--spacer--form-element));
|
|
860
|
-
--pf-c-alert__toggle--MarginLeft: calc(-1 * var(--pf-global--spacer--md));
|
|
861
|
-
--pf-c-alert__toggle-icon--Rotate: 0;
|
|
862
|
-
--pf-c-alert__toggle-icon--Transition: var(--pf-global--Transition);
|
|
863
|
-
--pf-c-alert__icon--Color: var(--pf-global--default-color--200);
|
|
864
|
-
--pf-c-alert__icon--MarginTop: 0.0625rem;
|
|
865
|
-
--pf-c-alert__icon--MarginRight: var(--pf-global--spacer--sm);
|
|
866
|
-
--pf-c-alert__icon--FontSize: var(--pf-global--icon--FontSize--md);
|
|
867
|
-
--pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--bold);
|
|
868
|
-
--pf-c-alert__title--Color: var(--pf-global--default-color--300);
|
|
869
|
-
--pf-c-alert__title--max-lines: 1;
|
|
870
|
-
--pf-c-alert__action--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
|
|
871
|
-
--pf-c-alert__action--MarginBottom: calc(var(--pf-global--spacer--form-element) * -1);
|
|
872
|
-
--pf-c-alert__action--TranslateY: 0.125rem;
|
|
873
|
-
--pf-c-alert__action--MarginRight: calc(var(--pf-global--spacer--sm) * -1);
|
|
874
|
-
--pf-c-alert__description--PaddingTop: var(--pf-global--spacer--xs);
|
|
875
|
-
--pf-c-alert__action-group--PaddingTop-base: var(--pf-global--spacer--xs);
|
|
876
|
-
--pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
|
|
877
|
-
--pf-c-alert__description--action-group--PaddingTop-base: var(--pf-global--spacer--md);
|
|
878
|
-
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
|
|
879
|
-
--pf-c-alert__action-group__c-button--not-last-child--MarginRight: var(--pf-global--spacer--lg);
|
|
880
|
-
--pf-c-alert--m-success--BorderTopColor: var(--pf-global--success-color--100);
|
|
881
|
-
--pf-c-alert--m-success__icon--Color: var(--pf-global--success-color--100);
|
|
882
|
-
--pf-c-alert--m-success__title--Color: var(--pf-global--success-color--200);
|
|
883
|
-
--pf-c-alert--m-danger--BorderTopColor: var(--pf-global--danger-color--100);
|
|
884
|
-
--pf-c-alert--m-danger__icon--Color: var(--pf-global--danger-color--100);
|
|
885
|
-
--pf-c-alert--m-danger__title--Color: var(--pf-global--danger-color--200);
|
|
886
|
-
--pf-c-alert--m-warning--BorderTopColor: var(--pf-global--warning-color--100);
|
|
887
|
-
--pf-c-alert--m-warning__icon--Color: var(--pf-global--warning-color--100);
|
|
888
|
-
--pf-c-alert--m-warning__title--Color: var(--pf-global--warning-color--200);
|
|
889
|
-
--pf-c-alert--m-info--BorderTopColor: var(--pf-global--info-color--100);
|
|
890
|
-
--pf-c-alert--m-info__icon--Color: var(--pf-global--info-color--100);
|
|
891
|
-
--pf-c-alert--m-info__title--Color: var(--pf-global--info-color--200);
|
|
892
|
-
--pf-c-alert--m-inline--BoxShadow: none;
|
|
893
|
-
--pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--cyan-50);
|
|
894
|
-
--pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--green-50);
|
|
895
|
-
--pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--red-50);
|
|
896
|
-
--pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--gold-50);
|
|
897
|
-
--pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--blue-50);
|
|
898
|
-
--pf-c-alert--m-inline--m-plain--BorderTopWidth: 0;
|
|
899
|
-
--pf-c-alert--m-inline--m-plain--BackgroundColor: transparent;
|
|
900
|
-
--pf-c-alert--m-inline--m-plain--PaddingTop: 0;
|
|
901
|
-
--pf-c-alert--m-inline--m-plain--PaddingRight: 0;
|
|
902
|
-
--pf-c-alert--m-inline--m-plain--PaddingBottom: 0;
|
|
903
|
-
--pf-c-alert--m-inline--m-plain--PaddingLeft: 0;
|
|
904
|
-
--pf-c-alert--m-expandable--GridTemplateColumns: auto max-content 1fr max-content;
|
|
905
|
-
--pf-c-alert--m-expandable--GridTemplateAreas:
|
|
906
|
-
"toggle icon title action"
|
|
907
|
-
". . description description"
|
|
908
|
-
". . actiongroup actiongroup";
|
|
909
|
-
--pf-c-alert--m-expandable__description--action-group--PaddingTop: var(--pf-c-alert__action-group--PaddingTop-base);
|
|
910
|
-
--pf-c-alert--m-expanded__toggle-icon--Rotate: 90deg;
|
|
911
|
-
--pf-c-alert--m-expanded__description--action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop-base);
|
|
912
|
-
color: var(--pf-global--Color--100);
|
|
913
|
-
position: relative;
|
|
914
|
-
display: grid;
|
|
915
|
-
padding: var(--pf-c-alert--PaddingTop) var(--pf-c-alert--PaddingRight) var(--pf-c-alert--PaddingBottom) var(--pf-c-alert--PaddingLeft);
|
|
916
|
-
font-size: var(--pf-c-alert__FontSize);
|
|
917
|
-
background-color: var(--pf-c-alert--BackgroundColor);
|
|
918
|
-
border-top: var(--pf-c-alert--BorderTopWidth) solid var(--pf-c-alert--BorderTopColor);
|
|
919
|
-
box-shadow: var(--pf-c-alert--BoxShadow);
|
|
920
|
-
grid-template-columns: var(--pf-c-alert--GridTemplateColumns);
|
|
921
|
-
grid-template-areas: var(--pf-c-alert--GridTemplateAreas);
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
.pf-c-alert.pf-m-success {
|
|
925
|
-
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-success--BorderTopColor);
|
|
926
|
-
--pf-c-alert__icon--Color: var(--pf-c-alert--m-success__icon--Color);
|
|
927
|
-
--pf-c-alert__title--Color: var(--pf-c-alert--m-success__title--Color);
|
|
928
|
-
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-success--BackgroundColor);
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
.pf-c-alert.pf-m-danger {
|
|
932
|
-
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-danger--BorderTopColor);
|
|
933
|
-
--pf-c-alert__icon--Color: var(--pf-c-alert--m-danger__icon--Color);
|
|
934
|
-
--pf-c-alert__title--Color: var(--pf-c-alert--m-danger__title--Color);
|
|
935
|
-
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-danger--BackgroundColor);
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
.pf-c-alert.pf-m-warning {
|
|
939
|
-
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-warning--BorderTopColor);
|
|
940
|
-
--pf-c-alert__icon--Color: var(--pf-c-alert--m-warning__icon--Color);
|
|
941
|
-
--pf-c-alert__title--Color: var(--pf-c-alert--m-warning__title--Color);
|
|
942
|
-
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-warning--BackgroundColor);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.pf-c-alert.pf-m-info {
|
|
946
|
-
--pf-c-alert--BorderTopColor: var(--pf-c-alert--m-info--BorderTopColor);
|
|
947
|
-
--pf-c-alert__icon--Color: var(--pf-c-alert--m-info__icon--Color);
|
|
948
|
-
--pf-c-alert__title--Color: var(--pf-c-alert--m-info__title--Color);
|
|
949
|
-
--pf-c-alert--m-inline--BackgroundColor: var(--pf-c-alert--m-inline--m-info--BackgroundColor);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
.pf-c-alert.pf-m-inline {
|
|
953
|
-
--pf-c-alert--BoxShadow: var(--pf-c-alert--m-inline--BoxShadow);
|
|
954
|
-
--pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--BackgroundColor);
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
.pf-c-alert.pf-m-plain {
|
|
958
|
-
--pf-c-alert--BorderTopWidth: var(--pf-c-alert--m-inline--m-plain--BorderTopWidth);
|
|
959
|
-
--pf-c-alert--BackgroundColor: var(--pf-c-alert--m-inline--m-plain--BackgroundColor);
|
|
960
|
-
--pf-c-alert--PaddingTop: var(--pf-c-alert--m-inline--m-plain--PaddingTop);
|
|
961
|
-
--pf-c-alert--PaddingRight: var(--pf-c-alert--m-inline--m-plain--PaddingRight);
|
|
962
|
-
--pf-c-alert--PaddingBottom: var(--pf-c-alert--m-inline--m-plain--PaddingBottom);
|
|
963
|
-
--pf-c-alert--PaddingLeft: var(--pf-c-alert--m-inline--m-plain--PaddingLeft);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
.pf-c-alert.pf-m-expandable {
|
|
967
|
-
--pf-c-alert--GridTemplateColumns: var(--pf-c-alert--m-expandable--GridTemplateColumns);
|
|
968
|
-
--pf-c-alert--GridTemplateAreas: var(--pf-c-alert--m-expandable--GridTemplateAreas);
|
|
969
|
-
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expandable__description--action-group--PaddingTop);
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
.pf-c-alert.pf-m-expanded {
|
|
973
|
-
--pf-c-alert__toggle-icon--Rotate: var(--pf-c-alert--m-expanded__toggle-icon--Rotate);
|
|
974
|
-
--pf-c-alert__description--action-group--PaddingTop: var(--pf-c-alert--m-expanded__description--action-group--PaddingTop);
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
.pf-c-alert__toggle {
|
|
978
|
-
margin-top: var(--pf-c-alert__toggle--MarginTop);
|
|
979
|
-
margin-bottom: var(--pf-c-alert__toggle--MarginBottom);
|
|
980
|
-
margin-left: var(--pf-c-alert__toggle--MarginLeft);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
.pf-c-alert__toggle-icon {
|
|
984
|
-
display: inline-block;
|
|
985
|
-
transition: var(--pf-c-alert__toggle-icon--Transition);
|
|
986
|
-
transform: rotate(var(--pf-c-alert__toggle-icon--Rotate));
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
.pf-c-alert__icon {
|
|
990
|
-
grid-area: icon;
|
|
991
|
-
display: flex;
|
|
992
|
-
margin-top: var(--pf-c-alert__icon--MarginTop);
|
|
993
|
-
margin-right: var(--pf-c-alert__icon--MarginRight);
|
|
994
|
-
font-size: var(--pf-c-alert__icon--FontSize);
|
|
995
|
-
color: var(--pf-c-alert__icon--Color);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
.pf-c-alert__title {
|
|
999
|
-
grid-area: title;
|
|
1000
|
-
font-weight: var(--pf-c-alert__title--FontWeight);
|
|
1001
|
-
color: var(--pf-c-alert__title--Color);
|
|
1002
|
-
word-break: break-word;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
.pf-c-alert__title.pf-m-truncate {
|
|
1006
|
-
display: -webkit-box;
|
|
1007
|
-
-webkit-box-orient: vertical;
|
|
1008
|
-
-webkit-line-clamp: var(--pf-c-alert__title--max-lines);
|
|
1009
|
-
overflow: hidden;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
.pf-c-alert__description {
|
|
1013
|
-
grid-area: description;
|
|
1014
|
-
padding-top: var(--pf-c-alert__description--PaddingTop);
|
|
1015
|
-
word-break: break-word;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
.pf-c-alert__description + .pf-c-alert__action-group {
|
|
1019
|
-
--pf-c-alert__action-group--PaddingTop: var(--pf-c-alert__description--action-group--PaddingTop);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
.pf-c-alert__action {
|
|
1023
|
-
grid-area: action;
|
|
1024
|
-
margin-top: var(--pf-c-alert__action--MarginTop);
|
|
1025
|
-
margin-right: var(--pf-c-alert__action--MarginRight);
|
|
1026
|
-
margin-bottom: var(--pf-c-alert__action--MarginBottom);
|
|
1027
|
-
transform: translateY(var(--pf-c-alert__action--TranslateY));
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.pf-c-alert__action > .pf-c-button {
|
|
1031
|
-
--pf-c-button--LineHeight: 1;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.pf-c-alert__action-group {
|
|
1035
|
-
grid-area: actiongroup;
|
|
1036
|
-
padding-top: var(--pf-c-alert__action-group--PaddingTop);
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
.pf-c-alert__action-group > .pf-c-button {
|
|
1040
|
-
--pf-c-button--m-link--m-inline--hover--TextDecoration: none;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
.pf-c-alert__action-group > .pf-c-button:not(:last-child) {
|
|
1044
|
-
margin-right: var(--pf-c-alert__action-group__c-button--not-last-child--MarginRight);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
.pf-m-overpass-font .pf-c-alert__title {
|
|
1048
|
-
--pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--normal);
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
1051
|
.pf-u-screen-reader {
|
|
1052
1052
|
position: fixed;
|
|
1053
1053
|
top: 0;
|
|
@@ -7506,6 +7506,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7506
7506
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
7507
7507
|
--pf-c-expandable-section__toggle--focus--Color: var(--pf-global--link--Color--hover);
|
|
7508
7508
|
--pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
|
|
7509
|
+
--pf-c-expandable-section__toggle-icon--MinWidth: 1em;
|
|
7509
7510
|
--pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
|
|
7510
7511
|
--pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
|
|
7511
7512
|
--pf-c-expandable-section__toggle-icon--Rotate: 0;
|
|
@@ -7528,6 +7529,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7528
7529
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: transparent;
|
|
7529
7530
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
7530
7531
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
7532
|
+
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
7531
7533
|
}
|
|
7532
7534
|
|
|
7533
7535
|
.pf-c-expandable-section.pf-m-expanded {
|
|
@@ -7568,6 +7570,10 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7568
7570
|
background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
|
|
7569
7571
|
}
|
|
7570
7572
|
|
|
7573
|
+
.pf-c-expandable-section.pf-m-indented {
|
|
7574
|
+
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
7575
|
+
}
|
|
7576
|
+
|
|
7571
7577
|
.pf-c-expandable-section__toggle {
|
|
7572
7578
|
display: flex;
|
|
7573
7579
|
padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
|
|
@@ -7588,6 +7594,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7588
7594
|
}
|
|
7589
7595
|
|
|
7590
7596
|
.pf-c-expandable-section__toggle-icon {
|
|
7597
|
+
min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
|
|
7591
7598
|
color: var(--pf-c-expandable-section__toggle-icon--Color);
|
|
7592
7599
|
transition: var(--pf-c-expandable-section__toggle-icon--Transition);
|
|
7593
7600
|
transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
|
|
@@ -9202,6 +9209,7 @@ label.pf-c-input-group__text {
|
|
|
9202
9209
|
--pf-c-label--m-compact--PaddingBottom: 0;
|
|
9203
9210
|
--pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
|
|
9204
9211
|
--pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
|
|
9212
|
+
--pf-c-label--m-compact--m-editable--TextDecorationOffset: 0.0625rem;
|
|
9205
9213
|
--pf-c-label__content--Color: var(--pf-global--Color--100);
|
|
9206
9214
|
--pf-c-label--m-outline__content--Color: var(--pf-global--Color--100);
|
|
9207
9215
|
--pf-c-label__text--MaxWidth: 16ch;
|
|
@@ -9216,6 +9224,18 @@ label.pf-c-input-group__text {
|
|
|
9216
9224
|
--pf-c-label__c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
9217
9225
|
--pf-c-label__c-button--PaddingBottom: var(--pf-global--spacer--xs);
|
|
9218
9226
|
--pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
9227
|
+
--pf-c-label__editable-text--MaxWidth: 16ch;
|
|
9228
|
+
--pf-c-label__editable-text--BorderWidth: 0;
|
|
9229
|
+
--pf-c-label--m-editable--Cursor: pointer;
|
|
9230
|
+
--pf-c-label--m-editable--TextDecoration: underline;
|
|
9231
|
+
--pf-c-label--m-editable--TextDecorationStyle: dashed;
|
|
9232
|
+
--pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
|
|
9233
|
+
--pf-c-label--m-editable--TextDecorationOffset: 0.25rem;
|
|
9234
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
|
|
9235
|
+
--pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
|
|
9236
|
+
--pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
|
|
9237
|
+
--pf-c-label--m-editable--m-editable-active--Cursor: auto;
|
|
9238
|
+
--pf-c-label--m-editable--m-editable-active--TextDecoration: none;
|
|
9219
9239
|
--pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
|
|
9220
9240
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
|
|
9221
9241
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
|
|
@@ -9235,6 +9255,7 @@ label.pf-c-input-group__text {
|
|
|
9235
9255
|
--pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
|
|
9236
9256
|
--pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
|
|
9237
9257
|
--pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
|
|
9258
|
+
--pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
|
|
9238
9259
|
}
|
|
9239
9260
|
|
|
9240
9261
|
.pf-c-label.pf-m-blue {
|
|
@@ -9334,7 +9355,26 @@ label.pf-c-input-group__text {
|
|
|
9334
9355
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
|
|
9335
9356
|
}
|
|
9336
9357
|
|
|
9358
|
+
.pf-c-label.pf-m-editable {
|
|
9359
|
+
text-decoration: var(--pf-c-label--m-editable--TextDecoration);
|
|
9360
|
+
cursor: var(--pf-c-label--m-editable--Cursor);
|
|
9361
|
+
text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
|
|
9362
|
+
text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
|
|
9363
|
+
text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
|
|
9364
|
+
text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
|
|
9365
|
+
}
|
|
9366
|
+
|
|
9367
|
+
.pf-c-label.pf-m-editable:hover {
|
|
9368
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
|
|
9369
|
+
}
|
|
9370
|
+
|
|
9371
|
+
.pf-c-label.pf-m-editable:focus {
|
|
9372
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
|
|
9373
|
+
}
|
|
9374
|
+
|
|
9337
9375
|
.pf-c-label.pf-m-editable-active {
|
|
9376
|
+
--pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
|
|
9377
|
+
--pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
|
|
9338
9378
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
|
|
9339
9379
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
|
|
9340
9380
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
|
|
@@ -9344,6 +9384,14 @@ label.pf-c-input-group__text {
|
|
|
9344
9384
|
visibility: hidden;
|
|
9345
9385
|
}
|
|
9346
9386
|
|
|
9387
|
+
.pf-c-label .pf-c-label__editable-text {
|
|
9388
|
+
overflow: hidden;
|
|
9389
|
+
text-overflow: ellipsis;
|
|
9390
|
+
white-space: nowrap;
|
|
9391
|
+
max-width: var(--pf-c-label__editable-text--MaxWidth);
|
|
9392
|
+
border-width: var(--pf-c-label__editable-text--BorderWidth);
|
|
9393
|
+
}
|
|
9394
|
+
|
|
9347
9395
|
.pf-c-label .pf-c-button {
|
|
9348
9396
|
--pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
|
|
9349
9397
|
--pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
|
package/dist/umd/react-core.js
CHANGED
|
@@ -10638,6 +10638,7 @@
|
|
|
10638
10638
|
"detached": "pf-m-detached",
|
|
10639
10639
|
"limitWidth": "pf-m-limit-width",
|
|
10640
10640
|
"displayLg": "pf-m-display-lg",
|
|
10641
|
+
"indented": "pf-m-indented",
|
|
10641
10642
|
"active": "pf-m-active",
|
|
10642
10643
|
"expandTop": "pf-m-expand-top",
|
|
10643
10644
|
"overpassFont": "pf-m-overpass-font"
|
|
@@ -13349,6 +13350,7 @@
|
|
|
13349
13350
|
"button": "pf-c-button",
|
|
13350
13351
|
"label": "pf-c-label",
|
|
13351
13352
|
"labelContent": "pf-c-label__content",
|
|
13353
|
+
"labelEditableText": "pf-c-label__editable-text",
|
|
13352
13354
|
"labelIcon": "pf-c-label__icon",
|
|
13353
13355
|
"labelText": "pf-c-label__text",
|
|
13354
13356
|
"modifiers": {
|
|
@@ -13361,6 +13363,7 @@
|
|
|
13361
13363
|
"cyan": "pf-m-cyan",
|
|
13362
13364
|
"outline": "pf-m-outline",
|
|
13363
13365
|
"overflow": "pf-m-overflow",
|
|
13366
|
+
"editable": "pf-m-editable",
|
|
13364
13367
|
"editableActive": "pf-m-editable-active"
|
|
13365
13368
|
}
|
|
13366
13369
|
};
|
|
@@ -17088,7 +17091,7 @@
|
|
|
17088
17091
|
|
|
17089
17092
|
const getPercentage = (current, max) => (100 * current) / max;
|
|
17090
17093
|
const Slider = (_a) => {
|
|
17091
|
-
var { className, value = 0, customSteps, areCustomStepsContinuous = false, isDisabled = false, isInputVisible = false, inputValue = 0, inputLabel, inputAriaLabel = 'Slider value input', thumbAriaLabel = 'Value', inputPosition = 'right', onChange, leftActions, rightActions, step = 1, min = 0, max = 100, showTicks = false, showBoundaries = true } = _a, props = __rest$1(_a, ["className", "value", "customSteps", "areCustomStepsContinuous", "isDisabled", "isInputVisible", "inputValue", "inputLabel", "inputAriaLabel", "thumbAriaLabel", "inputPosition", "onChange", "leftActions", "rightActions", "step", "min", "max", "showTicks", "showBoundaries"]);
|
|
17094
|
+
var { className, value = 0, customSteps, areCustomStepsContinuous = false, isDisabled = false, isInputVisible = false, inputValue = 0, inputLabel, inputAriaLabel = 'Slider value input', thumbAriaLabel = 'Value', hasTooltipOverThumb = false, inputPosition = 'right', onChange, leftActions, rightActions, step = 1, min = 0, max = 100, showTicks = false, showBoundaries = true } = _a, props = __rest$1(_a, ["className", "value", "customSteps", "areCustomStepsContinuous", "isDisabled", "isInputVisible", "inputValue", "inputLabel", "inputAriaLabel", "thumbAriaLabel", "hasTooltipOverThumb", "inputPosition", "onChange", "leftActions", "rightActions", "step", "min", "max", "showTicks", "showBoundaries"]);
|
|
17092
17095
|
const sliderRailRef = React__namespace.useRef();
|
|
17093
17096
|
const thumbRef = React__namespace.useRef();
|
|
17094
17097
|
const [localValue, setValue] = React.useState(value);
|
|
@@ -17135,7 +17138,9 @@
|
|
|
17135
17138
|
return matchingStep.label;
|
|
17136
17139
|
}
|
|
17137
17140
|
}
|
|
17138
|
-
|
|
17141
|
+
// For continuous steps default to showing 2 decimals in tooltip
|
|
17142
|
+
// Consider making it configurable via a property
|
|
17143
|
+
return Number(Number(localValue).toFixed(2)).toString();
|
|
17139
17144
|
};
|
|
17140
17145
|
const handleThumbDragEnd = () => {
|
|
17141
17146
|
document.removeEventListener('mousemove', callbackThumbMove);
|
|
@@ -17186,11 +17191,11 @@
|
|
|
17186
17191
|
const newPercentage = getPercentage(newPosition, end);
|
|
17187
17192
|
thumbRef.current.style.setProperty('--pf-c-slider--value', `${newPercentage}%`);
|
|
17188
17193
|
// convert percentage to value
|
|
17189
|
-
const newValue = (newPercentage * (max - min)) / 100 + min;
|
|
17194
|
+
const newValue = Math.round(((newPercentage * (max - min)) / 100 + min) * 100) / 100;
|
|
17190
17195
|
setValue(newValue);
|
|
17191
17196
|
if (!customSteps) {
|
|
17192
17197
|
// snap to new value if not custom steps
|
|
17193
|
-
snapValue = Math.round((newValue - min) / step) * step + min;
|
|
17198
|
+
snapValue = Math.round((Math.round((newValue - min) / step) * step + min) * 100) / 100;
|
|
17194
17199
|
thumbRef.current.style.setProperty('--pf-c-slider--value', `${snapValue}%`);
|
|
17195
17200
|
setValue(snapValue);
|
|
17196
17201
|
}
|
|
@@ -17294,6 +17299,7 @@
|
|
|
17294
17299
|
}
|
|
17295
17300
|
return builtSteps;
|
|
17296
17301
|
};
|
|
17302
|
+
const thumbComponent = (React__namespace.createElement("div", { className: css(_default$i.sliderThumb), ref: thumbRef, tabIndex: isDisabled ? -1 : 0, role: "slider", "aria-valuemin": customSteps ? customSteps[0].value : min, "aria-valuemax": customSteps ? customSteps[customSteps.length - 1].value : max, "aria-valuenow": localValue, "aria-valuetext": findAriaTextValue(), "aria-label": thumbAriaLabel, "aria-disabled": isDisabled, onMouseDown: !isDisabled ? handleMouseDown : null, onTouchStart: !isDisabled ? handleTouchStart : null, onKeyDown: !isDisabled ? handleThumbKeys : null, onClick: !isDisabled ? onThumbClick : null }));
|
|
17297
17303
|
return (React__namespace.createElement("div", Object.assign({ className: css(_default$i.slider, className, isDisabled && _default$i.modifiers.disabled), style: Object.assign(Object.assign({}, style), inputStyle) }, props),
|
|
17298
17304
|
leftActions && React__namespace.createElement("div", { className: css(_default$i.sliderActions) }, leftActions),
|
|
17299
17305
|
React__namespace.createElement("div", { className: css(_default$i.sliderMain) },
|
|
@@ -17306,7 +17312,7 @@
|
|
|
17306
17312
|
return (React__namespace.createElement(SliderStep, { key: stepObj.value, value: stepValue, label: stepObj.label, isLabelHidden: stepObj.isLabelHidden, isActive: stepObj.value <= localValue }));
|
|
17307
17313
|
}))),
|
|
17308
17314
|
!customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(_default$i.sliderSteps), "aria-hidden": "true" }, buildSteps())),
|
|
17309
|
-
React__namespace.createElement(
|
|
17315
|
+
hasTooltipOverThumb ? (React__namespace.createElement(Tooltip, { entryDelay: 0, content: findAriaTextValue() }, thumbComponent)) : (thumbComponent),
|
|
17310
17316
|
isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(_default$i.sliderValue, _default$i.modifiers.floating) }, displayInput()))),
|
|
17311
17317
|
isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(_default$i.sliderValue) }, displayInput()),
|
|
17312
17318
|
rightActions && React__namespace.createElement("div", { className: css(_default$i.sliderActions) }, rightActions)));
|