@patternfly/react-core 4.208.12 → 4.210.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  3. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +1 -1
  4. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  5. package/dist/esm/components/Select/SelectMenu.d.ts +3 -1
  6. package/dist/esm/components/Select/SelectMenu.d.ts.map +1 -1
  7. package/dist/esm/components/Select/SelectMenu.js.map +1 -1
  8. package/dist/esm/components/Tabs/Tabs.d.ts +3 -1
  9. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  10. package/dist/esm/components/Tabs/Tabs.js +2 -2
  11. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  12. package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
  13. package/dist/esm/components/Wizard/Wizard.js +3 -3
  14. package/dist/esm/components/Wizard/Wizard.js.map +1 -1
  15. package/dist/esm/components/Wizard/WizardNavItem.d.ts +2 -0
  16. package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
  17. package/dist/esm/components/Wizard/WizardNavItem.js +2 -2
  18. package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
  19. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  20. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +1 -1
  21. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  22. package/dist/js/components/Select/SelectMenu.d.ts +3 -1
  23. package/dist/js/components/Select/SelectMenu.d.ts.map +1 -1
  24. package/dist/js/components/Select/SelectMenu.js.map +1 -1
  25. package/dist/js/components/Tabs/Tabs.d.ts +3 -1
  26. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  27. package/dist/js/components/Tabs/Tabs.js +2 -2
  28. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  29. package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
  30. package/dist/js/components/Wizard/Wizard.js +3 -3
  31. package/dist/js/components/Wizard/Wizard.js.map +1 -1
  32. package/dist/js/components/Wizard/WizardNavItem.d.ts +2 -0
  33. package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
  34. package/dist/js/components/Wizard/WizardNavItem.js +2 -2
  35. package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
  36. package/dist/umd/react-core.js +8 -8
  37. package/dist/umd/react-core.min.css +75 -75
  38. package/dist/umd/react-core.min.js +2 -2
  39. package/package.json +5 -5
  40. package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -0
  41. package/src/components/Drawer/examples/Drawer.md +19 -1354
  42. package/src/components/Drawer/examples/DrawerAdditionalSectionAboveContent.tsx +59 -0
  43. package/src/components/Drawer/examples/DrawerBasic.tsx +57 -0
  44. package/src/components/Drawer/examples/DrawerBasicInline.tsx +57 -0
  45. package/src/components/Drawer/examples/DrawerBreakpoint.tsx +57 -0
  46. package/src/components/Drawer/examples/DrawerInlinePanelLeft.tsx +57 -0
  47. package/src/components/Drawer/examples/DrawerInlinePanelRight.tsx +57 -0
  48. package/src/components/Drawer/examples/DrawerLightGray.tsx +107 -0
  49. package/src/components/Drawer/examples/DrawerModifiedContentPadding.tsx +59 -0
  50. package/src/components/Drawer/examples/DrawerModifiedPanelPadding.tsx +57 -0
  51. package/src/components/Drawer/examples/DrawerPanelBottom.tsx +59 -0
  52. package/src/components/Drawer/examples/DrawerPanelLeft.tsx +57 -0
  53. package/src/components/Drawer/examples/DrawerPanelRight.tsx +57 -0
  54. package/src/components/Drawer/examples/DrawerResizableOnBottom.tsx +58 -0
  55. package/src/components/Drawer/examples/DrawerResizableOnInline.tsx +56 -0
  56. package/src/components/Drawer/examples/DrawerResizableOnLeft.tsx +57 -0
  57. package/src/components/Drawer/examples/DrawerResizableOnRight.tsx +62 -0
  58. package/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +60 -0
  59. package/src/components/Drawer/examples/DrawerStatic.tsx +57 -0
  60. package/src/components/Select/SelectMenu.tsx +1 -1
  61. package/src/components/Tabs/Tabs.tsx +5 -1
  62. package/src/components/Tabs/__tests__/Tabs.test.tsx +40 -1
  63. package/src/components/Wizard/Wizard.tsx +3 -0
  64. package/src/components/Wizard/WizardNavItem.tsx +4 -0
  65. package/src/components/Wizard/__tests__/Wizard.test.tsx +6 -3
  66. package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +6 -0
  67. package/src/demos/Tabs.md +53 -57
