@primer/react 38.47.0-rc.fcdf0c9da → 39.0.0-rc.00628b8df
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 +11 -1
- 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 -4
- 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 +4 -5
- package/dist/Timeline/Timeline.js +62 -142
- 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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 39.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#8742](https://github.com/primer/react/pull/8742) [`5817eb9`](https://github.com/primer/react/commit/5817eb9d2ec60193a933f09bfb3446eb479950cc) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Timeline: Always render an ordered list with list items, removing the list-semantics opt-out. Refs now target list elements instead of divs.
|
|
4
8
|
|
|
5
9
|
### Minor Changes
|
|
6
10
|
|
|
@@ -8,10 +12,16 @@
|
|
|
8
12
|
|
|
9
13
|
- [#8563](https://github.com/primer/react/pull/8563) [`998b471`](https://github.com/primer/react/commit/998b471a4ad78c7c23426038ef0c4a5261fc41cf) Thanks [@joshblack](https://github.com/joshblack)! - ActionMenu: Improve rendering performance with React Compiler support.
|
|
10
14
|
|
|
15
|
+
- [#8746](https://github.com/primer/react/pull/8746) [`d2dd516`](https://github.com/primer/react/commit/d2dd516adc1eb82657df80a07e91b9a86a295165) Thanks [@Archanachaurasiya30](https://github.com/Archanachaurasiya30)! - Remove the unused hsluv dependency and move react-intersection-observer to devDependencies.
|
|
16
|
+
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
19
|
+
- [#8548](https://github.com/primer/react/pull/8548) [`6075e98`](https://github.com/primer/react/commit/6075e98c6ea8fefb1d20f3918a0c133e77a68c9a) Thanks [@llastflowers](https://github.com/llastflowers)! - Ref handling: Preserve forwarded refs while maintaining internal component refs.
|
|
20
|
+
|
|
13
21
|
- [#8708](https://github.com/primer/react/pull/8708) [`16c41d3`](https://github.com/primer/react/commit/16c41d3e57bb7358d887c613aaeb22aaea3a0d97) Thanks [@vivanvv](https://github.com/vivanvv)! - Pagination: Disable Next for empty results when page numbers are hidden.
|
|
14
22
|
|
|
23
|
+
- [#8731](https://github.com/primer/react/pull/8731) [`cb71c93`](https://github.com/primer/react/commit/cb71c93fada0adb063905e1894fe1667c0e3c3fa) Thanks [@dependabot](https://github.com/apps/dependabot)! - PageLayout and TreeView: Preserve pane resizing and keyboard focus behavior
|
|
24
|
+
|
|
15
25
|
## 38.46.0
|
|
16
26
|
|
|
17
27
|
### Minor Changes
|
|
@@ -2,7 +2,7 @@ import { ButtonProps, IconButtonProps } from "../Button/types.js";
|
|
|
2
2
|
import { ActionListItemProps } from "../ActionList/shared.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/ActionBar/ActionBar.d.ts
|
|
6
6
|
type Size = 'small' | 'medium' | 'large';
|
|
7
7
|
type A11yProps = {
|
|
8
8
|
/** When provided, a label is added to the action bar */'aria-label': React.AriaAttributes['aria-label'];
|
|
@@ -89,5 +89,4 @@ type ActionBarMenuProps = {
|
|
|
89
89
|
*/
|
|
90
90
|
returnFocusRef?: React.RefObject<HTMLElement>;
|
|
91
91
|
} & IconButtonProps;
|
|
92
|
-
//#endregion
|
|
93
92
|
export { ActionBarButtonProps, ActionBarIconButtonProps, ActionBarMenuItemProps, ActionBarMenuProps, ActionBarProps };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
-
import { IconButton } from "../Button/IconButton.js";
|
|
4
|
-
import { ButtonComponent } from "../Button/Button.js";
|
|
5
|
-
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
6
2
|
import { ActionList } from "../ActionList/index.js";
|
|
3
|
+
import { ButtonComponent } from "../Button/Button.js";
|
|
4
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
7
5
|
import { ActionMenu } from "../ActionMenu/ActionMenu.js";
|
|
8
|
-
import {
|
|
9
|
-
import { OverflowObserverProvider } from "../internal/components/OverflowObserverProvider.js";
|
|
10
|
-
import { createDescendantRegistry } from "../utils/descendant-registry.js";
|
|
6
|
+
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
11
7
|
import ActionBar_module_css_default from "./ActionBar.module.css.js";
|
|
8
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
9
|
+
import { createDescendantRegistry } from "../utils/descendant-registry.js";
|
|
10
|
+
import { OverflowObserverProvider } from "../internal/components/OverflowObserverProvider.js";
|
|
11
|
+
import { useIsClipped } from "../internal/hooks/useOverflowObserver.js";
|
|
12
12
|
import React, { forwardRef, useContext, useRef, useState } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { clsx } from "clsx";
|
|
15
15
|
import { isValidElementType } from "react-is";
|
|
16
16
|
import { KebabHorizontalIcon } from "@primer/octicons-react";
|
|
17
|
-
|
|
17
|
+
// src/ActionBar/ActionBar.tsx
|
|
18
18
|
const renderIcon = (icon) => isValidElementType(icon) && typeof icon !== "string" ? /*#__PURE__*/ React.createElement(icon) : icon;
|
|
19
19
|
const ActionBarContext = /*#__PURE__*/ React.createContext({ size: "medium" });
|
|
20
20
|
const ActionBarItemsRegistry = createDescendantRegistry();
|
|
@@ -573,5 +573,4 @@ function _temp4(t0) {
|
|
|
573
573
|
function _temp5(item, index) {
|
|
574
574
|
return renderMenuItem(item, index);
|
|
575
575
|
}
|
|
576
|
-
//#endregion
|
|
577
576
|
export { ActionBar, ActionBarButton, ActionBarGroup, ActionBarIconButton, ActionBarMenu, VerticalDivider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ActionBar-3767d551.css";
|
|
2
|
-
|
|
2
|
+
// src/ActionBar/ActionBar.module.css.js
|
|
3
3
|
var ActionBar_module_css_default = {
|
|
4
4
|
"List": "prc-ActionBar-List-9uz46",
|
|
5
5
|
"detect-overflow": "prc-ActionBar-detect-overflow-mAuJu",
|
|
@@ -10,5 +10,4 @@ var ActionBar_module_css_default = {
|
|
|
10
10
|
"OverflowSpacer": "prc-ActionBar-OverflowSpacer-tbHkV",
|
|
11
11
|
"MoreButton": "prc-ActionBar-MoreButton-RHqpx"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { ActionBar_module_css_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TooltipDirection } from "../TooltipV2/Tooltip.js";
|
|
2
|
-
import { AlignContent, ButtonBaseProps, Size, VariantType } from "../Button/types.js";
|
|
3
2
|
import { ActionBarButtonProps, ActionBarIconButtonProps, ActionBarMenuItemProps, ActionBarMenuProps, ActionBarProps } from "./ActionBar.js";
|
|
4
|
-
|
|
3
|
+
import { AlignContent, ButtonBaseProps, Size, VariantType } from "../Button/types.js";
|
|
5
4
|
declare const ActionBar: import("react").FC<import("react").PropsWithChildren<ActionBarProps>> & {
|
|
6
5
|
IconButton: import("react").ForwardRefExoticComponent<ActionBarIconButtonProps & import("react").RefAttributes<unknown>>;
|
|
7
6
|
Button: import("react").ForwardRefExoticComponent<{
|
|
@@ -48,5 +47,4 @@ declare const ActionBar: import("react").FC<import("react").PropsWithChildren<Ac
|
|
|
48
47
|
keybindingHint?: string | string[];
|
|
49
48
|
} & Omit<ButtonBaseProps, "aria-label" | "aria-labelledby"> & import("react").RefAttributes<unknown>>;
|
|
50
49
|
};
|
|
51
|
-
//#endregion
|
|
52
50
|
export { ActionBar, ActionBar as default, type ActionBarButtonProps, type ActionBarMenuItemProps, type ActionBarMenuProps, type ActionBarProps };
|
package/dist/ActionBar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionBar as ActionBar$1, ActionBarButton, ActionBarGroup, ActionBarIconButton, ActionBarMenu, VerticalDivider } from "./ActionBar.js";
|
|
2
|
-
|
|
2
|
+
// src/ActionBar/index.ts
|
|
3
3
|
const ActionBar = Object.assign(ActionBar$1, {
|
|
4
4
|
IconButton: ActionBarIconButton,
|
|
5
5
|
Button: ActionBarButton,
|
|
@@ -7,5 +7,4 @@ const ActionBar = Object.assign(ActionBar$1, {
|
|
|
7
7
|
Group: ActionBarGroup,
|
|
8
8
|
Menu: ActionBarMenu
|
|
9
9
|
});
|
|
10
|
-
//#endregion
|
|
11
10
|
export { ActionBar, ActionBar as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ActionList-64885d7a.css";
|
|
2
|
-
|
|
2
|
+
// src/ActionList/ActionList.module.css.js
|
|
3
3
|
var ActionList_module_css_default = {
|
|
4
4
|
"ActionList": "prc-ActionList-ActionList-rPFF2",
|
|
5
5
|
"ActionListItem": "prc-ActionList-ActionListItem-So4vC",
|
|
@@ -28,5 +28,4 @@ var ActionList_module_css_default = {
|
|
|
28
28
|
"InactiveButtonWrap": "prc-ActionList-InactiveButtonWrap-Ia-xM",
|
|
29
29
|
"InactiveButtonReset": "prc-ActionList-InactiveButtonReset-uK4-x"
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { ActionList_module_css_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/ActionList/ActionListContainerContext.tsx
|
|
3
3
|
/** This context can be used by components that compose ActionList inside a Menu */
|
|
4
4
|
const ActionListContainerContext = /*#__PURE__*/ React.createContext({});
|
|
5
|
-
//#endregion
|
|
6
5
|
export { ActionListContainerContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ActionList/Description.d.ts
|
|
4
4
|
type ActionListDescriptionProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Secondary text style variations.
|
|
@@ -16,5 +16,4 @@ type ActionListDescriptionProps = {
|
|
|
16
16
|
*/
|
|
17
17
|
truncate?: boolean;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { ActionListDescriptionProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import Truncate_default from "../Truncate/Truncate.js";
|
|
2
3
|
import { ItemContext } from "./shared.js";
|
|
3
4
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
4
|
-
import Truncate_default from "../Truncate/Truncate.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
// src/ActionList/Description.tsx
|
|
9
9
|
const Description = (t0) => {
|
|
10
10
|
const $ = c(26);
|
|
11
11
|
let className;
|
|
@@ -115,5 +115,4 @@ const Description = (t0) => {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
Description.__SLOT__ = Symbol("ActionList.Description");
|
|
118
|
-
//#endregion
|
|
119
118
|
export { Description };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/ActionList/Divider.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Visually separates `Items` or `Groups` in an `ActionList`.
|
|
8
8
|
*/
|
|
@@ -30,5 +30,4 @@ const Divider = (t0) => {
|
|
|
30
30
|
return t2;
|
|
31
31
|
};
|
|
32
32
|
Divider.__SLOT__ = Symbol("ActionList.Divider");
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Divider };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
2
1
|
import { ActionListProps } from "./shared.js";
|
|
3
2
|
import { ActionListHeadingProps } from "./Heading.js";
|
|
3
|
+
import { FCWithSlotMarker } from "../utils/types/Slots.js";
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/ActionList/Group.d.ts
|
|
7
7
|
type ActionListGroupProps = React.HTMLAttributes<HTMLLIElement> & {
|
|
8
8
|
/**
|
|
9
9
|
* Style variations. Usage is discretionary.
|
|
@@ -32,5 +32,4 @@ type ActionListGroupHeadingProps = Pick<ActionListGroupProps, 'variant' | 'auxil
|
|
|
32
32
|
_internalBackwardCompatibleTitle?: string;
|
|
33
33
|
variant?: 'filled' | 'subtle';
|
|
34
34
|
};
|
|
35
|
-
//#endregion
|
|
36
35
|
export { ActionListGroupHeadingProps, ActionListGroupProps, Group };
|
package/dist/ActionList/Group.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
|
+
import { ListContext } from "./shared.js";
|
|
3
4
|
import { useSlots } from "../hooks/useSlots.js";
|
|
4
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
5
|
import { invariant } from "../utils/invariant.js";
|
|
6
|
-
import { ListContext } from "./shared.js";
|
|
7
6
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
8
7
|
import Group_module_css_default from "./Group.module.css.js";
|
|
9
8
|
import { GroupHeadingTrailingAction } from "./GroupHeadingTrailingAction.js";
|
|
9
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
10
10
|
import { GroupContext } from "./GroupContext.js";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { clsx } from "clsx";
|
|
14
|
-
|
|
14
|
+
// src/ActionList/Group.tsx
|
|
15
15
|
const GROUP_HEADING_TRAILING_ACTION_FEATURE_FLAG = "primer_react_action_list_group_heading_trailing_action";
|
|
16
16
|
const Heading = (t0) => {
|
|
17
17
|
const $ = c(12);
|
|
@@ -314,5 +314,4 @@ Group.displayName = "ActionList.Group";
|
|
|
314
314
|
Group.__SLOT__ = Symbol("ActionList.Group");
|
|
315
315
|
GroupHeadingImpl.__SLOT__ = Symbol("ActionList.GroupHeading");
|
|
316
316
|
const GroupHeading = Object.assign(GroupHeadingImpl, { TrailingAction: GroupHeadingTrailingAction });
|
|
317
|
-
//#endregion
|
|
318
317
|
export { Group, GroupHeading };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Group-d89306a8.css";
|
|
2
|
-
|
|
2
|
+
// src/ActionList/Group.module.css.js
|
|
3
3
|
var Group_module_css_default = {
|
|
4
4
|
"Group": "prc-ActionList-Group-lMIPQ",
|
|
5
5
|
"GroupList": "prc-ActionList-GroupList-V5B3-",
|
|
@@ -7,5 +7,4 @@ var Group_module_css_default = {
|
|
|
7
7
|
"GroupHeading": "prc-ActionList-GroupHeading-STzxi",
|
|
8
8
|
"GroupHeadingTrailingAction": "prc-ActionList-GroupHeadingTrailingAction-jnb64"
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { Group_module_css_default as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/ActionList/GroupContext.ts
|
|
3
3
|
const GroupContext = /*#__PURE__*/ React.createContext({
|
|
4
4
|
groupHeadingId: void 0,
|
|
5
5
|
selectionVariant: void 0
|
|
6
6
|
});
|
|
7
|
-
//#endregion
|
|
8
7
|
export { GroupContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionListTrailingActionProps } from "./TrailingAction.js";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ActionList/GroupHeadingTrailingAction.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Props for `ActionList.GroupHeading.TrailingAction`.
|
|
7
7
|
*
|
|
@@ -14,5 +14,4 @@ import { ElementType } from "react";
|
|
|
14
14
|
type ActionListGroupHeadingTrailingActionProps = Omit<ActionListTrailingActionProps, 'icon'> & {
|
|
15
15
|
icon: ElementType;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { ActionListGroupHeadingTrailingActionProps };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { IconButton } from "../Button/IconButton.js";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ActionList/GroupHeadingTrailingAction.tsx
|
|
6
6
|
const GroupHeadingTrailingActionImpl = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(15);
|
|
8
8
|
let icon;
|
|
@@ -59,5 +59,4 @@ const GroupHeadingTrailingActionImpl = /*#__PURE__*/ forwardRef((t0, forwardedRe
|
|
|
59
59
|
GroupHeadingTrailingActionImpl.displayName = "ActionList.GroupHeading.TrailingAction";
|
|
60
60
|
GroupHeadingTrailingActionImpl.__SLOT__ = Symbol("ActionList.GroupHeading.TrailingAction");
|
|
61
61
|
const GroupHeadingTrailingAction = GroupHeadingTrailingActionImpl;
|
|
62
|
-
//#endregion
|
|
63
62
|
export { GroupHeadingTrailingAction };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ActionList/Heading.d.ts
|
|
4
4
|
type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
5
|
type HeadingVariants = 'large' | 'medium' | 'small';
|
|
6
6
|
type ActionListHeadingProps = {
|
|
@@ -10,5 +10,4 @@ type ActionListHeadingProps = {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { ActionListHeadingProps };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
-
import { invariant } from "../utils/invariant.js";
|
|
4
|
-
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
5
|
-
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
6
3
|
import Heading$1 from "../Heading/Heading.js";
|
|
7
4
|
import { ListContext } from "./shared.js";
|
|
5
|
+
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
6
|
+
import { invariant } from "../utils/invariant.js";
|
|
8
7
|
import Heading_module_css_default from "./Heading.module.css.js";
|
|
8
|
+
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
9
9
|
import React, { forwardRef } from "react";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
|
-
|
|
12
|
+
// src/ActionList/Heading.tsx
|
|
13
13
|
const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
14
14
|
var _props$id;
|
|
15
15
|
const $ = c(19);
|
|
@@ -77,5 +77,4 @@ const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
77
77
|
});
|
|
78
78
|
Heading.displayName = "ActionList.Heading";
|
|
79
79
|
Heading.__SLOT__ = Symbol("ActionList.Heading");
|
|
80
|
-
//#endregion
|
|
81
80
|
export { Heading };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./Heading-b9360636.css";
|
|
2
|
-
|
|
2
|
+
// src/ActionList/Heading.module.css.js
|
|
3
3
|
var Heading_module_css_default = { "ActionListHeader": "prc-ActionList-ActionListHeader-Frcbm" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { Heading_module_css_default as default };
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
3
|
import { useSlots } from "../hooks/useSlots.js";
|
|
4
|
-
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
5
|
-
import { invariant } from "../utils/invariant.js";
|
|
6
|
-
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
7
|
-
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
8
|
-
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
9
|
-
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
10
4
|
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
11
|
-
import { ItemContext, ListContext } from "./shared.js";
|
|
12
|
-
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
13
|
-
import { GroupContext } from "./GroupContext.js";
|
|
14
5
|
import { Description } from "./Description.js";
|
|
15
|
-
import {
|
|
6
|
+
import { GroupContext } from "./GroupContext.js";
|
|
16
7
|
import { Selection } from "./Selection.js";
|
|
8
|
+
import { LeadingVisual, TrailingVisual, VisualOrIndicator } from "./Visuals.js";
|
|
9
|
+
import { ItemContext, ListContext } from "./shared.js";
|
|
17
10
|
import { TrailingAction } from "./TrailingAction.js";
|
|
11
|
+
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
12
|
+
import { invariant } from "../utils/invariant.js";
|
|
13
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
14
|
+
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
15
|
+
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
16
|
+
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
17
|
+
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
18
18
|
import React from "react";
|
|
19
19
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { clsx } from "clsx";
|
|
21
|
-
|
|
21
|
+
// src/ActionList/Item.tsx
|
|
22
22
|
/**
|
|
23
23
|
* Wraps button-semantic items with Tooltip, disabled when not truncated
|
|
24
24
|
* For non-button-semantic items, renders children directly.
|
|
@@ -693,5 +693,4 @@ const Item = Object.assign(fixedForwardRef(UnwrappedItem), {
|
|
|
693
693
|
displayName: "ActionList.Item",
|
|
694
694
|
__SLOT__: Symbol("ActionList.Item")
|
|
695
695
|
});
|
|
696
|
-
//#endregion
|
|
697
696
|
export { Item, SubItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionListItemProps } from "./shared.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ActionList/LinkItem.d.ts
|
|
5
5
|
type LinkProps = {
|
|
6
6
|
download?: string;
|
|
7
7
|
href?: string;
|
|
@@ -15,5 +15,4 @@ type LinkProps = {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
};
|
|
17
17
|
type ActionListLinkItemProps = Pick<ActionListItemProps, 'active' | 'children' | 'inactiveText' | 'variant' | 'size'> & LinkProps;
|
|
18
|
-
//#endregion
|
|
19
18
|
export { ActionListLinkItemProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import Link from "../Link/Link.js";
|
|
3
|
+
import { Item } from "./Item.js";
|
|
2
4
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
5
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
4
|
-
import { Item } from "./Item.js";
|
|
5
|
-
import Link from "../Link/Link.js";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/ActionList/LinkItem.tsx
|
|
9
9
|
const LinkItemWrapperContext = /*#__PURE__*/ React.createContext(null);
|
|
10
10
|
const LinkItemWrapper = (t0) => {
|
|
11
11
|
const $ = c(21);
|
|
@@ -111,5 +111,4 @@ const LinkItem = Object.assign(LinkItemComponent, {
|
|
|
111
111
|
displayName: "ActionList.LinkItem",
|
|
112
112
|
__SLOT__: Symbol("ActionList.LinkItem")
|
|
113
113
|
});
|
|
114
|
-
//#endregion
|
|
115
114
|
export { LinkItem };
|
package/dist/ActionList/List.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
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 useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
5
|
-
import { useId as useId$1 } from "../hooks/useId.js";
|
|
6
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
7
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
8
2
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
9
|
-
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
10
3
|
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
11
|
-
import {
|
|
4
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
12
5
|
import { Heading } from "./Heading.js";
|
|
6
|
+
import { useId as useId$1 } from "../hooks/useId.js";
|
|
7
|
+
import { ListContext } from "./shared.js";
|
|
8
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
9
|
+
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
13
10
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
11
|
+
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
12
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
14
13
|
import React, { useRef } from "react";
|
|
15
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
15
|
import { clsx } from "clsx";
|
|
17
|
-
|
|
16
|
+
// src/ActionList/List.tsx
|
|
18
17
|
const UnwrappedList = (props, forwardedRef) => {
|
|
19
18
|
var _slots$heading$props$;
|
|
20
|
-
const $ = c(
|
|
19
|
+
const $ = c(39);
|
|
21
20
|
let className;
|
|
22
21
|
let restProps;
|
|
23
22
|
let role;
|
|
@@ -65,12 +64,8 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
65
64
|
const { listRole: listRoleFromContainer, listLabelledBy, selectionVariant: containerSelectionVariant, enableFocusZone: enableFocusZoneFromContainer, container } = React.useContext(ActionListContainerContext);
|
|
66
65
|
const ariaLabelledBy = slots.heading ? (_slots$heading$props$ = slots.heading.props.id) !== null && _slots$heading$props$ !== void 0 ? _slots$heading$props$ : headingId : listLabelledBy;
|
|
67
66
|
const listRole = role || listRoleFromContainer;
|
|
68
|
-
const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
|
|
69
67
|
const listRef = useRef(null);
|
|
70
68
|
const mergedRef = useMergedRefs(listRef, forwardedRef);
|
|
71
|
-
const providedOrCreatedRef = useProvidedRefOrCreate(forwardedRef);
|
|
72
|
-
const readRef = mergedRefEnabled ? listRef : providedOrCreatedRef;
|
|
73
|
-
const appliedRef = mergedRefEnabled ? mergedRef : providedOrCreatedRef;
|
|
74
69
|
const itemGapEnabled = useFeatureFlag("primer_react_action_list_item_gap") && !disableItemGap && container === "NavList";
|
|
75
70
|
let enableFocusZone = false;
|
|
76
71
|
if (enableFocusZoneFromContainer !== void 0) enableFocusZone = enableFocusZoneFromContainer;
|
|
@@ -89,22 +84,21 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
89
84
|
const t6 = !enableFocusZone;
|
|
90
85
|
const t7 = listRole === "menu" || container === "SelectPanel" || container === "FilteredActionList" ? "wrap" : void 0;
|
|
91
86
|
let t8;
|
|
92
|
-
if ($[12] !==
|
|
87
|
+
if ($[12] !== t6 || $[13] !== t7) {
|
|
93
88
|
t8 = {
|
|
94
89
|
disabled: t6,
|
|
95
|
-
containerRef:
|
|
90
|
+
containerRef: listRef,
|
|
96
91
|
bindKeys: FocusKeys.ArrowVertical | FocusKeys.HomeAndEnd | FocusKeys.PageUpDown,
|
|
97
92
|
focusOutBehavior: t7
|
|
98
93
|
};
|
|
99
|
-
$[12] =
|
|
100
|
-
$[13] =
|
|
101
|
-
$[14] =
|
|
102
|
-
|
|
103
|
-
} else t8 = $[15];
|
|
94
|
+
$[12] = t6;
|
|
95
|
+
$[13] = t7;
|
|
96
|
+
$[14] = t8;
|
|
97
|
+
} else t8 = $[14];
|
|
104
98
|
useFocusZone(t8);
|
|
105
99
|
const t9 = selectionVariant || containerSelectionVariant;
|
|
106
100
|
let t10;
|
|
107
|
-
if ($[
|
|
101
|
+
if ($[15] !== headingId || $[16] !== listRole || $[17] !== showDividers || $[18] !== t9 || $[19] !== variant) {
|
|
108
102
|
t10 = {
|
|
109
103
|
variant,
|
|
110
104
|
selectionVariant: t9,
|
|
@@ -112,43 +106,42 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
112
106
|
role: listRole,
|
|
113
107
|
headingId
|
|
114
108
|
};
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
} else t10 = $[
|
|
109
|
+
$[15] = headingId;
|
|
110
|
+
$[16] = listRole;
|
|
111
|
+
$[17] = showDividers;
|
|
112
|
+
$[18] = t9;
|
|
113
|
+
$[19] = variant;
|
|
114
|
+
$[20] = t10;
|
|
115
|
+
} else t10 = $[20];
|
|
122
116
|
const listContextValue = t10;
|
|
123
117
|
let t11;
|
|
124
|
-
if ($[
|
|
118
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
125
119
|
t11 = () => {
|
|
126
|
-
const list =
|
|
120
|
+
const list = listRef.current;
|
|
127
121
|
if (!list) return;
|
|
128
122
|
const hasMixed = list.querySelector("[data-has-description=\"true\"]") !== null && list.querySelector("[data-has-description=\"false\"]") !== null;
|
|
129
123
|
const current = list.getAttribute("data-mixed-descriptions");
|
|
130
124
|
if (hasMixed && current !== "true") list.setAttribute("data-mixed-descriptions", "true");
|
|
131
125
|
else if (!hasMixed && current !== null) list.removeAttribute("data-mixed-descriptions");
|
|
132
126
|
};
|
|
133
|
-
$[
|
|
134
|
-
|
|
135
|
-
} else t11 = $[23];
|
|
127
|
+
$[21] = t11;
|
|
128
|
+
} else t11 = $[21];
|
|
136
129
|
useIsomorphicLayoutEffect(t11);
|
|
137
130
|
const t12 = slots.heading;
|
|
138
131
|
let t13;
|
|
139
|
-
if ($[
|
|
132
|
+
if ($[22] !== className) {
|
|
140
133
|
t13 = clsx(ActionList_module_css_default.ActionList, className);
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
} else t13 = $[
|
|
134
|
+
$[22] = className;
|
|
135
|
+
$[23] = t13;
|
|
136
|
+
} else t13 = $[23];
|
|
144
137
|
const t14 = itemGapEnabled ? "" : void 0;
|
|
145
138
|
let t15;
|
|
146
|
-
if ($[
|
|
139
|
+
if ($[24] !== Component || $[25] !== ariaLabelledBy || $[26] !== childrenWithoutSlots || $[27] !== listRole || $[28] !== mergedRef || $[29] !== restProps || $[30] !== showDividers || $[31] !== t13 || $[32] !== t14 || $[33] !== variant) {
|
|
147
140
|
t15 = /* @__PURE__ */ jsx(Component, {
|
|
148
141
|
className: t13,
|
|
149
142
|
role: listRole,
|
|
150
143
|
"aria-labelledby": ariaLabelledBy,
|
|
151
|
-
ref:
|
|
144
|
+
ref: mergedRef,
|
|
152
145
|
"data-component": "ActionList",
|
|
153
146
|
"data-dividers": showDividers,
|
|
154
147
|
"data-variant": variant,
|
|
@@ -156,32 +149,31 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
156
149
|
...restProps,
|
|
157
150
|
children: childrenWithoutSlots
|
|
158
151
|
});
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
} else t15 = $[
|
|
152
|
+
$[24] = Component;
|
|
153
|
+
$[25] = ariaLabelledBy;
|
|
154
|
+
$[26] = childrenWithoutSlots;
|
|
155
|
+
$[27] = listRole;
|
|
156
|
+
$[28] = mergedRef;
|
|
157
|
+
$[29] = restProps;
|
|
158
|
+
$[30] = showDividers;
|
|
159
|
+
$[31] = t13;
|
|
160
|
+
$[32] = t14;
|
|
161
|
+
$[33] = variant;
|
|
162
|
+
$[34] = t15;
|
|
163
|
+
} else t15 = $[34];
|
|
171
164
|
let t16;
|
|
172
|
-
if ($[
|
|
165
|
+
if ($[35] !== listContextValue || $[36] !== slots.heading || $[37] !== t15) {
|
|
173
166
|
t16 = /* @__PURE__ */ jsxs(ListContext.Provider, {
|
|
174
167
|
value: listContextValue,
|
|
175
168
|
children: [t12, t15]
|
|
176
169
|
});
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
} else t16 = $[
|
|
170
|
+
$[35] = listContextValue;
|
|
171
|
+
$[36] = slots.heading;
|
|
172
|
+
$[37] = t15;
|
|
173
|
+
$[38] = t16;
|
|
174
|
+
} else t16 = $[38];
|
|
182
175
|
return t16;
|
|
183
176
|
};
|
|
184
177
|
const List = fixedForwardRef(UnwrappedList);
|
|
185
178
|
Object.assign(List, { displayName: "ActionList" });
|
|
186
|
-
//#endregion
|
|
187
179
|
export { List };
|