@patternfly/react-core 4.175.16 → 4.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/esm/components/Dropdown/DropdownToggle.d.ts +3 -1
  3. package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +1 -1
  4. package/dist/esm/components/Dropdown/DropdownToggle.js +4 -4
  5. package/dist/esm/components/Dropdown/DropdownToggle.js.map +1 -1
  6. package/dist/esm/components/Dropdown/Toggle.d.ts +3 -1
  7. package/dist/esm/components/Dropdown/Toggle.d.ts.map +1 -1
  8. package/dist/esm/components/Dropdown/Toggle.js +8 -3
  9. package/dist/esm/components/Dropdown/Toggle.js.map +1 -1
  10. package/dist/esm/components/MenuToggle/MenuToggle.d.ts +1 -1
  11. package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
  12. package/dist/esm/components/MenuToggle/MenuToggle.js +2 -1
  13. package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
  14. package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
  15. package/dist/esm/components/Popover/Popover.js +2 -22
  16. package/dist/esm/components/Popover/Popover.js.map +1 -1
  17. package/dist/esm/components/Select/Select.d.ts +2 -0
  18. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  19. package/dist/esm/components/Select/Select.js +7 -9
  20. package/dist/esm/components/Select/Select.js.map +1 -1
  21. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  22. package/dist/esm/components/Slider/Slider.js +9 -6
  23. package/dist/esm/components/Slider/Slider.js.map +1 -1
  24. package/dist/js/components/Dropdown/DropdownToggle.d.ts +3 -1
  25. package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +1 -1
  26. package/dist/js/components/Dropdown/DropdownToggle.js +4 -4
  27. package/dist/js/components/Dropdown/DropdownToggle.js.map +1 -1
  28. package/dist/js/components/Dropdown/Toggle.d.ts +3 -1
  29. package/dist/js/components/Dropdown/Toggle.d.ts.map +1 -1
  30. package/dist/js/components/Dropdown/Toggle.js +8 -3
  31. package/dist/js/components/Dropdown/Toggle.js.map +1 -1
  32. package/dist/js/components/MenuToggle/MenuToggle.d.ts +1 -1
  33. package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
  34. package/dist/js/components/MenuToggle/MenuToggle.js +2 -1
  35. package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
  36. package/dist/js/components/Popover/Popover.d.ts.map +1 -1
  37. package/dist/js/components/Popover/Popover.js +2 -22
  38. package/dist/js/components/Popover/Popover.js.map +1 -1
  39. package/dist/js/components/Select/Select.d.ts +2 -0
  40. package/dist/js/components/Select/Select.d.ts.map +1 -1
  41. package/dist/js/components/Select/Select.js +7 -9
  42. package/dist/js/components/Select/Select.js.map +1 -1
  43. package/dist/js/components/Slider/Slider.d.ts.map +1 -1
  44. package/dist/js/components/Slider/Slider.js +9 -6
  45. package/dist/js/components/Slider/Slider.js.map +1 -1
  46. package/dist/umd/react-core.css +191 -191
  47. package/dist/umd/react-core.js +32 -45
  48. package/dist/umd/react-core.min.css +69 -69
  49. package/dist/umd/react-core.min.js +2 -2
  50. package/package.json +5 -5
  51. package/src/components/Alert/examples/Alert.md +201 -382
  52. package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +61 -0
  53. package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +61 -0
  54. package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +6 -0
  55. package/src/components/Dropdown/DropdownToggle.tsx +6 -1
  56. package/src/components/Dropdown/Toggle.tsx +11 -1
  57. package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +51 -0
  58. package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +8 -0
  59. package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +346 -4
  60. package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +1 -0
  61. package/src/components/Dropdown/examples/Dropdown.md +160 -91
  62. package/src/components/MenuToggle/MenuToggle.tsx +5 -2
  63. package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +5 -0
  64. package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +59 -0
  65. package/src/components/MenuToggle/examples/MenuToggle.md +60 -67
  66. package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +7 -0
  67. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +15 -0
  68. package/src/components/Popover/Popover.tsx +1 -19
  69. package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -1
  70. package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +0 -4
  71. package/src/components/Select/Select.tsx +9 -1
  72. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +25 -0
  73. package/src/components/Select/examples/Select.md +75 -9
  74. package/src/components/Slider/Slider.tsx +9 -6
  75. package/src/components/Slider/examples/Slider.md +27 -0
  76. package/src/demos/CardDemos.md +65 -91
  77. package/src/demos/Tabs/NestedTabsDemo.js +151 -0
  78. package/src/demos/Tabs.md +4 -0
@@ -15348,197 +15348,6 @@ label.pf-c-radio, .pf-c-radio__label,
15348
15348
  cursor: not-allowed;
15349
15349
  }
15350
15350
 
