@primer/react 38.47.0-rc.fcdf0c9da → 39.0.0-rc.00628b8df
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 +11 -1
- package/dist/ActionBar/ActionBar.d.ts +1 -2
- package/dist/ActionBar/ActionBar.js +8 -9
- package/dist/ActionBar/ActionBar.module.css.js +1 -2
- package/dist/ActionBar/index.d.ts +1 -3
- package/dist/ActionBar/index.js +1 -2
- package/dist/ActionList/ActionList.module.css.js +1 -2
- package/dist/ActionList/ActionListContainerContext.js +1 -2
- package/dist/ActionList/Description.d.ts +1 -2
- package/dist/ActionList/Description.js +2 -3
- package/dist/ActionList/Divider.d.ts +1 -2
- package/dist/ActionList/Divider.js +1 -2
- package/dist/ActionList/Group.d.ts +2 -3
- package/dist/ActionList/Group.js +3 -4
- package/dist/ActionList/Group.module.css.js +1 -2
- package/dist/ActionList/GroupContext.js +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -2
- package/dist/ActionList/Heading.d.ts +1 -2
- package/dist/ActionList/Heading.js +4 -5
- package/dist/ActionList/Heading.module.css.js +1 -2
- package/dist/ActionList/Item.js +11 -12
- package/dist/ActionList/LinkItem.d.ts +1 -2
- package/dist/ActionList/LinkItem.js +3 -4
- package/dist/ActionList/List.js +51 -59
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +8 -9
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -18
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +23 -31
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +49 -64
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +4 -5
- package/dist/DataTable/DataTable.js +3 -4
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +1 -2
- package/dist/DataTable/TableGroup.js +4 -5
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +10 -17
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -4
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +25 -45
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +36 -47
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +28 -27
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +1 -2
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js +3 -4
- package/dist/Popover/Popover.module.css.js +1 -2
- package/dist/Portal/Portal.d.ts +1 -2
- package/dist/Portal/Portal.js +1 -2
- package/dist/Portal/PortalContext.d.ts +1 -2
- package/dist/Portal/PortalContext.js +1 -2
- package/dist/Portal/index.js +1 -2
- package/dist/Portal/portalRoot.d.ts +0 -2
- package/dist/Portal/portalRoot.js +1 -2
- package/dist/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/ProgressBar/ProgressBar.js +1 -2
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -2
- package/dist/ProgressBar/index.d.ts +1 -2
- package/dist/ProgressBar/index.js +1 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.js +1 -2
- package/dist/Radio/Radio.module.css.js +1 -2
- package/dist/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/RadioGroup/RadioGroup.js +4 -5
- package/dist/RadioGroup/RadioGroupContext.js +1 -2
- package/dist/RelativeTime/RelativeTime.d.ts +1 -2
- package/dist/RelativeTime/RelativeTime.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.js +9 -10
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.js +2 -3
- package/dist/SegmentedControl/SegmentedControlActionContext.js +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -3
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -3
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +2 -3
- package/dist/Select/Select.js +1 -2
- package/dist/Select/Select.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanel.d.ts +2 -3
- package/dist/SelectPanel/SelectPanel.js +13 -14
- package/dist/SelectPanel/SelectPanel.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanelMessage.d.ts +1 -2
- package/dist/SelectPanel/SelectPanelMessage.js +1 -2
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +1 -2
- package/dist/SideNav.js +1 -2
- package/dist/SideNav.module.css.js +1 -2
- package/dist/Skeleton/SkeletonBox.d.ts +1 -2
- package/dist/Skeleton/SkeletonBox.js +1 -2
- package/dist/Skeleton/SkeletonBox.module.css.js +1 -2
- package/dist/Skeleton/skeleton.module.css.js +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +1 -2
- package/dist/SkeletonText/SkeletonText.d.ts +1 -2
- package/dist/SkeletonText/SkeletonText.js +2 -3
- package/dist/SkeletonText/SkeletonText.module.css.js +1 -2
- package/dist/Spinner/Spinner.d.ts +1 -2
- package/dist/Spinner/Spinner.js +1 -2
- package/dist/Spinner/Spinner.module.css.js +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -2
- package/dist/Stack/Stack.d.ts +1 -2
- package/dist/Stack/Stack.js +1 -2
- package/dist/Stack/Stack.module.css.js +1 -2
- package/dist/Stack/index.d.ts +2 -3
- package/dist/Stack/index.js +1 -2
- package/dist/StateLabel/StateLabel.d.ts +1 -2
- package/dist/StateLabel/StateLabel.js +1 -2
- package/dist/StateLabel/StateLabel.module.css.js +1 -2
- package/dist/SubNav/SubNav.d.ts +1 -2
- package/dist/SubNav/SubNav.js +1 -2
- package/dist/SubNav/SubNav.module.css.js +1 -2
- package/dist/TabNav/TabNav.d.ts +1 -2
- package/dist/TabNav/TabNav.js +1 -2
- package/dist/TabNav/TabNav.module.css.js +1 -2
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/Text.js +1 -2
- package/dist/Text/Text.module.css.js +1 -2
- package/dist/TextInput/TextInput.d.ts +2 -3
- package/dist/TextInput/TextInput.js +113 -121
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +4 -5
- package/dist/Timeline/Timeline.js +62 -142
- package/dist/Timeline/Timeline.module.css.js +1 -2
- package/dist/Timeline/constants.d.ts +0 -2
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +1 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -4
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -2
- package/dist/Token/IssueLabelToken.d.ts +2 -3
- package/dist/Token/IssueLabelToken.js +2 -3
- package/dist/Token/IssueLabelToken.module.css.js +1 -2
- package/dist/Token/Token.d.ts +2 -3
- package/dist/Token/Token.js +3 -4
- package/dist/Token/Token.module.css.js +1 -2
- package/dist/Token/TokenBase.d.ts +1 -2
- package/dist/Token/TokenBase.js +1 -2
- package/dist/Token/TokenBase.module.css.js +1 -2
- package/dist/Token/_RemoveTokenButton.js +1 -2
- package/dist/Token/_RemoveTokenButton.module.css.js +1 -2
- package/dist/Token/_TokenTextContainer.js +1 -2
- package/dist/Token/_TokenTextContainer.module.css.js +1 -2
- package/dist/Token/constants.d.ts +0 -2
- package/dist/Token/constants.js +1 -2
- package/dist/Token/utils.js +1 -2
- package/dist/Tooltip/Tooltip.d.ts +1 -2
- package/dist/Tooltip/Tooltip.js +2 -3
- package/dist/Tooltip/Tooltip.module.css.js +1 -2
- package/dist/Tooltip/TooltipContext.js +1 -2
- package/dist/TooltipV2/Tooltip.d.ts +2 -3
- package/dist/TooltipV2/Tooltip.js +84 -96
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +12 -12
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +15 -23
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +53 -62
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +3 -4
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +16 -11
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/package.json +6 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AriaRole } from "../utils/types/AriaRole.js";
|
|
2
2
|
import { Merge } from "../utils/types/Merge.js";
|
|
3
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
4
3
|
import { TouchOrMouseEvent } from "../hooks/useOnOutsideClick.js";
|
|
4
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
5
5
|
import { heightMap, widthMap } from "./constants.js";
|
|
6
6
|
import React, { ComponentPropsWithRef } from "react";
|
|
7
7
|
import { AnchorSide } from "@primer/behaviors";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/Overlay/Overlay.d.ts
|
|
10
10
|
type StyledOverlayProps = {
|
|
11
11
|
width?: keyof typeof widthMap;
|
|
12
12
|
height?: keyof typeof heightMap;
|
|
@@ -77,5 +77,4 @@ type internalOverlayProps = Merge<OwnOverlayProps, ContainerProps>;
|
|
|
77
77
|
*/
|
|
78
78
|
declare const Overlay: ForwardRefComponent<"div", internalOverlayProps>;
|
|
79
79
|
type OverlayProps = ComponentPropsWithRef<typeof Overlay>;
|
|
80
|
-
//#endregion
|
|
81
80
|
export { OverlayProps, Overlay as default };
|
package/dist/Overlay/Overlay.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
2
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
3
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
4
4
|
import { useOverlay } from "../hooks/useOverlay.js";
|
|
5
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
6
5
|
import Portal_default from "../Portal/index.js";
|
|
7
6
|
import Overlay_module_css_default from "./Overlay.module.css.js";
|
|
7
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
8
8
|
import React, { useEffect, useRef } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
|
-
|
|
11
|
+
// src/Overlay/Overlay.tsx
|
|
12
12
|
const animationDuration = 200;
|
|
13
13
|
function getSlideAnimationStartingVector(anchorSide) {
|
|
14
14
|
if (anchorSide !== null && anchorSide !== void 0 && anchorSide.endsWith("bottom")) return {
|
|
@@ -369,5 +369,4 @@ const Overlay = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
369
369
|
} else t13 = $[48];
|
|
370
370
|
return t13;
|
|
371
371
|
});
|
|
372
|
-
//#endregion
|
|
373
372
|
export { BaseOverlay, Overlay as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./Overlay-214d10dd.css";
|
|
2
|
-
|
|
2
|
+
// src/Overlay/Overlay.module.css.js
|
|
3
3
|
var Overlay_module_css_default = {
|
|
4
4
|
"Overlay": "prc-Overlay-Overlay-jfs-T",
|
|
5
5
|
"does-not-exist": "prc-Overlay-does-not-exist-pxAm4",
|
|
6
6
|
"overlay-appear": "prc-Overlay-overlay-appear-JpFey"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Overlay_module_css_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AriaRole } from "../utils/types/AriaRole.js";
|
|
2
|
-
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
3
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
4
1
|
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
|
+
import { AriaRole } from "../utils/types/AriaRole.js";
|
|
5
4
|
import { LinkProps as LinkProps$1 } from "../Link/Link.js";
|
|
5
|
+
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
6
6
|
import React from "react";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/PageHeader/PageHeader.d.ts
|
|
9
9
|
type ChildrenPropTypes = {
|
|
10
10
|
className?: string;
|
|
11
11
|
hidden?: boolean | ResponsiveValue<boolean>;
|
|
@@ -53,5 +53,4 @@ declare const PageHeader: ForwardRefComponent<"div", PageHeaderProps> & {
|
|
|
53
53
|
Description: React.FC<React.PropsWithChildren<ChildrenPropTypes>>;
|
|
54
54
|
Navigation: React.FC<React.PropsWithChildren<NavigationProps>>;
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { ActionsProps, ChildrenPropTypes, NavigationProps, PageHeader, PageHeaderProps, ParentLinkProps, TitleAreaProps, TitleProps };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
-
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
4
|
-
import { warning } from "../utils/warning.js";
|
|
5
|
-
import { isSlot } from "../utils/is-slot.js";
|
|
6
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
7
2
|
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
8
|
-
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
9
3
|
import Heading from "../Heading/Heading.js";
|
|
10
4
|
import Link from "../Link/Link.js";
|
|
5
|
+
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
11
6
|
import { areAllValuesTheSame, haveRegularAndWideSameValue } from "../utils/getBreakpointDeclarations.js";
|
|
7
|
+
import { warning } from "../utils/warning.js";
|
|
8
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
12
9
|
import PageHeader_module_css_default from "./PageHeader.module.css.js";
|
|
10
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
13
11
|
import React, { useEffect, useRef } from "react";
|
|
14
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
13
|
import { clsx } from "clsx";
|
|
16
14
|
import { ArrowLeftIcon } from "@primer/octicons-react";
|
|
17
|
-
|
|
15
|
+
// src/PageHeader/PageHeader.tsx
|
|
18
16
|
const hiddenOnRegularAndWide = {
|
|
19
17
|
narrow: false,
|
|
20
18
|
regular: true,
|
|
@@ -26,15 +24,11 @@ const hiddenOnNarrow = {
|
|
|
26
24
|
wide: false
|
|
27
25
|
};
|
|
28
26
|
const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
29
|
-
const $ = c(
|
|
27
|
+
const $ = c(16);
|
|
30
28
|
const { children, className, as: t1, "aria-label": ariaLabel, role, hasBorder } = t0;
|
|
31
29
|
const BaseComponent = t1 === void 0 ? "div" : t1;
|
|
32
|
-
const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
|
|
33
30
|
const rootRef = useRef(null);
|
|
34
31
|
const mergedRef = useMergedRefs(rootRef, forwardedRef);
|
|
35
|
-
const providedOrCreatedRef = useProvidedRefOrCreate(forwardedRef);
|
|
36
|
-
const readRef = mergedRefEnabled ? rootRef : providedOrCreatedRef;
|
|
37
|
-
const appliedRef = mergedRefEnabled ? mergedRef : providedOrCreatedRef;
|
|
38
32
|
const hoistChildState = (nodes) => {
|
|
39
33
|
const result = { hasNavigation: false };
|
|
40
34
|
for (const child of React.Children.toArray(nodes)) {
|
|
@@ -61,12 +55,12 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
61
55
|
const isInteractive = _temp;
|
|
62
56
|
let t2;
|
|
63
57
|
let t3;
|
|
64
|
-
if ($[0] !== children
|
|
58
|
+
if ($[0] !== children) {
|
|
65
59
|
t2 = function validateInteractiveElementsInTitle() {
|
|
66
60
|
let hasContextArea = false;
|
|
67
61
|
let hasLeadingAction = false;
|
|
68
|
-
if (!
|
|
69
|
-
const titleArea = Array.from(
|
|
62
|
+
if (!rootRef.current || rootRef.current.children.length <= 0) return;
|
|
63
|
+
const titleArea = Array.from(rootRef.current.children).find(_temp2);
|
|
70
64
|
if (!titleArea) return;
|
|
71
65
|
for (const child_1 of React.Children.toArray(children)) {
|
|
72
66
|
if (/*#__PURE__*/ React.isValidElement(child_1) && (child_1.type === ContextArea || isSlot(child_1, ContextArea))) hasContextArea = true;
|
|
@@ -75,31 +69,30 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
75
69
|
const hasInteractiveContent = Array.from(titleArea.childNodes).some((child_2) => child_2 instanceof HTMLElement && isInteractive(child_2) || Array.from(child_2.childNodes).some((child_3) => child_3 instanceof HTMLElement && isInteractive(child_3)));
|
|
76
70
|
warning(hasInteractiveContent && (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.");
|
|
77
71
|
};
|
|
78
|
-
t3 = [children
|
|
72
|
+
t3 = [children];
|
|
79
73
|
$[0] = children;
|
|
80
|
-
$[1] =
|
|
81
|
-
$[2] =
|
|
82
|
-
$[3] = t3;
|
|
74
|
+
$[1] = t2;
|
|
75
|
+
$[2] = t3;
|
|
83
76
|
} else {
|
|
84
|
-
t2 = $[
|
|
85
|
-
t3 = $[
|
|
77
|
+
t2 = $[1];
|
|
78
|
+
t3 = $[2];
|
|
86
79
|
}
|
|
87
80
|
useEffect(t2, t3);
|
|
88
81
|
let t4;
|
|
89
|
-
if ($[
|
|
82
|
+
if ($[3] !== className) {
|
|
90
83
|
t4 = clsx(PageHeader_module_css_default.PageHeader, className);
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
} else t4 = $[
|
|
84
|
+
$[3] = className;
|
|
85
|
+
$[4] = t4;
|
|
86
|
+
} else t4 = $[4];
|
|
94
87
|
const t5 = "PageHeader";
|
|
95
88
|
const t6 = hasBorder ? "true" : void 0;
|
|
96
89
|
const t7 = hasNavigation ? "" : void 0;
|
|
97
90
|
const t8 = getResponsiveAttributes("title-size-variant", titleVariant);
|
|
98
91
|
const t9 = getNavHiddenDataAttributes(navigationHidden);
|
|
99
92
|
let t10;
|
|
100
|
-
if ($[
|
|
93
|
+
if ($[5] !== BaseComponent || $[6] !== ariaLabel || $[7] !== children || $[8] !== mergedRef || $[9] !== role || $[10] !== t4 || $[11] !== t6 || $[12] !== t7 || $[13] !== t8 || $[14] !== t9) {
|
|
101
94
|
t10 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
102
|
-
ref:
|
|
95
|
+
ref: mergedRef,
|
|
103
96
|
className: t4,
|
|
104
97
|
"data-component": t5,
|
|
105
98
|
"data-has-border": t6,
|
|
@@ -110,18 +103,18 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
110
103
|
role,
|
|
111
104
|
children
|
|
112
105
|
});
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
} else t10 = $[
|
|
106
|
+
$[5] = BaseComponent;
|
|
107
|
+
$[6] = ariaLabel;
|
|
108
|
+
$[7] = children;
|
|
109
|
+
$[8] = mergedRef;
|
|
110
|
+
$[9] = role;
|
|
111
|
+
$[10] = t4;
|
|
112
|
+
$[11] = t6;
|
|
113
|
+
$[12] = t7;
|
|
114
|
+
$[13] = t8;
|
|
115
|
+
$[14] = t9;
|
|
116
|
+
$[15] = t10;
|
|
117
|
+
} else t10 = $[15];
|
|
125
118
|
return t10;
|
|
126
119
|
});
|
|
127
120
|
const ContextArea = (t0) => {
|
|
@@ -303,9 +296,6 @@ const TitleArea = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
303
296
|
const { children, className, hidden: t1, variant: t2 } = t0;
|
|
304
297
|
const hidden = t1 === void 0 ? false : t1;
|
|
305
298
|
const variant = t2 === void 0 ? "medium" : t2;
|
|
306
|
-
const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
|
|
307
|
-
const providedOrCreatedRef = useProvidedRefOrCreate(forwardedRef);
|
|
308
|
-
const appliedRef = mergedRefEnabled ? forwardedRef : providedOrCreatedRef;
|
|
309
299
|
let t3;
|
|
310
300
|
if ($[0] !== className) {
|
|
311
301
|
t3 = clsx(PageHeader_module_css_default.TitleArea, className);
|
|
@@ -325,17 +315,17 @@ const TitleArea = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
325
315
|
$[5] = t5;
|
|
326
316
|
} else t5 = $[5];
|
|
327
317
|
let t6;
|
|
328
|
-
if ($[6] !==
|
|
318
|
+
if ($[6] !== children || $[7] !== forwardedRef || $[8] !== t3 || $[9] !== t4 || $[10] !== t5) {
|
|
329
319
|
t6 = /* @__PURE__ */ jsx("div", {
|
|
330
320
|
className: t3,
|
|
331
|
-
ref:
|
|
321
|
+
ref: forwardedRef,
|
|
332
322
|
"data-component": "TitleArea",
|
|
333
323
|
...t4,
|
|
334
324
|
...t5,
|
|
335
325
|
children
|
|
336
326
|
});
|
|
337
|
-
$[6] =
|
|
338
|
-
$[7] =
|
|
327
|
+
$[6] = children;
|
|
328
|
+
$[7] = forwardedRef;
|
|
339
329
|
$[8] = t3;
|
|
340
330
|
$[9] = t4;
|
|
341
331
|
$[10] = t5;
|
|
@@ -687,5 +677,4 @@ function _temp(element) {
|
|
|
687
677
|
function _temp2(child_0) {
|
|
688
678
|
return child_0 instanceof HTMLElement && child_0.getAttribute("data-component") === "TitleArea";
|
|
689
679
|
}
|
|
690
|
-
//#endregion
|
|
691
680
|
export { PageHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./PageHeader-b12247c8.css";
|
|
2
|
-
|
|
2
|
+
// src/PageHeader/PageHeader.module.css.js
|
|
3
3
|
var PageHeader_module_css_default = {
|
|
4
4
|
"PageHeader": "prc-PageHeader-PageHeader-YLwBQ",
|
|
5
5
|
"ContextArea": "prc-PageHeader-ContextArea-ueeWv",
|
|
@@ -17,5 +17,4 @@ var PageHeader_module_css_default = {
|
|
|
17
17
|
"Description": "prc-PageHeader-Description-w-ejP",
|
|
18
18
|
"Navigation": "prc-PageHeader-Navigation--uLav"
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { PageHeader_module_css_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/PageLayout/DragHandle.d.ts
|
|
4
4
|
type DragHandleProps = {
|
|
5
5
|
/** Ref for imperative ARIA updates during drag */handleRef: React.RefObject<HTMLDivElement>; /** Called once when drag starts with initial cursor X position */
|
|
6
6
|
onDragStart: (clientX: number) => void; /** Called on each drag tick with cursor position (pointer) or delta (keyboard) */
|
|
@@ -41,5 +41,4 @@ type DragHandleProps = {
|
|
|
41
41
|
* (via the `onDrag` callback); this component only reports interactions.
|
|
42
42
|
*/
|
|
43
43
|
declare const DragHandle: React.NamedExoticComponent<DragHandleProps>;
|
|
44
|
-
//#endregion
|
|
45
44
|
export { DragHandle, DragHandleProps };
|
|
@@ -4,7 +4,7 @@ import { defaultFormatValueText } from "./usePaneWidth.js";
|
|
|
4
4
|
import { removeDraggingStyles, setDraggingStyles } from "./paneUtils.js";
|
|
5
5
|
import React, { memo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/PageLayout/DragHandle.tsx
|
|
8
8
|
const isArrowKey = (key) => key === "ArrowLeft" || key === "ArrowRight" || key === "ArrowUp" || key === "ArrowDown";
|
|
9
9
|
const isShrinkKey = (key) => key === "ArrowLeft" || key === "ArrowDown";
|
|
10
10
|
/**
|
|
@@ -220,5 +220,4 @@ const DragHandle = /*#__PURE__*/ memo(function DragHandle(t0) {
|
|
|
220
220
|
} else t16 = $[40];
|
|
221
221
|
return t16;
|
|
222
222
|
});
|
|
223
|
-
//#endregion
|
|
224
223
|
export { DragHandle };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FCWithSlotMarker, WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
1
|
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
2
|
+
import { FCWithSlotMarker, WithSlotMarker } from "../utils/types/Slots.js";
|
|
3
3
|
import { CustomWidthOptions, PaneWidth, PaneWidthValue } from "./usePaneWidth.js";
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/PageLayout/PageLayout.d.ts
|
|
7
7
|
declare const SPACING_MAP: {
|
|
8
8
|
none: number;
|
|
9
9
|
condensed: number;
|
|
@@ -289,5 +289,4 @@ declare const PageLayout: React.FC<React.PropsWithChildren<PageLayoutProps>> & {
|
|
|
289
289
|
Sidebar: WithSlotMarker<typeof Sidebar>;
|
|
290
290
|
Footer: FCWithSlotMarker<React.PropsWithChildren<PageLayoutFooterProps>>;
|
|
291
291
|
};
|
|
292
|
-
//#endregion
|
|
293
292
|
export { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
3
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
4
|
-
import { warning } from "../utils/warning.js";
|
|
5
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
6
4
|
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
5
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
7
6
|
import { useOverflow } from "../hooks/useOverflow.js";
|
|
7
|
+
import { warning } from "../utils/warning.js";
|
|
8
8
|
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
9
9
|
import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
10
10
|
import { isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth } from "./usePaneWidth.js";
|
|
@@ -12,7 +12,7 @@ import { DragHandle } from "./DragHandle.js";
|
|
|
12
12
|
import React, { memo, useRef } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { clsx } from "clsx";
|
|
15
|
-
|
|
15
|
+
// src/PageLayout/PageLayout.tsx
|
|
16
16
|
const PageLayoutContext = /*#__PURE__*/ React.createContext({
|
|
17
17
|
padding: "normal",
|
|
18
18
|
rowGap: "normal",
|
|
@@ -1275,5 +1275,4 @@ Content.__SLOT__ = Symbol("PageLayout.Content");
|
|
|
1275
1275
|
Pane.__SLOT__ = Symbol("PageLayout.Pane");
|
|
1276
1276
|
Sidebar.__SLOT__ = Symbol("PageLayout.Sidebar");
|
|
1277
1277
|
Footer.__SLOT__ = Symbol("PageLayout.Footer");
|
|
1278
|
-
//#endregion
|
|
1279
1278
|
export { PageLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./PageLayout-3444a142.css";
|
|
2
|
-
|
|
2
|
+
// src/PageLayout/PageLayout.module.css.js
|
|
3
3
|
var PageLayout_module_css_default = {
|
|
4
4
|
"paneMaxWidthDiffBreakpoint": "1280",
|
|
5
5
|
"paneMaxWidthDiffDefault": "511",
|
|
@@ -27,5 +27,4 @@ var PageLayout_module_css_default = {
|
|
|
27
27
|
"Sidebar": "prc-PageLayout-Sidebar-iciWg",
|
|
28
28
|
"SidebarVerticalDivider": "prc-PageLayout-SidebarVerticalDivider-0Rl0V"
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { PageLayout_module_css_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./usePaneWidth.js";
|
|
2
1
|
import { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps } from "./PageLayout.js";
|
|
2
|
+
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./usePaneWidth.js";
|
|
3
3
|
import { DragHandle, DragHandleProps } from "./DragHandle.js";
|
|
4
4
|
export { type CustomWidthOptions, DragHandle, type DragHandleProps, PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps, type PaneWidth, type PaneWidthValue, type UsePaneWidthOptions, type UsePaneWidthResult, defaultPaneWidth, usePaneWidth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/PageLayout/paneUtils.ts
|
|
2
2
|
const DATA_DRAGGING_ATTR = "data-dragging";
|
|
3
3
|
/** Apply visual feedback and performance optimizations during drag */
|
|
4
4
|
function setDraggingStyles({ handle, pane, contentWrapper }) {
|
|
@@ -16,5 +16,4 @@ function removeDraggingStyles({ handle, pane, contentWrapper }) {
|
|
|
16
16
|
pane === null || pane === void 0 || pane.removeAttribute(DATA_DRAGGING_ATTR);
|
|
17
17
|
contentWrapper === null || contentWrapper === void 0 || contentWrapper.removeAttribute(DATA_DRAGGING_ATTR);
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { removeDraggingStyles, setDraggingStyles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/PageLayout/usePaneWidth.d.ts
|
|
4
4
|
type Measurement = `${number}px`;
|
|
5
5
|
type CustomWidthOptions = {
|
|
6
6
|
min: Measurement;
|
|
@@ -76,5 +76,4 @@ declare function usePaneWidth({
|
|
|
76
76
|
currentWidth: controlledWidth,
|
|
77
77
|
formatValueText
|
|
78
78
|
}: UsePaneWidthOptions): UsePaneWidthResult;
|
|
79
|
-
//#endregion
|
|
80
79
|
export { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth };
|
|
@@ -3,7 +3,7 @@ import { canUseDOM } from "../utils/environment.js";
|
|
|
3
3
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
4
4
|
import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
5
5
|
import React, { startTransition } from "react";
|
|
6
|
-
|
|
6
|
+
// src/PageLayout/usePaneWidth.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default value for --pane-max-width-diff CSS variable.
|
|
9
9
|
* Imported from CSS to ensure JS fallback matches the CSS default.
|
|
@@ -235,12 +235,12 @@ function usePaneWidth(t0) {
|
|
|
235
235
|
t13 = () => {
|
|
236
236
|
var _paneRef$current3;
|
|
237
237
|
if (!resizable) return;
|
|
238
|
-
|
|
238
|
+
const viewportState = { lastWidth: window.innerWidth };
|
|
239
239
|
const syncAll = () => {
|
|
240
240
|
var _paneRef$current;
|
|
241
241
|
const currentViewportWidth = window.innerWidth;
|
|
242
|
-
const crossedBreakpoint =
|
|
243
|
-
|
|
242
|
+
const crossedBreakpoint = viewportState.lastWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT || viewportState.lastWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT;
|
|
243
|
+
viewportState.lastWidth = currentViewportWidth;
|
|
244
244
|
if (crossedBreakpoint) maxWidthDiffRef.current = getMaxWidthDiffFromViewport();
|
|
245
245
|
const actualMax = getMaxPaneWidthRef.current();
|
|
246
246
|
(_paneRef$current = paneRef.current) === null || _paneRef$current === void 0 || _paneRef$current.style.setProperty("--pane-max-width", `${actualMax}px`);
|
|
@@ -275,50 +275,52 @@ function usePaneWidth(t0) {
|
|
|
275
275
|
setMaxPaneWidth(initialMax);
|
|
276
276
|
});
|
|
277
277
|
if (customMaxWidth !== null && !constrainToViewport) return;
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
278
|
+
const resizeState = {
|
|
279
|
+
lastUpdateTime: 0,
|
|
280
|
+
pendingUpdate: false,
|
|
281
|
+
rafId: null,
|
|
282
|
+
debounceId: null,
|
|
283
|
+
isResizing: false
|
|
284
|
+
};
|
|
283
285
|
const startResizeOptimizations = () => {
|
|
284
286
|
var _paneRef$current4, _contentWrapperRef$cu;
|
|
285
|
-
if (isResizing) return;
|
|
286
|
-
isResizing = true;
|
|
287
|
+
if (resizeState.isResizing) return;
|
|
288
|
+
resizeState.isResizing = true;
|
|
287
289
|
(_paneRef$current4 = paneRef.current) === null || _paneRef$current4 === void 0 || _paneRef$current4.setAttribute("data-dragging", "true");
|
|
288
290
|
contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu = contentWrapperRef.current) === null || _contentWrapperRef$cu === void 0 || _contentWrapperRef$cu.setAttribute("data-dragging", "true");
|
|
289
291
|
};
|
|
290
292
|
const endResizeOptimizations = () => {
|
|
291
293
|
var _paneRef$current5, _contentWrapperRef$cu2;
|
|
292
|
-
if (!isResizing) return;
|
|
293
|
-
isResizing = false;
|
|
294
|
+
if (!resizeState.isResizing) return;
|
|
295
|
+
resizeState.isResizing = false;
|
|
294
296
|
(_paneRef$current5 = paneRef.current) === null || _paneRef$current5 === void 0 || _paneRef$current5.removeAttribute("data-dragging");
|
|
295
297
|
contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu2 = contentWrapperRef.current) === null || _contentWrapperRef$cu2 === void 0 || _contentWrapperRef$cu2.removeAttribute("data-dragging");
|
|
296
298
|
};
|
|
297
299
|
const handleResize = () => {
|
|
298
300
|
startResizeOptimizations();
|
|
299
301
|
const now = Date.now();
|
|
300
|
-
if (now - lastUpdateTime >= 16) {
|
|
301
|
-
lastUpdateTime = now;
|
|
302
|
+
if (now - resizeState.lastUpdateTime >= 16) {
|
|
303
|
+
resizeState.lastUpdateTime = now;
|
|
302
304
|
syncAll();
|
|
303
|
-
} else if (!pendingUpdate) {
|
|
304
|
-
pendingUpdate = true;
|
|
305
|
-
rafId = requestAnimationFrame(() => {
|
|
306
|
-
pendingUpdate = false;
|
|
307
|
-
rafId = null;
|
|
308
|
-
lastUpdateTime = Date.now();
|
|
305
|
+
} else if (!resizeState.pendingUpdate) {
|
|
306
|
+
resizeState.pendingUpdate = true;
|
|
307
|
+
resizeState.rafId = requestAnimationFrame(() => {
|
|
308
|
+
resizeState.pendingUpdate = false;
|
|
309
|
+
resizeState.rafId = null;
|
|
310
|
+
resizeState.lastUpdateTime = Date.now();
|
|
309
311
|
syncAll();
|
|
310
312
|
});
|
|
311
313
|
}
|
|
312
|
-
if (debounceId !== null) clearTimeout(debounceId);
|
|
313
|
-
debounceId = setTimeout(() => {
|
|
314
|
-
debounceId = null;
|
|
314
|
+
if (resizeState.debounceId !== null) clearTimeout(resizeState.debounceId);
|
|
315
|
+
resizeState.debounceId = setTimeout(() => {
|
|
316
|
+
resizeState.debounceId = null;
|
|
315
317
|
endResizeOptimizations();
|
|
316
318
|
}, 150);
|
|
317
319
|
};
|
|
318
320
|
window.addEventListener("resize", handleResize);
|
|
319
321
|
return () => {
|
|
320
|
-
if (rafId !== null) cancelAnimationFrame(rafId);
|
|
321
|
-
if (debounceId !== null) clearTimeout(debounceId);
|
|
322
|
+
if (resizeState.rafId !== null) cancelAnimationFrame(resizeState.rafId);
|
|
323
|
+
if (resizeState.debounceId !== null) clearTimeout(resizeState.debounceId);
|
|
322
324
|
endResizeOptimizations();
|
|
323
325
|
window.removeEventListener("resize", handleResize);
|
|
324
326
|
};
|
|
@@ -367,5 +369,4 @@ function usePaneWidth(t0) {
|
|
|
367
369
|
} else t15 = $[43];
|
|
368
370
|
return t15;
|
|
369
371
|
}
|
|
370
|
-
//#endregion
|
|
371
372
|
export { DEFAULT_MAX_WIDTH_DIFF, DEFAULT_SIDEBAR_MAX_WIDTH_DIFF, defaultFormatValueText, defaultPaneWidth, getDefaultPaneWidth, getMaxWidthDiffFromViewport, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/Pagehead/Pagehead.d.ts
|
|
4
4
|
declare const Pagehead: ({
|
|
5
5
|
as: BaseComponent,
|
|
6
6
|
className,
|
|
@@ -12,5 +12,4 @@ declare const Pagehead: ({
|
|
|
12
12
|
type PageheadProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
13
13
|
as?: React.ElementType;
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { PageheadProps, Pagehead as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import Pagehead_module_css_default from "./Pagehead.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/Pagehead/Pagehead.tsx
|
|
6
6
|
const Pagehead = (t0) => {
|
|
7
7
|
const $ = c(10);
|
|
8
8
|
let className;
|
|
@@ -40,5 +40,4 @@ const Pagehead = (t0) => {
|
|
|
40
40
|
} else t3 = $[9];
|
|
41
41
|
return t3;
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Pagehead as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./Pagehead-0744ffce.css";
|
|
2
|
-
|
|
2
|
+
// src/Pagehead/Pagehead.module.css.js
|
|
3
3
|
var Pagehead_module_css_default = { "Pagehead": "prc-Pagehead-Pagehead-DKxNa" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Pagehead_module_css_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
2
1
|
import { PageDataProps } from "./model.js";
|
|
2
|
+
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/Pagination/Pagination.d.ts
|
|
6
6
|
type PageProps = {
|
|
7
7
|
key: string;
|
|
8
8
|
children: React.ReactNode;
|
|
@@ -33,5 +33,4 @@ declare function Pagination({
|
|
|
33
33
|
renderPage,
|
|
34
34
|
...rest
|
|
35
35
|
}: PaginationProps): React.JSX.Element;
|
|
36
|
-
//#endregion
|
|
37
36
|
export { PageProps, PaginationProps, Pagination as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
3
2
|
import { buildComponentData, buildPaginationModel } from "./model.js";
|
|
3
|
+
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
4
4
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
8
|
-
|
|
8
|
+
// src/Pagination/Pagination.tsx
|
|
9
9
|
const getViewportRangesToHidePages = (showPages) => {
|
|
10
10
|
if (showPages && typeof showPages !== "boolean") return Object.keys(showPages).filter((key) => !showPages[key]);
|
|
11
11
|
if (showPages) return [];
|
|
@@ -213,5 +213,4 @@ function defaultHrefBuilder(pageNum) {
|
|
|
213
213
|
return `#${pageNum}`;
|
|
214
214
|
}
|
|
215
215
|
function noop() {}
|
|
216
|
-
//#endregion
|
|
217
216
|
export { Pagination as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./Pagination-16a5b4c6.css";
|
|
2
|
-
|
|
2
|
+
// src/Pagination/Pagination.module.css.js
|
|
3
3
|
var Pagination_module_css_default = {
|
|
4
4
|
"Page": "prc-Pagination-Page-Etgqf",
|
|
5
5
|
"PaginationContainer": "prc-Pagination-PaginationContainer-HEhGo",
|
|
6
6
|
"TablePaginationSteps": "prc-Pagination-TablePaginationSteps-cAXs3"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Pagination_module_css_default as default };
|
package/dist/Pagination/index.js
CHANGED
package/dist/Pagination/model.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Pagination/model.tsx
|
|
2
2
|
function buildPaginationModel(pageCount, currentPage, showPages, marginPageCount, surroundingPageCount) {
|
|
3
3
|
const prev = {
|
|
4
4
|
type: "PREV",
|
|
@@ -119,5 +119,4 @@ function buildComponentData(page, hrefBuilder, onClick) {
|
|
|
119
119
|
content
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
//#endregion
|
|
123
122
|
export { buildComponentData, buildPaginationModel };
|