@@ -351,6 +351,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
351
351
  <button
352
352
  aria-current="step"
353
353
  class="pf-c-wizard__nav-link pf-m-current"
354
+ id="step-A"
354
355
  >
355
356
  A
356
357
  </button>
@@ -361,6 +362,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
361
362
  <button
362
363
  aria-current="false"
363
364
  class="pf-c-wizard__nav-link"
365
+ id="step-B"
364
366
  >
365
367
  B
366
368
  </button>
@@ -373,6 +375,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
373
375
  <button
374
376
  aria-current="false"
375
377
  class="pf-c-wizard__nav-link"
378
+ id="step-B-1"
376
379
  >
377
380
  B-1
378
381
  </button>
@@ -383,6 +386,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
383
386
  <button
384
387
  aria-current="false"
385
388
  class="pf-c-wizard__nav-link"
389
+ id="step-B-2"
386
390
  >
387
391
  B-2
388
392
  </button>
@@ -395,6 +399,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
395
399
  <button
396
400
  aria-current="false"
397
401
  class="pf-c-wizard__nav-link"
402
+ id="step-C"
398
403
  >
399
404
  C
400
405
  </button>
@@ -405,6 +410,7 @@ exports[`Wizard Wizard should match snapshot 1`] = `
405
410
  <button
406
411
  aria-current="false"
407
412
  class="pf-c-wizard__nav-link"
413
+ id="step-D"
408
414
  >
409
415
  D
410
416
  </button>
package/src/demos/Tabs.md CHANGED
@@ -378,65 +378,60 @@ TabsOpenWithSecondaryTabsDemo = () => {
378
378
  <Tab eventKey={4} title={<TabTitleText>Terminal</TabTitleText>} tabContentId={`tabContent${4}`} />
379
379
  </Tabs>
380
380
  </PageSection>
381
- <PageSection isWidthLimited variant={PageSectionVariants.light}>
382
- <Flex direction={{ default: 'column' }}>
383
- <FlexItem>
384
- <TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
385
- <TabContentBody>
386
- <Tabs
387
- isSecondary
388
- activeKey={activeTabKeySecondary}
389
- onSelect={handleTabClickSecondary}
390
- inset={{ default: 'insetNone' }}
391
- id="open-with-secondary-tabs-example-tabs-list-secondary"
392
- >
393
- <Tab
394
- eventKey={10}
395
- title={<TabTitleText>Pod information</TabTitleText>}
396
- tabContentId={`tabContent${10}`}
397
- />
398
- <Tab
399
- eventKey={11}
400
- title={<TabTitleText>Editable aspects</TabTitleText>}
401
- tabContentId={`tabContent${11}`}
402
- />
403
- </Tabs>
404
- <TabContent
405
- key={10}
406
- eventKey={10}
407
- id={`tabContent${10}`}
408
- activeKey={activeTabKeySecondary}
409
- hidden={10 !== activeTabKeySecondary}
410
- >
411
- <TabContentBody>{tabContent}</TabContentBody>
412
- </TabContent>
413
- <TabContent
414
- key={11}
415
- eventKey={11}
416
- id={`tabContent${11}`}
417
- activeKey={activeTabKeySecondary}
418
- hidden={11 !== activeTabKeySecondary}
419
- >
420
- <TabContentBody>Editable aspects</TabContentBody>
421
- </TabContent>
422
- </TabContentBody>
423
- </TabContent>
424
- </FlexItem>
425
- <FlexItem>
426
- <TabContent key={1} eventKey={1} id={`tabContent${1}`} activeKey={activeTabKey} hidden={1 !== activeTabKey}>
427
- <TabContentBody>YAML panel</TabContentBody>
428
- </TabContent>
429
- <TabContent key={2} eventKey={2} id={`tabContent${2}`} activeKey={activeTabKey} hidden={2 !== activeTabKey}>
430
- <TabContentBody>Environment panel</TabContentBody>
431
- </TabContent>
432
- <TabContent key={3} eventKey={3} id={`tabContent${3}`} activeKey={activeTabKey} hidden={3 !== activeTabKey}>
433
- <TabContentBody>Events panel</TabContentBody>
381
+ <PageSection isWidthLimited variant={PageSectionVariants.light} padding={{ default: 'noPadding' }}>
382
+ <TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
383
+ <TabContentBody>
384
+ <Tabs
385
+ isSecondary
386
+ hasSecondaryBorderBottom
387
+ activeKey={activeTabKeySecondary}
388
+ onSelect={handleTabClickSecondary}
389
+ usePageInsets
390
+ id="open-with-secondary-tabs-example-tabs-list-secondary"
391
+ >
392
+ <Tab
393
+ eventKey={10}
394
+ title={<TabTitleText>Pod information</TabTitleText>}
395
+ tabContentId={`tabContent${10}`}
396
+ />
397
+ <Tab
398
+ eventKey={11}
399
+ title={<TabTitleText>Editable aspects</TabTitleText>}
400
+ tabContentId={`tabContent${11}`}
401
+ />
402
+ </Tabs>
403
+ <TabContent
404
+ key={10}
405
+ eventKey={10}
406
+ id={`tabContent${10}`}
407
+ activeKey={activeTabKeySecondary}
408
+ hidden={10 !== activeTabKeySecondary}
409
+ >
410
+ <TabContentBody hasPadding>{tabContent}</TabContentBody>
434
411
  </TabContent>
435
- <TabContent key={4} eventKey={4} id={`tabContent${4}`} activeKey={activeTabKey} hidden={4 !== activeTabKey}>
436
- <TabContentBody>Terminal panel</TabContentBody>
412
+ <TabContent
413
+ key={11}
414
+ eventKey={11}
415
+ id={`tabContent${11}`}
416
+ activeKey={activeTabKeySecondary}
417
+ hidden={11 !== activeTabKeySecondary}
418
+ >
419
+ <TabContentBody>Editable aspects</TabContentBody>
437
420
  </TabContent>
438
- </FlexItem>
439
- </Flex>
421
+ </TabContentBody>
422
+ </TabContent>
423
+ <TabContent key={1} eventKey={1} id={`tabContent${1}`} activeKey={activeTabKey} hidden={1 !== activeTabKey}>
424
+ <TabContentBody>YAML panel</TabContentBody>
425
+ </TabContent>
426
+ <TabContent key={2} eventKey={2} id={`tabContent${2}`} activeKey={activeTabKey} hidden={2 !== activeTabKey}>
427
+ <TabContentBody>Environment panel</TabContentBody>
428
+ </TabContent>
429
+ <TabContent key={3} eventKey={3} id={`tabContent${3}`} activeKey={activeTabKey} hidden={3 !== activeTabKey}>
430
+ <TabContentBody>Events panel</TabContentBody>
431
+ </TabContent>
432
+ <TabContent key={4} eventKey={4} id={`tabContent${4}`} activeKey={activeTabKey} hidden={4 !== activeTabKey}>
433
+ <TabContentBody>Terminal panel</TabContentBody>
434
+ </TabContent>
440
435
  </PageSection>
441
436
  </DashboardWrapper>
442
437
  );
@@ -467,6 +462,7 @@ TabsOpenWithSecondaryTabsDemo = () => {
467
462
 
468
463
  ```js isFullscreen file="./examples/Tabs/ModalTabs.tsx"
469
464
  ```
465
+
470
466
  ### Gray tabs
471
467
 
472
468
  ```js isFullscreen file="./examples/Tabs/GrayTabs.tsx"