@patternfly/react-core 4.232.6 → 4.232.9
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 +24 -0
- package/dist/esm/components/Page/Page.d.ts +1 -1
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/PageBreadcrumb.d.ts +3 -1
- package/dist/esm/components/Page/PageBreadcrumb.d.ts.map +1 -1
- package/dist/esm/components/Page/PageBreadcrumb.js +8 -2
- package/dist/esm/components/Page/PageBreadcrumb.js.map +1 -1
- package/dist/esm/components/Page/PageGroup.d.ts +3 -1
- package/dist/esm/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/esm/components/Page/PageGroup.js +8 -2
- package/dist/esm/components/Page/PageGroup.js.map +1 -1
- package/dist/esm/components/Page/PageNavigation.d.ts +3 -1
- package/dist/esm/components/Page/PageNavigation.d.ts.map +1 -1
- package/dist/esm/components/Page/PageNavigation.js +8 -2
- package/dist/esm/components/Page/PageNavigation.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts +4 -0
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSection.js +8 -2
- package/dist/esm/components/Page/PageSection.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts +1 -1
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/PageBreadcrumb.d.ts +3 -1
- package/dist/js/components/Page/PageBreadcrumb.d.ts.map +1 -1
- package/dist/js/components/Page/PageBreadcrumb.js +8 -2
- package/dist/js/components/Page/PageBreadcrumb.js.map +1 -1
- package/dist/js/components/Page/PageGroup.d.ts +3 -1
- package/dist/js/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/js/components/Page/PageGroup.js +8 -2
- package/dist/js/components/Page/PageGroup.js.map +1 -1
- package/dist/js/components/Page/PageNavigation.d.ts +3 -1
- package/dist/js/components/Page/PageNavigation.d.ts.map +1 -1
- package/dist/js/components/Page/PageNavigation.js +8 -2
- package/dist/js/components/Page/PageNavigation.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts +4 -0
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Page/PageSection.js +8 -2
- package/dist/js/components/Page/PageSection.js.map +1 -1
- package/dist/styles/base-no-reset.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/umd/react-core.css +83 -83
- package/dist/umd/react-core.js +32 -8
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +7 -7
- package/src/components/Nav/examples/Nav.md +10 -626
- package/src/components/Nav/examples/NavDefault.tsx +29 -0
- package/src/components/Nav/examples/NavDrilldown.tsx +20 -15
- package/src/components/Nav/examples/NavExpandable.tsx +119 -0
- package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +115 -0
- package/src/components/Nav/examples/NavFlyout.tsx +102 -0
- package/src/components/Nav/examples/NavGrouped.tsx +67 -0
- package/src/components/Nav/examples/NavHorizontalPageHeader.tsx +34 -0
- package/src/components/Nav/examples/NavHorizontalSubNav.tsx +32 -0
- package/src/components/Nav/examples/NavLegacyTertiary.tsx +32 -0
- package/src/components/Nav/examples/NavMixed.tsx +101 -0
- package/src/components/Page/Page.tsx +1 -1
- package/src/components/Page/PageBreadcrumb.tsx +11 -0
- package/src/components/Page/PageGroup.tsx +11 -0
- package/src/components/Page/PageNavigation.tsx +11 -0
- package/src/components/Page/PageSection.tsx +13 -0
- package/src/components/Page/__tests__/PageBreadcrumb.test.tsx +41 -1
- package/src/components/Page/__tests__/PageGroup.test.tsx +41 -1
- package/src/components/Page/__tests__/PageNavigation.test.tsx +41 -1
- package/src/components/Page/__tests__/PageSection.test.tsx +41 -1
- package/src/components/Popover/examples/Popover.md +10 -293
- package/src/components/Popover/examples/PopoverAdvanced.tsx +79 -0
- package/src/components/Popover/examples/PopoverAlert.tsx +47 -0
- package/src/components/Popover/examples/PopoverBasic.tsx +15 -0
- package/src/components/Popover/examples/PopoverCloseControlled.tsx +29 -0
- package/src/components/Popover/examples/PopoverCloseUncontrolled.tsx +25 -0
- package/src/components/Popover/examples/PopoverReactRef.tsx +23 -0
- package/src/components/Popover/examples/PopoverSelectorRef.tsx +19 -0
- package/src/components/Popover/examples/PopoverWidthAuto.tsx +14 -0
- package/src/components/Popover/examples/PopoverWithIconInTheTitle.tsx +17 -0
- package/src/components/Popover/examples/PopoverWithoutHeaderFooterCloseNoPadding.tsx +21 -0
- package/src/components/Progress/examples/Progress.md +18 -117
- package/src/components/Progress/examples/ProgressBasic.tsx +4 -0
- package/src/components/Progress/examples/ProgressFailure.tsx +6 -0
- package/src/components/Progress/examples/ProgressFailureWithoutMeasure.tsx +6 -0
- package/src/components/Progress/examples/ProgressFiniteStep.tsx +14 -0
- package/src/components/Progress/examples/ProgressInside.tsx +6 -0
- package/src/components/Progress/examples/ProgressInsideSuccess.tsx +11 -0
- package/src/components/Progress/examples/ProgressLarge.tsx +6 -0
- package/src/components/Progress/examples/ProgressOutside.tsx +6 -0
- package/src/components/Progress/examples/ProgressOutsideFailure.tsx +11 -0
- package/src/components/Progress/examples/ProgressSingleLine.tsx +6 -0
- package/src/components/Progress/examples/ProgressSmall.tsx +6 -0
- package/src/components/Progress/examples/ProgressStepInstruction.tsx +6 -0
- package/src/components/Progress/examples/ProgressSuccess.tsx +6 -0
- package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +24 -0
- package/src/components/Progress/examples/ProgressTruncateTitle.tsx +10 -0
- package/src/components/Progress/examples/ProgressWarning.tsx +6 -0
- package/src/components/Progress/examples/ProgressWithoutMeasure.tsx +6 -0
- package/src/demos/JumpLinks.md +1 -0
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +6 -1
package/dist/umd/react-core.css
CHANGED
|
@@ -23752,89 +23752,6 @@ label.pf-c-tree-view__node-text {
|
|
|
23752
23752
|
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
|
|
23753
23753
|
}
|
|
23754
23754
|
|
|
23755
|
-
.pf-c-panel {
|
|
23756
|
-
--pf-c-panel--Width: auto;
|
|
23757
|
-
--pf-c-panel--MinWidth: auto;
|
|
23758
|
-
--pf-c-panel--MaxWidth: none;
|
|
23759
|
-
--pf-c-panel--ZIndex: auto;
|
|
23760
|
-
--pf-c-panel--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
23761
|
-
--pf-c-panel--BoxShadow: none;
|
|
23762
|
-
--pf-c-panel--before--BorderWidth: 0;
|
|
23763
|
-
--pf-c-panel--before--BorderColor: var(--pf-global--BorderColor--100);
|
|
23764
|
-
--pf-c-panel--m-bordered--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
23765
|
-
--pf-c-panel--m-raised--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
23766
|
-
--pf-c-panel--m-raised--ZIndex: var(--pf-global--ZIndex--sm);
|
|
23767
|
-
--pf-c-panel__header--PaddingTop: var(--pf-global--spacer--md);
|
|
23768
|
-
--pf-c-panel__header--PaddingRight: var(--pf-global--spacer--md);
|
|
23769
|
-
--pf-c-panel__header--PaddingBottom: var(--pf-global--spacer--md);
|
|
23770
|
-
--pf-c-panel__header--PaddingLeft: var(--pf-global--spacer--md);
|
|
23771
|
-
--pf-c-panel__main--MaxHeight: none;
|
|
23772
|
-
--pf-c-panel__main--Overflow: visible;
|
|
23773
|
-
--pf-c-panel__main-body--PaddingTop: var(--pf-global--spacer--md);
|
|
23774
|
-
--pf-c-panel__main-body--PaddingRight: var(--pf-global--spacer--md);
|
|
23775
|
-
--pf-c-panel__main-body--PaddingBottom: var(--pf-global--spacer--md);
|
|
23776
|
-
--pf-c-panel__main-body--PaddingLeft: var(--pf-global--spacer--md);
|
|
23777
|
-
--pf-c-panel__footer--PaddingTop: var(--pf-global--spacer--md);
|
|
23778
|
-
--pf-c-panel__footer--PaddingRight: var(--pf-global--spacer--md);
|
|
23779
|
-
--pf-c-panel__footer--PaddingBottom: var(--pf-global--spacer--md);
|
|
23780
|
-
--pf-c-panel__footer--PaddingLeft: var(--pf-global--spacer--md);
|
|
23781
|
-
--pf-c-panel__footer--BoxShadow: none;
|
|
23782
|
-
--pf-c-panel--m-scrollable__main--MaxHeight: 18.75rem;
|
|
23783
|
-
--pf-c-panel--m-scrollable__main--Overflow: auto;
|
|
23784
|
-
--pf-c-panel--m-scrollable__footer--BoxShadow: 0 -0.3125rem 0.25rem -0.25rem rgba(3, 3, 3, 0.16);
|
|
23785
|
-
position: relative;
|
|
23786
|
-
z-index: var(--pf-c-panel--ZIndex);
|
|
23787
|
-
width: var(--pf-c-panel--Width);
|
|
23788
|
-
min-width: var(--pf-c-panel--MinWidth);
|
|
23789
|
-
max-width: var(--pf-c-panel--MaxWidth);
|
|
23790
|
-
background-color: var(--pf-c-panel--BackgroundColor);
|
|
23791
|
-
box-shadow: var(--pf-c-panel--BoxShadow);
|
|
23792
|
-
}
|
|
23793
|
-
|
|
23794
|
-
.pf-c-panel::before {
|
|
23795
|
-
position: absolute;
|
|
23796
|
-
top: 0;
|
|
23797
|
-
right: 0;
|
|
23798
|
-
bottom: 0;
|
|
23799
|
-
left: 0;
|
|
23800
|
-
pointer-events: none;
|
|
23801
|
-
content: "";
|
|
23802
|
-
border: var(--pf-c-panel--before--BorderWidth) solid var(--pf-c-panel--before--BorderColor);
|
|
23803
|
-
}
|
|
23804
|
-
|
|
23805
|
-
.pf-c-panel.pf-m-bordered {
|
|
23806
|
-
--pf-c-panel--before--BorderWidth: var(--pf-c-panel--m-bordered--before--BorderWidth);
|
|
23807
|
-
}
|
|
23808
|
-
|
|
23809
|
-
.pf-c-panel.pf-m-raised {
|
|
23810
|
-
--pf-c-panel--BoxShadow: var(--pf-c-panel--m-raised--BoxShadow);
|
|
23811
|
-
--pf-c-panel--ZIndex: var(--pf-c-panel--m-raised--ZIndex);
|
|
23812
|
-
}
|
|
23813
|
-
|
|
23814
|
-
.pf-c-panel.pf-m-scrollable {
|
|
23815
|
-
--pf-c-panel__main--MaxHeight: var(--pf-c-panel--m-scrollable__main--MaxHeight);
|
|
23816
|
-
--pf-c-panel__main--Overflow: var(--pf-c-panel--m-scrollable__main--Overflow);
|
|
23817
|
-
--pf-c-panel__footer--BoxShadow: var(--pf-c-panel--m-scrollable__footer--BoxShadow);
|
|
23818
|
-
}
|
|
23819
|
-
|
|
23820
|
-
.pf-c-panel__header {
|
|
23821
|
-
padding: var(--pf-c-panel__header--PaddingTop) var(--pf-c-panel__header--PaddingRight) var(--pf-c-panel__header--PaddingBottom) var(--pf-c-panel__header--PaddingLeft);
|
|
23822
|
-
}
|
|
23823
|
-
|
|
23824
|
-
.pf-c-panel__main {
|
|
23825
|
-
max-height: var(--pf-c-panel__main--MaxHeight);
|
|
23826
|
-
overflow: var(--pf-c-panel__main--Overflow);
|
|
23827
|
-
}
|
|
23828
|
-
|
|
23829
|
-
.pf-c-panel__main-body {
|
|
23830
|
-
padding: var(--pf-c-panel__main-body--PaddingTop) var(--pf-c-panel__main-body--PaddingRight) var(--pf-c-panel__main-body--PaddingBottom) var(--pf-c-panel__main-body--PaddingLeft);
|
|
23831
|
-
}
|
|
23832
|
-
|
|
23833
|
-
.pf-c-panel__footer {
|
|
23834
|
-
padding: var(--pf-c-panel__footer--PaddingTop) var(--pf-c-panel__footer--PaddingRight) var(--pf-c-panel__footer--PaddingBottom) var(--pf-c-panel__footer--PaddingLeft);
|
|
23835
|
-
box-shadow: var(--pf-c-panel__footer--BoxShadow);
|
|
23836
|
-
}
|
|
23837
|
-
|
|
23838
23755
|
.pf-c-text-input-group {
|
|
23839
23756
|
--pf-c-text-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
23840
23757
|
--pf-c-text-input-group__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -24007,6 +23924,89 @@ label.pf-c-tree-view__node-text {
|
|
|
24007
23924
|
display: flex;
|
|
24008
23925
|
}
|
|
24009
23926
|
|
|
23927
|
+
.pf-c-panel {
|
|
23928
|
+
--pf-c-panel--Width: auto;
|
|
23929
|
+
--pf-c-panel--MinWidth: auto;
|
|
23930
|
+
--pf-c-panel--MaxWidth: none;
|
|
23931
|
+
--pf-c-panel--ZIndex: auto;
|
|
23932
|
+
--pf-c-panel--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
23933
|
+
--pf-c-panel--BoxShadow: none;
|
|
23934
|
+
--pf-c-panel--before--BorderWidth: 0;
|
|
23935
|
+
--pf-c-panel--before--BorderColor: var(--pf-global--BorderColor--100);
|
|
23936
|
+
--pf-c-panel--m-bordered--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
23937
|
+
--pf-c-panel--m-raised--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
23938
|
+
--pf-c-panel--m-raised--ZIndex: var(--pf-global--ZIndex--sm);
|
|
23939
|
+
--pf-c-panel__header--PaddingTop: var(--pf-global--spacer--md);
|
|
23940
|
+
--pf-c-panel__header--PaddingRight: var(--pf-global--spacer--md);
|
|
23941
|
+
--pf-c-panel__header--PaddingBottom: var(--pf-global--spacer--md);
|
|
23942
|
+
--pf-c-panel__header--PaddingLeft: var(--pf-global--spacer--md);
|
|
23943
|
+
--pf-c-panel__main--MaxHeight: none;
|
|
23944
|
+
--pf-c-panel__main--Overflow: visible;
|
|
23945
|
+
--pf-c-panel__main-body--PaddingTop: var(--pf-global--spacer--md);
|
|
23946
|
+
--pf-c-panel__main-body--PaddingRight: var(--pf-global--spacer--md);
|
|
23947
|
+
--pf-c-panel__main-body--PaddingBottom: var(--pf-global--spacer--md);
|
|
23948
|
+
--pf-c-panel__main-body--PaddingLeft: var(--pf-global--spacer--md);
|
|
23949
|
+
--pf-c-panel__footer--PaddingTop: var(--pf-global--spacer--md);
|
|
23950
|
+
--pf-c-panel__footer--PaddingRight: var(--pf-global--spacer--md);
|
|
23951
|
+
--pf-c-panel__footer--PaddingBottom: var(--pf-global--spacer--md);
|
|
23952
|
+
--pf-c-panel__footer--PaddingLeft: var(--pf-global--spacer--md);
|
|
23953
|
+
--pf-c-panel__footer--BoxShadow: none;
|
|
23954
|
+
--pf-c-panel--m-scrollable__main--MaxHeight: 18.75rem;
|
|
23955
|
+
--pf-c-panel--m-scrollable__main--Overflow: auto;
|
|
23956
|
+
--pf-c-panel--m-scrollable__footer--BoxShadow: 0 -0.3125rem 0.25rem -0.25rem rgba(3, 3, 3, 0.16);
|
|
23957
|
+
position: relative;
|
|
23958
|
+
z-index: var(--pf-c-panel--ZIndex);
|
|
23959
|
+
width: var(--pf-c-panel--Width);
|
|
23960
|
+
min-width: var(--pf-c-panel--MinWidth);
|
|
23961
|
+
max-width: var(--pf-c-panel--MaxWidth);
|
|
23962
|
+
background-color: var(--pf-c-panel--BackgroundColor);
|
|
23963
|
+
box-shadow: var(--pf-c-panel--BoxShadow);
|
|
23964
|
+
}
|
|
23965
|
+
|
|
23966
|
+
.pf-c-panel::before {
|
|
23967
|
+
position: absolute;
|
|
23968
|
+
top: 0;
|
|
23969
|
+
right: 0;
|
|
23970
|
+
bottom: 0;
|
|
23971
|
+
left: 0;
|
|
23972
|
+
pointer-events: none;
|
|
23973
|
+
content: "";
|
|
23974
|
+
border: var(--pf-c-panel--before--BorderWidth) solid var(--pf-c-panel--before--BorderColor);
|
|
23975
|
+
}
|
|
23976
|
+
|
|
23977
|
+
.pf-c-panel.pf-m-bordered {
|
|
23978
|
+
--pf-c-panel--before--BorderWidth: var(--pf-c-panel--m-bordered--before--BorderWidth);
|
|
23979
|
+
}
|
|
23980
|
+
|
|
23981
|
+
.pf-c-panel.pf-m-raised {
|
|
23982
|
+
--pf-c-panel--BoxShadow: var(--pf-c-panel--m-raised--BoxShadow);
|
|
23983
|
+
--pf-c-panel--ZIndex: var(--pf-c-panel--m-raised--ZIndex);
|
|
23984
|
+
}
|
|
23985
|
+
|
|
23986
|
+
.pf-c-panel.pf-m-scrollable {
|
|
23987
|
+
--pf-c-panel__main--MaxHeight: var(--pf-c-panel--m-scrollable__main--MaxHeight);
|
|
23988
|
+
--pf-c-panel__main--Overflow: var(--pf-c-panel--m-scrollable__main--Overflow);
|
|
23989
|
+
--pf-c-panel__footer--BoxShadow: var(--pf-c-panel--m-scrollable__footer--BoxShadow);
|
|
23990
|
+
}
|
|
23991
|
+
|
|
23992
|
+
.pf-c-panel__header {
|
|
23993
|
+
padding: var(--pf-c-panel__header--PaddingTop) var(--pf-c-panel__header--PaddingRight) var(--pf-c-panel__header--PaddingBottom) var(--pf-c-panel__header--PaddingLeft);
|
|
23994
|
+
}
|
|
23995
|
+
|
|
23996
|
+
.pf-c-panel__main {
|
|
23997
|
+
max-height: var(--pf-c-panel__main--MaxHeight);
|
|
23998
|
+
overflow: var(--pf-c-panel__main--Overflow);
|
|
23999
|
+
}
|
|
24000
|
+
|
|
24001
|
+
.pf-c-panel__main-body {
|
|
24002
|
+
padding: var(--pf-c-panel__main-body--PaddingTop) var(--pf-c-panel__main-body--PaddingRight) var(--pf-c-panel__main-body--PaddingBottom) var(--pf-c-panel__main-body--PaddingLeft);
|
|
24003
|
+
}
|
|
24004
|
+
|
|
24005
|
+
.pf-c-panel__footer {
|
|
24006
|
+
padding: var(--pf-c-panel__footer--PaddingTop) var(--pf-c-panel__footer--PaddingRight) var(--pf-c-panel__footer--PaddingBottom) var(--pf-c-panel__footer--PaddingLeft);
|
|
24007
|
+
box-shadow: var(--pf-c-panel__footer--BoxShadow);
|
|
24008
|
+
}
|
|
24009
|
+
|
|
24010
24010
|
.pf-c-truncate {
|
|
24011
24011
|
--pf-c-truncate--MinWidth: 12ch;
|
|
24012
24012
|
--pf-c-truncate__start--MinWidth: 6ch;
|
package/dist/umd/react-core.js
CHANGED
|
@@ -17684,18 +17684,30 @@
|
|
|
17684
17684
|
OverflowMenuDropdownItem.displayName = 'OverflowMenuDropdownItem';
|
|
17685
17685
|
|
|
17686
17686
|
const PageBreadcrumb = (_a) => {
|
|
17687
|
-
var { className = '', children, isWidthLimited, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17687
|
+
var { className = '', children, isWidthLimited, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
17688
17688
|
const { height, getVerticalBreakpoint } = React__namespace.useContext(PageContext);
|
|
17689
|
-
|
|
17689
|
+
React__namespace.useEffect(() => {
|
|
17690
|
+
if (hasOverflowScroll && !ariaLabel) {
|
|
17691
|
+
/* eslint-disable no-console */
|
|
17692
|
+
console.warn('PageBreadcrumb: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17693
|
+
}
|
|
17694
|
+
}, [hasOverflowScroll, ariaLabel]);
|
|
17695
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$y.pageMainBreadcrumb, formatBreakpointMods(stickyOnBreakpoint, styles$y, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$y.modifiers.limitWidth, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17690
17696
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17691
17697
|
!isWidthLimited && children));
|
|
17692
17698
|
};
|
|
17693
17699
|
PageBreadcrumb.displayName = 'PageBreadcrumb';
|
|
17694
17700
|
|
|
17695
17701
|
const PageGroup = (_a) => {
|
|
17696
|
-
var { className = '', children, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17702
|
+
var { className = '', children, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
17697
17703
|
const { height, getVerticalBreakpoint } = React__namespace.useContext(PageContext);
|
|
17698
|
-
|
|
17704
|
+
React__namespace.useEffect(() => {
|
|
17705
|
+
if (hasOverflowScroll && !ariaLabel) {
|
|
17706
|
+
/* eslint-disable no-console */
|
|
17707
|
+
console.warn('PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17708
|
+
}
|
|
17709
|
+
}, [hasOverflowScroll, ariaLabel]);
|
|
17710
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$y.pageMainGroup, formatBreakpointMods(stickyOnBreakpoint, styles$y, 'sticky-', getVerticalBreakpoint(height), true), sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }), children));
|
|
17699
17711
|
};
|
|
17700
17712
|
PageGroup.displayName = 'PageGroup';
|
|
17701
17713
|
|
|
@@ -17764,9 +17776,15 @@
|
|
|
17764
17776
|
[exports.PageSectionVariants.darker]: styles$y.modifiers.dark_100
|
|
17765
17777
|
};
|
|
17766
17778
|
const PageSection = (_a) => {
|
|
17767
|
-
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17779
|
+
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
17768
17780
|
const { height, getVerticalBreakpoint } = React__namespace.useContext(PageContext);
|
|
17769
|
-
|
|
17781
|
+
React__namespace.useEffect(() => {
|
|
17782
|
+
if (hasOverflowScroll && !ariaLabel) {
|
|
17783
|
+
/* eslint-disable no-console */
|
|
17784
|
+
console.warn('PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17785
|
+
}
|
|
17786
|
+
}, [hasOverflowScroll, ariaLabel]);
|
|
17787
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$y), formatBreakpointMods(stickyOnBreakpoint, styles$y, 'sticky-', getVerticalBreakpoint(height), true), variantStyle$3[variant], isFilled === false && styles$y.modifiers.noFill, isFilled === true && styles$y.modifiers.fill, isWidthLimited && styles$y.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$y.modifiers.alignCenter, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }),
|
|
17770
17788
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17771
17789
|
!isWidthLimited && children));
|
|
17772
17790
|
};
|
|
@@ -17793,9 +17811,15 @@
|
|
|
17793
17811
|
PageHeaderToolsItem.displayName = 'PageHeaderToolsItem';
|
|
17794
17812
|
|
|
17795
17813
|
const PageNavigation = (_a) => {
|
|
17796
|
-
var { className = '', children, isWidthLimited, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17814
|
+
var { className = '', children, isWidthLimited, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
17797
17815
|
const { height, getVerticalBreakpoint } = React__namespace.useContext(PageContext);
|
|
17798
|
-
|
|
17816
|
+
React__namespace.useEffect(() => {
|
|
17817
|
+
if (hasOverflowScroll && !ariaLabel) {
|
|
17818
|
+
/* eslint-disable no-console */
|
|
17819
|
+
console.warn('PageNavigation: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17820
|
+
}
|
|
17821
|
+
}, [hasOverflowScroll, ariaLabel]);
|
|
17822
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$y.pageMainNav, formatBreakpointMods(stickyOnBreakpoint, styles$y, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$y.modifiers.limitWidth, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17799
17823
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17800
17824
|
!isWidthLimited && children));
|
|
17801
17825
|
};
|