@primer/react 38.47.0-rc.200a948c2 → 38.47.0-rc.2f87f01e5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ActionBar/ActionBar.d.ts +1 -2
- package/dist/ActionBar/ActionBar.js +8 -9
- package/dist/ActionBar/ActionBar.module.css.js +1 -2
- package/dist/ActionBar/index.d.ts +1 -3
- package/dist/ActionBar/index.js +1 -2
- package/dist/ActionList/ActionList.module.css.js +1 -2
- package/dist/ActionList/ActionListContainerContext.js +1 -2
- package/dist/ActionList/Description.d.ts +1 -2
- package/dist/ActionList/Description.js +2 -3
- package/dist/ActionList/Divider.d.ts +1 -2
- package/dist/ActionList/Divider.js +1 -2
- package/dist/ActionList/Group.d.ts +2 -3
- package/dist/ActionList/Group.js +3 -4
- package/dist/ActionList/Group.module.css.js +1 -2
- package/dist/ActionList/GroupContext.js +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -2
- package/dist/ActionList/Heading.d.ts +1 -2
- package/dist/ActionList/Heading.js +4 -5
- package/dist/ActionList/Heading.module.css.js +1 -2
- package/dist/ActionList/Item.js +11 -12
- package/dist/ActionList/LinkItem.d.ts +1 -2
- package/dist/ActionList/LinkItem.js +3 -4
- package/dist/ActionList/List.js +51 -59
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +8 -9
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -18
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +23 -31
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +49 -64
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +4 -5
- package/dist/DataTable/DataTable.js +3 -4
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +1 -2
- package/dist/DataTable/TableGroup.js +4 -5
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +10 -17
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -3
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +25 -45
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +36 -47
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +28 -27
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +1 -2
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js +3 -4
- package/dist/Popover/Popover.module.css.js +1 -2
- package/dist/Portal/Portal.d.ts +1 -2
- package/dist/Portal/Portal.js +1 -2
- package/dist/Portal/PortalContext.d.ts +1 -2
- package/dist/Portal/PortalContext.js +1 -2
- package/dist/Portal/index.js +1 -2
- package/dist/Portal/portalRoot.d.ts +0 -2
- package/dist/Portal/portalRoot.js +1 -2
- package/dist/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/ProgressBar/ProgressBar.js +1 -2
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -2
- package/dist/ProgressBar/index.d.ts +1 -2
- package/dist/ProgressBar/index.js +1 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.js +1 -2
- package/dist/Radio/Radio.module.css.js +1 -2
- package/dist/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/RadioGroup/RadioGroup.js +4 -5
- package/dist/RadioGroup/RadioGroupContext.js +1 -2
- package/dist/RelativeTime/RelativeTime.d.ts +1 -2
- package/dist/RelativeTime/RelativeTime.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.js +9 -10
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.js +2 -3
- package/dist/SegmentedControl/SegmentedControlActionContext.js +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -3
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -3
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +2 -3
- package/dist/Select/Select.js +1 -2
- package/dist/Select/Select.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanel.d.ts +2 -3
- package/dist/SelectPanel/SelectPanel.js +13 -14
- package/dist/SelectPanel/SelectPanel.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanelMessage.d.ts +1 -2
- package/dist/SelectPanel/SelectPanelMessage.js +1 -2
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +1 -2
- package/dist/SideNav.js +1 -2
- package/dist/SideNav.module.css.js +1 -2
- package/dist/Skeleton/SkeletonBox.d.ts +1 -2
- package/dist/Skeleton/SkeletonBox.js +1 -2
- package/dist/Skeleton/SkeletonBox.module.css.js +1 -2
- package/dist/Skeleton/skeleton.module.css.js +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +1 -2
- package/dist/SkeletonText/SkeletonText.d.ts +1 -2
- package/dist/SkeletonText/SkeletonText.js +2 -3
- package/dist/SkeletonText/SkeletonText.module.css.js +1 -2
- package/dist/Spinner/Spinner.d.ts +1 -2
- package/dist/Spinner/Spinner.js +1 -2
- package/dist/Spinner/Spinner.module.css.js +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -2
- package/dist/Stack/Stack.d.ts +1 -2
- package/dist/Stack/Stack.js +1 -2
- package/dist/Stack/Stack.module.css.js +1 -2
- package/dist/Stack/index.d.ts +2 -3
- package/dist/Stack/index.js +1 -2
- package/dist/StateLabel/StateLabel.d.ts +1 -2
- package/dist/StateLabel/StateLabel.js +1 -2
- package/dist/StateLabel/StateLabel.module.css.js +1 -2
- package/dist/SubNav/SubNav.d.ts +1 -2
- package/dist/SubNav/SubNav.js +1 -2
- package/dist/SubNav/SubNav.module.css.js +1 -2
- package/dist/TabNav/TabNav.d.ts +1 -2
- package/dist/TabNav/TabNav.js +1 -2
- package/dist/TabNav/TabNav.module.css.js +1 -2
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/Text.js +1 -2
- package/dist/Text/Text.module.css.js +1 -2
- package/dist/TextInput/TextInput.d.ts +2 -3
- package/dist/TextInput/TextInput.js +113 -121
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +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 +84 -96
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +12 -12
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +15 -23
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +53 -62
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +3 -4
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +16 -11
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/package.json +6 -7
package/dist/Banner/Banner.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
3
|
+
import { ButtonComponent } from "../Button/Button.js";
|
|
4
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
3
5
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
6
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
4
7
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
5
|
-
import { IconButton } from "../Button/IconButton.js";
|
|
6
|
-
import { ButtonComponent } from "../Button/Button.js";
|
|
7
|
-
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
8
8
|
import Banner_module_css_default from "./Banner.module.css.js";
|
|
9
9
|
import React, { forwardRef } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
12
|
import { AlertIcon, CheckCircleIcon, InfoIcon, StopIcon, XIcon } from "@primer/octicons-react";
|
|
13
|
-
|
|
13
|
+
// src/Banner/Banner.tsx
|
|
14
14
|
const BannerContext = /*#__PURE__*/ React.createContext(void 0);
|
|
15
15
|
const iconForVariant = {
|
|
16
16
|
critical: /* @__PURE__ */ jsx(StopIcon, {}),
|
|
@@ -458,5 +458,4 @@ const BannerSecondaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
458
458
|
return t2;
|
|
459
459
|
});
|
|
460
460
|
BannerSecondaryAction.displayName = "BannerSecondaryAction";
|
|
461
|
-
//#endregion
|
|
462
461
|
export { Banner, BannerActions, BannerDescription, BannerPrimaryAction, BannerSecondaryAction, BannerTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Banner-41040ab7.css";
|
|
2
|
-
|
|
2
|
+
// src/Banner/Banner.module.css.js
|
|
3
3
|
var Banner_module_css_default = {
|
|
4
4
|
"Banner": "prc-Banner-Banner-IPLJ2",
|
|
5
5
|
"BannerContainer": "prc-Banner-BannerContainer-T-Siu",
|
|
@@ -10,5 +10,4 @@ var Banner_module_css_default = {
|
|
|
10
10
|
"BannerDismiss": "prc-Banner-BannerDismiss-b12FL",
|
|
11
11
|
"BannerActionsContainer": "prc-Banner-BannerActionsContainer-PdBu1"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { Banner_module_css_default as default };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { BannerDescription, BannerDescriptionProps, BannerPrimaryActionProps, BannerProps, BannerSecondaryActionProps, BannerTitle, BannerTitleProps, BannerVariant } from "./Banner.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Banner/index.d.ts
|
|
5
5
|
declare const Banner: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
6
6
|
'aria-label'?: string;
|
|
7
7
|
className?: string;
|
|
@@ -23,5 +23,4 @@ declare const Banner: import("react").ForwardRefExoticComponent<Omit<import("rea
|
|
|
23
23
|
PrimaryAction: ForwardRefComponent<"button", BannerPrimaryActionProps>;
|
|
24
24
|
SecondaryAction: ForwardRefComponent<"button", BannerSecondaryActionProps>;
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { Banner, type BannerPrimaryActionProps, type BannerProps, type BannerSecondaryActionProps };
|
package/dist/Banner/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Banner as Banner$1, BannerDescription, BannerPrimaryAction, BannerSecondaryAction, BannerTitle } from "./Banner.js";
|
|
2
|
-
|
|
2
|
+
// src/Banner/index.ts
|
|
3
3
|
const Banner = Object.assign(Banner$1, {
|
|
4
4
|
Title: BannerTitle,
|
|
5
5
|
Description: BannerDescription,
|
|
6
6
|
PrimaryAction: BannerPrimaryAction,
|
|
7
7
|
SecondaryAction: BannerSecondaryAction
|
|
8
8
|
});
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Banner };
|
package/dist/BaseStyles.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { CSSProperties, JSX, PropsWithChildren } from "react";
|
|
2
|
-
//#region src/BaseStyles.d.ts
|
|
3
2
|
type BaseStylesProps = PropsWithChildren & {
|
|
4
3
|
as?: React.ComponentType<any> | keyof JSX.IntrinsicElements;
|
|
5
4
|
className?: string;
|
|
@@ -14,5 +13,4 @@ declare function BaseStyles({
|
|
|
14
13
|
style,
|
|
15
14
|
...rest
|
|
16
15
|
}: BaseStylesProps): JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { BaseStylesProps, BaseStyles as default };
|
package/dist/BaseStyles.js
CHANGED
|
@@ -3,7 +3,7 @@ import BaseStyles_module_css_default from "./BaseStyles.module.css.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import "focus-visible";
|
|
6
|
-
|
|
6
|
+
// src/BaseStyles.tsx
|
|
7
7
|
function BaseStyles(t0) {
|
|
8
8
|
const $ = c(20);
|
|
9
9
|
let children;
|
|
@@ -73,5 +73,4 @@ function BaseStyles(t0) {
|
|
|
73
73
|
} else t5 = $[19];
|
|
74
74
|
return t5;
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { BaseStyles as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/Blankslate/Blankslate.d.ts
|
|
4
4
|
type BlankslateProps = React.HTMLAttributes<HTMLElement> & {
|
|
5
5
|
/**
|
|
6
6
|
* Add a border around this component
|
|
@@ -70,5 +70,4 @@ declare function SecondaryAction({
|
|
|
70
70
|
children,
|
|
71
71
|
href
|
|
72
72
|
}: BlankslateSecondaryActionProps): React.JSX.Element;
|
|
73
|
-
//#endregion
|
|
74
73
|
export { Blankslate, type BlankslateDescriptionProps, type BlankslateHeadingProps, type BlankslatePrimaryActionProps, type BlankslateProps, type BlankslateSecondaryActionProps, type BlankslateVisualProps, Description, Heading, PrimaryAction, SecondaryAction, Visual };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
3
2
|
import { ButtonComponent } from "../Button/Button.js";
|
|
3
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
4
4
|
import Link from "../Link/Link.js";
|
|
5
5
|
import { Provider, useBlankslate } from "./BlankslateContext.js";
|
|
6
6
|
import Blankslate_module_css_default from "./Blankslate.module.css.js";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
|
-
|
|
9
|
+
// src/Blankslate/Blankslate.tsx
|
|
10
10
|
function Blankslate(t0) {
|
|
11
11
|
const $ = c(27);
|
|
12
12
|
let border;
|
|
@@ -290,5 +290,4 @@ function SecondaryAction(t0) {
|
|
|
290
290
|
} else t2 = $[3];
|
|
291
291
|
return t2;
|
|
292
292
|
}
|
|
293
|
-
//#endregion
|
|
294
293
|
export { Blankslate, Description, Heading, PrimaryAction, SecondaryAction, Visual };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Blankslate-670cf090.css";
|
|
2
|
-
|
|
2
|
+
// src/Blankslate/Blankslate.module.css.js
|
|
3
3
|
var Blankslate_module_css_default = {
|
|
4
4
|
"Container": "prc-Blankslate-Container-Vr9Ce",
|
|
5
5
|
"Blankslate": "prc-Blankslate-Blankslate-Eihy3",
|
|
@@ -8,5 +8,4 @@ var Blankslate_module_css_default = {
|
|
|
8
8
|
"Visual": "prc-Blankslate-Visual-10aPl",
|
|
9
9
|
"Action": "prc-Blankslate-Action-RsgHG"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Blankslate_module_css_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/Blankslate/BlankslateContext.ts
|
|
3
3
|
const BlankslateContext = /*#__PURE__*/ createContext(null);
|
|
4
4
|
function useBlankslate() {
|
|
5
5
|
const context = useContext(BlankslateContext);
|
|
@@ -7,5 +7,4 @@ function useBlankslate() {
|
|
|
7
7
|
return context;
|
|
8
8
|
}
|
|
9
9
|
const Provider = BlankslateContext.Provider;
|
|
10
|
-
//#endregion
|
|
11
10
|
export { Provider, useBlankslate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Blankslate, BlankslateDescriptionProps, BlankslateHeadingProps, BlankslatePrimaryActionProps, BlankslateProps, BlankslateSecondaryActionProps, BlankslateVisualProps, Description, Heading, PrimaryAction, SecondaryAction, Visual } from "./Blankslate.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/Blankslate/index.d.ts
|
|
4
4
|
declare const BlankslateContainer: typeof Blankslate & {
|
|
5
5
|
Visual: typeof Visual;
|
|
6
6
|
Heading: typeof Heading;
|
|
@@ -8,5 +8,4 @@ declare const BlankslateContainer: typeof Blankslate & {
|
|
|
8
8
|
PrimaryAction: typeof PrimaryAction;
|
|
9
9
|
SecondaryAction: typeof SecondaryAction;
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { BlankslateContainer as Blankslate, type BlankslateProps };
|
package/dist/Blankslate/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Blankslate, Description, Heading, PrimaryAction, SecondaryAction, Visual } from "./Blankslate.js";
|
|
2
|
-
|
|
2
|
+
// src/Blankslate/index.tsx
|
|
3
3
|
const BlankslateContainer = Object.assign(Blankslate, {
|
|
4
4
|
Visual,
|
|
5
5
|
Heading,
|
|
@@ -7,5 +7,4 @@ const BlankslateContainer = Object.assign(Blankslate, {
|
|
|
7
7
|
PrimaryAction,
|
|
8
8
|
SecondaryAction
|
|
9
9
|
});
|
|
10
|
-
//#endregion
|
|
11
10
|
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
|
+
// src/BranchName/BranchName.d.ts
|
|
5
5
|
type BranchNameProps<As extends React.ElementType> = PolymorphicProps<As, 'a', {
|
|
6
6
|
className?: string;
|
|
7
7
|
}>;
|
|
@@ -10,5 +10,4 @@ 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
|
|
14
13
|
export { BranchNameProps, _default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
2
|
import BranchName_module_css_default from "./BranchName.module.css.js";
|
|
3
|
+
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
|
|
6
|
+
// src/BranchName/BranchName.tsx
|
|
7
7
|
function BranchName(props, ref) {
|
|
8
8
|
const $ = c(13);
|
|
9
9
|
let children;
|
|
@@ -50,5 +50,4 @@ function BranchName(props, ref) {
|
|
|
50
50
|
}
|
|
51
51
|
BranchName.displayName = "BranchName";
|
|
52
52
|
var BranchName_default = fixedForwardRef(BranchName);
|
|
53
|
-
//#endregion
|
|
54
53
|
export { BranchName_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./BranchName-2fad4f4b.css";
|
|
2
|
-
|
|
2
|
+
// src/BranchName/BranchName.module.css.js
|
|
3
3
|
var BranchName_module_css_default = { "BranchName": "prc-BranchName-BranchName-CMTaU" };
|
|
4
|
-
//#endregion
|
|
5
4
|
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
|
+
// src/Breadcrumbs/Breadcrumbs.d.ts
|
|
6
6
|
type BreadcrumbsProps = React.PropsWithChildren<{
|
|
7
7
|
/**
|
|
8
8
|
* Optional class name for the breadcrumbs container.
|
|
@@ -70,5 +70,4 @@ 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
|
|
74
73
|
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
|
|
3
|
-
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
2
|
+
import Breadcrumbs_module_css_default from "./Breadcrumbs.module.css.js";
|
|
4
3
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
4
|
+
import { ActionList } from "../ActionList/index.js";
|
|
5
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
5
6
|
import { useResizeObserver } from "../hooks/useResizeObserver.js";
|
|
7
|
+
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
8
|
+
import { useOnOutsideClick } from "../hooks/useOnOutsideClick.js";
|
|
6
9
|
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
|
+
// 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,5 +513,4 @@ 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
|
|
517
516
|
export { Breadcrumb, Breadcrumbs_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Breadcrumbs-6c9aadcf.css";
|
|
2
|
-
|
|
2
|
+
// 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,5 +11,4 @@ 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
|
|
15
14
|
export { Breadcrumbs_module_css_default as default };
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { ButtonProps } from "./types.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Button/Button.d.ts
|
|
5
5
|
declare const ButtonComponent: ForwardRefComponent<"button", ButtonProps>;
|
|
6
|
-
//#endregion
|
|
7
6
|
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
|
+
// src/Button/Button.tsx
|
|
6
6
|
const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(7);
|
|
8
8
|
let children;
|
|
@@ -34,5 +34,4 @@ const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
34
34
|
});
|
|
35
35
|
ButtonComponent.displayName = "Button";
|
|
36
36
|
ButtonComponent.__SLOT__ = Symbol("Button");
|
|
37
|
-
//#endregion
|
|
38
37
|
export { ButtonComponent };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
import { ButtonProps, NotificationIndicatorPlacement } from "./types.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// 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
|
|
10
9
|
export { ButtonBase };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
2
1
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
2
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
4
|
-
import { useId as useId$1 } from "../hooks/useId.js";
|
|
5
3
|
import Spinner from "../Spinner/Spinner.js";
|
|
6
4
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
5
|
+
import { useId as useId$1 } from "../hooks/useId.js";
|
|
7
6
|
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
|
+
// 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,5 +83,4 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
83
83
|
}) })]
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
//#endregion
|
|
87
86
|
export { ButtonBase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ButtonBase-c8dab214.css";
|
|
2
|
-
|
|
2
|
+
// 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,5 +14,4 @@ var ButtonBase_module_css_default = {
|
|
|
14
14
|
"ConditionalWrapper": "prc-Button-ConditionalWrapper-Rvbgb",
|
|
15
15
|
"ConditionalWrapperLink": "prc-Button-ConditionalWrapperLink-d0qv7"
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { ButtonBase_module_css_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { IconButtonProps } from "./types.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Button/IconButton.d.ts
|
|
5
5
|
declare const IconButton: ForwardRefComponent<"button" | "a", IconButtonProps>;
|
|
6
|
-
//#endregion
|
|
7
6
|
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";
|
|
3
2
|
import { ButtonBase } from "./ButtonBase.js";
|
|
4
|
-
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
5
3
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
4
|
+
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
6
5
|
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
|
+
// src/Button/IconButton.tsx
|
|
11
11
|
const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
12
12
|
const $ = c(36);
|
|
13
13
|
let Icon;
|
|
@@ -132,5 +132,4 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
132
132
|
return t8;
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
//#endregion
|
|
136
135
|
export { IconButton };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { ButtonProps, LinkButtonProps as LinkButtonProps$1 } from "./types.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Button/LinkButton.d.ts
|
|
5
5
|
type LinkButtonProps = LinkButtonProps$1 & ButtonProps;
|
|
6
6
|
declare const LinkButton: ForwardRefComponent<"a", LinkButtonProps>;
|
|
7
|
-
//#endregion
|
|
8
7
|
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
|
+
// src/Button/LinkButton.tsx
|
|
6
6
|
const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(9);
|
|
8
8
|
let children;
|
|
@@ -37,5 +37,4 @@ const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
37
37
|
} else t2 = $[8];
|
|
38
38
|
return t2;
|
|
39
39
|
});
|
|
40
|
-
//#endregion
|
|
41
40
|
export { LinkButton };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonBaseProps, ButtonProps, IconButtonProps } from "./types.js";
|
|
2
1
|
import { IconButton } from "./IconButton.js";
|
|
3
2
|
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
|
+
// 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,5 +103,4 @@ type LinkButtonProps = {
|
|
|
103
103
|
type?: string;
|
|
104
104
|
referrerPolicy?: React.AnchorHTMLAttributes<HTMLAnchorElement>['referrerPolicy'];
|
|
105
105
|
};
|
|
106
|
-
//#endregion
|
|
107
106
|
export { AlignContent, ButtonBaseProps, ButtonProps, IconButtonProps, LinkButtonProps, NotificationIndicatorPlacement, Size, VariantType };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// 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
|
|
11
10
|
export { ButtonGroupProps, ButtonGroup as default };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
-
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
4
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
|
-
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
6
2
|
import ButtonGroup_module_css_default from "./ButtonGroup.module.css.js";
|
|
3
|
+
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
4
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
7
5
|
import React, { useRef } from "react";
|
|
8
6
|
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
|
-
|
|
8
|
+
// src/ButtonGroup/ButtonGroup.tsx
|
|
11
9
|
const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forwardRef) {
|
|
12
|
-
const $ = c(
|
|
10
|
+
const $ = c(19);
|
|
13
11
|
let children;
|
|
14
12
|
let className;
|
|
15
13
|
let rest;
|
|
@@ -31,12 +29,8 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
|
|
|
31
29
|
t1 = $[5];
|
|
32
30
|
}
|
|
33
31
|
const BaseComponent = t1 === void 0 ? "div" : t1;
|
|
34
|
-
const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
|
|
35
32
|
const buttonRef = useRef(null);
|
|
36
33
|
const mergedRef = useMergedRefs(buttonRef, forwardRef);
|
|
37
|
-
const providedOrCreatedRef = useProvidedRefOrCreate(forwardRef);
|
|
38
|
-
const readRef = mergedRefEnabled ? buttonRef : providedOrCreatedRef;
|
|
39
|
-
const appliedRef = mergedRefEnabled ? mergedRef : providedOrCreatedRef;
|
|
40
34
|
let t2;
|
|
41
35
|
if ($[6] !== children) {
|
|
42
36
|
t2 = React.Children.map(children, _temp);
|
|
@@ -46,42 +40,41 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
|
|
|
46
40
|
const buttons = t2;
|
|
47
41
|
const t3 = role !== "toolbar";
|
|
48
42
|
let t4;
|
|
49
|
-
if ($[8] !==
|
|
43
|
+
if ($[8] !== t3) {
|
|
50
44
|
t4 = {
|
|
51
|
-
containerRef:
|
|
45
|
+
containerRef: buttonRef,
|
|
52
46
|
disabled: t3,
|
|
53
47
|
bindKeys: FocusKeys.ArrowHorizontal,
|
|
54
48
|
focusOutBehavior: "wrap"
|
|
55
49
|
};
|
|
56
|
-
$[8] =
|
|
57
|
-
$[9] =
|
|
58
|
-
|
|
59
|
-
} else t4 = $[10];
|
|
50
|
+
$[8] = t3;
|
|
51
|
+
$[9] = t4;
|
|
52
|
+
} else t4 = $[9];
|
|
60
53
|
useFocusZone(t4);
|
|
61
54
|
let t5;
|
|
62
|
-
if ($[
|
|
55
|
+
if ($[10] !== className) {
|
|
63
56
|
t5 = clsx(className, ButtonGroup_module_css_default.ButtonGroup);
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
} else t5 = $[
|
|
57
|
+
$[10] = className;
|
|
58
|
+
$[11] = t5;
|
|
59
|
+
} else t5 = $[11];
|
|
67
60
|
let t6;
|
|
68
|
-
if ($[
|
|
61
|
+
if ($[12] !== BaseComponent || $[13] !== buttons || $[14] !== mergedRef || $[15] !== rest || $[16] !== role || $[17] !== t5) {
|
|
69
62
|
t6 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
70
|
-
ref:
|
|
63
|
+
ref: mergedRef,
|
|
71
64
|
className: t5,
|
|
72
65
|
role,
|
|
73
66
|
...rest,
|
|
74
67
|
"data-component": "ButtonGroup",
|
|
75
68
|
children: buttons
|
|
76
69
|
});
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
} else t6 = $[
|
|
70
|
+
$[12] = BaseComponent;
|
|
71
|
+
$[13] = buttons;
|
|
72
|
+
$[14] = mergedRef;
|
|
73
|
+
$[15] = rest;
|
|
74
|
+
$[16] = role;
|
|
75
|
+
$[17] = t5;
|
|
76
|
+
$[18] = t6;
|
|
77
|
+
} else t6 = $[18];
|
|
85
78
|
return t6;
|
|
86
79
|
});
|
|
87
80
|
ButtonGroup.displayName = "ButtonGroup";
|
|
@@ -91,5 +84,4 @@ function _temp(child, index) {
|
|
|
91
84
|
children: child
|
|
92
85
|
}, index);
|
|
93
86
|
}
|
|
94
|
-
//#endregion
|
|
95
87
|
export { ButtonGroup as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./ButtonGroup-be1c1123.css";
|
|
2
|
-
|
|
2
|
+
// 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
|
|
8
7
|
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
|
+
// 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,5 +110,4 @@ declare function CardAction({
|
|
|
110
110
|
declare namespace CardAction {
|
|
111
111
|
var displayName: string;
|
|
112
112
|
}
|
|
113
|
-
//#endregion
|
|
114
113
|
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 { useId as useId$1 } from "../hooks/useId.js";
|
|
3
|
-
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
2
|
import Card_module_css_default from "./Card.module.css.js";
|
|
3
|
+
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
|
+
import { useId as useId$1 } from "../hooks/useId.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
|
+
// src/Card/Card.tsx
|
|
9
9
|
const CardContext = /*#__PURE__*/ createContext({});
|
|
10
10
|
function CardComponent(props, ref) {
|
|
11
11
|
const $ = c(79);
|
|
@@ -621,5 +621,4 @@ const CardMetadata = /*#__PURE__*/ forwardRef(function CardMetadata(t0, ref) {
|
|
|
621
621
|
return t2;
|
|
622
622
|
});
|
|
623
623
|
CardMetadata.displayName = "Card.Metadata";
|
|
624
|
-
//#endregion
|
|
625
624
|
export { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata };
|