15351
- .pf-c-search-input {
15352
- --pf-c-search-input__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
15353
- --pf-c-search-input__text--before--BorderColor: var(--pf-global--BorderColor--300);
15354
- --pf-c-search-input__text--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
15355
- --pf-c-search-input__text--after--BorderBottomColor: var(--pf-global--BorderColor--200);
15356
- --pf-c-search-input__bar--hover__text--after--BorderBottomColor: var(--pf-global--primary-color--100);
15357
- --pf-c-search-input__text--focus-within--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
15358
- --pf-c-search-input__text--focus-within--after--BorderBottomColor: var(--pf-global--primary-color--100);
15359
- --pf-c-search-input__text-input--PaddingTop: var(--pf-global--spacer--form-element);
15360
- --pf-c-search-input__text-input--PaddingRight: var(--pf-global--spacer--sm);
15361
- --pf-c-search-input__text-input--PaddingBottom: var(--pf-global--spacer--form-element);
15362
- --pf-c-search-input__text-input--PaddingLeft: var(--pf-global--spacer--xl);
15363
- --pf-c-search-input__text-input--MinWidth: 6ch;
15364
- --pf-c-search-input__text-input--m-hint--Color: var(--pf-global--Color--dark-200);
15365
- --pf-c-search-input__icon--Left: var(--pf-global--spacer--sm);
15366
- --pf-c-search-input__icon--Color: var(--pf-global--Color--200);
15367
- --pf-c-search-input__text--hover__icon--Color: var(--pf-global--Color--100);
15368
- --pf-c-search-input__icon--TranslateY: -50%;
15369
- --pf-c-search-input__utilities--MarginRight: var(--pf-global--spacer--sm);
15370
- --pf-c-search-input__utilities--MarginLeft: var(--pf-global--spacer--xs);
15371
- --pf-c-search-input__utilities--child--MarginLeft: var(--pf-global--spacer--xs);
15372
- --pf-c-search-input__utilities--c-button--PaddingRight: var(--pf-global--spacer--xs);
15373
- --pf-c-search-input__utilities--c-button--PaddingLeft: var(--pf-global--spacer--xs);
15374
- --pf-c-search-input__menu-body--PaddingTop: var(--pf-global--spacer--md);
15375
- --pf-c-search-input__menu-body--PaddingRight: var(--pf-global--spacer--md);
15376
- --pf-c-search-input__menu-body--PaddingBottom: var(--pf-global--spacer--md);
15377
- --pf-c-search-input__menu-body--PaddingLeft: var(--pf-global--spacer--md);
15378
- --pf-c-search-input__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
15379
- --pf-c-search-input__menu--BoxShadow: var(--pf-global--BoxShadow--md);
15380
- --pf-c-search-input__menu--Top: calc(100% + var(--pf-global--spacer--xs));
15381
- --pf-c-search-input__menu--ZIndex: var(--pf-global--ZIndex--sm);
15382
- --pf-c-search-input--m-top__menu--Top: 0;
15383
- --pf-c-search-input--m-top__menu--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
15384
- --pf-c-search-input__menu-list--PaddingTop: var(--pf-global--spacer--sm);
15385
- --pf-c-search-input__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
15386
- --pf-c-search-input__menu-item--PaddingTop: var(--pf-global--spacer--sm);
15387
- --pf-c-search-input__menu-item--PaddingRight: var(--pf-global--spacer--md);
15388
- --pf-c-search-input__menu-item--PaddingBottom: var(--pf-global--spacer--sm);
15389
- --pf-c-search-input__menu-item--PaddingLeft: var(--pf-global--spacer--md);
15390
- --pf-c-search-input__menu-item--Color: var(--pf-global--Color--100);
15391
- --pf-c-search-input__menu-item--BackgroundColor: transparent;
15392
- --pf-c-search-input__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
15393
- --pf-c-search-input__menu-item--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
15394
- position: relative;
15395
- }
15396
-
15397
- .pf-c-search-input__bar {
15398
- position: relative;
15399
- display: flex;
15400
- width: 100%;
15401
- }
15402
-
15403
- .pf-c-search-input__bar:hover {
15404
- --pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__bar--hover__text--after--BorderBottomColor);
15405
- }
15406
-
15407
- .pf-c-search-input__text {
15408
- display: grid;
15409
- grid-template-columns: 1fr;
15410
- grid-template-areas: "text-input";
15411
- flex: 1;
15412
- }
15413
-
15414
- .pf-c-search-input__text::before, .pf-c-search-input__text::after {
15415
- position: absolute;
15416
- top: 0;
15417
- right: 0;
15418
- bottom: 0;
15419
- left: 0;
15420
- pointer-events: none;
15421
- content: "";
15422
- }
15423
-
15424
- .pf-c-search-input__text::before {
15425
- border: var(--pf-c-search-input__text--before--BorderWidth) solid var(--pf-c-search-input__text--before--BorderColor);
15426
- }
15427
-
15428
- .pf-c-search-input__text::after {
15429
- border-bottom: var(--pf-c-search-input__text--after--BorderBottomWidth) solid var(--pf-c-search-input__text--after--BorderBottomColor);
15430
- }
15431
-
15432
- .pf-c-search-input__text:hover, .pf-c-search-input__text:focus-within {
15433
- --pf-c-search-input__icon--Color: var(--pf-c-search-input__text--hover__icon--Color);
15434
- }
15435
-
15436
- .pf-c-search-input__text:focus-within {
15437
- --pf-c-search-input__text--after--BorderBottomWidth: var(--pf-c-search-input__text--focus-within--after--BorderBottomWidth);
15438
- --pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__text--focus-within--after--BorderBottomColor);
15439
- }
15440
-
15441
- .pf-c-search-input__icon {
15442
- position: absolute;
15443
- top: 50%;
15444
- left: var(--pf-c-search-input__icon--Left);
15445
- color: var(--pf-c-search-input__icon--Color);
15446
- transform: translateY(var(--pf-c-search-input__icon--TranslateY));
15447
- }
15448
-
15449
- .pf-c-search-input__text-input {
15450
- overflow: hidden;
15451
- text-overflow: ellipsis;
15452
- white-space: nowrap;
15453
- position: relative;
15454
- width: 100%;
15455
- min-width: var(--pf-c-search-input__text-input--MinWidth);
15456
- padding: var(--pf-c-search-input__text-input--PaddingTop) var(--pf-c-search-input__text-input--PaddingRight) var(--pf-c-search-input__text-input--PaddingBottom) var(--pf-c-search-input__text-input--PaddingLeft);
15457
- border: 0;
15458
- }
15459
-
15460
- .pf-c-search-input__text-input, .pf-c-search-input__text-input.pf-m-hint {
15461
- grid-area: text-input;
15462
- }
15463
-
15464
- .pf-c-search-input__text-input.pf-m-hint {
15465
- color: var(--pf-c-search-input__text-input--m-hint--Color);
15466
- }
15467
-
15468
- .pf-c-search-input__utilities {
15469
- display: flex;
15470
- margin-right: var(--pf-c-search-input__utilities--MarginRight);
15471
- margin-left: var(--pf-c-search-input__utilities--MarginLeft);
15472
- }
15473
-
15474
- .pf-c-search-input__utilities > * + * {
15475
- margin-left: var(--pf-c-search-input__utilities--child--MarginLeft);
15476
- }
15477
-
15478
- .pf-c-search-input__utilities .pf-c-button {
15479
- --pf-c-button--PaddingRight: var(--pf-c-search-input__utilities--c-button--PaddingRight);
15480
- --pf-c-button--PaddingLeft: var(--pf-c-search-input__utilities--c-button--PaddingLeft);
15481
- }
15482
-
15483
- .pf-c-search-input__nav {
15484
- display: flex;
15485
- }
15486
-
15487
- .pf-c-search-input__count {
15488
- display: flex;
15489
- align-items: center;
15490
- }
15491
-
15492
- .pf-c-search-input__menu {
15493
- position: absolute;
15494
- top: var(--pf-c-search-input__menu--Top);
15495
- z-index: var(--pf-c-search-input__menu--ZIndex);
15496
- min-width: 100%;
15497
- background-color: var(--pf-c-search-input__menu--BackgroundColor);
15498
- background-clip: padding-box;
15499
- box-shadow: var(--pf-c-search-input__menu--BoxShadow);
15500
- }
15501
-
15502
- .pf-c-search-input.pf-m-top .pf-c-search-input__menu {
15503
- --pf-c-search-input__menu--Top: var(--pf-c-search-input--m-top__menu--Top);
15504
- transform: translateY(var(--pf-c-search-input--m-top__menu--TranslateY));
15505
- }
15506
-
15507
- .pf-c-search-input__menu-body {
15508
- padding: var(--pf-c-search-input__menu-body--PaddingTop) var(--pf-c-search-input__menu-body--PaddingRight) var(--pf-c-search-input__menu-body--PaddingBottom) var(--pf-c-search-input__menu-body--PaddingLeft);
15509
- }
15510
-
15511
- .pf-c-search-input__menu-list {
15512
- padding-top: var(--pf-c-search-input__menu-list--PaddingTop);
15513
- padding-bottom: var(--pf-c-search-input__menu-list--PaddingBottom);
15514
- }
15515
-
15516
- .pf-c-search-input__menu-item {
15517
- display: flex;
15518
- width: 100%;
15519
- min-width: 0;
15520
- padding-top: var(--pf-c-search-input__menu-item--PaddingTop);
15521
- padding-right: var(--pf-c-search-input__menu-item--PaddingRight);
15522
- padding-bottom: var(--pf-c-search-input__menu-item--PaddingBottom);
15523
- padding-left: var(--pf-c-search-input__menu-item--PaddingLeft);
15524
- color: var(--pf-c-search-input__menu-item--Color);
15525
- text-align: left;
15526
- background-color: var(--pf-c-search-input__menu-item--BackgroundColor);
15527
- border: none;
15528
- }
15529
-
15530
- .pf-c-search-input__menu-item:hover {
15531
- --pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--hover--BackgroundColor);
15532
- }
15533
-
15534
- .pf-c-search-input__menu-item:focus {
15535
- --pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--focus--BackgroundColor);
15536
- }
15537
-
15538
- .pf-c-search-input__menu-item-text {
15539
- flex-grow: 1;
15540
- }
15541
-
15542
15351
  .pf-c-select {
15543
15352
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
15544
15353
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -16141,6 +15950,197 @@ label.pf-c-radio, .pf-c-radio__label,
16141
15950
  box-shadow: var(--pf-c-select__menu-footer--BoxShadow);
16142
15951
  }
