@primer/react 38.46.1-rc.41e2a6837 → 38.47.0-rc.0f998b98f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -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 +9 -10
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +408 -170
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +7 -8
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +3 -4
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +3 -4
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +5 -5
- package/dist/DataTable/DataTable.js +32 -30
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +3 -2
- package/dist/DataTable/TableGroup.js +195 -171
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +7 -8
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +11 -12
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +7 -8
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +1 -2
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +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 +8 -9
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +1 -2
- package/dist/Timeline/Timeline.js +1 -2
- package/dist/Timeline/Timeline.module.css.js +1 -2
- package/dist/Timeline/constants.d.ts +0 -2
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +1 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -4
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -2
- package/dist/Token/IssueLabelToken.d.ts +2 -3
- package/dist/Token/IssueLabelToken.js +2 -3
- package/dist/Token/IssueLabelToken.module.css.js +1 -2
- package/dist/Token/Token.d.ts +2 -3
- package/dist/Token/Token.js +3 -4
- package/dist/Token/Token.module.css.js +1 -2
- package/dist/Token/TokenBase.d.ts +1 -2
- package/dist/Token/TokenBase.js +1 -2
- package/dist/Token/TokenBase.module.css.js +1 -2
- package/dist/Token/_RemoveTokenButton.js +1 -2
- package/dist/Token/_RemoveTokenButton.module.css.js +1 -2
- package/dist/Token/_TokenTextContainer.js +1 -2
- package/dist/Token/_TokenTextContainer.module.css.js +1 -2
- package/dist/Token/constants.d.ts +0 -2
- package/dist/Token/constants.js +1 -2
- package/dist/Token/utils.js +1 -2
- package/dist/Tooltip/Tooltip.d.ts +1 -2
- package/dist/Tooltip/Tooltip.js +2 -3
- package/dist/Tooltip/Tooltip.module.css.js +1 -2
- package/dist/Tooltip/TooltipContext.js +1 -2
- package/dist/TooltipV2/Tooltip.d.ts +2 -3
- package/dist/TooltipV2/Tooltip.js +8 -9
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +1 -2
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +1 -2
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +7 -8
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +1 -2
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +1 -2
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/generated/components.json +12 -2
- package/package.json +3 -3
|
@@ -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
|
|
@@ -30,5 +30,4 @@ function useRefObjectAsForwardedRef(forwardedRef, refObject) {
|
|
|
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.
|
|
@@ -31,5 +31,4 @@ const useSyncedState = (initialValue, t0) => {
|
|
|
31
31
|
} else t3 = $[1];
|
|
32
32
|
return t3;
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import theme from "./theme.js";
|
|
3
|
-
import { AriaAlert } from "./live-region/AriaAlert.js";
|
|
4
3
|
import { AriaStatus } from "./live-region/AriaStatus.js";
|
|
4
|
+
import { AriaAlert } from "./live-region/AriaAlert.js";
|
|
5
5
|
import BaseStyles from "./BaseStyles.js";
|
|
6
|
-
import { useSyncedState } from "./hooks/useSyncedState.js";
|
|
7
|
-
import { useColorSchemeVar, useTheme } from "./useTheme.js";
|
|
8
6
|
import { ThemeProvider } from "./ThemeProvider.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { useColorSchemeVar, useTheme } from "./useTheme.js";
|
|
8
|
+
import { PageLayout } from "./PageLayout/PageLayout.js";
|
|
9
|
+
import { defaultPaneWidth, usePaneWidth } from "./PageLayout/usePaneWidth.js";
|
|
10
|
+
import { DragHandle } from "./PageLayout/DragHandle.js";
|
|
11
|
+
import { SplitPageLayout } from "./SplitPageLayout/SplitPageLayout.js";
|
|
12
|
+
import useDetails from "./hooks/useDetails.js";
|
|
13
|
+
import useSafeTimeout from "./hooks/useSafeTimeout.js";
|
|
11
14
|
import { useOnOutsideClick } from "./hooks/useOnOutsideClick.js";
|
|
12
|
-
import { useProvidedRefOrCreate } from "./hooks/useProvidedRefOrCreate.js";
|
|
13
|
-
import { useOnEscapePress } from "./hooks/useOnEscapePress.js";
|
|
14
15
|
import { useOpenAndCloseFocus } from "./hooks/useOpenAndCloseFocus.js";
|
|
15
|
-
import
|
|
16
|
-
import { useResizeObserver } from "./hooks/useResizeObserver.js";
|
|
17
|
-
import { useAnchoredPosition } from "./hooks/useAnchoredPosition.js";
|
|
16
|
+
import { useOnEscapePress } from "./hooks/useOnEscapePress.js";
|
|
18
17
|
import { useOverlay } from "./hooks/useOverlay.js";
|
|
18
|
+
import { useConfirm } from "./ConfirmationDialog/useConfirm.js";
|
|
19
|
+
import { useFocusTrap } from "./hooks/useFocusTrap.js";
|
|
20
|
+
import { FocusKeys, useFocusZone } from "./hooks/useFocusZone.js";
|
|
19
21
|
import { useRefObjectAsForwardedRef } from "./hooks/useRefObjectAsForwardedRef.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import Spinner from "./Spinner/Spinner.js";
|
|
24
|
-
import CounterLabel from "./CounterLabel/CounterLabel.js";
|
|
22
|
+
import { useMergedRefs } from "./hooks/useMergedRefs.js";
|
|
23
|
+
import { useResizeObserver } from "./hooks/useResizeObserver.js";
|
|
24
|
+
import { useResponsiveValue } from "./hooks/useResponsiveValue.js";
|
|
25
25
|
import { ButtonBase } from "./Button/ButtonBase.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
26
|
+
import useIsomorphicLayoutEffect from "./utils/useIsomorphicLayoutEffect.js";
|
|
27
|
+
import { useProvidedRefOrCreate } from "./hooks/useProvidedRefOrCreate.js";
|
|
28
|
+
import { useId } from "./hooks/useId.js";
|
|
29
29
|
import { IconButton } from "./Button/IconButton.js";
|
|
30
30
|
import { LinkButton } from "./Button/LinkButton.js";
|
|
31
31
|
import { ButtonComponent } from "./Button/Button.js";
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { DragHandle } from "./PageLayout/DragHandle.js";
|
|
35
|
-
import { PageLayout } from "./PageLayout/PageLayout.js";
|
|
36
|
-
import { SplitPageLayout } from "./SplitPageLayout/SplitPageLayout.js";
|
|
37
|
-
import useDetails from "./hooks/useDetails.js";
|
|
38
|
-
import { useFocusTrap } from "./hooks/useFocusTrap.js";
|
|
39
|
-
import { FocusKeys, useFocusZone } from "./hooks/useFocusZone.js";
|
|
40
|
-
import { PortalContext } from "./Portal/PortalContext.js";
|
|
41
|
-
import { registerPortalRoot } from "./Portal/portalRoot.js";
|
|
42
|
-
import Portal_default from "./Portal/index.js";
|
|
43
|
-
import { Dialog } from "./Dialog/Dialog.js";
|
|
44
|
-
import { ConfirmationDialog } from "./ConfirmationDialog/ConfirmationDialog.js";
|
|
45
|
-
import { useConfirm } from "./ConfirmationDialog/useConfirm.js";
|
|
32
|
+
import { useSyncedState } from "./hooks/useSyncedState.js";
|
|
33
|
+
import { useAnchoredPosition } from "./hooks/useAnchoredPosition.js";
|
|
46
34
|
import { createComponent } from "./utils/create-component.js";
|
|
47
35
|
import { asSlot } from "./utils/as-slot.js";
|
|
36
|
+
import { isSlot } from "./utils/is-slot.js";
|
|
37
|
+
import { useSlots } from "./hooks/useSlots.js";
|
|
48
38
|
import Radio from "./Radio/Radio.js";
|
|
49
|
-
import Heading from "./Heading/Heading.js";
|
|
50
|
-
import Truncate_default from "./Truncate/Truncate.js";
|
|
51
|
-
import Link from "./Link/Link.js";
|
|
52
39
|
import { ActionList } from "./ActionList/index.js";
|
|
53
|
-
import
|
|
54
|
-
import {
|
|
40
|
+
import { PortalContext } from "./Portal/PortalContext.js";
|
|
41
|
+
import { registerPortalRoot } from "./Portal/portalRoot.js";
|
|
55
42
|
import { ActionMenu } from "./ActionMenu/ActionMenu.js";
|
|
56
|
-
import
|
|
43
|
+
import { AnchoredOverlay } from "./AnchoredOverlay/AnchoredOverlay.js";
|
|
57
44
|
import Autocomplete_default from "./Autocomplete/Autocomplete.js";
|
|
58
45
|
import Avatar from "./Avatar/Avatar.js";
|
|
59
46
|
import AvatarStack from "./AvatarStack/AvatarStack.js";
|
|
@@ -61,39 +48,52 @@ import { Banner } from "./Banner/index.js";
|
|
|
61
48
|
import BranchName_default from "./BranchName/BranchName.js";
|
|
62
49
|
import Breadcrumbs_default, { Breadcrumb } from "./Breadcrumbs/Breadcrumbs.js";
|
|
63
50
|
import ButtonGroup from "./ButtonGroup/ButtonGroup.js";
|
|
64
|
-
import { Stack } from "./Stack/index.js";
|
|
65
|
-
import { useFormControlForwardedProps } from "./FormControl/_FormControlContext.js";
|
|
66
|
-
import Checkbox from "./Checkbox/Checkbox.js";
|
|
67
|
-
import Select_default from "./Select/Select.js";
|
|
68
|
-
import { SkeletonBox } from "./Skeleton/SkeletonBox.js";
|
|
69
|
-
import { SelectPanel } from "./SelectPanel/SelectPanel.js";
|
|
70
|
-
import Token from "./Token/Token.js";
|
|
71
|
-
import TextInputWithTokens from "./TextInputWithTokens/TextInputWithTokens.js";
|
|
72
|
-
import Textarea from "./Textarea/Textarea.js";
|
|
73
|
-
import FormControl_default from "./FormControl/FormControl.js";
|
|
74
51
|
import CheckboxGroup_default from "./CheckboxGroup/CheckboxGroup.js";
|
|
75
52
|
import CircleBadge_default from "./CircleBadge/CircleBadge.js";
|
|
53
|
+
import CounterLabel from "./CounterLabel/CounterLabel.js";
|
|
76
54
|
import Details from "./Details/Details.js";
|
|
55
|
+
import { Dialog } from "./Dialog/Dialog.js";
|
|
56
|
+
import { ConfirmationDialog } from "./ConfirmationDialog/ConfirmationDialog.js";
|
|
77
57
|
import Flash from "./Flash/Flash.js";
|
|
58
|
+
import FormControl_default from "./FormControl/FormControl.js";
|
|
59
|
+
import { useFormControlForwardedProps } from "./FormControl/_FormControlContext.js";
|
|
78
60
|
import Header_default from "./Header/Header.js";
|
|
61
|
+
import Heading from "./Heading/Heading.js";
|
|
79
62
|
import Label_default from "./Label/index.js";
|
|
80
63
|
import LabelGroup from "./LabelGroup/LabelGroup.js";
|
|
64
|
+
import Link from "./Link/Link.js";
|
|
81
65
|
import { NavList } from "./NavList/NavList.js";
|
|
66
|
+
import Overlay from "./Overlay/Overlay.js";
|
|
82
67
|
import Pagination_default from "./Pagination/index.js";
|
|
83
68
|
import Popover_default from "./Popover/Popover.js";
|
|
69
|
+
import Portal_default from "./Portal/index.js";
|
|
84
70
|
import { ProgressBar } from "./ProgressBar/index.js";
|
|
85
71
|
import RadioGroup_default from "./RadioGroup/RadioGroup.js";
|
|
86
72
|
import RelativeTime from "./RelativeTime/RelativeTime.js";
|
|
87
73
|
import { SegmentedControl } from "./SegmentedControl/SegmentedControl.js";
|
|
74
|
+
import Select_default from "./Select/Select.js";
|
|
75
|
+
import { SelectPanel } from "./SelectPanel/SelectPanel.js";
|
|
88
76
|
import SideNav_default from "./SideNav.js";
|
|
77
|
+
import Spinner from "./Spinner/Spinner.js";
|
|
89
78
|
import StateLabel from "./StateLabel/StateLabel.js";
|
|
90
79
|
import SubNav_default from "./SubNav/SubNav.js";
|
|
91
80
|
import ToggleSwitch from "./ToggleSwitch/ToggleSwitch.js";
|
|
81
|
+
import TextInput_default from "./TextInput/TextInput.js";
|
|
82
|
+
import TextInputWithTokens from "./TextInputWithTokens/TextInputWithTokens.js";
|
|
83
|
+
import Text_default from "./Text/Text.js";
|
|
92
84
|
import Timeline_default from "./Timeline/Timeline.js";
|
|
85
|
+
import Token from "./Token/Token.js";
|
|
93
86
|
import IssueLabelToken from "./Token/IssueLabelToken.js";
|
|
94
|
-
import {
|
|
87
|
+
import { Tooltip } from "./TooltipV2/Tooltip.js";
|
|
88
|
+
import Truncate_default from "./Truncate/Truncate.js";
|
|
89
|
+
import Checkbox from "./Checkbox/Checkbox.js";
|
|
90
|
+
import Textarea from "./Textarea/Textarea.js";
|
|
95
91
|
import { TreeView } from "./TreeView/TreeView.js";
|
|
92
|
+
import { useRovingTabIndex } from "./TreeView/useRovingTabIndex.js";
|
|
93
|
+
import { VisuallyHidden } from "./VisuallyHidden/VisuallyHidden.js";
|
|
96
94
|
import { UnderlineNav } from "./UnderlineNav/index.js";
|
|
97
95
|
import { ActionBar } from "./ActionBar/index.js";
|
|
96
|
+
import { Stack } from "./Stack/index.js";
|
|
98
97
|
import { PageHeader } from "./PageHeader/PageHeader.js";
|
|
98
|
+
import { SkeletonBox } from "./Skeleton/SkeletonBox.js";
|
|
99
99
|
export { ActionBar, ActionList, ActionMenu, AnchoredOverlay, AriaAlert, AriaStatus, Autocomplete_default as Autocomplete, Avatar, AvatarStack, Banner, BaseStyles, BranchName_default as BranchName, Breadcrumb, Breadcrumbs_default as Breadcrumbs, ButtonComponent as Button, ButtonBase, ButtonGroup, Checkbox, CheckboxGroup_default as CheckboxGroup, CircleBadge_default as CircleBadge, ConfirmationDialog, CounterLabel, Details, Dialog, DragHandle, Flash, FocusKeys, FormControl_default as FormControl, Header_default as Header, Heading, IconButton, IssueLabelToken, Label_default as Label, LabelGroup, Link, LinkButton, NavList, Overlay, PageHeader, PageLayout, Pagination_default as Pagination, Popover_default as Popover, Portal_default as Portal, PortalContext, ProgressBar, Radio, RadioGroup_default as RadioGroup, RelativeTime, SegmentedControl, Select_default as Select, SelectPanel, SideNav_default as SideNav, SkeletonBox, Spinner, SplitPageLayout, Stack, StateLabel, SubNav_default as SubNav, Text_default as Text, TextInput_default as TextInput, TextInputWithTokens, Textarea, ThemeProvider, Timeline_default as Timeline, ToggleSwitch, Token, Tooltip, TreeView, Truncate_default as Truncate, UnderlineNav, VisuallyHidden, 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 };
|
|
@@ -2,7 +2,7 @@ import { c } from "../../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import ButtonReset_module_css_default from "./ButtonReset.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/internal/components/ButtonReset.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Provides an unstyled button that can be styled as-needed for components
|
|
8
8
|
*/
|
|
@@ -43,5 +43,4 @@ const Button = (t0) => {
|
|
|
43
43
|
} else t2 = $[9];
|
|
44
44
|
return t2;
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { Button };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./ButtonReset-904f2483.css";
|
|
2
|
-
|
|
2
|
+
// src/internal/components/ButtonReset.module.css.js
|
|
3
3
|
var ButtonReset_module_css_default = { "ButtonReset": "prc-components-ButtonReset-O-bEI" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { ButtonReset_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckboxOrRadioGroupLabelProps } from "./CheckboxOrRadioGroupLabel.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts
|
|
5
5
|
type CheckboxOrRadioGroupProps = {
|
|
6
6
|
/** Class name for custom styling */className?: string;
|
|
7
7
|
/**
|
|
@@ -23,5 +23,4 @@ type CheckboxOrRadioGroupProps = {
|
|
|
23
23
|
required?: boolean;
|
|
24
24
|
'data-component'?: string;
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { CheckboxOrRadioGroupProps };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c } from "../../../utils/react-compiler-runtime.js";
|
|
2
|
-
import { useId as useId$1 } from "../../../hooks/useId.js";
|
|
3
|
-
import { useSlots } from "../../../hooks/useSlots.js";
|
|
4
|
-
import VisuallyHidden from "../../../_VisuallyHidden.js";
|
|
5
2
|
import ValidationAnimationContainer from "../ValidationAnimationContainer.js";
|
|
6
|
-
import
|
|
7
|
-
import CheckboxOrRadioGroup_module_css_default from "./CheckboxOrRadioGroup.module.css.js";
|
|
3
|
+
import { useId as useId$1 } from "../../../hooks/useId.js";
|
|
8
4
|
import CheckboxOrRadioGroupCaption from "./CheckboxOrRadioGroupCaption.js";
|
|
9
5
|
import CheckboxOrRadioGroupLabel from "./CheckboxOrRadioGroupLabel.js";
|
|
10
6
|
import CheckboxOrRadioGroupValidation from "./CheckboxOrRadioGroupValidation.js";
|
|
7
|
+
import CheckboxOrRadioGroupContext from "./CheckboxOrRadioGroupContext.js";
|
|
8
|
+
import VisuallyHidden from "../../../_VisuallyHidden.js";
|
|
9
|
+
import { useSlots } from "../../../hooks/useSlots.js";
|
|
10
|
+
import CheckboxOrRadioGroup_module_css_default from "./CheckboxOrRadioGroup.module.css.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/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.tsx
|
|
15
15
|
const CheckboxOrRadioGroup = (t0) => {
|
|
16
16
|
const $ = c(51);
|
|
17
17
|
const { "aria-labelledby": ariaLabelledby, children, disabled: t1, id: idProp, required: t2, className, "data-component": dataComponentProp } = t0;
|
|
@@ -190,5 +190,4 @@ var CheckboxOrRadioGroup_default = Object.assign(CheckboxOrRadioGroup, {
|
|
|
190
190
|
function _temp(child) {
|
|
191
191
|
return /*#__PURE__*/ React.isValidElement(child);
|
|
192
192
|
}
|
|
193
|
-
//#endregion
|
|
194
193
|
export { CheckboxOrRadioGroup_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./CheckboxOrRadioGroup-e38b5339.css";
|
|
2
|
-
|
|
2
|
+
// src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js
|
|
3
3
|
var CheckboxOrRadioGroup_module_css_default = {
|
|
4
4
|
"Body": "prc-CheckboxOrRadioGroup-Body-S3dlj",
|
|
5
5
|
"GroupFieldset": "prc-CheckboxOrRadioGroup-GroupFieldset-wQbrJ",
|
|
@@ -8,5 +8,4 @@ var CheckboxOrRadioGroup_module_css_default = {
|
|
|
8
8
|
"RadioGroupLabel": "prc-CheckboxOrRadioGroup-RadioGroupLabel-C-0pm",
|
|
9
9
|
"GroupLabelChildren": "prc-CheckboxOrRadioGroup-GroupLabelChildren-ObjCg"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { CheckboxOrRadioGroup_module_css_default as default };
|
|
@@ -5,7 +5,7 @@ import CheckboxOrRadioGroup_module_css_default from "./CheckboxOrRadioGroup.modu
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
// src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.tsx
|
|
9
9
|
const CheckboxOrRadioGroupCaption = (t0) => {
|
|
10
10
|
const $ = c(7);
|
|
11
11
|
const { className, children } = t0;
|
|
@@ -34,5 +34,4 @@ const CheckboxOrRadioGroupCaption = (t0) => {
|
|
|
34
34
|
return t3;
|
|
35
35
|
};
|
|
36
36
|
CheckboxOrRadioGroupCaption.__SLOT__ = Symbol("CheckboxOrRadioGroup.Caption");
|
|
37
|
-
//#endregion
|
|
38
37
|
export { CheckboxOrRadioGroupCaption as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.tsx
|
|
3
3
|
const CheckboxOrRadioGroupContext = /*#__PURE__*/ React.createContext({});
|
|
4
|
-
//#endregion
|
|
5
4
|
export { CheckboxOrRadioGroupContext as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts
|
|
4
4
|
type CheckboxOrRadioGroupLabelProps = {
|
|
5
5
|
/** Class name for custom styling */className?: string;
|
|
6
6
|
/**
|
|
@@ -8,5 +8,4 @@ type CheckboxOrRadioGroupLabelProps = {
|
|
|
8
8
|
*/
|
|
9
9
|
visuallyHidden?: boolean;
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { CheckboxOrRadioGroupLabelProps };
|