@primer/react 38.47.0-rc.6f1dd6463 → 38.47.0-rc.a4f004c4f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ActionBar/ActionBar.d.ts +1 -2
- package/dist/ActionBar/ActionBar.js +8 -9
- package/dist/ActionBar/ActionBar.module.css.js +1 -2
- package/dist/ActionBar/index.d.ts +1 -3
- package/dist/ActionBar/index.js +1 -2
- package/dist/ActionList/ActionList.module.css.js +1 -2
- package/dist/ActionList/ActionListContainerContext.js +1 -2
- package/dist/ActionList/Description.d.ts +1 -2
- package/dist/ActionList/Description.js +2 -3
- package/dist/ActionList/Divider.d.ts +1 -2
- package/dist/ActionList/Divider.js +1 -2
- package/dist/ActionList/Group.d.ts +2 -3
- package/dist/ActionList/Group.js +3 -4
- package/dist/ActionList/Group.module.css.js +1 -2
- package/dist/ActionList/GroupContext.js +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -2
- package/dist/ActionList/Heading.d.ts +1 -2
- package/dist/ActionList/Heading.js +4 -5
- package/dist/ActionList/Heading.module.css.js +1 -2
- package/dist/ActionList/Item.js +11 -12
- package/dist/ActionList/LinkItem.d.ts +1 -2
- package/dist/ActionList/LinkItem.js +3 -4
- package/dist/ActionList/List.js +11 -12
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +8 -9
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +7 -8
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +3 -4
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +7 -8
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +5 -5
- package/dist/DataTable/DataTable.js +32 -30
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +3 -2
- package/dist/DataTable/TableGroup.js +195 -171
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +7 -8
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +11 -12
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +7 -8
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +28 -27
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +1 -2
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js +3 -4
- package/dist/Popover/Popover.module.css.js +1 -2
- package/dist/Portal/Portal.d.ts +1 -2
- package/dist/Portal/Portal.js +1 -2
- package/dist/Portal/PortalContext.d.ts +1 -2
- package/dist/Portal/PortalContext.js +1 -2
- package/dist/Portal/index.js +1 -2
- package/dist/Portal/portalRoot.d.ts +0 -2
- package/dist/Portal/portalRoot.js +1 -2
- package/dist/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/ProgressBar/ProgressBar.js +1 -2
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -2
- package/dist/ProgressBar/index.d.ts +1 -2
- package/dist/ProgressBar/index.js +1 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.js +1 -2
- package/dist/Radio/Radio.module.css.js +1 -2
- package/dist/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/RadioGroup/RadioGroup.js +4 -5
- package/dist/RadioGroup/RadioGroupContext.js +1 -2
- package/dist/RelativeTime/RelativeTime.d.ts +1 -2
- package/dist/RelativeTime/RelativeTime.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.js +9 -10
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.js +2 -3
- package/dist/SegmentedControl/SegmentedControlActionContext.js +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -3
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -3
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +2 -3
- package/dist/Select/Select.js +1 -2
- package/dist/Select/Select.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanel.d.ts +2 -3
- package/dist/SelectPanel/SelectPanel.js +13 -14
- package/dist/SelectPanel/SelectPanel.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanelMessage.d.ts +1 -2
- package/dist/SelectPanel/SelectPanelMessage.js +1 -2
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +1 -2
- package/dist/SideNav.js +1 -2
- package/dist/SideNav.module.css.js +1 -2
- package/dist/Skeleton/SkeletonBox.d.ts +1 -2
- package/dist/Skeleton/SkeletonBox.js +1 -2
- package/dist/Skeleton/SkeletonBox.module.css.js +1 -2
- package/dist/Skeleton/skeleton.module.css.js +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +1 -2
- package/dist/SkeletonText/SkeletonText.d.ts +1 -2
- package/dist/SkeletonText/SkeletonText.js +2 -3
- package/dist/SkeletonText/SkeletonText.module.css.js +1 -2
- package/dist/Spinner/Spinner.d.ts +1 -2
- package/dist/Spinner/Spinner.js +1 -2
- package/dist/Spinner/Spinner.module.css.js +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -2
- package/dist/Stack/Stack.d.ts +1 -2
- package/dist/Stack/Stack.js +1 -2
- package/dist/Stack/Stack.module.css.js +1 -2
- package/dist/Stack/index.d.ts +2 -3
- package/dist/Stack/index.js +1 -2
- package/dist/StateLabel/StateLabel.d.ts +1 -2
- package/dist/StateLabel/StateLabel.js +1 -2
- package/dist/StateLabel/StateLabel.module.css.js +1 -2
- package/dist/SubNav/SubNav.d.ts +1 -2
- package/dist/SubNav/SubNav.js +1 -2
- package/dist/SubNav/SubNav.module.css.js +1 -2
- package/dist/TabNav/TabNav.d.ts +1 -2
- package/dist/TabNav/TabNav.js +1 -2
- package/dist/TabNav/TabNav.module.css.js +1 -2
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/Text.js +1 -2
- package/dist/Text/Text.module.css.js +1 -2
- package/dist/TextInput/TextInput.d.ts +2 -3
- package/dist/TextInput/TextInput.js +10 -11
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +1 -2
- package/dist/Timeline/Timeline.js +1 -2
- package/dist/Timeline/Timeline.module.css.js +1 -2
- package/dist/Timeline/constants.d.ts +0 -2
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +1 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -4
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -2
- package/dist/Token/IssueLabelToken.d.ts +2 -3
- package/dist/Token/IssueLabelToken.js +2 -3
- package/dist/Token/IssueLabelToken.module.css.js +1 -2
- package/dist/Token/Token.d.ts +2 -3
- package/dist/Token/Token.js +3 -4
- package/dist/Token/Token.module.css.js +1 -2
- package/dist/Token/TokenBase.d.ts +1 -2
- package/dist/Token/TokenBase.js +1 -2
- package/dist/Token/TokenBase.module.css.js +1 -2
- package/dist/Token/_RemoveTokenButton.js +1 -2
- package/dist/Token/_RemoveTokenButton.module.css.js +1 -2
- package/dist/Token/_TokenTextContainer.js +1 -2
- package/dist/Token/_TokenTextContainer.module.css.js +1 -2
- package/dist/Token/constants.d.ts +0 -2
- package/dist/Token/constants.js +1 -2
- package/dist/Token/utils.js +1 -2
- package/dist/Tooltip/Tooltip.d.ts +1 -2
- package/dist/Tooltip/Tooltip.js +2 -3
- package/dist/Tooltip/Tooltip.module.css.js +1 -2
- package/dist/Tooltip/TooltipContext.js +1 -2
- package/dist/TooltipV2/Tooltip.d.ts +2 -3
- package/dist/TooltipV2/Tooltip.js +8 -9
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +12 -12
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +1 -2
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +13 -10
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +3 -4
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +16 -11
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/generated/components.json +12 -2
- package/package.json +6 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { isExperimentalReactVersion, reactMajorVersion } from "../utils/environment.js";
|
|
3
3
|
import { version } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useMergedRefs.ts
|
|
5
5
|
var _version$split$;
|
|
6
6
|
const majorReactVersion = parseInt((_version$split$ = version.split(".")[0]) !== null && _version$split$ !== void 0 ? _version$split$ : "18", 10);
|
|
7
7
|
/**
|
|
@@ -68,5 +68,4 @@ function setRef(ref, value) {
|
|
|
68
68
|
if (typeof ref === "function") return ref(value);
|
|
69
69
|
else if (ref) ref.current = value;
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { useMergedRefs };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { useProvidedRefOrCreate } from "./useProvidedRefOrCreate.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { iterateFocusableElements } from "@primer/behaviors/utils";
|
|
5
|
-
|
|
5
|
+
// src/hooks/useMnemonics.ts
|
|
6
6
|
const useMnemonics = (open, providedRef) => {
|
|
7
7
|
const $ = c(10);
|
|
8
8
|
const containerRef = useProvidedRefOrCreate(providedRef);
|
|
@@ -81,5 +81,4 @@ function _temp(item) {
|
|
|
81
81
|
function _temp2(shortcut) {
|
|
82
82
|
return shortcut.toLowerCase();
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
export { isAlphabetKey, useMnemonics };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useOnEscapePress.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Sets up a `keydown` listener on `window.document`. If
|
|
4
3
|
* 1) The pressed key is "Escape", and
|
|
@@ -23,5 +22,4 @@
|
|
|
23
22
|
* memoized. See `React.useCallback` for more info on memoization.
|
|
24
23
|
*/
|
|
25
24
|
declare const useOnEscapePress: (onEscape: (e: KeyboardEvent) => void, callbackDependencies?: React.DependencyList) => void;
|
|
26
|
-
//#endregion
|
|
27
25
|
export { useOnEscapePress };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useOnEscapePress.ts
|
|
4
4
|
/**
|
|
5
5
|
* Calls all handlers in reverse order
|
|
6
6
|
* @param event The KeyboardEvent generated by the Escape keydown.
|
|
@@ -61,5 +61,4 @@ const useOnEscapePress = (onEscape, callbackDependencies = [onEscape]) => {
|
|
|
61
61
|
};
|
|
62
62
|
}, [id, handler]);
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { useOnEscapePress };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useOnOutsideClick.d.ts
|
|
4
4
|
type TouchOrMouseEvent = MouseEvent | TouchEvent;
|
|
5
5
|
type UseOnOutsideClickSettings = {
|
|
6
6
|
containerRef: React.RefObject<HTMLDivElement | null> | React.RefObject<HTMLUListElement | null>;
|
|
@@ -12,5 +12,4 @@ declare const useOnOutsideClick: ({
|
|
|
12
12
|
ignoreClickRefs,
|
|
13
13
|
onClickOutside
|
|
14
14
|
}: UseOnOutsideClickSettings) => void;
|
|
15
|
-
//#endregion
|
|
16
15
|
export { TouchOrMouseEvent, UseOnOutsideClickSettings, useOnOutsideClick };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useOnOutsideClick.tsx
|
|
5
5
|
const stopPropagation = true;
|
|
6
6
|
/**
|
|
7
7
|
* Calls all handlers in reverse order
|
|
@@ -68,5 +68,4 @@ function _temp() {
|
|
|
68
68
|
handlerId = handlerId + 1;
|
|
69
69
|
return handlerId;
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { useOnOutsideClick };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useOpenAndCloseFocus.d.ts
|
|
4
4
|
type UseOpenAndCloseFocusSettings = {
|
|
5
5
|
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
6
6
|
containerRef: React.RefObject<HTMLElement | null>;
|
|
@@ -15,5 +15,4 @@ declare function useOpenAndCloseFocus({
|
|
|
15
15
|
preventFocusOnOpen,
|
|
16
16
|
preventFocusOnClose
|
|
17
17
|
}: UseOpenAndCloseFocusSettings): void;
|
|
18
|
-
//#endregion
|
|
19
18
|
export { UseOpenAndCloseFocusSettings, useOpenAndCloseFocus };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { iterateFocusableElements } from "@primer/behaviors/utils";
|
|
5
|
-
|
|
5
|
+
// src/hooks/useOpenAndCloseFocus.ts
|
|
6
6
|
function useOpenAndCloseFocus(t0) {
|
|
7
7
|
const $ = c(9);
|
|
8
8
|
const { initialFocusRef, returnFocusRef, containerRef, preventFocusOnOpen, preventFocusOnClose } = t0;
|
|
@@ -51,5 +51,4 @@ function useOpenAndCloseFocus(t0) {
|
|
|
51
51
|
}
|
|
52
52
|
useEffect(t2, t3);
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { useOpenAndCloseFocus };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useOverflow.ts
|
|
4
4
|
function useOverflow(ref) {
|
|
5
5
|
const $ = c(3);
|
|
6
6
|
const [hasOverflow, setHasOverflow] = useState(false);
|
|
@@ -31,5 +31,4 @@ function useOverflow(ref) {
|
|
|
31
31
|
function _temp(entry) {
|
|
32
32
|
return entry.target.scrollHeight > entry.target.clientHeight || entry.target.scrollWidth > entry.target.clientWidth;
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { useOverflow };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TouchOrMouseEvent } from "./useOnOutsideClick.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useOverlay.d.ts
|
|
4
4
|
type UseOverlaySettings = {
|
|
5
5
|
ignoreClickRefs?: React.RefObject<HTMLElement | null>[];
|
|
6
6
|
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
@@ -24,5 +24,4 @@ declare const useOverlay: ({
|
|
|
24
24
|
preventFocusOnOpen,
|
|
25
25
|
preventFocusOnClose
|
|
26
26
|
}: UseOverlaySettings) => OverlayReturnProps;
|
|
27
|
-
//#endregion
|
|
28
27
|
export { OverlayReturnProps, UseOverlaySettings, useOverlay };
|
package/dist/hooks/useOverlay.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useOnOutsideClick } from "./useOnOutsideClick.js";
|
|
3
|
-
import { useProvidedRefOrCreate } from "./useProvidedRefOrCreate.js";
|
|
4
|
-
import { useOnEscapePress } from "./useOnEscapePress.js";
|
|
5
3
|
import { useOpenAndCloseFocus } from "./useOpenAndCloseFocus.js";
|
|
6
|
-
|
|
4
|
+
import { useOnEscapePress } from "./useOnEscapePress.js";
|
|
5
|
+
import { useProvidedRefOrCreate } from "./useProvidedRefOrCreate.js";
|
|
6
|
+
// src/hooks/useOverlay.tsx
|
|
7
7
|
const useOverlay = (t0) => {
|
|
8
8
|
const $ = c(14);
|
|
9
9
|
const { overlayRef: _overlayRef, returnFocusRef, initialFocusRef, onEscape, ignoreClickRefs, onClickOutside, preventFocusOnOpen, preventFocusOnClose } = t0;
|
|
@@ -56,5 +56,4 @@ const useOverlay = (t0) => {
|
|
|
56
56
|
} else t4 = $[13];
|
|
57
57
|
return t4;
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { useOverlay };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useProvidedRefOrCreate.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* There are some situations where we only want to create a new ref if one is not provided to a component
|
|
6
6
|
* or hook as a prop. However, due to the `rules-of-hooks`, we cannot conditionally make a call to `React.useRef`
|
|
@@ -19,5 +19,4 @@ import React from "react";
|
|
|
19
19
|
* internal element.
|
|
20
20
|
*/
|
|
21
21
|
declare function useProvidedRefOrCreate<TRef>(providedRef?: React.RefObject<TRef | null>): React.RefObject<TRef | null>;
|
|
22
|
-
//#endregion
|
|
23
22
|
export { useProvidedRefOrCreate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/hooks/useProvidedRefOrCreate.ts
|
|
3
3
|
/**
|
|
4
4
|
* There are some situations where we only want to create a new ref if one is not provided to a component
|
|
5
5
|
* or hook as a prop. However, due to the `rules-of-hooks`, we cannot conditionally make a call to `React.useRef`
|
|
@@ -21,5 +21,4 @@ function useProvidedRefOrCreate(providedRef) {
|
|
|
21
21
|
const createdRef = React.useRef(null);
|
|
22
22
|
return providedRef !== null && providedRef !== void 0 ? providedRef : createdRef;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { useProvidedRefOrCreate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useProvidedStateOrCreate.ts
|
|
4
4
|
/**
|
|
5
5
|
* There are some situations where we want to give users the option to control state externally with their own state handlers
|
|
6
6
|
* or default to using internal state handlers. Because of the 'rules-of-hooks', we cannot conditionally make a call to `React.useState`
|
|
@@ -33,5 +33,4 @@ function useProvidedStateOrCreate(externalState, setExternalState, defaultState)
|
|
|
33
33
|
} else t1 = $[4];
|
|
34
34
|
return t1;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { useProvidedStateOrCreate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ForwardedRef, RefObject } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useRefObjectAsForwardedRef.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Use a ref object as the imperative handle for a forwarded ref. This can be used to
|
|
6
6
|
* synchronize the ref object with the forwarded ref and allow local access the reference
|
|
@@ -21,5 +21,4 @@ import { ForwardedRef, RefObject } from "react";
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T>, refObject: RefObject<T | null>): void;
|
|
24
|
-
//#endregion
|
|
25
24
|
export { useRefObjectAsForwardedRef };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useImperativeHandle } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useRefObjectAsForwardedRef.ts
|
|
4
4
|
/**
|
|
5
5
|
* Use a ref object as the imperative handle for a forwarded ref. This can be used to
|
|
6
6
|
* synchronize the ref object with the forwarded ref and allow local access the reference
|
|
@@ -23,12 +23,11 @@ import { useImperativeHandle } from "react";
|
|
|
23
23
|
function useRefObjectAsForwardedRef(forwardedRef, refObject) {
|
|
24
24
|
const $ = c(2);
|
|
25
25
|
let t0;
|
|
26
|
-
if ($[0] !== refObject
|
|
26
|
+
if ($[0] !== refObject) {
|
|
27
27
|
t0 = () => refObject.current;
|
|
28
|
-
$[0] = refObject
|
|
28
|
+
$[0] = refObject;
|
|
29
29
|
$[1] = t0;
|
|
30
30
|
} else t0 = $[1];
|
|
31
31
|
useImperativeHandle(forwardedRef, t0);
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { useRefObjectAsForwardedRef };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useRenderForcingRef.ts
|
|
4
4
|
/**
|
|
5
5
|
* There are certain situations where a ref might be set after the current render cycle for a
|
|
6
6
|
* component has finished. e.g. a forward ref from a conditionally rendered child component.
|
|
@@ -42,5 +42,4 @@ function useRenderForcingRef(value) {
|
|
|
42
42
|
} else t3 = $[4];
|
|
43
43
|
return t3;
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { useRenderForcingRef };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useResizeObserver.d.ts
|
|
4
4
|
type ResizeObserverCallback = (entries: ResizeObserverEntry[]) => void;
|
|
5
5
|
interface ResizeObserverEntry {
|
|
6
6
|
contentRect: DOMRectReadOnly;
|
|
7
7
|
}
|
|
8
8
|
declare function useResizeObserver<T extends HTMLElement>(callback: ResizeObserverCallback, target?: RefObject<T | null>, depsArray?: unknown[], enabled?: boolean): void;
|
|
9
|
-
//#endregion
|
|
10
9
|
export { ResizeObserverCallback, ResizeObserverEntry, useResizeObserver };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useResizeObserver.ts
|
|
4
4
|
function useResizeObserver(callback, target, depsArray = [], enabled = true) {
|
|
5
5
|
const [targetClientRect, setTargetClientRect] = useState(null);
|
|
6
6
|
const savedCallback = useRef(callback);
|
|
@@ -36,5 +36,4 @@ function useResizeObserver(callback, target, depsArray = [], enabled = true) {
|
|
|
36
36
|
...depsArray
|
|
37
37
|
]);
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { useResizeObserver };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useResponsiveValue.d.ts
|
|
2
1
|
type ResponsiveValue<TRegular, TNarrow = TRegular, TWide = TRegular> = {
|
|
3
2
|
narrow?: TNarrow;
|
|
4
3
|
regular?: TRegular;
|
|
@@ -21,5 +20,4 @@ type FlattenResponsiveValue<T> = (T extends ResponsiveValue<infer TRegular, infe
|
|
|
21
20
|
* console.log(value) // 'bar'
|
|
22
21
|
*/
|
|
23
22
|
declare function useResponsiveValue<T, F>(value: T, fallback: F): FlattenResponsiveValue<T> | F;
|
|
24
|
-
//#endregion
|
|
25
23
|
export { FlattenResponsiveValue, ResponsiveValue, useResponsiveValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMedia } from "./useMedia.js";
|
|
2
|
-
|
|
2
|
+
// src/hooks/useResponsiveValue.ts
|
|
3
3
|
const viewportRanges = {
|
|
4
4
|
narrow: "(max-width: calc(768px - 0.02px))",
|
|
5
5
|
regular: "(min-width: 768px)",
|
|
@@ -38,5 +38,4 @@ function useResponsiveValue(value, fallback) {
|
|
|
38
38
|
else return fallback;
|
|
39
39
|
} else return value;
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { isResponsiveValue, useResponsiveValue, viewportRanges };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useSafeTimeout.d.ts
|
|
2
1
|
type SetTimeout = (handler: TimerHandler, timeout?: number, ...args: unknown[]) => number;
|
|
3
2
|
type ClearTimeout = (id: number) => void;
|
|
4
3
|
/**
|
|
@@ -10,5 +9,4 @@ declare function useSafeTimeout(): {
|
|
|
10
9
|
safeSetTimeout: SetTimeout;
|
|
11
10
|
safeClearTimeout: ClearTimeout;
|
|
12
11
|
};
|
|
13
|
-
//#endregion
|
|
14
12
|
export { useSafeTimeout as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useSafeTimeout.ts
|
|
4
4
|
/**
|
|
5
5
|
* Safely call `setTimeout` and `clearTimeout` within a component.
|
|
6
6
|
*
|
|
@@ -61,5 +61,4 @@ function useSafeTimeout() {
|
|
|
61
61
|
} else t5 = $[5];
|
|
62
62
|
return t5;
|
|
63
63
|
}
|
|
64
|
-
//#endregion
|
|
65
64
|
export { useSafeTimeout as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useScrollFlash.ts
|
|
4
4
|
/**
|
|
5
5
|
* This hook will flash the scrollbars for a ref of a container that has scrollable overflow
|
|
6
6
|
* @param scrollContainerRef The ref of the scrollable content
|
|
@@ -31,5 +31,4 @@ function useScrollFlash(scrollContainerRef) {
|
|
|
31
31
|
}
|
|
32
32
|
useEffect(t0, t1);
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { useScrollFlash as default };
|
package/dist/hooks/useSlots.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/hooks/useSlots.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* useSlots - Extract slot components from children for SSR-compatible slot APIs.
|
|
6
6
|
*
|
|
@@ -57,5 +57,4 @@ type SlotElements<Config extends SlotConfig> = { [Property in keyof Config]: Slo
|
|
|
57
57
|
type SlotValue<Config, Property extends keyof Config> = Config[Property] extends React.ElementType ? React.ReactElement<React.ComponentPropsWithoutRef<Config[Property]>, Config[Property]> : Config[Property] extends readonly [infer ElementType extends React.ElementType, infer _testFn] ? React.ReactElement<React.ComponentPropsWithoutRef<ElementType>, ElementType> : never;
|
|
58
58
|
/** Extract slot components from children. See file header for details. */
|
|
59
59
|
declare function useSlots<Config extends SlotConfig>(children: React.ReactNode, config: Config): [Partial<SlotElements<Config>>, React.ReactNode[]];
|
|
60
|
-
//#endregion
|
|
61
60
|
export { SlotConfig, useSlots };
|
package/dist/hooks/useSlots.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warning } from "../utils/warning.js";
|
|
2
2
|
import { isSlot } from "../utils/is-slot.js";
|
|
3
3
|
import React from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useSlots.ts
|
|
5
5
|
/** Check if a child element matches a slot config entry, either by direct type comparison or slot symbol. */
|
|
6
6
|
function childMatchesSlot(child, slotValue) {
|
|
7
7
|
if (Array.isArray(slotValue)) {
|
|
@@ -84,5 +84,4 @@ function warnIfDisplayNameMatchesWithoutMarker(child, keys, values, totalSlots)
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { useSlots };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/hooks/useSyncedState.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* When the value that initialized the state changes
|
|
4
3
|
* this hook will update the state to the new value, immediately.
|
|
@@ -16,5 +15,4 @@ declare const useSyncedState: <T>(initialValue: T | (() => T), {
|
|
|
16
15
|
isEqual?: ((value1: any, value2: any) => boolean) | undefined;
|
|
17
16
|
isPropUpdateDisabled?: boolean | undefined;
|
|
18
17
|
}) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
19
|
-
//#endregion
|
|
20
18
|
export { useSyncedState };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useSyncedState.tsx
|
|
4
4
|
/**
|
|
5
5
|
* When the value that initialized the state changes
|
|
6
6
|
* this hook will update the state to the new value, immediately.
|
|
@@ -12,24 +12,29 @@ import { useState } from "react";
|
|
|
12
12
|
* This is adapted almost directly from https://beta.reactjs.org/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes
|
|
13
13
|
*/
|
|
14
14
|
const useSyncedState = (initialValue, t0) => {
|
|
15
|
-
const $ = c(
|
|
15
|
+
const $ = c(4);
|
|
16
16
|
const { isPropUpdateDisabled: t1, isEqual: t2 } = t0 === void 0 ? {} : t0;
|
|
17
17
|
const isPropUpdateDisabled = t1 === void 0 ? false : t1;
|
|
18
18
|
const isEqual = t2 === void 0 ? Object.is : t2;
|
|
19
19
|
const [state, setState] = useState(initialValue);
|
|
20
20
|
const [previous, setPrevious] = useState(initialValue);
|
|
21
|
-
|
|
21
|
+
let t3;
|
|
22
|
+
if ($[0] !== initialValue) {
|
|
23
|
+
t3 = initialValue instanceof Function ? initialValue() : initialValue;
|
|
24
|
+
$[0] = initialValue;
|
|
25
|
+
$[1] = t3;
|
|
26
|
+
} else t3 = $[1];
|
|
27
|
+
const nextInitialValue = t3;
|
|
22
28
|
if (!isPropUpdateDisabled && !isEqual(previous, nextInitialValue)) {
|
|
23
29
|
setPrevious(nextInitialValue);
|
|
24
30
|
setState(nextInitialValue);
|
|
25
31
|
}
|
|
26
|
-
let
|
|
27
|
-
if ($[
|
|
28
|
-
|
|
29
|
-
$[
|
|
30
|
-
$[
|
|
31
|
-
} else
|
|
32
|
-
return
|
|
32
|
+
let t4;
|
|
33
|
+
if ($[2] !== state) {
|
|
34
|
+
t4 = [state, setState];
|
|
35
|
+
$[2] = state;
|
|
36
|
+
$[3] = t4;
|
|
37
|
+
} else t4 = $[3];
|
|
38
|
+
return t4;
|
|
33
39
|
};
|
|
34
|
-
//#endregion
|
|
35
40
|
export { useSyncedState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { FCWithSlotMarker, SlotMarker, WithSlotMarker } from "./utils/types/Slots.js";
|
|
2
|
-
import { TouchOrMouseEvent, useOnOutsideClick } from "./hooks/useOnOutsideClick.js";
|
|
3
|
-
import { useProvidedRefOrCreate } from "./hooks/useProvidedRefOrCreate.js";
|
|
4
|
-
import { useOnEscapePress } from "./hooks/useOnEscapePress.js";
|
|
5
|
-
import { useOpenAndCloseFocus } from "./hooks/useOpenAndCloseFocus.js";
|
|
6
|
-
import { AnchoredPositionHookSettings, useAnchoredPosition } from "./hooks/useAnchoredPosition.js";
|
|
7
|
-
import { useOverlay } from "./hooks/useOverlay.js";
|
|
8
1
|
import theme, { ThemeColorPaths, ThemeShadowPaths } from "./theme.js";
|
|
9
|
-
import { AriaAlert, AriaAlertProps } from "./live-region/AriaAlert.js";
|
|
10
|
-
import { AriaStatus, AriaStatusProps } from "./live-region/AriaStatus.js";
|
|
11
2
|
import BaseStyles, { BaseStylesProps } from "./BaseStyles.js";
|
|
12
3
|
import { ThemeProvider, ThemeProviderProps } from "./ThemeProvider.js";
|
|
13
4
|
import { useColorSchemeVar, useTheme } from "./useTheme.js";
|
|
5
|
+
import { AriaAlert, AriaAlertProps } from "./live-region/AriaAlert.js";
|
|
6
|
+
import { AriaStatus, AriaStatusProps } from "./live-region/AriaStatus.js";
|
|
7
|
+
import useDetails from "./hooks/useDetails.js";
|
|
8
|
+
import useSafeTimeout from "./hooks/useSafeTimeout.js";
|
|
9
|
+
import { TouchOrMouseEvent, useOnOutsideClick } from "./hooks/useOnOutsideClick.js";
|
|
10
|
+
import { useOpenAndCloseFocus } from "./hooks/useOpenAndCloseFocus.js";
|
|
14
11
|
import { Tooltip, TooltipProps } from "./TooltipV2/Tooltip.js";
|
|
12
|
+
import { useOnEscapePress } from "./hooks/useOnEscapePress.js";
|
|
15
13
|
import { ButtonBaseProps, ButtonProps, IconButtonProps } from "./Button/types.js";
|
|
16
14
|
import { IconButton } from "./Button/IconButton.js";
|
|
17
15
|
import { LinkButton, LinkButtonProps } from "./Button/LinkButton.js";
|
|
18
16
|
import { ButtonComponent } from "./Button/Button.js";
|
|
19
17
|
import { ButtonBase } from "./Button/ButtonBase.js";
|
|
20
|
-
import {
|
|
18
|
+
import { useOverlay } from "./hooks/useOverlay.js";
|
|
19
|
+
import { useConfirm } from "./ConfirmationDialog/useConfirm.js";
|
|
21
20
|
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./PageLayout/usePaneWidth.js";
|
|
22
21
|
import { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps, PageLayoutProps } from "./PageLayout/PageLayout.js";
|
|
23
22
|
import { DragHandle, DragHandleProps } from "./PageLayout/DragHandle.js";
|
|
24
|
-
import { SplitPageLayout, SplitPageLayoutContentProps, SplitPageLayoutFooterProps, SplitPageLayoutHeaderProps, SplitPageLayoutPaneProps, SplitPageLayoutProps } from "./SplitPageLayout/SplitPageLayout.js";
|
|
25
|
-
import useDetails from "./hooks/useDetails.js";
|
|
26
|
-
import useSafeTimeout from "./hooks/useSafeTimeout.js";
|
|
27
|
-
import { Dialog, DialogButtonProps, DialogHeaderProps, DialogHeight, DialogProps, DialogWidth } from "./Dialog/Dialog.js";
|
|
28
|
-
import { ConfirmationDialog, ConfirmationDialogProps } from "./ConfirmationDialog/ConfirmationDialog.js";
|
|
29
|
-
import { useConfirm } from "./ConfirmationDialog/useConfirm.js";
|
|
30
23
|
import { FocusTrapHookSettings, useFocusTrap } from "./hooks/useFocusTrap.js";
|
|
24
|
+
import { SplitPageLayout, SplitPageLayoutContentProps, SplitPageLayoutFooterProps, SplitPageLayoutHeaderProps, SplitPageLayoutPaneProps, SplitPageLayoutProps } from "./SplitPageLayout/SplitPageLayout.js";
|
|
31
25
|
import { FocusKeys, FocusZoneHookSettings, useFocusZone } from "./hooks/useFocusZone.js";
|
|
32
26
|
import { useRefObjectAsForwardedRef } from "./hooks/useRefObjectAsForwardedRef.js";
|
|
33
27
|
import { useMergedRefs } from "./hooks/useMergedRefs.js";
|
|
28
|
+
import { Dialog, DialogButtonProps, DialogHeaderProps, DialogHeight, DialogProps, DialogWidth } from "./Dialog/Dialog.js";
|
|
34
29
|
import { useResizeObserver } from "./hooks/useResizeObserver.js";
|
|
30
|
+
import { ResponsiveValue, useResponsiveValue } from "./hooks/useResponsiveValue.js";
|
|
35
31
|
import useIsomorphicLayoutEffect from "./utils/useIsomorphicLayoutEffect.js";
|
|
32
|
+
import { useProvidedRefOrCreate } from "./hooks/useProvidedRefOrCreate.js";
|
|
36
33
|
import { useId } from "./hooks/useId.js";
|
|
37
34
|
import { useSyncedState } from "./hooks/useSyncedState.js";
|
|
35
|
+
import { AnchoredPositionHookSettings, useAnchoredPosition } from "./hooks/useAnchoredPosition.js";
|
|
38
36
|
import { createComponent } from "./utils/create-component.js";
|
|
37
|
+
import { FCWithSlotMarker, SlotMarker, WithSlotMarker } from "./utils/types/Slots.js";
|
|
39
38
|
import { asSlot } from "./utils/as-slot.js";
|
|
40
39
|
import { isSlot } from "./utils/is-slot.js";
|
|
41
40
|
import { useSlots } from "./hooks/useSlots.js";
|
|
41
|
+
import { ActionList } from "./ActionList/index.js";
|
|
42
42
|
import _default$9, { RadioProps } from "./Radio/Radio.js";
|
|
43
43
|
import { ActionListTrailingActionProps } from "./ActionList/TrailingAction.js";
|
|
44
44
|
import { ActionListGroupHeadingTrailingActionProps } from "./ActionList/GroupHeadingTrailingAction.js";
|
|
@@ -48,7 +48,6 @@ import { ActionListLinkItemProps } from "./ActionList/LinkItem.js";
|
|
|
48
48
|
import { ActionListDividerProps } from "./ActionList/Divider.js";
|
|
49
49
|
import { ActionListDescriptionProps } from "./ActionList/Description.js";
|
|
50
50
|
import { ActionListLeadingVisualProps, ActionListTrailingVisualProps } from "./ActionList/Visuals.js";
|
|
51
|
-
import { ActionList } from "./ActionList/index.js";
|
|
52
51
|
import { AnchoredOverlay, AnchoredOverlayProps } from "./AnchoredOverlay/AnchoredOverlay.js";
|
|
53
52
|
import { AutocompleteMenuProps } from "./Autocomplete/AutocompleteMenu.js";
|
|
54
53
|
import { AutocompleteOverlayProps } from "./Autocomplete/AutocompleteOverlay.js";
|
|
@@ -56,16 +55,17 @@ import _default$15, { TextInputProps } from "./TextInput/TextInput.js";
|
|
|
56
55
|
import { TextInputActionProps } from "./internal/components/TextInputInnerAction.js";
|
|
57
56
|
import { AutocompleteInputProps } from "./Autocomplete/AutocompleteInput.js";
|
|
58
57
|
import _default from "./Autocomplete/Autocomplete.js";
|
|
58
|
+
import { Banner } from "./Banner/index.js";
|
|
59
59
|
import Avatar, { AvatarProps } from "./Avatar/Avatar.js";
|
|
60
60
|
import AvatarStack, { AvatarStackProps } from "./AvatarStack/AvatarStack.js";
|
|
61
61
|
import { BannerProps } from "./Banner/Banner.js";
|
|
62
|
-
import { Banner } from "./Banner/index.js";
|
|
63
62
|
import _default$1, { BranchNameProps } from "./BranchName/BranchName.js";
|
|
64
63
|
import _default$2, { Breadcrumb, BreadcrumbItemProps, BreadcrumbProps, BreadcrumbsItemProps, BreadcrumbsProps } from "./Breadcrumbs/Breadcrumbs.js";
|
|
65
64
|
import ButtonGroup, { ButtonGroupProps } from "./ButtonGroup/ButtonGroup.js";
|
|
66
65
|
import _default$5, { CircleBadgeIconProps, CircleBadgeProps } from "./CircleBadge/CircleBadge.js";
|
|
67
66
|
import _default$4, { CheckboxGroupProps } from "./CheckboxGroup/CheckboxGroup.js";
|
|
68
67
|
import CounterLabel, { CounterLabelProps } from "./CounterLabel/CounterLabel.js";
|
|
68
|
+
import { ConfirmationDialog, ConfirmationDialogProps } from "./ConfirmationDialog/ConfirmationDialog.js";
|
|
69
69
|
import Details, { DetailsProps } from "./Details/Details.js";
|
|
70
70
|
import Flash, { FlashProps } from "./Flash/Flash.js";
|
|
71
71
|
import { Props } from "./FormControl/FormControlLabel.js";
|
|
@@ -110,17 +110,17 @@ import _default$19, { TruncateProps } from "./Truncate/Truncate.js";
|
|
|
110
110
|
import _default$3, { CheckboxProps } from "./Checkbox/Checkbox.js";
|
|
111
111
|
import _default$17, { TextareaProps } from "./Textarea/Textarea.js";
|
|
112
112
|
import { TreeView, TreeViewErrorDialogProps, TreeViewItemProps, TreeViewProps, TreeViewSubTreeProps, TreeViewVisualProps } from "./TreeView/TreeView.js";
|
|
113
|
-
import { useRovingTabIndex } from "./TreeView/useRovingTabIndex.js";
|
|
114
113
|
import { VisuallyHidden, VisuallyHiddenProps } from "./VisuallyHidden/VisuallyHidden.js";
|
|
115
114
|
import { UnderlineNavProps } from "./UnderlineNav/UnderlineNav.js";
|
|
116
115
|
import { UnderlineNavItemProps } from "./UnderlineNav/UnderlineNavItemsRegistry.js";
|
|
117
|
-
import {
|
|
116
|
+
import { useRovingTabIndex } from "./TreeView/useRovingTabIndex.js";
|
|
118
117
|
import { ActionBarProps } from "./ActionBar/ActionBar.js";
|
|
119
|
-
import { ActionBar } from "./ActionBar/index.js";
|
|
120
118
|
import { StackItemProps, StackProps } from "./Stack/Stack.js";
|
|
121
|
-
import {
|
|
119
|
+
import { UnderlineNav } from "./UnderlineNav/index.js";
|
|
122
120
|
import { ActionsProps, ChildrenPropTypes, PageHeader, PageHeaderProps, TitleAreaProps, TitleProps } from "./PageHeader/PageHeader.js";
|
|
121
|
+
import { ActionBar } from "./ActionBar/index.js";
|
|
123
122
|
import { SkeletonBox, SkeletonBoxProps } from "./Skeleton/SkeletonBox.js";
|
|
123
|
+
import { Stack } from "./Stack/index.js";
|
|
124
124
|
import { ActionMenu, ActionMenuAnchorProps, ActionMenuButtonProps, ActionMenuProps } from "./ActionMenu/ActionMenu.js";
|
|
125
125
|
import Overlay, { OverlayProps } from "./Overlay/Overlay.js";
|
|
126
126
|
export { ActionBar, type ActionBarProps, ActionList, type ActionListDescriptionProps, type ActionListDividerProps, type ActionListGroupHeadingProps, type ActionListGroupHeadingTrailingActionProps, type ActionListGroupProps, type ActionListItemProps, type ActionListLeadingVisualProps, type ActionListLinkItemProps, type ActionListProps, type ActionListTrailingActionProps, type ActionListTrailingVisualProps, ActionMenu, type ActionMenuAnchorProps, type ActionMenuButtonProps, type ActionMenuProps, AnchoredOverlay, type AnchoredOverlayProps, type AnchoredPositionHookSettings, AriaAlert, type AriaAlertProps, AriaStatus, type AriaStatusProps, _default as Autocomplete, type AutocompleteInputProps, type AutocompleteMenuProps, type AutocompleteOverlayProps, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Banner, type BannerProps, BaseStyles, type BaseStylesProps, _default$1 as BranchName, type BranchNameProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, _default$2 as Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, ButtonComponent as Button, ButtonBase, type ButtonBaseProps, ButtonGroup, type ButtonGroupProps, type ButtonProps, _default$3 as Checkbox, _default$4 as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _default$5 as CircleBadge, type CircleBadgeIconProps, type CircleBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CounterLabel, type CounterLabelProps, type CustomWidthOptions, Details, type DetailsProps, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, DragHandle, type DragHandleProps, type FCWithSlotMarker, Flash, type FlashProps, FocusKeys, type FocusTrapHookSettings, type FocusZoneHookSettings, _default$6 as FormControl, type FormControlCaptionProps, type Props as FormControlLabelProps, type FormControlProps, type FormControlValidationProps, _default$7 as Header, type HeaderItemProps, type HeaderLinkProps, type HeaderProps, Heading, type HeadingProps, IconButton, type IconButtonProps, IssueLabelToken, type IssueLabelTokenProps, Label, type LabelColorOptions, LabelGroup, type LabelGroupProps, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, NavList, type NavListDividerProps, type NavListGroupHeadingProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, Overlay, type OverlayProps, PageHeader, type ActionsProps as PageHeaderActionsProps, type ChildrenPropTypes as PageHeaderChildrenPropTypes, type PageHeaderProps, type TitleAreaProps as PageHeaderTitleAreaProps, type TitleProps as PageHeaderTitleProps, PageLayout, type PageLayoutContentProps, type PageLayoutFooterProps, type PageLayoutHeaderProps, type PageLayoutPaneProps, type PageLayoutProps, Pagination, type PaginationProps, type PaneWidth, type PaneWidthValue, _default$8 as Popover, type PopoverContentProps, type PopoverProps, Portal, PortalContext, type PortalProps, ProgressBar, type ProgressBarItemProps, type ProgressBarProps, _default$9 as Radio, _default$10 as RadioGroup, type RadioGroupProps, type RadioProps, RelativeTime, type RelativeTimeProps, type ResponsiveValue, SegmentedControl, type SegmentedControlActionProps, type SegmentedControlButtonProps, type SegmentedControlDividerProps, type SegmentedControlIconButtonProps, type SegmentedControlProps, _default$11 as Select, SelectPanel, type GroupedListProps as SelectPanelGroupedListProps, type ItemInput as SelectPanelItemInput, type FilteredActionListItemProps as SelectPanelItemProps, type SelectPanelProps, type SelectProps, _default$12 as SideNav, type SideNavLinkProps, type SideNavProps, SkeletonBox, type SkeletonBoxProps, type SlotMarker, Spinner, type SpinnerProps, SplitPageLayout, type SplitPageLayoutContentProps, type SplitPageLayoutFooterProps, type SplitPageLayoutHeaderProps, type SplitPageLayoutPaneProps, type SplitPageLayoutProps, Stack, type StackItemProps, type StackProps, StateLabel, type StateLabelProps, _default$13 as SubNav, type SubNavLinkProps, type SubNavLinksProps, type SubNavProps, _default$14 as Text, _default$15 as TextInput, type TextInputActionProps, type TextInputProps, _default$16 as TextInputWithTokens, type TextInputWithTokensProps, type TextProps, _default$17 as Textarea, type TextareaProps, type ThemeColorPaths, ThemeProvider, type ThemeProviderProps, type ThemeShadowPaths, _default$18 as Timeline, type TimelineActionsProps, type TimelineAvatarProps, type TimelineBadgeProps, type TimelineBadgeVariant, type TimelineBodyProps, type TimelineBreakProps, type TimelineItemProps, type TimelineItemsProps, type TimelineProps, ToggleSwitch, type ToggleSwitchProps, Token, type TokenProps, Tooltip, type TooltipProps, type TouchOrMouseEvent, TreeView, type TreeViewErrorDialogProps, type TreeViewItemProps, type TreeViewProps, type TreeViewSubTreeProps, type TreeViewVisualProps, _default$19 as Truncate, type TruncateProps, UnderlineNav, type UnderlineNavItemProps, type UnderlineNavProps, type UsePaneWidthOptions, type UsePaneWidthResult, VisuallyHidden, type VisuallyHiddenProps, type WithSlotMarker, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
|