16143
15952
 
15953
+ .pf-c-search-input {
15954
+ --pf-c-search-input__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
15955
+ --pf-c-search-input__text--before--BorderColor: var(--pf-global--BorderColor--300);
15956
+ --pf-c-search-input__text--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
15957
+ --pf-c-search-input__text--after--BorderBottomColor: var(--pf-global--BorderColor--200);
15958
+ --pf-c-search-input__bar--hover__text--after--BorderBottomColor: var(--pf-global--primary-color--100);
15959
+ --pf-c-search-input__text--focus-within--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
15960
+ --pf-c-search-input__text--focus-within--after--BorderBottomColor: var(--pf-global--primary-color--100);
15961
+ --pf-c-search-input__text-input--PaddingTop: var(--pf-global--spacer--form-element);
15962
+ --pf-c-search-input__text-input--PaddingRight: var(--pf-global--spacer--sm);
15963
+ --pf-c-search-input__text-input--PaddingBottom: var(--pf-global--spacer--form-element);
15964
+ --pf-c-search-input__text-input--PaddingLeft: var(--pf-global--spacer--xl);
15965
+ --pf-c-search-input__text-input--MinWidth: 6ch;
15966
+ --pf-c-search-input__text-input--m-hint--Color: var(--pf-global--Color--dark-200);
15967
+ --pf-c-search-input__icon--Left: var(--pf-global--spacer--sm);
15968
+ --pf-c-search-input__icon--Color: var(--pf-global--Color--200);
15969
+ --pf-c-search-input__text--hover__icon--Color: var(--pf-global--Color--100);
15970
+ --pf-c-search-input__icon--TranslateY: -50%;
15971
+ --pf-c-search-input__utilities--MarginRight: var(--pf-global--spacer--sm);
15972
+ --pf-c-search-input__utilities--MarginLeft: var(--pf-global--spacer--xs);
15973
+ --pf-c-search-input__utilities--child--MarginLeft: var(--pf-global--spacer--xs);
15974
+ --pf-c-search-input__utilities--c-button--PaddingRight: var(--pf-global--spacer--xs);
15975
+ --pf-c-search-input__utilities--c-button--PaddingLeft: var(--pf-global--spacer--xs);
15976
+ --pf-c-search-input__menu-body--PaddingTop: var(--pf-global--spacer--md);
15977
+ --pf-c-search-input__menu-body--PaddingRight: var(--pf-global--spacer--md);
15978
+ --pf-c-search-input__menu-body--PaddingBottom: var(--pf-global--spacer--md);
15979
+ --pf-c-search-input__menu-body--PaddingLeft: var(--pf-global--spacer--md);
15980
+ --pf-c-search-input__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
15981
+ --pf-c-search-input__menu--BoxShadow: var(--pf-global--BoxShadow--md);
15982
+ --pf-c-search-input__menu--Top: calc(100% + var(--pf-global--spacer--xs));
15983
+ --pf-c-search-input__menu--ZIndex: var(--pf-global--ZIndex--sm);
15984
+ --pf-c-search-input--m-top__menu--Top: 0;
15985
+ --pf-c-search-input--m-top__menu--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
15986
+ --pf-c-search-input__menu-list--PaddingTop: var(--pf-global--spacer--sm);
15987
+ --pf-c-search-input__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
15988
+ --pf-c-search-input__menu-item--PaddingTop: var(--pf-global--spacer--sm);
15989
+ --pf-c-search-input__menu-item--PaddingRight: var(--pf-global--spacer--md);
15990
+ --pf-c-search-input__menu-item--PaddingBottom: var(--pf-global--spacer--sm);
15991
+ --pf-c-search-input__menu-item--PaddingLeft: var(--pf-global--spacer--md);
15992
+ --pf-c-search-input__menu-item--Color: var(--pf-global--Color--100);
15993
+ --pf-c-search-input__menu-item--BackgroundColor: transparent;
15994
+ --pf-c-search-input__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
15995
+ --pf-c-search-input__menu-item--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
15996
+ position: relative;
15997
+ }
15998
+
15999
+ .pf-c-search-input__bar {
16000
+ position: relative;
16001
+ display: flex;
16002
+ width: 100%;
16003
+ }
16004
+
16005
+ .pf-c-search-input__bar:hover {
16006
+ --pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__bar--hover__text--after--BorderBottomColor);
16007
+ }
16008
+
16009
+ .pf-c-search-input__text {
16010
+ display: grid;
16011
+ grid-template-columns: 1fr;
16012
+ grid-template-areas: "text-input";
16013
+ flex: 1;
16014
+ }
16015
+
16016
+ .pf-c-search-input__text::before, .pf-c-search-input__text::after {
16017
+ position: absolute;
16018
+ top: 0;
16019
+ right: 0;
16020
+ bottom: 0;
16021
+ left: 0;
16022
+ pointer-events: none;
16023
+ content: "";
16024
+ }
16025
+
16026
+ .pf-c-search-input__text::before {
16027
+ border: var(--pf-c-search-input__text--before--BorderWidth) solid var(--pf-c-search-input__text--before--BorderColor);
16028
+ }
16029
+
16030
+ .pf-c-search-input__text::after {
16031
+ border-bottom: var(--pf-c-search-input__text--after--BorderBottomWidth) solid var(--pf-c-search-input__text--after--BorderBottomColor);
16032
+ }
16033
+
16034
+ .pf-c-search-input__text:hover, .pf-c-search-input__text:focus-within {
16035
+ --pf-c-search-input__icon--Color: var(--pf-c-search-input__text--hover__icon--Color);
16036
+ }
16037
+
16038
+ .pf-c-search-input__text:focus-within {
16039
+ --pf-c-search-input__text--after--BorderBottomWidth: var(--pf-c-search-input__text--focus-within--after--BorderBottomWidth);
16040
+ --pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__text--focus-within--after--BorderBottomColor);
16041
+ }
16042
+
16043
+ .pf-c-search-input__icon {
16044
+ position: absolute;
16045
+ top: 50%;
16046
+ left: var(--pf-c-search-input__icon--Left);
16047
+ color: var(--pf-c-search-input__icon--Color);
16048
+ transform: translateY(var(--pf-c-search-input__icon--TranslateY));
16049
+ }
16050
+
16051
+ .pf-c-search-input__text-input {
16052
+ overflow: hidden;
16053
+ text-overflow: ellipsis;
16054
+ white-space: nowrap;
16055
+ position: relative;
16056
+ width: 100%;
16057
+ min-width: var(--pf-c-search-input__text-input--MinWidth);
16058
+ padding: var(--pf-c-search-input__text-input--PaddingTop) var(--pf-c-search-input__text-input--PaddingRight) var(--pf-c-search-input__text-input--PaddingBottom) var(--pf-c-search-input__text-input--PaddingLeft);
16059
+ border: 0;
16060
+ }
16061
+
16062
+ .pf-c-search-input__text-input, .pf-c-search-input__text-input.pf-m-hint {
16063
+ grid-area: text-input;
16064
+ }
16065
+
16066
+ .pf-c-search-input__text-input.pf-m-hint {
16067
+ color: var(--pf-c-search-input__text-input--m-hint--Color);
16068
+ }
16069
+
16070
+ .pf-c-search-input__utilities {
16071
+ display: flex;
16072
+ margin-right: var(--pf-c-search-input__utilities--MarginRight);
16073
+ margin-left: var(--pf-c-search-input__utilities--MarginLeft);
16074
+ }
16075
+
16076
+ .pf-c-search-input__utilities > * + * {
16077
+ margin-left: var(--pf-c-search-input__utilities--child--MarginLeft);
16078
+ }
16079
+
16080
+ .pf-c-search-input__utilities .pf-c-button {
16081
+ --pf-c-button--PaddingRight: var(--pf-c-search-input__utilities--c-button--PaddingRight);
16082
+ --pf-c-button--PaddingLeft: var(--pf-c-search-input__utilities--c-button--PaddingLeft);
16083
+ }
16084
+
16085
+ .pf-c-search-input__nav {
16086
+ display: flex;
16087
+ }
16088
+
16089
+ .pf-c-search-input__count {
16090
+ display: flex;
16091
+ align-items: center;
16092
+ }
16093
+
16094
+ .pf-c-search-input__menu {
16095
+ position: absolute;
16096
+ top: var(--pf-c-search-input__menu--Top);
16097
+ z-index: var(--pf-c-search-input__menu--ZIndex);
16098
+ min-width: 100%;
16099
+ background-color: var(--pf-c-search-input__menu--BackgroundColor);
16100
+ background-clip: padding-box;
16101
+ box-shadow: var(--pf-c-search-input__menu--BoxShadow);
16102
+ }
16103
+
16104
+ .pf-c-search-input.pf-m-top .pf-c-search-input__menu {
16105
+ --pf-c-search-input__menu--Top: var(--pf-c-search-input--m-top__menu--Top);
16106
+ transform: translateY(var(--pf-c-search-input--m-top__menu--TranslateY));
16107
+ }
16108
+
16109
+ .pf-c-search-input__menu-body {
16110
+ padding: var(--pf-c-search-input__menu-body--PaddingTop) var(--pf-c-search-input__menu-body--PaddingRight) var(--pf-c-search-input__menu-body--PaddingBottom) var(--pf-c-search-input__menu-body--PaddingLeft);
16111
+ }
16112
+
16113
+ .pf-c-search-input__menu-list {
16114
+ padding-top: var(--pf-c-search-input__menu-list--PaddingTop);
16115
+ padding-bottom: var(--pf-c-search-input__menu-list--PaddingBottom);
16116
+ }
16117
+
16118
+ .pf-c-search-input__menu-item {
16119
+ display: flex;
16120
+ width: 100%;
16121
+ min-width: 0;
16122
+ padding-top: var(--pf-c-search-input__menu-item--PaddingTop);
16123
+ padding-right: var(--pf-c-search-input__menu-item--PaddingRight);
16124
+ padding-bottom: var(--pf-c-search-input__menu-item--PaddingBottom);
16125
+ padding-left: var(--pf-c-search-input__menu-item--PaddingLeft);
16126
+ color: var(--pf-c-search-input__menu-item--Color);
16127
+ text-align: left;
16128
+ background-color: var(--pf-c-search-input__menu-item--BackgroundColor);
16129
+ border: none;
16130
+ }
16131
+
16132
+ .pf-c-search-input__menu-item:hover {
16133
+ --pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--hover--BackgroundColor);
16134
+ }
16135
+
16136
+ .pf-c-search-input__menu-item:focus {
16137
+ --pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--focus--BackgroundColor);
16138
+ }
16139
+
16140
+ .pf-c-search-input__menu-item-text {
16141
+ flex-grow: 1;
16142
+ }
16143
+
16144
16144
  .pf-c-simple-list {
16145
16145
  --pf-c-simple-list__item-link--PaddingTop: var(--pf-global--spacer--xs);
16146
16146
  --pf-c-simple-list__item-link--PaddingRight: var(--pf-global--spacer--md);
@@ -5034,6 +5034,11 @@
5034
5034
 
5035
5035
  var CaretDownIcon$1 = CaretDownIcon;
5036
5036
 
5037
+ const buttonVariantStyles = {
5038
+ default: '',
5039
+ primary: _default$1a.modifiers.primary,
5040
+ secondary: _default$1a.modifiers.secondary
5041
+ };
5037
5042
  class Toggle extends React__namespace.Component {
5038
5043
  constructor() {
5039
5044
  super(...arguments);
@@ -5092,12 +5097,12 @@
5092
5097
  };
5093
5098
  }
5094
5099
  render() {
5095
- const _a = this.props, { className, children, isOpen, isDisabled, isPlain, isPrimary, isSplitButton, onToggle, 'aria-haspopup': ariaHasPopup,
5100
+ const _a = this.props, { className, children, isOpen, isDisabled, isPlain, isPrimary, isSplitButton, toggleVariant, onToggle, 'aria-haspopup': ariaHasPopup,
5096
5101
  /* eslint-disable @typescript-eslint/no-unused-vars */
5097
5102
  isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
5098
5103
  /* eslint-enable @typescript-eslint/no-unused-vars */
5099
- id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isPrimary", "isSplitButton", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
5100
- return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$1a.dropdownToggleButton : toggleClass || _default$1a.dropdownToggle, isActive && _default$1a.modifiers.active, isPlain && _default$1a.modifiers.plain, isPrimary && _default$1a.modifiers.primary, className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
5104
+ id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
5105
+ return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$1a.dropdownToggleButton : toggleClass || _default$1a.dropdownToggle, isActive && _default$1a.modifiers.active, isPlain && _default$1a.modifiers.plain, isPrimary && _default$1a.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
5101
5106
  }
5102
5107
  }
5103
5108
  Toggle.displayName = 'Toggle';
@@ -5167,22 +5172,22 @@
5167
5172
  KebabToggle.displayName = 'KebabToggle';
5168
5173
 
5169
5174
  const DropdownToggle = (_a) => {
5170
- var { id = '', children = null, className = '', isOpen = false, parentRef = null, getMenuRef = null, isDisabled = false, isPlain = false, isPrimary = false,
5175
+ var { id = '', children = null, className = '', isOpen = false, parentRef = null, getMenuRef = null, isDisabled = false, isPlain = false, isPrimary = false, toggleVariant = 'default',
5171
5176
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5172
5177
  isActive = false,
5173
5178
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5174
5179
  onToggle = (_isOpen) => undefined, icon = null, toggleIndicator: ToggleIndicator = CaretDownIcon$1, splitButtonItems, splitButtonVariant = 'checkbox', 'aria-haspopup': ariaHasPopup, ouiaId, ouiaSafe,
5175
5180
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5176
5181
  ref } = _a, // Types of Ref are different for React.FC vs React.Component
5177
- props = __rest$1(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isPrimary", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
5182
+ props = __rest$1(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isPrimary", "toggleVariant", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
5178
5183
  const ouiaProps = useOUIAProps(DropdownToggle.displayName, ouiaId, ouiaSafe);
5179
- const toggle = (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (React__namespace.createElement(Toggle, Object.assign({}, props, { id: id, className: className, isOpen: isOpen, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isDisabled: isDisabled, isPlain: isPlain, isPrimary: isPrimary, onToggle: onToggle, "aria-haspopup": ariaHasPopup }, ouiaProps, (splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })),
5184
+ const toggle = (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (React__namespace.createElement(Toggle, Object.assign({}, props, { id: id, className: className, isOpen: isOpen, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isDisabled: isDisabled, isPlain: isPlain, isPrimary: isPrimary, toggleVariant: toggleVariant, onToggle: onToggle, "aria-haspopup": ariaHasPopup }, ouiaProps, (splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })),
5180
5185
  icon && React__namespace.createElement("span", { className: css(toggleIconClass) }, icon),
5181
5186
  children && React__namespace.createElement("span", { className: ToggleIndicator && css(toggleTextClass) }, children),
5182
5187
  ToggleIndicator && (React__namespace.createElement("span", { className: css(!splitButtonItems && toggleIndicatorClass) },
5183
5188
  React__namespace.createElement(ToggleIndicator, null)))))));
5184
5189
  if (splitButtonItems) {
5185
- return (React__namespace.createElement("div", { className: css(_default$1a.dropdownToggle, _default$1a.modifiers.splitButton, splitButtonVariant === 'action' && _default$1a.modifiers.action, isDisabled && _default$1a.modifiers.disabled) },
5190
+ return (React__namespace.createElement("div", { className: css(_default$1a.dropdownToggle, _default$1a.modifiers.splitButton, splitButtonVariant === 'action' && _default$1a.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && _default$1a.modifiers.primary, isDisabled && _default$1a.modifiers.disabled) },
5186
5191
  splitButtonItems,
5187
5192
  toggle));
5188
5193
  }
@@ -6734,13 +6739,10 @@
6734
6739
  onToggle(isExpanded);
6735
6740
  };
6736
6741
  this.onClose = () => {
6737
- this.setState({
6738
- focusFirstOption: false,
6739
- typeaheadInputValue: null,
6740
- typeaheadFilteredChildren: React__namespace.Children.toArray(this.props.children),
6741
- typeaheadCurrIndex: -1,
6742
- tabbedIntoFavoritesMenu: false
6743
- });
6742
+ const { isInputFilterPersisted } = this.props;
6743
+ this.setState(Object.assign(Object.assign({ focusFirstOption: false, typeaheadInputValue: null }, (!isInputFilterPersisted && {
6744
+ typeaheadFilteredChildren: React__namespace.Children.toArray(this.props.children)
6745
+ })), { typeaheadCurrIndex: -1, tabbedIntoFavoritesMenu: false }));
6744
6746
  };
6745
6747
  this.onChange = (e) => {
6746
6748
  if (e.target.value.toString() !== '' && !this.props.isOpen) {
@@ -7095,11 +7097,11 @@
7095
7097
  /* eslint-disable @typescript-eslint/no-unused-vars */
7096
7098
  onTypeaheadInputChanged, onCreateOption, isCreatable, onToggle, createText, noResultsFoundText, customBadgeText, inputIdPrefix,
7097
7099
  /* eslint-disable @typescript-eslint/no-unused-vars */
7098
- isInputValuePersisted,
7100
+ isInputValuePersisted, isInputFilterPersisted,
7099
7101
  /* eslint-enable @typescript-eslint/no-unused-vars */
7100
7102
  menuAppendTo, favorites, onFavorite,
7101
7103
  /* eslint-disable @typescript-eslint/no-unused-vars */
7102
- favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "isInputValuePersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject"]);
7104
+ favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject"]);
7103
7105
  const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
7104
7106
  const selectToggleId = toggleId || `pf-select-toggle-id-${currentId$1++}`;
7105
7107
  const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
@@ -7343,6 +7345,7 @@
7343
7345
  ouiaSafe: true,
7344
7346
  chipGroupComponent: null,
7345
7347
  isInputValuePersisted: false,
7348
+ isInputFilterPersisted: false,
7346
7349
  isCreateSelectOptionObject: false
7347
7350
  };
7348
7351
 
@@ -9080,26 +9083,6 @@
9080
9083
  }
9081
9084
  }
9082
9085
  };
9083
- const onTriggerEnter = (event) => {
9084
- if (event.keyCode === KEY_CODES.ENTER) {
9085
- if (!visible) {
9086
- if (triggerManually) {
9087
- shouldOpen(show, event);
9088
- }
9089
- else {
9090
- show(true);
9091
- }
9092
- }
9093
- else {
9094
- if (triggerManually) {
9095
- shouldClose(null, hide, event);
9096
- }
9097
- else {
9098
- hide();
9099
- }
9100
- }
9101
- }
9102
- };
9103
9086
  const onTriggerClick = (event) => {
9104
9087
  if (triggerManually) {
9105
9088
  if (visible) {
@@ -9114,7 +9097,7 @@
9114
9097
  hide();
9115
9098
  }
9116
9099
  else {
9117
- show();
9100
+ show(true);
9118
9101
  }
9119
9102
  }
9120
9103
  };
@@ -9159,7 +9142,7 @@
9159
9142
  React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
9160
9143
  footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
9161
9144
  return (React__namespace.createElement(PopoverContext.Provider, { value: { headerComponent } },
9162
- React__namespace.createElement(Popper, { trigger: children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onTriggerClick: onTriggerClick, onTriggerEnter: onTriggerEnter, onDocumentClick: onDocumentClick, onDocumentKeyDown: onDocumentKeyDown, enableFlip: enableFlip, zIndex: zIndex, flipBehavior: flipBehavior })));
9145
+ React__namespace.createElement(Popper, { trigger: children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onTriggerClick: onTriggerClick, onDocumentClick: onDocumentClick, onDocumentKeyDown: onDocumentKeyDown, enableFlip: enableFlip, zIndex: zIndex, flipBehavior: flipBehavior })));
9163
9146
  };
