@patternfly/react-core 4.177.0 → 4.180.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 +41 -0
- package/dist/esm/components/Card/Card.d.ts +5 -7
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js +14 -2
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/DragDrop/Droppable.d.ts.map +1 -1
- package/dist/esm/components/DragDrop/Droppable.js +5 -1
- package/dist/esm/components/DragDrop/Droppable.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.js +2 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTreeItem.d.ts +3 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTreeItem.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTreeItem.js +24 -2
- package/dist/esm/components/DualListSelector/DualListSelectorTreeItem.js.map +1 -1
- 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/Card/Card.d.ts +5 -7
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js +14 -2
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/DragDrop/Droppable.d.ts.map +1 -1
- package/dist/js/components/DragDrop/Droppable.js +5 -1
- package/dist/js/components/DragDrop/Droppable.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.js +2 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTreeItem.d.ts +3 -1
- package/dist/js/components/DualListSelector/DualListSelectorTreeItem.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTreeItem.js +24 -3
- package/dist/js/components/DualListSelector/DualListSelectorTreeItem.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/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Black.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-BlackItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Bold.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-BoldItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-LightItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-MediumItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplayVF-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplayVF-updated.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Bold.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-BoldItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-LightItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-MediumItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMonoVF-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatMono/RedHatMonoVF-updated.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Bold.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-BoldItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Light.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-LightItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Medium.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-MediumItalic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Regular.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatTextVF-updated-Italic.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/RedHatText/RedHatTextVF-updated.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/modified/RedHatDisplayVF-updated-ItalicModified.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/modified/RedHatDisplayVFModified-updated.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/modified/RedHatTextVF-updated-ItalicModified.woff2 +0 -0
- package/dist/styles/assets/fonts/RedHatFont-updated/modified/RedHatTextVFModified-updated.woff2 +0 -0
- package/dist/styles/base-no-reset.css +121 -0
- package/dist/styles/base.css +121 -15
- package/dist/umd/react-core.css +183 -12
- package/dist/umd/react-core.js +58 -31
- package/dist/umd/react-core.min.css +183 -12
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/Card/Card.tsx +23 -17
- package/src/components/Card/__tests__/Card.test.tsx +8 -14
- package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +2 -12
- package/src/components/Card/examples/Card.md +230 -264
- package/src/components/DragDrop/Droppable.tsx +5 -1
- package/src/components/DragDrop/examples/DragDrop.md +2 -0
- package/src/components/DualListSelector/DualListSelectorTree.tsx +4 -2
- package/src/components/DualListSelector/DualListSelectorTreeItem.tsx +32 -1
- package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +3 -0
- package/src/components/DualListSelector/examples/ComposableTree.tsx +345 -0
- package/src/components/DualListSelector/examples/DualListSelector.md +5 -1
- 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/src/demos/Card/Card.md +47 -23
- package/src/demos/TextInputGroupDemo.md +8 -246
- package/src/demos/examples/TextInputGroup/AttributeValueFiltering.js +250 -0
- package/src/demos/examples/TextInputGroup/AutoCompleteSearch.js +230 -0
package/dist/styles/base.css
CHANGED
|
@@ -241,6 +241,12 @@
|
|
|
241
241
|
--pf-global--FontFamily--sans-serif: "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
242
242
|
--pf-global--FontFamily--heading--sans-serif: "RedHatDisplay", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
243
243
|
--pf-global--FontFamily--monospace: "Liberation Mono", consolas, "SFMono-Regular", menlo, monaco, "Courier New", monospace;
|
|
244
|
+
--pf-global--FontFamily--redhat-updated--sans-serif: "RedHatTextUpdated", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
245
|
+
--pf-global--FontFamily--redhat-updated--heading--sans-serif: "RedHatDisplayUpdated", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
246
|
+
--pf-global--FontFamily--redhat--monospace: "RedHatMono", "Liberation Mono", consolas, "SFMono-Regular", menlo, monaco, "Courier New", monospace;
|
|
247
|
+
--pf-global--FontFamily--redhatVF--sans-serif: "RedHatTextVF", "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
248
|
+
--pf-global--FontFamily--redhatVF--heading--sans-serif: "RedHatDisplayVF", "RedHatDisplay", "Overpass", overpass, helvetica, arial, sans-serif;
|
|
249
|
+
--pf-global--FontFamily--redhatVF--monospace: "RedHatMonoVF", "RedHatMono", "Liberation Mono", consolas, "SFMono-Regular", menlo, monaco, "Courier New", monospace;
|
|
244
250
|
--pf-global--FontFamily--overpass--sans-serif: "overpass", overpass, "open sans", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
245
251
|
--pf-global--FontFamily--overpass--monospace: "overpass-mono", overpass-mono, "SFMono-Regular", menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace;
|
|
246
252
|
--pf-global--FontSize--4xl: 2.25rem;
|
|
@@ -277,6 +283,21 @@
|
|
|
277
283
|
--pf-global--FontWeight--bold: var(--pf-global--FontWeight--overpass--bold);
|
|
278
284
|
}
|
|
279
285
|
|
|
286
|
+
.pf-m-redhat-updated-font {
|
|
287
|
+
--pf-global--FontFamily--sans-serif: var(--pf-global--FontFamily--redhat-updated--sans-serif);
|
|
288
|
+
--pf-global--FontFamily--heading--sans-serif: var(--pf-global--FontFamily--redhat-updated--heading--sans-serif);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.pf-m-redhatmono-font {
|
|
292
|
+
--pf-global--FontFamily--monospace: var(--pf-global--FontFamily--redhat--monospace);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.pf-m-redhatVF-font {
|
|
296
|
+
--pf-global--FontFamily--sans-serif: var(--pf-global--FontFamily--redhatVF--sans-serif);
|
|
297
|
+
--pf-global--FontFamily--heading--sans-serif: var(--pf-global--FontFamily--redhatVF--heading--sans-serif);
|
|
298
|
+
--pf-global--FontFamily--monospace: var(--pf-global--FontFamily--redhatVF--monospace);
|
|
299
|
+
}
|
|
300
|
+
|
|
280
301
|
@font-face {
|
|
281
302
|
font-family: "RedHatDisplay";
|
|
282
303
|
src: url("./assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff2") format("woff2"), url("./assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff") format("woff");
|
|
@@ -317,6 +338,102 @@
|
|
|
317
338
|
text-rendering: optimizeLegibility;
|
|
318
339
|
}
|
|
319
340
|
|
|
341
|
+
@font-face {
|
|
342
|
+
font-family: "RedHatDisplayUpdated";
|
|
343
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Regular.woff2") format("woff2");
|
|
344
|
+
font-style: normal;
|
|
345
|
+
font-weight: 300;
|
|
346
|
+
text-rendering: optimizeLegibility;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@font-face {
|
|
350
|
+
font-family: "RedHatDisplayUpdated";
|
|
351
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Medium.woff2") format("woff2");
|
|
352
|
+
font-style: normal;
|
|
353
|
+
font-weight: 400;
|
|
354
|
+
text-rendering: optimizeLegibility;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@font-face {
|
|
358
|
+
font-family: "RedHatDisplayUpdated";
|
|
359
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatDisplay/RedHatDisplay-updated-Bold.woff2") format("woff2");
|
|
360
|
+
font-style: normal;
|
|
361
|
+
font-weight: 700;
|
|
362
|
+
text-rendering: optimizeLegibility;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@font-face {
|
|
366
|
+
font-family: "RedHatTextUpdated";
|
|
367
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Regular.woff2") format("woff2");
|
|
368
|
+
font-style: normal;
|
|
369
|
+
font-weight: 400;
|
|
370
|
+
text-rendering: optimizeLegibility;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@font-face {
|
|
374
|
+
font-family: "RedHatTextUpdated";
|
|
375
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Medium.woff2") format("woff2");
|
|
376
|
+
font-style: normal;
|
|
377
|
+
font-weight: 700;
|
|
378
|
+
text-rendering: optimizeLegibility;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@font-face {
|
|
382
|
+
font-family: "RedHatMono";
|
|
383
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatMono/RedHatMono-updated-Regular.woff2") format("woff2");
|
|
384
|
+
font-style: normal;
|
|
385
|
+
font-weight: 400;
|
|
386
|
+
font-display: fallback;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@font-face {
|
|
390
|
+
font-family: "RedHatDisplayVF";
|
|
391
|
+
src: url("./assets/fonts/RedHatFont-updated/modified/RedHatDisplayVFModified-updated.woff2") format("woff2-variations");
|
|
392
|
+
font-style: normal;
|
|
393
|
+
font-weight: 300 900;
|
|
394
|
+
font-display: fallback;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@font-face {
|
|
398
|
+
font-family: "RedHatDisplayVF";
|
|
399
|
+
src: url("./assets/fonts/RedHatFont-updated/modified/RedHatDisplayVF-updated-ItalicModified.woff2") format("woff2-variations");
|
|
400
|
+
font-style: italic;
|
|
401
|
+
font-weight: 300 900;
|
|
402
|
+
font-display: fallback;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
@font-face {
|
|
406
|
+
font-family: "RedHatTextVF";
|
|
407
|
+
src: url("./assets/fonts/RedHatFont-updated/modified/RedHatTextVFModified-updated.woff2") format("woff2-variations");
|
|
408
|
+
font-style: normal;
|
|
409
|
+
font-weight: 400 500;
|
|
410
|
+
font-display: fallback;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@font-face {
|
|
414
|
+
font-family: "RedHatTextVF";
|
|
415
|
+
src: url("./assets/fonts/RedHatFont-updated/modified/RedHatTextVF-updated-ItalicModified.woff2") format("woff2-variations");
|
|
416
|
+
font-style: italic;
|
|
417
|
+
font-weight: 400 500;
|
|
418
|
+
font-display: fallback;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@font-face {
|
|
422
|
+
font-family: "RedHatMonoVF";
|
|
423
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatMono/RedHatMonoVF-updated.woff2") format("woff2-variations");
|
|
424
|
+
font-style: normal;
|
|
425
|
+
font-weight: 300 700;
|
|
426
|
+
font-display: fallback;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
@font-face {
|
|
430
|
+
font-family: "RedHatMonoVF";
|
|
431
|
+
src: url("./assets/fonts/RedHatFont-updated/RedHatMono/RedHatMonoVF-updated-Italic.woff2") format("woff2-variations");
|
|
432
|
+
font-style: italic;
|
|
433
|
+
font-weight: 300 700;
|
|
434
|
+
font-display: fallback;
|
|
435
|
+
}
|
|
436
|
+
|
|
320
437
|
@font-face {
|
|
321
438
|
font-family: "overpass";
|
|
322
439
|
font-style: normal;
|
|
@@ -479,6 +596,10 @@ html {
|
|
|
479
596
|
border: 0;
|
|
480
597
|
}
|
|
481
598
|
|
|
599
|
+
.pf-m-tabular-nums {
|
|
600
|
+
font-variant-numeric: tabular-nums;
|
|
601
|
+
}
|
|
602
|
+
|
|
482
603
|
html,
|
|
483
604
|
body,
|
|
484
605
|
p,
|
|
@@ -598,21 +719,6 @@ a {
|
|
|
598
719
|
cursor: pointer;
|
|
599
720
|
}
|
|
600
721
|
|
|
601
|
-
button::-moz-focus-inner,
|
|
602
|
-
[type=button]::-moz-focus-inner,
|
|
603
|
-
[type=reset]::-moz-focus-inner,
|
|
604
|
-
[type=submit]::-moz-focus-inner {
|
|
605
|
-
padding: 0;
|
|
606
|
-
border-style: none;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
button:-moz-focusring,
|
|
610
|
-
[type=button]:-moz-focusring,
|
|
611
|
-
[type=reset]:-moz-focusring,
|
|
612
|
-
[type=submit]:-moz-focusring {
|
|
613
|
-
outline: 1px dotted ButtonText;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
722
|
.pf-m-overpass-font a {
|
|
617
723
|
font-weight: var(--pf-global--FontWeight--semi-bold);
|
|
618
724
|
}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -4993,6 +4993,22 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
4993
4993
|
--pf-c-description-list--m-horizontal__term--width: fit-content(20ch);
|
|
4994
4994
|
}
|
|
4995
4995
|
|
|
4996
|
+
.pf-c-description-list.pf-m-fill-columns {
|
|
4997
|
+
display: block;
|
|
4998
|
+
column-count: var(--pf-c-description-list--GridTemplateColumns--count);
|
|
4999
|
+
margin-bottom: calc(var(--pf-c-description-list--RowGap) * -1);
|
|
5000
|
+
}
|
|
5001
|
+
|
|
5002
|
+
.pf-c-description-list.pf-m-fill-columns .pf-c-description-list__group {
|
|
5003
|
+
display: inline-grid;
|
|
5004
|
+
width: 100%;
|
|
5005
|
+
margin-bottom: var(--pf-c-description-list--RowGap);
|
|
5006
|
+
break-inside: avoid;
|
|
5007
|
+
page-break-inside: avoid;
|
|
5008
|
+
-webkit-column-break-inside: avoid;
|
|
5009
|
+
-moz-column-break-inside: avoid;
|
|
5010
|
+
}
|
|
5011
|
+
|
|
4996
5012
|
.pf-c-description-list__group {
|
|
4997
5013
|
display: grid;
|
|
4998
5014
|
grid-column: var(--pf-c-description-list__group--GridColumn);
|
|
@@ -6592,14 +6608,15 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6592
6608
|
}
|
|
6593
6609
|
|
|
6594
6610
|
.pf-c-dropdown__toggle.pf-m-disabled, .pf-c-dropdown__toggle:disabled {
|
|
6611
|
+
--pf-c-dropdown__toggle--before--BorderBottomColor: transparent;
|
|
6595
6612
|
pointer-events: none;
|
|
6596
6613
|
}
|
|
6597
6614
|
|
|
6598
|
-
.pf-c-dropdown__toggle.pf-m-disabled:not(.pf-m-plain), .pf-c-dropdown__toggle:disabled:not(.pf-m-plain) {
|
|
6615
|
+
.pf-c-dropdown__toggle.pf-m-disabled:not(.pf-m-plain), .pf-c-dropdown__toggle.pf-m-disabled.pf-m-plain.pf-m-text, .pf-c-dropdown__toggle:disabled:not(.pf-m-plain), .pf-c-dropdown__toggle:disabled.pf-m-plain.pf-m-text {
|
|
6599
6616
|
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--disabled--BackgroundColor);
|
|
6600
6617
|
}
|
|
6601
6618
|
|
|
6602
|
-
.pf-c-dropdown__toggle.pf-m-disabled:not(.pf-m-plain)::before, .pf-c-dropdown__toggle:disabled:not(.pf-m-plain)::before {
|
|
6619
|
+
.pf-c-dropdown__toggle.pf-m-disabled:not(.pf-m-plain)::before, .pf-c-dropdown__toggle.pf-m-disabled.pf-m-plain.pf-m-text::before, .pf-c-dropdown__toggle:disabled:not(.pf-m-plain)::before, .pf-c-dropdown__toggle:disabled.pf-m-plain.pf-m-text::before {
|
|
6603
6620
|
border: 0;
|
|
6604
6621
|
}
|
|
6605
6622
|
|
|
@@ -6607,13 +6624,16 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6607
6624
|
padding: 0;
|
|
6608
6625
|
}
|
|
6609
6626
|
|
|
6627
|
+
.pf-c-dropdown__toggle.pf-m-split-button:not(.pf-m-disabled) {
|
|
6628
|
+
background-color: var(--pf-c-dropdown__toggle--m-split-button--child--BackgroundColor);
|
|
6629
|
+
}
|
|
6630
|
+
|
|
6610
6631
|
.pf-c-dropdown__toggle.pf-m-split-button > * {
|
|
6611
6632
|
position: relative;
|
|
6612
6633
|
padding-top: var(--pf-c-dropdown__toggle--m-split-button--child--PaddingTop);
|
|
6613
6634
|
padding-right: var(--pf-c-dropdown__toggle--m-split-button--child--PaddingRight);
|
|
6614
6635
|
padding-bottom: var(--pf-c-dropdown__toggle--m-split-button--child--PaddingBottom);
|
|
6615
6636
|
padding-left: var(--pf-c-dropdown__toggle--m-split-button--child--PaddingLeft);
|
|
6616
|
-
background-color: var(--pf-c-dropdown__toggle--m-split-button--child--BackgroundColor);
|
|
6617
6637
|
}
|
|
6618
6638
|
|
|
6619
6639
|
.pf-c-dropdown__toggle.pf-m-split-button > *:first-child {
|
|
@@ -6645,6 +6665,10 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6645
6665
|
border-left: var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth) solid var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftColor);
|
|
6646
6666
|
}
|
|
6647
6667
|
|
|
6668
|
+
.pf-c-dropdown__toggle.pf-m-split-button.pf-m-action.pf-m-primary.pf-m-disabled, .pf-c-dropdown__toggle.pf-m-split-button.pf-m-action.pf-m-primary[disabled] {
|
|
6669
|
+
--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth: 0;
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6648
6672
|
.pf-c-dropdown__toggle.pf-m-split-button .pf-c-dropdown__toggle-check {
|
|
6649
6673
|
display: flex;
|
|
6650
6674
|
align-items: center;
|
|
@@ -6717,14 +6741,14 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6717
6741
|
border-bottom-width: var(--pf-c-dropdown--m-expanded__toggle--before--BorderBottomWidth);
|
|
6718
6742
|
}
|
|
6719
6743
|
|
|
6720
|
-
.pf-c-dropdown__toggle.pf-m-plain {
|
|
6744
|
+
.pf-c-dropdown__toggle.pf-m-plain:not(.pf-m-text) {
|
|
6721
6745
|
--pf-c-dropdown__toggle--PaddingRight: var(--pf-c-dropdown__toggle--m-plain--PaddingRight);
|
|
6722
6746
|
--pf-c-dropdown__toggle--PaddingLeft: var(--pf-c-dropdown__toggle--m-plain--PaddingLeft);
|
|
6723
6747
|
display: inline-block;
|
|
6724
6748
|
color: var(--pf-c-dropdown__toggle--m-plain--Color);
|
|
6725
6749
|
}
|
|
6726
6750
|
|
|
6727
|
-
.pf-c-dropdown__toggle.pf-m-plain > * {
|
|
6751
|
+
.pf-c-dropdown__toggle.pf-m-plain:not(.pf-m-text) > * {
|
|
6728
6752
|
line-height: var(--pf-c-dropdown__toggle--m-plain--child--LineHeight);
|
|
6729
6753
|
}
|
|
6730
6754
|
|
|
@@ -6741,13 +6765,13 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6741
6765
|
}
|
|
6742
6766
|
|
|
6743
6767
|
.pf-c-dropdown__toggle.pf-m-primary {
|
|
6744
|
-
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
|
|
6745
|
-
--pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
|
|
6746
6768
|
border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
|
|
6747
6769
|
}
|
|
6748
6770
|
|
|
6749
|
-
.pf-c-dropdown__toggle.pf-m-primary:not(.pf-m-disabled) {
|
|
6771
|
+
.pf-c-dropdown__toggle.pf-m-primary:not(.pf-m-disabled):not([disabled]) {
|
|
6750
6772
|
--pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
|
|
6773
|
+
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
|
|
6774
|
+
--pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
|
|
6751
6775
|
}
|
|
6752
6776
|
|
|
6753
6777
|
.pf-c-dropdown__toggle.pf-m-primary::before {
|
|
@@ -6766,17 +6790,20 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
6766
6790
|
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--active--BackgroundColor);
|
|
6767
6791
|
}
|
|
6768
6792
|
|
|
6769
|
-
.pf-m-
|
|
6793
|
+
.pf-c-dropdown__toggle.pf-m-primary .pf-m-expanded > :not(.pf-m-disabled):not([disabled]) {
|
|
6770
6794
|
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown--m-expanded__toggle--m-primary--BackgroundColor);
|
|
6771
6795
|
}
|
|
6772
6796
|
|
|
6773
6797
|
.pf-c-dropdown__toggle.pf-m-secondary {
|
|
6798
|
+
border-radius: var(--pf-c-dropdown__toggle--m-secondary--BorderRadius);
|
|
6799
|
+
}
|
|
6800
|
+
|
|
6801
|
+
.pf-c-dropdown__toggle.pf-m-secondary:not(.pf-m-disabled):not([disabled]) {
|
|
6774
6802
|
--pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-secondary--Color);
|
|
6775
6803
|
--pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-secondary--BackgroundColor);
|
|
6776
|
-
border-radius: var(--pf-c-dropdown__toggle--m-secondary--BorderRadius);
|
|
6777
6804
|
}
|
|
6778
6805
|
|
|
6779
|
-
.pf-c-dropdown__toggle.pf-m-secondary::before {
|
|
6806
|
+
.pf-c-dropdown__toggle.pf-m-secondary:not(.pf-m-disabled):not([disabled])::before {
|
|
6780
6807
|
border: var(--pf-c-dropdown__toggle--m-secondary--before--BorderWidth) solid var(--pf-c-dropdown__toggle--m-secondary--before--BorderColor);
|
|
6781
6808
|
border-radius: var(--pf-c-dropdown__toggle--m-secondary--BorderRadius);
|
|
6782
6809
|
}
|
|
@@ -7765,7 +7792,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7765
7792
|
text-align: right;
|
|
7766
7793
|
}
|
|
7767
7794
|
|
|
7768
|
-
@media (min-width: 768px) {
|
|
7795
|
+
@media screen and (min-width: 768px) {
|
|
7769
7796
|
.pf-c-form.pf-m-horizontal {
|
|
7770
7797
|
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7771
7798
|
}
|
|
@@ -7789,6 +7816,150 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
7789
7816
|
grid-column: 2;
|
|
7790
7817
|
}
|
|
7791
7818
|
}
|
|
7819
|
+
@media screen and (min-width: 0) {
|
|
7820
|
+
.pf-c-form.pf-m-horizontal-on-xs {
|
|
7821
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7822
|
+
}
|
|
7823
|
+
|
|
7824
|
+
.pf-c-form.pf-m-horizontal-on-xs .pf-c-form__group {
|
|
7825
|
+
display: grid;
|
|
7826
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7827
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7828
|
+
}
|
|
7829
|
+
|
|
7830
|
+
.pf-c-form.pf-m-horizontal-on-xs .pf-c-form__group-label {
|
|
7831
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7832
|
+
}
|
|
7833
|
+
|
|
7834
|
+
.pf-c-form.pf-m-horizontal-on-xs .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7835
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7836
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7837
|
+
}
|
|
7838
|
+
|
|
7839
|
+
.pf-c-form.pf-m-horizontal-on-xs .pf-c-form__group-control {
|
|
7840
|
+
grid-column: 2;
|
|
7841
|
+
}
|
|
7842
|
+
}
|
|
7843
|
+
@media (min-width: 576px) {
|
|
7844
|
+
.pf-c-form.pf-m-horizontal-on-sm {
|
|
7845
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7846
|
+
}
|
|
7847
|
+
|
|
7848
|
+
.pf-c-form.pf-m-horizontal-on-sm .pf-c-form__group {
|
|
7849
|
+
display: grid;
|
|
7850
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7851
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7852
|
+
}
|
|
7853
|
+
|
|
7854
|
+
.pf-c-form.pf-m-horizontal-on-sm .pf-c-form__group-label {
|
|
7855
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7856
|
+
}
|
|
7857
|
+
|
|
7858
|
+
.pf-c-form.pf-m-horizontal-on-sm .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7859
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7860
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7861
|
+
}
|
|
7862
|
+
|
|
7863
|
+
.pf-c-form.pf-m-horizontal-on-sm .pf-c-form__group-control {
|
|
7864
|
+
grid-column: 2;
|
|
7865
|
+
}
|
|
7866
|
+
}
|
|
7867
|
+
@media (min-width: 768px) {
|
|
7868
|
+
.pf-c-form.pf-m-horizontal-on-md {
|
|
7869
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7870
|
+
}
|
|
7871
|
+
|
|
7872
|
+
.pf-c-form.pf-m-horizontal-on-md .pf-c-form__group {
|
|
7873
|
+
display: grid;
|
|
7874
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7875
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7876
|
+
}
|
|
7877
|
+
|
|
7878
|
+
.pf-c-form.pf-m-horizontal-on-md .pf-c-form__group-label {
|
|
7879
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7880
|
+
}
|
|
7881
|
+
|
|
7882
|
+
.pf-c-form.pf-m-horizontal-on-md .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7883
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7884
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7885
|
+
}
|
|
7886
|
+
|
|
7887
|
+
.pf-c-form.pf-m-horizontal-on-md .pf-c-form__group-control {
|
|
7888
|
+
grid-column: 2;
|
|
7889
|
+
}
|
|
7890
|
+
}
|
|
7891
|
+
@media (min-width: 992px) {
|
|
7892
|
+
.pf-c-form.pf-m-horizontal-on-lg {
|
|
7893
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7894
|
+
}
|
|
7895
|
+
|
|
7896
|
+
.pf-c-form.pf-m-horizontal-on-lg .pf-c-form__group {
|
|
7897
|
+
display: grid;
|
|
7898
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7899
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7900
|
+
}
|
|
7901
|
+
|
|
7902
|
+
.pf-c-form.pf-m-horizontal-on-lg .pf-c-form__group-label {
|
|
7903
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7904
|
+
}
|
|
7905
|
+
|
|
7906
|
+
.pf-c-form.pf-m-horizontal-on-lg .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7907
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7908
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7909
|
+
}
|
|
7910
|
+
|
|
7911
|
+
.pf-c-form.pf-m-horizontal-on-lg .pf-c-form__group-control {
|
|
7912
|
+
grid-column: 2;
|
|
7913
|
+
}
|
|
7914
|
+
}
|
|
7915
|
+
@media (min-width: 1200px) {
|
|
7916
|
+
.pf-c-form.pf-m-horizontal-on-xl {
|
|
7917
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7918
|
+
}
|
|
7919
|
+
|
|
7920
|
+
.pf-c-form.pf-m-horizontal-on-xl .pf-c-form__group {
|
|
7921
|
+
display: grid;
|
|
7922
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7923
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7924
|
+
}
|
|
7925
|
+
|
|
7926
|
+
.pf-c-form.pf-m-horizontal-on-xl .pf-c-form__group-label {
|
|
7927
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7928
|
+
}
|
|
7929
|
+
|
|
7930
|
+
.pf-c-form.pf-m-horizontal-on-xl .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7931
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7932
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7933
|
+
}
|
|
7934
|
+
|
|
7935
|
+
.pf-c-form.pf-m-horizontal-on-xl .pf-c-form__group-control {
|
|
7936
|
+
grid-column: 2;
|
|
7937
|
+
}
|
|
7938
|
+
}
|
|
7939
|
+
@media (min-width: 1450px) {
|
|
7940
|
+
.pf-c-form.pf-m-horizontal-on-2xl {
|
|
7941
|
+
--pf-c-form__group-label--PaddingBottom: 0;
|
|
7942
|
+
}
|
|
7943
|
+
|
|
7944
|
+
.pf-c-form.pf-m-horizontal-on-2xl .pf-c-form__group {
|
|
7945
|
+
display: grid;
|
|
7946
|
+
grid-column-gap: var(--pf-c-form--m-horizontal__group-label--md--GridColumnGap);
|
|
7947
|
+
grid-template-columns: var(--pf-c-form--m-horizontal__group-label--md--GridColumnWidth) var(--pf-c-form--m-horizontal__group-control--md--GridColumnWidth);
|
|
7948
|
+
}
|
|
7949
|
+
|
|
7950
|
+
.pf-c-form.pf-m-horizontal-on-2xl .pf-c-form__group-label {
|
|
7951
|
+
padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop);
|
|
7952
|
+
}
|
|
7953
|
+
|
|
7954
|
+
.pf-c-form.pf-m-horizontal-on-2xl .pf-c-form__group-label.pf-m-no-padding-top {
|
|
7955
|
+
--pf-c-form--m-horizontal__group-label--md--PaddingTop: var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--PaddingTop);
|
|
7956
|
+
transform: translateY(var(--pf-c-form--m-horizontal__group-label--m-no-padding--md--TranslateY));
|
|
7957
|
+
}
|
|
7958
|
+
|
|
7959
|
+
.pf-c-form.pf-m-horizontal-on-2xl .pf-c-form__group-control {
|
|
7960
|
+
grid-column: 2;
|
|
7961
|
+
}
|
|
7962
|
+
}
|
|
7792
7963
|
.pf-c-form.pf-m-limit-width {
|
|
7793
7964
|
max-width: var(--pf-c-form--m-limit-width--MaxWidth);
|
|
7794
7965
|
}
|
package/dist/umd/react-core.js
CHANGED
|
@@ -4494,6 +4494,7 @@
|
|
|
4494
4494
|
"action": "pf-m-action",
|
|
4495
4495
|
"disabled": "pf-m-disabled",
|
|
4496
4496
|
"plain": "pf-m-plain",
|
|
4497
|
+
"text": "pf-m-text",
|
|
4497
4498
|
"splitButton": "pf-m-split-button",
|
|
4498
4499
|
"primary": "pf-m-primary",
|
|
4499
4500
|
"active": "pf-m-active",
|
|
@@ -4513,8 +4514,7 @@
|
|
|
4513
4514
|
"alignLeftOn_2xl": "pf-m-align-left-on-2xl",
|
|
4514
4515
|
"ariaDisabled": "pf-m-aria-disabled",
|
|
4515
4516
|
"icon": "pf-m-icon",
|
|
4516
|
-
"description": "pf-m-description"
|
|
4517
|
-
"text": "pf-m-text"
|
|
4517
|
+
"description": "pf-m-description"
|
|
4518
4518
|
}
|
|
4519
4519
|
};
|
|
4520
4520
|
|
|
@@ -5935,6 +5935,12 @@
|
|
|
5935
5935
|
"horizontal": "pf-m-horizontal",
|
|
5936
5936
|
"alignRight": "pf-m-align-right",
|
|
5937
5937
|
"noPaddingTop": "pf-m-no-padding-top",
|
|
5938
|
+
"horizontalOnXs": "pf-m-horizontal-on-xs",
|
|
5939
|
+
"horizontalOnSm": "pf-m-horizontal-on-sm",
|
|
5940
|
+
"horizontalOnMd": "pf-m-horizontal-on-md",
|
|
5941
|
+
"horizontalOnLg": "pf-m-horizontal-on-lg",
|
|
5942
|
+
"horizontalOnXl": "pf-m-horizontal-on-xl",
|
|
5943
|
+
"horizontalOn_2xl": "pf-m-horizontal-on-2xl",
|
|
5938
5944
|
"limitWidth": "pf-m-limit-width",
|
|
5939
5945
|
"action": "pf-m-action",
|
|
5940
5946
|
"info": "pf-m-info",
|
|
@@ -7630,7 +7636,7 @@
|
|
|
7630
7636
|
isExpanded: false
|
|
7631
7637
|
});
|
|
7632
7638
|
const Card = (_a) => {
|
|
7633
|
-
var { children = null, id = '', className = '', component = 'article', isHoverable = false,
|
|
7639
|
+
var { children = null, id = '', className = '', component = 'article', isHoverable = false, isCompact = false, isSelectable = false, isSelectableRaised = false, isSelected = false, isDisabledRaised = false, isFlat = false, isExpanded = false, isRounded = false, isLarge = false, isFullHeight = false, isPlain = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "id", "className", "component", "isHoverable", "isCompact", "isSelectable", "isSelectableRaised", "isSelected", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe"]);
|
|
7634
7640
|
const Component = component;
|
|
7635
7641
|
const ouiaProps = useOUIAProps(Card.displayName, ouiaId, ouiaSafe);
|
|
7636
7642
|
if (isCompact && isLarge) {
|
|
@@ -7638,11 +7644,23 @@
|
|
|
7638
7644
|
console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
|
|
7639
7645
|
isLarge = false;
|
|
7640
7646
|
}
|
|
7647
|
+
const getSelectableModifiers = () => {
|
|
7648
|
+
if (isDisabledRaised) {
|
|
7649
|
+
return css(_default$Y.modifiers.nonSelectableRaised);
|
|
7650
|
+
}
|
|
7651
|
+
if (isSelectableRaised) {
|
|
7652
|
+
return css(_default$Y.modifiers.selectableRaised, isSelected && _default$Y.modifiers.selectedRaised);
|
|
7653
|
+
}
|
|
7654
|
+
if (isSelectable || isHoverable) {
|
|
7655
|
+
return css(_default$Y.modifiers.selectable, isSelected && _default$Y.modifiers.selected);
|
|
7656
|
+
}
|
|
7657
|
+
return '';
|
|
7658
|
+
};
|
|
7641
7659
|
return (React__namespace.createElement(CardContext.Provider, { value: {
|
|
7642
7660
|
cardId: id,
|
|
7643
7661
|
isExpanded
|
|
7644
7662
|
} },
|
|
7645
|
-
React__namespace.createElement(Component, Object.assign({ id: id, className: css(_default$Y.card,
|
|
7663
|
+
React__namespace.createElement(Component, Object.assign({ id: id, className: css(_default$Y.card, isCompact && _default$Y.modifiers.compact, isExpanded && _default$Y.modifiers.expanded, isFlat && _default$Y.modifiers.flat, isRounded && _default$Y.modifiers.rounded, isLarge && _default$Y.modifiers.displayLg, isFullHeight && _default$Y.modifiers.fullHeight, isPlain && _default$Y.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
7646
7664
|
};
|
|
7647
7665
|
Card.displayName = 'Card';
|
|
7648
7666
|
|
|
@@ -9083,26 +9101,6 @@
|
|
|
9083
9101
|
}
|
|
9084
9102
|
}
|
|
9085
9103
|
};
|
|
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
9104
|
const onTriggerClick = (event) => {
|
|
9107
9105
|
if (triggerManually) {
|
|
9108
9106
|
if (visible) {
|
|
@@ -9117,7 +9115,7 @@
|
|
|
9117
9115
|
hide();
|
|
9118
9116
|
}
|
|
9119
9117
|
else {
|
|
9120
|
-
show();
|
|
9118
|
+
show(true);
|
|
9121
9119
|
}
|
|
9122
9120
|
}
|
|
9123
9121
|
};
|
|
@@ -9162,7 +9160,7 @@
|
|
|
9162
9160
|
React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
|
|
9163
9161
|
footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
|
|
9164
9162
|
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,
|
|
9163
|
+
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
9164
|
};
|
|
9167
9165
|
Popover.displayName = 'Popover';
|
|
9168
9166
|
|
|
@@ -9285,6 +9283,7 @@
|
|
|
9285
9283
|
"autoFit": "pf-m-auto-fit",
|
|
9286
9284
|
"compact": "pf-m-compact",
|
|
9287
9285
|
"fluid": "pf-m-fluid",
|
|
9286
|
+
"fillColumns": "pf-m-fill-columns",
|
|
9288
9287
|
"helpText": "pf-m-help-text",
|
|
9289
9288
|
"1Col": "pf-m-1-col",
|
|
9290
9289
|
"2Col": "pf-m-2-col",
|
|
@@ -9835,11 +9834,16 @@
|
|
|
9835
9834
|
const DualListSelectorListContext = React__namespace.createContext({});
|
|
9836
9835
|
const DualListSelectorPaneContext = React__namespace.createContext({ isChosen: false });
|
|
9837
9836
|
|
|
9838
|
-
const
|
|
9839
|
-
var { onOptionCheck, children, className, id, text, defaultExpanded, hasBadge, isChecked, checkProps, badgeProps, itemData, isDisabled = false
|
|
9837
|
+
const DualListSelectorTreeItemBase = (_a) => {
|
|
9838
|
+
var { onOptionCheck, children, className, id, text, defaultExpanded, hasBadge, isChecked, checkProps, badgeProps, itemData, isDisabled = false,
|
|
9839
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9840
|
+
useMemo } = _a, props = __rest$1(_a, ["onOptionCheck", "children", "className", "id", "text", "defaultExpanded", "hasBadge", "isChecked", "checkProps", "badgeProps", "itemData", "isDisabled", "useMemo"]);
|
|
9840
9841
|
const ref = React__namespace.useRef(null);
|
|
9841
9842
|
const [isExpanded, setIsExpanded] = React__namespace.useState(defaultExpanded || false);
|
|
9842
9843
|
const { setFocusedOption } = React__namespace.useContext(DualListSelectorListContext);
|
|
9844
|
+
React__namespace.useEffect(() => {
|
|
9845
|
+
setIsExpanded(defaultExpanded);
|
|
9846
|
+
}, [defaultExpanded]);
|
|
9843
9847
|
return (React__namespace.createElement("li", Object.assign({ className: css(_default$N.dualListSelectorListItem, className, children && _default$N.modifiers.expandable, isExpanded && _default$N.modifiers.expanded, isDisabled && _default$N.modifiers.disabled), id: id }, props, { "aria-selected": isChecked, role: "treeitem" }, (isExpanded && { 'aria-expanded': 'true' })),
|
|
9844
9848
|
React__namespace.createElement("div", { className: css(_default$N.dualListSelectorListItemRow, isChecked && _default$N.modifiers.selected, _default$N.modifiers.check) },
|
|
9845
9849
|
React__namespace.createElement("div", { className: css(_default$N.dualListSelectorItem), ref: ref, tabIndex: -1, onClick: isDisabled
|
|
@@ -9878,11 +9882,29 @@
|
|
|
9878
9882
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps), flattenTree(children.props.data).length)))))),
|
|
9879
9883
|
isExpanded && children));
|
|
9880
9884
|
};
|
|
9885
|
+
const DualListSelectorTreeItem = React__namespace.memo(DualListSelectorTreeItemBase, (prevProps, nextProps) => {
|
|
9886
|
+
if (!nextProps.useMemo) {
|
|
9887
|
+
return false;
|
|
9888
|
+
}
|
|
9889
|
+
if (prevProps.className !== nextProps.className ||
|
|
9890
|
+
prevProps.text !== nextProps.text ||
|
|
9891
|
+
prevProps.id !== nextProps.id ||
|
|
9892
|
+
prevProps.defaultExpanded !== nextProps.defaultExpanded ||
|
|
9893
|
+
prevProps.checkProps !== nextProps.checkProps ||
|
|
9894
|
+
prevProps.hasBadge !== nextProps.hasBadge ||
|
|
9895
|
+
prevProps.badgeProps !== nextProps.badgeProps ||
|
|
9896
|
+
prevProps.isChecked !== nextProps.isChecked ||
|
|
9897
|
+
prevProps.itemData !== nextProps.itemData) {
|
|
9898
|
+
return false;
|
|
9899
|
+
}
|
|
9900
|
+
return true;
|
|
9901
|
+
});
|
|
9881
9902
|
DualListSelectorTreeItem.displayName = 'DualListSelectorTreeItem';
|
|
9882
9903
|
|
|
9883
9904
|
const DualListSelectorTree = (_a) => {
|
|
9884
9905
|
var { data, hasBadges = false, isNested = false, defaultAllExpanded = false, onOptionCheck, isDisabled = false } = _a, props = __rest$1(_a, ["data", "hasBadges", "isNested", "defaultAllExpanded", "onOptionCheck", "isDisabled"]);
|
|
9885
|
-
const
|
|
9906
|
+
const dataToRender = typeof data === 'function' ? data() : data;
|
|
9907
|
+
const tree = dataToRender.map(item => (React__namespace.createElement(DualListSelectorTreeItem, Object.assign({ key: item.id, text: item.text, id: item.id, defaultExpanded: item.defaultExpanded !== undefined ? item.defaultExpanded : defaultAllExpanded, onOptionCheck: onOptionCheck, isChecked: item.isChecked, checkProps: item.checkProps, hasBadge: item.hasBadge !== undefined ? item.hasBadge : hasBadges, badgeProps: item.badgeProps, itemData: item, isDisabled: isDisabled, useMemo: true }, (item.children && {
|
|
9886
9908
|
children: (React__namespace.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
|
|
9887
9909
|
})))));
|
|
9888
9910
|
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(_default$N.dualListSelectorList), role: "group" }, props), tree)) : (React__namespace.createElement(React__namespace.Fragment, null, tree));
|
|
@@ -14380,6 +14402,7 @@
|
|
|
14380
14402
|
render() {
|
|
14381
14403
|
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
14404
|
const isPlain = variant === 'plain';
|
|
14405
|
+
const isPlainText = variant === 'plainText';
|
|
14383
14406
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14384
14407
|
icon && React__namespace.createElement("span", { className: css(_default$y.menuToggleIcon) }, icon),
|
|
14385
14408
|
React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
|
|
@@ -14387,7 +14410,7 @@
|
|
|
14387
14410
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleControls) },
|
|
14388
14411
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleToggleIcon) },
|
|
14389
14412
|
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),
|
|
14413
|
+
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
14414
|
isPlain && children,
|
|
14392
14415
|
!isPlain && content));
|
|
14393
14416
|
}
|
|
@@ -19608,7 +19631,11 @@
|
|
|
19608
19631
|
|
|
19609
19632
|
const Droppable = (_a) => {
|
|
19610
19633
|
var { className, children, zone = 'defaultZone', droppableId = 'defaultId', hasNoWrapper = false } = _a, props = __rest$1(_a, ["className", "children", "zone", "droppableId", "hasNoWrapper"]);
|
|
19611
|
-
const childProps = Object.assign({ 'data-pf-droppable': zone, 'data-pf-droppableid': droppableId,
|
|
19634
|
+
const childProps = Object.assign({ 'data-pf-droppable': zone, 'data-pf-droppableid': droppableId,
|
|
19635
|
+
// if has no wrapper is set, don't overwrite children className with the className prop
|
|
19636
|
+
className: hasNoWrapper && React__namespace.Children.count(children) === 1
|
|
19637
|
+
? css(_default$8.droppable, className, children.props.className)
|
|
19638
|
+
: css(_default$8.droppable, className) }, props);
|
|
19612
19639
|
return (React__namespace.createElement(DroppableContext.Provider, { value: { zone, droppableId } }, hasNoWrapper ? (React__namespace.cloneElement(children, childProps)) : (React__namespace.createElement("div", Object.assign({}, childProps), children))));
|
|
19613
19640
|
};
|
|
19614
19641
|
Droppable.displayName = 'Droppable';
|