@primer/react 38.46.0 → 38.47.0-rc.0f998b98f
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 +12 -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 +9 -10
- 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 +408 -170
- 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 +3 -4
- 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 +1 -2
- 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 +2 -3
- 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 +8 -9
- 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 +1 -2
- 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 +7 -8
- 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 +1 -2
- 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 +1 -2
- 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 +3 -3
package/dist/Portal/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PortalContext } from "./PortalContext.js";
|
|
2
2
|
import { registerPortalRoot } from "./portalRoot.js";
|
|
3
3
|
import { Portal } from "./Portal.js";
|
|
4
|
-
|
|
4
|
+
// src/Portal/index.ts
|
|
5
5
|
var Portal_default = Portal;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { PortalContext, Portal_default as default, registerPortalRoot };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/Portal/portalRoot.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Register a container to serve as a portal root.
|
|
4
3
|
* @param root The element that will be the root for portals created in this container
|
|
@@ -6,5 +5,4 @@
|
|
|
6
5
|
* If name is not specified, registers the default portal root.
|
|
7
6
|
*/
|
|
8
7
|
declare function registerPortalRoot(root: Element, name?: string): void;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { registerPortalRoot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Portal/portalRoot.ts
|
|
2
2
|
const PRIMER_PORTAL_ROOT_ID = "__primerPortalRoot__";
|
|
3
3
|
const DEFAULT_PORTAL_CONTAINER_NAME = "__default__";
|
|
4
4
|
const portalRootRegistry = {};
|
|
@@ -32,5 +32,4 @@ function ensureDefaultPortal() {
|
|
|
32
32
|
function getPortalRoot(name) {
|
|
33
33
|
return portalRootRegistry[name];
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { DEFAULT_PORTAL_CONTAINER_NAME, ensureDefaultPortal, getPortalRoot, registerPortalRoot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ProgressBar/ProgressBar.d.ts
|
|
4
4
|
type ProgressProp = {
|
|
5
5
|
className?: string;
|
|
6
6
|
progress?: string | number;
|
|
@@ -19,5 +19,4 @@ type ProgressBarProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
19
19
|
bg?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
} & StyledProgressContainerProps & ProgressProp;
|
|
22
|
-
//#endregion
|
|
23
22
|
export { ProgressBarItemProps, ProgressBarProps };
|
|
@@ -3,7 +3,7 @@ import ProgressBar_module_css_default from "./ProgressBar.module.css.js";
|
|
|
3
3
|
import React, { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
// src/ProgressBar/ProgressBar.tsx
|
|
7
7
|
const Item = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
8
8
|
const $ = c(32);
|
|
9
9
|
let ariaLabel;
|
|
@@ -210,5 +210,4 @@ const ProgressBar = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
|
210
210
|
return t7;
|
|
211
211
|
});
|
|
212
212
|
ProgressBar.displayName = "ProgressBar";
|
|
213
|
-
//#endregion
|
|
214
213
|
export { Item, ProgressBar };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./ProgressBar-3d1db6c7.css";
|
|
2
|
-
|
|
2
|
+
// src/ProgressBar/ProgressBar.module.css.js
|
|
3
3
|
var ProgressBar_module_css_default = {
|
|
4
4
|
"ProgressBarItem": "prc-ProgressBar-ProgressBarItem-mDIlB",
|
|
5
5
|
"shimmer": "prc-ProgressBar-shimmer-hIHBF",
|
|
6
6
|
"ProgressBarContainer": "prc-ProgressBar-ProgressBarContainer-tCYE2"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ProgressBar_module_css_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgressBarItemProps, ProgressBarProps } from "./ProgressBar.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ProgressBar/index.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Collection of ProgressBar related components.
|
|
6
6
|
*/
|
|
@@ -25,5 +25,4 @@ declare const ProgressBar: import("react").ForwardRefExoticComponent<import("rea
|
|
|
25
25
|
bg?: string;
|
|
26
26
|
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { ProgressBar, type ProgressBarItemProps, type ProgressBarProps };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Item, ProgressBar as ProgressBar$1 } from "./ProgressBar.js";
|
|
2
|
-
|
|
2
|
+
// src/ProgressBar/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Collection of ProgressBar related components.
|
|
5
5
|
*/
|
|
6
6
|
const ProgressBar = Object.assign(ProgressBar$1, { Item });
|
|
7
|
-
//#endregion
|
|
8
7
|
export { ProgressBar };
|
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
2
|
import React, { InputHTMLAttributes } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Radio/Radio.d.ts
|
|
5
5
|
type RadioProps = {
|
|
6
6
|
/**
|
|
7
7
|
* A unique value that is never shown to the user.
|
|
@@ -34,5 +34,4 @@ type RadioProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
36
36
|
declare const _default: WithSlotMarker<typeof Radio>;
|
|
37
|
-
//#endregion
|
|
38
37
|
export { RadioProps, _default as default };
|
package/dist/Radio/Radio.js
CHANGED
|
@@ -5,7 +5,7 @@ import Radio_module_css_default from "./Radio.module.css.js";
|
|
|
5
5
|
import React, { useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
// src/Radio/Radio.tsx
|
|
9
9
|
/**
|
|
10
10
|
* An accessible, native radio component for selecting one option from a list.
|
|
11
11
|
*/
|
|
@@ -97,5 +97,4 @@ const Radio = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
97
97
|
});
|
|
98
98
|
Radio.displayName = "Radio";
|
|
99
99
|
Radio.__SLOT__ = Symbol("Radio");
|
|
100
|
-
//#endregion
|
|
101
100
|
export { Radio as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
2
2
|
import { CheckboxOrRadioGroupLabelProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
3
|
-
import { CheckboxOrRadioGroupValidationProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
4
3
|
import { CheckboxOrRadioGroupProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
4
|
+
import { CheckboxOrRadioGroupValidationProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
5
5
|
import React, { ChangeEvent, FC } from "react";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/RadioGroup/RadioGroup.d.ts
|
|
8
8
|
type RadioGroupProps = {
|
|
9
9
|
/**
|
|
10
10
|
* An onChange handler that gets called when the selection changes
|
|
@@ -24,5 +24,4 @@ declare const _default: FC<React.PropsWithChildren<RadioGroupProps>> & {
|
|
|
24
24
|
Label: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupLabelProps>>;
|
|
25
25
|
Validation: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupValidationProps>>;
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { RadioGroupProps, _default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
3
|
-
import { RadioGroupContext } from "./RadioGroupContext.js";
|
|
2
|
+
import CheckboxOrRadioGroup_default from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
4
3
|
import CheckboxOrRadioGroupCaption from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js";
|
|
5
4
|
import CheckboxOrRadioGroupLabel from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
6
5
|
import CheckboxOrRadioGroupValidation from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
7
|
-
import
|
|
6
|
+
import { useRenderForcingRef } from "../hooks/useRenderForcingRef.js";
|
|
7
|
+
import { RadioGroupContext } from "./RadioGroupContext.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/RadioGroup/RadioGroup.tsx
|
|
10
10
|
const RadioGroup = (t0) => {
|
|
11
11
|
const $ = c(23);
|
|
12
12
|
let children;
|
|
@@ -98,5 +98,4 @@ var RadioGroup_default = Object.assign(RadioGroup, {
|
|
|
98
98
|
Label: CheckboxOrRadioGroupLabel,
|
|
99
99
|
Validation: CheckboxOrRadioGroupValidation
|
|
100
100
|
});
|
|
101
|
-
//#endregion
|
|
102
101
|
export { RadioGroup_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "../utils/types/ComponentProps.js";
|
|
2
2
|
import { RelativeTimeElement } from "@github/relative-time-element";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/RelativeTime/RelativeTime.d.ts
|
|
5
5
|
declare const RelativeTimeComponent: import("@lit-labs/react").ReactWebComponent<RelativeTimeElement, {}>;
|
|
6
6
|
declare function RelativeTime({
|
|
7
7
|
date,
|
|
@@ -11,5 +11,4 @@ declare function RelativeTime({
|
|
|
11
11
|
...props
|
|
12
12
|
}: RelativeTimeProps): import("react").JSX.Element;
|
|
13
13
|
type RelativeTimeProps = ComponentProps<typeof RelativeTimeComponent>;
|
|
14
|
-
//#endregion
|
|
15
14
|
export { RelativeTimeProps, RelativeTime as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { createComponent } from "../utils/create-component.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { RelativeTimeElement } from "@github/relative-time-element";
|
|
5
|
-
|
|
5
|
+
// src/RelativeTime/RelativeTime.tsx
|
|
6
6
|
const RelativeTimeComponent = createComponent(RelativeTimeElement, "relative-time");
|
|
7
7
|
const localeOptions = {
|
|
8
8
|
month: "short",
|
|
@@ -67,5 +67,4 @@ function RelativeTime(t0) {
|
|
|
67
67
|
} else t3 = $[15];
|
|
68
68
|
return t3;
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { RelativeTime as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ScrollableRegion/ScrollableRegion.d.ts
|
|
4
4
|
type Labelled = {
|
|
5
5
|
'aria-label': string;
|
|
6
6
|
'aria-labelledby'?: never;
|
|
@@ -16,5 +16,4 @@ declare function ScrollableRegion({
|
|
|
16
16
|
className,
|
|
17
17
|
...rest
|
|
18
18
|
}: ScrollableRegionProps): React.JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
19
|
export { ScrollableRegion, type ScrollableRegionProps };
|
|
@@ -4,7 +4,7 @@ import ScrollableRegion_module_css_default from "./ScrollableRegion.module.css.j
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
// src/ScrollableRegion/ScrollableRegion.tsx
|
|
8
8
|
function ScrollableRegion(t0) {
|
|
9
9
|
const $ = c(17);
|
|
10
10
|
let children;
|
|
@@ -67,5 +67,4 @@ function ScrollableRegion(t0) {
|
|
|
67
67
|
} else t3 = $[16];
|
|
68
68
|
return t3;
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { ScrollableRegion };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./ScrollableRegion-c1018dbe.css";
|
|
2
|
-
|
|
2
|
+
// src/ScrollableRegion/ScrollableRegion.module.css.js
|
|
3
3
|
var ScrollableRegion_module_css_default = { "ScrollableRegion": "prc-ScrollableRegion-ScrollableRegion--xtjK" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { ScrollableRegion_module_css_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
2
|
-
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
3
2
|
import { SegmentedControlDividerProps } from "./SegmentedControlDivider.js";
|
|
4
3
|
import { SegmentedControlActionProps } from "./SegmentedControlAction.js";
|
|
5
4
|
import { SegmentedControlButtonProps } from "./SegmentedControlButton.js";
|
|
6
5
|
import { SegmentedControlIconButtonProps } from "./SegmentedControlIconButton.js";
|
|
6
|
+
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
7
7
|
import { WidthOnlyViewportRangeKeys } from "../utils/types/ViewportRangeKeys.js";
|
|
8
8
|
import React from "react";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/SegmentedControl/SegmentedControl.d.ts
|
|
11
11
|
type SegmentedControlProps = {
|
|
12
12
|
'aria-label'?: string;
|
|
13
13
|
'aria-labelledby'?: string;
|
|
@@ -24,5 +24,4 @@ declare const SegmentedControl: React.FC<React.PropsWithChildren<SegmentedContro
|
|
|
24
24
|
Divider: FCWithSlotMarker<SegmentedControlDividerProps>;
|
|
25
25
|
Action: FCWithSlotMarker<SegmentedControlActionProps>;
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { SegmentedControl, SegmentedControlProps };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
3
|
-
import { isSlot } from "../utils/is-slot.js";
|
|
4
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
5
|
-
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
6
|
-
import { ActionList } from "../ActionList/index.js";
|
|
7
|
-
import { ActionMenu } from "../ActionMenu/ActionMenu.js";
|
|
8
|
-
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
9
2
|
import SegmentedControlButton from "./SegmentedControlButton.js";
|
|
10
3
|
import { SegmentedControlIconButton } from "./SegmentedControlIconButton.js";
|
|
11
|
-
import { SegmentedControlActionContext } from "./SegmentedControlActionContext.js";
|
|
12
4
|
import SegmentedControlAction from "./SegmentedControlAction.js";
|
|
13
5
|
import SegmentedControlDivider from "./SegmentedControlDivider.js";
|
|
6
|
+
import { SegmentedControlActionContext } from "./SegmentedControlActionContext.js";
|
|
7
|
+
import { ActionList } from "../ActionList/index.js";
|
|
8
|
+
import { ActionMenu } from "../ActionMenu/ActionMenu.js";
|
|
9
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
10
|
+
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
11
|
+
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
12
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
13
|
+
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
14
14
|
import React, { useRef, useState } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { clsx } from "clsx";
|
|
17
17
|
import { isElement } from "react-is";
|
|
18
|
-
|
|
18
|
+
// src/SegmentedControl/SegmentedControl.tsx
|
|
19
19
|
const Root = (t0) => {
|
|
20
20
|
const $ = c(39);
|
|
21
21
|
let ariaLabel;
|
|
@@ -289,5 +289,4 @@ function _temp7(childArg_0) {
|
|
|
289
289
|
if (/*#__PURE__*/ React.isValidElement(childArg_0) && (childArg_0.type === SegmentedControlButton || isSlot(childArg_0, SegmentedControlButton))) return childArg_0.props.children;
|
|
290
290
|
return /*#__PURE__*/ React.isValidElement(childArg_0) ? childArg_0.props["aria-label"] : null;
|
|
291
291
|
}
|
|
292
|
-
//#endregion
|
|
293
292
|
export { SegmentedControl };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./SegmentedControl-99b8e34e.css";
|
|
2
|
-
|
|
2
|
+
// src/SegmentedControl/SegmentedControl.module.css.js
|
|
3
3
|
var SegmentedControl_module_css_default = {
|
|
4
4
|
"SegmentedControl": "prc-SegmentedControl-SegmentedControl-lqIXp",
|
|
5
5
|
"Item": "prc-SegmentedControl-Item-tSCQh",
|
|
@@ -15,5 +15,4 @@ var SegmentedControl_module_css_default = {
|
|
|
15
15
|
"IconButton": "prc-SegmentedControl-IconButton-tlzDE",
|
|
16
16
|
"LeadingIcon": "prc-SegmentedControl-LeadingIcon-74n5s"
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { SegmentedControl_module_css_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/SegmentedControl/SegmentedControlAction.d.ts
|
|
4
4
|
interface SegmentedControlActionProps {
|
|
5
5
|
label: string;
|
|
6
6
|
icon: ElementType;
|
|
@@ -8,5 +8,4 @@ interface SegmentedControlActionProps {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { SegmentedControlActionProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { IconButton } from "../Button/IconButton.js";
|
|
3
2
|
import { ActionList } from "../ActionList/index.js";
|
|
3
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
4
4
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
5
5
|
import { SegmentedControlActionContext } from "./SegmentedControlActionContext.js";
|
|
6
6
|
import { useContext } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/SegmentedControl/SegmentedControlAction.tsx
|
|
9
9
|
const SegmentedControlMenuAction = (t0) => {
|
|
10
10
|
const $ = c(6);
|
|
11
11
|
let children;
|
|
@@ -107,5 +107,4 @@ const SegmentedControlAction = (props) => {
|
|
|
107
107
|
};
|
|
108
108
|
SegmentedControlAction.displayName = "SegmentedControl.Action";
|
|
109
109
|
SegmentedControlAction.__SLOT__ = Symbol("SegmentedControl.Action");
|
|
110
|
-
//#endregion
|
|
111
110
|
export { SegmentedControlAction as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/SegmentedControl/SegmentedControlActionContext.ts
|
|
3
3
|
const SegmentedControlActionContext = /*#__PURE__*/ createContext("inline");
|
|
4
|
-
//#endregion
|
|
5
4
|
export { SegmentedControlActionContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from "react";
|
|
2
2
|
import { IconProps } from "@primer/octicons-react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/SegmentedControl/SegmentedControlButton.d.ts
|
|
5
5
|
type SegmentedControlButtonProps = {
|
|
6
6
|
/** The visible label rendered in the button */children: string; /** Whether the segment is selected. This is used for controlled `SegmentedControls`, and needs to be updated using the `onChange` handler on `SegmentedControl`. */
|
|
7
7
|
selected?: boolean; /** Whether the segment is selected. This is used for uncontrolled `SegmentedControls` to pick one `SegmentedControlButton` that is selected on the initial render. */
|
|
@@ -11,5 +11,4 @@ type SegmentedControlButtonProps = {
|
|
|
11
11
|
disabled?: boolean; /** Optional counter to display on the right side of the button */
|
|
12
12
|
count?: number | string;
|
|
13
13
|
} & ButtonHTMLAttributes<HTMLButtonElement | HTMLLIElement>;
|
|
14
|
-
//#endregion
|
|
15
14
|
export { SegmentedControlButtonProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
3
2
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
3
|
+
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { isElement } from "react-is";
|
|
7
|
-
|
|
7
|
+
// src/SegmentedControl/SegmentedControlButton.tsx
|
|
8
8
|
const SegmentedControlButton = (t0) => {
|
|
9
9
|
const $ = c(36);
|
|
10
10
|
let children;
|
|
@@ -154,5 +154,4 @@ const SegmentedControlButton = (t0) => {
|
|
|
154
154
|
return t12;
|
|
155
155
|
};
|
|
156
156
|
SegmentedControlButton.__SLOT__ = Symbol("SegmentedControl.Button");
|
|
157
|
-
//#endregion
|
|
158
157
|
export { SegmentedControlButton as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/SegmentedControl/SegmentedControlDivider.d.ts
|
|
4
4
|
type SegmentedControlDividerProps = {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: React.CSSProperties;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { SegmentedControlDividerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/SegmentedControl/SegmentedControlDivider.tsx
|
|
4
4
|
const SegmentedControlDivider = (t0) => {
|
|
5
5
|
const $ = c(3);
|
|
6
6
|
const { className, style } = t0;
|
|
@@ -20,5 +20,4 @@ const SegmentedControlDivider = (t0) => {
|
|
|
20
20
|
};
|
|
21
21
|
SegmentedControlDivider.displayName = "SegmentedControl.Divider";
|
|
22
22
|
SegmentedControlDivider.__SLOT__ = Symbol("SegmentedControl.Divider");
|
|
23
|
-
//#endregion
|
|
24
23
|
export { SegmentedControlDivider as default };
|
|
@@ -2,7 +2,7 @@ import { TooltipDirection } from "../TooltipV2/Tooltip.js";
|
|
|
2
2
|
import React, { ButtonHTMLAttributes } from "react";
|
|
3
3
|
import { IconProps } from "@primer/octicons-react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/SegmentedControl/SegmentedControlIconButton.d.ts
|
|
6
6
|
type SegmentedControlIconButtonProps = {
|
|
7
7
|
'aria-label': string; /** The icon that represents the segmented control item */
|
|
8
8
|
icon: React.FunctionComponent<React.PropsWithChildren<IconProps>> | React.ReactElement<any>; /** Whether the segment is selected. This is used for controlled SegmentedControls, and needs to be updated using the onChange handler on SegmentedControl. */
|
|
@@ -12,5 +12,4 @@ type SegmentedControlIconButtonProps = {
|
|
|
12
12
|
tooltipDirection?: TooltipDirection; /** Whether the button is disabled. */
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
} & ButtonHTMLAttributes<HTMLButtonElement | HTMLLIElement>;
|
|
15
|
-
//#endregion
|
|
16
15
|
export { SegmentedControlIconButtonProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
3
2
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
3
|
+
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { isElement } from "react-is";
|
|
7
|
-
|
|
7
|
+
// src/SegmentedControl/SegmentedControlIconButton.tsx
|
|
8
8
|
const SegmentedControlIconButton = (t0) => {
|
|
9
9
|
const $ = c(35);
|
|
10
10
|
let Icon;
|
|
@@ -131,5 +131,4 @@ const SegmentedControlIconButton = (t0) => {
|
|
|
131
131
|
return t13;
|
|
132
132
|
};
|
|
133
133
|
SegmentedControlIconButton.__SLOT__ = Symbol("SegmentedControl.IconButton");
|
|
134
|
-
//#endregion
|
|
135
134
|
export { SegmentedControlIconButton, SegmentedControlIconButton as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SegmentedControlActionProps } from "./SegmentedControlAction.js";
|
|
1
|
+
import { SegmentedControl, SegmentedControlProps } from "./SegmentedControl.js";
|
|
3
2
|
import { SegmentedControlButtonProps } from "./SegmentedControlButton.js";
|
|
4
3
|
import { SegmentedControlIconButtonProps } from "./SegmentedControlIconButton.js";
|
|
5
|
-
import {
|
|
4
|
+
import { SegmentedControlActionProps } from "./SegmentedControlAction.js";
|
|
5
|
+
import { SegmentedControlDividerProps } from "./SegmentedControlDivider.js";
|
|
6
6
|
export { SegmentedControl, type SegmentedControlActionProps, type SegmentedControlButtonProps, type SegmentedControlDividerProps, type SegmentedControlIconButtonProps, SegmentedControlProps };
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { StyledWrapperProps } from "../internal/components/TextInputWrapper.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/Select/Select.d.ts
|
|
6
6
|
type SelectProps = Omit<Omit<React.ComponentProps<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant' | 'contrast'>, 'multiple' | 'hasLeadingVisual' | 'hasTrailingVisual' | 'as'> & {
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
};
|
|
@@ -13,5 +13,4 @@ declare const _default: ForwardRefComponent<"select", SelectProps> & {
|
|
|
13
13
|
}>>;
|
|
14
14
|
OptGroup: React.FC<React.PropsWithChildren<React.HTMLProps<HTMLOptGroupElement>>>;
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { SelectProps, _default as default };
|
package/dist/Select/Select.js
CHANGED
|
@@ -4,7 +4,7 @@ import Select_module_css_default from "./Select.module.css.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
// src/Select/Select.tsx
|
|
8
8
|
const ArrowIndicatorSVG = (t0) => {
|
|
9
9
|
const $ = c(3);
|
|
10
10
|
const { className } = t0;
|
|
@@ -195,5 +195,4 @@ var Select_default = Object.assign(Select, {
|
|
|
195
195
|
Option,
|
|
196
196
|
OptGroup
|
|
197
197
|
});
|
|
198
|
-
//#endregion
|
|
199
198
|
export { Select_default as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./Select-ab428dc7.css";
|
|
2
|
-
|
|
2
|
+
// src/Select/Select.module.css.js
|
|
3
3
|
var Select_module_css_default = {
|
|
4
4
|
"Select": "prc-Select-Select-dJWwD",
|
|
5
5
|
"TextInputWrapper": "prc-Select-TextInputWrapper-5NYFF",
|
|
6
6
|
"Disabled": "prc-Select-Disabled-56BAq",
|
|
7
7
|
"ArrowIndicator": "prc-Select-ArrowIndicator-WjH-8"
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Select_module_css_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AlignContent, ButtonProps, LinkButtonProps, Size, VariantType } from "../Button/types.js";
|
|
2
|
-
import { AnchoredOverlayProps, AnchoredOverlayWrapperAnchorProps } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
3
2
|
import { SelectPanelMessageProps } from "./SelectPanelMessage.js";
|
|
3
|
+
import { AnchoredOverlayProps, AnchoredOverlayWrapperAnchorProps } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
4
4
|
import { FilteredActionListProps } from "../FilteredActionList/FilteredActionList.js";
|
|
5
5
|
import { ItemInput } from "../FilteredActionList/types.js";
|
|
6
6
|
import { OverlayProps } from "../Overlay/Overlay.js";
|
|
7
7
|
import React, { JSX } from "react";
|
|
8
8
|
import { IconProps } from "@primer/octicons-react";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/SelectPanel/SelectPanel.d.ts
|
|
11
11
|
interface SelectPanelSingleSelection {
|
|
12
12
|
selected: ItemInput | undefined;
|
|
13
13
|
onSelectedChange: (selected: ItemInput | undefined) => void;
|
|
@@ -131,5 +131,4 @@ declare const SelectPanel: typeof Panel & {
|
|
|
131
131
|
} & React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
132
132
|
Message: React.FC<SelectPanelMessageProps>;
|
|
133
133
|
};
|
|
134
|
-
//#endregion
|
|
135
134
|
export { InitialLoadingType, SelectPanel, SelectPanelProps, SelectPanelSecondaryAction };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
2
|
+
import { FilteredActionList } from "../FilteredActionList/index.js";
|
|
3
|
+
import Heading from "../Heading/Heading.js";
|
|
4
|
+
import { SelectPanelMessage } from "./SelectPanelMessage.js";
|
|
5
|
+
import { ButtonComponent } from "../Button/Button.js";
|
|
6
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
7
|
+
import { LinkButton } from "../Button/LinkButton.js";
|
|
1
8
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
2
|
-
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
3
|
-
import { isAlphabetKey } from "../hooks/useMnemonics.js";
|
|
4
9
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
5
|
-
import {
|
|
10
|
+
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
6
11
|
import useSafeTimeout from "../hooks/useSafeTimeout.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
12
|
+
import { FilteredActionListLoadingTypes } from "../FilteredActionList/constants.js";
|
|
13
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
14
|
+
import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
|
|
10
15
|
import { useResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
11
|
-
import Heading from "../Heading/Heading.js";
|
|
12
|
-
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
13
16
|
import { Banner } from "../Banner/index.js";
|
|
17
|
+
import { isAlphabetKey } from "../hooks/useMnemonics.js";
|
|
14
18
|
import { useFormControlContext } from "../FormControl/_FormControlContext.js";
|
|
15
|
-
import { FilteredActionListLoadingTypes } from "../FilteredActionList/constants.js";
|
|
16
|
-
import { FilteredActionList } from "../FilteredActionList/index.js";
|
|
17
|
-
import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
|
|
18
|
-
import { SelectPanelMessage } from "./SelectPanelMessage.js";
|
|
19
19
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
20
20
|
import { announce, announceFromElement } from "@primer/live-region-element";
|
|
21
21
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
import { clsx } from "clsx";
|
|
23
23
|
import { SearchIcon, TriangleDownIcon, XIcon } from "@primer/octicons-react";
|
|
24
24
|
import { debounce } from "@github/mini-throttle";
|
|
25
|
-
|
|
25
|
+
// src/SelectPanel/SelectPanel.tsx
|
|
26
26
|
const SHORT_DELAY_MS = 500;
|
|
27
27
|
const LONG_DELAY_MS = 1e3;
|
|
28
28
|
const EMPTY_MESSAGE = {
|
|
@@ -695,5 +695,4 @@ const SelectPanel = Object.assign(Panel, {
|
|
|
695
695
|
SecondaryActionLink: SecondaryLink,
|
|
696
696
|
Message: SelectPanelMessage
|
|
697
697
|
});
|
|
698
|
-
//#endregion
|
|
699
698
|
export { SelectPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./SelectPanel-00796bf3.css";
|
|
2
|
-
|
|
2
|
+
// src/SelectPanel/SelectPanel.module.css.js
|
|
3
3
|
var SelectPanel_module_css_default = {
|
|
4
4
|
"Overlay": "prc-SelectPanel-Overlay-tEbxh",
|
|
5
5
|
"Wrapper": "prc-SelectPanel-Wrapper-OD-e6",
|
|
@@ -23,5 +23,4 @@ var SelectPanel_module_css_default = {
|
|
|
23
23
|
"Backdrop": "prc-SelectPanel-Backdrop-ukvA6",
|
|
24
24
|
"TextInput": "prc-SelectPanel-TextInput--Qqkq"
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { SelectPanel_module_css_default as default };
|