9164
9147
  Popover.displayName = 'Popover';
9165
9148
 
@@ -14377,6 +14360,7 @@
14377
14360
  render() {
14378
14361
  const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, variant, innerRef } = _a, props = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "variant", "innerRef"]);
14379
14362
  const isPlain = variant === 'plain';
14363
+ const isPlainText = variant === 'plainText';
14380
14364
  const content = (React__namespace.createElement(React__namespace.Fragment, null,
14381
14365
  icon && React__namespace.createElement("span", { className: css(_default$y.menuToggleIcon) }, icon),
14382
14366
  React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
@@ -14384,7 +14368,7 @@
14384
14368
  React__namespace.createElement("span", { className: css(_default$y.menuToggleControls) },
14385
14369
  React__namespace.createElement("span", { className: css(_default$y.menuToggleToggleIcon) },
14386
14370
  React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
14387
- return (React__namespace.createElement("button", Object.assign({ className: css(_default$y.menuToggle, isExpanded && _default$y.modifiers.expanded, variant === 'primary' && _default$y.modifiers.primary, isPlain && _default$y.modifiers.plain, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
14371
+ return (React__namespace.createElement("button", Object.assign({ className: css(_default$y.menuToggle, isExpanded && _default$y.modifiers.expanded, variant === 'primary' && _default$y.modifiers.primary, (isPlain || isPlainText) && _default$y.modifiers.plain, isPlainText && _default$y.modifiers.text, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
14388
14372
  isPlain && children,
14389
14373
  !isPlain && content));
14390
14374
  }
@@ -17133,16 +17117,19 @@
17133
17117
  }
17134
17118
  /* If custom steps are discrete, snap to closest step value */
17135
17119
  if (!areCustomStepsContinuous && customSteps) {
17136
- const numSteps = customSteps.length - 1;
17137
- const percentagePerStep = 100 / numSteps;
17138
- const customStepPercentage = newPercentage / percentagePerStep;
17139
- const stepIndex = customSteps.findIndex(stepObj => stepObj.value >= customStepPercentage);
17140
- if (customSteps[stepIndex].value === customStepPercentage) {
17120
+ let percentage = newPercentage;
17121
+ if (customSteps[customSteps.length - 1].value !== 100) {
17122
+ const numSteps = customSteps.length - 1;
17123
+ const percentagePerStep = 100 / numSteps;
17124
+ percentage = newPercentage / percentagePerStep;
17125
+ }
17126
+ const stepIndex = customSteps.findIndex(stepObj => stepObj.value >= percentage);
17127
+ if (customSteps[stepIndex].value === percentage) {
17141
17128
  snapValue = customSteps[stepIndex].value;
17142
17129
  }
17143
17130
  else {
17144
17131
  const midpoint = (customSteps[stepIndex].value + customSteps[stepIndex - 1].value) / 2;
17145
- if (midpoint > customStepPercentage) {
17132
+ if (midpoint > percentage) {
17146
17133
  snapValue = customSteps[stepIndex - 1].value;
17147
17134
  }
17148
17135
  else {