@primer/react 38.47.0-rc.6f1dd6463 → 38.47.0-rc.a4f004c4f
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 +6 -0
- 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 +11 -12
- 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 +7 -8
- 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 +3 -4
- 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 +7 -8
- 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 +5 -5
- package/dist/DataTable/DataTable.js +32 -30
- 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 +3 -2
- package/dist/DataTable/TableGroup.js +195 -171
- 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 +7 -8
- 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 -2
- 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 +11 -12
- 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 +7 -8
- 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 +10 -11
- 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 +1 -2
- package/dist/Timeline/Timeline.js +1 -2
- 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 +8 -9
- 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 +1 -2
- 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 +13 -10
- 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/generated/components.json +12 -2
- package/package.json +6 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./VisuallyHidden-ce2a3270.css";
|
|
2
|
-
|
|
2
|
+
// src/VisuallyHidden/VisuallyHidden.module.css.js
|
|
3
3
|
var VisuallyHidden_module_css_default = { "VisuallyHidden": "prc-VisuallyHidden-VisuallyHidden-Q0qSB" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { VisuallyHidden_module_css_default as default };
|
package/dist/_VisuallyHidden.js
CHANGED
|
@@ -2,7 +2,7 @@ import { c } from "./utils/react-compiler-runtime.js";
|
|
|
2
2
|
import _VisuallyHidden_module_css_default from "./_VisuallyHidden.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/_VisuallyHidden.tsx
|
|
6
6
|
function VisuallyHidden(t0) {
|
|
7
7
|
const $ = c(14);
|
|
8
8
|
let as;
|
|
@@ -49,5 +49,4 @@ function VisuallyHidden(t0) {
|
|
|
49
49
|
} else t3 = $[13];
|
|
50
50
|
return t3;
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { VisuallyHidden as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./_VisuallyHidden-1f156b61.css";
|
|
2
|
-
|
|
2
|
+
// src/_VisuallyHidden.module.css.js
|
|
3
3
|
var _VisuallyHidden_module_css_default = { "InternalVisuallyHidden": "prc-src-InternalVisuallyHidden-2YaI6" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { _VisuallyHidden_module_css_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/deprecated/ActionList/Divider.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Visually separates `Items or `Groups in an `ActionList`.
|
|
6
6
|
*/
|
|
@@ -8,5 +8,4 @@ declare function Divider(): JSX.Element;
|
|
|
8
8
|
declare namespace Divider {
|
|
9
9
|
var renderItem: typeof Divider;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Divider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import Divider_module_css_default from "./Divider.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/deprecated/ActionList/Divider.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Visually separates `Items or `Groups in an `ActionList`.
|
|
7
7
|
*/
|
|
@@ -24,5 +24,4 @@ function Divider() {
|
|
|
24
24
|
* alternative to `items={[{renderItem: () => <ActionList.Divider />}]}`.
|
|
25
25
|
*/
|
|
26
26
|
Divider.renderItem = Divider;
|
|
27
|
-
//#endregion
|
|
28
27
|
export { Divider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./Divider-7c6b656a.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/ActionList/Divider.module.css.js
|
|
3
3
|
var Divider_module_css_default = { "Divider": "prc-ActionList-Divider-hCCoA" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Divider_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeaderProps } from "./Header.js";
|
|
2
2
|
import React, { JSX } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/deprecated/ActionList/Group.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Contract for props passed to the `Group` component.
|
|
7
7
|
*/
|
|
@@ -32,5 +32,4 @@ declare function Group({
|
|
|
32
32
|
groupId: _groupId,
|
|
33
33
|
...props
|
|
34
34
|
}: GroupProps): JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
35
|
export { Group, GroupProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Header } from "./Header.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/deprecated/ActionList/Group.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Collects related `Items` in an `ActionList`.
|
|
7
7
|
*/
|
|
@@ -43,5 +43,4 @@ function Group(t0) {
|
|
|
43
43
|
} else t2 = $[9];
|
|
44
44
|
return t2;
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { Group };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { JSX } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/deprecated/ActionList/Header.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Contract for props passed to the `Header` component.
|
|
6
6
|
*/
|
|
@@ -21,5 +21,4 @@ interface HeaderProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
|
21
21
|
*/
|
|
22
22
|
auxiliaryText?: string;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { HeaderProps };
|
|
@@ -2,7 +2,7 @@ import { c } from "../../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import Header_module_css_default from "./Header.module.css.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/deprecated/ActionList/Header.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Displays the name and description of a `Group`.
|
|
8
8
|
*/
|
|
@@ -66,5 +66,4 @@ function Header(t0) {
|
|
|
66
66
|
} else t5 = $[15];
|
|
67
67
|
return t5;
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { Header };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./Header-493b1d76.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/ActionList/Header.module.css.js
|
|
3
3
|
var Header_module_css_default = { "Header": "prc-ActionList-Header-585kg" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Header_module_css_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AriaRole } from "../../utils/types/AriaRole.js";
|
|
2
1
|
import { ItemInput } from "./List.js";
|
|
2
|
+
import { AriaRole } from "../../utils/types/AriaRole.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/deprecated/ActionList/Item.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Contract for props passed to the `Item` component.
|
|
8
8
|
*/
|
|
@@ -88,5 +88,4 @@ interface ItemProps {
|
|
|
88
88
|
*/
|
|
89
89
|
item?: ItemInput;
|
|
90
90
|
}
|
|
91
|
-
//#endregion
|
|
92
91
|
export { ItemProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useId as useId$1 } from "../../hooks/useId.js";
|
|
3
2
|
import Truncate_default from "../../Truncate/Truncate.js";
|
|
3
|
+
import { useId as useId$1 } from "../../hooks/useId.js";
|
|
4
4
|
import Item_module_css_default from "./Item.module.css.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { isValidElementType } from "react-is";
|
|
9
9
|
import { CheckIcon } from "@primer/octicons-react";
|
|
10
|
-
|
|
10
|
+
// src/deprecated/ActionList/Item.tsx
|
|
11
11
|
/**
|
|
12
12
|
* An actionable or selectable `Item` with an optional icon and description.
|
|
13
13
|
*/
|
|
@@ -304,5 +304,4 @@ const Item = /*#__PURE__*/ React.forwardRef((itemProps, ref) => {
|
|
|
304
304
|
return t22;
|
|
305
305
|
});
|
|
306
306
|
Item.displayName = "ActionList.Item";
|
|
307
|
-
//#endregion
|
|
308
307
|
export { Item };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Item-f48bd3ee.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/ActionList/Item.module.css.js
|
|
3
3
|
var Item_module_css_default = {
|
|
4
4
|
"DividedContent": "prc-ActionList-DividedContent-qks5p",
|
|
5
5
|
"MainContent": "prc-ActionList-MainContent-XZAI3",
|
|
@@ -14,5 +14,4 @@ var Item_module_css_default = {
|
|
|
14
14
|
"DescriptionContainer": "prc-ActionList-DescriptionContainer-RBvTf",
|
|
15
15
|
"MultiSelectIcon": "prc-ActionList-MultiSelectIcon-XFUmo"
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { Item_module_css_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AriaRole } from "../../utils/types/AriaRole.js";
|
|
2
|
-
import { Merge } from "../../utils/types/Merge.js";
|
|
3
2
|
import { Group, GroupProps } from "./Group.js";
|
|
4
3
|
import { ItemProps } from "./Item.js";
|
|
4
|
+
import { Merge } from "../../utils/types/Merge.js";
|
|
5
5
|
import React, { Key } from "react";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/deprecated/ActionList/List.d.ts
|
|
8
8
|
type RenderItemFn = (props: ItemProps) => React.ReactElement<any>;
|
|
9
9
|
type ItemInput = Merge<React.ComponentPropsWithoutRef<'div'>, ItemProps> | ((Partial<ItemProps> & {
|
|
10
10
|
renderItem: RenderItemFn;
|
|
@@ -88,5 +88,4 @@ interface GroupedListProps extends ListPropsBase {
|
|
|
88
88
|
* Contract for props passed to the `List` component.
|
|
89
89
|
*/
|
|
90
90
|
type ListProps = ListPropsBase | GroupedListProps;
|
|
91
|
-
//#endregion
|
|
92
91
|
export { GroupedListProps, ItemInput, ListProps, ListPropsBase, RenderItemFn };
|
|
@@ -6,7 +6,7 @@ import List_module_css_default from "./List.module.css.js";
|
|
|
6
6
|
import React, { createElement } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
|
-
|
|
9
|
+
// src/deprecated/ActionList/List.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Asserts that the given value fulfills the `GroupedListProps` contract.
|
|
12
12
|
* @param props A value which fulfills either the `ListPropsBase` or the `GroupedListProps` contract.
|
|
@@ -158,5 +158,4 @@ List.displayName = "ActionList";
|
|
|
158
158
|
function _temp(groupAccumulator, groupMetadata) {
|
|
159
159
|
return groupAccumulator.set(groupMetadata.groupId, groupMetadata);
|
|
160
160
|
}
|
|
161
|
-
//#endregion
|
|
162
161
|
export { List };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./List-1ec9d6d9.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/ActionList/List.module.css.js
|
|
3
3
|
var List_module_css_default = { "List": "prc-ActionList-List-0R5kQ" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { List_module_css_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Group, GroupProps } from "./Group.js";
|
|
2
|
-
import { ForwardRefComponent } from "../../utils/polymorphic.js";
|
|
3
|
-
import { ItemProps } from "./Item.js";
|
|
4
1
|
import { GroupedListProps, ItemInput, ListProps } from "./List.js";
|
|
2
|
+
import { ItemProps } from "./Item.js";
|
|
3
|
+
import { ForwardRefComponent } from "../../utils/polymorphic.js";
|
|
4
|
+
import { Group, GroupProps } from "./Group.js";
|
|
5
5
|
import { Divider } from "./Divider.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/deprecated/ActionList/index.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Use ActionList with composable API instead. See https://primer.style/react/ActionList for more details.
|
|
10
10
|
*/
|
|
@@ -13,5 +13,4 @@ declare const ActionList: import("react").ForwardRefExoticComponent<ListProps &
|
|
|
13
13
|
Item: ForwardRefComponent<"div", ItemProps>; /** Visually separates `Item`s or `Group`s in an `ActionList`. */
|
|
14
14
|
Divider: typeof Divider;
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { ActionList, type ListProps as ActionListProps, type GroupProps, type GroupedListProps, type ItemInput, type ItemProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { List } from "./List.js";
|
|
1
2
|
import { Group } from "./Group.js";
|
|
2
3
|
import { Item } from "./Item.js";
|
|
3
4
|
import { Divider } from "./Divider.js";
|
|
4
|
-
|
|
5
|
-
//#region src/deprecated/ActionList/index.ts
|
|
5
|
+
// src/deprecated/ActionList/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use ActionList with composable API instead. See https://primer.style/react/ActionList for more details.
|
|
8
8
|
*/
|
|
@@ -14,5 +14,4 @@ const ActionList = Object.assign(List, {
|
|
|
14
14
|
/** Visually separates `Item`s or `Group`s in an `ActionList`. */
|
|
15
15
|
Divider
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { ActionList };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ItemProps } from "./ActionList/Item.js";
|
|
2
1
|
import { GroupedListProps, ListPropsBase } from "./ActionList/List.js";
|
|
2
|
+
import { ItemProps } from "./ActionList/Item.js";
|
|
3
3
|
import { Divider } from "./ActionList/Divider.js";
|
|
4
|
-
import { AnchoredOverlayWrapperAnchorProps } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
5
4
|
import { OverlayProps } from "../Overlay/Overlay.js";
|
|
5
|
+
import { AnchoredOverlayWrapperAnchorProps } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
6
6
|
import React, { JSX } from "react";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/deprecated/ActionMenu.d.ts
|
|
9
9
|
interface ActionMenuBaseProps extends Partial<Omit<GroupedListProps, keyof ListPropsBase>>, ListPropsBase {
|
|
10
10
|
/**
|
|
11
11
|
* Content that is passed into the renderAnchor component, which is a button by default.
|
|
@@ -52,5 +52,4 @@ declare const ActionMenu: {
|
|
|
52
52
|
displayName: string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { ActionMenu, ActionMenuProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
4
|
-
import { ButtonComponent } from "../Button/Button.js";
|
|
5
|
-
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
2
|
+
import { List } from "./ActionList/List.js";
|
|
6
3
|
import { Item } from "./ActionList/Item.js";
|
|
7
4
|
import { Divider } from "./ActionList/Divider.js";
|
|
8
|
-
import {
|
|
5
|
+
import { ButtonComponent } from "../Button/Button.js";
|
|
6
|
+
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
7
|
+
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
8
|
+
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/deprecated/ActionMenu.tsx
|
|
11
11
|
const ActionMenuItem = (props) => {
|
|
12
12
|
const $ = c(2);
|
|
13
13
|
let t0;
|
|
@@ -160,5 +160,4 @@ const ActionMenu = Object.assign(ActionMenuBase, {
|
|
|
160
160
|
Divider,
|
|
161
161
|
Item: ActionMenuItem
|
|
162
162
|
});
|
|
163
|
-
//#endregion
|
|
164
163
|
export { ActionMenu };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps as ComponentProps$1 } from "../../utils/types/ComponentProps.js";
|
|
2
2
|
import React, { HTMLAttributes } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/deprecated/DialogV1/Dialog.d.ts
|
|
5
5
|
type StyledDialogBaseProps = {
|
|
6
6
|
narrow?: boolean;
|
|
7
7
|
wide?: boolean;
|
|
@@ -36,5 +36,4 @@ declare const _default: React.ForwardRefExoticComponent<{
|
|
|
36
36
|
} & StyledDialogBaseProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>> & {
|
|
37
37
|
Header: typeof DialogHeader;
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { DialogHeaderProps, DialogProps, _default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useMergedRefs } from "../../hooks/useMergedRefs.js";
|
|
3
2
|
import { IconButton } from "../../Button/IconButton.js";
|
|
4
3
|
import useDialog from "../../hooks/useDialog.js";
|
|
4
|
+
import { useMergedRefs } from "../../hooks/useMergedRefs.js";
|
|
5
5
|
import Dialog_module_css_default from "./Dialog.module.css.js";
|
|
6
6
|
import React, { forwardRef, useRef } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { XIcon } from "@primer/octicons-react";
|
|
10
|
-
|
|
10
|
+
// src/deprecated/DialogV1/Dialog.tsx
|
|
11
11
|
const noop = () => null;
|
|
12
12
|
function DialogHeader(t0) {
|
|
13
13
|
const $ = c(14);
|
|
@@ -170,5 +170,4 @@ const Dialog = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
170
170
|
DialogHeader.displayName = "Dialog.Header";
|
|
171
171
|
Dialog.displayName = "Dialog";
|
|
172
172
|
var Dialog_default = Object.assign(Dialog, { Header: DialogHeader });
|
|
173
|
-
//#endregion
|
|
174
173
|
export { Dialog_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Dialog-dce13989.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/DialogV1/Dialog.module.css.js
|
|
3
3
|
var Dialog_module_css_default = {
|
|
4
4
|
"Overlay": "prc-DialogV1-Overlay-nYh-4",
|
|
5
5
|
"CloseIcon": "prc-DialogV1-CloseIcon-NbiwR",
|
|
@@ -7,5 +7,4 @@ var Dialog_module_css_default = {
|
|
|
7
7
|
"Header": "prc-DialogV1-Header-r20Rf",
|
|
8
8
|
"HeaderChild": "prc-DialogV1-HeaderChild-tk8Zn"
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { Dialog_module_css_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/deprecated/FilteredSearch/FilteredSearch.d.ts
|
|
2
1
|
type FilteredSearchProps = React.HTMLAttributes<HTMLElement>;
|
|
3
2
|
/**
|
|
4
3
|
* @deprecated A new filter component is in progress.
|
|
@@ -9,5 +8,4 @@ declare function FilteredSearch({
|
|
|
9
8
|
className,
|
|
10
9
|
...rest
|
|
11
10
|
}: FilteredSearchProps): import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
11
|
export { type FilteredSearchProps, FilteredSearch as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "../../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import FilteredSearch_module_css_default from "./FilteredSearch.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/deprecated/FilteredSearch/FilteredSearch.tsx
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated A new filter component is in progress.
|
|
8
8
|
* Until the new filter component is ready, you can use Button + TextInput + ActionList to reproduce this pattern.
|
|
@@ -43,5 +43,4 @@ function FilteredSearch(t0) {
|
|
|
43
43
|
} else t2 = $[9];
|
|
44
44
|
return t2;
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { FilteredSearch as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./FilteredSearch-d30f5bbc.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/FilteredSearch/FilteredSearch.module.css.js
|
|
3
3
|
var FilteredSearch_module_css_default = { "FilteredSearch": "prc-FilteredSearch-FilteredSearch-E51KG" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { FilteredSearch_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { To } from "history";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/deprecated/UnderlineNav/UnderlineNav.d.ts
|
|
5
5
|
type UnderlineNavProps = {
|
|
6
6
|
actions?: React.ReactNode;
|
|
7
7
|
align?: 'right';
|
|
@@ -28,5 +28,4 @@ type UnderlineNavLinkProps = React.ComponentProps<'a'> & StyledUnderlineNavLinkP
|
|
|
28
28
|
declare const _default: typeof UnderlineNav & {
|
|
29
29
|
Link: React.ForwardRefExoticComponent<Omit<UnderlineNavLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { type UnderlineNavLinkProps, UnderlineNavProps, _default as default };
|
|
@@ -3,7 +3,7 @@ import UnderlineNav_module_css_default from "./UnderlineNav.module.css.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
// src/deprecated/UnderlineNav/UnderlineNav.tsx
|
|
7
7
|
function UnderlineNav(t0) {
|
|
8
8
|
const $ = c(24);
|
|
9
9
|
let actions;
|
|
@@ -133,5 +133,4 @@ UnderlineNavLink.displayName = "UnderlineNav.Link";
|
|
|
133
133
|
* @deprecated UnderlineNav is deprecated and will be replaced by the draft `UnderlineNav` in the next major release. See https://primer.style/react/drafts/UnderlineNav2 for more details.
|
|
134
134
|
*/
|
|
135
135
|
var UnderlineNav_default = Object.assign(UnderlineNav, { Link: UnderlineNavLink });
|
|
136
|
-
//#endregion
|
|
137
136
|
export { UnderlineNav_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./UnderlineNav-0c1e0dff.css";
|
|
2
|
-
|
|
2
|
+
// src/deprecated/UnderlineNav/UnderlineNav.module.css.js
|
|
3
3
|
var UnderlineNav_module_css_default = {
|
|
4
4
|
"UnderlineNav": "prc-UnderlineNav-UnderlineNav-1AFnH",
|
|
5
5
|
"UnderlineNav--right": "prc-UnderlineNav-UnderlineNav--right-gSEmk",
|
|
@@ -10,5 +10,4 @@ var UnderlineNav_module_css_default = {
|
|
|
10
10
|
"UnderlineNavLink": "prc-UnderlineNav-UnderlineNavLink-u9IaZ",
|
|
11
11
|
"UnderlineNavOcticon": "prc-UnderlineNav-UnderlineNavOcticon-oU5sK"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { UnderlineNav_module_css_default as default };
|
|
@@ -3,8 +3,8 @@ import { ItemProps } from "./ActionList/Item.js";
|
|
|
3
3
|
import { GroupedListProps, ItemInput, ListProps } from "./ActionList/List.js";
|
|
4
4
|
import { ActionList } from "./ActionList/index.js";
|
|
5
5
|
import Octicon, { OcticonProps } from "../Octicon/Octicon.js";
|
|
6
|
-
import Flash, { FlashProps } from "../Flash/Flash.js";
|
|
7
6
|
import { ActionMenu, ActionMenuProps } from "./ActionMenu.js";
|
|
7
|
+
import Flash, { FlashProps } from "../Flash/Flash.js";
|
|
8
8
|
import FilteredSearch, { FilteredSearchProps } from "./FilteredSearch/FilteredSearch.js";
|
|
9
9
|
import _default$2, { UnderlineNavLinkProps, UnderlineNavProps } from "./UnderlineNav/UnderlineNav.js";
|
|
10
10
|
import _default, { DialogHeaderProps, DialogProps } from "./DialogV1/Dialog.js";
|
package/dist/deprecated/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import Octicon from "../Octicon/Octicon.js";
|
|
3
|
-
import Flash from "../Flash/Flash.js";
|
|
4
2
|
import { ActionList } from "./ActionList/index.js";
|
|
5
3
|
import { ActionMenu } from "./ActionMenu.js";
|
|
6
4
|
import FilteredSearch from "./FilteredSearch/FilteredSearch.js";
|
|
7
5
|
import UnderlineNav_default from "./UnderlineNav/UnderlineNav.js";
|
|
8
6
|
import Dialog_default from "./DialogV1/Dialog.js";
|
|
7
|
+
import Octicon from "../Octicon/Octicon.js";
|
|
9
8
|
import Pagehead from "../Pagehead/Pagehead.js";
|
|
10
9
|
import TabNav_default from "../TabNav/TabNav.js";
|
|
11
10
|
import Tooltip from "../Tooltip/Tooltip.js";
|
|
12
|
-
|
|
11
|
+
import Flash from "../Flash/Flash.js";
|
|
12
|
+
// src/deprecated/index.ts
|
|
13
13
|
/** This is the place where we keep components that are deprecated.
|
|
14
14
|
* We don't recommend using it in production.
|
|
15
15
|
* If you already use them, please move to the suggested alternative components
|
|
@@ -17,5 +17,4 @@ import Tooltip from "../Tooltip/Tooltip.js";
|
|
|
17
17
|
* But, they are published on npm and you can import them.
|
|
18
18
|
* example: import {FormGroup} from '@primer/react/deprecated
|
|
19
19
|
*/
|
|
20
|
-
//#endregion
|
|
21
20
|
export { ActionList, ActionMenu, Dialog_default as Dialog, FilteredSearch, Flash, Octicon, Pagehead, TabNav_default as TabNav, Tooltip, UnderlineNav_default as UnderlineNav };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/experimental/IssueLabel/IssueLabel.d.ts
|
|
4
4
|
type Hex = `#${string}`;
|
|
5
5
|
type LabelColorVariant = 'auburn' | 'blue' | 'brown' | 'coral' | 'cyan' | 'gray' | 'green' | 'indigo' | 'lemon' | 'lime' | 'olive' | 'orange' | 'pine' | 'pink' | 'plum' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
6
6
|
type BaseProps = {
|
|
@@ -29,5 +29,4 @@ declare function IssueLabel(props: SpanProps): React.ReactNode;
|
|
|
29
29
|
declare function IssueLabel(props: LinkProps): React.ReactNode;
|
|
30
30
|
declare function IssueLabel(props: ButtonProps): React.ReactNode;
|
|
31
31
|
declare function IssueLabel<As extends React.ElementType>(props: IssueLabelAsProps<As>): React.ReactNode;
|
|
32
|
-
//#endregion
|
|
33
32
|
export { type Hex, IssueLabel, type IssueLabelProps };
|
|
@@ -3,7 +3,7 @@ import IssueLabel_module_css_default from "./IssueLabel.module.css.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { readableColor } from "color2k";
|
|
6
|
-
|
|
6
|
+
// src/experimental/IssueLabel/IssueLabel.tsx
|
|
7
7
|
function IssueLabel(t0) {
|
|
8
8
|
const $ = c(36);
|
|
9
9
|
let children;
|
|
@@ -133,5 +133,4 @@ function IssueLabel(t0) {
|
|
|
133
133
|
} else t6 = $[35];
|
|
134
134
|
return t6;
|
|
135
135
|
}
|
|
136
|
-
//#endregion
|
|
137
136
|
export { IssueLabel };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./IssueLabel-2007d7e7.css";
|
|
2
|
-
|
|
2
|
+
// src/experimental/IssueLabel/IssueLabel.module.css.js
|
|
3
3
|
var IssueLabel_module_css_default = { "IssueLabel": "prc-IssueLabel-IssueLabel-tPs7V" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { IssueLabel_module_css_default as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FCWithSlotMarker, WithSlotMarker } from "../../utils/types/Slots.js";
|
|
2
1
|
import { AlignContent, ButtonProps, Size, VariantType } from "../../Button/types.js";
|
|
3
|
-
import { ResponsiveValue } from "../../hooks/useResponsiveValue.js";
|
|
4
2
|
import { TextInputProps } from "../../TextInput/TextInput.js";
|
|
5
3
|
import { LinkProps } from "../../Link/Link.js";
|
|
6
|
-
import { CheckboxProps } from "../../Checkbox/Checkbox.js";
|
|
7
4
|
import { OverlayProps } from "../../Overlay/Overlay.js";
|
|
5
|
+
import { CheckboxProps } from "../../Checkbox/Checkbox.js";
|
|
6
|
+
import { ResponsiveValue } from "../../hooks/useResponsiveValue.js";
|
|
7
|
+
import { FCWithSlotMarker, WithSlotMarker } from "../../utils/types/Slots.js";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { PositionSettings } from "@primer/behaviors";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/experimental/SelectPanel2/SelectPanel.d.ts
|
|
12
12
|
type SelectPanelProps = {
|
|
13
13
|
title: string;
|
|
14
14
|
description?: string;
|
|
@@ -87,5 +87,4 @@ declare const SelectPanel: React.FC<SelectPanelProps> & {
|
|
|
87
87
|
Message: React.FC<SelectPanelMessageProps>;
|
|
88
88
|
SecondaryAction: React.FC<SelectPanelSecondaryActionProps>;
|
|
89
89
|
};
|
|
90
|
-
//#endregion
|
|
91
90
|
export { SelectPanel, SelectPanelMessageProps, SelectPanelProps, SelectPanelSecondaryActionProps };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { AriaStatus } from "../../live-region/AriaStatus.js";
|
|
2
|
-
import { useProvidedRefOrCreate } from "../../hooks/useProvidedRefOrCreate.js";
|
|
3
|
-
import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
|
|
4
|
-
import { useId as useId$1 } from "../../hooks/useId.js";
|
|
5
|
-
import { isSlot } from "../../utils/is-slot.js";
|
|
6
|
-
import { useSlots } from "../../hooks/useSlots.js";
|
|
7
|
-
import Spinner from "../../Spinner/Spinner.js";
|
|
8
|
-
import { invariant } from "../../utils/invariant.js";
|
|
9
|
-
import { IconButton } from "../../Button/IconButton.js";
|
|
10
1
|
import { ButtonComponent } from "../../Button/Button.js";
|
|
11
|
-
import {
|
|
12
|
-
import { ActionListContainerContext } from "../../ActionList/ActionListContainerContext.js";
|
|
2
|
+
import { IconButton } from "../../Button/IconButton.js";
|
|
13
3
|
import Heading from "../../Heading/Heading.js";
|
|
14
|
-
import Link from "../../Link/Link.js";
|
|
15
|
-
import { BaseOverlay } from "../../Overlay/Overlay.js";
|
|
16
|
-
import { heightMap } from "../../Overlay/constants.js";
|
|
17
4
|
import TextInput_default from "../../TextInput/TextInput.js";
|
|
18
|
-
import
|
|
5
|
+
import Spinner from "../../Spinner/Spinner.js";
|
|
6
|
+
import Link from "../../Link/Link.js";
|
|
19
7
|
import Checkbox from "../../Checkbox/Checkbox.js";
|
|
8
|
+
import { useFormControlForwardedProps } from "../../FormControl/_FormControlContext.js";
|
|
20
9
|
import Octicon from "../../Octicon/Octicon.js";
|
|
10
|
+
import { ActionListContainerContext } from "../../ActionList/ActionListContainerContext.js";
|
|
11
|
+
import { useSlots } from "../../hooks/useSlots.js";
|
|
12
|
+
import { useProvidedRefOrCreate } from "../../hooks/useProvidedRefOrCreate.js";
|
|
13
|
+
import { useId as useId$1 } from "../../hooks/useId.js";
|
|
14
|
+
import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
|
|
15
|
+
import { BaseOverlay } from "../../Overlay/Overlay.js";
|
|
16
|
+
import { heightMap } from "../../Overlay/constants.js";
|
|
21
17
|
import { InputLabel } from "../../internal/components/InputLabel.js";
|
|
18
|
+
import { invariant } from "../../utils/invariant.js";
|
|
19
|
+
import { AriaStatus } from "../../live-region/AriaStatus.js";
|
|
20
|
+
import { useResponsiveValue } from "../../hooks/useResponsiveValue.js";
|
|
22
21
|
import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
|
|
22
|
+
import { isSlot } from "../../utils/is-slot.js";
|
|
23
23
|
import React, { useEffect, useState } from "react";
|
|
24
24
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { clsx } from "clsx";
|
|
26
26
|
import { AlertIcon, ArrowLeftIcon, FilterRemoveIcon, SearchIcon, XCircleFillIcon, XIcon } from "@primer/octicons-react";
|
|
27
|
-
|
|
27
|
+
// src/experimental/SelectPanel2/SelectPanel.tsx
|
|
28
28
|
const SelectPanelContext = /*#__PURE__*/ React.createContext({
|
|
29
29
|
title: "",
|
|
30
30
|
description: void 0,
|
|
@@ -436,5 +436,4 @@ const SelectPanel = Object.assign(Panel, {
|
|
|
436
436
|
Message: SelectPanelMessage,
|
|
437
437
|
SecondaryAction: SelectPanelSecondaryAction
|
|
438
438
|
});
|
|
439
|
-
//#endregion
|
|
440
439
|
export { SelectPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./SelectPanel-917fdaef.css";
|
|
2
|
-
|
|
2
|
+
// src/experimental/SelectPanel2/SelectPanel.module.css.js
|
|
3
3
|
var SelectPanel_module_css_default = {
|
|
4
4
|
"Overlay": "prc-SelectPanel2-Overlay--Q-FI",
|
|
5
5
|
"Form": "prc-SelectPanel2-Form-bZ9HS",
|
|
@@ -28,5 +28,4 @@ var SelectPanel_module_css_default = {
|
|
|
28
28
|
"MessageInline": "prc-SelectPanel2-MessageInline-sErQf",
|
|
29
29
|
"Header": "prc-SelectPanel2-Header-LKyEJ"
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { SelectPanel_module_css_default as default };
|