@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.
- package/CHANGELOG.md +33 -0
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/esm/components/Select/SelectMenu.d.ts +3 -1
- package/dist/esm/components/Select/SelectMenu.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectMenu.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +3 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +2 -2
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +3 -3
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts +2 -0
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +2 -2
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/js/components/Select/SelectMenu.d.ts +3 -1
- package/dist/js/components/Select/SelectMenu.d.ts.map +1 -1
- package/dist/js/components/Select/SelectMenu.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +3 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +2 -2
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +3 -3
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts +2 -0
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +2 -2
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/umd/react-core.js +8 -8
- package/dist/umd/react-core.min.css +75 -75
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +5 -5
- package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -0
- package/src/components/Drawer/examples/Drawer.md +19 -1354
- package/src/components/Drawer/examples/DrawerAdditionalSectionAboveContent.tsx +59 -0
- package/src/components/Drawer/examples/DrawerBasic.tsx +57 -0
- package/src/components/Drawer/examples/DrawerBasicInline.tsx +57 -0
- package/src/components/Drawer/examples/DrawerBreakpoint.tsx +57 -0
- package/src/components/Drawer/examples/DrawerInlinePanelLeft.tsx +57 -0
- package/src/components/Drawer/examples/DrawerInlinePanelRight.tsx +57 -0
- package/src/components/Drawer/examples/DrawerLightGray.tsx +107 -0
- package/src/components/Drawer/examples/DrawerModifiedContentPadding.tsx +59 -0
- package/src/components/Drawer/examples/DrawerModifiedPanelPadding.tsx +57 -0
- package/src/components/Drawer/examples/DrawerPanelBottom.tsx +59 -0
- package/src/components/Drawer/examples/DrawerPanelLeft.tsx +57 -0
- package/src/components/Drawer/examples/DrawerPanelRight.tsx +57 -0
- package/src/components/Drawer/examples/DrawerResizableOnBottom.tsx +58 -0
- package/src/components/Drawer/examples/DrawerResizableOnInline.tsx +56 -0
- package/src/components/Drawer/examples/DrawerResizableOnLeft.tsx +57 -0
- package/src/components/Drawer/examples/DrawerResizableOnRight.tsx +62 -0
- package/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +60 -0
- package/src/components/Drawer/examples/DrawerStatic.tsx +57 -0
- package/src/components/Select/SelectMenu.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +5 -1
- package/src/components/Tabs/__tests__/Tabs.test.tsx +40 -1
- package/src/components/Wizard/Wizard.tsx +3 -0
- package/src/components/Wizard/WizardNavItem.tsx +4 -0
- package/src/components/Wizard/__tests__/Wizard.test.tsx +6 -3
- package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +6 -0
- 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
|
-
<
|
|
383
|
-
<
|
|
384
|
-
<
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
|
436
|
-
|
|
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
|
-
</
|
|
439
|
-
</
|
|
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"
|