@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
|
@@ -2,7 +2,7 @@ import { c } from "../../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import ValidationAnimationContainer_module_css_default from "./ValidationAnimationContainer.module.css.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/internal/components/ValidationAnimationContainer.tsx
|
|
6
6
|
const ValidationAnimationContainer = (t0) => {
|
|
7
7
|
const $ = c(14);
|
|
8
8
|
let children;
|
|
@@ -59,5 +59,4 @@ const ValidationAnimationContainer = (t0) => {
|
|
|
59
59
|
} else t2 = $[13];
|
|
60
60
|
return t2;
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { ValidationAnimationContainer as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./ValidationAnimationContainer-04125429.css";
|
|
2
|
-
|
|
2
|
+
// src/internal/components/ValidationAnimationContainer.module.css.js
|
|
3
3
|
var ValidationAnimationContainer_module_css_default = {
|
|
4
4
|
"Animation": "prc-components-Animation-e139d",
|
|
5
5
|
"fadeIn": "prc-components-fadeIn-RDp5O"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { ValidationAnimationContainer_module_css_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
|
|
2
|
+
// src/internal/hooks/useDevOnlyEffect.ts
|
|
3
3
|
/**
|
|
4
4
|
* Runs an effect only in development. Selecting the implementation at module
|
|
5
5
|
* initialization avoids conditional Hook calls and uses a no-op in production.
|
|
@@ -12,5 +12,4 @@ import { useEffect } from "react";
|
|
|
12
12
|
* @param deps Dependency list, same semantics as `useEffect`.
|
|
13
13
|
*/
|
|
14
14
|
const useDevOnlyEffect = useEffect;
|
|
15
|
-
//#endregion
|
|
16
15
|
export { useDevOnlyEffect };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/hooks/useEffectCallback.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a callback that can be used within an effect without re-running the
|
|
6
6
|
* effect when the values used change. The callback passed to this hook will
|
|
@@ -35,5 +35,4 @@ function useEffectCallback(callback) {
|
|
|
35
35
|
} else t2 = $[3];
|
|
36
36
|
return t2;
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
export { useEffectCallback };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/hooks/useEffectOnce.ts
|
|
4
4
|
function useEffectOnce(callback) {
|
|
5
5
|
const $ = c(2);
|
|
6
6
|
const savedCallback = useRef(callback);
|
|
@@ -22,5 +22,4 @@ function useEffectOnce(callback) {
|
|
|
22
22
|
}
|
|
23
23
|
useEffect(t0, t1);
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { useEffectOnce };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import { createContext, useContext, useRef, useSyncExternalStore } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/hooks/useOverflowObserver.ts
|
|
4
4
|
/** Provided by `OverflowObserverProvider`; `null` when no provider is present. Consumed via `useIsClipped`. */
|
|
5
5
|
const OverflowObserverContext = /*#__PURE__*/ createContext(null);
|
|
6
6
|
/**
|
|
@@ -52,5 +52,4 @@ function _temp2() {}
|
|
|
52
52
|
function _temp() {}
|
|
53
53
|
/** Stable server snapshot for `useIsClipped`: overflow is never measured during SSR. */
|
|
54
54
|
const getOverflowServerSnapshot = () => false;
|
|
55
|
-
//#endregion
|
|
56
55
|
export { OverflowObserverContext, useIsClipped };
|
|
@@ -2,7 +2,7 @@ import { c } from "../../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { useSyncedState } from "../../hooks/useSyncedState.js";
|
|
3
3
|
import { useTheme } from "../../useTheme.js";
|
|
4
4
|
import React from "react";
|
|
5
|
-
|
|
5
|
+
// src/internal/hooks/useThemeProvider.ts
|
|
6
6
|
const defaultColorMode = "day";
|
|
7
7
|
const defaultDayScheme = "light";
|
|
8
8
|
const defaultNightScheme = "dark";
|
|
@@ -67,5 +67,4 @@ function getSystemColorMode() {
|
|
|
67
67
|
var _window2, _window2$matchMedia;
|
|
68
68
|
return (_window2 = window) !== null && _window2 !== void 0 && (_window2$matchMedia = _window2.matchMedia) !== null && _window2$matchMedia !== void 0 && (_window2$matchMedia = _window2$matchMedia.call(_window2, "(prefers-color-scheme: dark)")) !== null && _window2$matchMedia !== void 0 && _window2$matchMedia.matches ? "night" : "day";
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { useThemeProvider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/utils/getResponsiveAttributes.ts
|
|
2
2
|
/**
|
|
3
3
|
* Transform the given property and values in to corresponding data attributes
|
|
4
4
|
* to be placed on a container. This function is helpful for coordinating
|
|
@@ -25,5 +25,4 @@ function getResponsiveAttributes(property, values) {
|
|
|
25
25
|
function serialize(property, value) {
|
|
26
26
|
return [property, value];
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { getResponsiveAttributes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/utils/hasInteractiveNodes.ts
|
|
2
2
|
const nonValidSelectors = {
|
|
3
3
|
disabled: "[disabled]",
|
|
4
4
|
hidden: "[hidden]",
|
|
@@ -38,5 +38,4 @@ function isNonValidInteractiveNode(node) {
|
|
|
38
38
|
const nodeStyle = getComputedStyle(node);
|
|
39
39
|
return nodeStyle.display === "none" || nodeStyle.visibility === "hidden";
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { hasInteractiveNodes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/live-region/Announce.d.ts
|
|
5
5
|
type AnnounceProps<As extends React.ElementType> = PolymorphicProps<As, 'div', {
|
|
6
6
|
/**
|
|
7
7
|
* Specify if the content of the element should be announced when this
|
|
@@ -31,5 +31,4 @@ type AnnounceProps<As extends React.ElementType> = PolymorphicProps<As, 'div', {
|
|
|
31
31
|
* will also announce any changes to the text content of `children`
|
|
32
32
|
*/
|
|
33
33
|
declare function Announce<As extends React.ElementType = 'div'>(props: AnnounceProps<As>): React.JSX.Element;
|
|
34
|
-
//#endregion
|
|
35
34
|
export { Announce, AnnounceProps };
|
|
@@ -4,7 +4,7 @@ import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
|
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { announceFromElement } from "@primer/live-region-element";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/live-region/Announce.tsx
|
|
8
8
|
/**
|
|
9
9
|
* `Announce` is a component that will announce the text content of the
|
|
10
10
|
* `children` passed in to screen readers using the given politeness level. It
|
|
@@ -156,5 +156,4 @@ function isVisible(element) {
|
|
|
156
156
|
const style = window.getComputedStyle(element);
|
|
157
157
|
return style.display !== "none" && style.visibility !== "hidden";
|
|
158
158
|
}
|
|
159
|
-
//#endregion
|
|
160
159
|
export { Announce };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import React, { ElementType } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/live-region/AriaAlert.d.ts
|
|
5
5
|
type AriaAlertProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div', {
|
|
6
6
|
/**
|
|
7
7
|
* Specify if the content of the element should be announced when this
|
|
@@ -16,5 +16,4 @@ type AriaAlertProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div'
|
|
|
16
16
|
hidden?: boolean;
|
|
17
17
|
}>;
|
|
18
18
|
declare function AriaAlert<As extends ElementType = 'div'>(props: AriaAlertProps<As>): React.JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
19
|
export { AriaAlert, AriaAlertProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Announce } from "./Announce.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/live-region/AriaAlert.tsx
|
|
5
5
|
function AriaAlert(props) {
|
|
6
6
|
var _props$announceOnShow;
|
|
7
7
|
const $ = c(3);
|
|
@@ -19,5 +19,4 @@ function AriaAlert(props) {
|
|
|
19
19
|
} else t1 = $[2];
|
|
20
20
|
return t1;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { AriaAlert };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import React, { ElementType } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/live-region/AriaStatus.d.ts
|
|
5
5
|
type AriaStatusProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div', {
|
|
6
6
|
/**
|
|
7
7
|
* Specify if the content of the element should be announced when this
|
|
@@ -20,5 +20,4 @@ type AriaStatusProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div
|
|
|
20
20
|
delayMs?: number;
|
|
21
21
|
}>;
|
|
22
22
|
declare function AriaStatus<As extends ElementType = 'div'>(props: AriaStatusProps<As>): React.JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
23
|
export { AriaStatus, AriaStatusProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Announce } from "./Announce.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/live-region/AriaStatus.tsx
|
|
5
5
|
function AriaStatus(props) {
|
|
6
6
|
var _props$announceOnShow;
|
|
7
7
|
const $ = c(3);
|
|
@@ -19,5 +19,4 @@ function AriaStatus(props) {
|
|
|
19
19
|
} else t1 = $[2];
|
|
20
20
|
return t1;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { AriaStatus };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ThemeProviderProps } from "../ThemeProvider.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/next/ThemeProvider.d.ts
|
|
5
5
|
declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { ThemeProvider, ThemeProvider as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import { ThemeProviderBase } from "../internal/components/ThemeProviderBase.js";
|
|
3
3
|
import { useThemeProvider } from "../internal/hooks/useThemeProvider.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/next/ThemeProvider.tsx
|
|
6
6
|
const ThemeProvider = (t0) => {
|
|
7
7
|
const $ = c(7);
|
|
8
8
|
let children;
|
|
@@ -31,5 +31,4 @@ const ThemeProvider = (t0) => {
|
|
|
31
31
|
} else t1 = $[6];
|
|
32
32
|
return t1;
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { ThemeProvider, ThemeProvider as default };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ThemeProvider } from "./ThemeProvider.js";
|
|
2
|
+
import { Tooltip, TooltipProps } from "../TooltipV2/Tooltip.js";
|
|
1
3
|
import { ThemeProviderProps } from "../ThemeProvider.js";
|
|
2
4
|
import { useColorSchemeVar, useTheme } from "../useTheme.js";
|
|
3
|
-
import { Tooltip, TooltipProps } from "../TooltipV2/Tooltip.js";
|
|
4
|
-
import { ThemeProvider } from "./ThemeProvider.js";
|
|
5
5
|
export { ThemeProvider, type ThemeProviderProps, Tooltip, type TooltipProps, useColorSchemeVar, useTheme };
|
package/dist/next/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useColorSchemeVar, useTheme } from "../useTheme.js";
|
|
3
2
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
4
3
|
import { ThemeProvider } from "./ThemeProvider.js";
|
|
4
|
+
import { useColorSchemeVar, useTheme } from "../useTheme.js";
|
|
5
5
|
export { ThemeProvider, Tooltip, useColorSchemeVar, useTheme };
|
package/dist/test-helpers.d.ts
CHANGED
package/dist/test-helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextEncoder } from "node:util";
|
|
2
|
-
|
|
2
|
+
// src/utils/test-helpers.tsx
|
|
3
3
|
global.ResizeObserver = jest.fn().mockImplementation(() => {
|
|
4
4
|
return {
|
|
5
5
|
observe: jest.fn(),
|
|
@@ -46,5 +46,4 @@ const setupMatchMedia = () => {
|
|
|
46
46
|
}))
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
//#endregion
|
|
50
49
|
export { setupMatchMedia };
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyPaths } from "./utils/types/KeyPaths.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/theme.d.ts
|
|
4
4
|
declare const theme: {
|
|
5
5
|
animation: {
|
|
6
6
|
easeOutCubic: string;
|
|
@@ -1133,5 +1133,4 @@ type ThemeShadows = {
|
|
|
1133
1133
|
};
|
|
1134
1134
|
type ThemeColorPaths = KeyPaths<ThemeColors>;
|
|
1135
1135
|
type ThemeShadowPaths = KeyPaths<ThemeShadows>;
|
|
1136
|
-
//#endregion
|
|
1137
1136
|
export { ThemeColorPaths, ThemeShadowPaths, theme as default };
|
package/dist/theme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fontStack } from "./utils/theme.js";
|
|
2
2
|
import { colorSchemes } from "./legacy-theme/ts/color-schemes.js";
|
|
3
|
-
|
|
3
|
+
// src/theme.ts
|
|
4
4
|
const theme = {
|
|
5
5
|
animation: { easeOutCubic: "cubic-bezier(0.33, 1, 0.68, 1)" },
|
|
6
6
|
borderWidths: [0, "1px"],
|
|
@@ -82,5 +82,4 @@ const theme = {
|
|
|
82
82
|
],
|
|
83
83
|
colorSchemes
|
|
84
84
|
};
|
|
85
|
-
//#endregion
|
|
86
85
|
export { theme as default };
|
package/dist/useTheme.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ThemeContextValue } from "./ThemeContext.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/useTheme.d.ts
|
|
4
4
|
declare function useTheme(): ThemeContextValue;
|
|
5
5
|
declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { useColorSchemeVar, useTheme };
|
package/dist/useTheme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeContext } from "./ThemeContext.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
3
|
+
// src/useTheme.ts
|
|
4
4
|
function useTheme() {
|
|
5
5
|
return React.useContext(ThemeContext);
|
|
6
6
|
}
|
|
@@ -9,5 +9,4 @@ function useColorSchemeVar(values, fallback) {
|
|
|
9
9
|
const { colorScheme: t0 } = useTheme();
|
|
10
10
|
return (_values$colorScheme = values[t0 === void 0 ? "" : t0]) !== null && _values$colorScheme !== void 0 ? _values$colorScheme : fallback;
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { useColorSchemeVar, useTheme };
|
package/dist/utils/as-slot.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WithSlotMarker } from "./types/Slots.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/as-slot.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Copies the `__SLOT__` marker from a slot-aware source component onto another
|
|
6
6
|
* component, returning the same component reference typed as a slot.
|
|
@@ -19,5 +19,4 @@ import { WithSlotMarker } from "./types/Slots.js";
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
declare function asSlot<T>(component: T, slotSource: WithSlotMarker<unknown>): WithSlotMarker<T>;
|
|
22
|
-
//#endregion
|
|
23
22
|
export { asSlot };
|
package/dist/utils/as-slot.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { warning } from "./warning.js";
|
|
2
|
-
|
|
2
|
+
// src/utils/as-slot.ts
|
|
3
3
|
/**
|
|
4
4
|
* Copies the `__SLOT__` marker from a slot-aware source component onto another
|
|
5
5
|
* component, returning the same component reference typed as a slot.
|
|
@@ -22,5 +22,4 @@ function asSlot(component, slotSource) {
|
|
|
22
22
|
if (slotSource.__SLOT__) component.__SLOT__ = slotSource.__SLOT__;
|
|
23
23
|
return component;
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { asSlot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/character-counter.ts
|
|
2
2
|
/**
|
|
3
3
|
* Compute the character count state for a given length and limit. This is a pure
|
|
4
4
|
* function so the counter can be derived during render without component state.
|
|
@@ -17,5 +17,4 @@ function getCharacterCountState(currentLength, maxLength) {
|
|
|
17
17
|
message: `${charactersOver} ${charactersOver === 1 ? "character" : "characters"} over`
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { getCharacterCountState };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName } from "@lit-labs/react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/create-component.d.ts
|
|
4
4
|
type EventNames = Record<string, EventName | string>;
|
|
5
5
|
declare const createComponent: <I extends HTMLElement, E extends EventNames = {}>(elementClass: new () => I, tagName: string, events?: E | undefined) => import("@lit-labs/react").ReactWebComponent<I, E>;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { createComponent, createComponent as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { createComponent } from "@lit-labs/react";
|
|
3
|
-
|
|
3
|
+
// src/utils/create-component.ts
|
|
4
4
|
const rename = (str) => str[0].toUpperCase() + str.slice(1).replace(/(-\w)/g, (s) => s[1].toUpperCase());
|
|
5
5
|
const createComponent$1 = (elementClass, tagName, events = void 0) => {
|
|
6
6
|
const component = createComponent({
|
|
@@ -12,5 +12,4 @@ const createComponent$1 = (elementClass, tagName, events = void 0) => {
|
|
|
12
12
|
component.displayName = rename(tagName);
|
|
13
13
|
return component;
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { createComponent$1 as createComponent, createComponent$1 as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "./react-compiler-runtime.js";
|
|
|
2
2
|
import useIsomorphicLayoutEffect from "./useIsomorphicLayoutEffect.js";
|
|
3
3
|
import { createContext, useContext, useEffect, useId, useReducer, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/utils/descendant-registry.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Create a "descendant registry" for a component. This allows a parent to store and track an ordered registry of
|
|
8
8
|
* child components, even if they are deeply nested in the tree. For example, a menu component can use this to track
|
|
@@ -231,5 +231,4 @@ function scheduleMicrotask(callback) {
|
|
|
231
231
|
if (typeof queueMicrotask === "function") queueMicrotask(callback);
|
|
232
232
|
else setTimeout(callback);
|
|
233
233
|
}
|
|
234
|
-
//#endregion
|
|
235
234
|
export { createDescendantRegistry };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version } from "react";
|
|
2
|
-
|
|
2
|
+
// src/utils/environment.ts
|
|
3
3
|
/**
|
|
4
4
|
* Indicate whether current execution environment can access the DOM.
|
|
5
5
|
*
|
|
@@ -9,5 +9,4 @@ const canUseDOM = !!(typeof window !== "undefined" && window.document && window.
|
|
|
9
9
|
const reactVersion = version.split(".");
|
|
10
10
|
const reactMajorVersion = parseInt(reactVersion[0], 10);
|
|
11
11
|
const isExperimentalReactVersion = /^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(version);
|
|
12
|
-
//#endregion
|
|
13
12
|
export { canUseDOM, isExperimentalReactVersion, reactMajorVersion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/getBreakpointDeclarations.ts
|
|
2
2
|
function areAllValuesTheSame(responsiveValue) {
|
|
3
3
|
if ("narrow" in responsiveValue && "regular" in responsiveValue && "wide" in responsiveValue) {
|
|
4
4
|
const values = Object.values(responsiveValue);
|
|
@@ -10,5 +10,4 @@ function haveRegularAndWideSameValue(responsiveValue) {
|
|
|
10
10
|
if ("regular" in responsiveValue && "wide" in responsiveValue) return responsiveValue.regular === responsiveValue.wide;
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { areAllValuesTheSame, haveRegularAndWideSameValue };
|
package/dist/utils/invariant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/invariant.ts
|
|
2
2
|
const invariant = function invariant(condition, format, ...args) {
|
|
3
3
|
if (!condition) {
|
|
4
4
|
let error;
|
|
@@ -14,5 +14,4 @@ const invariant = function invariant(condition, format, ...args) {
|
|
|
14
14
|
throw error;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { invariant };
|
package/dist/utils/is-slot.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { WithSlotMarker } from "./types/Slots.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/is-slot.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Determines whether a given element is a valid slot for the supplied slot component
|
|
6
6
|
*/
|
|
7
7
|
declare function isSlot(element: unknown, slot: WithSlotMarker<unknown>): boolean;
|
|
8
|
-
//#endregion
|
|
9
8
|
export { isSlot };
|
package/dist/utils/is-slot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/is-slot.ts
|
|
2
2
|
/**
|
|
3
3
|
* Determines whether a given element is a valid slot for the supplied slot component
|
|
4
4
|
*/
|
|
@@ -10,5 +10,4 @@ function isSlot(element, slot) {
|
|
|
10
10
|
const elementSlot = (_reactElement$__SLOT_ = reactElement.__SLOT__) !== null && _reactElement$__SLOT_ !== void 0 ? _reactElement$__SLOT_ : (_reactElement$type = reactElement.type) === null || _reactElement$type === void 0 ? void 0 : _reactElement$type.__SLOT__;
|
|
11
11
|
return slot.__SLOT__ ? elementSlot === slot.__SLOT__ : false;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { isSlot };
|
package/dist/utils/isNumeric.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ElementType } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/modern-polymorphic.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Distributive Omit utility type that works correctly with union types
|
|
6
6
|
*/
|
|
@@ -13,5 +13,4 @@ type DistributiveOmit<T, TOmitted extends PropertyKey> = T extends unknown ? Omi
|
|
|
13
13
|
type PolymorphicProps<TAs extends ElementType, TDefaultElement extends ElementType = 'div', Props = object> = DistributiveOmit<ComponentPropsWithRef<ElementType extends TAs ? TDefaultElement : TAs>, 'as'> & DistributiveOmit<Props, 'as'> & {
|
|
14
14
|
as?: TAs;
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { DistributiveOmit, PolymorphicProps };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/utils/modern-polymorphic.ts
|
|
3
3
|
/**
|
|
4
4
|
* Cast forwardRef to the fixed version with better type inference
|
|
5
5
|
*/
|
|
6
6
|
const fixedForwardRef = forwardRef;
|
|
7
|
-
//#endregion
|
|
8
7
|
export { fixedForwardRef };
|
|
@@ -2,7 +2,7 @@ import { SlotMarker } from "./types/Slots.js";
|
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { JSX } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/polymorphic.d.ts
|
|
6
6
|
type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
7
7
|
/**
|
|
8
8
|
* Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
|
|
@@ -27,5 +27,4 @@ interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends For
|
|
|
27
27
|
as: As;
|
|
28
28
|
}> : never): React$1.ReactElement<any> | null;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export type { ForwardRefComponent, Merge };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
|
|
2
|
+
// src/utils/react-compiler-runtime.ts
|
|
3
3
|
/**
|
|
4
4
|
* Local, bundled replacement for the `c` helper exported by
|
|
5
5
|
* `react-compiler-runtime`.
|
|
@@ -28,5 +28,4 @@ function useMemoCache(size) {
|
|
|
28
28
|
}
|
|
29
29
|
const builtinRuntime = React.__COMPILER_RUNTIME;
|
|
30
30
|
const c = typeof (builtinRuntime === null || builtinRuntime === void 0 ? void 0 : builtinRuntime.c) === "function" ? builtinRuntime.c : useMemoCache;
|
|
31
|
-
//#endregion
|
|
32
31
|
export { c, useMemoCache };
|
package/dist/utils/scroll.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/scroll.ts
|
|
2
2
|
/**
|
|
3
3
|
* Returns the nearest scrollable parent of the element or `null` if the element
|
|
4
4
|
* is not contained in a scrollable element.
|
|
@@ -11,5 +11,4 @@ function getScrollContainer(element) {
|
|
|
11
11
|
function isScrollable(element) {
|
|
12
12
|
return element.scrollHeight > element.clientHeight && !(window.getComputedStyle(element).overflowY.indexOf("hidden") !== -1);
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { getScrollContainer };
|
package/dist/utils/theme.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
//#region src/utils/types/AriaRole.d.ts
|
|
2
1
|
type AriaRole = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'none' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
|
|
3
|
-
//#endregion
|
|
4
2
|
export { AriaRole };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/types/ComponentProps.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Extract a component's props
|
|
4
3
|
*
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* @example ComponentProps<typeof MyComponent>
|
|
8
7
|
*/
|
|
9
8
|
type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { ComponentProps };
|