@patternfly/react-core 4.176.0 → 4.179.1
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 +49 -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/Dropdown/DropdownToggle.d.ts +3 -1
- package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownToggle.js +4 -4
- package/dist/esm/components/Dropdown/DropdownToggle.js.map +1 -1
- package/dist/esm/components/Dropdown/Toggle.d.ts +3 -1
- package/dist/esm/components/Dropdown/Toggle.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Toggle.js +8 -3
- package/dist/esm/components/Dropdown/Toggle.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/Dropdown/DropdownToggle.d.ts +3 -1
- package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownToggle.js +4 -4
- package/dist/js/components/Dropdown/DropdownToggle.js.map +1 -1
- package/dist/js/components/Dropdown/Toggle.d.ts +3 -1
- package/dist/js/components/Dropdown/Toggle.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Toggle.js +8 -3
- package/dist/js/components/Dropdown/Toggle.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 +44 -35
- package/dist/umd/react-core.min.css +4004 -3833
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +6 -6
- package/src/components/Alert/examples/Alert.md +201 -382
- package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +61 -0
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +61 -0
- package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +6 -0
- 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/Dropdown/DropdownToggle.tsx +6 -1
- package/src/components/Dropdown/Toggle.tsx +11 -1
- package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +51 -0
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +8 -0
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +346 -4
- package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +1 -0
- package/src/components/Dropdown/examples/Dropdown.md +160 -91
- 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/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +7 -0
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +15 -0
- 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/CardDemos.md +65 -91
- package/src/demos/Tabs/NestedTabsDemo.js +151 -0
- package/src/demos/Tabs.md +4 -0
- 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
|
|
|
@@ -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
|
}
|
|
@@ -5930,6 +5935,12 @@
|
|
|
5930
5935
|
"horizontal": "pf-m-horizontal",
|
|
5931
5936
|
"alignRight": "pf-m-align-right",
|
|
5932
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",
|
|
5933
5944
|
"limitWidth": "pf-m-limit-width",
|
|
5934
5945
|
"action": "pf-m-action",
|
|
5935
5946
|
"info": "pf-m-info",
|
|
@@ -7625,7 +7636,7 @@
|
|
|
7625
7636
|
isExpanded: false
|
|
7626
7637
|
});
|
|
7627
7638
|
const Card = (_a) => {
|
|
7628
|
-
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"]);
|
|
7629
7640
|
const Component = component;
|
|
7630
7641
|
const ouiaProps = useOUIAProps(Card.displayName, ouiaId, ouiaSafe);
|
|
7631
7642
|
if (isCompact && isLarge) {
|
|
@@ -7633,11 +7644,23 @@
|
|
|
7633
7644
|
console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
|
|
7634
7645
|
isLarge = false;
|
|
7635
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
|
+
};
|
|
7636
7659
|
return (React__namespace.createElement(CardContext.Provider, { value: {
|
|
7637
7660
|
cardId: id,
|
|
7638
7661
|
isExpanded
|
|
7639
7662
|
} },
|
|
7640
|
-
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)));
|
|
7641
7664
|
};
|
|
7642
7665
|
Card.displayName = 'Card';
|
|
7643
7666
|
|
|
@@ -9078,26 +9101,6 @@
|
|
|
9078
9101
|
}
|
|
9079
9102
|
}
|
|
9080
9103
|
};
|
|
9081
|
-
const onTriggerEnter = (event) => {
|
|
9082
|
-
if (event.keyCode === KEY_CODES.ENTER) {
|
|
9083
|
-
if (!visible) {
|
|
9084
|
-
if (triggerManually) {
|
|
9085
|
-
shouldOpen(show, event);
|
|
9086
|
-
}
|
|
9087
|
-
else {
|
|
9088
|
-
show(true);
|
|
9089
|
-
}
|
|
9090
|
-
}
|
|
9091
|
-
else {
|
|
9092
|
-
if (triggerManually) {
|
|
9093
|
-
shouldClose(null, hide, event);
|
|
9094
|
-
}
|
|
9095
|
-
else {
|
|
9096
|
-
hide();
|
|
9097
|
-
}
|
|
9098
|
-
}
|
|
9099
|
-
}
|
|
9100
|
-
};
|
|
9101
9104
|
const onTriggerClick = (event) => {
|
|
9102
9105
|
if (triggerManually) {
|
|
9103
9106
|
if (visible) {
|
|
@@ -9112,7 +9115,7 @@
|
|
|
9112
9115
|
hide();
|
|
9113
9116
|
}
|
|
9114
9117
|
else {
|
|
9115
|
-
show();
|
|
9118
|
+
show(true);
|
|
9116
9119
|
}
|
|
9117
9120
|
}
|
|
9118
9121
|
};
|
|
@@ -9157,7 +9160,7 @@
|
|
|
9157
9160
|
React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
|
|
9158
9161
|
footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
|
|
9159
9162
|
return (React__namespace.createElement(PopoverContext.Provider, { value: { headerComponent } },
|
|
9160
|
-
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 })));
|
|
9161
9164
|
};
|
|
9162
9165
|
Popover.displayName = 'Popover';
|
|
9163
9166
|
|
|
@@ -9280,6 +9283,7 @@
|
|
|
9280
9283
|
"autoFit": "pf-m-auto-fit",
|
|
9281
9284
|
"compact": "pf-m-compact",
|
|
9282
9285
|
"fluid": "pf-m-fluid",
|
|
9286
|
+
"fillColumns": "pf-m-fill-columns",
|
|
9283
9287
|
"helpText": "pf-m-help-text",
|
|
9284
9288
|
"1Col": "pf-m-1-col",
|
|
9285
9289
|
"2Col": "pf-m-2-col",
|
|
@@ -14375,6 +14379,7 @@
|
|
|
14375
14379
|
render() {
|
|
14376
14380
|
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"]);
|
|
14377
14381
|
const isPlain = variant === 'plain';
|
|
14382
|
+
const isPlainText = variant === 'plainText';
|
|
14378
14383
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14379
14384
|
icon && React__namespace.createElement("span", { className: css(_default$y.menuToggleIcon) }, icon),
|
|
14380
14385
|
React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
|
|
@@ -14382,7 +14387,7 @@
|
|
|
14382
14387
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleControls) },
|
|
14383
14388
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleToggleIcon) },
|
|
14384
14389
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
|
|
14385
|
-
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),
|
|
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 || 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),
|
|
14386
14391
|
isPlain && children,
|
|
14387
14392
|
!isPlain && content));
|
|
14388
14393
|
}
|
|
@@ -19603,7 +19608,11 @@
|
|
|
19603
19608
|
|
|
19604
19609
|
const Droppable = (_a) => {
|
|
19605
19610
|
var { className, children, zone = 'defaultZone', droppableId = 'defaultId', hasNoWrapper = false } = _a, props = __rest$1(_a, ["className", "children", "zone", "droppableId", "hasNoWrapper"]);
|
|
19606
|
-
const childProps = Object.assign({ 'data-pf-droppable': zone, 'data-pf-droppableid': droppableId,
|
|
19611
|
+
const childProps = Object.assign({ 'data-pf-droppable': zone, 'data-pf-droppableid': droppableId,
|
|
19612
|
+
// if has no wrapper is set, don't overwrite children className with the className prop
|
|
19613
|
+
className: hasNoWrapper && React__namespace.Children.count(children) === 1
|
|
19614
|
+
? css(_default$8.droppable, className, children.props.className)
|
|
19615
|
+
: css(_default$8.droppable, className) }, props);
|
|
19607
19616
|
return (React__namespace.createElement(DroppableContext.Provider, { value: { zone, droppableId } }, hasNoWrapper ? (React__namespace.cloneElement(children, childProps)) : (React__namespace.createElement("div", Object.assign({}, childProps), children))));
|
|
19608
19617
|
};
|
|
19609
19618
|
Droppable.displayName = 'Droppable';
|