@primer/react 38.47.0-rc.cdd1ab1f0 → 38.47.0-rc.fcdf0c9da
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionBar/ActionBar.d.ts +2 -1
- package/dist/ActionBar/ActionBar.js +9 -8
- package/dist/ActionBar/ActionBar.module.css.js +2 -1
- package/dist/ActionBar/index.d.ts +3 -1
- package/dist/ActionBar/index.js +2 -1
- package/dist/ActionList/ActionList.module.css.js +2 -1
- package/dist/ActionList/ActionListContainerContext.js +2 -1
- package/dist/ActionList/Description.d.ts +2 -1
- package/dist/ActionList/Description.js +3 -2
- package/dist/ActionList/Divider.d.ts +2 -1
- package/dist/ActionList/Divider.js +2 -1
- package/dist/ActionList/Group.d.ts +3 -2
- package/dist/ActionList/Group.js +4 -3
- package/dist/ActionList/Group.module.css.js +2 -1
- package/dist/ActionList/GroupContext.js +2 -1
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +2 -1
- package/dist/ActionList/GroupHeadingTrailingAction.js +2 -1
- package/dist/ActionList/Heading.d.ts +2 -1
- package/dist/ActionList/Heading.js +5 -4
- package/dist/ActionList/Heading.module.css.js +2 -1
- package/dist/ActionList/Item.js +12 -11
- package/dist/ActionList/LinkItem.d.ts +2 -1
- package/dist/ActionList/LinkItem.js +4 -3
- package/dist/ActionList/List.js +10 -9
- package/dist/ActionList/Selection.js +6 -5
- package/dist/ActionList/TrailingAction.d.ts +2 -1
- package/dist/ActionList/TrailingAction.js +3 -2
- package/dist/ActionList/Visuals.d.ts +2 -1
- package/dist/ActionList/Visuals.js +3 -2
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +8 -7
- package/dist/ActionList/shared.d.ts +2 -1
- package/dist/ActionList/shared.js +2 -1
- package/dist/ActionMenu/ActionMenu.d.ts +4 -3
- package/dist/ActionMenu/ActionMenu.js +9 -8
- package/dist/ActionMenu/ActionMenu.module.css.js +2 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +3 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -7
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +2 -1
- package/dist/Autocomplete/Autocomplete.d.ts +4 -3
- package/dist/Autocomplete/Autocomplete.js +3 -2
- package/dist/Autocomplete/AutocompleteContext.js +2 -1
- package/dist/Autocomplete/AutocompleteInput.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteInput.js +4 -3
- package/dist/Autocomplete/AutocompleteMenu.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteMenu.js +6 -5
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +2 -1
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +3 -2
- package/dist/Autocomplete/AutocompleteOverlay.js +4 -3
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +2 -1
- package/dist/Avatar/Avatar.d.ts +2 -1
- package/dist/Avatar/Avatar.js +1 -0
- package/dist/Avatar/Avatar.module.css.js +2 -1
- package/dist/AvatarStack/AvatarStack.d.ts +2 -1
- package/dist/AvatarStack/AvatarStack.js +2 -1
- package/dist/AvatarStack/AvatarStack.module.css.js +2 -1
- package/dist/Banner/Banner.d.ts +2 -1
- package/dist/Banner/Banner.js +6 -5
- package/dist/Banner/Banner.module.css.js +2 -1
- package/dist/Banner/index.d.ts +3 -2
- package/dist/Banner/index.js +2 -1
- package/dist/BaseStyles.d.ts +2 -0
- package/dist/BaseStyles.js +2 -1
- package/dist/BaseStyles.module.css.js +2 -1
- package/dist/Blankslate/Blankslate.d.ts +2 -1
- package/dist/Blankslate/Blankslate.js +3 -2
- package/dist/Blankslate/Blankslate.module.css.js +2 -1
- package/dist/Blankslate/BlankslateContext.js +2 -1
- package/dist/Blankslate/index.d.ts +2 -1
- package/dist/Blankslate/index.js +2 -1
- package/dist/BranchName/BranchName.d.ts +2 -1
- package/dist/BranchName/BranchName.js +3 -2
- package/dist/BranchName/BranchName.module.css.js +2 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +7 -6
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -1
- package/dist/Button/Button.d.ts +3 -2
- package/dist/Button/Button.js +2 -1
- package/dist/Button/ButtonBase.d.ts +2 -1
- package/dist/Button/ButtonBase.js +4 -3
- package/dist/Button/ButtonBase.module.css.js +2 -1
- package/dist/Button/IconButton.d.ts +3 -2
- package/dist/Button/IconButton.js +4 -3
- package/dist/Button/LinkButton.d.ts +3 -2
- package/dist/Button/LinkButton.js +2 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +2 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/ButtonGroup/ButtonGroup.js +4 -3
- package/dist/ButtonGroup/ButtonGroup.module.css.js +2 -1
- package/dist/Card/Card.d.ts +2 -1
- package/dist/Card/Card.js +4 -3
- package/dist/Card/Card.module.css.js +2 -1
- package/dist/Card/index.d.ts +2 -1
- package/dist/Card/index.js +2 -1
- package/dist/Checkbox/Checkbox.d.ts +3 -2
- package/dist/Checkbox/Checkbox.js +4 -3
- package/dist/Checkbox/Checkbox.module.css.js +2 -1
- package/dist/Checkbox/shared.module.css.js +2 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +3 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +7 -6
- package/dist/CheckboxGroup/CheckboxGroupContext.js +2 -1
- package/dist/CircleBadge/CircleBadge.d.ts +2 -0
- package/dist/CircleBadge/CircleBadge.js +2 -1
- package/dist/CircleBadge/CircleBadge.module.css.js +2 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +2 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +2 -1
- package/dist/ConfirmationDialog/useConfirm.d.ts +2 -1
- package/dist/ConfirmationDialog/useConfirm.js +2 -1
- package/dist/CounterLabel/CounterLabel.d.ts +2 -1
- package/dist/CounterLabel/CounterLabel.js +2 -1
- package/dist/CounterLabel/CounterLabel.module.css.js +2 -1
- package/dist/DataTable/DataTable.d.ts +5 -4
- package/dist/DataTable/DataTable.js +4 -3
- package/dist/DataTable/ErrorDialog.d.ts +2 -1
- package/dist/DataTable/ErrorDialog.js +2 -1
- package/dist/DataTable/Pagination.d.ts +2 -1
- package/dist/DataTable/Pagination.js +3 -2
- package/dist/DataTable/Pagination.module.css.js +2 -1
- package/dist/DataTable/Table.d.ts +4 -3
- package/dist/DataTable/Table.js +5 -4
- package/dist/DataTable/Table.module.css.js +2 -1
- package/dist/DataTable/TableBulkActions.d.ts +2 -1
- package/dist/DataTable/TableBulkActions.js +3 -2
- package/dist/DataTable/TableBulkActions.module.css.js +2 -1
- package/dist/DataTable/TableGroup.d.ts +2 -1
- package/dist/DataTable/TableGroup.js +5 -4
- package/dist/DataTable/TableGroupContext.js +2 -1
- package/dist/DataTable/column.d.ts +2 -1
- package/dist/DataTable/column.js +2 -1
- package/dist/DataTable/index.d.ts +5 -4
- package/dist/DataTable/index.js +4 -3
- package/dist/DataTable/row.d.ts +2 -0
- package/dist/DataTable/sorting.d.ts +2 -0
- package/dist/DataTable/sorting.js +2 -1
- package/dist/DataTable/useTable.js +3 -2
- package/dist/DataTable/utils.d.ts +2 -0
- package/dist/Details/Details.d.ts +2 -1
- package/dist/Details/Details.js +3 -2
- package/dist/Details/Details.module.css.js +2 -1
- package/dist/Dialog/Dialog.d.ts +3 -2
- package/dist/Dialog/Dialog.js +8 -7
- package/dist/Dialog/Dialog.module.css.js +2 -1
- package/dist/Dialog/DialogContext.js +2 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +2 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FeatureFlags/FeatureFlagContext.js +2 -1
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +2 -0
- package/dist/FeatureFlags/FeatureFlagScope.js +2 -1
- package/dist/FeatureFlags/FeatureFlags.d.ts +2 -1
- package/dist/FeatureFlags/FeatureFlags.js +3 -2
- package/dist/FeatureFlags/useFeatureFlag.d.ts +2 -0
- package/dist/FeatureFlags/useFeatureFlag.js +2 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionList.js +12 -11
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -1
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.js +2 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -1
- package/dist/FilteredActionList/constants.d.ts +2 -0
- package/dist/FilteredActionList/constants.js +2 -1
- package/dist/FilteredActionList/index.d.ts +3 -2
- package/dist/FilteredActionList/index.js +4 -3
- package/dist/FilteredActionList/types.d.ts +4 -3
- package/dist/FilteredActionList/useAnnouncements.js +2 -1
- package/dist/Flash/Flash.d.ts +2 -1
- package/dist/Flash/Flash.js +2 -1
- package/dist/Flash/Flash.module.css.js +2 -1
- package/dist/FormControl/FormControl.d.ts +2 -1
- package/dist/FormControl/FormControl.js +9 -8
- package/dist/FormControl/FormControl.module.css.js +2 -1
- package/dist/FormControl/FormControlCaption.d.ts +2 -1
- package/dist/FormControl/FormControlCaption.js +3 -2
- package/dist/FormControl/FormControlCaption.module.css.js +2 -1
- package/dist/FormControl/FormControlLabel.d.ts +2 -1
- package/dist/FormControl/FormControlLabel.js +2 -1
- package/dist/FormControl/FormControlLeadingVisual.js +2 -1
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +2 -1
- package/dist/FormControl/_FormControlContext.d.ts +2 -1
- package/dist/FormControl/_FormControlContext.js +2 -1
- package/dist/FormControl/_FormControlContextProvider.js +2 -1
- package/dist/FormControl/_FormControlValidation.d.ts +2 -1
- package/dist/FormControl/_FormControlValidation.js +2 -1
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +2 -1
- package/dist/Header/Header.js +2 -1
- package/dist/Header/Header.module.css.js +2 -1
- package/dist/Heading/Heading.d.ts +2 -1
- package/dist/Heading/Heading.js +3 -2
- package/dist/Heading/Heading.module.css.js +2 -1
- package/dist/Hidden/Hidden.d.ts +2 -1
- package/dist/Hidden/Hidden.js +2 -1
- package/dist/Hidden/Hidden.module.css.js +2 -1
- package/dist/InlineMessage/InlineMessage.d.ts +2 -1
- package/dist/InlineMessage/InlineMessage.js +2 -1
- package/dist/InlineMessage/InlineMessage.module.css.js +2 -1
- package/dist/KeybindingHint/KeybindingHint.d.ts +2 -1
- package/dist/KeybindingHint/KeybindingHint.js +2 -1
- package/dist/KeybindingHint/KeybindingHint.module.css.js +2 -1
- package/dist/KeybindingHint/components/Chord.js +2 -1
- package/dist/KeybindingHint/components/Chord.module.css.js +2 -1
- package/dist/KeybindingHint/components/Key.js +2 -1
- package/dist/KeybindingHint/components/Sequence.js +2 -1
- package/dist/KeybindingHint/components/utils.js +2 -1
- package/dist/KeybindingHint/key-names.js +2 -1
- package/dist/KeybindingHint/platform.d.ts +2 -0
- package/dist/KeybindingHint/platform.js +2 -1
- package/dist/KeybindingHint/props.d.ts +2 -0
- package/dist/KeybindingHint/utils.d.ts +2 -1
- package/dist/KeybindingHint/utils.js +2 -1
- package/dist/Label/Label.d.ts +2 -1
- package/dist/Label/Label.js +2 -1
- package/dist/Label/Label.module.css.js +2 -1
- package/dist/Label/index.js +2 -1
- package/dist/LabelGroup/LabelGroup.d.ts +2 -1
- package/dist/LabelGroup/LabelGroup.js +4 -3
- package/dist/LabelGroup/LabelGroup.module.css.js +2 -1
- package/dist/Link/Link.d.ts +3 -2
- package/dist/Link/Link.js +4 -3
- package/dist/Link/Link.module.css.js +2 -1
- package/dist/NavList/NavList.d.ts +5 -4
- package/dist/NavList/NavList.js +9 -8
- package/dist/NavList/NavList.module.css.js +2 -1
- package/dist/Octicon/Octicon.d.ts +2 -1
- package/dist/Octicon/Octicon.js +2 -1
- package/dist/Overlay/Overlay.d.ts +3 -2
- package/dist/Overlay/Overlay.js +4 -3
- package/dist/Overlay/Overlay.module.css.js +2 -1
- package/dist/Overlay/constants.d.ts +2 -0
- package/dist/Overlay/constants.js +2 -1
- package/dist/PageHeader/PageHeader.d.ts +5 -4
- package/dist/PageHeader/PageHeader.js +8 -7
- package/dist/PageHeader/PageHeader.module.css.js +2 -1
- package/dist/PageLayout/DragHandle.d.ts +2 -1
- package/dist/PageLayout/DragHandle.js +2 -1
- package/dist/PageLayout/PageLayout.d.ts +3 -2
- package/dist/PageLayout/PageLayout.js +4 -3
- package/dist/PageLayout/PageLayout.module.css.js +2 -1
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +2 -1
- package/dist/PageLayout/usePaneWidth.d.ts +2 -1
- package/dist/PageLayout/usePaneWidth.js +2 -1
- package/dist/Pagehead/Pagehead.d.ts +2 -1
- package/dist/Pagehead/Pagehead.js +2 -1
- package/dist/Pagehead/Pagehead.module.css.js +2 -1
- package/dist/Pagination/Pagination.d.ts +3 -2
- package/dist/Pagination/Pagination.js +3 -2
- package/dist/Pagination/Pagination.module.css.js +2 -1
- package/dist/Pagination/index.js +2 -1
- package/dist/Pagination/model.d.ts +2 -0
- package/dist/Pagination/model.js +2 -1
- package/dist/Popover/Popover.d.ts +2 -1
- package/dist/Popover/Popover.js +4 -3
- package/dist/Popover/Popover.module.css.js +2 -1
- package/dist/Portal/Portal.d.ts +2 -1
- package/dist/Portal/Portal.js +2 -1
- package/dist/Portal/PortalContext.d.ts +2 -1
- package/dist/Portal/PortalContext.js +2 -1
- package/dist/Portal/index.js +2 -1
- package/dist/Portal/portalRoot.d.ts +2 -0
- package/dist/Portal/portalRoot.js +2 -1
- package/dist/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/ProgressBar/ProgressBar.js +2 -1
- package/dist/ProgressBar/ProgressBar.module.css.js +2 -1
- package/dist/ProgressBar/index.d.ts +2 -1
- package/dist/ProgressBar/index.js +2 -1
- package/dist/Radio/Radio.d.ts +2 -1
- package/dist/Radio/Radio.js +2 -1
- package/dist/Radio/Radio.module.css.js +2 -1
- package/dist/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/RadioGroup/RadioGroup.js +5 -4
- package/dist/RadioGroup/RadioGroupContext.js +2 -1
- package/dist/RelativeTime/RelativeTime.d.ts +2 -1
- package/dist/RelativeTime/RelativeTime.js +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +2 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/dist/SegmentedControl/SegmentedControl.js +10 -9
- package/dist/SegmentedControl/SegmentedControl.module.css.js +2 -1
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlAction.js +3 -2
- package/dist/SegmentedControl/SegmentedControlActionContext.js +2 -1
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +3 -2
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlDivider.js +2 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +3 -2
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +3 -2
- package/dist/Select/Select.js +2 -1
- package/dist/Select/Select.module.css.js +2 -1
- package/dist/SelectPanel/SelectPanel.d.ts +3 -2
- package/dist/SelectPanel/SelectPanel.js +14 -13
- package/dist/SelectPanel/SelectPanel.module.css.js +2 -1
- package/dist/SelectPanel/SelectPanelMessage.d.ts +2 -1
- package/dist/SelectPanel/SelectPanelMessage.js +2 -1
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +2 -1
- package/dist/SideNav.js +2 -1
- package/dist/SideNav.module.css.js +2 -1
- package/dist/Skeleton/SkeletonBox.d.ts +2 -1
- package/dist/Skeleton/SkeletonBox.js +2 -1
- package/dist/Skeleton/SkeletonBox.module.css.js +2 -1
- package/dist/Skeleton/skeleton.module.css.js +2 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +2 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +3 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +2 -1
- package/dist/SkeletonText/SkeletonText.d.ts +2 -1
- package/dist/SkeletonText/SkeletonText.js +3 -2
- package/dist/SkeletonText/SkeletonText.module.css.js +2 -1
- package/dist/Spinner/Spinner.d.ts +2 -1
- package/dist/Spinner/Spinner.js +2 -1
- package/dist/Spinner/Spinner.module.css.js +2 -1
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +2 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +2 -1
- package/dist/Stack/Stack.d.ts +2 -1
- package/dist/Stack/Stack.js +2 -1
- package/dist/Stack/Stack.module.css.js +2 -1
- package/dist/Stack/index.d.ts +3 -2
- package/dist/Stack/index.js +2 -1
- package/dist/StateLabel/StateLabel.d.ts +2 -1
- package/dist/StateLabel/StateLabel.js +2 -1
- package/dist/StateLabel/StateLabel.module.css.js +2 -1
- package/dist/SubNav/SubNav.d.ts +2 -1
- package/dist/SubNav/SubNav.js +2 -1
- package/dist/SubNav/SubNav.module.css.js +2 -1
- package/dist/TabNav/TabNav.d.ts +2 -1
- package/dist/TabNav/TabNav.js +2 -1
- package/dist/TabNav/TabNav.module.css.js +2 -1
- package/dist/Text/Text.d.ts +2 -1
- package/dist/Text/Text.js +2 -1
- package/dist/Text/Text.module.css.js +2 -1
- package/dist/TextInput/TextInput.d.ts +3 -2
- package/dist/TextInput/TextInput.js +9 -8
- package/dist/TextInput/TextInput.module.css.js +2 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +3 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.js +5 -4
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +2 -1
- package/dist/Textarea/TextArea.module.css.js +2 -1
- package/dist/Textarea/Textarea.d.ts +3 -2
- package/dist/Textarea/Textarea.js +6 -5
- package/dist/ThemeContext.d.ts +2 -1
- package/dist/ThemeContext.js +2 -1
- package/dist/ThemeProvider.d.ts +2 -1
- package/dist/ThemeProvider.js +3 -2
- package/dist/Timeline/Timeline.d.ts +2 -1
- package/dist/Timeline/Timeline.js +2 -1
- package/dist/Timeline/Timeline.module.css.js +2 -1
- package/dist/Timeline/constants.d.ts +2 -0
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +2 -1
- package/dist/ToggleSwitch/ToggleSwitch.js +4 -3
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +2 -1
- package/dist/Token/IssueLabelToken.d.ts +3 -2
- package/dist/Token/IssueLabelToken.js +3 -2
- package/dist/Token/IssueLabelToken.module.css.js +2 -1
- package/dist/Token/Token.d.ts +3 -2
- package/dist/Token/Token.js +4 -3
- package/dist/Token/Token.module.css.js +2 -1
- package/dist/Token/TokenBase.d.ts +2 -1
- package/dist/Token/TokenBase.js +2 -1
- package/dist/Token/TokenBase.module.css.js +2 -1
- package/dist/Token/_RemoveTokenButton.js +2 -1
- package/dist/Token/_RemoveTokenButton.module.css.js +2 -1
- package/dist/Token/_TokenTextContainer.js +2 -1
- package/dist/Token/_TokenTextContainer.module.css.js +2 -1
- package/dist/Token/constants.d.ts +2 -0
- package/dist/Token/constants.js +2 -1
- package/dist/Token/utils.js +2 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -1
- package/dist/Tooltip/Tooltip.js +3 -2
- package/dist/Tooltip/Tooltip.module.css.js +2 -1
- package/dist/Tooltip/TooltipContext.js +2 -1
- package/dist/TooltipV2/Tooltip.d.ts +3 -2
- package/dist/TooltipV2/Tooltip.js +9 -8
- package/dist/TooltipV2/Tooltip.module.css.js +2 -1
- package/dist/TooltipV2/TooltipContext.js +2 -1
- package/dist/TopicTag/TopicTag.d.ts +2 -1
- package/dist/TopicTag/TopicTag.js +2 -1
- package/dist/TopicTag/TopicTag.module.css.js +2 -1
- package/dist/TopicTag/TopicTagGroup.d.ts +2 -1
- package/dist/TopicTag/TopicTagGroup.js +2 -1
- package/dist/TopicTag/TopicTagGroup.module.css.js +2 -1
- package/dist/TopicTag/index.d.ts +2 -1
- package/dist/TopicTag/index.js +2 -1
- package/dist/TreeView/TreeView.d.ts +2 -1
- package/dist/TreeView/TreeView.js +17 -16
- package/dist/TreeView/TreeView.module.css.js +2 -1
- package/dist/TreeView/shared.js +2 -1
- package/dist/TreeView/useRovingTabIndex.d.ts +2 -1
- package/dist/TreeView/useRovingTabIndex.js +2 -1
- package/dist/TreeView/useTreeItemCache.js +2 -1
- package/dist/TreeView/useTreeRovingTabIndex.js +2 -1
- package/dist/TreeView/useTypeahead.js +2 -1
- package/dist/Truncate/Truncate.d.ts +2 -1
- package/dist/Truncate/Truncate.js +2 -1
- package/dist/Truncate/Truncate.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/dist/UnderlineNav/UnderlineNav.js +6 -5
- package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNavContext.js +2 -1
- package/dist/UnderlineNav/UnderlineNavItem.js +5 -4
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +2 -1
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +2 -1
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +2 -1
- package/dist/UnderlineNav/index.d.ts +2 -1
- package/dist/UnderlineNav/index.js +2 -1
- package/dist/UnderlineNav/utils.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +2 -1
- package/dist/_VisuallyHidden.js +2 -1
- package/dist/_VisuallyHidden.module.css.js +2 -1
- package/dist/deprecated/ActionList/Divider.d.ts +2 -1
- package/dist/deprecated/ActionList/Divider.js +2 -1
- package/dist/deprecated/ActionList/Divider.module.css.js +2 -1
- package/dist/deprecated/ActionList/Group.d.ts +2 -1
- package/dist/deprecated/ActionList/Group.js +2 -1
- package/dist/deprecated/ActionList/Header.d.ts +2 -1
- package/dist/deprecated/ActionList/Header.js +2 -1
- package/dist/deprecated/ActionList/Header.module.css.js +2 -1
- package/dist/deprecated/ActionList/Item.d.ts +3 -2
- package/dist/deprecated/ActionList/Item.js +3 -2
- package/dist/deprecated/ActionList/Item.module.css.js +2 -1
- package/dist/deprecated/ActionList/List.d.ts +3 -2
- package/dist/deprecated/ActionList/List.js +2 -1
- package/dist/deprecated/ActionList/List.module.css.js +2 -1
- package/dist/deprecated/ActionList/index.d.ts +5 -4
- package/dist/deprecated/ActionList/index.js +3 -2
- package/dist/deprecated/ActionMenu.d.ts +4 -3
- package/dist/deprecated/ActionMenu.js +7 -6
- package/dist/deprecated/DialogV1/Dialog.d.ts +2 -1
- package/dist/deprecated/DialogV1/Dialog.js +3 -2
- package/dist/deprecated/DialogV1/Dialog.module.css.js +2 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +2 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +2 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +2 -1
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +4 -3
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +2 -1
- package/dist/experimental/IssueLabel/IssueLabel.js +2 -1
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +2 -1
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +5 -4
- package/dist/experimental/SelectPanel2/SelectPanel.js +17 -16
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +2 -1
- package/dist/experimental/Tabs/Tabs.d.ts +2 -1
- package/dist/experimental/Tabs/Tabs.js +2 -1
- package/dist/experimental/Tabs/TabsContext.js +2 -1
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +2 -1
- package/dist/experimental/Tabs/useTab.d.ts +2 -1
- package/dist/experimental/Tabs/useTab.js +2 -1
- package/dist/experimental/Tabs/useTabList.d.ts +2 -1
- package/dist/experimental/Tabs/useTabList.js +2 -1
- package/dist/experimental/Tabs/useTabPanel.d.ts +2 -1
- package/dist/experimental/Tabs/useTabPanel.js +2 -1
- package/dist/experimental/Tabs/useTabs.js +2 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +2 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +8 -7
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +2 -1
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +21 -20
- package/dist/hooks/MatchMediaContext.js +2 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +2 -1
- package/dist/hooks/useAnchoredPosition.js +3 -2
- package/dist/hooks/useControllableState.js +2 -1
- package/dist/hooks/useDetails.d.ts +2 -0
- package/dist/hooks/useDetails.js +2 -1
- package/dist/hooks/useDialog.js +2 -1
- package/dist/hooks/useFocusTrap.d.ts +2 -1
- package/dist/hooks/useFocusTrap.js +3 -2
- package/dist/hooks/useFocusZone.d.ts +2 -1
- package/dist/hooks/useFocusZone.js +2 -1
- package/dist/hooks/useId.d.ts +2 -0
- package/dist/hooks/useId.js +2 -1
- package/dist/hooks/useMedia.js +2 -1
- package/dist/hooks/useMenuInitialFocus.js +2 -1
- package/dist/hooks/useMenuKeyboardNavigation.js +2 -1
- package/dist/hooks/useMergedRefs.d.ts +2 -1
- package/dist/hooks/useMergedRefs.js +2 -1
- package/dist/hooks/useMnemonics.js +2 -1
- package/dist/hooks/useOnEscapePress.d.ts +2 -0
- package/dist/hooks/useOnEscapePress.js +2 -1
- package/dist/hooks/useOnOutsideClick.d.ts +2 -1
- package/dist/hooks/useOnOutsideClick.js +2 -1
- package/dist/hooks/useOpenAndCloseFocus.d.ts +2 -1
- package/dist/hooks/useOpenAndCloseFocus.js +2 -1
- package/dist/hooks/useOverflow.d.ts +2 -0
- package/dist/hooks/useOverflow.js +2 -1
- package/dist/hooks/useOverlay.d.ts +2 -1
- package/dist/hooks/useOverlay.js +4 -3
- package/dist/hooks/useProvidedRefOrCreate.d.ts +2 -1
- package/dist/hooks/useProvidedRefOrCreate.js +2 -1
- package/dist/hooks/useProvidedStateOrCreate.js +2 -1
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +2 -1
- package/dist/hooks/useRefObjectAsForwardedRef.js +2 -1
- package/dist/hooks/useRenderForcingRef.js +2 -1
- package/dist/hooks/useResizeObserver.d.ts +2 -1
- package/dist/hooks/useResizeObserver.js +2 -1
- package/dist/hooks/useResponsiveValue.d.ts +2 -0
- package/dist/hooks/useResponsiveValue.js +2 -1
- package/dist/hooks/useSafeTimeout.d.ts +2 -0
- package/dist/hooks/useSafeTimeout.js +2 -1
- package/dist/hooks/useScrollFlash.js +2 -1
- package/dist/hooks/useSlots.d.ts +2 -1
- package/dist/hooks/useSlots.js +2 -1
- package/dist/hooks/useSyncedState.d.ts +2 -0
- package/dist/hooks/useSyncedState.js +2 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +2 -1
- package/dist/internal/components/ButtonReset.module.css.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +7 -6
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +3 -2
- package/dist/internal/components/ConditionalWrapper.js +2 -1
- package/dist/internal/components/InputLabel.d.ts +2 -1
- package/dist/internal/components/InputLabel.js +2 -1
- package/dist/internal/components/InputLabel.module.css.js +2 -1
- package/dist/internal/components/InputValidation.js +2 -1
- package/dist/internal/components/InputValidation.module.css.js +2 -1
- package/dist/internal/components/OverflowObserverProvider.js +2 -1
- package/dist/internal/components/TextInputInnerAction.d.ts +2 -1
- package/dist/internal/components/TextInputInnerAction.js +4 -3
- package/dist/internal/components/TextInputInnerAction.module.css.js +2 -1
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -1
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +2 -1
- package/dist/internal/components/TextInputWrapper.d.ts +2 -1
- package/dist/internal/components/TextInputWrapper.js +2 -1
- package/dist/internal/components/TextInputWrapper.module.css.js +2 -1
- package/dist/internal/components/ThemeProviderBase.js +2 -1
- package/dist/internal/components/UnderlineTabbedInterface.js +2 -1
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +2 -1
- package/dist/internal/components/UnstyledTextInput.js +2 -1
- package/dist/internal/components/UnstyledTextInput.module.css.js +2 -1
- package/dist/internal/components/ValidationAnimationContainer.js +2 -1
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +2 -1
- package/dist/internal/hooks/useDevOnlyEffect.js +2 -1
- package/dist/internal/hooks/useEffectCallback.js +2 -1
- package/dist/internal/hooks/useEffectOnce.js +2 -1
- package/dist/internal/hooks/useOverflowObserver.js +2 -1
- package/dist/internal/hooks/useThemeProvider.js +2 -1
- package/dist/internal/internal-types.d.ts +2 -0
- package/dist/internal/utils/getResponsiveAttributes.js +2 -1
- package/dist/internal/utils/hasInteractiveNodes.js +2 -1
- package/dist/legacy-theme/ts/color-schemes.js +1 -0
- package/dist/live-region/Announce.d.ts +2 -1
- package/dist/live-region/Announce.js +2 -1
- package/dist/live-region/AriaAlert.d.ts +2 -1
- package/dist/live-region/AriaAlert.js +2 -1
- package/dist/live-region/AriaStatus.d.ts +2 -1
- package/dist/live-region/AriaStatus.js +2 -1
- package/dist/next/ThemeProvider.d.ts +2 -1
- package/dist/next/ThemeProvider.js +2 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +2 -0
- package/dist/test-helpers.js +2 -1
- package/dist/theme.d.ts +2 -1
- package/dist/theme.js +2 -1
- package/dist/useTheme.d.ts +2 -1
- package/dist/useTheme.js +2 -1
- package/dist/utils/as-slot.d.ts +2 -1
- package/dist/utils/as-slot.js +2 -1
- package/dist/utils/character-counter.js +2 -1
- package/dist/utils/create-component.d.ts +2 -1
- package/dist/utils/create-component.js +2 -1
- package/dist/utils/descendant-registry.js +2 -1
- package/dist/utils/environment.js +2 -1
- package/dist/utils/getBreakpointDeclarations.js +2 -1
- package/dist/utils/invariant.js +2 -1
- package/dist/utils/is-slot.d.ts +2 -1
- package/dist/utils/is-slot.js +2 -1
- package/dist/utils/isNumeric.js +2 -1
- package/dist/utils/modern-polymorphic.d.ts +2 -1
- package/dist/utils/modern-polymorphic.js +2 -1
- package/dist/utils/polymorphic.d.ts +2 -1
- package/dist/utils/react-compiler-runtime.js +2 -1
- package/dist/utils/scroll.js +2 -1
- package/dist/utils/theme.js +2 -1
- package/dist/utils/types/AriaRole.d.ts +2 -0
- package/dist/utils/types/ComponentProps.d.ts +2 -0
- package/dist/utils/types/FormValidationStatus.d.ts +2 -0
- package/dist/utils/types/KeyPaths.d.ts +2 -0
- package/dist/utils/types/MandateProps.d.ts +2 -0
- package/dist/utils/types/Merge.d.ts +2 -0
- package/dist/utils/types/Slots.d.ts +2 -0
- package/dist/utils/types/ViewportRangeKeys.d.ts +2 -0
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +2 -1
- package/dist/utils/useIsomorphicLayoutEffect.js +2 -1
- package/dist/utils/warning.js +2 -1
- package/package.json +3 -3
package/dist/Blankslate/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Blankslate, Description, Heading, PrimaryAction, SecondaryAction, Visual } from "./Blankslate.js";
|
|
2
|
-
|
|
2
|
+
//#region src/Blankslate/index.tsx
|
|
3
3
|
const BlankslateContainer = Object.assign(Blankslate, {
|
|
4
4
|
Visual,
|
|
5
5
|
Heading,
|
|
@@ -7,4 +7,5 @@ const BlankslateContainer = Object.assign(Blankslate, {
|
|
|
7
7
|
PrimaryAction,
|
|
8
8
|
SecondaryAction
|
|
9
9
|
});
|
|
10
|
+
//#endregion
|
|
10
11
|
export { BlankslateContainer as Blankslate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DistributiveOmit, PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/BranchName/BranchName.d.ts
|
|
5
5
|
type BranchNameProps<As extends React.ElementType> = PolymorphicProps<As, 'a', {
|
|
6
6
|
className?: string;
|
|
7
7
|
}>;
|
|
@@ -10,4 +10,5 @@ declare const _default: <As extends React.ElementType>(props: DistributiveOmit<R
|
|
|
10
10
|
}, "as"> & {
|
|
11
11
|
as?: As | undefined;
|
|
12
12
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
13
|
+
//#endregion
|
|
13
14
|
export { BranchNameProps, _default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import BranchName_module_css_default from "./BranchName.module.css.js";
|
|
3
2
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
|
+
import BranchName_module_css_default from "./BranchName.module.css.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
//#region src/BranchName/BranchName.tsx
|
|
7
7
|
function BranchName(props, ref) {
|
|
8
8
|
const $ = c(13);
|
|
9
9
|
let children;
|
|
@@ -50,4 +50,5 @@ function BranchName(props, ref) {
|
|
|
50
50
|
}
|
|
51
51
|
BranchName.displayName = "BranchName";
|
|
52
52
|
var BranchName_default = fixedForwardRef(BranchName);
|
|
53
|
+
//#endregion
|
|
53
54
|
export { BranchName_default as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./BranchName-2fad4f4b.css";
|
|
2
|
-
|
|
2
|
+
//#region src/BranchName/BranchName.module.css.js
|
|
3
3
|
var BranchName_module_css_default = { "BranchName": "prc-BranchName-BranchName-CMTaU" };
|
|
4
|
+
//#endregion
|
|
4
5
|
export { BranchName_module_css_default as default };
|
|
@@ -2,7 +2,7 @@ import { DistributiveOmit, PolymorphicProps } from "../utils/modern-polymorphic.
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { To } from "history";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//#region src/Breadcrumbs/Breadcrumbs.d.ts
|
|
6
6
|
type BreadcrumbsProps = React.PropsWithChildren<{
|
|
7
7
|
/**
|
|
8
8
|
* Optional class name for the breadcrumbs container.
|
|
@@ -70,4 +70,5 @@ type BreadcrumbProps = BreadcrumbsProps;
|
|
|
70
70
|
* @deprecated Use the `BreadcrumbsItemProps` type instead
|
|
71
71
|
*/
|
|
72
72
|
type BreadcrumbItemProps<As extends React.ElementType = 'a'> = BreadcrumbsItemProps<As>;
|
|
73
|
+
//#endregion
|
|
73
74
|
export { Breadcrumb, BreadcrumbItemProps, BreadcrumbProps, BreadcrumbsItemProps, BreadcrumbsProps, _default as default };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import { useOnOutsideClick } from "../hooks/useOnOutsideClick.js";
|
|
3
|
+
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
3
4
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
4
|
-
import { ActionList } from "../ActionList/index.js";
|
|
5
|
-
import { IconButton } from "../Button/IconButton.js";
|
|
6
5
|
import { useResizeObserver } from "../hooks/useResizeObserver.js";
|
|
7
|
-
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
8
|
-
import { useOnOutsideClick } from "../hooks/useOnOutsideClick.js";
|
|
9
6
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
7
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
8
|
+
import { ActionList } from "../ActionList/index.js";
|
|
9
|
+
import Breadcrumbs_module_css_default from "./Breadcrumbs.module.css.js";
|
|
10
10
|
import React, { useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { clsx } from "clsx";
|
|
13
13
|
import { KebabHorizontalIcon } from "@primer/octicons-react";
|
|
14
|
-
|
|
14
|
+
//#region src/Breadcrumbs/Breadcrumbs.tsx
|
|
15
15
|
const MENU_BUTTON_WIDTH = 32;
|
|
16
16
|
const SEPARATOR_ICON_WIDTH = 16;
|
|
17
17
|
const NARROW_WIDTH = 544;
|
|
@@ -513,4 +513,5 @@ var Breadcrumbs_default = Object.assign(Breadcrumbs, { Item: BreadcrumbsItemWith
|
|
|
513
513
|
* @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
|
|
514
514
|
*/
|
|
515
515
|
const Breadcrumb = Object.assign(Breadcrumbs, { Item: BreadcrumbsItem });
|
|
516
|
+
//#endregion
|
|
516
517
|
export { Breadcrumb, Breadcrumbs_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Breadcrumbs-6c9aadcf.css";
|
|
2
|
-
|
|
2
|
+
//#region src/Breadcrumbs/Breadcrumbs.module.css.js
|
|
3
3
|
var Breadcrumbs_module_css_default = {
|
|
4
4
|
"BreadcrumbsBase": "prc-Breadcrumbs-BreadcrumbsBase-3Gb-B",
|
|
5
5
|
"BreadcrumbsList": "prc-Breadcrumbs-BreadcrumbsList-BKjpe",
|
|
@@ -11,4 +11,5 @@ var Breadcrumbs_module_css_default = {
|
|
|
11
11
|
"MenuOverlay": "prc-Breadcrumbs-MenuOverlay--ayLx",
|
|
12
12
|
"overlay-appear": "prc-Breadcrumbs-overlay-appear-CSLnF"
|
|
13
13
|
};
|
|
14
|
+
//#endregion
|
|
14
15
|
export { Breadcrumbs_module_css_default as default };
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ButtonProps } from "./types.js";
|
|
2
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
|
+
import { ButtonProps } from "./types.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Button/Button.d.ts
|
|
5
5
|
declare const ButtonComponent: ForwardRefComponent<"button", ButtonProps>;
|
|
6
|
+
//#endregion
|
|
6
7
|
export { ButtonComponent, type ButtonProps };
|
package/dist/Button/Button.js
CHANGED
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { ButtonBase } from "./ButtonBase.js";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
//#region src/Button/Button.tsx
|
|
6
6
|
const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(7);
|
|
8
8
|
let children;
|
|
@@ -34,4 +34,5 @@ const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
34
34
|
});
|
|
35
35
|
ButtonComponent.displayName = "Button";
|
|
36
36
|
ButtonComponent.__SLOT__ = Symbol("Button");
|
|
37
|
+
//#endregion
|
|
37
38
|
export { ButtonComponent };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
import { ButtonProps, NotificationIndicatorPlacement } from "./types.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Button/ButtonBase.d.ts
|
|
5
5
|
type ButtonBaseComponentProps = Omit<ButtonProps, 'notificationIndicator'> & {
|
|
6
6
|
notificationIndicator?: NotificationIndicatorPlacement;
|
|
7
7
|
};
|
|
8
8
|
declare const ButtonBase: ForwardRefComponent<"button" | "a", ButtonBaseComponentProps>;
|
|
9
|
+
//#endregion
|
|
9
10
|
export { ButtonBase };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
4
|
+
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
5
|
import Spinner from "../Spinner/Spinner.js";
|
|
4
6
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
5
|
-
import { useId as useId$1 } from "../hooks/useId.js";
|
|
6
7
|
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
7
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
8
8
|
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
9
9
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
10
10
|
import React, { forwardRef } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { clsx } from "clsx";
|
|
13
13
|
import { isElement, isValidElementType } from "react-is";
|
|
14
|
-
|
|
14
|
+
//#region src/Button/ButtonBase.tsx
|
|
15
15
|
const BUTTON_LOADING_DISABLED_STYLES_FEATURE_FLAG = "primer_react_button_loading_disabled_styles";
|
|
16
16
|
const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /* @__PURE__ */ jsx("span", {
|
|
17
17
|
"data-component": visualName,
|
|
@@ -83,4 +83,5 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
83
83
|
}) })]
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
+
//#endregion
|
|
86
87
|
export { ButtonBase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ButtonBase-c8dab214.css";
|
|
2
|
-
|
|
2
|
+
//#region src/Button/ButtonBase.module.css.js
|
|
3
3
|
var ButtonBase_module_css_default = {
|
|
4
4
|
"ButtonBase": "prc-Button-ButtonBase-9n-Xk",
|
|
5
5
|
"IconButton": "prc-Button-IconButton-fyge7",
|
|
@@ -14,4 +14,5 @@ var ButtonBase_module_css_default = {
|
|
|
14
14
|
"ConditionalWrapper": "prc-Button-ConditionalWrapper-Rvbgb",
|
|
15
15
|
"ConditionalWrapperLink": "prc-Button-ConditionalWrapperLink-d0qv7"
|
|
16
16
|
};
|
|
17
|
+
//#endregion
|
|
17
18
|
export { ButtonBase_module_css_default as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IconButtonProps } from "./types.js";
|
|
2
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
|
+
import { IconButtonProps } from "./types.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Button/IconButton.d.ts
|
|
5
5
|
declare const IconButton: ForwardRefComponent<"button" | "a", IconButtonProps>;
|
|
6
|
+
//#endregion
|
|
6
7
|
export { IconButton };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
2
3
|
import { ButtonBase } from "./ButtonBase.js";
|
|
3
|
-
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
4
4
|
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
5
|
+
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
5
6
|
import { TooltipContext as TooltipContext$1 } from "../Tooltip/TooltipContext.js";
|
|
6
|
-
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
7
7
|
import React, { forwardRef } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
|
-
|
|
10
|
+
//#region src/Button/IconButton.tsx
|
|
11
11
|
const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
12
12
|
const $ = c(36);
|
|
13
13
|
let Icon;
|
|
@@ -132,4 +132,5 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
132
132
|
return t8;
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
+
//#endregion
|
|
135
136
|
export { IconButton };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ButtonProps, LinkButtonProps as LinkButtonProps$1 } from "./types.js";
|
|
2
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
|
+
import { ButtonProps, LinkButtonProps as LinkButtonProps$1 } from "./types.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Button/LinkButton.d.ts
|
|
5
5
|
type LinkButtonProps = LinkButtonProps$1 & ButtonProps;
|
|
6
6
|
declare const LinkButton: ForwardRefComponent<"a", LinkButtonProps>;
|
|
7
|
+
//#endregion
|
|
7
8
|
export { LinkButton, LinkButtonProps };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { ButtonBase } from "./ButtonBase.js";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
//#region src/Button/LinkButton.tsx
|
|
6
6
|
const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(9);
|
|
8
8
|
let children;
|
|
@@ -37,4 +37,5 @@ const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
37
37
|
} else t2 = $[8];
|
|
38
38
|
return t2;
|
|
39
39
|
});
|
|
40
|
+
//#endregion
|
|
40
41
|
export { LinkButton };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ButtonBaseProps, ButtonProps, IconButtonProps } from "./types.js";
|
|
1
2
|
import { IconButton } from "./IconButton.js";
|
|
2
3
|
import { LinkButton, LinkButtonProps } from "./LinkButton.js";
|
|
3
|
-
import { ButtonBaseProps, ButtonProps, IconButtonProps } from "./types.js";
|
|
4
4
|
import { ButtonComponent } from "./Button.js";
|
|
5
5
|
import { ButtonBase } from "./ButtonBase.js";
|
|
6
6
|
export { ButtonComponent as Button, ButtonBase, type ButtonBaseProps, type ButtonProps, IconButton, type IconButtonProps, LinkButton, type LinkButtonProps };
|
package/dist/Button/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TooltipDirection } from "../TooltipV2/Tooltip.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { IconProps } from "@primer/octicons-react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//#region src/Button/types.d.ts
|
|
6
6
|
type VariantType = 'default' | 'primary' | 'invisible' | 'danger' | 'link';
|
|
7
7
|
type Size = 'small' | 'medium' | 'large';
|
|
8
8
|
type AlignContent = 'start' | 'center';
|
|
@@ -103,4 +103,5 @@ type LinkButtonProps = {
|
|
|
103
103
|
type?: string;
|
|
104
104
|
referrerPolicy?: React.AnchorHTMLAttributes<HTMLAnchorElement>['referrerPolicy'];
|
|
105
105
|
};
|
|
106
|
+
//#endregion
|
|
106
107
|
export { AlignContent, ButtonBaseProps, ButtonProps, IconButtonProps, LinkButtonProps, NotificationIndicatorPlacement, Size, VariantType };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
5
5
|
type ButtonGroupProps = PropsWithChildren<{
|
|
6
6
|
/** The role of the group */role?: string; /** className passed in for styling */
|
|
7
7
|
className?: string;
|
|
8
8
|
}>;
|
|
9
9
|
declare const ButtonGroup: ForwardRefComponent<"div", ButtonGroupProps>;
|
|
10
|
+
//#endregion
|
|
10
11
|
export { ButtonGroupProps, ButtonGroup as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import ButtonGroup_module_css_default from "./ButtonGroup.module.css.js";
|
|
3
|
-
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
4
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
5
3
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
6
4
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
|
+
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
6
|
+
import ButtonGroup_module_css_default from "./ButtonGroup.module.css.js";
|
|
7
7
|
import React, { useRef } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
|
-
|
|
10
|
+
//#region src/ButtonGroup/ButtonGroup.tsx
|
|
11
11
|
const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forwardRef) {
|
|
12
12
|
const $ = c(20);
|
|
13
13
|
let children;
|
|
@@ -91,4 +91,5 @@ function _temp(child, index) {
|
|
|
91
91
|
children: child
|
|
92
92
|
}, index);
|
|
93
93
|
}
|
|
94
|
+
//#endregion
|
|
94
95
|
export { ButtonGroup as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./ButtonGroup-be1c1123.css";
|
|
2
|
-
|
|
2
|
+
//#region src/ButtonGroup/ButtonGroup.module.css.js
|
|
3
3
|
var ButtonGroup_module_css_default = {
|
|
4
4
|
"ButtonGroup": "prc-ButtonGroup-ButtonGroup-vFUrY",
|
|
5
5
|
"Item": "prc-ButtonGroup-Item-PqvDl"
|
|
6
6
|
};
|
|
7
|
+
//#endregion
|
|
7
8
|
export { ButtonGroup_module_css_default as default };
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Card/Card.d.ts
|
|
5
5
|
type CardAs = 'div' | 'section';
|
|
6
6
|
type CardProps<As extends CardAs = 'div'> = PolymorphicProps<As, 'div', {
|
|
7
7
|
/** Optional className for the root element. */className?: string; /** Internal padding: none (0px), condensed (8px), regular (16px), spacious (24px), normal (24px, or 16px in compact layout). @default 'normal' */
|
|
@@ -110,4 +110,5 @@ declare function CardAction({
|
|
|
110
110
|
declare namespace CardAction {
|
|
111
111
|
var displayName: string;
|
|
112
112
|
}
|
|
113
|
+
//#endregion
|
|
113
114
|
export { CardAction, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, CardIcon, type IconProps as CardIconProps, CardImage, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, CardProps };
|
package/dist/Card/Card.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import Card_module_css_default from "./Card.module.css.js";
|
|
3
|
-
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
|
+
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
|
+
import Card_module_css_default from "./Card.module.css.js";
|
|
5
5
|
import React, { createContext, forwardRef, useContext } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
//#region src/Card/Card.tsx
|
|
9
9
|
const CardContext = /*#__PURE__*/ createContext({});
|
|
10
10
|
function CardComponent(props, ref) {
|
|
11
11
|
const $ = c(79);
|
|
@@ -621,4 +621,5 @@ const CardMetadata = /*#__PURE__*/ forwardRef(function CardMetadata(t0, ref) {
|
|
|
621
621
|
return t2;
|
|
622
622
|
});
|
|
623
623
|
CardMetadata.displayName = "Card.Metadata";
|
|
624
|
+
//#endregion
|
|
624
625
|
export { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Card-0e84ee3c.css";
|
|
2
|
-
|
|
2
|
+
//#region src/Card/Card.module.css.js
|
|
3
3
|
var Card_module_css_default = {
|
|
4
4
|
"Card": "prc-Card-Card-pYjuL",
|
|
5
5
|
"CardHeader": "prc-Card-CardHeader-P5Qbb",
|
|
@@ -15,4 +15,5 @@ var Card_module_css_default = {
|
|
|
15
15
|
"CardMetadataItem": "prc-Card-CardMetadataItem-ellY9",
|
|
16
16
|
"CardAction": "prc-Card-CardAction-VtI49"
|
|
17
17
|
};
|
|
18
|
+
//#endregion
|
|
18
19
|
export { Card_module_css_default as default };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DistributiveOmit } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import { CardAction, CardActionProps as ActionProps, CardButtonProps as ButtonProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIcon, CardIconProps as IconProps, CardImage, CardImageProps as ImageProps, CardLinkProps as LinkProps, CardMetadataProps as MetadataProps, CardProps } from "./Card.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/Card/index.d.ts
|
|
5
5
|
declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As>, "as"> & Omit<{
|
|
6
6
|
className?: string;
|
|
7
7
|
padding?: "none" | "condensed" | "regular" | "spacious" | "normal";
|
|
@@ -35,4 +35,5 @@ declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<impo
|
|
|
35
35
|
children: React.ReactNode;
|
|
36
36
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
37
|
};
|
|
38
|
+
//#endregion
|
|
38
39
|
export { Card, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, type CardProps };
|
package/dist/Card/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata } from "./Card.js";
|
|
2
|
-
|
|
2
|
+
//#region src/Card/index.ts
|
|
3
3
|
const Card = Object.assign(CardImpl, {
|
|
4
4
|
Icon: CardIcon,
|
|
5
5
|
Image: CardImage,
|
|
@@ -10,4 +10,5 @@ const Card = Object.assign(CardImpl, {
|
|
|
10
10
|
Action: CardAction,
|
|
11
11
|
Metadata: CardMetadata
|
|
12
12
|
});
|
|
13
|
+
//#endregion
|
|
13
14
|
export { Card };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FormValidationStatus } from "../utils/types/FormValidationStatus.js";
|
|
2
1
|
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
|
+
import { FormValidationStatus } from "../utils/types/FormValidationStatus.js";
|
|
3
3
|
import React, { InputHTMLAttributes } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//#region src/Checkbox/Checkbox.d.ts
|
|
6
6
|
type CheckboxProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Apply indeterminate visual appearance to the checkbox
|
|
@@ -36,4 +36,5 @@ type CheckboxProps = {
|
|
|
36
36
|
*/
|
|
37
37
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
38
38
|
declare const _default: WithSlotMarker<typeof Checkbox>;
|
|
39
|
+
//#endregion
|
|
39
40
|
export { CheckboxProps, _default as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
3
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
4
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
4
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
5
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
6
|
+
import shared_module_css_default from "./shared.module.css.js";
|
|
6
7
|
import { CheckboxGroupContext } from "../CheckboxGroup/CheckboxGroupContext.js";
|
|
7
8
|
import Checkbox_module_css_default from "./Checkbox.module.css.js";
|
|
8
|
-
import shared_module_css_default from "./shared.module.css.js";
|
|
9
9
|
import React, { useContext, useEffect, useRef } from "react";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
|
-
|
|
12
|
+
//#region src/Checkbox/Checkbox.tsx
|
|
13
13
|
/**
|
|
14
14
|
* An accessible, native checkbox component
|
|
15
15
|
*/
|
|
@@ -167,4 +167,5 @@ const Checkbox = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
167
167
|
});
|
|
168
168
|
Checkbox.displayName = "Checkbox";
|
|
169
169
|
Checkbox.__SLOT__ = Symbol("Checkbox");
|
|
170
|
+
//#endregion
|
|
170
171
|
export { Checkbox as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./Checkbox-7476a7ba.css";
|
|
2
|
-
|
|
2
|
+
//#region src/Checkbox/Checkbox.module.css.js
|
|
3
3
|
var Checkbox_module_css_default = {
|
|
4
4
|
"Checkbox": "prc-Checkbox-Checkbox-jjOgT",
|
|
5
5
|
"checkmarkOut": "prc-Checkbox-checkmarkOut-mrgEX",
|
|
6
6
|
"checkmarkIn": "prc-Checkbox-checkmarkIn-73iWj"
|
|
7
7
|
};
|
|
8
|
+
//#endregion
|
|
8
9
|
export { Checkbox_module_css_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { FCWithSlotMarker, SlotMarker } from "../utils/types/Slots.js";
|
|
1
2
|
import { CheckboxOrRadioGroupLabelProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
2
3
|
import { CheckboxOrRadioGroupValidationProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
3
4
|
import { CheckboxOrRadioGroupProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
4
|
-
import { FCWithSlotMarker, SlotMarker } from "../utils/types/Slots.js";
|
|
5
5
|
import React, { ChangeEvent } from "react";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
//#region src/CheckboxGroup/CheckboxGroup.d.ts
|
|
8
8
|
type CheckboxGroupProps = {
|
|
9
9
|
/**
|
|
10
10
|
* An onChange handler that gets called when any of the checkboxes change
|
|
@@ -20,4 +20,5 @@ declare const _default: React.FC<React.PropsWithChildren<CheckboxGroupProps>> &
|
|
|
20
20
|
Label: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupLabelProps>>;
|
|
21
21
|
Validation: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupValidationProps>>;
|
|
22
22
|
};
|
|
23
|
+
//#endregion
|
|
23
24
|
export { CheckboxGroupProps, _default as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import { useRenderForcingRef } from "../hooks/useRenderForcingRef.js";
|
|
3
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
3
4
|
import CheckboxOrRadioGroupCaption from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js";
|
|
4
5
|
import CheckboxOrRadioGroupLabel from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
5
6
|
import CheckboxOrRadioGroupValidation from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
6
|
-
import
|
|
7
|
-
import FormControl_default from "../FormControl/FormControl.js";
|
|
8
|
-
import Checkbox from "../Checkbox/Checkbox.js";
|
|
7
|
+
import CheckboxOrRadioGroup_default from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
9
8
|
import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
10
|
-
import
|
|
9
|
+
import Checkbox from "../Checkbox/Checkbox.js";
|
|
10
|
+
import FormControl_default from "../FormControl/FormControl.js";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
//#region src/CheckboxGroup/CheckboxGroup.tsx
|
|
14
14
|
const CheckboxGroup = (t0) => {
|
|
15
15
|
const $ = c(24);
|
|
16
16
|
let children;
|
|
@@ -118,4 +118,5 @@ function _temp3(child_0) {
|
|
|
118
118
|
function _temp4(checkbox) {
|
|
119
119
|
return /*#__PURE__*/ React.isValidElement(checkbox) && (checkbox.props.checked || checkbox.props.defaultChecked) && checkbox.props.value;
|
|
120
120
|
}
|
|
121
|
+
//#endregion
|
|
121
122
|
export { CheckboxGroupContext, CheckboxGroup_default as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "../utils/types/ComponentProps.js";
|
|
2
2
|
import { OcticonProps } from "../Octicon/Octicon.js";
|
|
3
|
+
//#region src/CircleBadge/CircleBadge.d.ts
|
|
3
4
|
declare const variantSizes: {
|
|
4
5
|
small: number;
|
|
5
6
|
medium: number;
|
|
@@ -31,4 +32,5 @@ declare const _default: (<As extends React.ElementType>({
|
|
|
31
32
|
displayName: string;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
35
|
+
//#endregion
|
|
34
36
|
export { CircleBadgeIconProps, CircleBadgeProps, _default as default };
|
|
@@ -4,7 +4,7 @@ import isNumeric from "../utils/isNumeric.js";
|
|
|
4
4
|
import CircleBadge_module_css_default from "./CircleBadge.module.css.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
//#region src/CircleBadge/CircleBadge.tsx
|
|
8
8
|
const variantSizes = {
|
|
9
9
|
small: 56,
|
|
10
10
|
medium: 96,
|
|
@@ -94,4 +94,5 @@ CircleBadgeIcon.displayName = "CircleBadge.Icon";
|
|
|
94
94
|
* Replace component with specific icon imports from `@primer/octicons-react` and customized styling.
|
|
95
95
|
*/
|
|
96
96
|
var CircleBadge_default = Object.assign(CircleBadge, { Icon: CircleBadgeIcon });
|
|
97
|
+
//#endregion
|
|
97
98
|
export { CircleBadge_default as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./CircleBadge-87549d20.css";
|
|
2
|
-
|
|
2
|
+
//#region src/CircleBadge/CircleBadge.module.css.js
|
|
3
3
|
var CircleBadge_module_css_default = {
|
|
4
4
|
"CircleBadge": "prc-CircleBadge-CircleBadge-tNGX1",
|
|
5
5
|
"CircleBadgeIcon": "prc-CircleBadge-CircleBadgeIcon-h73Dg"
|
|
6
6
|
};
|
|
7
|
+
//#endregion
|
|
7
8
|
export { CircleBadge_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DialogHeight, DialogWidth } from "../Dialog/Dialog.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/ConfirmationDialog/ConfirmationDialog.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Props to customize the ConfirmationDialog.
|
|
7
7
|
*/
|
|
@@ -70,4 +70,5 @@ interface ConfirmationDialogProps {
|
|
|
70
70
|
* rendering capabilities are provided for ConfirmationDialog.
|
|
71
71
|
*/
|
|
72
72
|
declare const ConfirmationDialog: React.FC<React.PropsWithChildren<ConfirmationDialogProps>>;
|
|
73
|
+
//#endregion
|
|
73
74
|
export { ConfirmationDialog, ConfirmationDialogProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
//#region src/ConfirmationDialog/ConfirmationDialog.tsx
|
|
5
5
|
/**
|
|
6
6
|
* A ConfirmationDialog is a special kind of dialog with more rigid behavior. It
|
|
7
7
|
* is used to confirm a user action. ConfirmationDialogs always have exactly
|
|
@@ -102,4 +102,5 @@ const ConfirmationDialog = (props) => {
|
|
|
102
102
|
} else t13 = $[25];
|
|
103
103
|
return t13;
|
|
104
104
|
};
|
|
105
|
+
//#endregion
|
|
105
106
|
export { ConfirmationDialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfirmationDialogProps } from "./ConfirmationDialog.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
//#region src/ConfirmationDialog/useConfirm.d.ts
|
|
5
5
|
type ConfirmOptions = Omit<ConfirmationDialogProps, 'onClose'> & {
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
};
|
|
@@ -11,4 +11,5 @@ type ConfirmOptions = Omit<ConfirmationDialogProps, 'onClose'> & {
|
|
|
11
11
|
* resolved with `true` or `false` depending on whether or not the confirm button was used.
|
|
12
12
|
*/
|
|
13
13
|
declare function useConfirm(): (options: ConfirmOptions) => Promise<boolean>;
|
|
14
|
+
//#endregion
|
|
14
15
|
export { ConfirmOptions, useConfirm };
|