@primer/react 38.47.0-rc.cdd1ab1f0 → 38.47.0-rc.fcdf0c9da
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/dist/ActionBar/ActionBar.d.ts +2 -1
- package/dist/ActionBar/ActionBar.js +9 -8
- package/dist/ActionBar/ActionBar.module.css.js +2 -1
- package/dist/ActionBar/index.d.ts +3 -1
- package/dist/ActionBar/index.js +2 -1
- package/dist/ActionList/ActionList.module.css.js +2 -1
- package/dist/ActionList/ActionListContainerContext.js +2 -1
- package/dist/ActionList/Description.d.ts +2 -1
- package/dist/ActionList/Description.js +3 -2
- package/dist/ActionList/Divider.d.ts +2 -1
- package/dist/ActionList/Divider.js +2 -1
- package/dist/ActionList/Group.d.ts +3 -2
- package/dist/ActionList/Group.js +4 -3
- package/dist/ActionList/Group.module.css.js +2 -1
- package/dist/ActionList/GroupContext.js +2 -1
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +2 -1
- package/dist/ActionList/GroupHeadingTrailingAction.js +2 -1
- package/dist/ActionList/Heading.d.ts +2 -1
- package/dist/ActionList/Heading.js +5 -4
- package/dist/ActionList/Heading.module.css.js +2 -1
- package/dist/ActionList/Item.js +12 -11
- package/dist/ActionList/LinkItem.d.ts +2 -1
- package/dist/ActionList/LinkItem.js +4 -3
- package/dist/ActionList/List.js +10 -9
- package/dist/ActionList/Selection.js +6 -5
- package/dist/ActionList/TrailingAction.d.ts +2 -1
- package/dist/ActionList/TrailingAction.js +3 -2
- package/dist/ActionList/Visuals.d.ts +2 -1
- package/dist/ActionList/Visuals.js +3 -2
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +8 -7
- package/dist/ActionList/shared.d.ts +2 -1
- package/dist/ActionList/shared.js +2 -1
- package/dist/ActionMenu/ActionMenu.d.ts +4 -3
- package/dist/ActionMenu/ActionMenu.js +9 -8
- package/dist/ActionMenu/ActionMenu.module.css.js +2 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +3 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -7
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +2 -1
- package/dist/Autocomplete/Autocomplete.d.ts +4 -3
- package/dist/Autocomplete/Autocomplete.js +3 -2
- package/dist/Autocomplete/AutocompleteContext.js +2 -1
- package/dist/Autocomplete/AutocompleteInput.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteInput.js +4 -3
- package/dist/Autocomplete/AutocompleteMenu.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteMenu.js +6 -5
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +2 -1
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteOverlay.js +4 -3
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +2 -1
- package/dist/Avatar/Avatar.d.ts +2 -1
- package/dist/Avatar/Avatar.js +1 -0
- package/dist/Avatar/Avatar.module.css.js +2 -1
- package/dist/AvatarStack/AvatarStack.d.ts +2 -1
- package/dist/AvatarStack/AvatarStack.js +2 -1
- package/dist/AvatarStack/AvatarStack.module.css.js +2 -1
- package/dist/Banner/Banner.d.ts +2 -1
- package/dist/Banner/Banner.js +6 -5
- package/dist/Banner/Banner.module.css.js +2 -1
- package/dist/Banner/index.d.ts +3 -2
- package/dist/Banner/index.js +2 -1
- package/dist/BaseStyles.d.ts +2 -0
- package/dist/BaseStyles.js +2 -1
- package/dist/BaseStyles.module.css.js +2 -1
- package/dist/Blankslate/Blankslate.d.ts +2 -1
- package/dist/Blankslate/Blankslate.js +3 -2
- package/dist/Blankslate/Blankslate.module.css.js +2 -1
- package/dist/Blankslate/BlankslateContext.js +2 -1
- package/dist/Blankslate/index.d.ts +2 -1
- package/dist/Blankslate/index.js +2 -1
- package/dist/BranchName/BranchName.d.ts +2 -1
- package/dist/BranchName/BranchName.js +3 -2
- package/dist/BranchName/BranchName.module.css.js +2 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +7 -6
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -1
- package/dist/Button/Button.d.ts +3 -2
- package/dist/Button/Button.js +2 -1
- package/dist/Button/ButtonBase.d.ts +2 -1
- package/dist/Button/ButtonBase.js +4 -3
- package/dist/Button/ButtonBase.module.css.js +2 -1
- package/dist/Button/IconButton.d.ts +3 -2
- package/dist/Button/IconButton.js +4 -3
- package/dist/Button/LinkButton.d.ts +3 -2
- package/dist/Button/LinkButton.js +2 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +2 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/ButtonGroup/ButtonGroup.js +4 -3
- package/dist/ButtonGroup/ButtonGroup.module.css.js +2 -1
- package/dist/Card/Card.d.ts +2 -1
- package/dist/Card/Card.js +4 -3
- package/dist/Card/Card.module.css.js +2 -1
- package/dist/Card/index.d.ts +2 -1
- package/dist/Card/index.js +2 -1
- package/dist/Checkbox/Checkbox.d.ts +3 -2
- package/dist/Checkbox/Checkbox.js +4 -3
- package/dist/Checkbox/Checkbox.module.css.js +2 -1
- package/dist/Checkbox/shared.module.css.js +2 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +3 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +7 -6
- package/dist/CheckboxGroup/CheckboxGroupContext.js +2 -1
- package/dist/CircleBadge/CircleBadge.d.ts +2 -0
- package/dist/CircleBadge/CircleBadge.js +2 -1
- package/dist/CircleBadge/CircleBadge.module.css.js +2 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +2 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +2 -1
- package/dist/ConfirmationDialog/useConfirm.d.ts +2 -1
- package/dist/ConfirmationDialog/useConfirm.js +2 -1
- package/dist/CounterLabel/CounterLabel.d.ts +2 -1
- package/dist/CounterLabel/CounterLabel.js +2 -1
- package/dist/CounterLabel/CounterLabel.module.css.js +2 -1
- package/dist/DataTable/DataTable.d.ts +5 -4
- package/dist/DataTable/DataTable.js +4 -3
- package/dist/DataTable/ErrorDialog.d.ts +2 -1
- package/dist/DataTable/ErrorDialog.js +2 -1
- package/dist/DataTable/Pagination.d.ts +2 -1
- package/dist/DataTable/Pagination.js +3 -2
- package/dist/DataTable/Pagination.module.css.js +2 -1
- package/dist/DataTable/Table.d.ts +4 -3
- package/dist/DataTable/Table.js +5 -4
- package/dist/DataTable/Table.module.css.js +2 -1
- package/dist/DataTable/TableBulkActions.d.ts +2 -1
- package/dist/DataTable/TableBulkActions.js +3 -2
- package/dist/DataTable/TableBulkActions.module.css.js +2 -1
- package/dist/DataTable/TableGroup.d.ts +2 -1
- package/dist/DataTable/TableGroup.js +5 -4
- package/dist/DataTable/TableGroupContext.js +2 -1
- package/dist/DataTable/column.d.ts +2 -1
- package/dist/DataTable/column.js +2 -1
- package/dist/DataTable/index.d.ts +5 -4
- package/dist/DataTable/index.js +4 -3
- package/dist/DataTable/row.d.ts +2 -0
- package/dist/DataTable/sorting.d.ts +2 -0
- package/dist/DataTable/sorting.js +2 -1
- package/dist/DataTable/useTable.js +3 -2
- package/dist/DataTable/utils.d.ts +2 -0
- package/dist/Details/Details.d.ts +2 -1
- package/dist/Details/Details.js +3 -2
- package/dist/Details/Details.module.css.js +2 -1
- package/dist/Dialog/Dialog.d.ts +3 -2
- package/dist/Dialog/Dialog.js +8 -7
- package/dist/Dialog/Dialog.module.css.js +2 -1
- package/dist/Dialog/DialogContext.js +2 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +2 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FeatureFlags/FeatureFlagContext.js +2 -1
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +2 -0
- package/dist/FeatureFlags/FeatureFlagScope.js +2 -1
- package/dist/FeatureFlags/FeatureFlags.d.ts +2 -1
- package/dist/FeatureFlags/FeatureFlags.js +3 -2
- package/dist/FeatureFlags/useFeatureFlag.d.ts +2 -0
- package/dist/FeatureFlags/useFeatureFlag.js +2 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionList.js +12 -11
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -1
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.js +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -1
- package/dist/FilteredActionList/constants.d.ts +2 -0
- package/dist/FilteredActionList/constants.js +2 -1
- package/dist/FilteredActionList/index.d.ts +3 -2
- package/dist/FilteredActionList/index.js +4 -3
- package/dist/FilteredActionList/types.d.ts +4 -3
- package/dist/FilteredActionList/useAnnouncements.js +2 -1
- package/dist/Flash/Flash.d.ts +2 -1
- package/dist/Flash/Flash.js +2 -1
- package/dist/Flash/Flash.module.css.js +2 -1
- package/dist/FormControl/FormControl.d.ts +2 -1
- package/dist/FormControl/FormControl.js +9 -8
- package/dist/FormControl/FormControl.module.css.js +2 -1
- package/dist/FormControl/FormControlCaption.d.ts +2 -1
- package/dist/FormControl/FormControlCaption.js +3 -2
- package/dist/FormControl/FormControlCaption.module.css.js +2 -1
- package/dist/FormControl/FormControlLabel.d.ts +2 -1
- package/dist/FormControl/FormControlLabel.js +2 -1
- package/dist/FormControl/FormControlLeadingVisual.js +2 -1
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +2 -1
- package/dist/FormControl/_FormControlContext.d.ts +2 -1
- package/dist/FormControl/_FormControlContext.js +2 -1
- package/dist/FormControl/_FormControlContextProvider.js +2 -1
- package/dist/FormControl/_FormControlValidation.d.ts +2 -1
- package/dist/FormControl/_FormControlValidation.js +2 -1
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +2 -1
- package/dist/Header/Header.js +2 -1
- package/dist/Header/Header.module.css.js +2 -1
- package/dist/Heading/Heading.d.ts +2 -1
- package/dist/Heading/Heading.js +3 -2
- package/dist/Heading/Heading.module.css.js +2 -1
- package/dist/Hidden/Hidden.d.ts +2 -1
- package/dist/Hidden/Hidden.js +2 -1
- package/dist/Hidden/Hidden.module.css.js +2 -1
- package/dist/InlineMessage/InlineMessage.d.ts +2 -1
- package/dist/InlineMessage/InlineMessage.js +2 -1
- package/dist/InlineMessage/InlineMessage.module.css.js +2 -1
- package/dist/KeybindingHint/KeybindingHint.d.ts +2 -1
- package/dist/KeybindingHint/KeybindingHint.js +2 -1
- package/dist/KeybindingHint/KeybindingHint.module.css.js +2 -1
- package/dist/KeybindingHint/components/Chord.js +2 -1
- package/dist/KeybindingHint/components/Chord.module.css.js +2 -1
- package/dist/KeybindingHint/components/Key.js +2 -1
- package/dist/KeybindingHint/components/Sequence.js +2 -1
- package/dist/KeybindingHint/components/utils.js +2 -1
- package/dist/KeybindingHint/key-names.js +2 -1
- package/dist/KeybindingHint/platform.d.ts +2 -0
- package/dist/KeybindingHint/platform.js +2 -1
- package/dist/KeybindingHint/props.d.ts +2 -0
- package/dist/KeybindingHint/utils.d.ts +2 -1
- package/dist/KeybindingHint/utils.js +2 -1
- package/dist/Label/Label.d.ts +2 -1
- package/dist/Label/Label.js +2 -1
- package/dist/Label/Label.module.css.js +2 -1
- package/dist/Label/index.js +2 -1
- package/dist/LabelGroup/LabelGroup.d.ts +2 -1
- package/dist/LabelGroup/LabelGroup.js +4 -3
- package/dist/LabelGroup/LabelGroup.module.css.js +2 -1
- package/dist/Link/Link.d.ts +3 -2
- package/dist/Link/Link.js +4 -3
- package/dist/Link/Link.module.css.js +2 -1
- package/dist/NavList/NavList.d.ts +5 -4
- package/dist/NavList/NavList.js +9 -8
- package/dist/NavList/NavList.module.css.js +2 -1
- package/dist/Octicon/Octicon.d.ts +2 -1
- package/dist/Octicon/Octicon.js +2 -1
- package/dist/Overlay/Overlay.d.ts +3 -2
- package/dist/Overlay/Overlay.js +4 -3
- package/dist/Overlay/Overlay.module.css.js +2 -1
- package/dist/Overlay/constants.d.ts +2 -0
- package/dist/Overlay/constants.js +2 -1
- package/dist/PageHeader/PageHeader.d.ts +5 -4
- package/dist/PageHeader/PageHeader.js +8 -7
- package/dist/PageHeader/PageHeader.module.css.js +2 -1
- package/dist/PageLayout/DragHandle.d.ts +2 -1
- package/dist/PageLayout/DragHandle.js +2 -1
- package/dist/PageLayout/PageLayout.d.ts +3 -2
- package/dist/PageLayout/PageLayout.js +4 -3
- package/dist/PageLayout/PageLayout.module.css.js +2 -1
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +2 -1
- package/dist/PageLayout/usePaneWidth.d.ts +2 -1
- package/dist/PageLayout/usePaneWidth.js +2 -1
- package/dist/Pagehead/Pagehead.d.ts +2 -1
- package/dist/Pagehead/Pagehead.js +2 -1
- package/dist/Pagehead/Pagehead.module.css.js +2 -1
- package/dist/Pagination/Pagination.d.ts +3 -2
- package/dist/Pagination/Pagination.js +3 -2
- package/dist/Pagination/Pagination.module.css.js +2 -1
- package/dist/Pagination/index.js +2 -1
- package/dist/Pagination/model.d.ts +2 -0
- package/dist/Pagination/model.js +2 -1
- package/dist/Popover/Popover.d.ts +2 -1
- package/dist/Popover/Popover.js +4 -3
- package/dist/Popover/Popover.module.css.js +2 -1
- package/dist/Portal/Portal.d.ts +2 -1
- package/dist/Portal/Portal.js +2 -1
- package/dist/Portal/PortalContext.d.ts +2 -1
- package/dist/Portal/PortalContext.js +2 -1
- package/dist/Portal/index.js +2 -1
- package/dist/Portal/portalRoot.d.ts +2 -0
- package/dist/Portal/portalRoot.js +2 -1
- package/dist/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/ProgressBar/ProgressBar.js +2 -1
- package/dist/ProgressBar/ProgressBar.module.css.js +2 -1
- package/dist/ProgressBar/index.d.ts +2 -1
- package/dist/ProgressBar/index.js +2 -1
- package/dist/Radio/Radio.d.ts +2 -1
- package/dist/Radio/Radio.js +2 -1
- package/dist/Radio/Radio.module.css.js +2 -1
- package/dist/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/RadioGroup/RadioGroup.js +5 -4
- package/dist/RadioGroup/RadioGroupContext.js +2 -1
- package/dist/RelativeTime/RelativeTime.d.ts +2 -1
- package/dist/RelativeTime/RelativeTime.js +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +2 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/dist/SegmentedControl/SegmentedControl.js +10 -9
- package/dist/SegmentedControl/SegmentedControl.module.css.js +2 -1
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlAction.js +3 -2
- package/dist/SegmentedControl/SegmentedControlActionContext.js +2 -1
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +3 -2
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlDivider.js +2 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +3 -2
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +3 -2
- package/dist/Select/Select.js +2 -1
- package/dist/Select/Select.module.css.js +2 -1
- package/dist/SelectPanel/SelectPanel.d.ts +3 -2
- package/dist/SelectPanel/SelectPanel.js +14 -13
- package/dist/SelectPanel/SelectPanel.module.css.js +2 -1
- package/dist/SelectPanel/SelectPanelMessage.d.ts +2 -1
- package/dist/SelectPanel/SelectPanelMessage.js +2 -1
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +2 -1
- package/dist/SideNav.js +2 -1
- package/dist/SideNav.module.css.js +2 -1
- package/dist/Skeleton/SkeletonBox.d.ts +2 -1
- package/dist/Skeleton/SkeletonBox.js +2 -1
- package/dist/Skeleton/SkeletonBox.module.css.js +2 -1
- package/dist/Skeleton/skeleton.module.css.js +2 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +2 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +3 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +2 -1
- package/dist/SkeletonText/SkeletonText.d.ts +2 -1
- package/dist/SkeletonText/SkeletonText.js +3 -2
- package/dist/SkeletonText/SkeletonText.module.css.js +2 -1
- package/dist/Spinner/Spinner.d.ts +2 -1
- package/dist/Spinner/Spinner.js +2 -1
- package/dist/Spinner/Spinner.module.css.js +2 -1
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +2 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +2 -1
- package/dist/Stack/Stack.d.ts +2 -1
- package/dist/Stack/Stack.js +2 -1
- package/dist/Stack/Stack.module.css.js +2 -1
- package/dist/Stack/index.d.ts +3 -2
- package/dist/Stack/index.js +2 -1
- package/dist/StateLabel/StateLabel.d.ts +2 -1
- package/dist/StateLabel/StateLabel.js +2 -1
- package/dist/StateLabel/StateLabel.module.css.js +2 -1
- package/dist/SubNav/SubNav.d.ts +2 -1
- package/dist/SubNav/SubNav.js +2 -1
- package/dist/SubNav/SubNav.module.css.js +2 -1
- package/dist/TabNav/TabNav.d.ts +2 -1
- package/dist/TabNav/TabNav.js +2 -1
- package/dist/TabNav/TabNav.module.css.js +2 -1
- package/dist/Text/Text.d.ts +2 -1
- package/dist/Text/Text.js +2 -1
- package/dist/Text/Text.module.css.js +2 -1
- package/dist/TextInput/TextInput.d.ts +3 -2
- package/dist/TextInput/TextInput.js +9 -8
- package/dist/TextInput/TextInput.module.css.js +2 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +3 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.js +5 -4
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +2 -1
- package/dist/Textarea/TextArea.module.css.js +2 -1
- package/dist/Textarea/Textarea.d.ts +3 -2
- package/dist/Textarea/Textarea.js +6 -5
- package/dist/ThemeContext.d.ts +2 -1
- package/dist/ThemeContext.js +2 -1
- package/dist/ThemeProvider.d.ts +2 -1
- package/dist/ThemeProvider.js +3 -2
- package/dist/Timeline/Timeline.d.ts +2 -1
- package/dist/Timeline/Timeline.js +2 -1
- package/dist/Timeline/Timeline.module.css.js +2 -1
- package/dist/Timeline/constants.d.ts +2 -0
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +2 -1
- package/dist/ToggleSwitch/ToggleSwitch.js +4 -3
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +2 -1
- package/dist/Token/IssueLabelToken.d.ts +3 -2
- package/dist/Token/IssueLabelToken.js +3 -2
- package/dist/Token/IssueLabelToken.module.css.js +2 -1
- package/dist/Token/Token.d.ts +3 -2
- package/dist/Token/Token.js +4 -3
- package/dist/Token/Token.module.css.js +2 -1
- package/dist/Token/TokenBase.d.ts +2 -1
- package/dist/Token/TokenBase.js +2 -1
- package/dist/Token/TokenBase.module.css.js +2 -1
- package/dist/Token/_RemoveTokenButton.js +2 -1
- package/dist/Token/_RemoveTokenButton.module.css.js +2 -1
- package/dist/Token/_TokenTextContainer.js +2 -1
- package/dist/Token/_TokenTextContainer.module.css.js +2 -1
- package/dist/Token/constants.d.ts +2 -0
- package/dist/Token/constants.js +2 -1
- package/dist/Token/utils.js +2 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -1
- package/dist/Tooltip/Tooltip.js +3 -2
- package/dist/Tooltip/Tooltip.module.css.js +2 -1
- package/dist/Tooltip/TooltipContext.js +2 -1
- package/dist/TooltipV2/Tooltip.d.ts +3 -2
- package/dist/TooltipV2/Tooltip.js +9 -8
- package/dist/TooltipV2/Tooltip.module.css.js +2 -1
- package/dist/TooltipV2/TooltipContext.js +2 -1
- package/dist/TopicTag/TopicTag.d.ts +2 -1
- package/dist/TopicTag/TopicTag.js +2 -1
- package/dist/TopicTag/TopicTag.module.css.js +2 -1
- package/dist/TopicTag/TopicTagGroup.d.ts +2 -1
- package/dist/TopicTag/TopicTagGroup.js +2 -1
- package/dist/TopicTag/TopicTagGroup.module.css.js +2 -1
- package/dist/TopicTag/index.d.ts +2 -1
- package/dist/TopicTag/index.js +2 -1
- package/dist/TreeView/TreeView.d.ts +2 -1
- package/dist/TreeView/TreeView.js +17 -16
- package/dist/TreeView/TreeView.module.css.js +2 -1
- package/dist/TreeView/shared.js +2 -1
- package/dist/TreeView/useRovingTabIndex.d.ts +2 -1
- package/dist/TreeView/useRovingTabIndex.js +2 -1
- package/dist/TreeView/useTreeItemCache.js +2 -1
- package/dist/TreeView/useTreeRovingTabIndex.js +2 -1
- package/dist/TreeView/useTypeahead.js +2 -1
- package/dist/Truncate/Truncate.d.ts +2 -1
- package/dist/Truncate/Truncate.js +2 -1
- package/dist/Truncate/Truncate.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/dist/UnderlineNav/UnderlineNav.js +6 -5
- package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNavContext.js +2 -1
- package/dist/UnderlineNav/UnderlineNavItem.js +5 -4
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +2 -1
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +2 -1
- package/dist/UnderlineNav/index.d.ts +2 -1
- package/dist/UnderlineNav/index.js +2 -1
- package/dist/UnderlineNav/utils.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +2 -1
- package/dist/_VisuallyHidden.js +2 -1
- package/dist/_VisuallyHidden.module.css.js +2 -1
- package/dist/deprecated/ActionList/Divider.d.ts +2 -1
- package/dist/deprecated/ActionList/Divider.js +2 -1
- package/dist/deprecated/ActionList/Divider.module.css.js +2 -1
- package/dist/deprecated/ActionList/Group.d.ts +2 -1
- package/dist/deprecated/ActionList/Group.js +2 -1
- package/dist/deprecated/ActionList/Header.d.ts +2 -1
- package/dist/deprecated/ActionList/Header.js +2 -1
- package/dist/deprecated/ActionList/Header.module.css.js +2 -1
- package/dist/deprecated/ActionList/Item.d.ts +3 -2
- package/dist/deprecated/ActionList/Item.js +3 -2
- package/dist/deprecated/ActionList/Item.module.css.js +2 -1
- package/dist/deprecated/ActionList/List.d.ts +3 -2
- package/dist/deprecated/ActionList/List.js +2 -1
- package/dist/deprecated/ActionList/List.module.css.js +2 -1
- package/dist/deprecated/ActionList/index.d.ts +5 -4
- package/dist/deprecated/ActionList/index.js +3 -2
- package/dist/deprecated/ActionMenu.d.ts +4 -3
- package/dist/deprecated/ActionMenu.js +7 -6
- package/dist/deprecated/DialogV1/Dialog.d.ts +2 -1
- package/dist/deprecated/DialogV1/Dialog.js +3 -2
- package/dist/deprecated/DialogV1/Dialog.module.css.js +2 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +2 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +2 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +2 -1
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +4 -3
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +2 -1
- package/dist/experimental/IssueLabel/IssueLabel.js +2 -1
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +2 -1
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +5 -4
- package/dist/experimental/SelectPanel2/SelectPanel.js +17 -16
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +2 -1
- package/dist/experimental/Tabs/Tabs.d.ts +2 -1
- package/dist/experimental/Tabs/Tabs.js +2 -1
- package/dist/experimental/Tabs/TabsContext.js +2 -1
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +2 -1
- package/dist/experimental/Tabs/useTab.d.ts +2 -1
- package/dist/experimental/Tabs/useTab.js +2 -1
- package/dist/experimental/Tabs/useTabList.d.ts +2 -1
- package/dist/experimental/Tabs/useTabList.js +2 -1
- package/dist/experimental/Tabs/useTabPanel.d.ts +2 -1
- package/dist/experimental/Tabs/useTabPanel.js +2 -1
- package/dist/experimental/Tabs/useTabs.js +2 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +2 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +8 -7
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +2 -1
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +21 -20
- package/dist/hooks/MatchMediaContext.js +2 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +2 -1
- package/dist/hooks/useAnchoredPosition.js +3 -2
- package/dist/hooks/useControllableState.js +2 -1
- package/dist/hooks/useDetails.d.ts +2 -0
- package/dist/hooks/useDetails.js +2 -1
- package/dist/hooks/useDialog.js +2 -1
- package/dist/hooks/useFocusTrap.d.ts +2 -1
- package/dist/hooks/useFocusTrap.js +3 -2
- package/dist/hooks/useFocusZone.d.ts +2 -1
- package/dist/hooks/useFocusZone.js +2 -1
- package/dist/hooks/useId.d.ts +2 -0
- package/dist/hooks/useId.js +2 -1
- package/dist/hooks/useMedia.js +2 -1
- package/dist/hooks/useMenuInitialFocus.js +2 -1
- package/dist/hooks/useMenuKeyboardNavigation.js +2 -1
- package/dist/hooks/useMergedRefs.d.ts +2 -1
- package/dist/hooks/useMergedRefs.js +2 -1
- package/dist/hooks/useMnemonics.js +2 -1
- package/dist/hooks/useOnEscapePress.d.ts +2 -0
- package/dist/hooks/useOnEscapePress.js +2 -1
- package/dist/hooks/useOnOutsideClick.d.ts +2 -1
- package/dist/hooks/useOnOutsideClick.js +2 -1
- package/dist/hooks/useOpenAndCloseFocus.d.ts +2 -1
- package/dist/hooks/useOpenAndCloseFocus.js +2 -1
- package/dist/hooks/useOverflow.d.ts +2 -0
- package/dist/hooks/useOverflow.js +2 -1
- package/dist/hooks/useOverlay.d.ts +2 -1
- package/dist/hooks/useOverlay.js +4 -3
- package/dist/hooks/useProvidedRefOrCreate.d.ts +2 -1
- package/dist/hooks/useProvidedRefOrCreate.js +2 -1
- package/dist/hooks/useProvidedStateOrCreate.js +2 -1
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +2 -1
- package/dist/hooks/useRefObjectAsForwardedRef.js +2 -1
- package/dist/hooks/useRenderForcingRef.js +2 -1
- package/dist/hooks/useResizeObserver.d.ts +2 -1
- package/dist/hooks/useResizeObserver.js +2 -1
- package/dist/hooks/useResponsiveValue.d.ts +2 -0
- package/dist/hooks/useResponsiveValue.js +2 -1
- package/dist/hooks/useSafeTimeout.d.ts +2 -0
- package/dist/hooks/useSafeTimeout.js +2 -1
- package/dist/hooks/useScrollFlash.js +2 -1
- package/dist/hooks/useSlots.d.ts +2 -1
- package/dist/hooks/useSlots.js +2 -1
- package/dist/hooks/useSyncedState.d.ts +2 -0
- package/dist/hooks/useSyncedState.js +2 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +2 -1
- package/dist/internal/components/ButtonReset.module.css.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +7 -6
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +3 -2
- package/dist/internal/components/ConditionalWrapper.js +2 -1
- package/dist/internal/components/InputLabel.d.ts +2 -1
- package/dist/internal/components/InputLabel.js +2 -1
- package/dist/internal/components/InputLabel.module.css.js +2 -1
- package/dist/internal/components/InputValidation.js +2 -1
- package/dist/internal/components/InputValidation.module.css.js +2 -1
- package/dist/internal/components/OverflowObserverProvider.js +2 -1
- package/dist/internal/components/TextInputInnerAction.d.ts +2 -1
- package/dist/internal/components/TextInputInnerAction.js +4 -3
- package/dist/internal/components/TextInputInnerAction.module.css.js +2 -1
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -1
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +2 -1
- package/dist/internal/components/TextInputWrapper.d.ts +2 -1
- package/dist/internal/components/TextInputWrapper.js +2 -1
- package/dist/internal/components/TextInputWrapper.module.css.js +2 -1
- package/dist/internal/components/ThemeProviderBase.js +2 -1
- package/dist/internal/components/UnderlineTabbedInterface.js +2 -1
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +2 -1
- package/dist/internal/components/UnstyledTextInput.js +2 -1
- package/dist/internal/components/UnstyledTextInput.module.css.js +2 -1
- package/dist/internal/components/ValidationAnimationContainer.js +2 -1
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +2 -1
- package/dist/internal/hooks/useDevOnlyEffect.js +2 -1
- package/dist/internal/hooks/useEffectCallback.js +2 -1
- package/dist/internal/hooks/useEffectOnce.js +2 -1
- package/dist/internal/hooks/useOverflowObserver.js +2 -1
- package/dist/internal/hooks/useThemeProvider.js +2 -1
- package/dist/internal/internal-types.d.ts +2 -0
- package/dist/internal/utils/getResponsiveAttributes.js +2 -1
- package/dist/internal/utils/hasInteractiveNodes.js +2 -1
- package/dist/legacy-theme/ts/color-schemes.js +1 -0
- package/dist/live-region/Announce.d.ts +2 -1
- package/dist/live-region/Announce.js +2 -1
- package/dist/live-region/AriaAlert.d.ts +2 -1
- package/dist/live-region/AriaAlert.js +2 -1
- package/dist/live-region/AriaStatus.d.ts +2 -1
- package/dist/live-region/AriaStatus.js +2 -1
- package/dist/next/ThemeProvider.d.ts +2 -1
- package/dist/next/ThemeProvider.js +2 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +2 -0
- package/dist/test-helpers.js +2 -1
- package/dist/theme.d.ts +2 -1
- package/dist/theme.js +2 -1
- package/dist/useTheme.d.ts +2 -1
- package/dist/useTheme.js +2 -1
- package/dist/utils/as-slot.d.ts +2 -1
- package/dist/utils/as-slot.js +2 -1
- package/dist/utils/character-counter.js +2 -1
- package/dist/utils/create-component.d.ts +2 -1
- package/dist/utils/create-component.js +2 -1
- package/dist/utils/descendant-registry.js +2 -1
- package/dist/utils/environment.js +2 -1
- package/dist/utils/getBreakpointDeclarations.js +2 -1
- package/dist/utils/invariant.js +2 -1
- package/dist/utils/is-slot.d.ts +2 -1
- package/dist/utils/is-slot.js +2 -1
- package/dist/utils/isNumeric.js +2 -1
- package/dist/utils/modern-polymorphic.d.ts +2 -1
- package/dist/utils/modern-polymorphic.js +2 -1
- package/dist/utils/polymorphic.d.ts +2 -1
- package/dist/utils/react-compiler-runtime.js +2 -1
- package/dist/utils/scroll.js +2 -1
- package/dist/utils/theme.js +2 -1
- package/dist/utils/types/AriaRole.d.ts +2 -0
- package/dist/utils/types/ComponentProps.d.ts +2 -0
- package/dist/utils/types/FormValidationStatus.d.ts +2 -0
- package/dist/utils/types/KeyPaths.d.ts +2 -0
- package/dist/utils/types/MandateProps.d.ts +2 -0
- package/dist/utils/types/Merge.d.ts +2 -0
- package/dist/utils/types/Slots.d.ts +2 -0
- package/dist/utils/types/ViewportRangeKeys.d.ts +2 -0
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +2 -1
- package/dist/utils/useIsomorphicLayoutEffect.js +2 -1
- package/dist/utils/warning.js +2 -1
- package/package.json +3 -3
package/dist/Header/Header.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Location, Pathname } from "history";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//#region src/Header/Header.d.ts
|
|
6
6
|
type HeaderProps = React.ComponentProps<'header'> & {
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
};
|
|
@@ -17,4 +17,5 @@ declare const _default: ForwardRefComponent<"header", HeaderProps> & {
|
|
|
17
17
|
Link: React.ForwardRefExoticComponent<Omit<HeaderLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
18
18
|
Item: React.ForwardRefExoticComponent<Omit<HeaderItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
};
|
|
20
|
+
//#endregion
|
|
20
21
|
export { HeaderItemProps, HeaderLinkProps, HeaderProps, _default as default };
|
package/dist/Header/Header.js
CHANGED
|
@@ -3,7 +3,7 @@ import Header_module_css_default from "./Header.module.css.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
//#region src/Header/Header.tsx
|
|
7
7
|
const Header = /*#__PURE__*/ React.forwardRef(function Header(t0, forwardRef) {
|
|
8
8
|
const $ = c(13);
|
|
9
9
|
let children;
|
|
@@ -143,4 +143,5 @@ var Header_default = Object.assign(Header, {
|
|
|
143
143
|
Link: HeaderLink,
|
|
144
144
|
Item: HeaderItem
|
|
145
145
|
});
|
|
146
|
+
//#endregion
|
|
146
147
|
export { Header_default as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./Header-aff64597.css";
|
|
2
|
-
|
|
2
|
+
//#region src/Header/Header.module.css.js
|
|
3
3
|
var Header_module_css_default = {
|
|
4
4
|
"Header": "prc-Header-Header-zcBYI",
|
|
5
5
|
"HeaderItem": "prc-Header-HeaderItem-BPQgk",
|
|
6
6
|
"HeaderLink": "prc-Header-HeaderLink-NpVNI"
|
|
7
7
|
};
|
|
8
|
+
//#endregion
|
|
8
9
|
export { Header_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "../utils/types/ComponentProps.js";
|
|
2
2
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Heading/Heading.d.ts
|
|
5
5
|
type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
6
|
type StyledHeadingProps = {
|
|
7
7
|
as?: HeadingLevels;
|
|
@@ -9,4 +9,5 @@ type StyledHeadingProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const Heading: ForwardRefComponent<HeadingLevels, StyledHeadingProps>;
|
|
11
11
|
type HeadingProps = ComponentProps<typeof Heading>;
|
|
12
|
+
//#endregion
|
|
12
13
|
export { HeadingProps, Heading as default };
|
package/dist/Heading/Heading.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
3
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
+
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
4
4
|
import Heading_module_css_default from "./Heading.module.css.js";
|
|
5
5
|
import React, { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
//#region src/Heading/Heading.tsx
|
|
9
9
|
const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(15);
|
|
11
11
|
let className;
|
|
@@ -67,4 +67,5 @@ const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
67
67
|
return t5;
|
|
68
68
|
});
|
|
69
69
|
Heading.displayName = "Heading";
|
|
70
|
+
//#endregion
|
|
70
71
|
export { Heading as default };
|
package/dist/Hidden/Hidden.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/Hidden/Hidden.d.ts
|
|
4
4
|
type Viewport = 'narrow' | 'regular' | 'wide';
|
|
5
5
|
type HiddenProps = {
|
|
6
6
|
when: Array<Viewport> | Viewport;
|
|
@@ -17,4 +17,5 @@ declare const Hidden: {
|
|
|
17
17
|
}: HiddenProps): React.JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
+
//#endregion
|
|
20
21
|
export { Hidden, HiddenProps };
|
package/dist/Hidden/Hidden.js
CHANGED
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import Hidden_module_css_default from "./Hidden.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
//#region src/Hidden/Hidden.tsx
|
|
6
6
|
function normalize(hiddenViewports) {
|
|
7
7
|
if (Array.isArray(hiddenViewports)) {
|
|
8
8
|
const breakpoints = {};
|
|
@@ -55,4 +55,5 @@ const Hidden = (t0) => {
|
|
|
55
55
|
return t7;
|
|
56
56
|
};
|
|
57
57
|
Hidden.displayName = "Hidden";
|
|
58
|
+
//#endregion
|
|
58
59
|
export { Hidden };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/InlineMessage/InlineMessage.d.ts
|
|
4
4
|
type MessageVariant = 'critical' | 'success' | 'unavailable' | 'warning';
|
|
5
5
|
type InlineMessageProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
6
6
|
/**
|
|
@@ -24,4 +24,5 @@ declare function InlineMessage({
|
|
|
24
24
|
leadingVisual: LeadingVisual,
|
|
25
25
|
...rest
|
|
26
26
|
}: InlineMessageProps): React.JSX.Element;
|
|
27
|
+
//#endregion
|
|
27
28
|
export { InlineMessage, InlineMessageProps };
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { isValidElementType } from "react-is";
|
|
6
6
|
import { AlertFillIcon, AlertIcon, CheckCircleFillIcon, CheckCircleIcon, InfoIcon } from "@primer/octicons-react";
|
|
7
|
-
|
|
7
|
+
//#region src/InlineMessage/InlineMessage.tsx
|
|
8
8
|
const icons = {
|
|
9
9
|
warning: /* @__PURE__ */ jsx(AlertIcon, { className: InlineMessage_module_css_default.InlineMessageIcon }),
|
|
10
10
|
critical: /* @__PURE__ */ jsx(AlertIcon, { className: InlineMessage_module_css_default.InlineMessageIcon }),
|
|
@@ -102,4 +102,5 @@ function InlineMessage(t0) {
|
|
|
102
102
|
} else t4 = $[18];
|
|
103
103
|
return t4;
|
|
104
104
|
}
|
|
105
|
+
//#endregion
|
|
105
106
|
export { InlineMessage };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./InlineMessage-cd1e4c93.css";
|
|
2
|
-
|
|
2
|
+
//#region src/InlineMessage/InlineMessage.module.css.js
|
|
3
3
|
var InlineMessage_module_css_default = {
|
|
4
4
|
"InlineMessage": "prc-InlineMessage-InlineMessage-8xfK-",
|
|
5
5
|
"InlineMessageIcon": "prc-InlineMessage-InlineMessageIcon-rl8pZ"
|
|
6
6
|
};
|
|
7
|
+
//#endregion
|
|
7
8
|
export { InlineMessage_module_css_default as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { KeybindingHintProps } from "./props.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/KeybindingHint/KeybindingHint.d.ts
|
|
4
4
|
/** Indicates the presence of an available keybinding. */
|
|
5
5
|
declare const KeybindingHint: import("react").MemoExoticComponent<({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
8
|
}: KeybindingHintProps) => import("react").JSX.Element>;
|
|
9
|
+
//#endregion
|
|
9
10
|
export { KeybindingHint };
|
|
@@ -5,7 +5,7 @@ import KeybindingHint_module_css_default from "./KeybindingHint.module.css.js";
|
|
|
5
5
|
import { memo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
//#region src/KeybindingHint/KeybindingHint.tsx
|
|
9
9
|
/** `kbd` element with style resets. */
|
|
10
10
|
const Kbd = (t0) => {
|
|
11
11
|
const $ = c(5);
|
|
@@ -64,4 +64,5 @@ const KeybindingHint = /*#__PURE__*/ memo((t0) => {
|
|
|
64
64
|
return t2;
|
|
65
65
|
});
|
|
66
66
|
KeybindingHint.displayName = "KeybindingHint";
|
|
67
|
+
//#endregion
|
|
67
68
|
export { KeybindingHint };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./KeybindingHint-0856c11b.css";
|
|
2
|
-
|
|
2
|
+
//#region src/KeybindingHint/KeybindingHint.module.css.js
|
|
3
3
|
var KeybindingHint_module_css_default = { "KeybindingHint": "prc-KeybindingHint-KeybindingHint-qpYIs" };
|
|
4
|
+
//#endregion
|
|
4
5
|
export { KeybindingHint_module_css_default as default };
|
|
@@ -6,7 +6,7 @@ import { splitChord } from "./utils.js";
|
|
|
6
6
|
import { Fragment } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
|
-
|
|
9
|
+
//#region src/KeybindingHint/components/Chord.tsx
|
|
10
10
|
const Chord = (t0) => {
|
|
11
11
|
const $ = c(13);
|
|
12
12
|
const { keys, format: t1, variant: t2, size: t3 } = t0;
|
|
@@ -63,4 +63,5 @@ const Chord = (t0) => {
|
|
|
63
63
|
} else t10 = $[12];
|
|
64
64
|
return t10;
|
|
65
65
|
};
|
|
66
|
+
//#endregion
|
|
66
67
|
export { Chord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Chord-d4edcc89.css";
|
|
2
|
-
|
|
2
|
+
//#region src/KeybindingHint/components/Chord.module.css.js
|
|
3
3
|
var Chord_module_css_default = {
|
|
4
4
|
"Chord": "prc-components-Chord-DdhWN",
|
|
5
5
|
"ChordNormal": "prc-components-ChordNormal-Ov9XG",
|
|
@@ -7,4 +7,5 @@ var Chord_module_css_default = {
|
|
|
7
7
|
"ChordOnPrimary": "prc-components-ChordOnPrimary-J2XUj",
|
|
8
8
|
"ChordSmall": "prc-components-ChordSmall-c-P-x"
|
|
9
9
|
};
|
|
10
|
+
//#endregion
|
|
10
11
|
export { Chord_module_css_default as default };
|
|
@@ -3,7 +3,7 @@ import VisuallyHidden from "../../_VisuallyHidden.js";
|
|
|
3
3
|
import { accessibleKeyName, condensedKeyName, fullKeyName } from "../key-names.js";
|
|
4
4
|
import { usePlatform } from "../platform.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
//#region src/KeybindingHint/components/Key.tsx
|
|
7
7
|
/** Renders a single key with accessible alternative text. */
|
|
8
8
|
const Key = (t0) => {
|
|
9
9
|
const $ = c(14);
|
|
@@ -48,4 +48,5 @@ const Key = (t0) => {
|
|
|
48
48
|
} else t5 = $[13];
|
|
49
49
|
return t5;
|
|
50
50
|
};
|
|
51
|
+
//#endregion
|
|
51
52
|
export { Key };
|
|
@@ -2,10 +2,11 @@ import VisuallyHidden from "../../_VisuallyHidden.js";
|
|
|
2
2
|
import { Chord } from "./Chord.js";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
//#region src/KeybindingHint/components/Sequence.tsx
|
|
6
6
|
const splitSequence = (sequence) => sequence.split(" ");
|
|
7
7
|
const Sequence = ({ keys, ...chordProps }) => splitSequence(keys).map((c, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(VisuallyHidden, { children: "then" }), " "] }), /* @__PURE__ */ jsx(Chord, {
|
|
8
8
|
keys: c,
|
|
9
9
|
...chordProps
|
|
10
10
|
})] }, i));
|
|
11
|
+
//#endregion
|
|
11
12
|
export { Sequence };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { accessibleKeyName } from "../key-names.js";
|
|
2
|
-
|
|
2
|
+
//#region src/KeybindingHint/components/utils.ts
|
|
3
3
|
/**
|
|
4
4
|
* Consistent sort order for modifier keys. There should never be more than one non-modifier
|
|
5
5
|
* key in a chord, so we don't need to worry about sorting those - we just put them at
|
|
@@ -25,4 +25,5 @@ const splitSequence = (sequence) => sequence.split(" ");
|
|
|
25
25
|
const accessibleChordString = (chord, platform) => splitChord(chord).map((key) => accessibleKeyName(key, platform)).join(" ");
|
|
26
26
|
/** Plain string version of `Sequence` for use in `aria` string attributes. */
|
|
27
27
|
const accessibleSequenceString = (sequence, platform) => splitSequence(sequence).map((chord) => accessibleChordString(chord, platform)).join(" then ");
|
|
28
|
+
//#endregion
|
|
28
29
|
export { accessibleChordString, accessibleSequenceString, splitChord };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/KeybindingHint/key-names.ts
|
|
2
2
|
/** Converts the first character of the string to upper case and the remaining to lower case. */
|
|
3
3
|
const capitalize = ([first, ...rest]) => {
|
|
4
4
|
var _first$toUpperCase;
|
|
@@ -109,4 +109,5 @@ const accessibleKeyName = (key, platform) => {
|
|
|
109
109
|
" ": "space"
|
|
110
110
|
}[key]) !== null && _alt$meta$mod$pageup$ !== void 0 ? _alt$meta$mod$pageup$ : key.toLowerCase();
|
|
111
111
|
};
|
|
112
|
+
//#endregion
|
|
112
113
|
export { accessibleKeyName, condensedKeyName, fullKeyName };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/KeybindingHint/platform.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* The platform categories that affect how keyboard shortcut keys are displayed.
|
|
3
4
|
*
|
|
@@ -7,4 +8,5 @@
|
|
|
7
8
|
* consistent label.
|
|
8
9
|
*/
|
|
9
10
|
type Platform = 'apple' | 'windows' | 'other';
|
|
11
|
+
//#endregion
|
|
10
12
|
export { Platform };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useSyncExternalStore } from "react";
|
|
2
2
|
import { isMacOS } from "@primer/behaviors/utils";
|
|
3
|
-
|
|
3
|
+
//#region src/KeybindingHint/platform.ts
|
|
4
4
|
const subscribe = () => () => {};
|
|
5
5
|
/** SSR-unsafe detection of iOS/iPadOS (in addition to macOS, which is detected separately). */
|
|
6
6
|
const ssrUnsafeIsIOS = () => {
|
|
@@ -40,4 +40,5 @@ function usePlatform() {
|
|
|
40
40
|
const detected = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
41
41
|
return override !== null && override !== void 0 ? override : detected;
|
|
42
42
|
}
|
|
43
|
+
//#endregion
|
|
43
44
|
export { usePlatform };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/KeybindingHint/props.d.ts
|
|
1
2
|
type KeybindingHintFormat = 'condensed' | 'full';
|
|
2
3
|
type KeybindingHintVariant = 'normal' | 'onEmphasis' | 'onPrimary';
|
|
3
4
|
interface KeybindingHintProps {
|
|
@@ -34,4 +35,5 @@ interface KeybindingHintProps {
|
|
|
34
35
|
*/
|
|
35
36
|
className?: string;
|
|
36
37
|
}
|
|
38
|
+
//#endregion
|
|
37
39
|
export { KeybindingHintFormat, KeybindingHintProps, KeybindingHintVariant };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform } from "./platform.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/KeybindingHint/utils.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* AVOID: `KeybindingHint` is nearly always sufficient for providing both visible and accessible keyboard hints.
|
|
6
6
|
* However, there may be cases where we need a plain string version, such as when building `aria-label` or
|
|
@@ -14,4 +14,5 @@ import { Platform } from "./platform.js";
|
|
|
14
14
|
* treated as `'other'`.
|
|
15
15
|
*/
|
|
16
16
|
declare const getAccessibleKeybindingHintString: (sequence: string, platform: Platform | boolean) => string;
|
|
17
|
+
//#endregion
|
|
17
18
|
export { getAccessibleKeybindingHintString };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { accessibleSequenceString } from "./components/utils.js";
|
|
2
|
-
|
|
2
|
+
//#region src/KeybindingHint/utils.ts
|
|
3
3
|
/**
|
|
4
4
|
* AVOID: `KeybindingHint` is nearly always sufficient for providing both visible and accessible keyboard hints.
|
|
5
5
|
* However, there may be cases where we need a plain string version, such as when building `aria-label` or
|
|
@@ -13,4 +13,5 @@ import { accessibleSequenceString } from "./components/utils.js";
|
|
|
13
13
|
* treated as `'other'`.
|
|
14
14
|
*/
|
|
15
15
|
const getAccessibleKeybindingHintString = (sequence, platform) => accessibleSequenceString(sequence, typeof platform === "boolean" ? platform ? "apple" : "other" : platform);
|
|
16
|
+
//#endregion
|
|
16
17
|
export { getAccessibleKeybindingHintString };
|
package/dist/Label/Label.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/Label/Label.d.ts
|
|
4
4
|
type LabelProps = {
|
|
5
5
|
/** The color of the label */variant?: LabelColorOptions; /** How large the label is rendered */
|
|
6
6
|
size?: LabelSizeKeys;
|
|
@@ -8,4 +8,5 @@ type LabelProps = {
|
|
|
8
8
|
type LabelColorOptions = 'default' | 'primary' | 'secondary' | 'accent' | 'success' | 'attention' | 'severe' | 'danger' | 'done' | 'sponsors';
|
|
9
9
|
type LabelSizeKeys = 'small' | 'large';
|
|
10
10
|
declare const Label: ForwardRefComponent<"span", LabelProps>;
|
|
11
|
+
//#endregion
|
|
11
12
|
export { LabelColorOptions, LabelProps, Label as default };
|
package/dist/Label/Label.js
CHANGED
|
@@ -3,7 +3,7 @@ import Label_module_css_default from "./Label.module.css.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
//#region src/Label/Label.tsx
|
|
7
7
|
const Label = /*#__PURE__*/ React.forwardRef(function Label(t0, ref) {
|
|
8
8
|
const $ = c(15);
|
|
9
9
|
let className;
|
|
@@ -55,4 +55,5 @@ const Label = /*#__PURE__*/ React.forwardRef(function Label(t0, ref) {
|
|
|
55
55
|
} else t5 = $[14];
|
|
56
56
|
return t5;
|
|
57
57
|
});
|
|
58
|
+
//#endregion
|
|
58
59
|
export { Label as default };
|
package/dist/Label/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/LabelGroup/LabelGroup.d.ts
|
|
4
4
|
type LabelGroupProps = {
|
|
5
5
|
/** Customize the element type of the rendered container */as?: React.ElementType; /** How hidden tokens should be shown. `'inline'` shows the hidden tokens after the visible tokens. `'overlay'` shows all tokens in an overlay that appears on top of the visible tokens. */
|
|
6
6
|
overflowStyle?: 'inline' | 'overlay'; /** How many tokens to show. `'auto'` truncates the tokens to fit in the parent container. Passing a number will truncate after that number tokens. If this is undefined, tokens will never be truncated. */
|
|
@@ -8,4 +8,5 @@ type LabelGroupProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
10
|
declare const LabelGroup: React.FC<React.PropsWithChildren<LabelGroupProps>>;
|
|
11
|
+
//#endregion
|
|
11
12
|
export { LabelGroupProps, LabelGroup as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
2
|
-
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
3
|
-
import { ButtonComponent } from "../Button/Button.js";
|
|
4
2
|
import { IconButton } from "../Button/IconButton.js";
|
|
3
|
+
import { ButtonComponent } from "../Button/Button.js";
|
|
4
|
+
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
5
5
|
import LabelGroup_module_css_default from "./LabelGroup.module.css.js";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { getFocusableChild } from "@primer/behaviors/utils";
|
|
10
10
|
import { XIcon } from "@primer/octicons-react";
|
|
11
|
-
|
|
11
|
+
//#region src/LabelGroup/LabelGroup.tsx
|
|
12
12
|
const getOverlayWidth = (buttonClientRect, containerRef, overlayPaddingPx) => {
|
|
13
13
|
var _containerRef$current;
|
|
14
14
|
return overlayPaddingPx + buttonClientRect.right - (((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().left) || 0);
|
|
@@ -235,4 +235,5 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
|
|
|
235
235
|
});
|
|
236
236
|
};
|
|
237
237
|
LabelGroup.displayName = "LabelGroup";
|
|
238
|
+
//#endregion
|
|
238
239
|
export { LabelGroup as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./LabelGroup-db41f443.css";
|
|
2
|
-
|
|
2
|
+
//#region src/LabelGroup/LabelGroup.module.css.js
|
|
3
3
|
var LabelGroup_module_css_default = {
|
|
4
4
|
"Container": "prc-LabelGroup-Container-E-ePP",
|
|
5
5
|
"ItemWrapper": "prc-LabelGroup-ItemWrapper-GkO4t",
|
|
@@ -8,4 +8,5 @@ var LabelGroup_module_css_default = {
|
|
|
8
8
|
"OverlayInner": "prc-LabelGroup-OverlayInner-nDXRC",
|
|
9
9
|
"CloseButton": "prc-LabelGroup-CloseButton-IyLno"
|
|
10
10
|
};
|
|
11
|
+
//#endregion
|
|
11
12
|
export { LabelGroup_module_css_default as default };
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DistributiveOmit } from "../utils/modern-polymorphic.js";
|
|
2
1
|
import { ComponentProps as ComponentProps$1 } from "../utils/types/ComponentProps.js";
|
|
2
|
+
import { DistributiveOmit } from "../utils/modern-polymorphic.js";
|
|
3
3
|
import React, { ForwardedRef } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//#region src/Link/Link.d.ts
|
|
6
6
|
type StyledLinkProps<As extends React.ElementType = 'a'> = {
|
|
7
7
|
as?: As; /** @deprecated use CSS modules to style hover color */
|
|
8
8
|
hoverColor?: string;
|
|
@@ -15,4 +15,5 @@ declare const Link: (<As extends React.ElementType = "a">(props: DistributiveOmi
|
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
type LinkProps = ComponentProps$1<typeof Link>;
|
|
18
|
+
//#endregion
|
|
18
19
|
export { LinkProps, Link as default };
|
package/dist/Link/Link.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
3
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
4
|
-
import Link_module_css_default from "./Link.module.css.js";
|
|
5
3
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
|
+
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
5
|
+
import Link_module_css_default from "./Link.module.css.js";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
|
-
|
|
9
|
+
//#region src/Link/Link.tsx
|
|
10
10
|
const UnwrappedLink = (props, ref) => {
|
|
11
11
|
const $ = c(17);
|
|
12
12
|
let className;
|
|
@@ -80,4 +80,5 @@ const UnwrappedLink = (props, ref) => {
|
|
|
80
80
|
};
|
|
81
81
|
const LinkComponent = fixedForwardRef(UnwrappedLink);
|
|
82
82
|
const Link = Object.assign(LinkComponent, { displayName: "Link" });
|
|
83
|
+
//#endregion
|
|
83
84
|
export { UnwrappedLink, Link as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { FCWithSlotMarker, WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
1
3
|
import { DistributiveOmit, PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
|
-
import { ActionListLeadingVisualProps, ActionListTrailingVisualProps, VisualProps } from "../ActionList/Visuals.js";
|
|
3
4
|
import { ActionListTrailingActionProps } from "../ActionList/TrailingAction.js";
|
|
4
5
|
import { ActionListGroupHeadingProps } from "../ActionList/Group.js";
|
|
5
6
|
import { ActionListDividerProps } from "../ActionList/Divider.js";
|
|
6
7
|
import { ActionListDescriptionProps } from "../ActionList/Description.js";
|
|
7
|
-
import {
|
|
8
|
-
import { FCWithSlotMarker, WithSlotMarker } from "../utils/types/Slots.js";
|
|
8
|
+
import { ActionListLeadingVisualProps, ActionListTrailingVisualProps, VisualProps } from "../ActionList/Visuals.js";
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { Icon } from "@primer/octicons-react";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
//#region src/NavList/NavList.d.ts
|
|
13
13
|
type NavListHeadingLevels = 'h2' | 'h3';
|
|
14
14
|
type NavListProps = {
|
|
15
15
|
children: React.ReactNode; /** Disable the gap between items when the item gap feature is enabled. */
|
|
@@ -76,4 +76,5 @@ declare const NavList: React.ForwardRefExoticComponent<Omit<NavListProps, "ref">
|
|
|
76
76
|
GroupExpand: React.ForwardRefExoticComponent<NavListGroupExpandProps & React.RefAttributes<HTMLButtonElement>>;
|
|
77
77
|
GroupHeading: WithSlotMarker<React.FC<ActionListGroupHeadingProps>>;
|
|
78
78
|
};
|
|
79
|
+
//#endregion
|
|
79
80
|
export { NavList, NavListDividerProps, NavListGroupExpandProps, NavListGroupHeadingProps, NavListGroupProps, NavListHeadingProps, NavListItemProps, NavListLeadingVisualProps, NavListProps, NavListSubNavProps, NavListTrailingVisualProps };
|
package/dist/NavList/NavList.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { ActionList } from "../ActionList/index.js";
|
|
3
|
-
import { SubItem } from "../ActionList/Item.js";
|
|
4
|
-
import { ActionListContainerContext } from "../ActionList/ActionListContainerContext.js";
|
|
5
|
-
import { useId as useId$1 } from "../hooks/useId.js";
|
|
6
2
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
7
|
-
import
|
|
8
|
-
import NavList_module_css_default from "./NavList.module.css.js";
|
|
3
|
+
import { useId as useId$1 } from "../hooks/useId.js";
|
|
9
4
|
import { useSlots } from "../hooks/useSlots.js";
|
|
10
5
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
11
|
-
import Heading$1 from "../Heading/Heading.js";
|
|
12
6
|
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
13
7
|
import { asSlot } from "../utils/as-slot.js";
|
|
8
|
+
import { ActionListContainerContext } from "../ActionList/ActionListContainerContext.js";
|
|
9
|
+
import Heading$1 from "../Heading/Heading.js";
|
|
10
|
+
import ActionList_module_css_default from "../ActionList/ActionList.module.css.js";
|
|
11
|
+
import { SubItem } from "../ActionList/Item.js";
|
|
12
|
+
import { ActionList } from "../ActionList/index.js";
|
|
13
|
+
import NavList_module_css_default from "./NavList.module.css.js";
|
|
14
14
|
import React, { createElement, isValidElement } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { clsx } from "clsx";
|
|
17
17
|
import { ChevronDownIcon, PlusIcon } from "@primer/octicons-react";
|
|
18
18
|
import { flushSync } from "react-dom";
|
|
19
|
-
|
|
19
|
+
//#region src/NavList/NavList.tsx
|
|
20
20
|
const NavListHeadingLevelContext = /*#__PURE__*/ React.createContext(null);
|
|
21
21
|
function headingTagToLevel(as) {
|
|
22
22
|
return Number.parseInt(as.slice(1), 10);
|
|
@@ -643,4 +643,5 @@ const NavList = Object.assign(Root, {
|
|
|
643
643
|
GroupExpand,
|
|
644
644
|
GroupHeading
|
|
645
645
|
});
|
|
646
|
+
//#endregion
|
|
646
647
|
export { GroupExpand, NavList };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./NavList-b50d982b.css";
|
|
2
|
-
|
|
2
|
+
//#region src/NavList/NavList.module.css.js
|
|
3
3
|
var NavList_module_css_default = {
|
|
4
4
|
"Heading": "prc-NavList-Heading--JQMj",
|
|
5
5
|
"GroupHeading": "prc-NavList-GroupHeading-mN50z"
|
|
6
6
|
};
|
|
7
|
+
//#endregion
|
|
7
8
|
export { NavList_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconProps } from "@primer/octicons-react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Octicon/Octicon.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
7
7
|
*/
|
|
@@ -16,4 +16,5 @@ declare const Octicon: React.ForwardRefExoticComponent<{
|
|
|
16
16
|
icon: React.ElementType;
|
|
17
17
|
as?: React.ElementType;
|
|
18
18
|
} & IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
19
|
+
//#endregion
|
|
19
20
|
export { OcticonProps, Octicon as default };
|
package/dist/Octicon/Octicon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
//#region src/Octicon/Octicon.tsx
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
7
7
|
*/
|
|
@@ -31,4 +31,5 @@ const Octicon = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
31
31
|
} else t0 = $[6];
|
|
32
32
|
return t0;
|
|
33
33
|
});
|
|
34
|
+
//#endregion
|
|
34
35
|
export { Octicon as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AriaRole } from "../utils/types/AriaRole.js";
|
|
2
2
|
import { Merge } from "../utils/types/Merge.js";
|
|
3
|
-
import { TouchOrMouseEvent } from "../hooks/useOnOutsideClick.js";
|
|
4
3
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
4
|
+
import { TouchOrMouseEvent } from "../hooks/useOnOutsideClick.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
|
+
//#region src/Overlay/Overlay.d.ts
|
|
10
10
|
type StyledOverlayProps = {
|
|
11
11
|
width?: keyof typeof widthMap;
|
|
12
12
|
height?: keyof typeof heightMap;
|
|
@@ -77,4 +77,5 @@ type internalOverlayProps = Merge<OwnOverlayProps, ContainerProps>;
|
|
|
77
77
|
*/
|
|
78
78
|
declare const Overlay: ForwardRefComponent<"div", internalOverlayProps>;
|
|
79
79
|
type OverlayProps = ComponentPropsWithRef<typeof Overlay>;
|
|
80
|
+
//#endregion
|
|
80
81
|
export { OverlayProps, Overlay as default };
|