@patternfly/react-core 4.177.0 → 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.
- package/CHANGELOG.md +11 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +2 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
- package/dist/esm/components/Popover/Popover.js +2 -22
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +2 -1
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/Popover/Popover.d.ts.map +1 -1
- package/dist/js/components/Popover/Popover.js +2 -22
- package/dist/js/components/Popover/Popover.js.map +1 -1
- package/dist/umd/react-core.css +191 -191
- package/dist/umd/react-core.js +4 -23
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +5 -5
- package/src/components/MenuToggle/MenuToggle.tsx +5 -2
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +5 -0
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +59 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +60 -67
- package/src/components/Popover/Popover.tsx +1 -19
- package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -1
- package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +0 -4
package/dist/umd/react-core.css
CHANGED
|
@@ -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);
|
package/dist/umd/react-core.js
CHANGED
|
@@ -9083,26 +9083,6 @@
|
|
|
9083
9083
|
}
|
|
9084
9084
|
}
|
|
9085
9085
|
};
|
|
9086
|
-
const onTriggerEnter = (event) => {
|
|
9087
|
-
if (event.keyCode === KEY_CODES.ENTER) {
|
|
9088
|
-
if (!visible) {
|
|
9089
|
-
if (triggerManually) {
|
|
9090
|
-
shouldOpen(show, event);
|
|
9091
|
-
}
|
|
9092
|
-
else {
|
|
9093
|
-
show(true);
|
|
9094
|
-
}
|
|
9095
|
-
}
|
|
9096
|
-
else {
|
|
9097
|
-
if (triggerManually) {
|
|
9098
|
-
shouldClose(null, hide, event);
|
|
9099
|
-
}
|
|
9100
|
-
else {
|
|
9101
|
-
hide();
|
|
9102
|
-
}
|
|
9103
|
-
}
|
|
9104
|
-
}
|
|
9105
|
-
};
|
|
9106
9086
|
const onTriggerClick = (event) => {
|
|
9107
9087
|
if (triggerManually) {
|
|
9108
9088
|
if (visible) {
|
|
@@ -9117,7 +9097,7 @@
|
|
|
9117
9097
|
hide();
|
|
9118
9098
|
}
|
|
9119
9099
|
else {
|
|
9120
|
-
show();
|
|
9100
|
+
show(true);
|
|
9121
9101
|
}
|
|
9122
9102
|
}
|
|
9123
9103
|
};
|
|
@@ -9162,7 +9142,7 @@
|
|
|
9162
9142
|
React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
|
|
9163
9143
|
footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
|
|
9164
9144
|
return (React__namespace.createElement(PopoverContext.Provider, { value: { headerComponent } },
|
|
9165
|
-
React__namespace.createElement(Popper, { trigger: children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onTriggerClick: onTriggerClick,
|
|
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 })));
|
|
9166
9146
|
};
|
|
9167
9147
|
Popover.displayName = 'Popover';
|
|
9168
9148
|
|
|
@@ -14380,6 +14360,7 @@
|
|
|
14380
14360
|
render() {
|
|
14381
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"]);
|
|
14382
14362
|
const isPlain = variant === 'plain';
|
|
14363
|
+
const isPlainText = variant === 'plainText';
|
|
14383
14364
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14384
14365
|
icon && React__namespace.createElement("span", { className: css(_default$y.menuToggleIcon) }, icon),
|
|
14385
14366
|
React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
|
|
@@ -14387,7 +14368,7 @@
|
|
|
14387
14368
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleControls) },
|
|
14388
14369
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleToggleIcon) },
|
|
14389
14370
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
|
|
14390
|
-
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),
|
|
14391
14372
|
isPlain && children,
|
|
14392
14373
|
!isPlain && content));
|
|
14393
14374
|
}
|