@primer/react 0.0.0-20260427204434 → 0.0.0-20260428150519
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 +10 -6
- package/dist/ActionBar/ActionBar.js +502 -705
- package/dist/ActionBar/ActionBar.module.css.js +10 -5
- package/dist/ActionBar/index.js +8 -8
- package/dist/ActionList/ActionList.module.css.js +31 -5
- package/dist/ActionList/ActionListContainerContext.js +4 -5
- package/dist/ActionList/Description.js +117 -133
- package/dist/ActionList/Divider.js +31 -38
- package/dist/ActionList/Group.js +292 -349
- package/dist/ActionList/Group.module.css.js +10 -5
- package/dist/ActionList/Heading.js +88 -106
- package/dist/ActionList/Heading.module.css.js +5 -5
- package/dist/ActionList/Item.js +668 -811
- package/dist/ActionList/LinkItem.js +36 -56
- package/dist/ActionList/List.js +168 -210
- package/dist/ActionList/Selection.js +83 -112
- package/dist/ActionList/TrailingAction.js +97 -112
- package/dist/ActionList/Visuals.js +143 -191
- package/dist/ActionList/index.js +33 -33
- package/dist/ActionList/shared.js +5 -9
- package/dist/ActionMenu/ActionMenu.js +223 -310
- package/dist/ActionMenu/ActionMenu.module.css.js +5 -5
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.js +206 -298
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +9 -5
- package/dist/Autocomplete/Autocomplete.js +125 -141
- package/dist/Autocomplete/AutocompleteContext.js +18 -20
- package/dist/Autocomplete/AutocompleteInput.js +108 -146
- package/dist/Autocomplete/AutocompleteMenu.js +201 -238
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +8 -5
- package/dist/Autocomplete/AutocompleteOverlay.js +54 -79
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +5 -5
- package/dist/Avatar/Avatar.js +106 -133
- package/dist/Avatar/Avatar.module.css.js +5 -5
- package/dist/AvatarStack/AvatarStack.js +102 -143
- package/dist/AvatarStack/AvatarStack.module.css.js +9 -5
- package/dist/Banner/Banner.js +133 -186
- package/dist/Banner/Banner.module.css.js +14 -5
- package/dist/Banner/index.js +7 -7
- package/dist/BaseStyles.js +74 -91
- package/dist/BaseStyles.module.css.js +5 -5
- package/dist/Blankslate/Blankslate.js +266 -328
- package/dist/Blankslate/Blankslate.module.css.js +12 -5
- package/dist/Blankslate/BlankslateContext.js +7 -9
- package/dist/Blankslate/index.js +9 -9
- package/dist/BranchName/BranchName.js +49 -59
- package/dist/BranchName/BranchName.module.css.js +5 -5
- package/dist/Breadcrumbs/Breadcrumbs.js +371 -431
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +15 -5
- package/dist/Button/Button.js +15 -18
- package/dist/Button/ButtonBase.js +76 -139
- package/dist/Button/ButtonBase.module.css.js +16 -5
- package/dist/Button/IconButton.js +42 -74
- package/dist/Button/LinkButton.js +13 -17
- package/dist/ButtonGroup/ButtonGroup.js +80 -97
- package/dist/ButtonGroup/ButtonGroup.module.css.js +5 -5
- package/dist/Card/Card.js +401 -491
- package/dist/Card/Card.module.css.js +18 -5
- package/dist/Card/index.js +9 -9
- package/dist/Checkbox/Checkbox.js +52 -71
- package/dist/Checkbox/Checkbox.module.css.js +9 -5
- package/dist/Checkbox/shared.module.css.js +5 -5
- package/dist/CheckboxGroup/CheckboxGroup.js +111 -132
- package/dist/CheckboxGroup/CheckboxGroupContext.js +4 -4
- package/dist/CircleBadge/CircleBadge.js +77 -90
- package/dist/CircleBadge/CircleBadge.module.css.js +8 -5
- package/dist/ConfirmationDialog/ConfirmationDialog.js +68 -92
- package/dist/CounterLabel/CounterLabel.js +83 -99
- package/dist/CounterLabel/CounterLabel.module.css.js +5 -5
- package/dist/DataTable/DataTable.js +100 -140
- package/dist/DataTable/ErrorDialog.js +33 -45
- package/dist/DataTable/Pagination.js +464 -592
- package/dist/DataTable/Pagination.module.css.js +13 -5
- package/dist/DataTable/Table.js +527 -710
- package/dist/DataTable/Table.module.css.js +26 -5
- package/dist/DataTable/column.js +10 -11
- package/dist/DataTable/index.js +22 -20
- package/dist/DataTable/sorting.js +65 -103
- package/dist/DataTable/useTable.js +207 -290
- package/dist/Details/Details.js +100 -126
- package/dist/Details/Details.module.css.js +5 -5
- package/dist/Dialog/Dialog.js +259 -351
- package/dist/Dialog/Dialog.module.css.js +22 -5
- package/dist/FeatureFlags/DefaultFeatureFlags.js +7 -7
- package/dist/FeatureFlags/FeatureFlagContext.js +5 -5
- package/dist/FeatureFlags/FeatureFlagScope.js +36 -44
- package/dist/FeatureFlags/FeatureFlags.js +29 -37
- package/dist/FeatureFlags/useFeatureFlag.js +17 -19
- package/dist/FilteredActionList/FilteredActionList.js +454 -579
- package/dist/FilteredActionList/FilteredActionList.module.css.js +15 -5
- package/dist/FilteredActionList/FilteredActionListLoaders.js +119 -150
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +9 -5
- package/dist/FilteredActionList/useAnnouncements.js +167 -180
- package/dist/Flash/Flash.js +57 -69
- package/dist/Flash/Flash.module.css.js +5 -5
- package/dist/FormControl/FormControl.js +211 -227
- package/dist/FormControl/FormControl.module.css.js +11 -5
- package/dist/FormControl/FormControlCaption.js +37 -49
- package/dist/FormControl/FormControlCaption.module.css.js +5 -5
- package/dist/FormControl/FormControlLabel.js +95 -115
- package/dist/FormControl/FormControlLeadingVisual.js +29 -37
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +5 -5
- package/dist/FormControl/_FormControlContext.js +41 -48
- package/dist/FormControl/_FormControlValidation.js +29 -39
- package/dist/Header/Header.js +138 -165
- package/dist/Header/Header.module.css.js +9 -5
- package/dist/Heading/Heading.js +26 -37
- package/dist/Heading/Heading.module.css.js +5 -5
- package/dist/Hidden/Hidden.js +54 -77
- package/dist/Hidden/Hidden.module.css.js +5 -5
- package/dist/InlineMessage/InlineMessage.js +88 -116
- package/dist/InlineMessage/InlineMessage.module.css.js +8 -5
- package/dist/KeybindingHint/KeybindingHint.js +70 -88
- package/dist/KeybindingHint/KeybindingHint.module.css.js +5 -5
- package/dist/KeybindingHint/components/Chord.js +81 -93
- package/dist/KeybindingHint/components/Chord.module.css.js +11 -5
- package/dist/KeybindingHint/components/Key.js +49 -66
- package/dist/KeybindingHint/components/Sequence.js +12 -24
- package/dist/KeybindingHint/key-names.js +99 -114
- package/dist/Label/Label.js +56 -66
- package/dist/Label/Label.module.css.js +5 -5
- package/dist/Label/index.js +5 -5
- package/dist/LabelGroup/LabelGroup.js +260 -344
- package/dist/LabelGroup/LabelGroup.module.css.js +12 -5
- package/dist/Link/Link.js +31 -47
- package/dist/Link/Link.module.css.js +5 -5
- package/dist/NavList/NavList.js +424 -614
- package/dist/NavList/NavList.module.css.js +5 -5
- package/dist/Octicon/Octicon.js +35 -37
- package/dist/Overlay/Overlay.js +264 -318
- package/dist/Overlay/Overlay.module.css.js +8 -5
- package/dist/PageHeader/PageHeader.js +579 -823
- package/dist/PageHeader/PageHeader.module.css.js +21 -5
- package/dist/PageLayout/PageLayout.js +631 -913
- package/dist/PageLayout/PageLayout.module.css.js +31 -5
- package/dist/PageLayout/paneUtils.js +15 -29
- package/dist/PageLayout/usePaneWidth.js +334 -437
- package/dist/Pagehead/Pagehead.js +10 -14
- package/dist/Pagehead/Pagehead.module.css.js +5 -5
- package/dist/Pagination/Pagination.js +84 -114
- package/dist/Pagination/Pagination.module.css.js +9 -5
- package/dist/Pagination/index.js +5 -5
- package/dist/Pagination/model.js +118 -194
- package/dist/Popover/Popover.js +126 -151
- package/dist/Popover/Popover.module.css.js +8 -5
- package/dist/Portal/Portal.js +65 -85
- package/dist/Portal/index.js +5 -6
- package/dist/ProgressBar/ProgressBar.js +210 -255
- package/dist/ProgressBar/ProgressBar.module.css.js +9 -5
- package/dist/ProgressBar/index.js +6 -8
- package/dist/Radio/Radio.js +97 -115
- package/dist/Radio/Radio.module.css.js +5 -5
- package/dist/RadioGroup/RadioGroup.js +99 -118
- package/dist/RelativeTime/RelativeTime.js +64 -76
- package/dist/ScrollableRegion/ScrollableRegion.js +67 -79
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +5 -5
- package/dist/SegmentedControl/SegmentedControl.js +238 -287
- package/dist/SegmentedControl/SegmentedControl.module.css.js +15 -5
- package/dist/SegmentedControl/SegmentedControlButton.js +156 -187
- package/dist/SegmentedControl/SegmentedControlIconButton.js +133 -161
- package/dist/Select/Select.js +185 -234
- package/dist/Select/Select.module.css.js +10 -5
- package/dist/SelectPanel/SelectPanel.js +620 -828
- package/dist/SelectPanel/SelectPanel.module.css.js +27 -5
- package/dist/SelectPanel/SelectPanelMessage.js +37 -39
- package/dist/SideNav.js +24 -47
- package/dist/SideNav.module.css.js +12 -5
- package/dist/Skeleton/SkeletonBox.js +94 -111
- package/dist/Skeleton/SkeletonBox.module.css.js +8 -5
- package/dist/SkeletonAvatar/SkeletonAvatar.js +95 -120
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +5 -5
- package/dist/SkeletonText/SkeletonText.js +114 -137
- package/dist/SkeletonText/SkeletonText.module.css.js +8 -5
- package/dist/Spinner/Spinner.js +183 -211
- package/dist/Spinner/Spinner.module.css.js +9 -5
- package/dist/SplitPageLayout/SplitPageLayout.js +215 -276
- package/dist/Stack/Stack.js +207 -255
- package/dist/Stack/Stack.module.css.js +8 -5
- package/dist/Stack/index.js +4 -6
- package/dist/StateLabel/StateLabel.js +110 -123
- package/dist/StateLabel/StateLabel.module.css.js +8 -5
- package/dist/SubNav/SubNav.js +159 -197
- package/dist/SubNav/SubNav.module.css.js +11 -5
- package/dist/TabNav/TabNav.js +167 -199
- package/dist/TabNav/TabNav.module.css.js +10 -5
- package/dist/Text/Text.js +56 -67
- package/dist/Text/Text.module.css.js +5 -5
- package/dist/TextInput/TextInput.js +195 -228
- package/dist/TextInput/TextInput.module.css.js +8 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.js +567 -673
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +14 -5
- package/dist/Textarea/TextArea.module.css.js +9 -5
- package/dist/Textarea/Textarea.js +264 -294
- package/dist/ThemeProvider.js +199 -257
- package/dist/Timeline/Timeline.js +204 -247
- package/dist/Timeline/Timeline.module.css.js +12 -5
- package/dist/ToggleSwitch/ToggleSwitch.js +403 -471
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +16 -5
- package/dist/Token/IssueLabelToken.js +256 -297
- package/dist/Token/IssueLabelToken.module.css.js +8 -5
- package/dist/Token/Token.js +232 -280
- package/dist/Token/Token.module.css.js +9 -5
- package/dist/Token/TokenBase.js +99 -126
- package/dist/Token/TokenBase.module.css.js +5 -5
- package/dist/Token/_RemoveTokenButton.js +27 -48
- package/dist/Token/_RemoveTokenButton.module.css.js +5 -5
- package/dist/Token/_TokenTextContainer.js +54 -65
- package/dist/Token/_TokenTextContainer.module.css.js +5 -5
- package/dist/Tooltip/Tooltip.js +49 -56
- package/dist/Tooltip/Tooltip.module.css.js +20 -5
- package/dist/TooltipV2/Tooltip.js +222 -305
- package/dist/TooltipV2/Tooltip.module.css.js +11 -5
- package/dist/TopicTag/TopicTag.js +46 -55
- package/dist/TopicTag/TopicTag.module.css.js +5 -5
- package/dist/TopicTag/TopicTagGroup.js +40 -48
- package/dist/TopicTag/TopicTagGroup.module.css.js +5 -5
- package/dist/TopicTag/index.js +5 -7
- package/dist/TreeView/TreeView.js +1082 -1414
- package/dist/TreeView/TreeView.module.css.js +24 -5
- package/dist/TreeView/shared.js +10 -9
- package/dist/TreeView/useRovingTabIndex.js +129 -203
- package/dist/TreeView/useTreeItemCache.js +64 -79
- package/dist/TreeView/useTypeahead.js +90 -112
- package/dist/Truncate/Truncate.js +21 -33
- package/dist/Truncate/Truncate.module.css.js +5 -5
- package/dist/UnderlineNav/UnderlineNav.js +278 -375
- package/dist/UnderlineNav/UnderlineNav.module.css.js +8 -5
- package/dist/UnderlineNav/UnderlineNavContext.js +8 -8
- package/dist/UnderlineNav/UnderlineNavItem.js +56 -72
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -5
- package/dist/UnderlineNav/index.js +5 -7
- package/dist/UnderlineNav/styles.js +11 -15
- package/dist/VisuallyHidden/VisuallyHidden.js +51 -49
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +5 -5
- package/dist/_VisuallyHidden.js +50 -62
- package/dist/_VisuallyHidden.module.css.js +5 -5
- package/dist/deprecated/ActionList/Divider.js +23 -23
- package/dist/deprecated/ActionList/Divider.module.css.js +5 -5
- package/dist/deprecated/ActionList/Group.js +43 -50
- package/dist/deprecated/ActionList/Header.js +69 -81
- package/dist/deprecated/ActionList/Header.module.css.js +5 -5
- package/dist/deprecated/ActionList/Item.js +308 -352
- package/dist/deprecated/ActionList/Item.module.css.js +18 -5
- package/dist/deprecated/ActionList/List.js +157 -196
- package/dist/deprecated/ActionList/List.module.css.js +5 -5
- package/dist/deprecated/ActionList/index.js +14 -14
- package/dist/deprecated/ActionMenu.js +159 -190
- package/dist/deprecated/DialogV1/Dialog.js +166 -200
- package/dist/deprecated/DialogV1/Dialog.module.css.js +11 -5
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +43 -51
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -5
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +132 -160
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +14 -5
- package/dist/deprecated/index.js +20 -9
- package/dist/experimental/IssueLabel/IssueLabel.js +134 -158
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +5 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +419 -567
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +32 -5
- package/dist/experimental/Tabs/Tabs.js +234 -297
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +165 -215
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +5 -5
- package/dist/experimental/index.js +44 -33
- package/dist/hooks/useAnchoredPosition.d.ts +0 -6
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +123 -130
- package/dist/hooks/useControllableState.js +34 -59
- package/dist/hooks/useDetails.js +84 -99
- package/dist/hooks/useDialog.js +140 -178
- package/dist/hooks/useFocusTrap.js +57 -71
- package/dist/hooks/useFocusZone.js +32 -38
- package/dist/hooks/useId.js +14 -16
- package/dist/hooks/useIsMacOS.js +21 -26
- package/dist/hooks/useMedia.js +54 -68
- package/dist/hooks/useMenuInitialFocus.js +65 -62
- package/dist/hooks/useMenuKeyboardNavigation.js +129 -126
- package/dist/hooks/useMergedRefs.js +63 -78
- package/dist/hooks/useMnemonics.js +77 -107
- package/dist/hooks/useOnEscapePress.js +45 -56
- package/dist/hooks/useOnOutsideClick.js +32 -63
- package/dist/hooks/useOpenAndCloseFocus.js +40 -43
- package/dist/hooks/useOverflow.js +32 -36
- package/dist/hooks/useOverlay.js +56 -75
- package/dist/hooks/useProvidedRefOrCreate.js +24 -24
- package/dist/hooks/useProvidedStateOrCreate.js +33 -39
- package/dist/hooks/useRefObjectAsForwardedRef.js +30 -32
- package/dist/hooks/useRenderForcingRef.js +42 -46
- package/dist/hooks/useResizeObserver.js +32 -43
- package/dist/hooks/useResponsiveValue.js +37 -57
- package/dist/hooks/useSafeTimeout.js +26 -29
- package/dist/hooks/useScrollFlash.js +16 -23
- package/dist/hooks/useSlots.js +102 -136
- package/dist/hooks/useSyncedState.js +31 -37
- package/dist/index.js +88 -85
- package/dist/internal/components/ButtonReset.js +45 -50
- package/dist/internal/components/ButtonReset.module.css.js +5 -5
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +79 -105
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +12 -5
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +16 -21
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +26 -35
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +14 -19
- package/dist/internal/components/ConditionalWrapper.js +41 -51
- package/dist/internal/components/InputLabel.js +92 -113
- package/dist/internal/components/InputLabel.module.css.js +8 -5
- package/dist/internal/components/InputValidation.js +67 -87
- package/dist/internal/components/InputValidation.module.css.js +9 -5
- package/dist/internal/components/TextInputInnerAction.js +134 -173
- package/dist/internal/components/TextInputInnerAction.module.css.js +9 -5
- package/dist/internal/components/TextInputInnerVisualSlot.js +89 -110
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +11 -5
- package/dist/internal/components/TextInputWrapper.js +187 -230
- package/dist/internal/components/TextInputWrapper.module.css.js +8 -5
- package/dist/internal/components/UnderlineTabbedInterface.js +191 -238
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +11 -5
- package/dist/internal/components/UnstyledTextInput.js +40 -47
- package/dist/internal/components/UnstyledTextInput.module.css.js +5 -5
- package/dist/internal/components/ValidationAnimationContainer.js +55 -66
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +8 -5
- package/dist/internal/hooks/useEffectCallback.js +35 -38
- package/dist/internal/hooks/useEffectOnce.js +23 -25
- package/dist/internal/utils/getResponsiveAttributes.js +23 -26
- package/dist/internal/utils/hasInteractiveNodes.js +34 -46
- package/dist/legacy-theme/ts/color-schemes.js +4250 -4732
- package/dist/live-region/Announce.js +144 -183
- package/dist/live-region/AriaAlert.js +20 -22
- package/dist/live-region/AriaStatus.js +20 -22
- package/dist/next/index.js +3 -1
- package/dist/test-helpers.js +40 -62
- package/dist/theme.js +83 -47
- package/dist/utils/character-counter.js +45 -63
- package/dist/utils/create-component.js +15 -16
- package/dist/utils/descendant-registry.js +182 -218
- package/dist/utils/environment.js +7 -7
- package/dist/utils/getBreakpointDeclarations.js +9 -10
- package/dist/utils/invariant.js +17 -23
- package/dist/utils/is-slot.js +10 -11
- package/dist/utils/isNumeric.js +3 -3
- package/dist/utils/modern-polymorphic.js +12 -20
- package/dist/utils/scroll.js +8 -11
- package/dist/utils/theme.js +5 -10
- package/dist/utils/useIsomorphicLayoutEffect.js +4 -9
- package/dist/utils/warning.js +14 -21
- package/generated/components.json +9 -9
- package/package.json +5 -10
|
@@ -1,851 +1,607 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { isResponsiveValue } from
|
|
4
|
-
import {
|
|
5
|
-
import { getResponsiveAttributes } from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
// Default state for the `visible` prop when a sub component is only visible on narrow viewport
|
|
1
|
+
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
2
|
+
import { warning } from "../utils/warning.js";
|
|
3
|
+
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
4
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
5
|
+
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
6
|
+
import Heading from "../Heading/Heading.js";
|
|
7
|
+
import Link from "../Link/Link.js";
|
|
8
|
+
import { areAllValuesTheSame, haveRegularAndWideSameValue } from "../utils/getBreakpointDeclarations.js";
|
|
9
|
+
import PageHeader_module_css_default from "./PageHeader.module.css.js";
|
|
10
|
+
import { c } from "react-compiler-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import React, { useEffect } from "react";
|
|
14
|
+
import { ArrowLeftIcon } from "@primer/octicons-react";
|
|
15
|
+
//#region src/PageHeader/PageHeader.tsx
|
|
17
16
|
const hiddenOnRegularAndWide = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
narrow: false,
|
|
18
|
+
regular: true,
|
|
19
|
+
wide: true
|
|
21
20
|
};
|
|
22
|
-
|
|
23
|
-
// Default state for the `visible` prop when a sub component is visible on regular and wide viewport
|
|
24
21
|
const hiddenOnNarrow = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
narrow: true,
|
|
23
|
+
regular: false,
|
|
24
|
+
wide: false
|
|
28
25
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
$[5] = t4;
|
|
88
|
-
} else {
|
|
89
|
-
t4 = $[5];
|
|
90
|
-
}
|
|
91
|
-
const t5 = hasBorder ? "true" : undefined;
|
|
92
|
-
let t6;
|
|
93
|
-
if ($[6] !== BaseComponent || $[7] !== ariaLabel || $[8] !== children || $[9] !== role || $[10] !== rootRef || $[11] !== t4 || $[12] !== t5) {
|
|
94
|
-
t6 = /*#__PURE__*/jsx(BaseComponent, {
|
|
95
|
-
ref: rootRef,
|
|
96
|
-
className: t4,
|
|
97
|
-
"data-has-border": t5,
|
|
98
|
-
"aria-label": ariaLabel,
|
|
99
|
-
role: role,
|
|
100
|
-
children: children
|
|
101
|
-
});
|
|
102
|
-
$[6] = BaseComponent;
|
|
103
|
-
$[7] = ariaLabel;
|
|
104
|
-
$[8] = children;
|
|
105
|
-
$[9] = role;
|
|
106
|
-
$[10] = rootRef;
|
|
107
|
-
$[11] = t4;
|
|
108
|
-
$[12] = t5;
|
|
109
|
-
$[13] = t6;
|
|
110
|
-
} else {
|
|
111
|
-
t6 = $[13];
|
|
112
|
-
}
|
|
113
|
-
return t6;
|
|
26
|
+
const Root = /* @__PURE__ */ React.forwardRef((t0, forwardedRef) => {
|
|
27
|
+
const $ = c(14);
|
|
28
|
+
const { children, className, as: t1, "aria-label": ariaLabel, role, hasBorder } = t0;
|
|
29
|
+
const BaseComponent = t1 === void 0 ? "div" : t1;
|
|
30
|
+
const rootRef = useProvidedRefOrCreate(forwardedRef);
|
|
31
|
+
const isInteractive = _temp;
|
|
32
|
+
let t2;
|
|
33
|
+
let t3;
|
|
34
|
+
if ($[0] !== children || $[1] !== rootRef) {
|
|
35
|
+
t2 = function validateInteractiveElementsInTitle() {
|
|
36
|
+
let hasContextArea = false;
|
|
37
|
+
let hasLeadingAction = false;
|
|
38
|
+
if (!rootRef.current || rootRef.current.children.length <= 0) return;
|
|
39
|
+
const titleArea = Array.from(rootRef.current.children).find(_temp2);
|
|
40
|
+
if (!titleArea) return;
|
|
41
|
+
for (const child_0 of React.Children.toArray(children)) {
|
|
42
|
+
if (/* @__PURE__ */ React.isValidElement(child_0) && (child_0.type === ContextArea || isSlot(child_0, ContextArea))) hasContextArea = true;
|
|
43
|
+
if (/* @__PURE__ */ React.isValidElement(child_0) && (child_0.type === LeadingAction || isSlot(child_0, LeadingAction))) hasLeadingAction = true;
|
|
44
|
+
}
|
|
45
|
+
warning(Array.from(titleArea.childNodes).some((child_1) => child_1 instanceof HTMLElement && isInteractive(child_1) || Array.from(child_1.childNodes).some((child_2) => child_2 instanceof HTMLElement && isInteractive(child_2))) && (hasContextArea || hasLeadingAction), "When PageHeader.ContextArea or PageHeader.LeadingAction is present, we recommended not to include any interactive items in the PageHeader.TitleArea to make sure the focus order is logical.");
|
|
46
|
+
};
|
|
47
|
+
t3 = [children, rootRef];
|
|
48
|
+
$[0] = children;
|
|
49
|
+
$[1] = rootRef;
|
|
50
|
+
$[2] = t2;
|
|
51
|
+
$[3] = t3;
|
|
52
|
+
} else {
|
|
53
|
+
t2 = $[2];
|
|
54
|
+
t3 = $[3];
|
|
55
|
+
}
|
|
56
|
+
useEffect(t2, t3);
|
|
57
|
+
let t4;
|
|
58
|
+
if ($[4] !== className) {
|
|
59
|
+
t4 = clsx(PageHeader_module_css_default.PageHeader, className);
|
|
60
|
+
$[4] = className;
|
|
61
|
+
$[5] = t4;
|
|
62
|
+
} else t4 = $[5];
|
|
63
|
+
const t5 = hasBorder ? "true" : void 0;
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[6] !== BaseComponent || $[7] !== ariaLabel || $[8] !== children || $[9] !== role || $[10] !== rootRef || $[11] !== t4 || $[12] !== t5) {
|
|
66
|
+
t6 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
67
|
+
ref: rootRef,
|
|
68
|
+
className: t4,
|
|
69
|
+
"data-has-border": t5,
|
|
70
|
+
"aria-label": ariaLabel,
|
|
71
|
+
role,
|
|
72
|
+
children
|
|
73
|
+
});
|
|
74
|
+
$[6] = BaseComponent;
|
|
75
|
+
$[7] = ariaLabel;
|
|
76
|
+
$[8] = children;
|
|
77
|
+
$[9] = role;
|
|
78
|
+
$[10] = rootRef;
|
|
79
|
+
$[11] = t4;
|
|
80
|
+
$[12] = t5;
|
|
81
|
+
$[13] = t6;
|
|
82
|
+
} else t6 = $[13];
|
|
83
|
+
return t6;
|
|
114
84
|
});
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
let t4;
|
|
145
|
-
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
146
|
-
t4 = /*#__PURE__*/jsx("div", {
|
|
147
|
-
className: t2,
|
|
148
|
-
...t3,
|
|
149
|
-
children: children
|
|
150
|
-
});
|
|
151
|
-
$[4] = children;
|
|
152
|
-
$[5] = t2;
|
|
153
|
-
$[6] = t3;
|
|
154
|
-
$[7] = t4;
|
|
155
|
-
} else {
|
|
156
|
-
t4 = $[7];
|
|
157
|
-
}
|
|
158
|
-
return t4;
|
|
85
|
+
const ContextArea = (t0) => {
|
|
86
|
+
const $ = c(8);
|
|
87
|
+
const { children, className, hidden: t1 } = t0;
|
|
88
|
+
const hidden = t1 === void 0 ? hiddenOnRegularAndWide : t1;
|
|
89
|
+
let t2;
|
|
90
|
+
if ($[0] !== className) {
|
|
91
|
+
t2 = clsx(PageHeader_module_css_default.ContextArea, className);
|
|
92
|
+
$[0] = className;
|
|
93
|
+
$[1] = t2;
|
|
94
|
+
} else t2 = $[1];
|
|
95
|
+
let t3;
|
|
96
|
+
if ($[2] !== hidden) {
|
|
97
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
98
|
+
$[2] = hidden;
|
|
99
|
+
$[3] = t3;
|
|
100
|
+
} else t3 = $[3];
|
|
101
|
+
let t4;
|
|
102
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
103
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
104
|
+
className: t2,
|
|
105
|
+
...t3,
|
|
106
|
+
children
|
|
107
|
+
});
|
|
108
|
+
$[4] = children;
|
|
109
|
+
$[5] = t2;
|
|
110
|
+
$[6] = t3;
|
|
111
|
+
$[7] = t4;
|
|
112
|
+
} else t4 = $[7];
|
|
113
|
+
return t4;
|
|
159
114
|
};
|
|
160
|
-
ContextArea.__SLOT__ = Symbol(
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
ref: ref,
|
|
212
|
-
as: as,
|
|
213
|
-
"aria-label": ariaLabel,
|
|
214
|
-
muted: true,
|
|
215
|
-
className: t3,
|
|
216
|
-
...t4,
|
|
217
|
-
href: href,
|
|
218
|
-
children: [t5, t6]
|
|
219
|
-
})
|
|
220
|
-
});
|
|
221
|
-
$[7] = ariaLabel;
|
|
222
|
-
$[8] = as;
|
|
223
|
-
$[9] = href;
|
|
224
|
-
$[10] = ref;
|
|
225
|
-
$[11] = t3;
|
|
226
|
-
$[12] = t4;
|
|
227
|
-
$[13] = t6;
|
|
228
|
-
$[14] = t7;
|
|
229
|
-
} else {
|
|
230
|
-
t7 = $[14];
|
|
231
|
-
}
|
|
232
|
-
return t7;
|
|
115
|
+
ContextArea.__SLOT__ = Symbol("PageHeader.ContextArea");
|
|
116
|
+
const ParentLink = /* @__PURE__ */ React.forwardRef((t0, ref) => {
|
|
117
|
+
const $ = c(15);
|
|
118
|
+
const { children, className, href, "aria-label": ariaLabel, as: t1, hidden: t2 } = t0;
|
|
119
|
+
const as = t1 === void 0 ? "a" : t1;
|
|
120
|
+
const hidden = t2 === void 0 ? hiddenOnRegularAndWide : t2;
|
|
121
|
+
let t3;
|
|
122
|
+
if ($[0] !== className) {
|
|
123
|
+
t3 = clsx(PageHeader_module_css_default.ParentLink, className);
|
|
124
|
+
$[0] = className;
|
|
125
|
+
$[1] = t3;
|
|
126
|
+
} else t3 = $[1];
|
|
127
|
+
let t4;
|
|
128
|
+
if ($[2] !== hidden) {
|
|
129
|
+
t4 = getHiddenDataAttributes(hidden);
|
|
130
|
+
$[2] = hidden;
|
|
131
|
+
$[3] = t4;
|
|
132
|
+
} else t4 = $[3];
|
|
133
|
+
let t5;
|
|
134
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
135
|
+
t5 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
136
|
+
$[4] = t5;
|
|
137
|
+
} else t5 = $[4];
|
|
138
|
+
let t6;
|
|
139
|
+
if ($[5] !== children) {
|
|
140
|
+
t6 = /* @__PURE__ */ jsx("div", { children });
|
|
141
|
+
$[5] = children;
|
|
142
|
+
$[6] = t6;
|
|
143
|
+
} else t6 = $[6];
|
|
144
|
+
let t7;
|
|
145
|
+
if ($[7] !== ariaLabel || $[8] !== as || $[9] !== href || $[10] !== ref || $[11] !== t3 || $[12] !== t4 || $[13] !== t6) {
|
|
146
|
+
t7 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Link, {
|
|
147
|
+
ref,
|
|
148
|
+
as,
|
|
149
|
+
"aria-label": ariaLabel,
|
|
150
|
+
muted: true,
|
|
151
|
+
className: t3,
|
|
152
|
+
...t4,
|
|
153
|
+
href,
|
|
154
|
+
children: [t5, t6]
|
|
155
|
+
}) });
|
|
156
|
+
$[7] = ariaLabel;
|
|
157
|
+
$[8] = as;
|
|
158
|
+
$[9] = href;
|
|
159
|
+
$[10] = ref;
|
|
160
|
+
$[11] = t3;
|
|
161
|
+
$[12] = t4;
|
|
162
|
+
$[13] = t6;
|
|
163
|
+
$[14] = t7;
|
|
164
|
+
} else t7 = $[14];
|
|
165
|
+
return t7;
|
|
233
166
|
});
|
|
234
|
-
ParentLink.displayName =
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
let t4;
|
|
265
|
-
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
266
|
-
t4 = /*#__PURE__*/jsx("div", {
|
|
267
|
-
className: t2,
|
|
268
|
-
...t3,
|
|
269
|
-
children: children
|
|
270
|
-
});
|
|
271
|
-
$[4] = children;
|
|
272
|
-
$[5] = t2;
|
|
273
|
-
$[6] = t3;
|
|
274
|
-
$[7] = t4;
|
|
275
|
-
} else {
|
|
276
|
-
t4 = $[7];
|
|
277
|
-
}
|
|
278
|
-
return t4;
|
|
167
|
+
ParentLink.displayName = "ParentLink";
|
|
168
|
+
const ContextBar = (t0) => {
|
|
169
|
+
const $ = c(8);
|
|
170
|
+
const { children, className, hidden: t1 } = t0;
|
|
171
|
+
const hidden = t1 === void 0 ? hiddenOnRegularAndWide : t1;
|
|
172
|
+
let t2;
|
|
173
|
+
if ($[0] !== className) {
|
|
174
|
+
t2 = clsx(PageHeader_module_css_default.ContextBar, className);
|
|
175
|
+
$[0] = className;
|
|
176
|
+
$[1] = t2;
|
|
177
|
+
} else t2 = $[1];
|
|
178
|
+
let t3;
|
|
179
|
+
if ($[2] !== hidden) {
|
|
180
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
181
|
+
$[2] = hidden;
|
|
182
|
+
$[3] = t3;
|
|
183
|
+
} else t3 = $[3];
|
|
184
|
+
let t4;
|
|
185
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
186
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
187
|
+
className: t2,
|
|
188
|
+
...t3,
|
|
189
|
+
children
|
|
190
|
+
});
|
|
191
|
+
$[4] = children;
|
|
192
|
+
$[5] = t2;
|
|
193
|
+
$[6] = t3;
|
|
194
|
+
$[7] = t4;
|
|
195
|
+
} else t4 = $[7];
|
|
196
|
+
return t4;
|
|
279
197
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
t4 = /*#__PURE__*/jsx("div", {
|
|
310
|
-
className: t2,
|
|
311
|
-
...t3,
|
|
312
|
-
children: children
|
|
313
|
-
});
|
|
314
|
-
$[4] = children;
|
|
315
|
-
$[5] = t2;
|
|
316
|
-
$[6] = t3;
|
|
317
|
-
$[7] = t4;
|
|
318
|
-
} else {
|
|
319
|
-
t4 = $[7];
|
|
320
|
-
}
|
|
321
|
-
return t4;
|
|
198
|
+
const ContextAreaActions = (t0) => {
|
|
199
|
+
const $ = c(8);
|
|
200
|
+
const { children, className, hidden: t1 } = t0;
|
|
201
|
+
const hidden = t1 === void 0 ? hiddenOnRegularAndWide : t1;
|
|
202
|
+
let t2;
|
|
203
|
+
if ($[0] !== className) {
|
|
204
|
+
t2 = clsx(PageHeader_module_css_default.ContextAreaActions, className);
|
|
205
|
+
$[0] = className;
|
|
206
|
+
$[1] = t2;
|
|
207
|
+
} else t2 = $[1];
|
|
208
|
+
let t3;
|
|
209
|
+
if ($[2] !== hidden) {
|
|
210
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
211
|
+
$[2] = hidden;
|
|
212
|
+
$[3] = t3;
|
|
213
|
+
} else t3 = $[3];
|
|
214
|
+
let t4;
|
|
215
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
216
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
217
|
+
className: t2,
|
|
218
|
+
...t3,
|
|
219
|
+
children
|
|
220
|
+
});
|
|
221
|
+
$[4] = children;
|
|
222
|
+
$[5] = t2;
|
|
223
|
+
$[6] = t3;
|
|
224
|
+
$[7] = t4;
|
|
225
|
+
} else t4 = $[7];
|
|
226
|
+
return t4;
|
|
322
227
|
};
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
className: t3,
|
|
366
|
-
ref: titleAreaRef,
|
|
367
|
-
"data-component": "TitleArea",
|
|
368
|
-
...t4,
|
|
369
|
-
...t5,
|
|
370
|
-
children: children
|
|
371
|
-
});
|
|
372
|
-
$[6] = children;
|
|
373
|
-
$[7] = t3;
|
|
374
|
-
$[8] = t4;
|
|
375
|
-
$[9] = t5;
|
|
376
|
-
$[10] = titleAreaRef;
|
|
377
|
-
$[11] = t6;
|
|
378
|
-
} else {
|
|
379
|
-
t6 = $[11];
|
|
380
|
-
}
|
|
381
|
-
return t6;
|
|
228
|
+
const TitleArea = /* @__PURE__ */ React.forwardRef((t0, forwardedRef) => {
|
|
229
|
+
const $ = c(12);
|
|
230
|
+
const { children, className, hidden: t1, variant: t2 } = t0;
|
|
231
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
232
|
+
const variant = t2 === void 0 ? "medium" : t2;
|
|
233
|
+
const titleAreaRef = useProvidedRefOrCreate(forwardedRef);
|
|
234
|
+
let t3;
|
|
235
|
+
if ($[0] !== className) {
|
|
236
|
+
t3 = clsx(PageHeader_module_css_default.TitleArea, className);
|
|
237
|
+
$[0] = className;
|
|
238
|
+
$[1] = t3;
|
|
239
|
+
} else t3 = $[1];
|
|
240
|
+
let t4;
|
|
241
|
+
if ($[2] !== variant) {
|
|
242
|
+
t4 = getResponsiveAttributes("size-variant", variant);
|
|
243
|
+
$[2] = variant;
|
|
244
|
+
$[3] = t4;
|
|
245
|
+
} else t4 = $[3];
|
|
246
|
+
let t5;
|
|
247
|
+
if ($[4] !== hidden) {
|
|
248
|
+
t5 = getHiddenDataAttributes(hidden);
|
|
249
|
+
$[4] = hidden;
|
|
250
|
+
$[5] = t5;
|
|
251
|
+
} else t5 = $[5];
|
|
252
|
+
let t6;
|
|
253
|
+
if ($[6] !== children || $[7] !== t3 || $[8] !== t4 || $[9] !== t5 || $[10] !== titleAreaRef) {
|
|
254
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
255
|
+
className: t3,
|
|
256
|
+
ref: titleAreaRef,
|
|
257
|
+
"data-component": "TitleArea",
|
|
258
|
+
...t4,
|
|
259
|
+
...t5,
|
|
260
|
+
children
|
|
261
|
+
});
|
|
262
|
+
$[6] = children;
|
|
263
|
+
$[7] = t3;
|
|
264
|
+
$[8] = t4;
|
|
265
|
+
$[9] = t5;
|
|
266
|
+
$[10] = titleAreaRef;
|
|
267
|
+
$[11] = t6;
|
|
268
|
+
} else t6 = $[11];
|
|
269
|
+
return t6;
|
|
382
270
|
});
|
|
383
|
-
TitleArea.displayName =
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
className: t2,
|
|
415
|
-
"data-component": "PH_LeadingAction",
|
|
416
|
-
...t3,
|
|
417
|
-
children: children
|
|
418
|
-
});
|
|
419
|
-
$[4] = children;
|
|
420
|
-
$[5] = t2;
|
|
421
|
-
$[6] = t3;
|
|
422
|
-
$[7] = t4;
|
|
423
|
-
} else {
|
|
424
|
-
t4 = $[7];
|
|
425
|
-
}
|
|
426
|
-
return t4;
|
|
271
|
+
TitleArea.displayName = "TitleArea";
|
|
272
|
+
const LeadingAction = (t0) => {
|
|
273
|
+
const $ = c(8);
|
|
274
|
+
const { children, className, hidden: t1 } = t0;
|
|
275
|
+
const hidden = t1 === void 0 ? hiddenOnNarrow : t1;
|
|
276
|
+
let t2;
|
|
277
|
+
if ($[0] !== className) {
|
|
278
|
+
t2 = clsx(PageHeader_module_css_default.LeadingAction, className);
|
|
279
|
+
$[0] = className;
|
|
280
|
+
$[1] = t2;
|
|
281
|
+
} else t2 = $[1];
|
|
282
|
+
let t3;
|
|
283
|
+
if ($[2] !== hidden) {
|
|
284
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
285
|
+
$[2] = hidden;
|
|
286
|
+
$[3] = t3;
|
|
287
|
+
} else t3 = $[3];
|
|
288
|
+
let t4;
|
|
289
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
290
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
291
|
+
className: t2,
|
|
292
|
+
"data-component": "PH_LeadingAction",
|
|
293
|
+
...t3,
|
|
294
|
+
children
|
|
295
|
+
});
|
|
296
|
+
$[4] = children;
|
|
297
|
+
$[5] = t2;
|
|
298
|
+
$[6] = t3;
|
|
299
|
+
$[7] = t4;
|
|
300
|
+
} else t4 = $[7];
|
|
301
|
+
return t4;
|
|
427
302
|
};
|
|
428
|
-
LeadingAction.__SLOT__ = Symbol(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
"data-component": "PH_Breadcrumbs",
|
|
460
|
-
...t3,
|
|
461
|
-
children: children
|
|
462
|
-
});
|
|
463
|
-
$[4] = children;
|
|
464
|
-
$[5] = t2;
|
|
465
|
-
$[6] = t3;
|
|
466
|
-
$[7] = t4;
|
|
467
|
-
} else {
|
|
468
|
-
t4 = $[7];
|
|
469
|
-
}
|
|
470
|
-
return t4;
|
|
303
|
+
LeadingAction.__SLOT__ = Symbol("PageHeader.LeadingAction");
|
|
304
|
+
const Breadcrumbs = (t0) => {
|
|
305
|
+
const $ = c(8);
|
|
306
|
+
const { children, className, hidden: t1 } = t0;
|
|
307
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
308
|
+
let t2;
|
|
309
|
+
if ($[0] !== className) {
|
|
310
|
+
t2 = clsx(PageHeader_module_css_default.Breadcrumbs, className);
|
|
311
|
+
$[0] = className;
|
|
312
|
+
$[1] = t2;
|
|
313
|
+
} else t2 = $[1];
|
|
314
|
+
let t3;
|
|
315
|
+
if ($[2] !== hidden) {
|
|
316
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
317
|
+
$[2] = hidden;
|
|
318
|
+
$[3] = t3;
|
|
319
|
+
} else t3 = $[3];
|
|
320
|
+
let t4;
|
|
321
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
322
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
323
|
+
className: t2,
|
|
324
|
+
"data-component": "PH_Breadcrumbs",
|
|
325
|
+
...t3,
|
|
326
|
+
children
|
|
327
|
+
});
|
|
328
|
+
$[4] = children;
|
|
329
|
+
$[5] = t2;
|
|
330
|
+
$[6] = t3;
|
|
331
|
+
$[7] = t4;
|
|
332
|
+
} else t4 = $[7];
|
|
333
|
+
return t4;
|
|
471
334
|
};
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
const
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
"data-component": "PH_LeadingVisual",
|
|
503
|
-
...t3,
|
|
504
|
-
children: children
|
|
505
|
-
});
|
|
506
|
-
$[4] = children;
|
|
507
|
-
$[5] = t2;
|
|
508
|
-
$[6] = t3;
|
|
509
|
-
$[7] = t4;
|
|
510
|
-
} else {
|
|
511
|
-
t4 = $[7];
|
|
512
|
-
}
|
|
513
|
-
return t4;
|
|
335
|
+
const LeadingVisual = (t0) => {
|
|
336
|
+
const $ = c(8);
|
|
337
|
+
const { children, className, hidden: t1 } = t0;
|
|
338
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
339
|
+
let t2;
|
|
340
|
+
if ($[0] !== className) {
|
|
341
|
+
t2 = clsx(PageHeader_module_css_default.LeadingVisual, className);
|
|
342
|
+
$[0] = className;
|
|
343
|
+
$[1] = t2;
|
|
344
|
+
} else t2 = $[1];
|
|
345
|
+
let t3;
|
|
346
|
+
if ($[2] !== hidden) {
|
|
347
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
348
|
+
$[2] = hidden;
|
|
349
|
+
$[3] = t3;
|
|
350
|
+
} else t3 = $[3];
|
|
351
|
+
let t4;
|
|
352
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
353
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
354
|
+
className: t2,
|
|
355
|
+
"data-component": "PH_LeadingVisual",
|
|
356
|
+
...t3,
|
|
357
|
+
children
|
|
358
|
+
});
|
|
359
|
+
$[4] = children;
|
|
360
|
+
$[5] = t2;
|
|
361
|
+
$[6] = t3;
|
|
362
|
+
$[7] = t4;
|
|
363
|
+
} else t4 = $[7];
|
|
364
|
+
return t4;
|
|
514
365
|
};
|
|
515
|
-
const Title = t0 => {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
551
|
-
$[4] = as;
|
|
552
|
-
$[5] = children;
|
|
553
|
-
$[6] = hidden;
|
|
554
|
-
$[7] = t3;
|
|
555
|
-
$[8] = t4;
|
|
556
|
-
$[9] = t5;
|
|
557
|
-
} else {
|
|
558
|
-
t5 = $[9];
|
|
559
|
-
}
|
|
560
|
-
return t5;
|
|
366
|
+
const Title = (t0) => {
|
|
367
|
+
const $ = c(10);
|
|
368
|
+
const { children, className, hidden: t1, as: t2 } = t0;
|
|
369
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
370
|
+
const as = t2 === void 0 ? "h2" : t2;
|
|
371
|
+
let t3;
|
|
372
|
+
if ($[0] !== className) {
|
|
373
|
+
t3 = clsx(PageHeader_module_css_default.Title, className);
|
|
374
|
+
$[0] = className;
|
|
375
|
+
$[1] = t3;
|
|
376
|
+
} else t3 = $[1];
|
|
377
|
+
let t4;
|
|
378
|
+
if ($[2] !== hidden) {
|
|
379
|
+
t4 = getHiddenDataAttributes(hidden);
|
|
380
|
+
$[2] = hidden;
|
|
381
|
+
$[3] = t4;
|
|
382
|
+
} else t4 = $[3];
|
|
383
|
+
let t5;
|
|
384
|
+
if ($[4] !== as || $[5] !== children || $[6] !== hidden || $[7] !== t3 || $[8] !== t4) {
|
|
385
|
+
t5 = /* @__PURE__ */ jsx(Heading, {
|
|
386
|
+
className: t3,
|
|
387
|
+
"data-component": "PH_Title",
|
|
388
|
+
"data-hidden": hidden,
|
|
389
|
+
as,
|
|
390
|
+
...t4,
|
|
391
|
+
children
|
|
392
|
+
});
|
|
393
|
+
$[4] = as;
|
|
394
|
+
$[5] = children;
|
|
395
|
+
$[6] = hidden;
|
|
396
|
+
$[7] = t3;
|
|
397
|
+
$[8] = t4;
|
|
398
|
+
$[9] = t5;
|
|
399
|
+
} else t5 = $[9];
|
|
400
|
+
return t5;
|
|
561
401
|
};
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
"data-component": "PH_TrailingVisual",
|
|
593
|
-
...t3,
|
|
594
|
-
children: children
|
|
595
|
-
});
|
|
596
|
-
$[4] = children;
|
|
597
|
-
$[5] = t2;
|
|
598
|
-
$[6] = t3;
|
|
599
|
-
$[7] = t4;
|
|
600
|
-
} else {
|
|
601
|
-
t4 = $[7];
|
|
602
|
-
}
|
|
603
|
-
return t4;
|
|
402
|
+
const TrailingVisual = (t0) => {
|
|
403
|
+
const $ = c(8);
|
|
404
|
+
const { children, className, hidden: t1 } = t0;
|
|
405
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
406
|
+
let t2;
|
|
407
|
+
if ($[0] !== className) {
|
|
408
|
+
t2 = clsx(PageHeader_module_css_default.TrailingVisual, className);
|
|
409
|
+
$[0] = className;
|
|
410
|
+
$[1] = t2;
|
|
411
|
+
} else t2 = $[1];
|
|
412
|
+
let t3;
|
|
413
|
+
if ($[2] !== hidden) {
|
|
414
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
415
|
+
$[2] = hidden;
|
|
416
|
+
$[3] = t3;
|
|
417
|
+
} else t3 = $[3];
|
|
418
|
+
let t4;
|
|
419
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
420
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
421
|
+
className: t2,
|
|
422
|
+
"data-component": "PH_TrailingVisual",
|
|
423
|
+
...t3,
|
|
424
|
+
children
|
|
425
|
+
});
|
|
426
|
+
$[4] = children;
|
|
427
|
+
$[5] = t2;
|
|
428
|
+
$[6] = t3;
|
|
429
|
+
$[7] = t4;
|
|
430
|
+
} else t4 = $[7];
|
|
431
|
+
return t4;
|
|
604
432
|
};
|
|
605
|
-
const TrailingAction = t0 => {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
children: children
|
|
636
|
-
});
|
|
637
|
-
$[4] = children;
|
|
638
|
-
$[5] = t2;
|
|
639
|
-
$[6] = t3;
|
|
640
|
-
$[7] = t4;
|
|
641
|
-
} else {
|
|
642
|
-
t4 = $[7];
|
|
643
|
-
}
|
|
644
|
-
return t4;
|
|
433
|
+
const TrailingAction = (t0) => {
|
|
434
|
+
const $ = c(8);
|
|
435
|
+
const { children, className, hidden: t1 } = t0;
|
|
436
|
+
const hidden = t1 === void 0 ? hiddenOnNarrow : t1;
|
|
437
|
+
let t2;
|
|
438
|
+
if ($[0] !== className) {
|
|
439
|
+
t2 = clsx(PageHeader_module_css_default.TrailingAction, className);
|
|
440
|
+
$[0] = className;
|
|
441
|
+
$[1] = t2;
|
|
442
|
+
} else t2 = $[1];
|
|
443
|
+
let t3;
|
|
444
|
+
if ($[2] !== hidden) {
|
|
445
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
446
|
+
$[2] = hidden;
|
|
447
|
+
$[3] = t3;
|
|
448
|
+
} else t3 = $[3];
|
|
449
|
+
let t4;
|
|
450
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
451
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
452
|
+
className: t2,
|
|
453
|
+
"data-component": "PH_TrailingAction",
|
|
454
|
+
...t3,
|
|
455
|
+
children
|
|
456
|
+
});
|
|
457
|
+
$[4] = children;
|
|
458
|
+
$[5] = t2;
|
|
459
|
+
$[6] = t3;
|
|
460
|
+
$[7] = t4;
|
|
461
|
+
} else t4 = $[7];
|
|
462
|
+
return t4;
|
|
645
463
|
};
|
|
646
|
-
const Actions = t0 => {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
children: children
|
|
677
|
-
});
|
|
678
|
-
$[4] = children;
|
|
679
|
-
$[5] = t2;
|
|
680
|
-
$[6] = t3;
|
|
681
|
-
$[7] = t4;
|
|
682
|
-
} else {
|
|
683
|
-
t4 = $[7];
|
|
684
|
-
}
|
|
685
|
-
return t4;
|
|
464
|
+
const Actions = (t0) => {
|
|
465
|
+
const $ = c(8);
|
|
466
|
+
const { children, className, hidden: t1 } = t0;
|
|
467
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
468
|
+
let t2;
|
|
469
|
+
if ($[0] !== className) {
|
|
470
|
+
t2 = clsx(PageHeader_module_css_default.Actions, className);
|
|
471
|
+
$[0] = className;
|
|
472
|
+
$[1] = t2;
|
|
473
|
+
} else t2 = $[1];
|
|
474
|
+
let t3;
|
|
475
|
+
if ($[2] !== hidden) {
|
|
476
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
477
|
+
$[2] = hidden;
|
|
478
|
+
$[3] = t3;
|
|
479
|
+
} else t3 = $[3];
|
|
480
|
+
let t4;
|
|
481
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
482
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
483
|
+
className: t2,
|
|
484
|
+
"data-component": "PH_Actions",
|
|
485
|
+
...t3,
|
|
486
|
+
children
|
|
487
|
+
});
|
|
488
|
+
$[4] = children;
|
|
489
|
+
$[5] = t2;
|
|
490
|
+
$[6] = t3;
|
|
491
|
+
$[7] = t4;
|
|
492
|
+
} else t4 = $[7];
|
|
493
|
+
return t4;
|
|
686
494
|
};
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
className: t2,
|
|
717
|
-
...t3,
|
|
718
|
-
children: children
|
|
719
|
-
});
|
|
720
|
-
$[4] = children;
|
|
721
|
-
$[5] = t2;
|
|
722
|
-
$[6] = t3;
|
|
723
|
-
$[7] = t4;
|
|
724
|
-
} else {
|
|
725
|
-
t4 = $[7];
|
|
726
|
-
}
|
|
727
|
-
return t4;
|
|
495
|
+
const Description = (t0) => {
|
|
496
|
+
const $ = c(8);
|
|
497
|
+
const { children, className, hidden: t1 } = t0;
|
|
498
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
499
|
+
let t2;
|
|
500
|
+
if ($[0] !== className) {
|
|
501
|
+
t2 = clsx(PageHeader_module_css_default.Description, className);
|
|
502
|
+
$[0] = className;
|
|
503
|
+
$[1] = t2;
|
|
504
|
+
} else t2 = $[1];
|
|
505
|
+
let t3;
|
|
506
|
+
if ($[2] !== hidden) {
|
|
507
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
508
|
+
$[2] = hidden;
|
|
509
|
+
$[3] = t3;
|
|
510
|
+
} else t3 = $[3];
|
|
511
|
+
let t4;
|
|
512
|
+
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
513
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
514
|
+
className: t2,
|
|
515
|
+
...t3,
|
|
516
|
+
children
|
|
517
|
+
});
|
|
518
|
+
$[4] = children;
|
|
519
|
+
$[5] = t2;
|
|
520
|
+
$[6] = t3;
|
|
521
|
+
$[7] = t4;
|
|
522
|
+
} else t4 = $[7];
|
|
523
|
+
return t4;
|
|
728
524
|
};
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
...t6,
|
|
769
|
-
children: children
|
|
770
|
-
});
|
|
771
|
-
$[4] = BaseComponent;
|
|
772
|
-
$[5] = children;
|
|
773
|
-
$[6] = t3;
|
|
774
|
-
$[7] = t4;
|
|
775
|
-
$[8] = t5;
|
|
776
|
-
$[9] = t6;
|
|
777
|
-
$[10] = t7;
|
|
778
|
-
} else {
|
|
779
|
-
t7 = $[10];
|
|
780
|
-
}
|
|
781
|
-
return t7;
|
|
525
|
+
const Navigation = (t0) => {
|
|
526
|
+
const $ = c(11);
|
|
527
|
+
const { children, className, hidden: t1, as: t2, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
|
|
528
|
+
const hidden = t1 === void 0 ? false : t1;
|
|
529
|
+
const BaseComponent = t2 === void 0 ? "div" : t2;
|
|
530
|
+
warning(BaseComponent === "nav" && !ariaLabel && !ariaLabelledBy, "Use `aria-label` or `aria-labelledby` prop to provide an accessible label to the `nav` landmark for assistive technology");
|
|
531
|
+
const t3 = BaseComponent === "nav" ? ariaLabel : void 0;
|
|
532
|
+
const t4 = BaseComponent === "nav" ? ariaLabelledBy : void 0;
|
|
533
|
+
let t5;
|
|
534
|
+
if ($[0] !== className) {
|
|
535
|
+
t5 = clsx(PageHeader_module_css_default.Navigation, className);
|
|
536
|
+
$[0] = className;
|
|
537
|
+
$[1] = t5;
|
|
538
|
+
} else t5 = $[1];
|
|
539
|
+
let t6;
|
|
540
|
+
if ($[2] !== hidden) {
|
|
541
|
+
t6 = getHiddenDataAttributes(hidden);
|
|
542
|
+
$[2] = hidden;
|
|
543
|
+
$[3] = t6;
|
|
544
|
+
} else t6 = $[3];
|
|
545
|
+
let t7;
|
|
546
|
+
if ($[4] !== BaseComponent || $[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5 || $[9] !== t6) {
|
|
547
|
+
t7 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
548
|
+
"aria-label": t3,
|
|
549
|
+
"aria-labelledby": t4,
|
|
550
|
+
className: t5,
|
|
551
|
+
"data-component": "PH_Navigation",
|
|
552
|
+
...t6,
|
|
553
|
+
children
|
|
554
|
+
});
|
|
555
|
+
$[4] = BaseComponent;
|
|
556
|
+
$[5] = children;
|
|
557
|
+
$[6] = t3;
|
|
558
|
+
$[7] = t4;
|
|
559
|
+
$[8] = t5;
|
|
560
|
+
$[9] = t6;
|
|
561
|
+
$[10] = t7;
|
|
562
|
+
} else t7 = $[10];
|
|
563
|
+
return t7;
|
|
782
564
|
};
|
|
783
|
-
|
|
784
|
-
// Based on getBreakpointDeclarations, this function will return the
|
|
785
|
-
// correct data attribute for the given hidden value for CSS modules.
|
|
786
565
|
function getHiddenDataAttributes(isHidden) {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
// if all the values are the same, we can just use one of the value to determine the CSS property's value
|
|
804
|
-
return {
|
|
805
|
-
'data-hidden-all': responsiveValue.narrow || undefined
|
|
806
|
-
};
|
|
807
|
-
// check if regular and wide have the same value, if so we can just return the narrow and regular media queries
|
|
808
|
-
} else if (haveRegularAndWideSameValue(responsiveValue)) {
|
|
809
|
-
return {
|
|
810
|
-
...narrowMediaQuery,
|
|
811
|
-
...regularMediaQuery
|
|
812
|
-
};
|
|
813
|
-
} else {
|
|
814
|
-
return {
|
|
815
|
-
...narrowMediaQuery,
|
|
816
|
-
...regularMediaQuery,
|
|
817
|
-
...wideMediaQuery
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
} else {
|
|
821
|
-
// If the given value is not a responsive value
|
|
822
|
-
return {
|
|
823
|
-
'data-hidden-all': isHidden || undefined
|
|
824
|
-
};
|
|
825
|
-
}
|
|
566
|
+
if (isResponsiveValue(isHidden)) {
|
|
567
|
+
const responsiveValue = isHidden;
|
|
568
|
+
const narrowMediaQuery = "narrow" in responsiveValue ? { "data-hidden-narrow": responsiveValue.narrow || void 0 } : {};
|
|
569
|
+
const regularMediaQuery = "regular" in responsiveValue ? { "data-hidden-regular": responsiveValue.regular || void 0 } : {};
|
|
570
|
+
const wideMediaQuery = "wide" in responsiveValue ? { "data-hidden-wide": responsiveValue.wide || void 0 } : {};
|
|
571
|
+
if (areAllValuesTheSame(responsiveValue)) return { "data-hidden-all": responsiveValue.narrow || void 0 };
|
|
572
|
+
else if (haveRegularAndWideSameValue(responsiveValue)) return {
|
|
573
|
+
...narrowMediaQuery,
|
|
574
|
+
...regularMediaQuery
|
|
575
|
+
};
|
|
576
|
+
else return {
|
|
577
|
+
...narrowMediaQuery,
|
|
578
|
+
...regularMediaQuery,
|
|
579
|
+
...wideMediaQuery
|
|
580
|
+
};
|
|
581
|
+
} else return { "data-hidden-all": isHidden || void 0 };
|
|
826
582
|
}
|
|
827
583
|
const PageHeader = Object.assign(Root, {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
584
|
+
ContextArea,
|
|
585
|
+
ParentLink,
|
|
586
|
+
ContextBar,
|
|
587
|
+
TitleArea,
|
|
588
|
+
ContextAreaActions,
|
|
589
|
+
LeadingAction,
|
|
590
|
+
Breadcrumbs,
|
|
591
|
+
LeadingVisual,
|
|
592
|
+
Title,
|
|
593
|
+
TrailingVisual,
|
|
594
|
+
TrailingAction,
|
|
595
|
+
Actions,
|
|
596
|
+
Description,
|
|
597
|
+
Navigation
|
|
842
598
|
});
|
|
843
|
-
PageHeader.displayName =
|
|
599
|
+
PageHeader.displayName = "PageHeader";
|
|
844
600
|
function _temp(element) {
|
|
845
|
-
|
|
601
|
+
return ["a", "button"].some((selector) => element.matches(selector)) || element.hasAttribute("role") && element.getAttribute("role") === "button" || element.hasAttribute("link") && element.getAttribute("role") === "link" || element.hasAttribute("tabindex");
|
|
846
602
|
}
|
|
847
603
|
function _temp2(child) {
|
|
848
|
-
|
|
604
|
+
return child instanceof HTMLElement && child.getAttribute("data-component") === "TitleArea";
|
|
849
605
|
}
|
|
850
|
-
|
|
606
|
+
//#endregion
|
|
851
607
|
export { PageHeader };
|